diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index f0530d0f..3b279f0b 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,620 +1,1744 @@ lockVersion: 2.0.0 id: bdb34d30-f36e-4c13-bfde-42babcb240db management: - docChecksum: fcb959b0773dc9aadc1dfb0c7c60a487 + docChecksum: 202ea5d5be747263c8c1c581bbcdb92f docVersion: 0.0.1 - speakeasyVersion: 1.285.3 - generationVersion: 2.326.3 - releaseVersion: 0.29.0 - configChecksum: 68d0329b2ae95c369fcf10ed1f225cfa + speakeasyVersion: 1.396.2 + generationVersion: 2.415.0 + releaseVersion: 0.30.0 + configChecksum: f3f563130b172fcc9145ba334a9469c4 repoURL: https://github.com/hathora/cloud-sdk-unity.git repoSubDirectory: . published: true features: unity: - core: 1.7.2 + core: 1.7.12 deprecations: 0.0.2 downloadStreams: 0.0.2 - globalSecurity: 0.2.4 + globalSecurity: 0.2.6 globalServerURLs: 0.0.4 globals: 0.1.1 + groups: 0.0.2 methodSecurity: 0.1.1 - unions: 0.0.2 + unions: 0.0.4 generatedFiles: - - HathoraCloud/AppV1.cs + - .gitattributes + - CONTRIBUTING.md + - HathoraCloud.sln + - HathoraCloud/AppsV1.cs + - HathoraCloud/AppsV2.cs - HathoraCloud/AuthV1.cs - HathoraCloud/BillingV1.cs - - HathoraCloud/BuildV1.cs - - HathoraCloud/BuildV2.cs - - HathoraCloud/DeploymentV1.cs - - HathoraCloud/DeploymentV2.cs + - HathoraCloud/BuildsV1.cs + - HathoraCloud/BuildsV2.cs + - HathoraCloud/BuildsV3.cs + - HathoraCloud/DeploymentsV1.cs + - HathoraCloud/DeploymentsV2.cs + - HathoraCloud/DeploymentsV3.cs - HathoraCloud/DiscoveryV1.cs - HathoraCloud/DiscoveryV2.cs - - HathoraCloud/LobbyV1.cs - - HathoraCloud/LobbyV2.cs - - HathoraCloud/LobbyV3SDK.cs - - HathoraCloud/LogV1.cs + - HathoraCloud/HathoraCloud.csproj + - HathoraCloud/HathoraCloudSDK.cs + - HathoraCloud/LobbiesV1.cs + - HathoraCloud/LobbiesV2.cs + - HathoraCloud/LobbiesV3.cs + - HathoraCloud/LogsV1.cs - HathoraCloud/ManagementV1.cs - HathoraCloud/MetricsV1.cs - - HathoraCloud/OrganizationsV1.cs - - HathoraCloud/ProcessesV1.cs - - HathoraCloud/ProcessesV2.cs - - HathoraCloud/RoomV1.cs - - HathoraCloud/RoomV2.cs - - HathoraCloud/OrgTokensV1.cs - - HathoraCloud/HathoraCloudSDK.cs - - global.json - - HathoraCloud.sln - - HathoraCloud/Utils/AnyDeserializer.cs - - HathoraCloud/Utils/BigIntStrConverter.cs - - HathoraCloud/Utils/DateOnly.cs - - HathoraCloud/Utils/DateOnlyConverter.cs - - HathoraCloud/Utils/DecimalStrConverter.cs - - HathoraCloud/Utils/DownloadHandlerStream.cs - - HathoraCloud/Utils/EnumConverter.cs - - HathoraCloud/Utils/FlexibleObjectDeserializer.cs - - HathoraCloud/Utils/HeaderSerializer.cs - - HathoraCloud/Utils/IsoDateTimeSerializer.cs - - HathoraCloud/Utils/MemoryQueueBufferStream.cs - - HathoraCloud/Utils/RequestBodySerializer.cs - - HathoraCloud/Utils/SecuritySerializer.cs - - HathoraCloud/Utils/SpeakeasyHttpClient.cs - - HathoraCloud/Utils/SpeakeasyMetadata.cs - - HathoraCloud/Utils/URLBuilder.cs - - HathoraCloud/Utils/Utilities.cs - - HathoraCloud/HathoraCloud.csproj + - HathoraCloud/Models/Errors/ApiError.cs - HathoraCloud/Models/Errors/SDKException.cs + - HathoraCloud/Models/Operations/AcceptInviteRequest.cs + - HathoraCloud/Models/Operations/AcceptInviteResponse.cs + - HathoraCloud/Models/Operations/CreateAppRequest.cs - HathoraCloud/Models/Operations/CreateAppResponse.cs - - HathoraCloud/Models/Operations/DeleteAppRequest.cs - - HathoraCloud/Models/Operations/DeleteAppResponse.cs - - HathoraCloud/Models/Operations/GetAppInfoRequest.cs - - HathoraCloud/Models/Operations/GetAppInfoResponse.cs - - HathoraCloud/Models/Operations/GetAppsResponse.cs - - HathoraCloud/Models/Operations/UpdateAppRequest.cs - - HathoraCloud/Models/Operations/UpdateAppResponse.cs - - HathoraCloud/Models/Operations/LoginAnonymousRequest.cs - - HathoraCloud/Models/Operations/LoginAnonymousResponse.cs - - HathoraCloud/Models/Operations/LoginGoogleRequest.cs - - HathoraCloud/Models/Operations/LoginGoogleResponse.cs - - HathoraCloud/Models/Operations/LoginNicknameRequest.cs - - HathoraCloud/Models/Operations/LoginNicknameResponse.cs - - HathoraCloud/Models/Operations/GetBalanceResponse.cs - - HathoraCloud/Models/Operations/GetInvoicesResponse.cs - - HathoraCloud/Models/Operations/GetPaymentMethodResponse.cs - - HathoraCloud/Models/Operations/InitStripeCustomerPortalUrlResponse.cs + - HathoraCloud/Models/Operations/CreateAppV1DeprecatedResponse.cs - HathoraCloud/Models/Operations/CreateBuildDeprecatedRequest.cs - HathoraCloud/Models/Operations/CreateBuildDeprecatedResponse.cs - - HathoraCloud/Models/Operations/DeleteBuildDeprecatedRequest.cs - - HathoraCloud/Models/Operations/DeleteBuildDeprecatedResponse.cs - - HathoraCloud/Models/Operations/GetBuildInfoDeprecatedRequest.cs - - HathoraCloud/Models/Operations/GetBuildInfoDeprecatedResponse.cs - - HathoraCloud/Models/Operations/GetBuildsDeprecatedRequest.cs - - HathoraCloud/Models/Operations/GetBuildsDeprecatedResponse.cs - - HathoraCloud/Models/Operations/File.cs - - HathoraCloud/Models/Operations/RunBuildDeprecatedRequestBody.cs - - HathoraCloud/Models/Operations/RunBuildDeprecatedRequest.cs - - HathoraCloud/Models/Operations/RunBuildDeprecatedResponse.cs - HathoraCloud/Models/Operations/CreateBuildRequest.cs - HathoraCloud/Models/Operations/CreateBuildResponse.cs - - HathoraCloud/Models/Operations/DeleteBuildRequest.cs - - HathoraCloud/Models/Operations/DeleteBuildResponse.cs - - HathoraCloud/Models/Operations/GetBuildInfoRequest.cs - - HathoraCloud/Models/Operations/GetBuildInfoResponse.cs - - HathoraCloud/Models/Operations/GetBuildsRequest.cs - - HathoraCloud/Models/Operations/GetBuildsResponse.cs - - HathoraCloud/Models/Operations/RunBuildFile.cs - - HathoraCloud/Models/Operations/RunBuildRequestBody.cs - - HathoraCloud/Models/Operations/RunBuildRequest.cs - - HathoraCloud/Models/Operations/RunBuildResponse.cs - - HathoraCloud/Models/Operations/CreateDeploymentDeprecatedRequest.cs - - HathoraCloud/Models/Operations/CreateDeploymentDeprecatedResponse.cs - - HathoraCloud/Models/Operations/GetDeploymentInfoDeprecatedRequest.cs - - HathoraCloud/Models/Operations/GetDeploymentInfoDeprecatedResponse.cs - - HathoraCloud/Models/Operations/GetDeploymentsDeprecatedRequest.cs - - HathoraCloud/Models/Operations/GetDeploymentsDeprecatedResponse.cs - - HathoraCloud/Models/Operations/GetLatestDeploymentDeprecatedRequest.cs - - HathoraCloud/Models/Operations/GetLatestDeploymentDeprecatedResponse.cs + - HathoraCloud/Models/Operations/CreateBuildV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/CreateBuildV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedResponse.cs - HathoraCloud/Models/Operations/CreateDeploymentRequest.cs - HathoraCloud/Models/Operations/CreateDeploymentResponse.cs - - HathoraCloud/Models/Operations/GetDeploymentInfoRequest.cs - - HathoraCloud/Models/Operations/GetDeploymentInfoResponse.cs - - HathoraCloud/Models/Operations/GetDeploymentsRequest.cs - - HathoraCloud/Models/Operations/GetDeploymentsResponse.cs - - HathoraCloud/Models/Operations/GetLatestDeploymentRequest.cs - - HathoraCloud/Models/Operations/GetLatestDeploymentResponse.cs - - HathoraCloud/Models/Operations/GetPingServiceEndpointsDeprecatedResponse.cs - - HathoraCloud/Models/Operations/GetPingServiceEndpointsResponse.cs - - HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedSecurity.cs - - HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedRequest.cs - - HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedResponse.cs - - HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedSecurity.cs - - HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedRequest.cs - - HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedResponse.cs - - HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Request.cs - - HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Response.cs - - HathoraCloud/Models/Operations/CreateLobbyDeprecatedSecurity.cs + - HathoraCloud/Models/Operations/CreateDeploymentV1DeprecatedRequest.cs + - HathoraCloud/Models/Operations/CreateDeploymentV1DeprecatedResponse.cs + - HathoraCloud/Models/Operations/CreateDeploymentV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/CreateDeploymentV2DeprecatedResponse.cs - HathoraCloud/Models/Operations/CreateLobbyDeprecatedRequest.cs - HathoraCloud/Models/Operations/CreateLobbyDeprecatedResponse.cs - - HathoraCloud/Models/Operations/CreateLocalLobbySecurity.cs - - HathoraCloud/Models/Operations/CreateLocalLobbyRequestBody.cs + - HathoraCloud/Models/Operations/CreateLobbyDeprecatedSecurity.cs + - HathoraCloud/Models/Operations/CreateLobbyRequest.cs + - HathoraCloud/Models/Operations/CreateLobbyResponse.cs + - HathoraCloud/Models/Operations/CreateLobbySecurity.cs - HathoraCloud/Models/Operations/CreateLocalLobbyRequest.cs + - HathoraCloud/Models/Operations/CreateLocalLobbyRequestBody.cs - HathoraCloud/Models/Operations/CreateLocalLobbyResponse.cs - - HathoraCloud/Models/Operations/CreatePrivateLobbySecurity.cs - - HathoraCloud/Models/Operations/CreatePrivateLobbyRequestBody.cs + - HathoraCloud/Models/Operations/CreateLocalLobbySecurity.cs + - HathoraCloud/Models/Operations/CreateOrgTokenRequest.cs + - HathoraCloud/Models/Operations/CreateOrgTokenResponse.cs + - HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedRequest.cs + - HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedResponse.cs + - HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedSecurity.cs - HathoraCloud/Models/Operations/CreatePrivateLobbyRequest.cs + - HathoraCloud/Models/Operations/CreatePrivateLobbyRequestBody.cs - HathoraCloud/Models/Operations/CreatePrivateLobbyResponse.cs - - HathoraCloud/Models/Operations/CreatePublicLobbySecurity.cs - - HathoraCloud/Models/Operations/CreatePublicLobbyRequestBody.cs + - HathoraCloud/Models/Operations/CreatePrivateLobbySecurity.cs + - HathoraCloud/Models/Operations/CreateProcessRequest.cs + - HathoraCloud/Models/Operations/CreateProcessResponse.cs + - HathoraCloud/Models/Operations/CreateProcessV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/CreateProcessV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedRequest.cs + - HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedResponse.cs + - HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedSecurity.cs - HathoraCloud/Models/Operations/CreatePublicLobbyRequest.cs + - HathoraCloud/Models/Operations/CreatePublicLobbyRequestBody.cs - HathoraCloud/Models/Operations/CreatePublicLobbyResponse.cs - - HathoraCloud/Models/Operations/GetLobbyInfoRequest.cs - - HathoraCloud/Models/Operations/GetLobbyInfoResponse.cs - - HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Request.cs - - HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Response.cs - - HathoraCloud/Models/Operations/SetLobbyStateRequest.cs - - HathoraCloud/Models/Operations/SetLobbyStateResponse.cs - - HathoraCloud/Models/Operations/CreateLobbySecurity.cs - - HathoraCloud/Models/Operations/CreateLobbyRequest.cs - - HathoraCloud/Models/Operations/CreateLobbyResponse.cs + - HathoraCloud/Models/Operations/CreatePublicLobbySecurity.cs + - HathoraCloud/Models/Operations/CreateRoomDeprecatedRequest.cs + - HathoraCloud/Models/Operations/CreateRoomDeprecatedResponse.cs + - HathoraCloud/Models/Operations/CreateRoomRequest.cs + - HathoraCloud/Models/Operations/CreateRoomResponse.cs + - HathoraCloud/Models/Operations/CreateWithMultipartUploadsV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/CreateWithMultipartUploadsV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/DeleteAppRequest.cs + - HathoraCloud/Models/Operations/DeleteAppResponse.cs + - HathoraCloud/Models/Operations/DeleteAppV1DeprecatedRequest.cs + - HathoraCloud/Models/Operations/DeleteAppV1DeprecatedResponse.cs + - HathoraCloud/Models/Operations/DeleteBuildDeprecatedRequest.cs + - HathoraCloud/Models/Operations/DeleteBuildDeprecatedResponse.cs + - HathoraCloud/Models/Operations/DeleteBuildRequest.cs + - HathoraCloud/Models/Operations/DeleteBuildResponse.cs + - HathoraCloud/Models/Operations/DeleteBuildV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/DeleteBuildV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/DestroyRoomDeprecatedRequest.cs + - HathoraCloud/Models/Operations/DestroyRoomDeprecatedResponse.cs + - HathoraCloud/Models/Operations/DestroyRoomRequest.cs + - HathoraCloud/Models/Operations/DestroyRoomResponse.cs + - HathoraCloud/Models/Operations/DownloadLogForProcessRequest.cs + - HathoraCloud/Models/Operations/DownloadLogForProcessResponse.cs + - HathoraCloud/Models/Operations/File.cs + - HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetActiveRoomsForProcessRequest.cs + - HathoraCloud/Models/Operations/GetActiveRoomsForProcessResponse.cs + - HathoraCloud/Models/Operations/GetAppInfoV1DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetAppInfoV1DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetAppRequest.cs + - HathoraCloud/Models/Operations/GetAppResponse.cs + - HathoraCloud/Models/Operations/GetAppsRequest.cs + - HathoraCloud/Models/Operations/GetAppsResponse.cs + - HathoraCloud/Models/Operations/GetAppsV1DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetBalanceResponse.cs + - HathoraCloud/Models/Operations/GetBuildInfoDeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetBuildInfoDeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetBuildInfoV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetBuildInfoV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetBuildRequest.cs + - HathoraCloud/Models/Operations/GetBuildResponse.cs + - HathoraCloud/Models/Operations/GetBuildsDeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetBuildsDeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetBuildsRequest.cs + - HathoraCloud/Models/Operations/GetBuildsResponse.cs + - HathoraCloud/Models/Operations/GetBuildsV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetBuildsV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetConnectionInfoRequest.cs + - HathoraCloud/Models/Operations/GetConnectionInfoResponse.cs + - HathoraCloud/Models/Operations/GetDeploymentInfoV1DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetDeploymentInfoV1DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetDeploymentInfoV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetDeploymentInfoV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetDeploymentRequest.cs + - HathoraCloud/Models/Operations/GetDeploymentResponse.cs + - HathoraCloud/Models/Operations/GetDeploymentsRequest.cs + - HathoraCloud/Models/Operations/GetDeploymentsResponse.cs + - HathoraCloud/Models/Operations/GetDeploymentsV1DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetDeploymentsV1DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetDeploymentsV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetDeploymentsV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetInactiveRoomsForProcessRequest.cs + - HathoraCloud/Models/Operations/GetInactiveRoomsForProcessResponse.cs + - HathoraCloud/Models/Operations/GetInvoicesResponse.cs + - HathoraCloud/Models/Operations/GetLatestDeploymentRequest.cs + - HathoraCloud/Models/Operations/GetLatestDeploymentResponse.cs + - HathoraCloud/Models/Operations/GetLatestDeploymentV1DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetLatestDeploymentV1DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetLatestDeploymentV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetLatestDeploymentV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetLatestProcessesRequest.cs + - HathoraCloud/Models/Operations/GetLatestProcessesResponse.cs + - HathoraCloud/Models/Operations/GetLatestProcessesV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetLatestProcessesV2DeprecatedResponse.cs - HathoraCloud/Models/Operations/GetLobbyInfoByRoomIdRequest.cs - HathoraCloud/Models/Operations/GetLobbyInfoByRoomIdResponse.cs - HathoraCloud/Models/Operations/GetLobbyInfoByShortCodeRequest.cs - HathoraCloud/Models/Operations/GetLobbyInfoByShortCodeResponse.cs - - HathoraCloud/Models/Operations/ListActivePublicLobbiesRequest.cs - - HathoraCloud/Models/Operations/ListActivePublicLobbiesResponse.cs - - HathoraCloud/Models/Operations/DownloadLogForProcessRequest.cs - - HathoraCloud/Models/Operations/DownloadLogForProcessResponse.cs + - HathoraCloud/Models/Operations/GetLobbyInfoRequest.cs + - HathoraCloud/Models/Operations/GetLobbyInfoResponse.cs - HathoraCloud/Models/Operations/GetLogsForAppRequest.cs - HathoraCloud/Models/Operations/GetLogsForAppResponse.cs - HathoraCloud/Models/Operations/GetLogsForDeploymentRequest.cs - HathoraCloud/Models/Operations/GetLogsForDeploymentResponse.cs - HathoraCloud/Models/Operations/GetLogsForProcessRequest.cs - HathoraCloud/Models/Operations/GetLogsForProcessResponse.cs - - HathoraCloud/Models/Operations/SendVerificationEmailResponse.cs - HathoraCloud/Models/Operations/GetMetricsRequest.cs - HathoraCloud/Models/Operations/GetMetricsResponse.cs - - HathoraCloud/Models/Operations/AcceptInviteRequest.cs - - HathoraCloud/Models/Operations/AcceptInviteResponse.cs + - HathoraCloud/Models/Operations/GetOrgMembersRequest.cs + - HathoraCloud/Models/Operations/GetOrgMembersResponse.cs - HathoraCloud/Models/Operations/GetOrgPendingInvitesRequest.cs - HathoraCloud/Models/Operations/GetOrgPendingInvitesResponse.cs + - HathoraCloud/Models/Operations/GetOrgTokensRequest.cs + - HathoraCloud/Models/Operations/GetOrgTokensResponse.cs + - HathoraCloud/Models/Operations/GetOrgsResponse.cs + - HathoraCloud/Models/Operations/GetPaymentMethodResponse.cs + - HathoraCloud/Models/Operations/GetPingServiceEndpointsDeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetPingServiceEndpointsResponse.cs + - HathoraCloud/Models/Operations/GetProcessInfoDeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetProcessInfoDeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetProcessInfoV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetProcessInfoV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetProcessRequest.cs + - HathoraCloud/Models/Operations/GetProcessResponse.cs + - HathoraCloud/Models/Operations/GetProcessesCountExperimentalRequest.cs + - HathoraCloud/Models/Operations/GetProcessesCountExperimentalResponse.cs + - HathoraCloud/Models/Operations/GetProcessesCountExperimentalResponseBody.cs + - HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponseBody.cs + - HathoraCloud/Models/Operations/GetRoomInfoDeprecatedRequest.cs + - HathoraCloud/Models/Operations/GetRoomInfoDeprecatedResponse.cs + - HathoraCloud/Models/Operations/GetRoomInfoRequest.cs + - HathoraCloud/Models/Operations/GetRoomInfoResponse.cs + - HathoraCloud/Models/Operations/GetRunningProcessesRequest.cs + - HathoraCloud/Models/Operations/GetRunningProcessesResponse.cs + - HathoraCloud/Models/Operations/GetStoppedProcessesRequest.cs + - HathoraCloud/Models/Operations/GetStoppedProcessesResponse.cs + - HathoraCloud/Models/Operations/GetUpcomingInvoiceItemsResponse.cs + - HathoraCloud/Models/Operations/GetUpcomingInvoiceTotalResponse.cs + - HathoraCloud/Models/Operations/GetUpcomingInvoiceTotalResponseBody.cs - HathoraCloud/Models/Operations/GetUserPendingInvitesResponse.cs + - HathoraCloud/Models/Operations/InitStripeCustomerPortalUrlResponse.cs - HathoraCloud/Models/Operations/InviteUserRequest.cs - HathoraCloud/Models/Operations/InviteUserResponse.cs + - HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Request.cs + - HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Response.cs + - HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Request.cs + - HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Response.cs + - HathoraCloud/Models/Operations/ListActivePublicLobbiesRequest.cs + - HathoraCloud/Models/Operations/ListActivePublicLobbiesResponse.cs + - HathoraCloud/Models/Operations/LoginAnonymousRequest.cs + - HathoraCloud/Models/Operations/LoginAnonymousResponse.cs + - HathoraCloud/Models/Operations/LoginGoogleRequest.cs + - HathoraCloud/Models/Operations/LoginGoogleResponse.cs + - HathoraCloud/Models/Operations/LoginNicknameRequest.cs + - HathoraCloud/Models/Operations/LoginNicknameResponse.cs - HathoraCloud/Models/Operations/RejectInviteRequest.cs - HathoraCloud/Models/Operations/RejectInviteResponse.cs - HathoraCloud/Models/Operations/RescindInviteRequest.cs - HathoraCloud/Models/Operations/RescindInviteResponse.cs - - HathoraCloud/Models/Operations/GetProcessInfoDeprecatedRequest.cs - - HathoraCloud/Models/Operations/GetProcessInfoDeprecatedResponse.cs - - HathoraCloud/Models/Operations/GetRunningProcessesRequest.cs - - HathoraCloud/Models/Operations/GetRunningProcessesResponse.cs - - HathoraCloud/Models/Operations/GetStoppedProcessesRequest.cs - - HathoraCloud/Models/Operations/GetStoppedProcessesResponse.cs - - HathoraCloud/Models/Operations/CreateProcessRequest.cs - - HathoraCloud/Models/Operations/CreateProcessResponse.cs - - HathoraCloud/Models/Operations/GetLatestProcessesRequest.cs - - HathoraCloud/Models/Operations/GetLatestProcessesResponse.cs - - HathoraCloud/Models/Operations/GetProcessInfoRequest.cs - - HathoraCloud/Models/Operations/GetProcessInfoResponse.cs + - HathoraCloud/Models/Operations/RevokeOrgTokenRequest.cs + - HathoraCloud/Models/Operations/RevokeOrgTokenResponse.cs + - HathoraCloud/Models/Operations/RunBuildDeprecatedRequest.cs + - HathoraCloud/Models/Operations/RunBuildDeprecatedRequestBody.cs + - HathoraCloud/Models/Operations/RunBuildDeprecatedResponse.cs + - HathoraCloud/Models/Operations/RunBuildRequest.cs + - HathoraCloud/Models/Operations/RunBuildResponse.cs + - HathoraCloud/Models/Operations/RunBuildV2DeprecatedFile.cs + - HathoraCloud/Models/Operations/RunBuildV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/RunBuildV2DeprecatedRequestBody.cs + - HathoraCloud/Models/Operations/RunBuildV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/SendVerificationEmailResponse.cs + - HathoraCloud/Models/Operations/SetLobbyStateRequest.cs + - HathoraCloud/Models/Operations/SetLobbyStateResponse.cs - HathoraCloud/Models/Operations/StopProcessRequest.cs - HathoraCloud/Models/Operations/StopProcessResponse.cs - - HathoraCloud/Models/Operations/CreateRoomDeprecatedRequest.cs - - HathoraCloud/Models/Operations/CreateRoomDeprecatedResponse.cs - - HathoraCloud/Models/Operations/DestroyRoomDeprecatedRequest.cs - - HathoraCloud/Models/Operations/DestroyRoomDeprecatedResponse.cs - - HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedRequest.cs - - HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedResponse.cs - - HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedRequest.cs - - HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedResponse.cs - - HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedRequest.cs - - HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedResponse.cs - - HathoraCloud/Models/Operations/GetRoomInfoDeprecatedRequest.cs - - HathoraCloud/Models/Operations/GetRoomInfoDeprecatedResponse.cs + - HathoraCloud/Models/Operations/StopProcessV2DeprecatedRequest.cs + - HathoraCloud/Models/Operations/StopProcessV2DeprecatedResponse.cs - HathoraCloud/Models/Operations/SuspendRoomDeprecatedRequest.cs - HathoraCloud/Models/Operations/SuspendRoomDeprecatedResponse.cs - - HathoraCloud/Models/Operations/CreateRoomRequest.cs - - HathoraCloud/Models/Operations/CreateRoomResponse.cs - - HathoraCloud/Models/Operations/DestroyRoomRequest.cs - - HathoraCloud/Models/Operations/DestroyRoomResponse.cs - - HathoraCloud/Models/Operations/GetActiveRoomsForProcessRequest.cs - - HathoraCloud/Models/Operations/GetActiveRoomsForProcessResponse.cs - - HathoraCloud/Models/Operations/GetConnectionInfoRequest.cs - - HathoraCloud/Models/Operations/GetConnectionInfoResponse.cs - - HathoraCloud/Models/Operations/GetInactiveRoomsForProcessRequest.cs - - HathoraCloud/Models/Operations/GetInactiveRoomsForProcessResponse.cs - - HathoraCloud/Models/Operations/GetRoomInfoRequest.cs - - HathoraCloud/Models/Operations/GetRoomInfoResponse.cs - HathoraCloud/Models/Operations/SuspendRoomV2DeprecatedRequest.cs - HathoraCloud/Models/Operations/SuspendRoomV2DeprecatedResponse.cs + - HathoraCloud/Models/Operations/UpdateAppRequest.cs + - HathoraCloud/Models/Operations/UpdateAppResponse.cs + - HathoraCloud/Models/Operations/UpdateAppV1DeprecatedRequest.cs + - HathoraCloud/Models/Operations/UpdateAppV1DeprecatedResponse.cs - HathoraCloud/Models/Operations/UpdateRoomConfigRequest.cs - HathoraCloud/Models/Operations/UpdateRoomConfigResponse.cs - - HathoraCloud/Models/Operations/CreateOrgTokenRequest.cs - - HathoraCloud/Models/Operations/CreateOrgTokenResponse.cs - - HathoraCloud/Models/Operations/GetOrgTokensRequest.cs - - HathoraCloud/Models/Operations/GetOrgTokensResponse.cs - - HathoraCloud/Models/Operations/RevokeOrgTokenRequest.cs - - HathoraCloud/Models/Operations/RevokeOrgTokenResponse.cs - - HathoraCloud/Models/Shared/Application.cs - - HathoraCloud/Models/Shared/Google.cs - - HathoraCloud/Models/Shared/AuthConfiguration.cs - - HathoraCloud/Models/Shared/RecordStringNever.cs + - HathoraCloud/Models/Shared/AchPaymentMethod.cs + - HathoraCloud/Models/Shared/ActiveConnectionInfo.cs - HathoraCloud/Models/Shared/AppConfig.cs - - HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildEnv.cs - - HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeployment.cs + - HathoraCloud/Models/Shared/Application.cs - HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuild.cs - - HathoraCloud/Models/Shared/ContainerPort.cs - - HathoraCloud/Models/Shared/TransportType.cs - - HathoraCloud/Models/Shared/RegionalContainerTags.cs + - HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecated.cs + - HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment.cs + - HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedEnv.cs + - HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildEnv.cs + - HathoraCloud/Models/Shared/ApplicationsPage.cs + - HathoraCloud/Models/Shared/AuthConfiguration.cs - HathoraCloud/Models/Shared/Build.cs + - HathoraCloud/Models/Shared/BuildPart.cs - HathoraCloud/Models/Shared/BuildStatus.cs - - HathoraCloud/Models/Shared/Region.cs - - HathoraCloud/Models/Shared/PlayerTokenObject.cs - - HathoraCloud/Models/Shared/GoogleIdTokenObject.cs - - HathoraCloud/Models/Shared/NicknameObject.cs - - HathoraCloud/Models/Shared/Invoice.cs - - HathoraCloud/Models/Shared/InvoiceStatus.cs - - HathoraCloud/Models/Shared/PaymentMethod.cs - - HathoraCloud/Models/Shared/LinkPaymentMethod.cs - - HathoraCloud/Models/Shared/CardPaymentMethod.cs + - HathoraCloud/Models/Shared/BuildV3.cs + - HathoraCloud/Models/Shared/BuildWithMultipartUrls.cs + - HathoraCloud/Models/Shared/BuildWithMultipartUrlsRegionalContainerTags.cs + - HathoraCloud/Models/Shared/BuildWithUploadUrl.cs + - HathoraCloud/Models/Shared/BuildWithUploadUrlRegionalContainerTags.cs + - HathoraCloud/Models/Shared/BuildsV3Page.cs - HathoraCloud/Models/Shared/CardBrand.cs - - HathoraCloud/Models/Shared/AchPaymentMethod.cs - - HathoraCloud/Models/Shared/CustomerPortalUrl.cs + - HathoraCloud/Models/Shared/CardPaymentMethod.cs + - HathoraCloud/Models/Shared/ConnectionInfo.cs + - HathoraCloud/Models/Shared/ConnectionInfoV2.cs + - HathoraCloud/Models/Shared/ContainerPort.cs - HathoraCloud/Models/Shared/CreateBuildParams.cs - - HathoraCloud/Models/Shared/Env.cs - - HathoraCloud/Models/Shared/DeploymentTransportType.cs + - HathoraCloud/Models/Shared/CreateLobbyParams.cs + - HathoraCloud/Models/Shared/CreateLobbyV3Params.cs + - HathoraCloud/Models/Shared/CreateMultipartBuildParams.cs + - HathoraCloud/Models/Shared/CreateOrgToken.cs + - HathoraCloud/Models/Shared/CreateRoomParams.cs + - HathoraCloud/Models/Shared/CreateUserInvite.cs + - HathoraCloud/Models/Shared/CreatedBuildV3WithMultipartUrls.cs + - HathoraCloud/Models/Shared/CreatedBy.cs + - HathoraCloud/Models/Shared/CreatedOrgToken.cs + - HathoraCloud/Models/Shared/CurrentAllocation.cs + - HathoraCloud/Models/Shared/CustomerPortalUrl.cs + - HathoraCloud/Models/Shared/DeletedBuild.cs - HathoraCloud/Models/Shared/Deployment.cs - - HathoraCloud/Models/Shared/PlanName.cs - - HathoraCloud/Models/Shared/DeploymentConfigEnv.cs - HathoraCloud/Models/Shared/DeploymentConfig.cs - - HathoraCloud/Models/Shared/DeploymentV2Env.cs - - HathoraCloud/Models/Shared/DeploymentV2.cs - - HathoraCloud/Models/Shared/DeploymentConfigV2Env.cs - HathoraCloud/Models/Shared/DeploymentConfigV2.cs - - HathoraCloud/Models/Shared/PingEndpoints.cs - - HathoraCloud/Models/Shared/State.cs + - HathoraCloud/Models/Shared/DeploymentConfigV2Env.cs + - HathoraCloud/Models/Shared/DeploymentConfigV3.cs + - HathoraCloud/Models/Shared/DeploymentConfigV3Env.cs + - HathoraCloud/Models/Shared/DeploymentV1.cs + - HathoraCloud/Models/Shared/DeploymentV1Env.cs + - HathoraCloud/Models/Shared/DeploymentV1TransportType.cs + - HathoraCloud/Models/Shared/DeploymentV2.cs + - HathoraCloud/Models/Shared/DeploymentV2Env.cs + - HathoraCloud/Models/Shared/DeploymentV3.cs + - HathoraCloud/Models/Shared/DeploymentV3Env.cs + - HathoraCloud/Models/Shared/DeploymentsV3Page.cs + - HathoraCloud/Models/Shared/Env.cs + - HathoraCloud/Models/Shared/ExposedPort.cs + - HathoraCloud/Models/Shared/Google.cs + - HathoraCloud/Models/Shared/GoogleIdTokenObject.cs + - HathoraCloud/Models/Shared/Invoice.cs + - HathoraCloud/Models/Shared/InvoiceItem.cs + - HathoraCloud/Models/Shared/InvoiceItemPage.cs + - HathoraCloud/Models/Shared/InvoiceStatus.cs + - HathoraCloud/Models/Shared/LinkPaymentMethod.cs + - HathoraCloud/Models/Shared/ListOrgTokens.cs - HathoraCloud/Models/Shared/Lobby.cs - - HathoraCloud/Models/Shared/LobbyVisibility.cs - - HathoraCloud/Models/Shared/LobbyInitialConfig.cs - - HathoraCloud/Models/Shared/CreateLobbyParams.cs - - HathoraCloud/Models/Shared/SetLobbyStateParamsState.cs - - HathoraCloud/Models/Shared/SetLobbyStateParams.cs - HathoraCloud/Models/Shared/LobbyV3.cs - - HathoraCloud/Models/Shared/CreateLobbyV3Params.cs - - HathoraCloud/Models/Shared/VerificationEmailSuccess.cs - - HathoraCloud/Models/Shared/VerificationEmailRequest.cs - - HathoraCloud/Models/Shared/MetricsData.cs - - HathoraCloud/Models/Shared/MetricValue.cs + - HathoraCloud/Models/Shared/LobbyV3CreatedBy.cs + - HathoraCloud/Models/Shared/LobbyVisibility.cs - HathoraCloud/Models/Shared/MetricName.cs - - HathoraCloud/Models/Shared/OrgInvitesPage.cs - - HathoraCloud/Models/Shared/OrgPermission.cs - - HathoraCloud/Models/Shared/OrganizationInviteStatus.cs - - HathoraCloud/Models/Shared/InviteStatusPendingType.cs - - HathoraCloud/Models/Shared/InviteStatusPending.cs - - HathoraCloud/Models/Shared/Type.cs - - HathoraCloud/Models/Shared/InviteStatusAccepted.cs - - HathoraCloud/Models/Shared/InviteStatusRejectedType.cs - - HathoraCloud/Models/Shared/InviteStatusRejected.cs - - HathoraCloud/Models/Shared/InviteStatusRescindedType.cs - - HathoraCloud/Models/Shared/InviteStatusRescinded.cs - - HathoraCloud/Models/Shared/CreateUserInvite.cs - - HathoraCloud/Models/Shared/RescindUserInvite.cs - - HathoraCloud/Models/Shared/ProcessExposedPort.cs + - HathoraCloud/Models/Shared/MetricValue.cs + - HathoraCloud/Models/Shared/MetricsData.cs + - HathoraCloud/Models/Shared/NicknameObject.cs + - HathoraCloud/Models/Shared/OrgMember.cs + - HathoraCloud/Models/Shared/OrgMembersPage.cs + - HathoraCloud/Models/Shared/OrgToken.cs + - HathoraCloud/Models/Shared/OrgTokenStatus.cs + - HathoraCloud/Models/Shared/Organization.cs + - HathoraCloud/Models/Shared/OrgsPage.cs + - HathoraCloud/Models/Shared/PaymentMethod.cs + - HathoraCloud/Models/Shared/PendingOrgInvite.cs + - HathoraCloud/Models/Shared/PendingOrgInvitesPage.cs + - HathoraCloud/Models/Shared/PingEndpoints.cs + - HathoraCloud/Models/Shared/PlanName.cs + - HathoraCloud/Models/Shared/PlayerTokenObject.cs - HathoraCloud/Models/Shared/Process.cs - - HathoraCloud/Models/Shared/ExposedPort.cs - - HathoraCloud/Models/Shared/ProcessWithRoomsExposedPort.cs - - HathoraCloud/Models/Shared/ProcessWithRooms.cs - - HathoraCloud/Models/Shared/RoomWithoutAllocationsCurrentAllocation.cs - - HathoraCloud/Models/Shared/RoomWithoutAllocations.cs - - HathoraCloud/Models/Shared/RoomStatus.cs - - HathoraCloud/Models/Shared/ProcessV2ExposedPort.cs - - HathoraCloud/Models/Shared/ProcessV2.cs + - HathoraCloud/Models/Shared/ProcessExposedPort.cs - HathoraCloud/Models/Shared/ProcessStatus.cs - - HathoraCloud/Models/Shared/CreateRoomParams.cs - - HathoraCloud/Models/Shared/ConnectionInfo.cs - - HathoraCloud/Models/Shared/StartingConnectionInfoStatus.cs - - HathoraCloud/Models/Shared/StartingConnectionInfo.cs - - HathoraCloud/Models/Shared/Status.cs - - HathoraCloud/Models/Shared/ActiveConnectionInfo.cs - - HathoraCloud/Models/Shared/CurrentAllocation.cs + - HathoraCloud/Models/Shared/ProcessV2.cs + - HathoraCloud/Models/Shared/ProcessV2ExposedPort.cs + - HathoraCloud/Models/Shared/ProcessV3.cs + - HathoraCloud/Models/Shared/ProcessV3ExposedPort.cs + - HathoraCloud/Models/Shared/ProcessWithRooms.cs + - HathoraCloud/Models/Shared/ProcessWithRoomsExposedPort.cs + - HathoraCloud/Models/Shared/RecordStringNever.cs + - HathoraCloud/Models/Shared/Region.cs + - HathoraCloud/Models/Shared/RegionalContainerTags.cs + - HathoraCloud/Models/Shared/RescindUserInvite.cs - HathoraCloud/Models/Shared/Room.cs - HathoraCloud/Models/Shared/RoomAllocation.cs - HathoraCloud/Models/Shared/RoomConnectionData.cs - HathoraCloud/Models/Shared/RoomReadyStatus.cs - - HathoraCloud/Models/Shared/ConnectionInfoV2.cs - - HathoraCloud/Models/Shared/UpdateRoomConfigParams.cs - - HathoraCloud/Models/Shared/CreatedOrgToken.cs - - HathoraCloud/Models/Shared/OrgToken.cs - - HathoraCloud/Models/Shared/OrgTokenStatus.cs - - HathoraCloud/Models/Shared/CreateOrgToken.cs - - HathoraCloud/Models/Shared/ListOrgTokens.cs + - HathoraCloud/Models/Shared/RoomStatus.cs + - HathoraCloud/Models/Shared/RoomWithoutAllocations.cs + - HathoraCloud/Models/Shared/RoomWithoutAllocationsCurrentAllocation.cs - HathoraCloud/Models/Shared/Security.cs - - HathoraCloud/Models/Errors/ApiError.cs + - HathoraCloud/Models/Shared/SetLobbyStateParams.cs + - HathoraCloud/Models/Shared/StartingConnectionInfo.cs + - HathoraCloud/Models/Shared/StartingConnectionInfoStatus.cs + - HathoraCloud/Models/Shared/Status.cs + - HathoraCloud/Models/Shared/TransportType.cs + - HathoraCloud/Models/Shared/UpdateRoomConfigParams.cs + - HathoraCloud/Models/Shared/UploadBodyParams.cs + - HathoraCloud/Models/Shared/VerificationEmailRequest.cs + - HathoraCloud/Models/Shared/VerificationEmailSuccess.cs + - HathoraCloud/OrganizationsV1.cs + - HathoraCloud/ProcessesV1.cs + - HathoraCloud/ProcessesV2.cs + - HathoraCloud/ProcessesV3.cs + - HathoraCloud/RoomsV1.cs + - HathoraCloud/RoomsV2.cs + - HathoraCloud/TokensV1.cs + - HathoraCloud/Utils/AnyDeserializer.cs + - HathoraCloud/Utils/BigIntStrConverter.cs + - HathoraCloud/Utils/DateOnly.cs + - HathoraCloud/Utils/DateOnlyConverter.cs + - HathoraCloud/Utils/DecimalStrConverter.cs + - HathoraCloud/Utils/DownloadHandlerStream.cs + - HathoraCloud/Utils/EnumConverter.cs + - HathoraCloud/Utils/FlexibleObjectDeserializer.cs + - HathoraCloud/Utils/HeaderSerializer.cs + - HathoraCloud/Utils/IsoDateTimeSerializer.cs + - HathoraCloud/Utils/MemoryQueueBufferStream.cs + - HathoraCloud/Utils/RequestBodySerializer.cs + - HathoraCloud/Utils/SecuritySerializer.cs + - HathoraCloud/Utils/SpeakeasyHttpClient.cs + - HathoraCloud/Utils/SpeakeasyMetadata.cs + - HathoraCloud/Utils/URLBuilder.cs + - HathoraCloud/Utils/Utilities.cs + - USAGE.md + - docs/Models/Errors/ApiError.md + - docs/Models/Operations/AcceptInviteRequest.md + - docs/Models/Operations/AcceptInviteResponse.md + - docs/Models/Operations/CreateAppRequest.md - docs/Models/Operations/CreateAppResponse.md - - docs/Models/Operations/DeleteAppRequest.md - - docs/Models/Operations/DeleteAppResponse.md - - docs/Models/Operations/GetAppInfoRequest.md - - docs/Models/Operations/GetAppInfoResponse.md - - docs/Models/Operations/GetAppsResponse.md - - docs/Models/Operations/UpdateAppRequest.md - - docs/Models/Operations/UpdateAppResponse.md - - docs/Models/Operations/LoginAnonymousRequest.md - - docs/Models/Operations/LoginAnonymousResponse.md - - docs/Models/Operations/LoginGoogleRequest.md - - docs/Models/Operations/LoginGoogleResponse.md - - docs/Models/Operations/LoginNicknameRequest.md - - docs/Models/Operations/LoginNicknameResponse.md - - docs/Models/Operations/GetBalanceResponse.md - - docs/Models/Operations/GetInvoicesResponse.md - - docs/Models/Operations/GetPaymentMethodResponse.md - - docs/Models/Operations/InitStripeCustomerPortalUrlResponse.md + - docs/Models/Operations/CreateAppV1DeprecatedResponse.md - docs/Models/Operations/CreateBuildDeprecatedRequest.md - docs/Models/Operations/CreateBuildDeprecatedResponse.md + - docs/Models/Operations/CreateBuildRequest.md + - docs/Models/Operations/CreateBuildResponse.md + - docs/Models/Operations/CreateBuildV2DeprecatedRequest.md + - docs/Models/Operations/CreateBuildV2DeprecatedResponse.md + - docs/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedRequest.md + - docs/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedResponse.md + - docs/Models/Operations/CreateDeploymentRequest.md + - docs/Models/Operations/CreateDeploymentResponse.md + - docs/Models/Operations/CreateDeploymentV1DeprecatedRequest.md + - docs/Models/Operations/CreateDeploymentV1DeprecatedResponse.md + - docs/Models/Operations/CreateDeploymentV2DeprecatedRequest.md + - docs/Models/Operations/CreateDeploymentV2DeprecatedResponse.md + - docs/Models/Operations/CreateLobbyDeprecatedRequest.md + - docs/Models/Operations/CreateLobbyDeprecatedResponse.md + - docs/Models/Operations/CreateLobbyDeprecatedSecurity.md + - docs/Models/Operations/CreateLobbyRequest.md + - docs/Models/Operations/CreateLobbyResponse.md + - docs/Models/Operations/CreateLobbySecurity.md + - docs/Models/Operations/CreateLocalLobbyRequest.md + - docs/Models/Operations/CreateLocalLobbyRequestBody.md + - docs/Models/Operations/CreateLocalLobbyResponse.md + - docs/Models/Operations/CreateLocalLobbySecurity.md + - docs/Models/Operations/CreateOrgTokenRequest.md + - docs/Models/Operations/CreateOrgTokenResponse.md + - docs/Models/Operations/CreatePrivateLobbyDeprecatedRequest.md + - docs/Models/Operations/CreatePrivateLobbyDeprecatedResponse.md + - docs/Models/Operations/CreatePrivateLobbyDeprecatedSecurity.md + - docs/Models/Operations/CreatePrivateLobbyRequest.md + - docs/Models/Operations/CreatePrivateLobbyRequestBody.md + - docs/Models/Operations/CreatePrivateLobbyResponse.md + - docs/Models/Operations/CreatePrivateLobbySecurity.md + - docs/Models/Operations/CreateProcessRequest.md + - docs/Models/Operations/CreateProcessResponse.md + - docs/Models/Operations/CreateProcessV2DeprecatedRequest.md + - docs/Models/Operations/CreateProcessV2DeprecatedResponse.md + - docs/Models/Operations/CreatePublicLobbyDeprecatedRequest.md + - docs/Models/Operations/CreatePublicLobbyDeprecatedResponse.md + - docs/Models/Operations/CreatePublicLobbyDeprecatedSecurity.md + - docs/Models/Operations/CreatePublicLobbyRequest.md + - docs/Models/Operations/CreatePublicLobbyRequestBody.md + - docs/Models/Operations/CreatePublicLobbyResponse.md + - docs/Models/Operations/CreatePublicLobbySecurity.md + - docs/Models/Operations/CreateRoomDeprecatedRequest.md + - docs/Models/Operations/CreateRoomDeprecatedResponse.md + - docs/Models/Operations/CreateRoomRequest.md + - docs/Models/Operations/CreateRoomResponse.md + - docs/Models/Operations/CreateWithMultipartUploadsV2DeprecatedRequest.md + - docs/Models/Operations/CreateWithMultipartUploadsV2DeprecatedResponse.md + - docs/Models/Operations/DeleteAppRequest.md + - docs/Models/Operations/DeleteAppResponse.md + - docs/Models/Operations/DeleteAppV1DeprecatedRequest.md + - docs/Models/Operations/DeleteAppV1DeprecatedResponse.md - docs/Models/Operations/DeleteBuildDeprecatedRequest.md - docs/Models/Operations/DeleteBuildDeprecatedResponse.md + - docs/Models/Operations/DeleteBuildRequest.md + - docs/Models/Operations/DeleteBuildResponse.md + - docs/Models/Operations/DeleteBuildV2DeprecatedRequest.md + - docs/Models/Operations/DeleteBuildV2DeprecatedResponse.md + - docs/Models/Operations/DestroyRoomDeprecatedRequest.md + - docs/Models/Operations/DestroyRoomDeprecatedResponse.md + - docs/Models/Operations/DestroyRoomRequest.md + - docs/Models/Operations/DestroyRoomResponse.md + - docs/Models/Operations/DownloadLogForProcessRequest.md + - docs/Models/Operations/DownloadLogForProcessResponse.md + - docs/Models/Operations/File.md + - docs/Models/Operations/GetActiveRoomsForProcessDeprecatedRequest.md + - docs/Models/Operations/GetActiveRoomsForProcessDeprecatedResponse.md + - docs/Models/Operations/GetActiveRoomsForProcessRequest.md + - docs/Models/Operations/GetActiveRoomsForProcessResponse.md + - docs/Models/Operations/GetAppInfoV1DeprecatedRequest.md + - docs/Models/Operations/GetAppInfoV1DeprecatedResponse.md + - docs/Models/Operations/GetAppRequest.md + - docs/Models/Operations/GetAppResponse.md + - docs/Models/Operations/GetAppsRequest.md + - docs/Models/Operations/GetAppsResponse.md + - docs/Models/Operations/GetAppsV1DeprecatedResponse.md + - docs/Models/Operations/GetBalanceResponse.md - docs/Models/Operations/GetBuildInfoDeprecatedRequest.md - docs/Models/Operations/GetBuildInfoDeprecatedResponse.md + - docs/Models/Operations/GetBuildInfoV2DeprecatedRequest.md + - docs/Models/Operations/GetBuildInfoV2DeprecatedResponse.md + - docs/Models/Operations/GetBuildRequest.md + - docs/Models/Operations/GetBuildResponse.md - docs/Models/Operations/GetBuildsDeprecatedRequest.md - docs/Models/Operations/GetBuildsDeprecatedResponse.md - - docs/Models/Operations/File.md - - docs/Models/Operations/RunBuildDeprecatedRequestBody.md - - docs/Models/Operations/RunBuildDeprecatedRequest.md - - docs/Models/Operations/RunBuildDeprecatedResponse.md - - docs/Models/Operations/CreateBuildRequest.md - - docs/Models/Operations/CreateBuildResponse.md - - docs/Models/Operations/DeleteBuildRequest.md - - docs/Models/Operations/DeleteBuildResponse.md - - docs/Models/Operations/GetBuildInfoRequest.md - - docs/Models/Operations/GetBuildInfoResponse.md - docs/Models/Operations/GetBuildsRequest.md - docs/Models/Operations/GetBuildsResponse.md - - docs/Models/Operations/RunBuildFile.md - - docs/Models/Operations/RunBuildRequestBody.md - - docs/Models/Operations/RunBuildRequest.md - - docs/Models/Operations/RunBuildResponse.md - - docs/Models/Operations/CreateDeploymentDeprecatedRequest.md - - docs/Models/Operations/CreateDeploymentDeprecatedResponse.md - - docs/Models/Operations/GetDeploymentInfoDeprecatedRequest.md - - docs/Models/Operations/GetDeploymentInfoDeprecatedResponse.md - - docs/Models/Operations/GetDeploymentsDeprecatedRequest.md - - docs/Models/Operations/GetDeploymentsDeprecatedResponse.md - - docs/Models/Operations/GetLatestDeploymentDeprecatedRequest.md - - docs/Models/Operations/GetLatestDeploymentDeprecatedResponse.md - - docs/Models/Operations/CreateDeploymentRequest.md - - docs/Models/Operations/CreateDeploymentResponse.md - - docs/Models/Operations/GetDeploymentInfoRequest.md - - docs/Models/Operations/GetDeploymentInfoResponse.md + - docs/Models/Operations/GetBuildsV2DeprecatedRequest.md + - docs/Models/Operations/GetBuildsV2DeprecatedResponse.md + - docs/Models/Operations/GetConnectionInfoDeprecatedRequest.md + - docs/Models/Operations/GetConnectionInfoDeprecatedResponse.md + - docs/Models/Operations/GetConnectionInfoRequest.md + - docs/Models/Operations/GetConnectionInfoResponse.md + - docs/Models/Operations/GetDeploymentInfoV1DeprecatedRequest.md + - docs/Models/Operations/GetDeploymentInfoV1DeprecatedResponse.md + - docs/Models/Operations/GetDeploymentInfoV2DeprecatedRequest.md + - docs/Models/Operations/GetDeploymentInfoV2DeprecatedResponse.md + - docs/Models/Operations/GetDeploymentRequest.md + - docs/Models/Operations/GetDeploymentResponse.md - docs/Models/Operations/GetDeploymentsRequest.md - docs/Models/Operations/GetDeploymentsResponse.md + - docs/Models/Operations/GetDeploymentsV1DeprecatedRequest.md + - docs/Models/Operations/GetDeploymentsV1DeprecatedResponse.md + - docs/Models/Operations/GetDeploymentsV2DeprecatedRequest.md + - docs/Models/Operations/GetDeploymentsV2DeprecatedResponse.md + - docs/Models/Operations/GetInactiveRoomsForProcessDeprecatedRequest.md + - docs/Models/Operations/GetInactiveRoomsForProcessDeprecatedResponse.md + - docs/Models/Operations/GetInactiveRoomsForProcessRequest.md + - docs/Models/Operations/GetInactiveRoomsForProcessResponse.md + - docs/Models/Operations/GetInvoicesResponse.md - docs/Models/Operations/GetLatestDeploymentRequest.md - docs/Models/Operations/GetLatestDeploymentResponse.md - - docs/Models/Operations/GetPingServiceEndpointsDeprecatedResponse.md - - docs/Models/Operations/GetPingServiceEndpointsResponse.md - - docs/Models/Operations/CreatePrivateLobbyDeprecatedSecurity.md - - docs/Models/Operations/CreatePrivateLobbyDeprecatedRequest.md - - docs/Models/Operations/CreatePrivateLobbyDeprecatedResponse.md - - docs/Models/Operations/CreatePublicLobbyDeprecatedSecurity.md - - docs/Models/Operations/CreatePublicLobbyDeprecatedRequest.md - - docs/Models/Operations/CreatePublicLobbyDeprecatedResponse.md - - docs/Models/Operations/ListActivePublicLobbiesDeprecatedV1Request.md - - docs/Models/Operations/ListActivePublicLobbiesDeprecatedV1Response.md - - docs/Models/Operations/CreateLobbyDeprecatedSecurity.md - - docs/Models/Operations/CreateLobbyDeprecatedRequest.md - - docs/Models/Operations/CreateLobbyDeprecatedResponse.md - - docs/Models/Operations/CreateLocalLobbySecurity.md - - docs/Models/Operations/CreateLocalLobbyRequestBody.md - - docs/Models/Operations/CreateLocalLobbyRequest.md - - docs/Models/Operations/CreateLocalLobbyResponse.md - - docs/Models/Operations/CreatePrivateLobbySecurity.md - - docs/Models/Operations/CreatePrivateLobbyRequestBody.md - - docs/Models/Operations/CreatePrivateLobbyRequest.md - - docs/Models/Operations/CreatePrivateLobbyResponse.md - - docs/Models/Operations/CreatePublicLobbySecurity.md - - docs/Models/Operations/CreatePublicLobbyRequestBody.md - - docs/Models/Operations/CreatePublicLobbyRequest.md - - docs/Models/Operations/CreatePublicLobbyResponse.md - - docs/Models/Operations/GetLobbyInfoRequest.md - - docs/Models/Operations/GetLobbyInfoResponse.md - - docs/Models/Operations/ListActivePublicLobbiesDeprecatedV2Request.md - - docs/Models/Operations/ListActivePublicLobbiesDeprecatedV2Response.md - - docs/Models/Operations/SetLobbyStateRequest.md - - docs/Models/Operations/SetLobbyStateResponse.md - - docs/Models/Operations/CreateLobbySecurity.md - - docs/Models/Operations/CreateLobbyRequest.md - - docs/Models/Operations/CreateLobbyResponse.md + - docs/Models/Operations/GetLatestDeploymentV1DeprecatedRequest.md + - docs/Models/Operations/GetLatestDeploymentV1DeprecatedResponse.md + - docs/Models/Operations/GetLatestDeploymentV2DeprecatedRequest.md + - docs/Models/Operations/GetLatestDeploymentV2DeprecatedResponse.md + - docs/Models/Operations/GetLatestProcessesRequest.md + - docs/Models/Operations/GetLatestProcessesResponse.md + - docs/Models/Operations/GetLatestProcessesV2DeprecatedRequest.md + - docs/Models/Operations/GetLatestProcessesV2DeprecatedResponse.md - docs/Models/Operations/GetLobbyInfoByRoomIdRequest.md - docs/Models/Operations/GetLobbyInfoByRoomIdResponse.md - docs/Models/Operations/GetLobbyInfoByShortCodeRequest.md - docs/Models/Operations/GetLobbyInfoByShortCodeResponse.md - - docs/Models/Operations/ListActivePublicLobbiesRequest.md - - docs/Models/Operations/ListActivePublicLobbiesResponse.md - - docs/Models/Operations/DownloadLogForProcessRequest.md - - docs/Models/Operations/DownloadLogForProcessResponse.md + - docs/Models/Operations/GetLobbyInfoRequest.md + - docs/Models/Operations/GetLobbyInfoResponse.md - docs/Models/Operations/GetLogsForAppRequest.md - docs/Models/Operations/GetLogsForAppResponse.md - docs/Models/Operations/GetLogsForDeploymentRequest.md - docs/Models/Operations/GetLogsForDeploymentResponse.md - docs/Models/Operations/GetLogsForProcessRequest.md - docs/Models/Operations/GetLogsForProcessResponse.md - - docs/Models/Operations/SendVerificationEmailResponse.md - docs/Models/Operations/GetMetricsRequest.md - docs/Models/Operations/GetMetricsResponse.md - - docs/Models/Operations/AcceptInviteRequest.md - - docs/Models/Operations/AcceptInviteResponse.md + - docs/Models/Operations/GetOrgMembersRequest.md + - docs/Models/Operations/GetOrgMembersResponse.md - docs/Models/Operations/GetOrgPendingInvitesRequest.md - docs/Models/Operations/GetOrgPendingInvitesResponse.md + - docs/Models/Operations/GetOrgTokensRequest.md + - docs/Models/Operations/GetOrgTokensResponse.md + - docs/Models/Operations/GetOrgsResponse.md + - docs/Models/Operations/GetPaymentMethodResponse.md + - docs/Models/Operations/GetPingServiceEndpointsDeprecatedResponse.md + - docs/Models/Operations/GetPingServiceEndpointsResponse.md + - docs/Models/Operations/GetProcessInfoDeprecatedRequest.md + - docs/Models/Operations/GetProcessInfoDeprecatedResponse.md + - docs/Models/Operations/GetProcessInfoV2DeprecatedRequest.md + - docs/Models/Operations/GetProcessInfoV2DeprecatedResponse.md + - docs/Models/Operations/GetProcessRequest.md + - docs/Models/Operations/GetProcessResponse.md + - docs/Models/Operations/GetProcessesCountExperimentalRequest.md + - docs/Models/Operations/GetProcessesCountExperimentalResponse.md + - docs/Models/Operations/GetProcessesCountExperimentalResponseBody.md + - docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedRequest.md + - docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponse.md + - docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponseBody.md + - docs/Models/Operations/GetRoomInfoDeprecatedRequest.md + - docs/Models/Operations/GetRoomInfoDeprecatedResponse.md + - docs/Models/Operations/GetRoomInfoRequest.md + - docs/Models/Operations/GetRoomInfoResponse.md + - docs/Models/Operations/GetRunningProcessesRequest.md + - docs/Models/Operations/GetRunningProcessesResponse.md + - docs/Models/Operations/GetStoppedProcessesRequest.md + - docs/Models/Operations/GetStoppedProcessesResponse.md + - docs/Models/Operations/GetUpcomingInvoiceItemsResponse.md + - docs/Models/Operations/GetUpcomingInvoiceTotalResponse.md + - docs/Models/Operations/GetUpcomingInvoiceTotalResponseBody.md - docs/Models/Operations/GetUserPendingInvitesResponse.md + - docs/Models/Operations/InitStripeCustomerPortalUrlResponse.md - docs/Models/Operations/InviteUserRequest.md - docs/Models/Operations/InviteUserResponse.md + - docs/Models/Operations/ListActivePublicLobbiesDeprecatedV1Request.md + - docs/Models/Operations/ListActivePublicLobbiesDeprecatedV1Response.md + - docs/Models/Operations/ListActivePublicLobbiesDeprecatedV2Request.md + - docs/Models/Operations/ListActivePublicLobbiesDeprecatedV2Response.md + - docs/Models/Operations/ListActivePublicLobbiesRequest.md + - docs/Models/Operations/ListActivePublicLobbiesResponse.md + - docs/Models/Operations/LoginAnonymousRequest.md + - docs/Models/Operations/LoginAnonymousResponse.md + - docs/Models/Operations/LoginGoogleRequest.md + - docs/Models/Operations/LoginGoogleResponse.md + - docs/Models/Operations/LoginNicknameRequest.md + - docs/Models/Operations/LoginNicknameResponse.md - docs/Models/Operations/RejectInviteRequest.md - docs/Models/Operations/RejectInviteResponse.md - docs/Models/Operations/RescindInviteRequest.md - docs/Models/Operations/RescindInviteResponse.md - - docs/Models/Operations/GetProcessInfoDeprecatedRequest.md - - docs/Models/Operations/GetProcessInfoDeprecatedResponse.md - - docs/Models/Operations/GetRunningProcessesRequest.md - - docs/Models/Operations/GetRunningProcessesResponse.md - - docs/Models/Operations/GetStoppedProcessesRequest.md - - docs/Models/Operations/GetStoppedProcessesResponse.md - - docs/Models/Operations/CreateProcessRequest.md - - docs/Models/Operations/CreateProcessResponse.md - - docs/Models/Operations/GetLatestProcessesRequest.md - - docs/Models/Operations/GetLatestProcessesResponse.md - - docs/Models/Operations/GetProcessInfoRequest.md - - docs/Models/Operations/GetProcessInfoResponse.md + - docs/Models/Operations/RevokeOrgTokenRequest.md + - docs/Models/Operations/RevokeOrgTokenResponse.md + - docs/Models/Operations/RunBuildDeprecatedRequest.md + - docs/Models/Operations/RunBuildDeprecatedRequestBody.md + - docs/Models/Operations/RunBuildDeprecatedResponse.md + - docs/Models/Operations/RunBuildRequest.md + - docs/Models/Operations/RunBuildResponse.md + - docs/Models/Operations/RunBuildV2DeprecatedFile.md + - docs/Models/Operations/RunBuildV2DeprecatedRequest.md + - docs/Models/Operations/RunBuildV2DeprecatedRequestBody.md + - docs/Models/Operations/RunBuildV2DeprecatedResponse.md + - docs/Models/Operations/SendVerificationEmailResponse.md + - docs/Models/Operations/SetLobbyStateRequest.md + - docs/Models/Operations/SetLobbyStateResponse.md - docs/Models/Operations/StopProcessRequest.md - docs/Models/Operations/StopProcessResponse.md - - docs/Models/Operations/CreateRoomDeprecatedRequest.md - - docs/Models/Operations/CreateRoomDeprecatedResponse.md - - docs/Models/Operations/DestroyRoomDeprecatedRequest.md - - docs/Models/Operations/DestroyRoomDeprecatedResponse.md - - docs/Models/Operations/GetActiveRoomsForProcessDeprecatedRequest.md - - docs/Models/Operations/GetActiveRoomsForProcessDeprecatedResponse.md - - docs/Models/Operations/GetConnectionInfoDeprecatedRequest.md - - docs/Models/Operations/GetConnectionInfoDeprecatedResponse.md - - docs/Models/Operations/GetInactiveRoomsForProcessDeprecatedRequest.md - - docs/Models/Operations/GetInactiveRoomsForProcessDeprecatedResponse.md - - docs/Models/Operations/GetRoomInfoDeprecatedRequest.md - - docs/Models/Operations/GetRoomInfoDeprecatedResponse.md + - docs/Models/Operations/StopProcessV2DeprecatedRequest.md + - docs/Models/Operations/StopProcessV2DeprecatedResponse.md - docs/Models/Operations/SuspendRoomDeprecatedRequest.md - docs/Models/Operations/SuspendRoomDeprecatedResponse.md - - docs/Models/Operations/CreateRoomRequest.md - - docs/Models/Operations/CreateRoomResponse.md - - docs/Models/Operations/DestroyRoomRequest.md - - docs/Models/Operations/DestroyRoomResponse.md - - docs/Models/Operations/GetActiveRoomsForProcessRequest.md - - docs/Models/Operations/GetActiveRoomsForProcessResponse.md - - docs/Models/Operations/GetConnectionInfoRequest.md - - docs/Models/Operations/GetConnectionInfoResponse.md - - docs/Models/Operations/GetInactiveRoomsForProcessRequest.md - - docs/Models/Operations/GetInactiveRoomsForProcessResponse.md - - docs/Models/Operations/GetRoomInfoRequest.md - - docs/Models/Operations/GetRoomInfoResponse.md - docs/Models/Operations/SuspendRoomV2DeprecatedRequest.md - docs/Models/Operations/SuspendRoomV2DeprecatedResponse.md + - docs/Models/Operations/UpdateAppRequest.md + - docs/Models/Operations/UpdateAppResponse.md + - docs/Models/Operations/UpdateAppV1DeprecatedRequest.md + - docs/Models/Operations/UpdateAppV1DeprecatedResponse.md - docs/Models/Operations/UpdateRoomConfigRequest.md - docs/Models/Operations/UpdateRoomConfigResponse.md - - docs/Models/Operations/CreateOrgTokenRequest.md - - docs/Models/Operations/CreateOrgTokenResponse.md - - docs/Models/Operations/GetOrgTokensRequest.md - - docs/Models/Operations/GetOrgTokensResponse.md - - docs/Models/Operations/RevokeOrgTokenRequest.md - - docs/Models/Operations/RevokeOrgTokenResponse.md - - docs/Models/Shared/Application.md - - docs/Models/Shared/Google.md - - docs/Models/Shared/AuthConfiguration.md - - docs/Models/Shared/RecordStringNever.md + - docs/Models/Shared/AchPaymentMethod.md + - docs/Models/Shared/ActiveConnectionInfo.md - docs/Models/Shared/AppConfig.md - - docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildEnv.md - - docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeployment.md + - docs/Models/Shared/Application.md - docs/Models/Shared/ApplicationWithLatestDeploymentAndBuild.md - - docs/Models/Shared/ContainerPort.md - - docs/Models/Shared/TransportType.md - - docs/Models/Shared/RegionalContainerTags.md + - docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecated.md + - docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment.md + - docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedEnv.md + - docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildEnv.md + - docs/Models/Shared/ApplicationsPage.md + - docs/Models/Shared/AuthConfiguration.md - docs/Models/Shared/Build.md + - docs/Models/Shared/BuildPart.md - docs/Models/Shared/BuildStatus.md - - docs/Models/Shared/Region.md - - docs/Models/Shared/PlayerTokenObject.md - - docs/Models/Shared/GoogleIdTokenObject.md - - docs/Models/Shared/NicknameObject.md - - docs/Models/Shared/Invoice.md - - docs/Models/Shared/InvoiceStatus.md - - docs/Models/Shared/PaymentMethod.md - - docs/Models/Shared/LinkPaymentMethod.md - - docs/Models/Shared/CardPaymentMethod.md + - docs/Models/Shared/BuildV3.md + - docs/Models/Shared/BuildWithMultipartUrls.md + - docs/Models/Shared/BuildWithMultipartUrlsRegionalContainerTags.md + - docs/Models/Shared/BuildWithUploadUrl.md + - docs/Models/Shared/BuildWithUploadUrlRegionalContainerTags.md + - docs/Models/Shared/BuildsV3Page.md - docs/Models/Shared/CardBrand.md - - docs/Models/Shared/AchPaymentMethod.md - - docs/Models/Shared/CustomerPortalUrl.md + - docs/Models/Shared/CardPaymentMethod.md + - docs/Models/Shared/ConnectionInfo.md + - docs/Models/Shared/ConnectionInfoV2.md + - docs/Models/Shared/ContainerPort.md - docs/Models/Shared/CreateBuildParams.md - - docs/Models/Shared/Env.md - - docs/Models/Shared/DeploymentTransportType.md + - docs/Models/Shared/CreateLobbyParams.md + - docs/Models/Shared/CreateLobbyV3Params.md + - docs/Models/Shared/CreateMultipartBuildParams.md + - docs/Models/Shared/CreateOrgToken.md + - docs/Models/Shared/CreateRoomParams.md + - docs/Models/Shared/CreateUserInvite.md + - docs/Models/Shared/CreatedBuildV3WithMultipartUrls.md + - docs/Models/Shared/CreatedBy.md + - docs/Models/Shared/CreatedOrgToken.md + - docs/Models/Shared/CurrentAllocation.md + - docs/Models/Shared/CustomerPortalUrl.md + - docs/Models/Shared/DeletedBuild.md - docs/Models/Shared/Deployment.md - - docs/Models/Shared/PlanName.md - - docs/Models/Shared/DeploymentConfigEnv.md - docs/Models/Shared/DeploymentConfig.md - - docs/Models/Shared/DeploymentV2Env.md - - docs/Models/Shared/DeploymentV2.md - - docs/Models/Shared/DeploymentConfigV2Env.md - docs/Models/Shared/DeploymentConfigV2.md - - docs/Models/Shared/PingEndpoints.md - - docs/Models/Shared/State.md + - docs/Models/Shared/DeploymentConfigV2Env.md + - docs/Models/Shared/DeploymentConfigV3.md + - docs/Models/Shared/DeploymentConfigV3Env.md + - docs/Models/Shared/DeploymentV1.md + - docs/Models/Shared/DeploymentV1Env.md + - docs/Models/Shared/DeploymentV1TransportType.md + - docs/Models/Shared/DeploymentV2.md + - docs/Models/Shared/DeploymentV2Env.md + - docs/Models/Shared/DeploymentV3.md + - docs/Models/Shared/DeploymentV3Env.md + - docs/Models/Shared/DeploymentsV3Page.md + - docs/Models/Shared/Env.md + - docs/Models/Shared/ExposedPort.md + - docs/Models/Shared/Google.md + - docs/Models/Shared/GoogleIdTokenObject.md + - docs/Models/Shared/Invoice.md + - docs/Models/Shared/InvoiceItem.md + - docs/Models/Shared/InvoiceItemPage.md + - docs/Models/Shared/InvoiceStatus.md + - docs/Models/Shared/LinkPaymentMethod.md + - docs/Models/Shared/ListOrgTokens.md - docs/Models/Shared/Lobby.md - - docs/Models/Shared/LobbyVisibility.md - - docs/Models/Shared/LobbyInitialConfig.md - - docs/Models/Shared/CreateLobbyParams.md - - docs/Models/Shared/SetLobbyStateParamsState.md - - docs/Models/Shared/SetLobbyStateParams.md - docs/Models/Shared/LobbyV3.md - - docs/Models/Shared/CreateLobbyV3Params.md - - docs/Models/Shared/VerificationEmailSuccess.md - - docs/Models/Shared/VerificationEmailRequest.md - - docs/Models/Shared/MetricsData.md - - docs/Models/Shared/MetricValue.md + - docs/Models/Shared/LobbyV3CreatedBy.md + - docs/Models/Shared/LobbyVisibility.md - docs/Models/Shared/MetricName.md - - docs/Models/Shared/OrgInvitesPage.md - - docs/Models/Shared/OrgPermission.md - - docs/Models/Shared/OrganizationInviteStatus.md - - docs/Models/Shared/InviteStatusPendingType.md - - docs/Models/Shared/InviteStatusPending.md - - docs/Models/Shared/Type.md - - docs/Models/Shared/InviteStatusAccepted.md - - docs/Models/Shared/InviteStatusRejectedType.md - - docs/Models/Shared/InviteStatusRejected.md - - docs/Models/Shared/InviteStatusRescindedType.md - - docs/Models/Shared/InviteStatusRescinded.md - - docs/Models/Shared/CreateUserInvite.md - - docs/Models/Shared/RescindUserInvite.md - - docs/Models/Shared/ProcessExposedPort.md + - docs/Models/Shared/MetricValue.md + - docs/Models/Shared/MetricsData.md + - docs/Models/Shared/NicknameObject.md + - docs/Models/Shared/OrgMember.md + - docs/Models/Shared/OrgMembersPage.md + - docs/Models/Shared/OrgToken.md + - docs/Models/Shared/OrgTokenStatus.md + - docs/Models/Shared/Organization.md + - docs/Models/Shared/OrgsPage.md + - docs/Models/Shared/PaymentMethod.md + - docs/Models/Shared/PendingOrgInvite.md + - docs/Models/Shared/PendingOrgInvitesPage.md + - docs/Models/Shared/PingEndpoints.md + - docs/Models/Shared/PlanName.md + - docs/Models/Shared/PlayerTokenObject.md - docs/Models/Shared/Process.md - - docs/Models/Shared/ExposedPort.md - - docs/Models/Shared/ProcessWithRoomsExposedPort.md - - docs/Models/Shared/ProcessWithRooms.md - - docs/Models/Shared/RoomWithoutAllocationsCurrentAllocation.md - - docs/Models/Shared/RoomWithoutAllocations.md - - docs/Models/Shared/RoomStatus.md - - docs/Models/Shared/ProcessV2ExposedPort.md - - docs/Models/Shared/ProcessV2.md + - docs/Models/Shared/ProcessExposedPort.md - docs/Models/Shared/ProcessStatus.md - - docs/Models/Shared/CreateRoomParams.md - - docs/Models/Shared/ConnectionInfo.md - - docs/Models/Shared/StartingConnectionInfoStatus.md - - docs/Models/Shared/StartingConnectionInfo.md - - docs/Models/Shared/Status.md - - docs/Models/Shared/ActiveConnectionInfo.md - - docs/Models/Shared/CurrentAllocation.md + - docs/Models/Shared/ProcessV2.md + - docs/Models/Shared/ProcessV2ExposedPort.md + - docs/Models/Shared/ProcessV3.md + - docs/Models/Shared/ProcessV3ExposedPort.md + - docs/Models/Shared/ProcessWithRooms.md + - docs/Models/Shared/ProcessWithRoomsExposedPort.md + - docs/Models/Shared/RecordStringNever.md + - docs/Models/Shared/Region.md + - docs/Models/Shared/RegionalContainerTags.md + - docs/Models/Shared/RescindUserInvite.md - docs/Models/Shared/Room.md - docs/Models/Shared/RoomAllocation.md - docs/Models/Shared/RoomConnectionData.md - docs/Models/Shared/RoomReadyStatus.md - - docs/Models/Shared/ConnectionInfoV2.md - - docs/Models/Shared/UpdateRoomConfigParams.md - - docs/Models/Shared/CreatedOrgToken.md - - docs/Models/Shared/OrgToken.md - - docs/Models/Shared/OrgTokenStatus.md - - docs/Models/Shared/CreateOrgToken.md - - docs/Models/Shared/ListOrgTokens.md + - docs/Models/Shared/RoomStatus.md + - docs/Models/Shared/RoomWithoutAllocations.md + - docs/Models/Shared/RoomWithoutAllocationsCurrentAllocation.md - docs/Models/Shared/Security.md - - docs/Models/Errors/ApiError.md - - docs/sdks/hathoracloudsdk/README.md - - docs/sdks/appv1/README.md + - docs/Models/Shared/SetLobbyStateParams.md + - docs/Models/Shared/StartingConnectionInfo.md + - docs/Models/Shared/StartingConnectionInfoStatus.md + - docs/Models/Shared/Status.md + - docs/Models/Shared/TransportType.md + - docs/Models/Shared/UpdateRoomConfigParams.md + - docs/Models/Shared/UploadBodyParams.md + - docs/Models/Shared/VerificationEmailRequest.md + - docs/Models/Shared/VerificationEmailSuccess.md + - docs/sdks/appsv1/README.md + - docs/sdks/appsv2/README.md - docs/sdks/authv1/README.md - docs/sdks/billingv1/README.md - - docs/sdks/buildv1/README.md - - docs/sdks/buildv2/README.md - - docs/sdks/deploymentv1/README.md - - docs/sdks/deploymentv2/README.md + - docs/sdks/buildsv1/README.md + - docs/sdks/buildsv2/README.md + - docs/sdks/buildsv3/README.md + - docs/sdks/deploymentsv1/README.md + - docs/sdks/deploymentsv2/README.md + - docs/sdks/deploymentsv3/README.md - docs/sdks/discoveryv1/README.md - docs/sdks/discoveryv2/README.md - - docs/sdks/lobbyv1/README.md - - docs/sdks/lobbyv2/README.md - - docs/sdks/lobbyv3sdk/README.md - - docs/sdks/logv1/README.md + - docs/sdks/hathoracloudsdk/README.md + - docs/sdks/lobbiesv1/README.md + - docs/sdks/lobbiesv2/README.md + - docs/sdks/lobbiesv3/README.md + - docs/sdks/logsv1/README.md - docs/sdks/managementv1/README.md - docs/sdks/metricsv1/README.md - docs/sdks/organizationsv1/README.md - docs/sdks/processesv1/README.md - docs/sdks/processesv2/README.md - - docs/sdks/roomv1/README.md - - docs/sdks/roomv2/README.md - - docs/sdks/orgtokensv1/README.md - - USAGE.md - - .gitattributes + - docs/sdks/processesv3/README.md + - docs/sdks/roomsv1/README.md + - docs/sdks/roomsv2/README.md + - docs/sdks/tokensv1/README.md + - global.json +examples: + CreateAppV1Deprecated: + speakeasy-default-create-app-v1-deprecated: + requestBody: + application/json: {"appName": "minecraft"} + responses: + "201": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "appName": "minecraft", "appSecret": "secret-6f706e83-0ec1-437a-9a46-7d4281eb2f39", "createdAt": "2023-02-17T14:23:22.535Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2022-04-02T22:47:49.404Z", "deletedBy": "noreply@hathora.dev", "orgId": "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"} + "401": + application/json: {"message": ""} + DeleteAppV1Deprecated: + speakeasy-default-delete-app-v1-deprecated: + responses: + "401": + application/json: {"message": ""} + GetAppInfoV1Deprecated: + speakeasy-default-get-app-info-v1-deprecated: + responses: + "200": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "appName": "minecraft", "appSecret": "secret-6f706e83-0ec1-437a-9a46-7d4281eb2f39", "createdAt": "2022-07-24T20:16:34.762Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2024-04-08T13:25:03.801Z", "deletedBy": "noreply@hathora.dev", "orgId": "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"} + "401": + application/json: {"message": ""} + GetAppsV1Deprecated: + speakeasy-default-get-apps-v1-deprecated: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + UpdateAppV1Deprecated: + speakeasy-default-update-app-v1-deprecated: + requestBody: + application/json: {"appName": "minecraft"} + responses: + "200": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "appName": "minecraft", "appSecret": "secret-6f706e83-0ec1-437a-9a46-7d4281eb2f39", "createdAt": "2022-12-19T03:26:23.125Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2023-06-24T16:26:05.711Z", "deletedBy": "noreply@hathora.dev", "orgId": "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"} + "401": + application/json: {"message": ""} + CreateApp: + speakeasy-default-create-app: + parameters: + query: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + requestBody: + application/json: {"appName": "minecraft"} + responses: + "201": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "appName": "minecraft", "appSecret": "secret-6f706e83-0ec1-437a-9a46-7d4281eb2f39", "createdAt": "2024-03-25T14:27:17.124Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2022-12-21T05:01:10.685Z", "deletedBy": "noreply@hathora.dev", "orgId": "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"} + "401": + application/json: {"message": ""} + DeleteApp: + speakeasy-default-delete-app: + responses: + "401": + application/json: {"message": ""} + GetApp: + speakeasy-default-get-app: + responses: + "200": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "appName": "minecraft", "appSecret": "secret-6f706e83-0ec1-437a-9a46-7d4281eb2f39", "createdAt": "2023-02-18T07:51:03.251Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2023-09-09T14:12:49.427Z", "deletedBy": "noreply@hathora.dev", "orgId": "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"} + "401": + application/json: {"message": ""} + GetApps: + speakeasy-default-get-apps: + parameters: + query: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + responses: + "200": + application/json: {"applications": []} + "401": + application/json: {"message": ""} + UpdateApp: + speakeasy-default-update-app: + requestBody: + application/json: {"appName": "minecraft"} + responses: + "200": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "appName": "minecraft", "appSecret": "secret-6f706e83-0ec1-437a-9a46-7d4281eb2f39", "createdAt": "2022-08-09T16:09:30.566Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2022-06-04T01:44:27.157Z", "deletedBy": "noreply@hathora.dev", "orgId": "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39"} + "401": + application/json: {"message": ""} + LoginAnonymous: + speakeasy-default-login-anonymous: + responses: + "200": + application/json: {"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYW5vbnltb3VzIiwiaWQiOiJ3aDA4eWN3eTJwOSIsIm5hbWUiOiJqaXR0ZXJ5LXNhbG1vbi1ndWxsIiwiaWF0IjoxNjg5MzQ5MTk3fQ.-LzlPhZw2tw0ycZ229IRHwwmINGKWNPFMDrXOphLjEk"} + "404": + application/json: {"message": ""} + LoginGoogle: + speakeasy-default-login-google: + requestBody: + application/json: {"idToken": "eyJhbGciOiJSUzI1NiIsImtpZCI6ImZkNDhhNzUxMzhkOWQ0OGYwYWE2MzVlZjU2OWM0ZTE5NmY3YWU4ZDYiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiYXpwIjoiODQ4NDEyODI2Nzg4LW00bXNyYjZxNDRkbTJ1ZTNrZ3Z1aTBmcTdrZGE1NWxzLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiYXVkIjoiODQ4NDEyODI2Nzg4LW00bXNyYjZxNDRkbTJ1ZTNrZ3Z1aTBmcTdrZGE1NWxzLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwic3ViIjoiMTE0NTQyMzMwNzI3MTU2MTMzNzc2IiwiZW1haWwiOiJocGFdkeivmeuzQGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhdF9oYXNoIjoidno1NGhhdTNxbnVR"} + responses: + "200": + application/json: {"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYW5vbnltb3VzIiwiaWQiOiJ3aDA4eWN3eTJwOSIsIm5hbWUiOiJqaXR0ZXJ5LXNhbG1vbi1ndWxsIiwiaWF0IjoxNjg5MzQ5MTk3fQ.-LzlPhZw2tw0ycZ229IRHwwmINGKWNPFMDrXOphLjEk"} + "401": + application/json: {"message": ""} + LoginNickname: + speakeasy-default-login-nickname: + requestBody: + application/json: {"nickname": "squiddytwoshoes"} + responses: + "200": + application/json: {"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJ0eXBlIjoiYW5vbnltb3VzIiwiaWQiOiJ3aDA4eWN3eTJwOSIsIm5hbWUiOiJqaXR0ZXJ5LXNhbG1vbi1ndWxsIiwiaWF0IjoxNjg5MzQ5MTk3fQ.-LzlPhZw2tw0ycZ229IRHwwmINGKWNPFMDrXOphLjEk"} + "404": + application/json: {"message": ""} + GetBalance: + speakeasy-default-get-balance: + responses: + "200": + application/json: "68.43" + "401": + application/json: {"message": ""} + GetInvoices: + speakeasy-default-get-invoices: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + GetPaymentMethod: + speakeasy-default-get-payment-method: + responses: + "401": + application/json: {"message": ""} + GetUpcomingInvoiceItems: + speakeasy-default-get-upcoming-invoice-items: + responses: + "200": + application/json: {"invoiceItems": []} + "401": + application/json: {"message": ""} + GetUpcomingInvoiceTotal: + speakeasy-default-get-upcoming-invoice-total: + responses: + "200": + application/json: {"value": "2752.14"} + "401": + application/json: {"message": ""} + InitStripeCustomerPortalUrl: + speakeasy-default-init-stripe-customer-portal-url: + requestBody: + application/json: {"returnUrl": ""} + responses: + "200": + application/json: "" + "401": + application/json: {"message": ""} + CreateBuildDeprecated: + speakeasy-default-create-build-deprecated: + requestBody: + application/json: {"buildTag": "0.1.14-14c793"} + responses: + "201": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "buildTag": "0.1.14-14c793", "createdAt": "2024-09-30T03:26:50.036Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2023-05-25T03:16:38.824Z", "finishedAt": "2022-01-12T20:36:59.112Z", "imageSize": 45730, "regionalContainerTags": [], "startedAt": "2024-11-04T16:03:08.239Z", "status": "succeeded"} + "401": + application/json: {"message": ""} + DeleteBuildDeprecated: + speakeasy-default-delete-build-deprecated: + parameters: + path: + buildId: 1 + responses: + "401": + application/json: {"message": ""} + GetBuildInfoDeprecated: + speakeasy-default-get-build-info-deprecated: + parameters: + path: + buildId: 1 + responses: + "200": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "buildTag": "0.1.14-14c793", "createdAt": "2024-11-19T18:29:38.334Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2024-08-10T12:04:14.202Z", "finishedAt": "2023-03-05T05:20:13.755Z", "imageSize": 361321, "regionalContainerTags": [], "startedAt": "2023-01-26T08:21:08.873Z", "status": "running"} + "401": + application/json: {"message": ""} + GetBuildsDeprecated: + speakeasy-default-get-builds-deprecated: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + RunBuildDeprecated: + speakeasy-default-run-build-deprecated: + parameters: + path: + buildId: 1 + requestBody: + multipart/form-data: {"file": {"": "your_file_here"}} + responses: + "200": + text/plain: "" + "400": + application/json: {"message": ""} + CreateBuildV2Deprecated: + speakeasy-default-create-build-v2-deprecated: + requestBody: + application/json: {"buildTag": "0.1.14-14c793"} + responses: + "201": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "buildTag": "0.1.14-14c793", "createdAt": "2022-09-12T00:06:38.284Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2022-01-19T07:59:33.910Z", "finishedAt": "2024-10-20T23:26:11.369Z", "imageSize": 382091, "regionalContainerTags": [], "startedAt": "2023-01-08T05:42:56.345Z", "status": "failed"} + "401": + application/json: {"message": ""} + CreateBuildWithUploadUrlV2Deprecated: + speakeasy-default-create-build-with-upload-url-v2-deprecated: + requestBody: + application/json: {"buildTag": "0.1.14-14c793"} + responses: + "201": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "buildTag": "0.1.14-14c793", "createdAt": "2022-10-18T23:29:31.529Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2023-08-09T05:56:59.554Z", "finishedAt": "2024-01-29T12:26:21.686Z", "imageSize": 118634, "regionalContainerTags": [], "startedAt": "2023-06-03T03:01:08.981Z", "status": "running", "uploadBodyParams": [], "uploadUrl": ""} + "401": + application/json: {"message": ""} + CreateWithMultipartUploadsV2Deprecated: + speakeasy-default-create-with-multipart-uploads-v2-deprecated: + requestBody: + application/json: {"buildSizeInBytes": "3146.66", "buildTag": "0.1.14-14c793"} + responses: + "201": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "buildTag": "0.1.14-14c793", "completeUploadPostRequestUrl": "", "createdAt": "2024-05-06T02:31:03.248Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2023-02-21T08:25:21.203Z", "finishedAt": "2022-05-05T10:26:24.463Z", "imageSize": 111164, "maxChunkSize": "9994.53", "regionalContainerTags": [], "startedAt": "2022-04-20T05:50:04.786Z", "status": "succeeded", "uploadParts": []} + "400": + application/json: {"message": ""} + DeleteBuildV2Deprecated: + speakeasy-default-delete-build-v2-deprecated: + parameters: + path: + buildId: 1 + responses: + "401": + application/json: {"message": ""} + GetBuildInfoV2Deprecated: + speakeasy-default-get-build-info-v2-deprecated: + parameters: + path: + buildId: 1 + responses: + "200": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "buildTag": "0.1.14-14c793", "createdAt": "2023-03-02T14:52:20.998Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2023-10-07T04:26:21.891Z", "finishedAt": "2023-09-19T22:34:44.398Z", "imageSize": 662414, "regionalContainerTags": [], "startedAt": "2023-06-19T07:40:37.459Z", "status": "failed"} + "401": + application/json: {"message": ""} + GetBuildsV2Deprecated: + speakeasy-default-get-builds-v2-deprecated: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + RunBuildV2Deprecated: + speakeasy-default-run-build-v2-deprecated: + parameters: + path: + buildId: 1 + responses: + "400": + application/json: {"message": ""} + CreateBuild: + speakeasy-default-create-build: + parameters: + query: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + requestBody: + application/json: {"buildSizeInBytes": "5387.85", "buildTag": "0.1.14-14c793"} + responses: + "201": + application/json: {"buildId": "", "buildTag": "0.1.14-14c793", "completeUploadPostRequestUrl": "", "createdAt": "2023-01-06T11:09:29.913Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2022-05-03T02:32:52.236Z", "finishedAt": "2022-08-24T02:02:44.755Z", "imageSize": 893876, "maxChunkSize": "46.13", "orgId": "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", "startedAt": "2022-10-03T13:44:52.128Z", "status": "failed", "uploadParts": []} + "400": + application/json: {"message": ""} + DeleteBuild: + speakeasy-default-delete-build: + parameters: + path: + buildId: "" + query: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + responses: + "401": + application/json: {"message": ""} + GetBuild: + speakeasy-default-get-build: + parameters: + path: + buildId: "" + query: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + responses: + "200": + application/json: {"buildId": "", "buildTag": "0.1.14-14c793", "createdAt": "2024-06-25T23:45:40.945Z", "createdBy": "noreply@hathora.dev", "deletedAt": "2022-01-01T12:11:43.281Z", "finishedAt": "2023-07-01T05:11:17.947Z", "imageSize": 506610, "orgId": "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", "startedAt": "2022-08-28T06:31:38.331Z", "status": "succeeded"} + "401": + application/json: {"message": ""} + GetBuilds: + speakeasy-default-get-builds: + parameters: + query: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + responses: + "200": + application/json: {"builds": []} + "401": + application/json: {"message": ""} + RunBuild: + speakeasy-default-run-build: + parameters: + path: + buildId: "" + query: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + responses: + "400": + application/json: {"message": ""} + CreateDeploymentV1Deprecated: + speakeasy-default-create-deployment-v1-deprecated: + parameters: + path: + buildId: 1 + requestBody: + application/json: {"additionalContainerPorts": [], "containerPort": 4000, "env": [], "planName": "tiny", "roomsPerProcess": 3, "transportType": "tcp"} + responses: + "201": + application/json: {"additionalContainerPorts": [{"name": "debug", "port": 4000, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "containerPort": "2771.06", "createdAt": "2022-01-15T01:28:17.989Z", "createdBy": "noreply@hathora.dev", "defaultContainerPort": {"name": "default", "port": 8000, "transportType": "udp"}, "deploymentId": 1, "env": [], "planName": "tiny", "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3, "transportType": "tls"} + "400": + application/json: {"message": ""} + GetDeploymentInfoV1Deprecated: + speakeasy-default-get-deployment-info-v1-deprecated: + parameters: + path: + deploymentId: 1 + responses: + "200": + application/json: {"additionalContainerPorts": [{"name": "debug", "port": 4000, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "containerPort": "7738.86", "createdAt": "2024-09-18T15:37:39.199Z", "createdBy": "noreply@hathora.dev", "defaultContainerPort": {"name": "default", "port": 8000, "transportType": "tls"}, "deploymentId": 1, "env": [], "planName": "tiny", "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3, "transportType": "tcp"} + "401": + application/json: {"message": ""} + GetDeploymentsV1Deprecated: + speakeasy-default-get-deployments-v1-deprecated: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + GetLatestDeploymentV1Deprecated: + speakeasy-default-get-latest-deployment-v1-deprecated: + responses: + "200": + application/json: {"additionalContainerPorts": [{"name": "debug", "port": 4000, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "containerPort": "1419.21", "createdAt": "2023-02-10T08:57:00.829Z", "createdBy": "noreply@hathora.dev", "defaultContainerPort": {"name": "default", "port": 8000, "transportType": "tls"}, "deploymentId": 1, "env": [], "planName": "tiny", "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3, "transportType": "udp"} + "401": + application/json: {"message": ""} + CreateDeploymentV2Deprecated: + speakeasy-default-create-deployment-v2-deprecated: + parameters: + path: + buildId: 1 + requestBody: + application/json: {"additionalContainerPorts": [], "containerPort": 4000, "env": [], "idleTimeoutEnabled": false, "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3, "transportType": "tcp"} + responses: + "201": + application/json: {"additionalContainerPorts": [{"name": "debug", "port": 4000, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "createdAt": "2024-01-13T14:02:49.102Z", "createdBy": "noreply@hathora.dev", "defaultContainerPort": {"name": "default", "port": 8000, "transportType": "tls"}, "deploymentId": 1, "env": [], "idleTimeoutEnabled": true, "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3} + "400": + application/json: {"message": ""} + GetDeploymentInfoV2Deprecated: + speakeasy-default-get-deployment-info-v2-deprecated: + parameters: + path: + deploymentId: 1 + responses: + "200": + application/json: {"additionalContainerPorts": [{"name": "debug", "port": 4000, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "createdAt": "2023-04-13T07:15:44.965Z", "createdBy": "noreply@hathora.dev", "defaultContainerPort": {"name": "default", "port": 8000, "transportType": "tls"}, "deploymentId": 1, "env": [], "idleTimeoutEnabled": false, "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3} + "401": + application/json: {"message": ""} + GetDeploymentsV2Deprecated: + speakeasy-default-get-deployments-v2-deprecated: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + GetLatestDeploymentV2Deprecated: + speakeasy-default-get-latest-deployment-v2-deprecated: + responses: + "200": + application/json: {"additionalContainerPorts": [{"name": "debug", "port": 4000, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": 1, "createdAt": "2023-11-14T23:28:17.203Z", "createdBy": "noreply@hathora.dev", "defaultContainerPort": {"name": "default", "port": 8000, "transportType": "tcp"}, "deploymentId": 1, "env": [], "idleTimeoutEnabled": true, "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3} + "401": + application/json: {"message": ""} + CreateDeployment: + speakeasy-default-create-deployment: + requestBody: + application/json: {"additionalContainerPorts": [], "buildId": "", "containerPort": 4000, "env": [], "idleTimeoutEnabled": true, "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3, "transportType": "tcp"} + responses: + "201": + application/json: {"additionalContainerPorts": [{"name": "debug", "port": 4000, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": "", "buildTag": "0.1.14-14c793", "createdAt": "2022-07-14T04:14:25.503Z", "createdBy": "noreply@hathora.dev", "defaultContainerPort": {"name": "default", "port": 8000, "transportType": "tcp"}, "deploymentId": "", "env": [], "idleTimeoutEnabled": false, "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3} + "400": + application/json: {"message": ""} + GetDeployment: + speakeasy-default-get-deployment: + parameters: + path: + deploymentId: "" + responses: + "200": + application/json: {"additionalContainerPorts": [{"name": "debug", "port": 4000, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": "", "buildTag": "0.1.14-14c793", "createdAt": "2023-01-17T20:50:05.380Z", "createdBy": "noreply@hathora.dev", "defaultContainerPort": {"name": "default", "port": 8000, "transportType": "tcp"}, "deploymentId": "", "env": [], "idleTimeoutEnabled": true, "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3} + "401": + application/json: {"message": ""} + GetDeployments: + speakeasy-default-get-deployments: + responses: + "200": + application/json: {"deployments": []} + "401": + application/json: {"message": ""} + GetLatestDeployment: + speakeasy-default-get-latest-deployment: + responses: + "200": + application/json: {"additionalContainerPorts": [{"name": "debug", "port": 4000, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "buildId": "", "buildTag": "0.1.14-14c793", "createdAt": "2022-09-10T07:35:40.238Z", "createdBy": "noreply@hathora.dev", "defaultContainerPort": {"name": "default", "port": 8000, "transportType": "udp"}, "deploymentId": "", "env": [], "idleTimeoutEnabled": true, "requestedCPU": 0.5, "requestedMemoryMB": 1024, "roomsPerProcess": 3} + "401": + application/json: {"message": ""} + GetPingServiceEndpointsDeprecated: + speakeasy-default-get-ping-service-endpoints-deprecated: + responses: + "200": + application/json: [{"host": "ping.hathora.dev", "port": 2000, "region": "Seattle"}] + GetPingServiceEndpoints: + speakeasy-default-get-ping-service-endpoints: + responses: + "200": + application/json: [{"host": "ping.hathora.dev", "port": 2000, "region": "Seattle"}] + CreatePrivateLobbyDeprecated: + speakeasy-default-create-private-lobby-deprecated: + responses: + "200": + application/json: "2swovpy1fnunu" + "400": + application/json: {"message": ""} + CreatePublicLobbyDeprecated: + speakeasy-default-create-public-lobby-deprecated: + responses: + "200": + application/json: "2swovpy1fnunu" + "400": + application/json: {"message": ""} + ListActivePublicLobbiesDeprecatedV1: + speakeasy-default-list-active-public-lobbies-deprecated-v1: + responses: + "200": + application/json: [] + "404": + application/json: {"message": ""} + CreateLobbyDeprecated: + speakeasy-default-create-lobby-deprecated: + parameters: + query: + roomId: "2swovpy1fnunu" + requestBody: + application/json: {"initialConfig": "", "region": "Tokyo", "visibility": "private"} + responses: + "201": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2023-01-14T16:55:08.955Z", "createdBy": "google-oauth2|107030234048588177467", "initialConfig": "", "local": true, "region": "Frankfurt", "roomId": "2swovpy1fnunu", "shortCode": "LFG4", "visibility": "private"} + "400": + application/json: {"message": ""} + CreateLocalLobby: + speakeasy-default-create-local-lobby: + parameters: + query: + roomId: "2swovpy1fnunu" + requestBody: + application/json: {"initialConfig": "", "region": "Sao_Paulo"} + responses: + "201": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2022-10-08T07:12:54.757Z", "createdBy": "google-oauth2|107030234048588177467", "initialConfig": "", "local": false, "region": "Washington_DC", "roomId": "2swovpy1fnunu", "shortCode": "LFG4", "visibility": "private"} + "400": + application/json: {"message": ""} + CreatePrivateLobby: + speakeasy-default-create-private-lobby: + parameters: + query: + roomId: "2swovpy1fnunu" + requestBody: + application/json: {"initialConfig": "", "region": "Chicago"} + responses: + "201": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2022-05-17T22:27:20.635Z", "createdBy": "google-oauth2|107030234048588177467", "initialConfig": "", "local": false, "region": "Tokyo", "roomId": "2swovpy1fnunu", "shortCode": "LFG4", "visibility": "private"} + "400": + application/json: {"message": ""} + CreatePublicLobby: + speakeasy-default-create-public-lobby: + parameters: + query: + roomId: "2swovpy1fnunu" + requestBody: + application/json: {"initialConfig": "", "region": "Sao_Paulo"} + responses: + "201": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2022-08-19T13:06:23.489Z", "createdBy": "google-oauth2|107030234048588177467", "initialConfig": "", "local": false, "region": "Tokyo", "roomId": "2swovpy1fnunu", "shortCode": "LFG4", "visibility": "private"} + "400": + application/json: {"message": ""} + GetLobbyInfo: + speakeasy-default-get-lobby-info: + parameters: + path: + roomId: "2swovpy1fnunu" + responses: + "200": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2022-07-06T04:13:36.166Z", "createdBy": "google-oauth2|107030234048588177467", "initialConfig": "", "local": true, "region": "London", "roomId": "2swovpy1fnunu", "shortCode": "LFG4", "visibility": "private"} + "404": + application/json: {"message": ""} + ListActivePublicLobbiesDeprecatedV2: + speakeasy-default-list-active-public-lobbies-deprecated-v2: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + SetLobbyState: + speakeasy-default-set-lobby-state: + parameters: + path: + roomId: "2swovpy1fnunu" + requestBody: + application/json: {"state": "South Dakota"} + responses: + "200": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2022-08-18T22:00:14.511Z", "createdBy": "google-oauth2|107030234048588177467", "initialConfig": "", "local": true, "region": "London", "roomId": "2swovpy1fnunu", "shortCode": "LFG4", "visibility": "private"} + "401": + application/json: {"message": ""} + CreateLobby: + speakeasy-default-create-lobby: + parameters: + query: + shortCode: "LFG4" + roomId: "2swovpy1fnunu" + requestBody: + application/json: {"region": "Seattle", "roomConfig": "{\"name\":\"my-room\"}", "visibility": "private"} + responses: + "201": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2024-08-23T01:19:38.815Z", "createdBy": "google-oauth2|107030234048588177467", "region": "Dallas", "roomConfig": "{\"name\":\"my-room\"}", "roomId": "2swovpy1fnunu", "shortCode": "LFG4", "visibility": "private"} + "400": + application/json: {"message": ""} + GetLobbyInfoByRoomId: + speakeasy-default-get-lobby-info-by-room-id: + parameters: + path: + roomId: "2swovpy1fnunu" + responses: + "200": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2023-05-04T00:54:54.219Z", "createdBy": "google-oauth2|107030234048588177467", "region": "Dallas", "roomConfig": "{\"name\":\"my-room\"}", "roomId": "2swovpy1fnunu", "shortCode": "LFG4", "visibility": "private"} + "404": + application/json: {"message": ""} + GetLobbyInfoByShortCode: + speakeasy-default-get-lobby-info-by-short-code: + parameters: + path: + shortCode: "LFG4" + responses: + "200": + application/json: {"appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2024-01-01T16:22:21.878Z", "createdBy": "google-oauth2|107030234048588177467", "region": "Seattle", "roomConfig": "{\"name\":\"my-room\"}", "roomId": "2swovpy1fnunu", "shortCode": "LFG4", "visibility": "private"} + "404": + application/json: {"message": ""} + ListActivePublicLobbies: + speakeasy-default-list-active-public-lobbies: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + DownloadLogForProcess: + speakeasy-default-download-log-for-process: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + responses: + "400": + application/json: {"message": ""} + GetLogsForApp: + speakeasy-default-get-logs-for-app: + parameters: + query: + tailLines: 100 + responses: + "401": + application/json: {"message": ""} + GetLogsForDeployment: + speakeasy-default-get-logs-for-deployment: + parameters: + path: + deploymentId: 1 + query: + tailLines: 100 + responses: + "401": + application/json: {"message": ""} + GetLogsForProcess: + speakeasy-default-get-logs-for-process: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + query: + tailLines: 100 + responses: + "400": + application/json: {"message": ""} + SendVerificationEmail: + speakeasy-default-send-verification-email: + requestBody: + application/json: {"userId": ""} + responses: + "200": + application/json: "success" + "401": + application/json: {"message": ""} + GetMetrics: + speakeasy-default-get-metrics: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + query: {} + responses: + "401": + application/json: {"message": ""} + AcceptInvite: + speakeasy-default-accept-invite: + parameters: + path: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + responses: + "401": + application/json: {"message": ""} + GetOrgMembers: + speakeasy-default-get-org-members: + parameters: + path: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + responses: + "200": + application/json: {"members": []} + "401": + application/json: {"message": ""} + GetOrgPendingInvites: + speakeasy-default-get-org-pending-invites: + parameters: + path: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + responses: + "200": + application/json: {"invites": []} + "401": + application/json: {"message": ""} + GetOrgs: + speakeasy-default-get-orgs: + responses: + "200": + application/json: {"orgs": []} + "401": + application/json: {"message": ""} + GetUserPendingInvites: + speakeasy-default-get-user-pending-invites: + responses: + "200": + application/json: {"invites": []} + "401": + application/json: {"message": ""} + InviteUser: + speakeasy-default-invite-user: + parameters: + path: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + requestBody: + application/json: {"userEmail": "noreply@hathora.dev"} + responses: + "200": + application/json: {"createdAt": "2024-05-26T01:23:01.974Z", "invitedBy": "noreply@hathora.dev", "orgId": "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", "userEmail": "noreply@hathora.dev"} + "401": + application/json: {"message": ""} + RejectInvite: + speakeasy-default-reject-invite: + parameters: + path: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + responses: + "401": + application/json: {"message": ""} + RescindInvite: + speakeasy-default-rescind-invite: + parameters: + path: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + requestBody: + application/json: {"userEmail": "noreply@hathora.dev"} + responses: + "401": + application/json: {"message": ""} + GetProcessInfoDeprecated: + speakeasy-default-get-process-info-deprecated: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + responses: + "200": + application/json: {"activeConnections": 10, "activeConnectionsUpdatedAt": "2024-10-01T07:24:07.645Z", "additionalExposedPorts": [{"host": "1.proxy.hathora.dev", "name": "debug", "port": 72941, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "deploymentId": 1, "draining": false, "egressedBytes": 435, "exposedPort": {"host": "1.proxy.hathora.dev", "name": "default", "port": 34567, "transportType": "tcp"}, "host": "suburban-coinsurance.net", "idleSince": "2023-11-20T06:01:50.927Z", "port": "9902.59", "processId": "cbfcddd2-0006-43ae-996c-995fff7bed2e", "region": "Mumbai", "roomSlotsAvailable": "4422.87", "roomSlotsAvailableUpdatedAt": "2024-03-26T17:21:54.312Z", "roomsAllocated": 1, "roomsAllocatedUpdatedAt": "2022-02-25T03:28:19.955Z", "roomsPerProcess": 3, "startedAt": "2023-02-11T23:14:24.581Z", "startingAt": "2022-09-25T15:26:01.198Z", "stoppingAt": "2022-12-10T18:15:06.797Z", "terminatedAt": "2023-04-26T14:37:39.706Z"} + "401": + application/json: {"message": ""} + GetRunningProcesses: + speakeasy-default-get-running-processes: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + GetStoppedProcesses: + speakeasy-default-get-stopped-processes: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + CreateProcessV2Deprecated: + speakeasy-default-create-process-v2-deprecated: + parameters: + path: + region: "Mumbai" + responses: + "201": + application/json: {"additionalExposedPorts": [{"host": "1.proxy.hathora.dev", "name": "debug", "port": 72941, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2023-03-05T04:00:55.739Z", "deploymentId": 1, "exposedPort": {"host": "1.proxy.hathora.dev", "name": "default", "port": 34567, "transportType": "tcp"}, "processId": "cbfcddd2-0006-43ae-996c-995fff7bed2e", "region": "Chicago", "roomsAllocated": 1, "roomsPerProcess": 3, "startedAt": "2023-08-05T06:28:46.709Z", "status": "failed", "stoppingAt": "2024-10-01T01:40:00.691Z", "terminatedAt": "2023-03-22T20:04:29.077Z"} + "401": + application/json: {"message": ""} + GetLatestProcessesV2Deprecated: + speakeasy-default-get-latest-processes-v2-deprecated: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + GetProcessInfoV2Deprecated: + speakeasy-default-get-process-info-v2-deprecated: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + responses: + "200": + application/json: {"additionalExposedPorts": [{"host": "1.proxy.hathora.dev", "name": "debug", "port": 72941, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2022-02-17T10:55:40.614Z", "deploymentId": 1, "exposedPort": {"host": "1.proxy.hathora.dev", "name": "default", "port": 34567, "transportType": "tcp"}, "processId": "cbfcddd2-0006-43ae-996c-995fff7bed2e", "region": "Sao_Paulo", "roomsAllocated": 1, "roomsPerProcess": 3, "startedAt": "2024-01-10T14:15:10.046Z", "status": "stopped", "stoppingAt": "2024-04-02T09:20:47.745Z", "terminatedAt": "2024-11-04T10:19:15.771Z"} + "401": + application/json: {"message": ""} + GetProcessesCountExperimentalV2Deprecated: + speakeasy-default-get-processes-count-experimental-v2-deprecated: + responses: + "200": + application/json: {"count": "4304.38"} + "401": + application/json: {"message": ""} + StopProcessV2Deprecated: + speakeasy-default-stop-process-v2-deprecated: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + responses: + "401": + application/json: {"message": ""} + CreateProcess: + speakeasy-default-create-process: + parameters: + path: + region: "Tokyo" + responses: + "201": + application/json: {"additionalExposedPorts": [{"host": "1.proxy.hathora.dev", "name": "debug", "port": 72941, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2022-11-01T04:57:37.351Z", "deploymentId": "", "exposedPort": {"host": "1.proxy.hathora.dev", "name": "default", "port": 34567, "transportType": "tcp"}, "processId": "cbfcddd2-0006-43ae-996c-995fff7bed2e", "region": "Tokyo", "roomsAllocated": 1, "roomsPerProcess": 3, "startedAt": "2022-03-12T08:24:20.863Z", "status": "draining", "stoppingAt": "2024-10-13T12:22:39.611Z", "terminatedAt": "2022-05-16T14:01:12.093Z"} + "401": + application/json: {"message": ""} + GetLatestProcesses: + speakeasy-default-get-latest-processes: + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + GetProcess: + speakeasy-default-get-process: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + responses: + "200": + application/json: {"additionalExposedPorts": [{"host": "1.proxy.hathora.dev", "name": "debug", "port": 72941, "transportType": "tcp"}], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "createdAt": "2023-12-11T06:13:11.533Z", "deploymentId": "", "exposedPort": {"host": "1.proxy.hathora.dev", "name": "default", "port": 34567, "transportType": "tcp"}, "processId": "cbfcddd2-0006-43ae-996c-995fff7bed2e", "region": "Chicago", "roomsAllocated": 1, "roomsPerProcess": 3, "startedAt": "2022-08-27T15:32:02.112Z", "status": "starting", "stoppingAt": "2024-12-07T20:41:15.355Z", "terminatedAt": "2023-07-10T21:26:48.593Z"} + "401": + application/json: {"message": ""} + GetProcessesCountExperimental: + speakeasy-default-get-processes-count-experimental: + responses: + "200": + application/json: {"count": "4724.83"} + "401": + application/json: {"message": ""} + StopProcess: + speakeasy-default-stop-process: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + responses: + "401": + application/json: {"message": ""} + CreateRoomDeprecated: + speakeasy-default-create-room-deprecated: + parameters: + query: + roomId: "2swovpy1fnunu" + requestBody: + application/json: {"region": "Chicago", "roomConfig": "{\"name\":\"my-room\"}"} + responses: + "201": + application/json: "2swovpy1fnunu" + "400": + application/json: {"message": ""} + DestroyRoomDeprecated: + speakeasy-default-destroy-room-deprecated: + parameters: + path: + roomId: "2swovpy1fnunu" + responses: + "401": + application/json: {"message": ""} + GetActiveRoomsForProcessDeprecated: + speakeasy-default-get-active-rooms-for-process-deprecated: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + GetConnectionInfoDeprecated: + speakeasy-default-get-connection-info-deprecated: + parameters: + path: + roomId: "2swovpy1fnunu" + responses: + "200": + application/json: {"host": "essential-enclave.info", "port": "990.3", "roomId": "2swovpy1fnunu", "status": "active", "transportType": "udp"} + "400": + application/json: {"message": ""} + GetInactiveRoomsForProcessDeprecated: + speakeasy-default-get-inactive-rooms-for-process-deprecated: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + GetRoomInfoDeprecated: + speakeasy-default-get-room-info-deprecated: + parameters: + path: + roomId: "2swovpy1fnunu" + responses: + "200": + application/json: {"allocations": [], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "currentAllocation": {"processId": "cbfcddd2-0006-43ae-996c-995fff7bed2e", "roomAllocationId": "e3a0aa32-1711-4036-acfa-008b96061a78", "scheduledAt": "2024-11-07T20:34:27.172Z", "unscheduledAt": "2022-08-05T09:46:07.658Z"}, "roomConfig": "{\"name\":\"my-room\"}", "roomId": "2swovpy1fnunu", "status": "active"} + "401": + application/json: {"message": ""} + SuspendRoomDeprecated: + speakeasy-default-suspend-room-deprecated: + parameters: + path: + roomId: "2swovpy1fnunu" + responses: + "401": + application/json: {"message": ""} + CreateRoom: + speakeasy-default-create-room: + parameters: + query: + roomId: "2swovpy1fnunu" + requestBody: + application/json: {"region": "Sao_Paulo", "roomConfig": "{\"name\":\"my-room\"}"} + responses: + "201": + application/json: {"additionalExposedPorts": [{"host": "1.proxy.hathora.dev", "name": "debug", "port": 72941, "transportType": "tcp"}], "exposedPort": {"host": "1.proxy.hathora.dev", "name": "default", "port": 34567, "transportType": "tcp"}, "processId": "cbfcddd2-0006-43ae-996c-995fff7bed2e", "roomId": "2swovpy1fnunu", "status": "starting"} + "400": + application/json: {"message": ""} + DestroyRoom: + speakeasy-default-destroy-room: + parameters: + path: + roomId: "2swovpy1fnunu" + responses: + "401": + application/json: {"message": ""} + GetActiveRoomsForProcess: + speakeasy-default-get-active-rooms-for-process: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + GetConnectionInfo: + speakeasy-default-get-connection-info: + parameters: + path: + roomId: "2swovpy1fnunu" + responses: + "200": + application/json: {"additionalExposedPorts": [{"host": "1.proxy.hathora.dev", "name": "debug", "port": 72941, "transportType": "tcp"}], "exposedPort": {"host": "1.proxy.hathora.dev", "name": "default", "port": 34567, "transportType": "tcp"}, "roomId": "2swovpy1fnunu", "status": "active"} + "400": + application/json: {"message": ""} + GetInactiveRoomsForProcess: + speakeasy-default-get-inactive-rooms-for-process: + parameters: + path: + processId: "cbfcddd2-0006-43ae-996c-995fff7bed2e" + responses: + "200": + application/json: [] + "401": + application/json: {"message": ""} + GetRoomInfo: + speakeasy-default-get-room-info: + parameters: + path: + roomId: "2swovpy1fnunu" + responses: + "200": + application/json: {"allocations": [], "appId": "app-af469a92-5b45-4565-b3c4-b79878de67d2", "currentAllocation": {"processId": "cbfcddd2-0006-43ae-996c-995fff7bed2e", "roomAllocationId": "e3a0aa32-1711-4036-acfa-008b96061a78", "scheduledAt": "2024-11-10T01:54:28.993Z", "unscheduledAt": "2023-06-23T12:39:23.033Z"}, "roomConfig": "{\"name\":\"my-room\"}", "roomId": "2swovpy1fnunu", "status": "active"} + "401": + application/json: {"message": ""} + SuspendRoomV2Deprecated: + speakeasy-default-suspend-room-v2-deprecated: + parameters: + path: + roomId: "2swovpy1fnunu" + responses: + "401": + application/json: {"message": ""} + UpdateRoomConfig: + speakeasy-default-update-room-config: + parameters: + path: + roomId: "2swovpy1fnunu" + requestBody: + application/json: {"roomConfig": "{\"name\":\"my-room\"}"} + responses: + "401": + application/json: {"message": ""} + CreateOrgToken: + speakeasy-default-create-org-token: + parameters: + path: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + requestBody: + application/json: {"name": "ci-token"} + responses: + "201": + application/json: {"orgToken": {"createdAt": "2023-07-08T21:31:16.243Z", "createdBy": "noreply@hathora.dev", "lastFourCharsOfKey": "", "name": "ci-token", "orgId": "", "orgTokenId": "org-token-af469a92-5b45-4565-b3c4-b79878de67d2", "status": "revoked"}, "plainTextToken": ""} + "401": + application/json: {"message": ""} + GetOrgTokens: + speakeasy-default-get-org-tokens: + parameters: + path: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + responses: + "200": + application/json: {"tokens": []} + "401": + application/json: {"message": ""} + RevokeOrgToken: + speakeasy-default-revoke-org-token: + parameters: + path: + orgId: "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39" + orgTokenId: "org-token-af469a92-5b45-4565-b3c4-b79878de67d2" + responses: + "200": + application/json: true + "401": + application/json: {"message": ""} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index c08a52c1..a2bb4de3 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,6 +1,21 @@ -speakeasyVersion: 1.285.3 -sources: {} -targets: {} +speakeasyVersion: 1.396.2 +sources: + my-source: + sourceNamespace: my-source + sourceRevisionDigest: sha256:484de0fa9ce019f03846cc6b7471196e037f819fb93a370f809f17c867b4d156 + sourceBlobDigest: sha256:78feff9d0d4741335428a834e39c4b059f581b495274dd0ac61746cc1b02ccce + tags: + - latest + - main +targets: + cloud-sdk-unity: + source: my-source + sourceNamespace: my-source + sourceRevisionDigest: sha256:484de0fa9ce019f03846cc6b7471196e037f819fb93a370f809f17c867b4d156 + sourceBlobDigest: sha256:78feff9d0d4741335428a834e39c4b059f581b495274dd0ac61746cc1b02ccce + codeSamplesNamespace: code-samples-unity-cloud-sdk-unity + codeSamplesRevisionDigest: sha256:bf833575d66758fe9e4b208e25e14c46fcd22827a96b185fc285280ae4473617 + outLocation: . workflow: workflowVersion: 1.0.0 speakeasyVersion: latest @@ -10,8 +25,14 @@ workflow: - location: https://hathora.dev/swagger.json overlays: - location: overlay.yaml + registry: + location: registry.speakeasyapi.dev/hathora/hathora/my-source targets: cloud-sdk-unity: target: unity source: my-source output: . + codeSamples: + output: codeSamples.yaml + registry: + location: registry.speakeasyapi.dev/hathora/hathora/code-samples-unity-cloud-sdk-unity diff --git a/.speakeasy/workflow.yaml b/.speakeasy/workflow.yaml index 922f40fe..43098150 100644 --- a/.speakeasy/workflow.yaml +++ b/.speakeasy/workflow.yaml @@ -6,6 +6,8 @@ sources: - location: https://hathora.dev/swagger.json overlays: - location: overlay.yaml + registry: + location: registry.speakeasyapi.dev/hathora/hathora/my-source targets: cloud-sdk-unity: target: unity diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md new file mode 100644 index 00000000..d585717f --- /dev/null +++ b/CONTRIBUTING.md @@ -0,0 +1,26 @@ +# Contributing to This Repository + +Thank you for your interest in contributing to this repository. Please note that this repository contains generated code. As such, we do not accept direct changes or pull requests. Instead, we encourage you to follow the guidelines below to report issues and suggest improvements. + +## How to Report Issues + +If you encounter any bugs or have suggestions for improvements, please open an issue on GitHub. When reporting an issue, please provide as much detail as possible to help us reproduce the problem. This includes: + +- A clear and descriptive title +- Steps to reproduce the issue +- Expected and actual behavior +- Any relevant logs, screenshots, or error messages +- Information about your environment (e.g., operating system, software versions) + - For example can be collected using the `npx envinfo` command from your terminal if you have Node.js installed + +## Issue Triage and Upstream Fixes + +We will review and triage issues as quickly as possible. Our goal is to address bugs and incorporate improvements in the upstream source code. Fixes will be included in the next generation of the generated code. + +## Contact + +If you have any questions or need further assistance, please feel free to reach out by opening an issue. + +Thank you for your understanding and cooperation! + +The Maintainers diff --git a/HathoraCloud/AppsV1.cs b/HathoraCloud/AppsV1.cs new file mode 100644 index 00000000..4d473963 --- /dev/null +++ b/HathoraCloud/AppsV1.cs @@ -0,0 +1,507 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud +{ + using HathoraCloud.Models.Errors; + using HathoraCloud.Models.Operations; + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using Newtonsoft.Json; + using System.Collections.Generic; + using System.Text.RegularExpressions; + using System.Threading.Tasks; + using System; + using UnityEngine.Networking; + + public interface IAppsV1 + { + + /// + /// Create a new application. + /// + Task CreateAppV1DeprecatedAsync(AppConfig request); + + /// + /// Delete an application using `appId`. Your organization will lose access to this application. + /// + Task DeleteAppV1DeprecatedAsync(DeleteAppV1DeprecatedRequest request); + + /// + /// Get details for an application using `appId`. + /// + Task GetAppInfoV1DeprecatedAsync(GetAppInfoV1DeprecatedRequest request); + + /// + /// Returns an unsorted list of your organization’s applications. An application is uniquely identified by an `appId`. + /// + Task GetAppsV1DeprecatedAsync(); + + /// + /// Update data for an existing application using `appId`. + /// + Task UpdateAppV1DeprecatedAsync(UpdateAppV1DeprecatedRequest request); + } + + public class AppsV1: IAppsV1 + { + public SDKConfig SDKConfiguration { get; private set; } + private const string _target = "unity"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; + private const string _openapiDocVersion = "0.0.1"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private Func? _securitySource; + + public AppsV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securitySource = securitySource; + _serverUrl = serverUrl; + SDKConfiguration = config; + } + + + + public async Task CreateAppV1DeprecatedAsync(AppConfig request) + { + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = baseUrl + "/apps/v1/create"; + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json", false, false); + if (serializedBody != null) + { + httpRequest.uploadHandler = new UploadHandlerRaw(serializedBody.Body); + httpRequest.SetRequestHeader("Content-Type", serializedBody.ContentType); + } + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new CreateAppV1DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 201) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Application = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 422, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task DeleteAppV1DeprecatedAsync(DeleteAppV1DeprecatedRequest request) + { + if (request == null) + { + request = new DeleteAppV1DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/apps/v1/delete/{appId}", request); + + var httpRequest = new UnityWebRequest(urlString, "DELETE"); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new DeleteAppV1DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 204) + { + } + else if (new List{401, 404, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetAppInfoV1DeprecatedAsync(GetAppInfoV1DeprecatedRequest request) + { + if (request == null) + { + request = new GetAppInfoV1DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/apps/v1/info/{appId}", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetAppInfoV1DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Application = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetAppsV1DeprecatedAsync() + { + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = baseUrl + "/apps/v1/list"; + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetAppsV1DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject>(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Classes = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task UpdateAppV1DeprecatedAsync(UpdateAppV1DeprecatedRequest request) + { + if (request == null) + { + request = new UpdateAppV1DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/apps/v1/update/{appId}", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "AppConfig", "json", false, false); + if (serializedBody != null) + { + httpRequest.uploadHandler = new UploadHandlerRaw(serializedBody.Body); + httpRequest.SetRequestHeader("Content-Type", serializedBody.ContentType); + } + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new UpdateAppV1DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Application = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 422, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + } +} \ No newline at end of file diff --git a/HathoraCloud/AppV1.cs b/HathoraCloud/AppsV2.cs similarity index 88% rename from HathoraCloud/AppV1.cs rename to HathoraCloud/AppsV2.cs index 29ca119f..8b59ad71 100644 --- a/HathoraCloud/AppV1.cs +++ b/HathoraCloud/AppsV2.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,16 +21,13 @@ namespace HathoraCloud using System; using UnityEngine.Networking; - /// - /// Operations that allow you manage your applications. - /// - public interface IAppV1 + public interface IAppsV2 { /// /// Create a new application. /// - Task CreateAppAsync(AppConfig request); + Task CreateAppAsync(CreateAppRequest request); /// /// Delete an application using `appId`. Your organization will lose access to this application. @@ -40,12 +37,12 @@ public interface IAppV1 /// /// Get details for an application using `appId`. /// - Task GetAppInfoAsync(GetAppInfoRequest request); + Task GetAppAsync(GetAppRequest request); /// /// Returns an unsorted list of your organization’s applications. An application is uniquely identified by an `appId`. /// - Task GetAppsAsync(); + Task GetAppsAsync(GetAppsRequest request); /// /// Update data for an existing application using `appId`. @@ -53,22 +50,19 @@ public interface IAppV1 Task UpdateAppAsync(UpdateAppRequest request); } - /// - /// Operations that allow you manage your applications. - /// - public class AppV1: IAppV1 + public class AppsV2: IAppsV2 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public AppV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public AppsV2(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -78,17 +72,17 @@ public AppV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, - public async Task CreateAppAsync(AppConfig request) + public async Task CreateAppAsync(CreateAppRequest request) { string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = baseUrl + "/apps/v1/create"; + var urlString = URLBuilder.Build(baseUrl, "/apps/v2/apps", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); httpRequest.downloadHandler = downloadHandler; httpRequest.SetRequestHeader("user-agent", _userAgent); - var serializedBody = RequestBodySerializer.Serialize(request, "Request", "json", false, false); + var serializedBody = RequestBodySerializer.Serialize(request, "AppConfig", "json", false, false); if (serializedBody != null) { httpRequest.uploadHandler = new UploadHandlerRaw(serializedBody.Body); @@ -141,7 +135,7 @@ public async Task CreateAppAsync(AppConfig request) throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 422, 429, 500}.Contains(httpCode)) + else if (new List{401, 404, 422, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -176,7 +170,7 @@ public async Task DeleteAppAsync(DeleteAppRequest request) request.AppId ??= SDKConfiguration.AppId; string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/apps/v1/delete/{appId}", request); + var urlString = URLBuilder.Build(baseUrl, "/apps/v2/apps/{appId}", request); var httpRequest = new UnityWebRequest(urlString, "DELETE"); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); @@ -246,16 +240,16 @@ public async Task DeleteAppAsync(DeleteAppRequest request) - public async Task GetAppInfoAsync(GetAppInfoRequest request) + public async Task GetAppAsync(GetAppRequest request) { if (request == null) { - request = new GetAppInfoRequest(); + request = new GetAppRequest(); } request.AppId ??= SDKConfiguration.AppId; string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/apps/v1/info/{appId}", request); + var urlString = URLBuilder.Build(baseUrl, "/apps/v2/apps/{appId}", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); @@ -290,7 +284,7 @@ public async Task GetAppInfoAsync(GetAppInfoRequest request) contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; } int httpCode = errorCode ?? (int)httpResponse.responseCode; - var response = new GetAppInfoResponse + var response = new GetAppResponse { StatusCode = httpCode, ContentType = contentType, @@ -308,7 +302,7 @@ public async Task GetAppInfoAsync(GetAppInfoRequest request) throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -334,10 +328,10 @@ public async Task GetAppInfoAsync(GetAppInfoRequest request) - public async Task GetAppsAsync() + public async Task GetAppsAsync(GetAppsRequest request) { string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = baseUrl + "/apps/v1/list"; + var urlString = URLBuilder.Build(baseUrl, "/apps/v2/apps", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); @@ -382,8 +376,20 @@ public async Task GetAppsAsync() { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject>(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.Classes = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.ApplicationsPage = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; } else { @@ -413,7 +419,7 @@ public async Task UpdateAppAsync(UpdateAppRequest request) request.AppId ??= SDKConfiguration.AppId; string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/apps/v1/update/{appId}", request); + var urlString = URLBuilder.Build(baseUrl, "/apps/v2/apps/{appId}", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); diff --git a/HathoraCloud/AuthV1.cs b/HathoraCloud/AuthV1.cs index 28c8a0a7..eb173deb 100644 --- a/HathoraCloud/AuthV1.cs +++ b/HathoraCloud/AuthV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -50,10 +50,10 @@ public class AuthV1: IAuthV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; @@ -126,7 +126,7 @@ public async Task LoginAnonymousAsync(LoginAnonymousRequ throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (httpCode == 404) + else if (new List{404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -217,7 +217,7 @@ public async Task LoginGoogleAsync(LoginGoogleRequest reque throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -308,7 +308,7 @@ public async Task LoginNicknameAsync(LoginNicknameRequest throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (httpCode == 404) + else if (new List{404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/BillingV1.cs b/HathoraCloud/BillingV1.cs index c340ac56..edef0208 100644 --- a/HathoraCloud/BillingV1.cs +++ b/HathoraCloud/BillingV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -29,6 +29,8 @@ public interface IBillingV1 Task GetBalanceAsync(); Task GetInvoicesAsync(); Task GetPaymentMethodAsync(); + Task GetUpcomingInvoiceItemsAsync(); + Task GetUpcomingInvoiceTotalAsync(); Task InitStripeCustomerPortalUrlAsync(CustomerPortalUrl request); } @@ -39,10 +41,10 @@ public class BillingV1: IBillingV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; @@ -113,7 +115,7 @@ public async Task GetBalanceAsync() throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -195,7 +197,7 @@ public async Task GetInvoicesAsync() throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -277,7 +279,171 @@ public async Task GetPaymentMethodAsync() throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404, 500}.Contains(httpCode)) + else if (new List{401, 404, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetUpcomingInvoiceItemsAsync() + { + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = baseUrl + "/billing/v1/upcoming/items"; + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetUpcomingInvoiceItemsResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.InvoiceItemPage = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetUpcomingInvoiceTotalAsync() + { + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = baseUrl + "/billing/v1/upcoming/total"; + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetUpcomingInvoiceTotalResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Object = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/BuildV1.cs b/HathoraCloud/BuildsV1.cs similarity index 96% rename from HathoraCloud/BuildV1.cs rename to HathoraCloud/BuildsV1.cs index 6cca08f9..00260a9a 100644 --- a/HathoraCloud/BuildV1.cs +++ b/HathoraCloud/BuildsV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,10 +21,7 @@ namespace HathoraCloud using System; using UnityEngine.Networking; - /// - /// Deprecated. Use BuildV2. - /// - public interface IBuildV1 + public interface IBuildsV1 { /// @@ -53,22 +50,19 @@ public interface IBuildV1 Task RunBuildDeprecatedAsync(RunBuildDeprecatedRequest request); } - /// - /// Deprecated. Use BuildV2. - /// - public class BuildV1: IBuildV1 + public class BuildsV1: IBuildsV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public BuildV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public BuildsV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -226,7 +220,7 @@ public async Task DeleteBuildDeprecatedAsync(Dele if (httpCode == 204) { } - else if (new List{401, 404, 422, 500}.Contains(httpCode)) + else if (new List{401, 404, 422, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -314,7 +308,7 @@ public async Task GetBuildInfoDeprecatedAsync(Ge throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -402,7 +396,7 @@ public async Task GetBuildsDeprecatedAsync(GetBuild throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -496,7 +490,7 @@ public async Task RunBuildDeprecatedAsync(RunBuildDe throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404, 429, 500}.Contains(httpCode)) + else if (new List{400, 401, 404, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/BuildsV2.cs b/HathoraCloud/BuildsV2.cs new file mode 100644 index 00000000..8b8efa37 --- /dev/null +++ b/HathoraCloud/BuildsV2.cs @@ -0,0 +1,718 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud +{ + using HathoraCloud.Models.Errors; + using HathoraCloud.Models.Operations; + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using Newtonsoft.Json; + using System.Collections.Generic; + using System.Text.RegularExpressions; + using System.Threading.Tasks; + using System; + using UnityEngine.Networking; + + public interface IBuildsV2 + { + + /// + /// Creates a new build. Responds with a `buildId` that you must pass to `RunBuild()` to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. + /// + Task CreateBuildV2DeprecatedAsync(CreateBuildV2DeprecatedRequest request); + + /// + /// Creates a new build with `uploadUrl` that can be used to upload the build to before calling `runBuild`. Responds with a `buildId` that you must pass to `RunBuild()` to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. + /// + Task CreateBuildWithUploadUrlV2DeprecatedAsync(CreateBuildWithUploadUrlV2DeprecatedRequest request); + + /// + /// Creates a new build with optional `multipartUploadUrls` that can be used to upload larger builds in parts before calling `runBuild`. Responds with a `buildId` that you must pass to `RunBuild()` to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. + /// + Task CreateWithMultipartUploadsV2DeprecatedAsync(CreateWithMultipartUploadsV2DeprecatedRequest request); + + /// + /// Delete a build. All associated metadata is deleted. + /// + Task DeleteBuildV2DeprecatedAsync(DeleteBuildV2DeprecatedRequest request); + + /// + /// Get details for a build. + /// + Task GetBuildInfoV2DeprecatedAsync(GetBuildInfoV2DeprecatedRequest request); + + /// + /// Returns an array of builds for an application. + /// + Task GetBuildsV2DeprecatedAsync(GetBuildsV2DeprecatedRequest request); + + /// + /// Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from `CreateBuild()`. + /// + Task RunBuildV2DeprecatedAsync(RunBuildV2DeprecatedRequest request); + } + + public class BuildsV2: IBuildsV2 + { + public SDKConfig SDKConfiguration { get; private set; } + private const string _target = "unity"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; + private const string _openapiDocVersion = "0.0.1"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private Func? _securitySource; + + public BuildsV2(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securitySource = securitySource; + _serverUrl = serverUrl; + SDKConfiguration = config; + } + + + + public async Task CreateBuildV2DeprecatedAsync(CreateBuildV2DeprecatedRequest request) + { + if (request == null) + { + request = new CreateBuildV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/create", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "CreateBuildParams", "json", false, false); + if (serializedBody != null) + { + httpRequest.uploadHandler = new UploadHandlerRaw(serializedBody.Body); + httpRequest.SetRequestHeader("Content-Type", serializedBody.ContentType); + } + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new CreateBuildV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 201) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Build = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task CreateBuildWithUploadUrlV2DeprecatedAsync(CreateBuildWithUploadUrlV2DeprecatedRequest request) + { + if (request == null) + { + request = new CreateBuildWithUploadUrlV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/createWithUploadUrl", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "CreateBuildParams", "json", false, false); + if (serializedBody != null) + { + httpRequest.uploadHandler = new UploadHandlerRaw(serializedBody.Body); + httpRequest.SetRequestHeader("Content-Type", serializedBody.ContentType); + } + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new CreateBuildWithUploadUrlV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 201) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.BuildWithUploadUrl = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task CreateWithMultipartUploadsV2DeprecatedAsync(CreateWithMultipartUploadsV2DeprecatedRequest request) + { + if (request == null) + { + request = new CreateWithMultipartUploadsV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/createWithMultipartUploads", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "CreateMultipartBuildParams", "json", false, false); + if (serializedBody != null) + { + httpRequest.uploadHandler = new UploadHandlerRaw(serializedBody.Body); + httpRequest.SetRequestHeader("Content-Type", serializedBody.ContentType); + } + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new CreateWithMultipartUploadsV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 201) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.BuildWithMultipartUrls = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{400, 401, 404, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task DeleteBuildV2DeprecatedAsync(DeleteBuildV2DeprecatedRequest request) + { + if (request == null) + { + request = new DeleteBuildV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/delete/{buildId}", request); + + var httpRequest = new UnityWebRequest(urlString, "DELETE"); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new DeleteBuildV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 204) + { + } + else if (new List{401, 404, 422, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetBuildInfoV2DeprecatedAsync(GetBuildInfoV2DeprecatedRequest request) + { + if (request == null) + { + request = new GetBuildInfoV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/info/{buildId}", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetBuildInfoV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Build = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetBuildsV2DeprecatedAsync(GetBuildsV2DeprecatedRequest request) + { + if (request == null) + { + request = new GetBuildsV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/list", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetBuildsV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject>(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Classes = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task RunBuildV2DeprecatedAsync(RunBuildV2DeprecatedRequest request) + { + if (request == null) + { + request = new RunBuildV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/run/{buildId}", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "multipart", false, false); + if (serializedBody != null) + { + httpRequest.uploadHandler = new UploadHandlerRaw(serializedBody.Body); + httpRequest.SetRequestHeader("Content-Type", serializedBody.ContentType); + } + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new RunBuildV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/octet-stream",response.ContentType)) + { + response.ResponseStream = downloadHandler.Stream; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{400, 401, 404, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + } +} \ No newline at end of file diff --git a/HathoraCloud/BuildV2.cs b/HathoraCloud/BuildsV3.cs similarity index 83% rename from HathoraCloud/BuildV2.cs rename to HathoraCloud/BuildsV3.cs index d23209f3..a2fdafa3 100644 --- a/HathoraCloud/BuildV2.cs +++ b/HathoraCloud/BuildsV3.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,26 +21,25 @@ namespace HathoraCloud using System; using UnityEngine.Networking; - /// - /// Operations that allow you create and manage your builds. - /// - public interface IBuildV2 + public interface IBuildsV3 { /// - /// Creates a new build. Responds with a `buildId` that you must pass to `RunBuild()` to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. + /// Creates a new build with optional `multipartUploadUrls` that can be used to upload larger builds in parts before calling `runBuild`. Responds with a `buildId` that you must pass to `RunBuild()` to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. /// Task CreateBuildAsync(CreateBuildRequest request); /// - /// Delete a build. All associated metadata is deleted. + /// Delete a build. All associated metadata is deleted.
+ /// Be careful which builds you delete. This endpoint does not prevent you from deleting actively used builds.
+ /// Deleting a build that is actively build used by an app's deployment will cause failures when creating rooms. ///
Task DeleteBuildAsync(DeleteBuildRequest request); /// /// Get details for a build. /// - Task GetBuildInfoAsync(GetBuildInfoRequest request); + Task GetBuildAsync(GetBuildRequest request); /// /// Returns an array of builds for an application. @@ -53,22 +52,19 @@ public interface IBuildV2 Task RunBuildAsync(RunBuildRequest request); } - /// - /// Operations that allow you create and manage your builds. - /// - public class BuildV2: IBuildV2 + public class BuildsV3: IBuildsV3 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public BuildV2(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public BuildsV3(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -80,21 +76,15 @@ public BuildV2(ISpeakeasyHttpClient defaultClient, Func? securitySourc public async Task CreateBuildAsync(CreateBuildRequest request) { - if (request == null) - { - request = new CreateBuildRequest(); - } - request.AppId ??= SDKConfiguration.AppId; - string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/create", request); + var urlString = URLBuilder.Build(baseUrl, "/builds/v3/builds", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); httpRequest.downloadHandler = downloadHandler; httpRequest.SetRequestHeader("user-agent", _userAgent); - var serializedBody = RequestBodySerializer.Serialize(request, "CreateBuildParams", "json", false, false); + var serializedBody = RequestBodySerializer.Serialize(request, "CreateMultipartBuildParams", "json", false, false); if (serializedBody != null) { httpRequest.uploadHandler = new UploadHandlerRaw(serializedBody.Body); @@ -139,15 +129,15 @@ public async Task CreateBuildAsync(CreateBuildRequest reque { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.Build = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.CreatedBuildV3WithMultipartUrls = obj; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404, 429, 500}.Contains(httpCode)) + else if (new List{400, 401, 404, 422, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -175,14 +165,8 @@ public async Task CreateBuildAsync(CreateBuildRequest reque public async Task DeleteBuildAsync(DeleteBuildRequest request) { - if (request == null) - { - request = new DeleteBuildRequest(); - } - request.AppId ??= SDKConfiguration.AppId; - string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/delete/{buildId}", request); + var urlString = URLBuilder.Build(baseUrl, "/builds/v3/builds/{buildId}", request); var httpRequest = new UnityWebRequest(urlString, "DELETE"); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); @@ -223,8 +207,17 @@ public async Task DeleteBuildAsync(DeleteBuildRequest reque ContentType = contentType, RawResponse = httpResponse }; - if (httpCode == 204) + if (httpCode == 200) { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.DeletedBuild = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } } else if (new List{401, 404, 422, 429, 500}.Contains(httpCode)) { @@ -252,16 +245,10 @@ public async Task DeleteBuildAsync(DeleteBuildRequest reque - public async Task GetBuildInfoAsync(GetBuildInfoRequest request) + public async Task GetBuildAsync(GetBuildRequest request) { - if (request == null) - { - request = new GetBuildInfoRequest(); - } - request.AppId ??= SDKConfiguration.AppId; - string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/info/{buildId}", request); + var urlString = URLBuilder.Build(baseUrl, "/builds/v3/builds/{buildId}", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); @@ -296,7 +283,7 @@ public async Task GetBuildInfoAsync(GetBuildInfoRequest re contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; } int httpCode = errorCode ?? (int)httpResponse.responseCode; - var response = new GetBuildInfoResponse + var response = new GetBuildResponse { StatusCode = httpCode, ContentType = contentType, @@ -306,15 +293,15 @@ public async Task GetBuildInfoAsync(GetBuildInfoRequest re { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.Build = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.BuildV3 = obj; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -342,14 +329,8 @@ public async Task GetBuildInfoAsync(GetBuildInfoRequest re public async Task GetBuildsAsync(GetBuildsRequest request) { - if (request == null) - { - request = new GetBuildsRequest(); - } - request.AppId ??= SDKConfiguration.AppId; - string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/list", request); + var urlString = URLBuilder.Build(baseUrl, "/builds/v3/builds", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); @@ -394,15 +375,15 @@ public async Task GetBuildsAsync(GetBuildsRequest request) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject>(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.Classes = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.BuildsV3Page = obj; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -430,27 +411,14 @@ public async Task GetBuildsAsync(GetBuildsRequest request) public async Task RunBuildAsync(RunBuildRequest request) { - if (request == null) - { - request = new RunBuildRequest(); - } - request.AppId ??= SDKConfiguration.AppId; - string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/builds/v2/{appId}/run/{buildId}", request); + var urlString = URLBuilder.Build(baseUrl, "/builds/v3/builds/{buildId}/run", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); httpRequest.downloadHandler = downloadHandler; httpRequest.SetRequestHeader("user-agent", _userAgent); - var serializedBody = RequestBodySerializer.Serialize(request, "RequestBody", "multipart", false, false); - if (serializedBody != null) - { - httpRequest.uploadHandler = new UploadHandlerRaw(serializedBody.Body); - httpRequest.SetRequestHeader("Content-Type", serializedBody.ContentType); - } - var client = _defaultClient; if (_securitySource != null) { @@ -489,14 +457,14 @@ public async Task RunBuildAsync(RunBuildRequest request) { if(Utilities.IsContentTypeMatch("application/octet-stream",response.ContentType)) { - response.Stream = downloadHandler.Stream; + response.ResponseStream = downloadHandler.Stream; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404, 429, 500}.Contains(httpCode)) + else if (new List{400, 401, 404, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/DeploymentV1.cs b/HathoraCloud/DeploymentsV1.cs similarity index 83% rename from HathoraCloud/DeploymentV1.cs rename to HathoraCloud/DeploymentsV1.cs index 2c1308ed..6cbc8548 100644 --- a/HathoraCloud/DeploymentV1.cs +++ b/HathoraCloud/DeploymentsV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,49 +21,43 @@ namespace HathoraCloud using System; using UnityEngine.Networking; - /// - /// Deprecated. Use DeploymentV2. - /// - public interface IDeploymentV1 + public interface IDeploymentsV1 { /// /// Create a new deployment. Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. /// - Task CreateDeploymentDeprecatedAsync(CreateDeploymentDeprecatedRequest request); + Task CreateDeploymentV1DeprecatedAsync(CreateDeploymentV1DeprecatedRequest request); /// /// Get details for a deployment. /// - Task GetDeploymentInfoDeprecatedAsync(GetDeploymentInfoDeprecatedRequest request); + Task GetDeploymentInfoV1DeprecatedAsync(GetDeploymentInfoV1DeprecatedRequest request); /// /// Returns an array of deployments for an application. /// - Task GetDeploymentsDeprecatedAsync(GetDeploymentsDeprecatedRequest request); + Task GetDeploymentsV1DeprecatedAsync(GetDeploymentsV1DeprecatedRequest request); /// /// Get the latest deployment for an application. /// - Task GetLatestDeploymentDeprecatedAsync(GetLatestDeploymentDeprecatedRequest request); + Task GetLatestDeploymentV1DeprecatedAsync(GetLatestDeploymentV1DeprecatedRequest request); } - /// - /// Deprecated. Use DeploymentV2. - /// - public class DeploymentV1: IDeploymentV1 + public class DeploymentsV1: IDeploymentsV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public DeploymentV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public DeploymentsV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -73,11 +67,11 @@ public DeploymentV1(ISpeakeasyHttpClient defaultClient, Func? security [Obsolete("This method will be removed in a future release, please migrate away from it as soon as possible")] - public async Task CreateDeploymentDeprecatedAsync(CreateDeploymentDeprecatedRequest request) + public async Task CreateDeploymentV1DeprecatedAsync(CreateDeploymentV1DeprecatedRequest request) { if (request == null) { - request = new CreateDeploymentDeprecatedRequest(); + request = new CreateDeploymentV1DeprecatedRequest(); } request.AppId ??= SDKConfiguration.AppId; @@ -124,7 +118,7 @@ public async Task CreateDeploymentDeprecated contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; } int httpCode = errorCode ?? (int)httpResponse.responseCode; - var response = new CreateDeploymentDeprecatedResponse + var response = new CreateDeploymentV1DeprecatedResponse { StatusCode = httpCode, ContentType = contentType, @@ -134,15 +128,15 @@ public async Task CreateDeploymentDeprecated { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.Deployment = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.DeploymentV1 = obj; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{400, 401, 404, 429, 500}.Contains(httpCode)) + else if (new List{400, 401, 404, 422, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -168,11 +162,11 @@ public async Task CreateDeploymentDeprecated [Obsolete("This method will be removed in a future release, please migrate away from it as soon as possible")] - public async Task GetDeploymentInfoDeprecatedAsync(GetDeploymentInfoDeprecatedRequest request) + public async Task GetDeploymentInfoV1DeprecatedAsync(GetDeploymentInfoV1DeprecatedRequest request) { if (request == null) { - request = new GetDeploymentInfoDeprecatedRequest(); + request = new GetDeploymentInfoV1DeprecatedRequest(); } request.AppId ??= SDKConfiguration.AppId; @@ -212,7 +206,7 @@ public async Task GetDeploymentInfoDeprecat contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; } int httpCode = errorCode ?? (int)httpResponse.responseCode; - var response = new GetDeploymentInfoDeprecatedResponse + var response = new GetDeploymentInfoV1DeprecatedResponse { StatusCode = httpCode, ContentType = contentType, @@ -222,15 +216,15 @@ public async Task GetDeploymentInfoDeprecat { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.Deployment = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.DeploymentV1 = obj; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -256,11 +250,11 @@ public async Task GetDeploymentInfoDeprecat [Obsolete("This method will be removed in a future release, please migrate away from it as soon as possible")] - public async Task GetDeploymentsDeprecatedAsync(GetDeploymentsDeprecatedRequest request) + public async Task GetDeploymentsV1DeprecatedAsync(GetDeploymentsV1DeprecatedRequest request) { if (request == null) { - request = new GetDeploymentsDeprecatedRequest(); + request = new GetDeploymentsV1DeprecatedRequest(); } request.AppId ??= SDKConfiguration.AppId; @@ -300,7 +294,7 @@ public async Task GetDeploymentsDeprecatedAsyn contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; } int httpCode = errorCode ?? (int)httpResponse.responseCode; - var response = new GetDeploymentsDeprecatedResponse + var response = new GetDeploymentsV1DeprecatedResponse { StatusCode = httpCode, ContentType = contentType, @@ -310,7 +304,7 @@ public async Task GetDeploymentsDeprecatedAsyn { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject>(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + var obj = JsonConvert.DeserializeObject>(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); response.Classes = obj; } else @@ -318,7 +312,7 @@ public async Task GetDeploymentsDeprecatedAsyn throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -344,11 +338,11 @@ public async Task GetDeploymentsDeprecatedAsyn [Obsolete("This method will be removed in a future release, please migrate away from it as soon as possible")] - public async Task GetLatestDeploymentDeprecatedAsync(GetLatestDeploymentDeprecatedRequest request) + public async Task GetLatestDeploymentV1DeprecatedAsync(GetLatestDeploymentV1DeprecatedRequest request) { if (request == null) { - request = new GetLatestDeploymentDeprecatedRequest(); + request = new GetLatestDeploymentV1DeprecatedRequest(); } request.AppId ??= SDKConfiguration.AppId; @@ -388,7 +382,7 @@ public async Task GetLatestDeploymentDepr contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; } int httpCode = errorCode ?? (int)httpResponse.responseCode; - var response = new GetLatestDeploymentDeprecatedResponse + var response = new GetLatestDeploymentV1DeprecatedResponse { StatusCode = httpCode, ContentType = contentType, @@ -398,15 +392,15 @@ public async Task GetLatestDeploymentDepr { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.Deployment = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.DeploymentV1 = obj; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 422, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/DeploymentsV2.cs b/HathoraCloud/DeploymentsV2.cs new file mode 100644 index 00000000..c6dd60fc --- /dev/null +++ b/HathoraCloud/DeploymentsV2.cs @@ -0,0 +1,428 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud +{ + using HathoraCloud.Models.Errors; + using HathoraCloud.Models.Operations; + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using Newtonsoft.Json; + using System.Collections.Generic; + using System.Text.RegularExpressions; + using System.Threading.Tasks; + using System; + using UnityEngine.Networking; + + public interface IDeploymentsV2 + { + + /// + /// Create a new deployment. Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. + /// + Task CreateDeploymentV2DeprecatedAsync(CreateDeploymentV2DeprecatedRequest request); + + /// + /// Get details for a deployment. + /// + Task GetDeploymentInfoV2DeprecatedAsync(GetDeploymentInfoV2DeprecatedRequest request); + + /// + /// Returns an array of deployments for an application. + /// + Task GetDeploymentsV2DeprecatedAsync(GetDeploymentsV2DeprecatedRequest request); + + /// + /// Get the latest deployment for an application. + /// + Task GetLatestDeploymentV2DeprecatedAsync(GetLatestDeploymentV2DeprecatedRequest request); + } + + public class DeploymentsV2: IDeploymentsV2 + { + public SDKConfig SDKConfiguration { get; private set; } + private const string _target = "unity"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; + private const string _openapiDocVersion = "0.0.1"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private Func? _securitySource; + + public DeploymentsV2(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securitySource = securitySource; + _serverUrl = serverUrl; + SDKConfiguration = config; + } + + + + public async Task CreateDeploymentV2DeprecatedAsync(CreateDeploymentV2DeprecatedRequest request) + { + if (request == null) + { + request = new CreateDeploymentV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/deployments/v2/{appId}/create/{buildId}", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var serializedBody = RequestBodySerializer.Serialize(request, "DeploymentConfigV2", "json", false, false); + if (serializedBody != null) + { + httpRequest.uploadHandler = new UploadHandlerRaw(serializedBody.Body); + httpRequest.SetRequestHeader("Content-Type", serializedBody.ContentType); + } + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new CreateDeploymentV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 201) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.DeploymentV2 = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{400, 401, 404, 422, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetDeploymentInfoV2DeprecatedAsync(GetDeploymentInfoV2DeprecatedRequest request) + { + if (request == null) + { + request = new GetDeploymentInfoV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/deployments/v2/{appId}/info/{deploymentId}", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetDeploymentInfoV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.DeploymentV2 = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetDeploymentsV2DeprecatedAsync(GetDeploymentsV2DeprecatedRequest request) + { + if (request == null) + { + request = new GetDeploymentsV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/deployments/v2/{appId}/list", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetDeploymentsV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject>(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Classes = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetLatestDeploymentV2DeprecatedAsync(GetLatestDeploymentV2DeprecatedRequest request) + { + if (request == null) + { + request = new GetLatestDeploymentV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/deployments/v2/{appId}/latest", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetLatestDeploymentV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.DeploymentV2 = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 422, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + } +} \ No newline at end of file diff --git a/HathoraCloud/DeploymentV2.cs b/HathoraCloud/DeploymentsV3.cs similarity index 85% rename from HathoraCloud/DeploymentV2.cs rename to HathoraCloud/DeploymentsV3.cs index f26abccf..45620e07 100644 --- a/HathoraCloud/DeploymentV2.cs +++ b/HathoraCloud/DeploymentsV3.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,10 +21,7 @@ namespace HathoraCloud using System; using UnityEngine.Networking; - /// - /// Operations that allow you configure and manage an application's build at runtime. - /// - public interface IDeploymentV2 + public interface IDeploymentsV3 { /// @@ -35,7 +32,7 @@ public interface IDeploymentV2 /// /// Get details for a deployment. /// - Task GetDeploymentInfoAsync(GetDeploymentInfoRequest request); + Task GetDeploymentAsync(GetDeploymentRequest request); /// /// Returns an array of deployments for an application. @@ -48,22 +45,19 @@ public interface IDeploymentV2 Task GetLatestDeploymentAsync(GetLatestDeploymentRequest request); } - /// - /// Operations that allow you configure and manage an application's build at runtime. - /// - public class DeploymentV2: IDeploymentV2 + public class DeploymentsV3: IDeploymentsV3 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public DeploymentV2(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public DeploymentsV3(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -82,14 +76,14 @@ public async Task CreateDeploymentAsync(CreateDeployme request.AppId ??= SDKConfiguration.AppId; string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/deployments/v2/{appId}/create/{buildId}", request); + var urlString = URLBuilder.Build(baseUrl, "/deployments/v3/apps/{appId}/deployments", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); httpRequest.downloadHandler = downloadHandler; httpRequest.SetRequestHeader("user-agent", _userAgent); - var serializedBody = RequestBodySerializer.Serialize(request, "DeploymentConfigV2", "json", false, false); + var serializedBody = RequestBodySerializer.Serialize(request, "DeploymentConfigV3", "json", false, false); if (serializedBody != null) { httpRequest.uploadHandler = new UploadHandlerRaw(serializedBody.Body); @@ -134,15 +128,15 @@ public async Task CreateDeploymentAsync(CreateDeployme { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.DeploymentV2 = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.DeploymentV3 = obj; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{400, 401, 404, 429, 500}.Contains(httpCode)) + else if (new List{400, 401, 404, 422, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -168,16 +162,16 @@ public async Task CreateDeploymentAsync(CreateDeployme - public async Task GetDeploymentInfoAsync(GetDeploymentInfoRequest request) + public async Task GetDeploymentAsync(GetDeploymentRequest request) { if (request == null) { - request = new GetDeploymentInfoRequest(); + request = new GetDeploymentRequest(); } request.AppId ??= SDKConfiguration.AppId; string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/deployments/v2/{appId}/info/{deploymentId}", request); + var urlString = URLBuilder.Build(baseUrl, "/deployments/v3/apps/{appId}/deployments/{deploymentId}", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); @@ -212,7 +206,7 @@ public async Task GetDeploymentInfoAsync(GetDeploymen contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; } int httpCode = errorCode ?? (int)httpResponse.responseCode; - var response = new GetDeploymentInfoResponse + var response = new GetDeploymentResponse { StatusCode = httpCode, ContentType = contentType, @@ -222,15 +216,15 @@ public async Task GetDeploymentInfoAsync(GetDeploymen { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.DeploymentV2 = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.DeploymentV3 = obj; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -265,7 +259,7 @@ public async Task GetDeploymentsAsync(GetDeploymentsRequ request.AppId ??= SDKConfiguration.AppId; string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/deployments/v2/{appId}/list", request); + var urlString = URLBuilder.Build(baseUrl, "/deployments/v3/apps/{appId}/deployments", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); @@ -310,15 +304,15 @@ public async Task GetDeploymentsAsync(GetDeploymentsRequ { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject>(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.Classes = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.DeploymentsV3Page = obj; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -353,7 +347,7 @@ public async Task GetLatestDeploymentAsync(GetLates request.AppId ??= SDKConfiguration.AppId; string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); - var urlString = URLBuilder.Build(baseUrl, "/deployments/v2/{appId}/latest", request); + var urlString = URLBuilder.Build(baseUrl, "/deployments/v3/apps/{appId}/deployments/latest", request); var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); @@ -398,15 +392,15 @@ public async Task GetLatestDeploymentAsync(GetLates { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.DeploymentV2 = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.DeploymentV3 = obj; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 422, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/DiscoveryV1.cs b/HathoraCloud/DiscoveryV1.cs index 36558976..896f9734 100644 --- a/HathoraCloud/DiscoveryV1.cs +++ b/HathoraCloud/DiscoveryV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -40,10 +40,10 @@ public class DiscoveryV1: IDiscoveryV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; diff --git a/HathoraCloud/DiscoveryV2.cs b/HathoraCloud/DiscoveryV2.cs index 2e70866b..990bf47f 100644 --- a/HathoraCloud/DiscoveryV2.cs +++ b/HathoraCloud/DiscoveryV2.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -40,10 +40,10 @@ public class DiscoveryV2: IDiscoveryV2 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; diff --git a/HathoraCloud/HathoraCloud.csproj b/HathoraCloud/HathoraCloud.csproj index 40e5c01f..7b5d0541 100644 --- a/HathoraCloud/HathoraCloud.csproj +++ b/HathoraCloud/HathoraCloud.csproj @@ -2,7 +2,7 @@ true HathoraCloud - 0.29.0 + 0.30.0 Hathora netstandard2.1 enable diff --git a/HathoraCloud/HathoraCloudSDK.cs b/HathoraCloud/HathoraCloudSDK.cs index 7873a0c7..5de87b4b 100644 --- a/HathoraCloud/HathoraCloudSDK.cs +++ b/HathoraCloud/HathoraCloudSDK.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -23,11 +23,8 @@ namespace HathoraCloud /// public interface IHathoraCloudSDK { - - /// - /// Operations that allow you manage your applications. - /// - public IAppV1 AppV1 { get; } + public IAppsV1 AppsV1 { get; } + public IAppsV2 AppsV2 { get; } /// /// Operations that allow you to generate a Hathora-signed JSON web token (JWT) for player authentication. @@ -38,26 +35,12 @@ public interface IHathoraCloudSDK /// /// public IBillingV1 BillingV1 { get; } - - /// - /// Deprecated. Use BuildV2. - /// - public IBuildV1 BuildV1 { get; } - - /// - /// Operations that allow you create and manage your builds. - /// - public IBuildV2 BuildV2 { get; } - - /// - /// Deprecated. Use DeploymentV2. - /// - public IDeploymentV1 DeploymentV1 { get; } - - /// - /// Operations that allow you configure and manage an application's build at runtime. - /// - public IDeploymentV2 DeploymentV2 { get; } + public IBuildsV1 BuildsV1 { get; } + public IBuildsV2 BuildsV2 { get; } + public IBuildsV3 BuildsV3 { get; } + public IDeploymentsV1 DeploymentsV1 { get; } + public IDeploymentsV2 DeploymentsV2 { get; } + public IDeploymentsV3 DeploymentsV3 { get; } /// /// Deprecated. Does not include latest Regions (missing Dallas region). Use DiscoveryV2. @@ -68,26 +51,10 @@ public interface IHathoraCloudSDK /// Service that allows clients to directly ping all Hathora regions to get latency information /// public IDiscoveryV2 DiscoveryV2 { get; } - - /// - /// Deprecated. Use LobbyV3. - /// - public ILobbyV1 LobbyV1 { get; } - - /// - /// Deprecated. Use LobbyV3. - /// - public ILobbyV2 LobbyV2 { get; } - - /// - /// Operations to create and manage lobbies using our Lobby Service. - /// - public ILobbyV3SDK LobbyV3SDK { get; } - - /// - /// Operations to get logs by applications, processes, and deployments. We store 20GB of logs data. - /// - public ILogV1 LogV1 { get; } + public ILobbiesV1 LobbiesV1 { get; } + public ILobbiesV2 LobbiesV2 { get; } + public ILobbiesV3 LobbiesV3 { get; } + public ILogsV1 LogsV1 { get; } /// /// @@ -109,21 +76,14 @@ public interface IHathoraCloudSDK /// Operations to get data on active and stopped processes. /// public IProcessesV2 ProcessesV2 { get; } - - /// - /// Deprecated. Use RoomV2. - /// - public IRoomV1 RoomV1 { get; } - - /// - /// Operations to create, manage, and connect to rooms. - /// - public IRoomV2 RoomV2 { get; } + public IProcessesV3 ProcessesV3 { get; } + public IRoomsV1 RoomsV1 { get; } + public IRoomsV2 RoomsV2 { get; } /// /// /// - public IOrgTokensV1 OrgTokensV1 { get; } + public ITokensV1 TokensV1 { get; } } @@ -159,35 +119,39 @@ public class HathoraCloudSDK: IHathoraCloudSDK public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private int _serverIndex = 0; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public IAppV1 AppV1 { get; private set; } + public IAppsV1 AppsV1 { get; private set; } + public IAppsV2 AppsV2 { get; private set; } public IAuthV1 AuthV1 { get; private set; } public IBillingV1 BillingV1 { get; private set; } - public IBuildV1 BuildV1 { get; private set; } - public IBuildV2 BuildV2 { get; private set; } - public IDeploymentV1 DeploymentV1 { get; private set; } - public IDeploymentV2 DeploymentV2 { get; private set; } + public IBuildsV1 BuildsV1 { get; private set; } + public IBuildsV2 BuildsV2 { get; private set; } + public IBuildsV3 BuildsV3 { get; private set; } + public IDeploymentsV1 DeploymentsV1 { get; private set; } + public IDeploymentsV2 DeploymentsV2 { get; private set; } + public IDeploymentsV3 DeploymentsV3 { get; private set; } public IDiscoveryV1 DiscoveryV1 { get; private set; } public IDiscoveryV2 DiscoveryV2 { get; private set; } - public ILobbyV1 LobbyV1 { get; private set; } - public ILobbyV2 LobbyV2 { get; private set; } - public ILobbyV3SDK LobbyV3SDK { get; private set; } - public ILogV1 LogV1 { get; private set; } + public ILobbiesV1 LobbiesV1 { get; private set; } + public ILobbiesV2 LobbiesV2 { get; private set; } + public ILobbiesV3 LobbiesV3 { get; private set; } + public ILogsV1 LogsV1 { get; private set; } public IManagementV1 ManagementV1 { get; private set; } public IMetricsV1 MetricsV1 { get; private set; } public IOrganizationsV1 OrganizationsV1 { get; private set; } public IProcessesV1 ProcessesV1 { get; private set; } public IProcessesV2 ProcessesV2 { get; private set; } - public IRoomV1 RoomV1 { get; private set; } - public IRoomV2 RoomV2 { get; private set; } - public IOrgTokensV1 OrgTokensV1 { get; private set; } + public IProcessesV3 ProcessesV3 { get; private set; } + public IRoomsV1 RoomsV1 { get; private set; } + public IRoomsV2 RoomsV2 { get; private set; } + public ITokensV1 TokensV1 { get; private set; } public HathoraCloudSDK(Security? security = null, Func? securitySource = null, string? appId = null, int? serverIndex = null, string? serverUrl = null, Dictionary? urlParams = null, ISpeakeasyHttpClient? client = null) { @@ -227,27 +191,31 @@ public HathoraCloudSDK(Security? security = null, Func? securitySource serverUrl = _serverUrl }; - AppV1 = new AppV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + AppsV1 = new AppsV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + AppsV2 = new AppsV2(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); AuthV1 = new AuthV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); BillingV1 = new BillingV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); - BuildV1 = new BuildV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); - BuildV2 = new BuildV2(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); - DeploymentV1 = new DeploymentV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); - DeploymentV2 = new DeploymentV2(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + BuildsV1 = new BuildsV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + BuildsV2 = new BuildsV2(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + BuildsV3 = new BuildsV3(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + DeploymentsV1 = new DeploymentsV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + DeploymentsV2 = new DeploymentsV2(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + DeploymentsV3 = new DeploymentsV3(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); DiscoveryV1 = new DiscoveryV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); DiscoveryV2 = new DiscoveryV2(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); - LobbyV1 = new LobbyV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); - LobbyV2 = new LobbyV2(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); - LobbyV3SDK = new LobbyV3SDK(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); - LogV1 = new LogV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + LobbiesV1 = new LobbiesV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + LobbiesV2 = new LobbiesV2(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + LobbiesV3 = new LobbiesV3(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + LogsV1 = new LogsV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); ManagementV1 = new ManagementV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); MetricsV1 = new MetricsV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); OrganizationsV1 = new OrganizationsV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); ProcessesV1 = new ProcessesV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); ProcessesV2 = new ProcessesV2(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); - RoomV1 = new RoomV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); - RoomV2 = new RoomV2(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); - OrgTokensV1 = new OrgTokensV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + ProcessesV3 = new ProcessesV3(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + RoomsV1 = new RoomsV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + RoomsV2 = new RoomsV2(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); + TokensV1 = new TokensV1(_defaultClient, _securitySource, _serverUrl, SDKConfiguration); } } } diff --git a/HathoraCloud/LobbyV1.cs b/HathoraCloud/LobbiesV1.cs similarity index 95% rename from HathoraCloud/LobbyV1.cs rename to HathoraCloud/LobbiesV1.cs index b4e272a2..b9674f3e 100644 --- a/HathoraCloud/LobbyV1.cs +++ b/HathoraCloud/LobbiesV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,32 +21,26 @@ namespace HathoraCloud using System; using UnityEngine.Networking; - /// - /// Deprecated. Use LobbyV3. - /// - public interface ILobbyV1 + public interface ILobbiesV1 { Task CreatePrivateLobbyDeprecatedAsync(CreatePrivateLobbyDeprecatedSecurity security, CreatePrivateLobbyDeprecatedRequest request); Task CreatePublicLobbyDeprecatedAsync(CreatePublicLobbyDeprecatedSecurity security, CreatePublicLobbyDeprecatedRequest request); Task ListActivePublicLobbiesDeprecatedV1Async(ListActivePublicLobbiesDeprecatedV1Request request); } - /// - /// Deprecated. Use LobbyV3. - /// - public class LobbyV1: ILobbyV1 + public class LobbiesV1: ILobbiesV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public LobbyV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public LobbiesV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -282,7 +276,7 @@ public async Task ListActivePublicL throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (httpCode == 404) + else if (new List{404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/LobbyV2.cs b/HathoraCloud/LobbiesV2.cs similarity index 96% rename from HathoraCloud/LobbyV2.cs rename to HathoraCloud/LobbiesV2.cs index 5e35024d..d4010d6b 100644 --- a/HathoraCloud/LobbyV2.cs +++ b/HathoraCloud/LobbiesV2.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,10 +21,7 @@ namespace HathoraCloud using System; using UnityEngine.Networking; - /// - /// Deprecated. Use LobbyV3. - /// - public interface ILobbyV2 + public interface ILobbiesV2 { /// @@ -51,22 +48,19 @@ public interface ILobbyV2 Task SetLobbyStateAsync(SetLobbyStateRequest request); } - /// - /// Deprecated. Use LobbyV3. - /// - public class LobbyV2: ILobbyV2 + public class LobbiesV2: ILobbiesV2 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public LobbyV2(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public LobbiesV2(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -498,7 +492,7 @@ public async Task GetLobbyInfoAsync(GetLobbyInfoRequest re throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (httpCode == 404) + else if (new List{404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -582,6 +576,18 @@ public async Task ListActivePublicL throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } + else if (new List{401, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); diff --git a/HathoraCloud/LobbyV3SDK.cs b/HathoraCloud/LobbiesV3.cs similarity index 93% rename from HathoraCloud/LobbyV3SDK.cs rename to HathoraCloud/LobbiesV3.cs index 6f8abb85..f9390095 100644 --- a/HathoraCloud/LobbyV3SDK.cs +++ b/HathoraCloud/LobbiesV3.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,10 +21,7 @@ namespace HathoraCloud using System; using UnityEngine.Networking; - /// - /// Operations to create and manage lobbies using our Lobby Service. - /// - public interface ILobbyV3SDK + public interface ILobbiesV3 { /// @@ -48,22 +45,19 @@ public interface ILobbyV3SDK Task ListActivePublicLobbiesAsync(ListActivePublicLobbiesRequest request); } - /// - /// Operations to create and manage lobbies using our Lobby Service. - /// - public class LobbyV3SDK: ILobbyV3SDK + public class LobbiesV3: ILobbiesV3 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public LobbyV3SDK(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public LobbiesV3(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -222,7 +216,7 @@ public async Task GetLobbyInfoByRoomIdAsync(GetLob throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (httpCode == 404) + else if (new List{404, 422, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -306,7 +300,7 @@ public async Task GetLobbyInfoByShortCodeAsync( throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (httpCode == 404) + else if (new List{404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -390,6 +384,18 @@ public async Task ListActivePublicLobbiesAsync( throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } + else if (new List{401, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); diff --git a/HathoraCloud/LogV1.cs b/HathoraCloud/LogsV1.cs similarity index 91% rename from HathoraCloud/LogV1.cs rename to HathoraCloud/LogsV1.cs index ebc48cfc..bd1c274c 100644 --- a/HathoraCloud/LogV1.cs +++ b/HathoraCloud/LogsV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,10 +21,7 @@ namespace HathoraCloud using System; using UnityEngine.Networking; - /// - /// Operations to get logs by applications, processes, and deployments. We store 20GB of logs data. - /// - public interface ILogV1 + public interface ILogsV1 { /// @@ -48,22 +45,19 @@ public interface ILogV1 Task GetLogsForProcessAsync(GetLogsForProcessRequest request); } - /// - /// Operations to get logs by applications, processes, and deployments. We store 20GB of logs data. - /// - public class LogV1: ILogV1 + public class LogsV1: ILogsV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public LogV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public LogsV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -127,14 +121,14 @@ public async Task DownloadLogForProcessAsync(Down { if(Utilities.IsContentTypeMatch("application/octet-stream",response.ContentType)) { - response.Stream = downloadHandler.Stream; + response.ResponseStream = downloadHandler.Stream; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{400, 401, 404, 410}.Contains(httpCode)) + else if (new List{400, 401, 404, 410, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -214,14 +208,14 @@ public async Task GetLogsForAppAsync(GetLogsForAppRequest { if(Utilities.IsContentTypeMatch("application/octet-stream",response.ContentType)) { - response.Stream = downloadHandler.Stream; + response.ResponseStream = downloadHandler.Stream; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -301,14 +295,14 @@ public async Task GetLogsForDeploymentAsync(GetLog { if(Utilities.IsContentTypeMatch("application/octet-stream",response.ContentType)) { - response.Stream = downloadHandler.Stream; + response.ResponseStream = downloadHandler.Stream; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -388,14 +382,14 @@ public async Task GetLogsForProcessAsync(GetLogsForPr { if(Utilities.IsContentTypeMatch("application/octet-stream",response.ContentType)) { - response.Stream = downloadHandler.Stream; + response.ResponseStream = downloadHandler.Stream; } else { throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{400, 401, 404, 410, 500}.Contains(httpCode)) + else if (new List{400, 401, 404, 410, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/ManagementV1.cs b/HathoraCloud/ManagementV1.cs index 42a3e3d2..bc2b612d 100644 --- a/HathoraCloud/ManagementV1.cs +++ b/HathoraCloud/ManagementV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -36,10 +36,10 @@ public class ManagementV1: IManagementV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; diff --git a/HathoraCloud/MetricsV1.cs b/HathoraCloud/MetricsV1.cs index b5e2a33d..1e65bdd9 100644 --- a/HathoraCloud/MetricsV1.cs +++ b/HathoraCloud/MetricsV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -40,10 +40,10 @@ public class MetricsV1: IMetricsV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; @@ -120,7 +120,7 @@ public async Task GetMetricsAsync(GetMetricsRequest request) throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404, 422, 500}.Contains(httpCode)) + else if (new List{401, 404, 422, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/Models/Errors/ApiError.cs b/HathoraCloud/Models/Errors/ApiError.cs index 12726096..a47d3b8c 100644 --- a/HathoraCloud/Models/Errors/ApiError.cs +++ b/HathoraCloud/Models/Errors/ApiError.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Errors/SDKException.cs b/HathoraCloud/Models/Errors/SDKException.cs index dd461688..2ddcc4e4 100644 --- a/HathoraCloud/Models/Errors/SDKException.cs +++ b/HathoraCloud/Models/Errors/SDKException.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/AcceptInviteRequest.cs b/HathoraCloud/Models/Operations/AcceptInviteRequest.cs index e5984126..103d705d 100644 --- a/HathoraCloud/Models/Operations/AcceptInviteRequest.cs +++ b/HathoraCloud/Models/Operations/AcceptInviteRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/AcceptInviteResponse.cs b/HathoraCloud/Models/Operations/AcceptInviteResponse.cs index 077569ca..01f777a9 100644 --- a/HathoraCloud/Models/Operations/AcceptInviteResponse.cs +++ b/HathoraCloud/Models/Operations/AcceptInviteResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateAppRequest.cs b/HathoraCloud/Models/Operations/CreateAppRequest.cs new file mode 100644 index 00000000..4f84b732 --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateAppRequest.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class CreateAppRequest + { + + [SerializeField] + [SpeakeasyMetadata("request:mediaType=application/json")] + public AppConfig AppConfig { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=orgId")] + public string? OrgId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreateAppResponse.cs b/HathoraCloud/Models/Operations/CreateAppResponse.cs index c38adaa2..af9706de 100644 --- a/HathoraCloud/Models/Operations/CreateAppResponse.cs +++ b/HathoraCloud/Models/Operations/CreateAppResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateAppV1DeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreateAppV1DeprecatedResponse.cs new file mode 100644 index 00000000..80566827 --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateAppV1DeprecatedResponse.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class CreateAppV1DeprecatedResponse: IDisposable + { + + [SerializeField] + public HathoraCloud.Models.Shared.Application? Application { get; set; } + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreateBuildDeprecatedRequest.cs b/HathoraCloud/Models/Operations/CreateBuildDeprecatedRequest.cs index fd6c9607..6565b37e 100644 --- a/HathoraCloud/Models/Operations/CreateBuildDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/CreateBuildDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateBuildDeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreateBuildDeprecatedResponse.cs index 760be5d9..d4a9b9b6 100644 --- a/HathoraCloud/Models/Operations/CreateBuildDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/CreateBuildDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateBuildRequest.cs b/HathoraCloud/Models/Operations/CreateBuildRequest.cs index d512d3f9..73cde846 100644 --- a/HathoraCloud/Models/Operations/CreateBuildRequest.cs +++ b/HathoraCloud/Models/Operations/CreateBuildRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,10 +21,10 @@ public class CreateBuildRequest [SerializeField] [SpeakeasyMetadata("request:mediaType=application/json")] - public CreateBuildParams CreateBuildParams { get; set; } = default!; + public CreateMultipartBuildParams CreateMultipartBuildParams { get; set; } = default!; [SerializeField] - [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] - public string? AppId { get; set; } + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=orgId")] + public string? OrgId { get; set; } } } \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreateBuildResponse.cs b/HathoraCloud/Models/Operations/CreateBuildResponse.cs index cc67d71a..7c3dd20c 100644 --- a/HathoraCloud/Models/Operations/CreateBuildResponse.cs +++ b/HathoraCloud/Models/Operations/CreateBuildResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -19,15 +19,15 @@ namespace HathoraCloud.Models.Operations public class CreateBuildResponse: IDisposable { - [SerializeField] - public Build? Build { get; set; } - /// /// HTTP response content type for this operation /// [SerializeField] public string? ContentType { get; set; } = default!; + [SerializeField] + public CreatedBuildV3WithMultipartUrls? CreatedBuildV3WithMultipartUrls { get; set; } + /// /// HTTP response status code for this operation /// diff --git a/HathoraCloud/Models/Operations/CreateBuildV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/CreateBuildV2DeprecatedRequest.cs new file mode 100644 index 00000000..00538abd --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateBuildV2DeprecatedRequest.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class CreateBuildV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("request:mediaType=application/json")] + public CreateBuildParams CreateBuildParams { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreateDeploymentDeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreateBuildV2DeprecatedResponse.cs similarity index 86% rename from HathoraCloud/Models/Operations/CreateDeploymentDeprecatedResponse.cs rename to HathoraCloud/Models/Operations/CreateBuildV2DeprecatedResponse.cs index 158d352b..e7f88b05 100644 --- a/HathoraCloud/Models/Operations/CreateDeploymentDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/CreateBuildV2DeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,18 +16,18 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class CreateDeploymentDeprecatedResponse: IDisposable + public class CreateBuildV2DeprecatedResponse: IDisposable { + [SerializeField] + public Build? Build { get; set; } + /// /// HTTP response content type for this operation /// [SerializeField] public string? ContentType { get; set; } = default!; - [SerializeField] - public Deployment? Deployment { get; set; } - /// /// HTTP response status code for this operation /// diff --git a/HathoraCloud/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedRequest.cs new file mode 100644 index 00000000..d406b2ea --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedRequest.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class CreateBuildWithUploadUrlV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("request:mediaType=application/json")] + public CreateBuildParams CreateBuildParams { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedResponse.cs new file mode 100644 index 00000000..1533d61f --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedResponse.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class CreateBuildWithUploadUrlV2DeprecatedResponse: IDisposable + { + + [SerializeField] + public BuildWithUploadUrl? BuildWithUploadUrl { get; set; } + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreateDeploymentRequest.cs b/HathoraCloud/Models/Operations/CreateDeploymentRequest.cs index 7bb0a1d2..9ab97f19 100644 --- a/HathoraCloud/Models/Operations/CreateDeploymentRequest.cs +++ b/HathoraCloud/Models/Operations/CreateDeploymentRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,11 +21,7 @@ public class CreateDeploymentRequest [SerializeField] [SpeakeasyMetadata("request:mediaType=application/json")] - public DeploymentConfigV2 DeploymentConfigV2 { get; set; } = default!; - - [SerializeField] - [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=buildId")] - public int BuildId { get; set; } = default!; + public DeploymentConfigV3 DeploymentConfigV3 { get; set; } = default!; [SerializeField] [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] diff --git a/HathoraCloud/Models/Operations/CreateDeploymentResponse.cs b/HathoraCloud/Models/Operations/CreateDeploymentResponse.cs index 389c1dba..0eca0380 100644 --- a/HathoraCloud/Models/Operations/CreateDeploymentResponse.cs +++ b/HathoraCloud/Models/Operations/CreateDeploymentResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -26,7 +26,7 @@ public class CreateDeploymentResponse: IDisposable public string? ContentType { get; set; } = default!; [SerializeField] - public HathoraCloud.Models.Shared.DeploymentV2? DeploymentV2 { get; set; } + public DeploymentV3? DeploymentV3 { get; set; } /// /// HTTP response status code for this operation diff --git a/HathoraCloud/Models/Operations/CreateDeploymentDeprecatedRequest.cs b/HathoraCloud/Models/Operations/CreateDeploymentV1DeprecatedRequest.cs similarity index 88% rename from HathoraCloud/Models/Operations/CreateDeploymentDeprecatedRequest.cs rename to HathoraCloud/Models/Operations/CreateDeploymentV1DeprecatedRequest.cs index 8e5581c1..0a97dcb6 100644 --- a/HathoraCloud/Models/Operations/CreateDeploymentDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/CreateDeploymentV1DeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,7 +16,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class CreateDeploymentDeprecatedRequest + public class CreateDeploymentV1DeprecatedRequest { [SerializeField] diff --git a/HathoraCloud/Models/Operations/CreateDeploymentV1DeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreateDeploymentV1DeprecatedResponse.cs new file mode 100644 index 00000000..433386b7 --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateDeploymentV1DeprecatedResponse.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class CreateDeploymentV1DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + [SerializeField] + public DeploymentV1? DeploymentV1 { get; set; } + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreateDeploymentV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/CreateDeploymentV2DeprecatedRequest.cs new file mode 100644 index 00000000..6603e340 --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateDeploymentV2DeprecatedRequest.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class CreateDeploymentV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("request:mediaType=application/json")] + public DeploymentConfigV2 DeploymentConfigV2 { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=buildId")] + public int BuildId { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreateDeploymentV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreateDeploymentV2DeprecatedResponse.cs new file mode 100644 index 00000000..f6d68643 --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateDeploymentV2DeprecatedResponse.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class CreateDeploymentV2DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + [SerializeField] + public DeploymentV2? DeploymentV2 { get; set; } + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreateLobbyDeprecatedRequest.cs b/HathoraCloud/Models/Operations/CreateLobbyDeprecatedRequest.cs index 2d868a95..b8537ab6 100644 --- a/HathoraCloud/Models/Operations/CreateLobbyDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/CreateLobbyDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateLobbyDeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreateLobbyDeprecatedResponse.cs index a6a46fa8..e6e5f53a 100644 --- a/HathoraCloud/Models/Operations/CreateLobbyDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/CreateLobbyDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateLobbyDeprecatedSecurity.cs b/HathoraCloud/Models/Operations/CreateLobbyDeprecatedSecurity.cs index e7343f04..df95dfd3 100644 --- a/HathoraCloud/Models/Operations/CreateLobbyDeprecatedSecurity.cs +++ b/HathoraCloud/Models/Operations/CreateLobbyDeprecatedSecurity.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateLobbyRequest.cs b/HathoraCloud/Models/Operations/CreateLobbyRequest.cs index 2a504557..17e13bad 100644 --- a/HathoraCloud/Models/Operations/CreateLobbyRequest.cs +++ b/HathoraCloud/Models/Operations/CreateLobbyRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateLobbyResponse.cs b/HathoraCloud/Models/Operations/CreateLobbyResponse.cs index 371ae54d..e286d640 100644 --- a/HathoraCloud/Models/Operations/CreateLobbyResponse.cs +++ b/HathoraCloud/Models/Operations/CreateLobbyResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateLobbySecurity.cs b/HathoraCloud/Models/Operations/CreateLobbySecurity.cs index ce8adccc..9df7ad4d 100644 --- a/HathoraCloud/Models/Operations/CreateLobbySecurity.cs +++ b/HathoraCloud/Models/Operations/CreateLobbySecurity.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateLocalLobbyRequest.cs b/HathoraCloud/Models/Operations/CreateLocalLobbyRequest.cs index 6a11f6d2..cde8cd94 100644 --- a/HathoraCloud/Models/Operations/CreateLocalLobbyRequest.cs +++ b/HathoraCloud/Models/Operations/CreateLocalLobbyRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateLocalLobbyRequestBody.cs b/HathoraCloud/Models/Operations/CreateLocalLobbyRequestBody.cs index 59349f9b..24f3209a 100644 --- a/HathoraCloud/Models/Operations/CreateLocalLobbyRequestBody.cs +++ b/HathoraCloud/Models/Operations/CreateLocalLobbyRequestBody.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -24,7 +24,7 @@ public class CreateLocalLobbyRequestBody /// [SerializeField] [JsonProperty("initialConfig")] - public LobbyInitialConfig InitialConfig { get; set; } = default!; + public object InitialConfig { get; set; } = default!; [SerializeField] [JsonProperty("region")] diff --git a/HathoraCloud/Models/Operations/CreateLocalLobbyResponse.cs b/HathoraCloud/Models/Operations/CreateLocalLobbyResponse.cs index 73f6fea9..d990ab63 100644 --- a/HathoraCloud/Models/Operations/CreateLocalLobbyResponse.cs +++ b/HathoraCloud/Models/Operations/CreateLocalLobbyResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateLocalLobbySecurity.cs b/HathoraCloud/Models/Operations/CreateLocalLobbySecurity.cs index 0e78935b..c0d697b6 100644 --- a/HathoraCloud/Models/Operations/CreateLocalLobbySecurity.cs +++ b/HathoraCloud/Models/Operations/CreateLocalLobbySecurity.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateOrgTokenRequest.cs b/HathoraCloud/Models/Operations/CreateOrgTokenRequest.cs index a9b8a03f..963add4a 100644 --- a/HathoraCloud/Models/Operations/CreateOrgTokenRequest.cs +++ b/HathoraCloud/Models/Operations/CreateOrgTokenRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateOrgTokenResponse.cs b/HathoraCloud/Models/Operations/CreateOrgTokenResponse.cs index 486e1f88..6ed39c98 100644 --- a/HathoraCloud/Models/Operations/CreateOrgTokenResponse.cs +++ b/HathoraCloud/Models/Operations/CreateOrgTokenResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedRequest.cs b/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedRequest.cs index feef58a1..de331fd7 100644 --- a/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedResponse.cs index f5a0dca1..f6156a6a 100644 --- a/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedSecurity.cs b/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedSecurity.cs index 592db169..98455276 100644 --- a/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedSecurity.cs +++ b/HathoraCloud/Models/Operations/CreatePrivateLobbyDeprecatedSecurity.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreatePrivateLobbyRequest.cs b/HathoraCloud/Models/Operations/CreatePrivateLobbyRequest.cs index 529ba755..96bf2cbb 100644 --- a/HathoraCloud/Models/Operations/CreatePrivateLobbyRequest.cs +++ b/HathoraCloud/Models/Operations/CreatePrivateLobbyRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreatePrivateLobbyRequestBody.cs b/HathoraCloud/Models/Operations/CreatePrivateLobbyRequestBody.cs index 46f09f7c..a8a3c0a4 100644 --- a/HathoraCloud/Models/Operations/CreatePrivateLobbyRequestBody.cs +++ b/HathoraCloud/Models/Operations/CreatePrivateLobbyRequestBody.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -24,7 +24,7 @@ public class CreatePrivateLobbyRequestBody /// [SerializeField] [JsonProperty("initialConfig")] - public LobbyInitialConfig InitialConfig { get; set; } = default!; + public object InitialConfig { get; set; } = default!; [SerializeField] [JsonProperty("region")] diff --git a/HathoraCloud/Models/Operations/CreatePrivateLobbyResponse.cs b/HathoraCloud/Models/Operations/CreatePrivateLobbyResponse.cs index 0cb1ce35..f9f48990 100644 --- a/HathoraCloud/Models/Operations/CreatePrivateLobbyResponse.cs +++ b/HathoraCloud/Models/Operations/CreatePrivateLobbyResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreatePrivateLobbySecurity.cs b/HathoraCloud/Models/Operations/CreatePrivateLobbySecurity.cs index a9e4877f..6b7e4294 100644 --- a/HathoraCloud/Models/Operations/CreatePrivateLobbySecurity.cs +++ b/HathoraCloud/Models/Operations/CreatePrivateLobbySecurity.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateProcessRequest.cs b/HathoraCloud/Models/Operations/CreateProcessRequest.cs index 785402de..8615dd02 100644 --- a/HathoraCloud/Models/Operations/CreateProcessRequest.cs +++ b/HathoraCloud/Models/Operations/CreateProcessRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateProcessResponse.cs b/HathoraCloud/Models/Operations/CreateProcessResponse.cs index f4f38ff2..b14d96af 100644 --- a/HathoraCloud/Models/Operations/CreateProcessResponse.cs +++ b/HathoraCloud/Models/Operations/CreateProcessResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -26,7 +26,7 @@ public class CreateProcessResponse: IDisposable public string? ContentType { get; set; } = default!; [SerializeField] - public ProcessV2? ProcessV2 { get; set; } + public ProcessV3? ProcessV3 { get; set; } /// /// HTTP response status code for this operation diff --git a/HathoraCloud/Models/Operations/CreateProcessV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/CreateProcessV2DeprecatedRequest.cs new file mode 100644 index 00000000..7c1ced5f --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateProcessV2DeprecatedRequest.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class CreateProcessV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=region")] + public Region Region { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreateProcessV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreateProcessV2DeprecatedResponse.cs new file mode 100644 index 00000000..a61eb37b --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateProcessV2DeprecatedResponse.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class CreateProcessV2DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + [SerializeField] + public ProcessV2? ProcessV2 { get; set; } + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedRequest.cs b/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedRequest.cs index b7d25300..11f0689e 100644 --- a/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedResponse.cs index 3fc38341..ce59338e 100644 --- a/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedSecurity.cs b/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedSecurity.cs index 75acd354..4919ceb7 100644 --- a/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedSecurity.cs +++ b/HathoraCloud/Models/Operations/CreatePublicLobbyDeprecatedSecurity.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreatePublicLobbyRequest.cs b/HathoraCloud/Models/Operations/CreatePublicLobbyRequest.cs index ddb97a5a..c7b89de2 100644 --- a/HathoraCloud/Models/Operations/CreatePublicLobbyRequest.cs +++ b/HathoraCloud/Models/Operations/CreatePublicLobbyRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreatePublicLobbyRequestBody.cs b/HathoraCloud/Models/Operations/CreatePublicLobbyRequestBody.cs index 007cf522..d588d098 100644 --- a/HathoraCloud/Models/Operations/CreatePublicLobbyRequestBody.cs +++ b/HathoraCloud/Models/Operations/CreatePublicLobbyRequestBody.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -24,7 +24,7 @@ public class CreatePublicLobbyRequestBody /// [SerializeField] [JsonProperty("initialConfig")] - public LobbyInitialConfig InitialConfig { get; set; } = default!; + public object InitialConfig { get; set; } = default!; [SerializeField] [JsonProperty("region")] diff --git a/HathoraCloud/Models/Operations/CreatePublicLobbyResponse.cs b/HathoraCloud/Models/Operations/CreatePublicLobbyResponse.cs index a82e465d..ec855a88 100644 --- a/HathoraCloud/Models/Operations/CreatePublicLobbyResponse.cs +++ b/HathoraCloud/Models/Operations/CreatePublicLobbyResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreatePublicLobbySecurity.cs b/HathoraCloud/Models/Operations/CreatePublicLobbySecurity.cs index 9fe240b9..4d692c4a 100644 --- a/HathoraCloud/Models/Operations/CreatePublicLobbySecurity.cs +++ b/HathoraCloud/Models/Operations/CreatePublicLobbySecurity.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateRoomDeprecatedRequest.cs b/HathoraCloud/Models/Operations/CreateRoomDeprecatedRequest.cs index 8c380c7b..9b8e4987 100644 --- a/HathoraCloud/Models/Operations/CreateRoomDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/CreateRoomDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateRoomDeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreateRoomDeprecatedResponse.cs index 888d4055..43f2c555 100644 --- a/HathoraCloud/Models/Operations/CreateRoomDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/CreateRoomDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateRoomRequest.cs b/HathoraCloud/Models/Operations/CreateRoomRequest.cs index 02ec82f1..55ac34e3 100644 --- a/HathoraCloud/Models/Operations/CreateRoomRequest.cs +++ b/HathoraCloud/Models/Operations/CreateRoomRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateRoomResponse.cs b/HathoraCloud/Models/Operations/CreateRoomResponse.cs index 61a135bb..556f7bd7 100644 --- a/HathoraCloud/Models/Operations/CreateRoomResponse.cs +++ b/HathoraCloud/Models/Operations/CreateRoomResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/CreateWithMultipartUploadsV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/CreateWithMultipartUploadsV2DeprecatedRequest.cs new file mode 100644 index 00000000..2ceb3eb2 --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateWithMultipartUploadsV2DeprecatedRequest.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class CreateWithMultipartUploadsV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("request:mediaType=application/json")] + public CreateMultipartBuildParams CreateMultipartBuildParams { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/CreateWithMultipartUploadsV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/CreateWithMultipartUploadsV2DeprecatedResponse.cs new file mode 100644 index 00000000..0b423e92 --- /dev/null +++ b/HathoraCloud/Models/Operations/CreateWithMultipartUploadsV2DeprecatedResponse.cs @@ -0,0 +1,48 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class CreateWithMultipartUploadsV2DeprecatedResponse: IDisposable + { + + [SerializeField] + public BuildWithMultipartUrls? BuildWithMultipartUrls { get; set; } + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/DeleteAppRequest.cs b/HathoraCloud/Models/Operations/DeleteAppRequest.cs index 6e34c646..f22e7315 100644 --- a/HathoraCloud/Models/Operations/DeleteAppRequest.cs +++ b/HathoraCloud/Models/Operations/DeleteAppRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/DeleteAppResponse.cs b/HathoraCloud/Models/Operations/DeleteAppResponse.cs index 190ef7ba..afffef77 100644 --- a/HathoraCloud/Models/Operations/DeleteAppResponse.cs +++ b/HathoraCloud/Models/Operations/DeleteAppResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetDeploymentsDeprecatedRequest.cs b/HathoraCloud/Models/Operations/DeleteAppV1DeprecatedRequest.cs similarity index 82% rename from HathoraCloud/Models/Operations/GetDeploymentsDeprecatedRequest.cs rename to HathoraCloud/Models/Operations/DeleteAppV1DeprecatedRequest.cs index bd4ec53d..91d4a7ac 100644 --- a/HathoraCloud/Models/Operations/GetDeploymentsDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/DeleteAppV1DeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,7 +15,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetDeploymentsDeprecatedRequest + public class DeleteAppV1DeprecatedRequest { [SerializeField] diff --git a/HathoraCloud/Models/Operations/DeleteAppV1DeprecatedResponse.cs b/HathoraCloud/Models/Operations/DeleteAppV1DeprecatedResponse.cs new file mode 100644 index 00000000..bddc759e --- /dev/null +++ b/HathoraCloud/Models/Operations/DeleteAppV1DeprecatedResponse.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class DeleteAppV1DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/DeleteBuildDeprecatedRequest.cs b/HathoraCloud/Models/Operations/DeleteBuildDeprecatedRequest.cs index 746161b6..3e5b0b86 100644 --- a/HathoraCloud/Models/Operations/DeleteBuildDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/DeleteBuildDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/DeleteBuildDeprecatedResponse.cs b/HathoraCloud/Models/Operations/DeleteBuildDeprecatedResponse.cs index fa402be9..e2dfae7f 100644 --- a/HathoraCloud/Models/Operations/DeleteBuildDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/DeleteBuildDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/DeleteBuildRequest.cs b/HathoraCloud/Models/Operations/DeleteBuildRequest.cs index 162f54b8..48caa942 100644 --- a/HathoraCloud/Models/Operations/DeleteBuildRequest.cs +++ b/HathoraCloud/Models/Operations/DeleteBuildRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -20,10 +20,10 @@ public class DeleteBuildRequest [SerializeField] [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=buildId")] - public int BuildId { get; set; } = default!; + public string BuildId { get; set; } = default!; [SerializeField] - [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] - public string? AppId { get; set; } + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=orgId")] + public string? OrgId { get; set; } } } \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/DeleteBuildResponse.cs b/HathoraCloud/Models/Operations/DeleteBuildResponse.cs index 02397eaa..e884c0c3 100644 --- a/HathoraCloud/Models/Operations/DeleteBuildResponse.cs +++ b/HathoraCloud/Models/Operations/DeleteBuildResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -10,6 +10,7 @@ #nullable enable namespace HathoraCloud.Models.Operations { + using HathoraCloud.Models.Shared; using System; using UnityEngine.Networking; using UnityEngine; @@ -24,6 +25,12 @@ public class DeleteBuildResponse: IDisposable [SerializeField] public string? ContentType { get; set; } = default!; + /// + /// Ok + /// + [SerializeField] + public DeletedBuild? DeletedBuild { get; set; } + /// /// HTTP response status code for this operation /// diff --git a/HathoraCloud/Models/Operations/GetBuildInfoRequest.cs b/HathoraCloud/Models/Operations/DeleteBuildV2DeprecatedRequest.cs similarity index 86% rename from HathoraCloud/Models/Operations/GetBuildInfoRequest.cs rename to HathoraCloud/Models/Operations/DeleteBuildV2DeprecatedRequest.cs index 151a3f07..a067843d 100644 --- a/HathoraCloud/Models/Operations/GetBuildInfoRequest.cs +++ b/HathoraCloud/Models/Operations/DeleteBuildV2DeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,7 +15,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetBuildInfoRequest + public class DeleteBuildV2DeprecatedRequest { [SerializeField] diff --git a/HathoraCloud/Models/Operations/DeleteBuildV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/DeleteBuildV2DeprecatedResponse.cs new file mode 100644 index 00000000..88d1dde1 --- /dev/null +++ b/HathoraCloud/Models/Operations/DeleteBuildV2DeprecatedResponse.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class DeleteBuildV2DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/DestroyRoomDeprecatedRequest.cs b/HathoraCloud/Models/Operations/DestroyRoomDeprecatedRequest.cs index 90914160..2fdafbc2 100644 --- a/HathoraCloud/Models/Operations/DestroyRoomDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/DestroyRoomDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/DestroyRoomDeprecatedResponse.cs b/HathoraCloud/Models/Operations/DestroyRoomDeprecatedResponse.cs index 54f60a2c..449152e1 100644 --- a/HathoraCloud/Models/Operations/DestroyRoomDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/DestroyRoomDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/DestroyRoomRequest.cs b/HathoraCloud/Models/Operations/DestroyRoomRequest.cs index fee31437..9ecbb83d 100644 --- a/HathoraCloud/Models/Operations/DestroyRoomRequest.cs +++ b/HathoraCloud/Models/Operations/DestroyRoomRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/DestroyRoomResponse.cs b/HathoraCloud/Models/Operations/DestroyRoomResponse.cs index 20eac7bf..326fa4a5 100644 --- a/HathoraCloud/Models/Operations/DestroyRoomResponse.cs +++ b/HathoraCloud/Models/Operations/DestroyRoomResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/DownloadLogForProcessRequest.cs b/HathoraCloud/Models/Operations/DownloadLogForProcessRequest.cs index 36a1e127..676f5402 100644 --- a/HathoraCloud/Models/Operations/DownloadLogForProcessRequest.cs +++ b/HathoraCloud/Models/Operations/DownloadLogForProcessRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/DownloadLogForProcessResponse.cs b/HathoraCloud/Models/Operations/DownloadLogForProcessResponse.cs index 2e73c4de..d46144e0 100644 --- a/HathoraCloud/Models/Operations/DownloadLogForProcessResponse.cs +++ b/HathoraCloud/Models/Operations/DownloadLogForProcessResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -41,7 +41,7 @@ public class DownloadLogForProcessResponse: IDisposable /// Ok /// [SerializeField] - public MemoryQueueBufferStream? Stream { get; set; } + public MemoryQueueBufferStream? ResponseStream { get; set; } public void Dispose() { if (RawResponse != null) { RawResponse.Dispose(); diff --git a/HathoraCloud/Models/Operations/File.cs b/HathoraCloud/Models/Operations/File.cs index 086c60e7..c8a28ad7 100644 --- a/HathoraCloud/Models/Operations/File.cs +++ b/HathoraCloud/Models/Operations/File.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedRequest.cs index ed616b5d..71b4d530 100644 --- a/HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedResponse.cs index 92cea264..c41f78e3 100644 --- a/HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/GetActiveRoomsForProcessDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetActiveRoomsForProcessRequest.cs b/HathoraCloud/Models/Operations/GetActiveRoomsForProcessRequest.cs index a4a84345..dda30073 100644 --- a/HathoraCloud/Models/Operations/GetActiveRoomsForProcessRequest.cs +++ b/HathoraCloud/Models/Operations/GetActiveRoomsForProcessRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetActiveRoomsForProcessResponse.cs b/HathoraCloud/Models/Operations/GetActiveRoomsForProcessResponse.cs index 5fcea701..86319136 100644 --- a/HathoraCloud/Models/Operations/GetActiveRoomsForProcessResponse.cs +++ b/HathoraCloud/Models/Operations/GetActiveRoomsForProcessResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLatestDeploymentDeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetAppInfoV1DeprecatedRequest.cs similarity index 82% rename from HathoraCloud/Models/Operations/GetLatestDeploymentDeprecatedRequest.cs rename to HathoraCloud/Models/Operations/GetAppInfoV1DeprecatedRequest.cs index 6f7e0bb1..621b848c 100644 --- a/HathoraCloud/Models/Operations/GetLatestDeploymentDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/GetAppInfoV1DeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,7 +15,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetLatestDeploymentDeprecatedRequest + public class GetAppInfoV1DeprecatedRequest { [SerializeField] diff --git a/HathoraCloud/Models/Operations/GetDeploymentInfoResponse.cs b/HathoraCloud/Models/Operations/GetAppInfoV1DeprecatedResponse.cs similarity index 85% rename from HathoraCloud/Models/Operations/GetDeploymentInfoResponse.cs rename to HathoraCloud/Models/Operations/GetAppInfoV1DeprecatedResponse.cs index 88027527..50c5d8c1 100644 --- a/HathoraCloud/Models/Operations/GetDeploymentInfoResponse.cs +++ b/HathoraCloud/Models/Operations/GetAppInfoV1DeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,20 +16,20 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetDeploymentInfoResponse: IDisposable + public class GetAppInfoV1DeprecatedResponse: IDisposable { /// - /// HTTP response content type for this operation + /// Ok /// [SerializeField] - public string? ContentType { get; set; } = default!; + public HathoraCloud.Models.Shared.Application? Application { get; set; } /// - /// Ok + /// HTTP response content type for this operation /// [SerializeField] - public HathoraCloud.Models.Shared.DeploymentV2? DeploymentV2 { get; set; } + public string? ContentType { get; set; } = default!; /// /// HTTP response status code for this operation diff --git a/HathoraCloud/Models/Operations/GetAppInfoRequest.cs b/HathoraCloud/Models/Operations/GetAppRequest.cs similarity index 84% rename from HathoraCloud/Models/Operations/GetAppInfoRequest.cs rename to HathoraCloud/Models/Operations/GetAppRequest.cs index 412e9bbb..d5acb4c7 100644 --- a/HathoraCloud/Models/Operations/GetAppInfoRequest.cs +++ b/HathoraCloud/Models/Operations/GetAppRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,7 +15,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetAppInfoRequest + public class GetAppRequest { [SerializeField] diff --git a/HathoraCloud/Models/Operations/GetAppInfoResponse.cs b/HathoraCloud/Models/Operations/GetAppResponse.cs similarity index 91% rename from HathoraCloud/Models/Operations/GetAppInfoResponse.cs rename to HathoraCloud/Models/Operations/GetAppResponse.cs index c160dac8..8766d107 100644 --- a/HathoraCloud/Models/Operations/GetAppInfoResponse.cs +++ b/HathoraCloud/Models/Operations/GetAppResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,7 +16,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetAppInfoResponse: IDisposable + public class GetAppResponse: IDisposable { /// diff --git a/HathoraCloud/Models/Operations/GetAppsRequest.cs b/HathoraCloud/Models/Operations/GetAppsRequest.cs new file mode 100644 index 00000000..74f281aa --- /dev/null +++ b/HathoraCloud/Models/Operations/GetAppsRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class GetAppsRequest + { + + [SerializeField] + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=orgId")] + public string? OrgId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetAppsResponse.cs b/HathoraCloud/Models/Operations/GetAppsResponse.cs index 64282202..b0fe68fd 100644 --- a/HathoraCloud/Models/Operations/GetAppsResponse.cs +++ b/HathoraCloud/Models/Operations/GetAppsResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -11,7 +11,6 @@ namespace HathoraCloud.Models.Operations { using HathoraCloud.Models.Shared; - using System.Collections.Generic; using System; using UnityEngine.Networking; using UnityEngine; @@ -20,6 +19,12 @@ namespace HathoraCloud.Models.Operations public class GetAppsResponse: IDisposable { + /// + /// Ok + /// + [SerializeField] + public ApplicationsPage? ApplicationsPage { get; set; } + /// /// HTTP response content type for this operation /// @@ -37,12 +42,6 @@ public class GetAppsResponse: IDisposable /// [SerializeField] public UnityWebRequest RawResponse { get; set; } = default!; - - /// - /// Ok - /// - [SerializeField] - public List? Classes { get; set; } public void Dispose() { if (RawResponse != null) { RawResponse.Dispose(); diff --git a/HathoraCloud/Models/Operations/GetAppsV1DeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetAppsV1DeprecatedResponse.cs new file mode 100644 index 00000000..02ca1d11 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetAppsV1DeprecatedResponse.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System.Collections.Generic; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetAppsV1DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public List? Classes { get; set; } + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetBalanceResponse.cs b/HathoraCloud/Models/Operations/GetBalanceResponse.cs index 53f79b89..749fae2e 100644 --- a/HathoraCloud/Models/Operations/GetBalanceResponse.cs +++ b/HathoraCloud/Models/Operations/GetBalanceResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetBuildInfoDeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetBuildInfoDeprecatedRequest.cs index 0a95d587..42bd418c 100644 --- a/HathoraCloud/Models/Operations/GetBuildInfoDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/GetBuildInfoDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetBuildInfoDeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetBuildInfoDeprecatedResponse.cs index ded99774..b09aa4a4 100644 --- a/HathoraCloud/Models/Operations/GetBuildInfoDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/GetBuildInfoDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetBuildInfoV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetBuildInfoV2DeprecatedRequest.cs new file mode 100644 index 00000000..9d95e469 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetBuildInfoV2DeprecatedRequest.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class GetBuildInfoV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=buildId")] + public int BuildId { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetBuildInfoResponse.cs b/HathoraCloud/Models/Operations/GetBuildInfoV2DeprecatedResponse.cs similarity index 90% rename from HathoraCloud/Models/Operations/GetBuildInfoResponse.cs rename to HathoraCloud/Models/Operations/GetBuildInfoV2DeprecatedResponse.cs index da122ea1..2b8812ac 100644 --- a/HathoraCloud/Models/Operations/GetBuildInfoResponse.cs +++ b/HathoraCloud/Models/Operations/GetBuildInfoV2DeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,7 +16,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetBuildInfoResponse: IDisposable + public class GetBuildInfoV2DeprecatedResponse: IDisposable { /// diff --git a/HathoraCloud/Models/Operations/GetBuildRequest.cs b/HathoraCloud/Models/Operations/GetBuildRequest.cs new file mode 100644 index 00000000..4d2cd846 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetBuildRequest.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class GetBuildRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=buildId")] + public string BuildId { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=orgId")] + public string? OrgId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetDeploymentInfoDeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetBuildResponse.cs similarity index 86% rename from HathoraCloud/Models/Operations/GetDeploymentInfoDeprecatedResponse.cs rename to HathoraCloud/Models/Operations/GetBuildResponse.cs index dd5ab953..8b6c8187 100644 --- a/HathoraCloud/Models/Operations/GetDeploymentInfoDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/GetBuildResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,20 +16,20 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetDeploymentInfoDeprecatedResponse: IDisposable + public class GetBuildResponse: IDisposable { /// - /// HTTP response content type for this operation + /// Ok /// [SerializeField] - public string? ContentType { get; set; } = default!; + public BuildV3? BuildV3 { get; set; } /// - /// Ok + /// HTTP response content type for this operation /// [SerializeField] - public Deployment? Deployment { get; set; } + public string? ContentType { get; set; } = default!; /// /// HTTP response status code for this operation diff --git a/HathoraCloud/Models/Operations/GetBuildsDeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetBuildsDeprecatedRequest.cs index 27e9b8fe..edb8d12a 100644 --- a/HathoraCloud/Models/Operations/GetBuildsDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/GetBuildsDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetBuildsDeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetBuildsDeprecatedResponse.cs index 1cc11c2f..aa9b3efc 100644 --- a/HathoraCloud/Models/Operations/GetBuildsDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/GetBuildsDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetBuildsRequest.cs b/HathoraCloud/Models/Operations/GetBuildsRequest.cs index 9685246d..3c1046e7 100644 --- a/HathoraCloud/Models/Operations/GetBuildsRequest.cs +++ b/HathoraCloud/Models/Operations/GetBuildsRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -19,7 +19,7 @@ public class GetBuildsRequest { [SerializeField] - [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] - public string? AppId { get; set; } + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=orgId")] + public string? OrgId { get; set; } } } \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetBuildsResponse.cs b/HathoraCloud/Models/Operations/GetBuildsResponse.cs index d441abb1..91ceace8 100644 --- a/HathoraCloud/Models/Operations/GetBuildsResponse.cs +++ b/HathoraCloud/Models/Operations/GetBuildsResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -11,7 +11,6 @@ namespace HathoraCloud.Models.Operations { using HathoraCloud.Models.Shared; - using System.Collections.Generic; using System; using UnityEngine.Networking; using UnityEngine; @@ -20,6 +19,12 @@ namespace HathoraCloud.Models.Operations public class GetBuildsResponse: IDisposable { + /// + /// Ok + /// + [SerializeField] + public BuildsV3Page? BuildsV3Page { get; set; } + /// /// HTTP response content type for this operation /// @@ -37,12 +42,6 @@ public class GetBuildsResponse: IDisposable /// [SerializeField] public UnityWebRequest RawResponse { get; set; } = default!; - - /// - /// Ok - /// - [SerializeField] - public List? Classes { get; set; } public void Dispose() { if (RawResponse != null) { RawResponse.Dispose(); diff --git a/HathoraCloud/Models/Operations/GetBuildsV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetBuildsV2DeprecatedRequest.cs new file mode 100644 index 00000000..b4508891 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetBuildsV2DeprecatedRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class GetBuildsV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetDeploymentsDeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetBuildsV2DeprecatedResponse.cs similarity index 87% rename from HathoraCloud/Models/Operations/GetDeploymentsDeprecatedResponse.cs rename to HathoraCloud/Models/Operations/GetBuildsV2DeprecatedResponse.cs index ff2551c0..3bde7acf 100644 --- a/HathoraCloud/Models/Operations/GetDeploymentsDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/GetBuildsV2DeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -17,7 +17,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetDeploymentsDeprecatedResponse: IDisposable + public class GetBuildsV2DeprecatedResponse: IDisposable { /// @@ -42,7 +42,7 @@ public class GetDeploymentsDeprecatedResponse: IDisposable /// Ok /// [SerializeField] - public List? Classes { get; set; } + public List? Classes { get; set; } public void Dispose() { if (RawResponse != null) { RawResponse.Dispose(); diff --git a/HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedRequest.cs index 4ffbf5e3..2d0bfae8 100644 --- a/HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedResponse.cs index 3bbdaf86..c1c61539 100644 --- a/HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/GetConnectionInfoDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetConnectionInfoRequest.cs b/HathoraCloud/Models/Operations/GetConnectionInfoRequest.cs index 4ef299bb..98a66a1e 100644 --- a/HathoraCloud/Models/Operations/GetConnectionInfoRequest.cs +++ b/HathoraCloud/Models/Operations/GetConnectionInfoRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetConnectionInfoResponse.cs b/HathoraCloud/Models/Operations/GetConnectionInfoResponse.cs index 565f9c14..b0c119eb 100644 --- a/HathoraCloud/Models/Operations/GetConnectionInfoResponse.cs +++ b/HathoraCloud/Models/Operations/GetConnectionInfoResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetDeploymentInfoRequest.cs b/HathoraCloud/Models/Operations/GetDeploymentInfoV1DeprecatedRequest.cs similarity index 85% rename from HathoraCloud/Models/Operations/GetDeploymentInfoRequest.cs rename to HathoraCloud/Models/Operations/GetDeploymentInfoV1DeprecatedRequest.cs index 9b6105ad..6808114b 100644 --- a/HathoraCloud/Models/Operations/GetDeploymentInfoRequest.cs +++ b/HathoraCloud/Models/Operations/GetDeploymentInfoV1DeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,7 +15,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetDeploymentInfoRequest + public class GetDeploymentInfoV1DeprecatedRequest { [SerializeField] diff --git a/HathoraCloud/Models/Operations/GetLatestDeploymentDeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetDeploymentInfoV1DeprecatedResponse.cs similarity index 87% rename from HathoraCloud/Models/Operations/GetLatestDeploymentDeprecatedResponse.cs rename to HathoraCloud/Models/Operations/GetDeploymentInfoV1DeprecatedResponse.cs index 18895bbf..8a949f33 100644 --- a/HathoraCloud/Models/Operations/GetLatestDeploymentDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/GetDeploymentInfoV1DeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,7 +16,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetLatestDeploymentDeprecatedResponse: IDisposable + public class GetDeploymentInfoV1DeprecatedResponse: IDisposable { /// @@ -29,7 +29,7 @@ public class GetLatestDeploymentDeprecatedResponse: IDisposable /// Ok /// [SerializeField] - public Deployment? Deployment { get; set; } + public DeploymentV1? DeploymentV1 { get; set; } /// /// HTTP response status code for this operation diff --git a/HathoraCloud/Models/Operations/GetDeploymentInfoDeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetDeploymentInfoV2DeprecatedRequest.cs similarity index 85% rename from HathoraCloud/Models/Operations/GetDeploymentInfoDeprecatedRequest.cs rename to HathoraCloud/Models/Operations/GetDeploymentInfoV2DeprecatedRequest.cs index 478f9114..c4874e23 100644 --- a/HathoraCloud/Models/Operations/GetDeploymentInfoDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/GetDeploymentInfoV2DeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,7 +15,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetDeploymentInfoDeprecatedRequest + public class GetDeploymentInfoV2DeprecatedRequest { [SerializeField] diff --git a/HathoraCloud/Models/Operations/GetDeploymentInfoV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetDeploymentInfoV2DeprecatedResponse.cs new file mode 100644 index 00000000..4681b425 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetDeploymentInfoV2DeprecatedResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetDeploymentInfoV2DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public DeploymentV2? DeploymentV2 { get; set; } + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetDeploymentRequest.cs b/HathoraCloud/Models/Operations/GetDeploymentRequest.cs new file mode 100644 index 00000000..46f2e900 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetDeploymentRequest.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class GetDeploymentRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=deploymentId")] + public string DeploymentId { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetDeploymentResponse.cs b/HathoraCloud/Models/Operations/GetDeploymentResponse.cs new file mode 100644 index 00000000..10c270cb --- /dev/null +++ b/HathoraCloud/Models/Operations/GetDeploymentResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetDeploymentResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public DeploymentV3? DeploymentV3 { get; set; } + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetDeploymentsRequest.cs b/HathoraCloud/Models/Operations/GetDeploymentsRequest.cs index bf7cf9f2..5bf92823 100644 --- a/HathoraCloud/Models/Operations/GetDeploymentsRequest.cs +++ b/HathoraCloud/Models/Operations/GetDeploymentsRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetDeploymentsResponse.cs b/HathoraCloud/Models/Operations/GetDeploymentsResponse.cs index 67eb6c5f..0e0eaec1 100644 --- a/HathoraCloud/Models/Operations/GetDeploymentsResponse.cs +++ b/HathoraCloud/Models/Operations/GetDeploymentsResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -11,7 +11,6 @@ namespace HathoraCloud.Models.Operations { using HathoraCloud.Models.Shared; - using System.Collections.Generic; using System; using UnityEngine.Networking; using UnityEngine; @@ -27,22 +26,22 @@ public class GetDeploymentsResponse: IDisposable public string? ContentType { get; set; } = default!; /// - /// HTTP response status code for this operation + /// Ok /// [SerializeField] - public int StatusCode { get; set; } = default!; + public DeploymentsV3Page? DeploymentsV3Page { get; set; } /// - /// Raw HTTP response; suitable for custom response parsing + /// HTTP response status code for this operation /// [SerializeField] - public UnityWebRequest RawResponse { get; set; } = default!; + public int StatusCode { get; set; } = default!; /// - /// Ok + /// Raw HTTP response; suitable for custom response parsing /// [SerializeField] - public List? Classes { get; set; } + public UnityWebRequest RawResponse { get; set; } = default!; public void Dispose() { if (RawResponse != null) { RawResponse.Dispose(); diff --git a/HathoraCloud/Models/Operations/GetDeploymentsV1DeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetDeploymentsV1DeprecatedRequest.cs new file mode 100644 index 00000000..02cc8782 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetDeploymentsV1DeprecatedRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class GetDeploymentsV1DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetDeploymentsV1DeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetDeploymentsV1DeprecatedResponse.cs new file mode 100644 index 00000000..42abda10 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetDeploymentsV1DeprecatedResponse.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System.Collections.Generic; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetDeploymentsV1DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public List? Classes { get; set; } + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetDeploymentsV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetDeploymentsV2DeprecatedRequest.cs new file mode 100644 index 00000000..3fe0cd25 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetDeploymentsV2DeprecatedRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class GetDeploymentsV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetDeploymentsV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetDeploymentsV2DeprecatedResponse.cs new file mode 100644 index 00000000..1aa57ac8 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetDeploymentsV2DeprecatedResponse.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System.Collections.Generic; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetDeploymentsV2DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public List? Classes { get; set; } + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedRequest.cs index bb6162af..fc9f86e6 100644 --- a/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedResponse.cs index 5374e62e..b72fd816 100644 --- a/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessRequest.cs b/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessRequest.cs index 95f39abb..4b836bde 100644 --- a/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessRequest.cs +++ b/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessResponse.cs b/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessResponse.cs index 9a20cfef..6c76d667 100644 --- a/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessResponse.cs +++ b/HathoraCloud/Models/Operations/GetInactiveRoomsForProcessResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetInvoicesResponse.cs b/HathoraCloud/Models/Operations/GetInvoicesResponse.cs index 43708433..8674aea8 100644 --- a/HathoraCloud/Models/Operations/GetInvoicesResponse.cs +++ b/HathoraCloud/Models/Operations/GetInvoicesResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLatestDeploymentRequest.cs b/HathoraCloud/Models/Operations/GetLatestDeploymentRequest.cs index 05578f26..e96072e6 100644 --- a/HathoraCloud/Models/Operations/GetLatestDeploymentRequest.cs +++ b/HathoraCloud/Models/Operations/GetLatestDeploymentRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLatestDeploymentResponse.cs b/HathoraCloud/Models/Operations/GetLatestDeploymentResponse.cs index 2b38c5c9..3b385b95 100644 --- a/HathoraCloud/Models/Operations/GetLatestDeploymentResponse.cs +++ b/HathoraCloud/Models/Operations/GetLatestDeploymentResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -29,7 +29,7 @@ public class GetLatestDeploymentResponse: IDisposable /// Ok /// [SerializeField] - public HathoraCloud.Models.Shared.DeploymentV2? DeploymentV2 { get; set; } + public DeploymentV3? DeploymentV3 { get; set; } /// /// HTTP response status code for this operation diff --git a/HathoraCloud/Models/Operations/GetLatestDeploymentV1DeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetLatestDeploymentV1DeprecatedRequest.cs new file mode 100644 index 00000000..8f46ba0f --- /dev/null +++ b/HathoraCloud/Models/Operations/GetLatestDeploymentV1DeprecatedRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class GetLatestDeploymentV1DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetLatestDeploymentV1DeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetLatestDeploymentV1DeprecatedResponse.cs new file mode 100644 index 00000000..ca43981a --- /dev/null +++ b/HathoraCloud/Models/Operations/GetLatestDeploymentV1DeprecatedResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetLatestDeploymentV1DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public DeploymentV1? DeploymentV1 { get; set; } + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetLatestDeploymentV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetLatestDeploymentV2DeprecatedRequest.cs new file mode 100644 index 00000000..825d38d1 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetLatestDeploymentV2DeprecatedRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class GetLatestDeploymentV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetLatestDeploymentV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetLatestDeploymentV2DeprecatedResponse.cs new file mode 100644 index 00000000..53e168a8 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetLatestDeploymentV2DeprecatedResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetLatestDeploymentV2DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public DeploymentV2? DeploymentV2 { get; set; } + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetLatestProcessesRequest.cs b/HathoraCloud/Models/Operations/GetLatestProcessesRequest.cs index 381582f5..fb3cf6a9 100644 --- a/HathoraCloud/Models/Operations/GetLatestProcessesRequest.cs +++ b/HathoraCloud/Models/Operations/GetLatestProcessesRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLatestProcessesResponse.cs b/HathoraCloud/Models/Operations/GetLatestProcessesResponse.cs index 58221a9c..50319fcb 100644 --- a/HathoraCloud/Models/Operations/GetLatestProcessesResponse.cs +++ b/HathoraCloud/Models/Operations/GetLatestProcessesResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -42,7 +42,7 @@ public class GetLatestProcessesResponse: IDisposable /// Ok /// [SerializeField] - public List? Classes { get; set; } + public List? Classes { get; set; } public void Dispose() { if (RawResponse != null) { RawResponse.Dispose(); diff --git a/HathoraCloud/Models/Operations/GetLatestProcessesV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetLatestProcessesV2DeprecatedRequest.cs new file mode 100644 index 00000000..53c4f29b --- /dev/null +++ b/HathoraCloud/Models/Operations/GetLatestProcessesV2DeprecatedRequest.cs @@ -0,0 +1,35 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using System.Collections.Generic; + using System; + using UnityEngine; + + [Serializable] + public class GetLatestProcessesV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + + [SerializeField] + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=region")] + public List? Region { get; set; } + + [SerializeField] + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=status")] + public List? Status { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetLatestProcessesV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetLatestProcessesV2DeprecatedResponse.cs new file mode 100644 index 00000000..ac93ba37 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetLatestProcessesV2DeprecatedResponse.cs @@ -0,0 +1,52 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System.Collections.Generic; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetLatestProcessesV2DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public List? Classes { get; set; } + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetLobbyInfoByRoomIdRequest.cs b/HathoraCloud/Models/Operations/GetLobbyInfoByRoomIdRequest.cs index 2d9b233d..f9041ff3 100644 --- a/HathoraCloud/Models/Operations/GetLobbyInfoByRoomIdRequest.cs +++ b/HathoraCloud/Models/Operations/GetLobbyInfoByRoomIdRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLobbyInfoByRoomIdResponse.cs b/HathoraCloud/Models/Operations/GetLobbyInfoByRoomIdResponse.cs index b38e89b8..bc1276aa 100644 --- a/HathoraCloud/Models/Operations/GetLobbyInfoByRoomIdResponse.cs +++ b/HathoraCloud/Models/Operations/GetLobbyInfoByRoomIdResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLobbyInfoByShortCodeRequest.cs b/HathoraCloud/Models/Operations/GetLobbyInfoByShortCodeRequest.cs index 0251bf6a..f7d6d841 100644 --- a/HathoraCloud/Models/Operations/GetLobbyInfoByShortCodeRequest.cs +++ b/HathoraCloud/Models/Operations/GetLobbyInfoByShortCodeRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLobbyInfoByShortCodeResponse.cs b/HathoraCloud/Models/Operations/GetLobbyInfoByShortCodeResponse.cs index e7e339b2..254e8e2d 100644 --- a/HathoraCloud/Models/Operations/GetLobbyInfoByShortCodeResponse.cs +++ b/HathoraCloud/Models/Operations/GetLobbyInfoByShortCodeResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLobbyInfoRequest.cs b/HathoraCloud/Models/Operations/GetLobbyInfoRequest.cs index 0b747723..92dab94e 100644 --- a/HathoraCloud/Models/Operations/GetLobbyInfoRequest.cs +++ b/HathoraCloud/Models/Operations/GetLobbyInfoRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLobbyInfoResponse.cs b/HathoraCloud/Models/Operations/GetLobbyInfoResponse.cs index e4137a61..d73878a1 100644 --- a/HathoraCloud/Models/Operations/GetLobbyInfoResponse.cs +++ b/HathoraCloud/Models/Operations/GetLobbyInfoResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLogsForAppRequest.cs b/HathoraCloud/Models/Operations/GetLogsForAppRequest.cs index 7bfc00db..a45c610b 100644 --- a/HathoraCloud/Models/Operations/GetLogsForAppRequest.cs +++ b/HathoraCloud/Models/Operations/GetLogsForAppRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLogsForAppResponse.cs b/HathoraCloud/Models/Operations/GetLogsForAppResponse.cs index 2f9abe62..29d83a52 100644 --- a/HathoraCloud/Models/Operations/GetLogsForAppResponse.cs +++ b/HathoraCloud/Models/Operations/GetLogsForAppResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -41,7 +41,7 @@ public class GetLogsForAppResponse: IDisposable /// Ok /// [SerializeField] - public MemoryQueueBufferStream? Stream { get; set; } + public MemoryQueueBufferStream? ResponseStream { get; set; } public void Dispose() { if (RawResponse != null) { RawResponse.Dispose(); diff --git a/HathoraCloud/Models/Operations/GetLogsForDeploymentRequest.cs b/HathoraCloud/Models/Operations/GetLogsForDeploymentRequest.cs index 4d94a99a..2ce01961 100644 --- a/HathoraCloud/Models/Operations/GetLogsForDeploymentRequest.cs +++ b/HathoraCloud/Models/Operations/GetLogsForDeploymentRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLogsForDeploymentResponse.cs b/HathoraCloud/Models/Operations/GetLogsForDeploymentResponse.cs index 77ae1573..9dbac321 100644 --- a/HathoraCloud/Models/Operations/GetLogsForDeploymentResponse.cs +++ b/HathoraCloud/Models/Operations/GetLogsForDeploymentResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -41,7 +41,7 @@ public class GetLogsForDeploymentResponse: IDisposable /// Ok /// [SerializeField] - public MemoryQueueBufferStream? Stream { get; set; } + public MemoryQueueBufferStream? ResponseStream { get; set; } public void Dispose() { if (RawResponse != null) { RawResponse.Dispose(); diff --git a/HathoraCloud/Models/Operations/GetLogsForProcessRequest.cs b/HathoraCloud/Models/Operations/GetLogsForProcessRequest.cs index 8c636dde..f141e403 100644 --- a/HathoraCloud/Models/Operations/GetLogsForProcessRequest.cs +++ b/HathoraCloud/Models/Operations/GetLogsForProcessRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetLogsForProcessResponse.cs b/HathoraCloud/Models/Operations/GetLogsForProcessResponse.cs index e18dd3cb..96fd8a54 100644 --- a/HathoraCloud/Models/Operations/GetLogsForProcessResponse.cs +++ b/HathoraCloud/Models/Operations/GetLogsForProcessResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -41,7 +41,7 @@ public class GetLogsForProcessResponse: IDisposable /// Ok /// [SerializeField] - public MemoryQueueBufferStream? Stream { get; set; } + public MemoryQueueBufferStream? ResponseStream { get; set; } public void Dispose() { if (RawResponse != null) { RawResponse.Dispose(); diff --git a/HathoraCloud/Models/Operations/GetMetricsRequest.cs b/HathoraCloud/Models/Operations/GetMetricsRequest.cs index f826878b..c9754463 100644 --- a/HathoraCloud/Models/Operations/GetMetricsRequest.cs +++ b/HathoraCloud/Models/Operations/GetMetricsRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetMetricsResponse.cs b/HathoraCloud/Models/Operations/GetMetricsResponse.cs index 5580bfc7..8f467d78 100644 --- a/HathoraCloud/Models/Operations/GetMetricsResponse.cs +++ b/HathoraCloud/Models/Operations/GetMetricsResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetOrgMembersRequest.cs b/HathoraCloud/Models/Operations/GetOrgMembersRequest.cs new file mode 100644 index 00000000..8b047397 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetOrgMembersRequest.cs @@ -0,0 +1,25 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class GetOrgMembersRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=orgId")] + public string OrgId { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetOrgMembersResponse.cs b/HathoraCloud/Models/Operations/GetOrgMembersResponse.cs new file mode 100644 index 00000000..d32a2389 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetOrgMembersResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetOrgMembersResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public OrgMembersPage? OrgMembersPage { get; set; } + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetOrgPendingInvitesRequest.cs b/HathoraCloud/Models/Operations/GetOrgPendingInvitesRequest.cs index 5c562f94..65b5a56a 100644 --- a/HathoraCloud/Models/Operations/GetOrgPendingInvitesRequest.cs +++ b/HathoraCloud/Models/Operations/GetOrgPendingInvitesRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetOrgPendingInvitesResponse.cs b/HathoraCloud/Models/Operations/GetOrgPendingInvitesResponse.cs index 710aadff..8bed8281 100644 --- a/HathoraCloud/Models/Operations/GetOrgPendingInvitesResponse.cs +++ b/HathoraCloud/Models/Operations/GetOrgPendingInvitesResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -29,7 +29,7 @@ public class GetOrgPendingInvitesResponse: IDisposable /// Ok /// [SerializeField] - public OrgInvitesPage? OrgInvitesPage { get; set; } + public PendingOrgInvitesPage? PendingOrgInvitesPage { get; set; } /// /// HTTP response status code for this operation diff --git a/HathoraCloud/Models/Operations/GetOrgTokensRequest.cs b/HathoraCloud/Models/Operations/GetOrgTokensRequest.cs index 722b5838..2c6b1358 100644 --- a/HathoraCloud/Models/Operations/GetOrgTokensRequest.cs +++ b/HathoraCloud/Models/Operations/GetOrgTokensRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetOrgTokensResponse.cs b/HathoraCloud/Models/Operations/GetOrgTokensResponse.cs index 45822d20..eaecce62 100644 --- a/HathoraCloud/Models/Operations/GetOrgTokensResponse.cs +++ b/HathoraCloud/Models/Operations/GetOrgTokensResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetOrgsResponse.cs b/HathoraCloud/Models/Operations/GetOrgsResponse.cs new file mode 100644 index 00000000..04ee5aa1 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetOrgsResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetOrgsResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public OrgsPage? OrgsPage { get; set; } + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetPaymentMethodResponse.cs b/HathoraCloud/Models/Operations/GetPaymentMethodResponse.cs index db8cb334..a6235ade 100644 --- a/HathoraCloud/Models/Operations/GetPaymentMethodResponse.cs +++ b/HathoraCloud/Models/Operations/GetPaymentMethodResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetPingServiceEndpointsDeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetPingServiceEndpointsDeprecatedResponse.cs index 1a282f21..ad9df8d9 100644 --- a/HathoraCloud/Models/Operations/GetPingServiceEndpointsDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/GetPingServiceEndpointsDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetPingServiceEndpointsResponse.cs b/HathoraCloud/Models/Operations/GetPingServiceEndpointsResponse.cs index 434aaa4f..bf485210 100644 --- a/HathoraCloud/Models/Operations/GetPingServiceEndpointsResponse.cs +++ b/HathoraCloud/Models/Operations/GetPingServiceEndpointsResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetProcessInfoDeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetProcessInfoDeprecatedRequest.cs index 16ff90ef..a483f91d 100644 --- a/HathoraCloud/Models/Operations/GetProcessInfoDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/GetProcessInfoDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetProcessInfoDeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetProcessInfoDeprecatedResponse.cs index b62ced66..4a5b2e93 100644 --- a/HathoraCloud/Models/Operations/GetProcessInfoDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/GetProcessInfoDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetProcessInfoV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetProcessInfoV2DeprecatedRequest.cs new file mode 100644 index 00000000..90ed25eb --- /dev/null +++ b/HathoraCloud/Models/Operations/GetProcessInfoV2DeprecatedRequest.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class GetProcessInfoV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=processId")] + public string ProcessId { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetProcessInfoResponse.cs b/HathoraCloud/Models/Operations/GetProcessInfoV2DeprecatedResponse.cs similarity index 90% rename from HathoraCloud/Models/Operations/GetProcessInfoResponse.cs rename to HathoraCloud/Models/Operations/GetProcessInfoV2DeprecatedResponse.cs index ae5d53c0..678fc17e 100644 --- a/HathoraCloud/Models/Operations/GetProcessInfoResponse.cs +++ b/HathoraCloud/Models/Operations/GetProcessInfoV2DeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,7 +16,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetProcessInfoResponse: IDisposable + public class GetProcessInfoV2DeprecatedResponse: IDisposable { /// diff --git a/HathoraCloud/Models/Operations/GetProcessInfoRequest.cs b/HathoraCloud/Models/Operations/GetProcessRequest.cs similarity index 86% rename from HathoraCloud/Models/Operations/GetProcessInfoRequest.cs rename to HathoraCloud/Models/Operations/GetProcessRequest.cs index 02d3383f..078d2dff 100644 --- a/HathoraCloud/Models/Operations/GetProcessInfoRequest.cs +++ b/HathoraCloud/Models/Operations/GetProcessRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,7 +15,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class GetProcessInfoRequest + public class GetProcessRequest { [SerializeField] diff --git a/HathoraCloud/Models/Operations/GetProcessResponse.cs b/HathoraCloud/Models/Operations/GetProcessResponse.cs new file mode 100644 index 00000000..b96328ea --- /dev/null +++ b/HathoraCloud/Models/Operations/GetProcessResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetProcessResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public ProcessV3? ProcessV3 { get; set; } + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetProcessesCountExperimentalRequest.cs b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalRequest.cs new file mode 100644 index 00000000..55f049f5 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalRequest.cs @@ -0,0 +1,35 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using System.Collections.Generic; + using System; + using UnityEngine; + + [Serializable] + public class GetProcessesCountExperimentalRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + + [SerializeField] + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=region")] + public List? Region { get; set; } + + [SerializeField] + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=status")] + public List? Status { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetProcessesCountExperimentalResponse.cs b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalResponse.cs new file mode 100644 index 00000000..eb26fa98 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Operations; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetProcessesCountExperimentalResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public GetProcessesCountExperimentalResponseBody? Object { get; set; } + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetProcessesCountExperimentalResponseBody.cs b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalResponseBody.cs new file mode 100644 index 00000000..e11b0155 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalResponseBody.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using Newtonsoft.Json; + using System; + using UnityEngine; + + /// + /// Ok + /// + [Serializable] + public class GetProcessesCountExperimentalResponseBody + { + + [SerializeField] + [JsonProperty("count")] + public double Count { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedRequest.cs new file mode 100644 index 00000000..7e4ce02e --- /dev/null +++ b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedRequest.cs @@ -0,0 +1,35 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using System.Collections.Generic; + using System; + using UnityEngine; + + [Serializable] + public class GetProcessesCountExperimentalV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + + [SerializeField] + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=region")] + public List? Region { get; set; } + + [SerializeField] + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=status")] + public List? Status { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponse.cs new file mode 100644 index 00000000..231a3357 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Operations; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetProcessesCountExperimentalV2DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public GetProcessesCountExperimentalV2DeprecatedResponseBody? Object { get; set; } + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponseBody.cs b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponseBody.cs new file mode 100644 index 00000000..8ae7c0a3 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponseBody.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using Newtonsoft.Json; + using System; + using UnityEngine; + + /// + /// Ok + /// + [Serializable] + public class GetProcessesCountExperimentalV2DeprecatedResponseBody + { + + [SerializeField] + [JsonProperty("count")] + public double Count { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetRoomInfoDeprecatedRequest.cs b/HathoraCloud/Models/Operations/GetRoomInfoDeprecatedRequest.cs index d527d838..a770a4cc 100644 --- a/HathoraCloud/Models/Operations/GetRoomInfoDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/GetRoomInfoDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetRoomInfoDeprecatedResponse.cs b/HathoraCloud/Models/Operations/GetRoomInfoDeprecatedResponse.cs index 0fa226a1..0640831f 100644 --- a/HathoraCloud/Models/Operations/GetRoomInfoDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/GetRoomInfoDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetRoomInfoRequest.cs b/HathoraCloud/Models/Operations/GetRoomInfoRequest.cs index 7ea4bdd2..d8cdfd92 100644 --- a/HathoraCloud/Models/Operations/GetRoomInfoRequest.cs +++ b/HathoraCloud/Models/Operations/GetRoomInfoRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetRoomInfoResponse.cs b/HathoraCloud/Models/Operations/GetRoomInfoResponse.cs index ed8c95ae..ae6ab6ed 100644 --- a/HathoraCloud/Models/Operations/GetRoomInfoResponse.cs +++ b/HathoraCloud/Models/Operations/GetRoomInfoResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetRunningProcessesRequest.cs b/HathoraCloud/Models/Operations/GetRunningProcessesRequest.cs index ea682bf1..5668e6d2 100644 --- a/HathoraCloud/Models/Operations/GetRunningProcessesRequest.cs +++ b/HathoraCloud/Models/Operations/GetRunningProcessesRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetRunningProcessesResponse.cs b/HathoraCloud/Models/Operations/GetRunningProcessesResponse.cs index a4eec56e..02f515f2 100644 --- a/HathoraCloud/Models/Operations/GetRunningProcessesResponse.cs +++ b/HathoraCloud/Models/Operations/GetRunningProcessesResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetStoppedProcessesRequest.cs b/HathoraCloud/Models/Operations/GetStoppedProcessesRequest.cs index 8fdb6820..7a66766d 100644 --- a/HathoraCloud/Models/Operations/GetStoppedProcessesRequest.cs +++ b/HathoraCloud/Models/Operations/GetStoppedProcessesRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetStoppedProcessesResponse.cs b/HathoraCloud/Models/Operations/GetStoppedProcessesResponse.cs index 468a522f..87ca925e 100644 --- a/HathoraCloud/Models/Operations/GetStoppedProcessesResponse.cs +++ b/HathoraCloud/Models/Operations/GetStoppedProcessesResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/GetUpcomingInvoiceItemsResponse.cs b/HathoraCloud/Models/Operations/GetUpcomingInvoiceItemsResponse.cs new file mode 100644 index 00000000..7722b05e --- /dev/null +++ b/HathoraCloud/Models/Operations/GetUpcomingInvoiceItemsResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetUpcomingInvoiceItemsResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public InvoiceItemPage? InvoiceItemPage { get; set; } + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetUpcomingInvoiceTotalResponse.cs b/HathoraCloud/Models/Operations/GetUpcomingInvoiceTotalResponse.cs new file mode 100644 index 00000000..2c18279f --- /dev/null +++ b/HathoraCloud/Models/Operations/GetUpcomingInvoiceTotalResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Operations; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class GetUpcomingInvoiceTotalResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public GetUpcomingInvoiceTotalResponseBody? Object { get; set; } + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetUpcomingInvoiceTotalResponseBody.cs b/HathoraCloud/Models/Operations/GetUpcomingInvoiceTotalResponseBody.cs new file mode 100644 index 00000000..44a0a5d5 --- /dev/null +++ b/HathoraCloud/Models/Operations/GetUpcomingInvoiceTotalResponseBody.cs @@ -0,0 +1,28 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using Newtonsoft.Json; + using System; + using UnityEngine; + + /// + /// Ok + /// + [Serializable] + public class GetUpcomingInvoiceTotalResponseBody + { + + [SerializeField] + [JsonProperty("value")] + public double Value { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/GetUserPendingInvitesResponse.cs b/HathoraCloud/Models/Operations/GetUserPendingInvitesResponse.cs index 4aee4acb..58de8121 100644 --- a/HathoraCloud/Models/Operations/GetUserPendingInvitesResponse.cs +++ b/HathoraCloud/Models/Operations/GetUserPendingInvitesResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -29,7 +29,7 @@ public class GetUserPendingInvitesResponse: IDisposable /// Ok /// [SerializeField] - public OrgInvitesPage? OrgInvitesPage { get; set; } + public PendingOrgInvitesPage? PendingOrgInvitesPage { get; set; } /// /// HTTP response status code for this operation diff --git a/HathoraCloud/Models/Operations/InitStripeCustomerPortalUrlResponse.cs b/HathoraCloud/Models/Operations/InitStripeCustomerPortalUrlResponse.cs index 7f13ff44..246d4f56 100644 --- a/HathoraCloud/Models/Operations/InitStripeCustomerPortalUrlResponse.cs +++ b/HathoraCloud/Models/Operations/InitStripeCustomerPortalUrlResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/InviteUserRequest.cs b/HathoraCloud/Models/Operations/InviteUserRequest.cs index 48027c2f..604819b4 100644 --- a/HathoraCloud/Models/Operations/InviteUserRequest.cs +++ b/HathoraCloud/Models/Operations/InviteUserRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/InviteUserResponse.cs b/HathoraCloud/Models/Operations/InviteUserResponse.cs index d056166a..c7f2fa0f 100644 --- a/HathoraCloud/Models/Operations/InviteUserResponse.cs +++ b/HathoraCloud/Models/Operations/InviteUserResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -29,7 +29,7 @@ public class InviteUserResponse: IDisposable /// Ok /// [SerializeField] - public OrgPermission? OrgPermission { get; set; } + public PendingOrgInvite? PendingOrgInvite { get; set; } /// /// HTTP response status code for this operation diff --git a/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Request.cs b/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Request.cs index 38bb0023..e32e96ea 100644 --- a/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Request.cs +++ b/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Request.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Response.cs b/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Response.cs index 37f43695..4ac263cd 100644 --- a/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Response.cs +++ b/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV1Response.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Request.cs b/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Request.cs index f58e9c95..33ee3511 100644 --- a/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Request.cs +++ b/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Request.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Response.cs b/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Response.cs index c5838521..791c7f53 100644 --- a/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Response.cs +++ b/HathoraCloud/Models/Operations/ListActivePublicLobbiesDeprecatedV2Response.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/ListActivePublicLobbiesRequest.cs b/HathoraCloud/Models/Operations/ListActivePublicLobbiesRequest.cs index 915bcec6..b3cf3b67 100644 --- a/HathoraCloud/Models/Operations/ListActivePublicLobbiesRequest.cs +++ b/HathoraCloud/Models/Operations/ListActivePublicLobbiesRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/ListActivePublicLobbiesResponse.cs b/HathoraCloud/Models/Operations/ListActivePublicLobbiesResponse.cs index e8379d66..a7ca7799 100644 --- a/HathoraCloud/Models/Operations/ListActivePublicLobbiesResponse.cs +++ b/HathoraCloud/Models/Operations/ListActivePublicLobbiesResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/LoginAnonymousRequest.cs b/HathoraCloud/Models/Operations/LoginAnonymousRequest.cs index c8625995..64a24a00 100644 --- a/HathoraCloud/Models/Operations/LoginAnonymousRequest.cs +++ b/HathoraCloud/Models/Operations/LoginAnonymousRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/LoginAnonymousResponse.cs b/HathoraCloud/Models/Operations/LoginAnonymousResponse.cs index 12ba498f..96001498 100644 --- a/HathoraCloud/Models/Operations/LoginAnonymousResponse.cs +++ b/HathoraCloud/Models/Operations/LoginAnonymousResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/LoginGoogleRequest.cs b/HathoraCloud/Models/Operations/LoginGoogleRequest.cs index 6e5cd004..4eca5f8d 100644 --- a/HathoraCloud/Models/Operations/LoginGoogleRequest.cs +++ b/HathoraCloud/Models/Operations/LoginGoogleRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/LoginGoogleResponse.cs b/HathoraCloud/Models/Operations/LoginGoogleResponse.cs index 65813dde..d573b4e6 100644 --- a/HathoraCloud/Models/Operations/LoginGoogleResponse.cs +++ b/HathoraCloud/Models/Operations/LoginGoogleResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/LoginNicknameRequest.cs b/HathoraCloud/Models/Operations/LoginNicknameRequest.cs index b71fccfd..1731fe5e 100644 --- a/HathoraCloud/Models/Operations/LoginNicknameRequest.cs +++ b/HathoraCloud/Models/Operations/LoginNicknameRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/LoginNicknameResponse.cs b/HathoraCloud/Models/Operations/LoginNicknameResponse.cs index 1a9e7818..16b4e464 100644 --- a/HathoraCloud/Models/Operations/LoginNicknameResponse.cs +++ b/HathoraCloud/Models/Operations/LoginNicknameResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/RejectInviteRequest.cs b/HathoraCloud/Models/Operations/RejectInviteRequest.cs index c41b32c7..5c000024 100644 --- a/HathoraCloud/Models/Operations/RejectInviteRequest.cs +++ b/HathoraCloud/Models/Operations/RejectInviteRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/RejectInviteResponse.cs b/HathoraCloud/Models/Operations/RejectInviteResponse.cs index f0c17830..fcdc17c0 100644 --- a/HathoraCloud/Models/Operations/RejectInviteResponse.cs +++ b/HathoraCloud/Models/Operations/RejectInviteResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/RescindInviteRequest.cs b/HathoraCloud/Models/Operations/RescindInviteRequest.cs index 0557a540..3e636852 100644 --- a/HathoraCloud/Models/Operations/RescindInviteRequest.cs +++ b/HathoraCloud/Models/Operations/RescindInviteRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/RescindInviteResponse.cs b/HathoraCloud/Models/Operations/RescindInviteResponse.cs index dc1d2732..82f838a9 100644 --- a/HathoraCloud/Models/Operations/RescindInviteResponse.cs +++ b/HathoraCloud/Models/Operations/RescindInviteResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/RevokeOrgTokenRequest.cs b/HathoraCloud/Models/Operations/RevokeOrgTokenRequest.cs index b3ee3d05..577da36a 100644 --- a/HathoraCloud/Models/Operations/RevokeOrgTokenRequest.cs +++ b/HathoraCloud/Models/Operations/RevokeOrgTokenRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/RevokeOrgTokenResponse.cs b/HathoraCloud/Models/Operations/RevokeOrgTokenResponse.cs index 9c289acc..863d8abb 100644 --- a/HathoraCloud/Models/Operations/RevokeOrgTokenResponse.cs +++ b/HathoraCloud/Models/Operations/RevokeOrgTokenResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/RunBuildDeprecatedRequest.cs b/HathoraCloud/Models/Operations/RunBuildDeprecatedRequest.cs index 4f6d9540..f04dc5cf 100644 --- a/HathoraCloud/Models/Operations/RunBuildDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/RunBuildDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/RunBuildDeprecatedRequestBody.cs b/HathoraCloud/Models/Operations/RunBuildDeprecatedRequestBody.cs index d4621aad..3760aef0 100644 --- a/HathoraCloud/Models/Operations/RunBuildDeprecatedRequestBody.cs +++ b/HathoraCloud/Models/Operations/RunBuildDeprecatedRequestBody.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/RunBuildDeprecatedResponse.cs b/HathoraCloud/Models/Operations/RunBuildDeprecatedResponse.cs index a18bfd63..c1a461d6 100644 --- a/HathoraCloud/Models/Operations/RunBuildDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/RunBuildDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/RunBuildRequest.cs b/HathoraCloud/Models/Operations/RunBuildRequest.cs index 27e85fe0..dee84af2 100644 --- a/HathoraCloud/Models/Operations/RunBuildRequest.cs +++ b/HathoraCloud/Models/Operations/RunBuildRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -10,7 +10,6 @@ #nullable enable namespace HathoraCloud.Models.Operations { - using HathoraCloud.Models.Operations; using HathoraCloud.Utils; using System; using UnityEngine; @@ -19,16 +18,12 @@ namespace HathoraCloud.Models.Operations public class RunBuildRequest { - [SerializeField] - [SpeakeasyMetadata("request:mediaType=multipart/form-data")] - public RunBuildRequestBody RequestBody { get; set; } = default!; - [SerializeField] [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=buildId")] - public int BuildId { get; set; } = default!; + public string BuildId { get; set; } = default!; [SerializeField] - [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] - public string? AppId { get; set; } + [SpeakeasyMetadata("queryParam:style=form,explode=true,name=orgId")] + public string? OrgId { get; set; } } } \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/RunBuildResponse.cs b/HathoraCloud/Models/Operations/RunBuildResponse.cs index fbdd0c4c..54b2a94c 100644 --- a/HathoraCloud/Models/Operations/RunBuildResponse.cs +++ b/HathoraCloud/Models/Operations/RunBuildResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -41,7 +41,7 @@ public class RunBuildResponse: IDisposable /// Ok /// [SerializeField] - public MemoryQueueBufferStream? Stream { get; set; } + public MemoryQueueBufferStream? ResponseStream { get; set; } public void Dispose() { if (RawResponse != null) { RawResponse.Dispose(); diff --git a/HathoraCloud/Models/Operations/RunBuildFile.cs b/HathoraCloud/Models/Operations/RunBuildV2DeprecatedFile.cs similarity index 86% rename from HathoraCloud/Models/Operations/RunBuildFile.cs rename to HathoraCloud/Models/Operations/RunBuildV2DeprecatedFile.cs index 72cf9a74..b7ee9cde 100644 --- a/HathoraCloud/Models/Operations/RunBuildFile.cs +++ b/HathoraCloud/Models/Operations/RunBuildV2DeprecatedFile.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,7 +15,7 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class RunBuildFile + public class RunBuildV2DeprecatedFile { [SerializeField] diff --git a/HathoraCloud/Models/Operations/RunBuildV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/RunBuildV2DeprecatedRequest.cs new file mode 100644 index 00000000..5cf673e8 --- /dev/null +++ b/HathoraCloud/Models/Operations/RunBuildV2DeprecatedRequest.cs @@ -0,0 +1,34 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Operations; + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class RunBuildV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("request:mediaType=multipart/form-data")] + public RunBuildV2DeprecatedRequestBody RequestBody { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=buildId")] + public int BuildId { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/RunBuildRequestBody.cs b/HathoraCloud/Models/Operations/RunBuildV2DeprecatedRequestBody.cs similarity index 76% rename from HathoraCloud/Models/Operations/RunBuildRequestBody.cs rename to HathoraCloud/Models/Operations/RunBuildV2DeprecatedRequestBody.cs index fbeb4fed..a4d33ecf 100644 --- a/HathoraCloud/Models/Operations/RunBuildRequestBody.cs +++ b/HathoraCloud/Models/Operations/RunBuildV2DeprecatedRequestBody.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,11 +16,11 @@ namespace HathoraCloud.Models.Operations using UnityEngine; [Serializable] - public class RunBuildRequestBody + public class RunBuildV2DeprecatedRequestBody { [SerializeField] [SpeakeasyMetadata("multipartForm:file")] - public RunBuildFile File { get; set; } = default!; + public RunBuildV2DeprecatedFile? File { get; set; } } } \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/RunBuildV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/RunBuildV2DeprecatedResponse.cs new file mode 100644 index 00000000..641e46e3 --- /dev/null +++ b/HathoraCloud/Models/Operations/RunBuildV2DeprecatedResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class RunBuildV2DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + + /// + /// Ok + /// + [SerializeField] + public MemoryQueueBufferStream? ResponseStream { get; set; } + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/SendVerificationEmailResponse.cs b/HathoraCloud/Models/Operations/SendVerificationEmailResponse.cs index 6aa808bf..0e3006cc 100644 --- a/HathoraCloud/Models/Operations/SendVerificationEmailResponse.cs +++ b/HathoraCloud/Models/Operations/SendVerificationEmailResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/SetLobbyStateRequest.cs b/HathoraCloud/Models/Operations/SetLobbyStateRequest.cs index 424b3554..b3597736 100644 --- a/HathoraCloud/Models/Operations/SetLobbyStateRequest.cs +++ b/HathoraCloud/Models/Operations/SetLobbyStateRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/SetLobbyStateResponse.cs b/HathoraCloud/Models/Operations/SetLobbyStateResponse.cs index 99868ccb..7fdaac24 100644 --- a/HathoraCloud/Models/Operations/SetLobbyStateResponse.cs +++ b/HathoraCloud/Models/Operations/SetLobbyStateResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/StopProcessRequest.cs b/HathoraCloud/Models/Operations/StopProcessRequest.cs index 51057649..55720ab0 100644 --- a/HathoraCloud/Models/Operations/StopProcessRequest.cs +++ b/HathoraCloud/Models/Operations/StopProcessRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/StopProcessResponse.cs b/HathoraCloud/Models/Operations/StopProcessResponse.cs index 4d68a8f4..bd8975a7 100644 --- a/HathoraCloud/Models/Operations/StopProcessResponse.cs +++ b/HathoraCloud/Models/Operations/StopProcessResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/StopProcessV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/StopProcessV2DeprecatedRequest.cs new file mode 100644 index 00000000..2b17d719 --- /dev/null +++ b/HathoraCloud/Models/Operations/StopProcessV2DeprecatedRequest.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class StopProcessV2DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=processId")] + public string ProcessId { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/StopProcessV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/StopProcessV2DeprecatedResponse.cs new file mode 100644 index 00000000..3e794029 --- /dev/null +++ b/HathoraCloud/Models/Operations/StopProcessV2DeprecatedResponse.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class StopProcessV2DeprecatedResponse: IDisposable + { + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/SuspendRoomDeprecatedRequest.cs b/HathoraCloud/Models/Operations/SuspendRoomDeprecatedRequest.cs index a310e39d..e567fd70 100644 --- a/HathoraCloud/Models/Operations/SuspendRoomDeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/SuspendRoomDeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/SuspendRoomDeprecatedResponse.cs b/HathoraCloud/Models/Operations/SuspendRoomDeprecatedResponse.cs index aaaaf650..be6a356e 100644 --- a/HathoraCloud/Models/Operations/SuspendRoomDeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/SuspendRoomDeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/SuspendRoomV2DeprecatedRequest.cs b/HathoraCloud/Models/Operations/SuspendRoomV2DeprecatedRequest.cs index e07a9b61..ee1a92a9 100644 --- a/HathoraCloud/Models/Operations/SuspendRoomV2DeprecatedRequest.cs +++ b/HathoraCloud/Models/Operations/SuspendRoomV2DeprecatedRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/SuspendRoomV2DeprecatedResponse.cs b/HathoraCloud/Models/Operations/SuspendRoomV2DeprecatedResponse.cs index b751d366..969b9db1 100644 --- a/HathoraCloud/Models/Operations/SuspendRoomV2DeprecatedResponse.cs +++ b/HathoraCloud/Models/Operations/SuspendRoomV2DeprecatedResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/UpdateAppRequest.cs b/HathoraCloud/Models/Operations/UpdateAppRequest.cs index 82b2776b..5d5370bf 100644 --- a/HathoraCloud/Models/Operations/UpdateAppRequest.cs +++ b/HathoraCloud/Models/Operations/UpdateAppRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/UpdateAppResponse.cs b/HathoraCloud/Models/Operations/UpdateAppResponse.cs index d3ef7e05..e532a5d0 100644 --- a/HathoraCloud/Models/Operations/UpdateAppResponse.cs +++ b/HathoraCloud/Models/Operations/UpdateAppResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/UpdateAppV1DeprecatedRequest.cs b/HathoraCloud/Models/Operations/UpdateAppV1DeprecatedRequest.cs new file mode 100644 index 00000000..78db111a --- /dev/null +++ b/HathoraCloud/Models/Operations/UpdateAppV1DeprecatedRequest.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using System; + using UnityEngine; + + [Serializable] + public class UpdateAppV1DeprecatedRequest + { + + [SerializeField] + [SpeakeasyMetadata("request:mediaType=application/json")] + public AppConfig AppConfig { get; set; } = default!; + + [SerializeField] + [SpeakeasyMetadata("pathParam:style=simple,explode=false,name=appId")] + public string? AppId { get; set; } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/UpdateAppV1DeprecatedResponse.cs b/HathoraCloud/Models/Operations/UpdateAppV1DeprecatedResponse.cs new file mode 100644 index 00000000..2a6870bf --- /dev/null +++ b/HathoraCloud/Models/Operations/UpdateAppV1DeprecatedResponse.cs @@ -0,0 +1,51 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Operations +{ + using HathoraCloud.Models.Shared; + using System; + using UnityEngine.Networking; + using UnityEngine; + + [Serializable] + public class UpdateAppV1DeprecatedResponse: IDisposable + { + + /// + /// Ok + /// + [SerializeField] + public HathoraCloud.Models.Shared.Application? Application { get; set; } + + /// + /// HTTP response content type for this operation + /// + [SerializeField] + public string? ContentType { get; set; } = default!; + + /// + /// HTTP response status code for this operation + /// + [SerializeField] + public int StatusCode { get; set; } = default!; + + /// + /// Raw HTTP response; suitable for custom response parsing + /// + [SerializeField] + public UnityWebRequest RawResponse { get; set; } = default!; + public void Dispose() { + if (RawResponse != null) { + RawResponse.Dispose(); + } + } + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Operations/UpdateRoomConfigRequest.cs b/HathoraCloud/Models/Operations/UpdateRoomConfigRequest.cs index 15c8bd8f..f5319809 100644 --- a/HathoraCloud/Models/Operations/UpdateRoomConfigRequest.cs +++ b/HathoraCloud/Models/Operations/UpdateRoomConfigRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Operations/UpdateRoomConfigResponse.cs b/HathoraCloud/Models/Operations/UpdateRoomConfigResponse.cs index d814d79a..c7228900 100644 --- a/HathoraCloud/Models/Operations/UpdateRoomConfigResponse.cs +++ b/HathoraCloud/Models/Operations/UpdateRoomConfigResponse.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/AchPaymentMethod.cs b/HathoraCloud/Models/Shared/AchPaymentMethod.cs index 1721dbd3..e2a527fc 100644 --- a/HathoraCloud/Models/Shared/AchPaymentMethod.cs +++ b/HathoraCloud/Models/Shared/AchPaymentMethod.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ActiveConnectionInfo.cs b/HathoraCloud/Models/Shared/ActiveConnectionInfo.cs index 9fd2dc6b..e068d97a 100644 --- a/HathoraCloud/Models/Shared/ActiveConnectionInfo.cs +++ b/HathoraCloud/Models/Shared/ActiveConnectionInfo.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/AppConfig.cs b/HathoraCloud/Models/Shared/AppConfig.cs index 9a07d1bc..3d7fd222 100644 --- a/HathoraCloud/Models/Shared/AppConfig.cs +++ b/HathoraCloud/Models/Shared/AppConfig.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/Application.cs b/HathoraCloud/Models/Shared/Application.cs index 307363e1..1c387dc3 100644 --- a/HathoraCloud/Models/Shared/Application.cs +++ b/HathoraCloud/Models/Shared/Application.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -57,9 +57,6 @@ public class Application [JsonProperty("createdAt")] public DateTime CreatedAt { get; set; } = default!; - /// - /// UserId or email address for the user that created the application. - /// [SerializeField] [JsonProperty("createdBy")] public string CreatedBy { get; set; } = default!; @@ -72,7 +69,7 @@ public class Application public DateTime? DeletedAt { get; set; } = default!; /// - /// UserId or email address for the user that deleted the application. + /// The email address or token id for the user that deleted the application. /// [SerializeField] [JsonProperty("deletedBy", NullValueHandling = NullValueHandling.Include)] diff --git a/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuild.cs b/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuild.cs index cae0d3f3..a18f73df 100644 --- a/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuild.cs +++ b/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuild.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -57,9 +57,6 @@ public class ApplicationWithLatestDeploymentAndBuild [JsonProperty("createdAt")] public DateTime CreatedAt { get; set; } = default!; - /// - /// UserId or email address for the user that created the application. - /// [SerializeField] [JsonProperty("createdBy")] public string CreatedBy { get; set; } = default!; @@ -72,7 +69,7 @@ public class ApplicationWithLatestDeploymentAndBuild public DateTime? DeletedAt { get; set; } = default!; /// - /// UserId or email address for the user that deleted the application. + /// The email address or token id for the user that deleted the application. /// [SerializeField] [JsonProperty("deletedBy", NullValueHandling = NullValueHandling.Include)] @@ -80,7 +77,7 @@ public class ApplicationWithLatestDeploymentAndBuild [SerializeField] [JsonProperty("deployment")] - public ApplicationWithLatestDeploymentAndBuildDeployment? Deployment { get; set; } + public Deployment? Deployment { get; set; } /// /// System generated unique identifier for an organization. Not guaranteed to have a specific format. diff --git a/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecated.cs b/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecated.cs new file mode 100644 index 00000000..46e49342 --- /dev/null +++ b/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecated.cs @@ -0,0 +1,89 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System; + using UnityEngine; + + /// + /// An application object is the top level namespace for the game server. + /// + [Serializable] + public class ApplicationWithLatestDeploymentAndBuildDeprecated + { + + /// + /// System generated unique identifier for an application. + /// + [SerializeField] + [JsonProperty("appId")] + public string AppId { get; set; } = default!; + + /// + /// Readable name for an application. Must be unique within an organization. + /// + [SerializeField] + [JsonProperty("appName")] + public string AppName { get; set; } = default!; + + /// + /// Secret that is used for identity and access management. + /// + [SerializeField] + [JsonProperty("appSecret")] + public string AppSecret { get; set; } = default!; + + /// + /// Configure player authentication for your application. Use Hathora's built-in auth providers or use your own custom authentication. + /// + [SerializeField] + [JsonProperty("authConfiguration")] + public AuthConfiguration AuthConfiguration { get; set; } = default!; + + /// + /// When the application was created. + /// + [SerializeField] + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("createdBy")] + public string CreatedBy { get; set; } = default!; + + /// + /// When the application was deleted. + /// + [SerializeField] + [JsonProperty("deletedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? DeletedAt { get; set; } = default!; + + /// + /// The email address or token id for the user that deleted the application. + /// + [SerializeField] + [JsonProperty("deletedBy", NullValueHandling = NullValueHandling.Include)] + public string? DeletedBy { get; set; } = default!; + + [SerializeField] + [JsonProperty("deployment")] + public ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment? Deployment { get; set; } + + /// + /// System generated unique identifier for an organization. Not guaranteed to have a specific format. + /// + [SerializeField] + [JsonProperty("orgId")] + public string OrgId { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeployment.cs b/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment.cs similarity index 90% rename from HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeployment.cs rename to HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment.cs index 60a275c4..8d59aea1 100644 --- a/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeployment.cs +++ b/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -17,7 +17,7 @@ namespace HathoraCloud.Models.Shared using UnityEngine; [Serializable] - public class ApplicationWithLatestDeploymentAndBuildDeployment + public class ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment { /// @@ -55,9 +55,6 @@ public class ApplicationWithLatestDeploymentAndBuildDeployment [JsonProperty("createdAt")] public DateTime CreatedAt { get; set; } = default!; - /// - /// UserId or email address for the user that created the deployment. - /// [SerializeField] [JsonProperty("createdBy")] public string CreatedBy { get; set; } = default!; @@ -81,7 +78,7 @@ public class ApplicationWithLatestDeploymentAndBuildDeployment /// [SerializeField] [JsonProperty("env")] - public List Env { get; set; } = default!; + public List Env { get; set; } = default!; /// /// Option to shut down processes that have had no new connections or rooms
diff --git a/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedEnv.cs b/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedEnv.cs new file mode 100644 index 00000000..6aabc13d --- /dev/null +++ b/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedEnv.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using Newtonsoft.Json; + using System; + using UnityEngine; + + [Serializable] + public class ApplicationWithLatestDeploymentAndBuildDeprecatedEnv + { + + [SerializeField] + [JsonProperty("name")] + public string Name { get; set; } = default!; + + [SerializeField] + [JsonProperty("value")] + public string Value { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildEnv.cs b/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildEnv.cs index 2d7eb78f..2f40b657 100644 --- a/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildEnv.cs +++ b/HathoraCloud/Models/Shared/ApplicationWithLatestDeploymentAndBuildEnv.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ApplicationsPage.cs b/HathoraCloud/Models/Shared/ApplicationsPage.cs new file mode 100644 index 00000000..773c5452 --- /dev/null +++ b/HathoraCloud/Models/Shared/ApplicationsPage.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + using UnityEngine; + + [Serializable] + public class ApplicationsPage + { + + [SerializeField] + [JsonProperty("applications")] + public List Applications { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/AuthConfiguration.cs b/HathoraCloud/Models/Shared/AuthConfiguration.cs index 6caacac8..b881043c 100644 --- a/HathoraCloud/Models/Shared/AuthConfiguration.cs +++ b/HathoraCloud/Models/Shared/AuthConfiguration.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/Build.cs b/HathoraCloud/Models/Shared/Build.cs index 392038ef..56fba7e1 100644 --- a/HathoraCloud/Models/Shared/Build.cs +++ b/HathoraCloud/Models/Shared/Build.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -48,9 +48,6 @@ public class Build [JsonProperty("createdAt")] public DateTime CreatedAt { get; set; } = default!; - /// - /// UserId or email address for the user that created the build. - /// [SerializeField] [JsonProperty("createdBy")] public string CreatedBy { get; set; } = default!; diff --git a/HathoraCloud/Models/Shared/BuildPart.cs b/HathoraCloud/Models/Shared/BuildPart.cs new file mode 100644 index 00000000..a646abc1 --- /dev/null +++ b/HathoraCloud/Models/Shared/BuildPart.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using Newtonsoft.Json; + using System; + using UnityEngine; + + [Serializable] + public class BuildPart + { + + [SerializeField] + [JsonProperty("partNumber")] + public double PartNumber { get; set; } = default!; + + [SerializeField] + [JsonProperty("putRequestUrl")] + public string PutRequestUrl { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/BuildStatus.cs b/HathoraCloud/Models/Shared/BuildStatus.cs index 95b875e4..c107578d 100644 --- a/HathoraCloud/Models/Shared/BuildStatus.cs +++ b/HathoraCloud/Models/Shared/BuildStatus.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/BuildV3.cs b/HathoraCloud/Models/Shared/BuildV3.cs new file mode 100644 index 00000000..7f533f02 --- /dev/null +++ b/HathoraCloud/Models/Shared/BuildV3.cs @@ -0,0 +1,93 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System; + using UnityEngine; + + /// + /// A build represents a game server artifact and its associated metadata. + /// + [Serializable] + public class BuildV3 + { + + /// + /// System generated id for a build. Can also be user defined when creating a build. + /// + [SerializeField] + [JsonProperty("buildId")] + public string BuildId { get; set; } = default!; + + /// + /// Tag to associate an external version with a build. It is accessible via `GetBuildInfo()`. + /// + [SerializeField] + [JsonProperty("buildTag")] + public string? BuildTag { get; set; } + + [SerializeField] + [JsonProperty("contentHash")] + public string? ContentHash { get; set; } + + /// + /// When `CreateBuild()` is called. + /// + [SerializeField] + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("createdBy")] + public string CreatedBy { get; set; } = default!; + + /// + /// When the build was deleted. + /// + [SerializeField] + [JsonProperty("deletedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? DeletedAt { get; set; } = default!; + + /// + /// When `RunBuild()` finished executing. + /// + [SerializeField] + [JsonProperty("finishedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? FinishedAt { get; set; } = default!; + + /// + /// The size (in bytes) of the Docker image built by Hathora. + /// + [SerializeField] + [JsonProperty("imageSize")] + public long ImageSize { get; set; } = default!; + + /// + /// System generated unique identifier for an organization. Not guaranteed to have a specific format. + /// + [SerializeField] + [JsonProperty("orgId")] + public string OrgId { get; set; } = default!; + + /// + /// When `RunBuild()` is called. + /// + [SerializeField] + [JsonProperty("startedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? StartedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("status")] + public BuildStatus Status { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/BuildWithMultipartUrls.cs b/HathoraCloud/Models/Shared/BuildWithMultipartUrls.cs new file mode 100644 index 00000000..e15090a4 --- /dev/null +++ b/HathoraCloud/Models/Shared/BuildWithMultipartUrls.cs @@ -0,0 +1,104 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + using UnityEngine; + + /// + /// A build represents a game server artifact and its associated metadata. + /// + [Serializable] + public class BuildWithMultipartUrls + { + + /// + /// System generated unique identifier for an application. + /// + [SerializeField] + [JsonProperty("appId")] + public string AppId { get; set; } = default!; + + /// + /// System generated id for a build. Increments by 1. + /// + [SerializeField] + [JsonProperty("buildId")] + public int BuildId { get; set; } = default!; + + [SerializeField] + [JsonProperty("buildTag")] + public string? BuildTag { get; set; } + + [SerializeField] + [JsonProperty("completeUploadPostRequestUrl")] + public string CompleteUploadPostRequestUrl { get; set; } = default!; + + /// + /// When `CreateBuild()` is called. + /// + [SerializeField] + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("createdBy")] + public string CreatedBy { get; set; } = default!; + + /// + /// When the build was deleted. + /// + [SerializeField] + [JsonProperty("deletedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? DeletedAt { get; set; } = default!; + + /// + /// When `RunBuild()` finished executing. + /// + [SerializeField] + [JsonProperty("finishedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? FinishedAt { get; set; } = default!; + + /// + /// The size (in bytes) of the Docker image built by Hathora. + /// + [SerializeField] + [JsonProperty("imageSize")] + public long ImageSize { get; set; } = default!; + + [SerializeField] + [JsonProperty("maxChunkSize")] + public double MaxChunkSize { get; set; } = default!; + + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] + [SerializeField] + [JsonProperty("regionalContainerTags")] + public List RegionalContainerTags { get; set; } = default!; + + /// + /// When `RunBuild()` is called. + /// + [SerializeField] + [JsonProperty("startedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? StartedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("status")] + public BuildStatus Status { get; set; } = default!; + + [SerializeField] + [JsonProperty("uploadParts")] + public List UploadParts { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/InviteStatusAccepted.cs b/HathoraCloud/Models/Shared/BuildWithMultipartUrlsRegionalContainerTags.cs similarity index 56% rename from HathoraCloud/Models/Shared/InviteStatusAccepted.cs rename to HathoraCloud/Models/Shared/BuildWithMultipartUrlsRegionalContainerTags.cs index c7951efd..4ea87400 100644 --- a/HathoraCloud/Models/Shared/InviteStatusAccepted.cs +++ b/HathoraCloud/Models/Shared/BuildWithMultipartUrlsRegionalContainerTags.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,18 +16,15 @@ namespace HathoraCloud.Models.Shared using UnityEngine; [Serializable] - public class InviteStatusAccepted + public class BuildWithMultipartUrlsRegionalContainerTags { [SerializeField] - [JsonProperty("type")] - public Type Type { get; set; } = default!; + [JsonProperty("containerTag")] + public string ContainerTag { get; set; } = default!; - /// - /// System generated unique identifier for a user. Not guaranteed to have a specific format. - /// [SerializeField] - [JsonProperty("userId")] - public string UserId { get; set; } = default!; + [JsonProperty("region")] + public Region Region { get; set; } = default!; } } \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/BuildWithUploadUrl.cs b/HathoraCloud/Models/Shared/BuildWithUploadUrl.cs new file mode 100644 index 00000000..2eb59edf --- /dev/null +++ b/HathoraCloud/Models/Shared/BuildWithUploadUrl.cs @@ -0,0 +1,100 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + using UnityEngine; + + /// + /// A build represents a game server artifact and its associated metadata. + /// + [Serializable] + public class BuildWithUploadUrl + { + + /// + /// System generated unique identifier for an application. + /// + [SerializeField] + [JsonProperty("appId")] + public string AppId { get; set; } = default!; + + /// + /// System generated id for a build. Increments by 1. + /// + [SerializeField] + [JsonProperty("buildId")] + public int BuildId { get; set; } = default!; + + [SerializeField] + [JsonProperty("buildTag")] + public string? BuildTag { get; set; } + + /// + /// When `CreateBuild()` is called. + /// + [SerializeField] + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("createdBy")] + public string CreatedBy { get; set; } = default!; + + /// + /// When the build was deleted. + /// + [SerializeField] + [JsonProperty("deletedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? DeletedAt { get; set; } = default!; + + /// + /// When `RunBuild()` finished executing. + /// + [SerializeField] + [JsonProperty("finishedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? FinishedAt { get; set; } = default!; + + /// + /// The size (in bytes) of the Docker image built by Hathora. + /// + [SerializeField] + [JsonProperty("imageSize")] + public long ImageSize { get; set; } = default!; + + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] + [SerializeField] + [JsonProperty("regionalContainerTags")] + public List RegionalContainerTags { get; set; } = default!; + + /// + /// When `RunBuild()` is called. + /// + [SerializeField] + [JsonProperty("startedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? StartedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("status")] + public BuildStatus Status { get; set; } = default!; + + [SerializeField] + [JsonProperty("uploadBodyParams")] + public List UploadBodyParams { get; set; } = default!; + + [SerializeField] + [JsonProperty("uploadUrl")] + public string UploadUrl { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/BuildWithUploadUrlRegionalContainerTags.cs b/HathoraCloud/Models/Shared/BuildWithUploadUrlRegionalContainerTags.cs new file mode 100644 index 00000000..e04d530b --- /dev/null +++ b/HathoraCloud/Models/Shared/BuildWithUploadUrlRegionalContainerTags.cs @@ -0,0 +1,30 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System; + using UnityEngine; + + [Serializable] + public class BuildWithUploadUrlRegionalContainerTags + { + + [SerializeField] + [JsonProperty("containerTag")] + public string ContainerTag { get; set; } = default!; + + [SerializeField] + [JsonProperty("region")] + public Region Region { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/LobbyInitialConfig.cs b/HathoraCloud/Models/Shared/BuildsV3Page.cs similarity index 57% rename from HathoraCloud/Models/Shared/LobbyInitialConfig.cs rename to HathoraCloud/Models/Shared/BuildsV3Page.cs index 44de2510..48ca491d 100644 --- a/HathoraCloud/Models/Shared/LobbyInitialConfig.cs +++ b/HathoraCloud/Models/Shared/BuildsV3Page.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -10,14 +10,18 @@ #nullable enable namespace HathoraCloud.Models.Shared { + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; using System; using UnityEngine; - /// - /// User input to initialize the game state. Object must be smaller than 64KB. - /// [Serializable] - public class LobbyInitialConfig + public class BuildsV3Page { + + [SerializeField] + [JsonProperty("builds")] + public List Builds { get; set; } = default!; } } \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/CardBrand.cs b/HathoraCloud/Models/Shared/CardBrand.cs index 3a8f7f57..d8925e81 100644 --- a/HathoraCloud/Models/Shared/CardBrand.cs +++ b/HathoraCloud/Models/Shared/CardBrand.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/CardPaymentMethod.cs b/HathoraCloud/Models/Shared/CardPaymentMethod.cs index d6561dba..fc2cd9d5 100644 --- a/HathoraCloud/Models/Shared/CardPaymentMethod.cs +++ b/HathoraCloud/Models/Shared/CardPaymentMethod.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ConnectionInfo.cs b/HathoraCloud/Models/Shared/ConnectionInfo.cs index a7fea272..b2db80db 100644 --- a/HathoraCloud/Models/Shared/ConnectionInfo.cs +++ b/HathoraCloud/Models/Shared/ConnectionInfo.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ConnectionInfoV2.cs b/HathoraCloud/Models/Shared/ConnectionInfoV2.cs index afc3fbd2..15342605 100644 --- a/HathoraCloud/Models/Shared/ConnectionInfoV2.cs +++ b/HathoraCloud/Models/Shared/ConnectionInfoV2.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ContainerPort.cs b/HathoraCloud/Models/Shared/ContainerPort.cs index ac3e9a8b..2dfc182b 100644 --- a/HathoraCloud/Models/Shared/ContainerPort.cs +++ b/HathoraCloud/Models/Shared/ContainerPort.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/CreateBuildParams.cs b/HathoraCloud/Models/Shared/CreateBuildParams.cs index 980e6e22..4bb406ea 100644 --- a/HathoraCloud/Models/Shared/CreateBuildParams.cs +++ b/HathoraCloud/Models/Shared/CreateBuildParams.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/CreateLobbyParams.cs b/HathoraCloud/Models/Shared/CreateLobbyParams.cs index 9a42e0ba..d053a772 100644 --- a/HathoraCloud/Models/Shared/CreateLobbyParams.cs +++ b/HathoraCloud/Models/Shared/CreateLobbyParams.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -24,7 +24,7 @@ public class CreateLobbyParams ///
[SerializeField] [JsonProperty("initialConfig")] - public LobbyInitialConfig InitialConfig { get; set; } = default!; + public object InitialConfig { get; set; } = default!; [SerializeField] [JsonProperty("region")] diff --git a/HathoraCloud/Models/Shared/CreateLobbyV3Params.cs b/HathoraCloud/Models/Shared/CreateLobbyV3Params.cs index 153ef7d0..647b1fc9 100644 --- a/HathoraCloud/Models/Shared/CreateLobbyV3Params.cs +++ b/HathoraCloud/Models/Shared/CreateLobbyV3Params.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/InviteStatusRescinded.cs b/HathoraCloud/Models/Shared/CreateMultipartBuildParams.cs similarity index 50% rename from HathoraCloud/Models/Shared/InviteStatusRescinded.cs rename to HathoraCloud/Models/Shared/CreateMultipartBuildParams.cs index aafd039e..c7220715 100644 --- a/HathoraCloud/Models/Shared/InviteStatusRescinded.cs +++ b/HathoraCloud/Models/Shared/CreateMultipartBuildParams.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -10,31 +10,30 @@ #nullable enable namespace HathoraCloud.Models.Shared { - using HathoraCloud.Models.Shared; using Newtonsoft.Json; using System; using UnityEngine; [Serializable] - public class InviteStatusRescinded + public class CreateMultipartBuildParams { /// - /// System generated unique identifier for a user. Not guaranteed to have a specific format. + /// System generated id for a build. Can also be user defined when creating a build. /// [SerializeField] - [JsonProperty("rescindedBy")] - public string RescindedBy { get; set; } = default!; + [JsonProperty("buildId")] + public string? BuildId { get; set; } [SerializeField] - [JsonProperty("type")] - public InviteStatusRescindedType Type { get; set; } = default!; + [JsonProperty("buildSizeInBytes")] + public double BuildSizeInBytes { get; set; } = default!; /// - /// System generated unique identifier for a user. Not guaranteed to have a specific format. + /// Tag to associate an external version with a build. It is accessible via `GetBuildInfo()`. /// [SerializeField] - [JsonProperty("userId")] - public string? UserId { get; set; } + [JsonProperty("buildTag")] + public string? BuildTag { get; set; } } } \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/CreateOrgToken.cs b/HathoraCloud/Models/Shared/CreateOrgToken.cs index 2a6086c3..c7e96090 100644 --- a/HathoraCloud/Models/Shared/CreateOrgToken.cs +++ b/HathoraCloud/Models/Shared/CreateOrgToken.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/CreateRoomParams.cs b/HathoraCloud/Models/Shared/CreateRoomParams.cs index 07ebb8ac..e56b3151 100644 --- a/HathoraCloud/Models/Shared/CreateRoomParams.cs +++ b/HathoraCloud/Models/Shared/CreateRoomParams.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -12,6 +12,7 @@ namespace HathoraCloud.Models.Shared { using HathoraCloud.Models.Shared; using Newtonsoft.Json; + using System.Collections.Generic; using System; using UnityEngine; @@ -19,6 +20,10 @@ namespace HathoraCloud.Models.Shared public class CreateRoomParams { + [SerializeField] + [JsonProperty("clientIPs")] + public List? ClientIPs { get; set; } + [SerializeField] [JsonProperty("region")] public Region Region { get; set; } = default!; diff --git a/HathoraCloud/Models/Shared/CreateUserInvite.cs b/HathoraCloud/Models/Shared/CreateUserInvite.cs index 72271a25..33c3caa5 100644 --- a/HathoraCloud/Models/Shared/CreateUserInvite.cs +++ b/HathoraCloud/Models/Shared/CreateUserInvite.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -18,6 +18,9 @@ namespace HathoraCloud.Models.Shared public class CreateUserInvite { + /// + /// A user's email. + /// [SerializeField] [JsonProperty("userEmail")] public string UserEmail { get; set; } = default!; diff --git a/HathoraCloud/Models/Shared/CreatedBuildV3WithMultipartUrls.cs b/HathoraCloud/Models/Shared/CreatedBuildV3WithMultipartUrls.cs new file mode 100644 index 00000000..2b0fc0c2 --- /dev/null +++ b/HathoraCloud/Models/Shared/CreatedBuildV3WithMultipartUrls.cs @@ -0,0 +1,106 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + using UnityEngine; + + /// + /// A build represents a game server artifact and its associated metadata. + /// + [Serializable] + public class CreatedBuildV3WithMultipartUrls + { + + /// + /// System generated id for a build. Can also be user defined when creating a build. + /// + [SerializeField] + [JsonProperty("buildId")] + public string BuildId { get; set; } = default!; + + /// + /// Tag to associate an external version with a build. It is accessible via `GetBuildInfo()`. + /// + [SerializeField] + [JsonProperty("buildTag")] + public string? BuildTag { get; set; } + + [SerializeField] + [JsonProperty("completeUploadPostRequestUrl")] + public string CompleteUploadPostRequestUrl { get; set; } = default!; + + [SerializeField] + [JsonProperty("contentHash")] + public string? ContentHash { get; set; } + + /// + /// When `CreateBuild()` is called. + /// + [SerializeField] + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("createdBy")] + public string CreatedBy { get; set; } = default!; + + /// + /// When the build was deleted. + /// + [SerializeField] + [JsonProperty("deletedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? DeletedAt { get; set; } = default!; + + /// + /// When `RunBuild()` finished executing. + /// + [SerializeField] + [JsonProperty("finishedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? FinishedAt { get; set; } = default!; + + /// + /// The size (in bytes) of the Docker image built by Hathora. + /// + [SerializeField] + [JsonProperty("imageSize")] + public long ImageSize { get; set; } = default!; + + [SerializeField] + [JsonProperty("maxChunkSize")] + public double MaxChunkSize { get; set; } = default!; + + /// + /// System generated unique identifier for an organization. Not guaranteed to have a specific format. + /// + [SerializeField] + [JsonProperty("orgId")] + public string OrgId { get; set; } = default!; + + /// + /// When `RunBuild()` is called. + /// + [SerializeField] + [JsonProperty("startedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? StartedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("status")] + public BuildStatus Status { get; set; } = default!; + + [SerializeField] + [JsonProperty("uploadParts")] + public List UploadParts { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/CreatedBy.cs b/HathoraCloud/Models/Shared/CreatedBy.cs new file mode 100644 index 00000000..3340c05e --- /dev/null +++ b/HathoraCloud/Models/Shared/CreatedBy.cs @@ -0,0 +1,149 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Utils; + using Newtonsoft.Json.Linq; + using Newtonsoft.Json; + using System.Numerics; + using System; + using UnityEngine; + + + public class CreatedByType + { + private CreatedByType(string value) { Value = value; } + + public string Value { get; private set; } + public static CreatedByType Str { get { return new CreatedByType("str"); } } + public static CreatedByType Number { get { return new CreatedByType("number"); } } + public static CreatedByType Null { get { return new CreatedByType("null"); } } + + public override string ToString() { return Value; } + public static implicit operator String(CreatedByType v) { return v.Value; } + public static CreatedByType FromString(string v) { + switch(v) { + case "str": return Str; + case "number": return Number; + case "null": return Null; + default: throw new ArgumentException("Invalid value for CreatedByType"); + } + } + public override bool Equals(object? obj) + { + if (obj == null || GetType() != obj.GetType()) + { + return false; + } + return Value.Equals(((CreatedByType)obj).Value); + } + + public override int GetHashCode() + { + return Value.GetHashCode(); + } + } + +/// +/// UserId or email address for the user that created the lobby. +/// + [JsonConverter(typeof(CreatedBy.CreatedByConverter))] + public class CreatedBy { + public CreatedBy(CreatedByType type) { + Type = type; + } + public string? Str { get; set; } + public double? Number { get; set; } + + public CreatedByType Type {get; set; } + + + public static CreatedBy CreateStr(string str) { + CreatedByType typ = CreatedByType.Str; + + CreatedBy res = new CreatedBy(typ); + res.Str = str; + return res; + } + + public static CreatedBy CreateNumber(double number) { + CreatedByType typ = CreatedByType.Number; + + CreatedBy res = new CreatedBy(typ); + res.Number = number; + return res; + } + + public static CreatedBy CreateNull() { + CreatedByType typ = CreatedByType.Null; + return new CreatedBy(typ); + } + + public class CreatedByConverter : JsonConverter + { + + public override bool CanConvert(System.Type objectType) => objectType == typeof(CreatedBy); + + public override bool CanRead => true; + + public override object? ReadJson(JsonReader reader, System.Type objectType, object? existingValue, JsonSerializer serializer) + { + var json = JRaw.Create(reader).ToString(); + + if (json == "null") { + return null; + } + if (json[0] == '"' && json[^1] == '"'){ + return new CreatedBy(CreatedByType.Str) { + Str = json[1..^1] + }; + } + try { + var converted = Convert.ToDouble(json); + return new CreatedBy(CreatedByType.Number) { + Number = converted + }; + } catch (System.FormatException) { + // try next option + } + + throw new InvalidOperationException("Could not deserialize into any supported types."); + } + + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) + { + if (value == null) { + writer.WriteRawValue("null"); + return; + } + CreatedBy res = (CreatedBy)value; + if (CreatedByType.FromString(res.Type).Equals(CreatedByType.Null)) + { + writer.WriteRawValue("null"); + return; + } + if (res.Str != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Str)); + return; + } + if (res.Number != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Number)); + return; + } + + } + } + + } + +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/CreatedOrgToken.cs b/HathoraCloud/Models/Shared/CreatedOrgToken.cs index 08b726f7..d9e9ace9 100644 --- a/HathoraCloud/Models/Shared/CreatedOrgToken.cs +++ b/HathoraCloud/Models/Shared/CreatedOrgToken.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/CurrentAllocation.cs b/HathoraCloud/Models/Shared/CurrentAllocation.cs index 336bbae5..2b25ebfe 100644 --- a/HathoraCloud/Models/Shared/CurrentAllocation.cs +++ b/HathoraCloud/Models/Shared/CurrentAllocation.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/CustomerPortalUrl.cs b/HathoraCloud/Models/Shared/CustomerPortalUrl.cs index dc205077..dee85058 100644 --- a/HathoraCloud/Models/Shared/CustomerPortalUrl.cs +++ b/HathoraCloud/Models/Shared/CustomerPortalUrl.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/State.cs b/HathoraCloud/Models/Shared/DeletedBuild.cs similarity index 72% rename from HathoraCloud/Models/Shared/State.cs rename to HathoraCloud/Models/Shared/DeletedBuild.cs index 4d09d997..717b2f04 100644 --- a/HathoraCloud/Models/Shared/State.cs +++ b/HathoraCloud/Models/Shared/DeletedBuild.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -14,10 +14,10 @@ namespace HathoraCloud.Models.Shared using UnityEngine; /// - /// JSON blob to store metadata for a room. Must be smaller than 1MB. + /// Construct a type with a set of properties K of type T /// [Serializable] - public class State + public class DeletedBuild { } } \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/Deployment.cs b/HathoraCloud/Models/Shared/Deployment.cs index 48d709d9..61d990b1 100644 --- a/HathoraCloud/Models/Shared/Deployment.cs +++ b/HathoraCloud/Models/Shared/Deployment.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,9 +16,6 @@ namespace HathoraCloud.Models.Shared using System; using UnityEngine; - /// - /// Deployment is a versioned configuration for a build that describes runtime behavior. - /// [Serializable] public class Deployment { @@ -38,16 +35,25 @@ public class Deployment public string AppId { get; set; } = default!; /// - /// System generated id for a build. Increments by 1. + /// A build represents a game server artifact and its associated metadata. + /// + [SerializeField] + [JsonProperty("build")] + public BuildV3 Build { get; set; } = default!; + + /// + /// System generated id for a build. Can also be user defined when creating a build. /// [SerializeField] [JsonProperty("buildId")] - public int BuildId { get; set; } = default!; + public string BuildId { get; set; } = default!; - [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] + /// + /// Tag to associate an external version with a build. It is accessible via `GetBuildInfo()`. + /// [SerializeField] - [JsonProperty("containerPort")] - public double ContainerPort { get; set; } = default!; + [JsonProperty("buildTag")] + public string? BuildTag { get; set; } /// /// When the deployment was created. @@ -56,9 +62,6 @@ public class Deployment [JsonProperty("createdAt")] public DateTime CreatedAt { get; set; } = default!; - /// - /// UserId or email address for the user that created the deployment. - /// [SerializeField] [JsonProperty("createdBy")] public string CreatedBy { get; set; } = default!; @@ -71,18 +74,18 @@ public class Deployment public ContainerPort DefaultContainerPort { get; set; } = default!; /// - /// System generated id for a deployment. Increments by 1. + /// System generated id for a deployment. /// [SerializeField] [JsonProperty("deploymentId")] - public int DeploymentId { get; set; } = default!; + public string DeploymentId { get; set; } = default!; /// /// The environment variable that our process will have access to at runtime. /// [SerializeField] [JsonProperty("env")] - public List Env { get; set; } = default!; + public List Env { get; set; } = default!; /// /// Option to shut down processes that have had no new connections or rooms
@@ -93,25 +96,7 @@ public class Deployment ///
[SerializeField] [JsonProperty("idleTimeoutEnabled")] - public bool? IdleTimeoutEnabled { get; set; } - - /// - /// A plan defines how much CPU and memory is required to run an instance of your game server.
- /// - /// - ///
- /// `tiny`: shared core, 1gb memory
- ///
- /// `small`: 1 core, 2gb memory
- ///
- /// `medium`: 2 core, 4gb memory
- ///
- /// `large`: 4 core, 8gb memory - ///
- ///
- [SerializeField] - [JsonProperty("planName")] - public PlanName PlanName { get; set; } = default!; + public bool IdleTimeoutEnabled { get; set; } = default!; /// /// The number of cores allocated to your process. @@ -125,7 +110,7 @@ public class Deployment /// [SerializeField] [JsonProperty("requestedMemoryMB")] - public int RequestedMemoryMB { get; set; } = default!; + public double RequestedMemoryMB { get; set; } = default!; /// /// Governs how many rooms can be scheduled in a process. @@ -133,10 +118,5 @@ public class Deployment [SerializeField] [JsonProperty("roomsPerProcess")] public int RoomsPerProcess { get; set; } = default!; - - [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] - [SerializeField] - [JsonProperty("transportType")] - public DeploymentTransportType TransportType { get; set; } = default!; } } \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/DeploymentConfig.cs b/HathoraCloud/Models/Shared/DeploymentConfig.cs index c150ca01..c52e9405 100644 --- a/HathoraCloud/Models/Shared/DeploymentConfig.cs +++ b/HathoraCloud/Models/Shared/DeploymentConfig.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -42,7 +42,7 @@ public class DeploymentConfig /// [SerializeField] [JsonProperty("env")] - public List Env { get; set; } = default!; + public List Env { get; set; } = default!; /// /// Option to shut down processes that have had no new connections or rooms
diff --git a/HathoraCloud/Models/Shared/DeploymentConfigV2.cs b/HathoraCloud/Models/Shared/DeploymentConfigV2.cs index c04429de..0581ad0c 100644 --- a/HathoraCloud/Models/Shared/DeploymentConfigV2.cs +++ b/HathoraCloud/Models/Shared/DeploymentConfigV2.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/DeploymentConfigV2Env.cs b/HathoraCloud/Models/Shared/DeploymentConfigV2Env.cs index 99950fb2..a17b75f5 100644 --- a/HathoraCloud/Models/Shared/DeploymentConfigV2Env.cs +++ b/HathoraCloud/Models/Shared/DeploymentConfigV2Env.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/DeploymentConfigV3.cs b/HathoraCloud/Models/Shared/DeploymentConfigV3.cs new file mode 100644 index 00000000..70c03b79 --- /dev/null +++ b/HathoraCloud/Models/Shared/DeploymentConfigV3.cs @@ -0,0 +1,90 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + using UnityEngine; + + [Serializable] + public class DeploymentConfigV3 + { + + /// + /// Additional ports your server listens on. + /// + [SerializeField] + [JsonProperty("additionalContainerPorts")] + public List? AdditionalContainerPorts { get; set; } + + /// + /// System generated id for a build. Can also be user defined when creating a build. + /// + [SerializeField] + [JsonProperty("buildId")] + public string BuildId { get; set; } = default!; + + /// + /// Default port the server listens on. + /// + [SerializeField] + [JsonProperty("containerPort")] + public int ContainerPort { get; set; } = default!; + + /// + /// The environment variable that our process will have access to at runtime. + /// + [SerializeField] + [JsonProperty("env")] + public List Env { get; set; } = default!; + + /// + /// Option to shut down processes that have had no new connections or rooms
+ /// + /// + /// for five minutes. + /// + ///
+ [SerializeField] + [JsonProperty("idleTimeoutEnabled")] + public bool IdleTimeoutEnabled { get; set; } = default!; + + /// + /// The number of cores allocated to your process. + /// + [SerializeField] + [JsonProperty("requestedCPU")] + public double RequestedCPU { get; set; } = default!; + + /// + /// The amount of memory allocated to your process. + /// + [SerializeField] + [JsonProperty("requestedMemoryMB")] + public double RequestedMemoryMB { get; set; } = default!; + + /// + /// Governs how many rooms can be scheduled in a process. + /// + [SerializeField] + [JsonProperty("roomsPerProcess")] + public int RoomsPerProcess { get; set; } = default!; + + /// + /// Transport type specifies the underlying communication protocol to the exposed port. + /// + [SerializeField] + [JsonProperty("transportType")] + public TransportType TransportType { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/DeploymentConfigEnv.cs b/HathoraCloud/Models/Shared/DeploymentConfigV3Env.cs similarity index 85% rename from HathoraCloud/Models/Shared/DeploymentConfigEnv.cs rename to HathoraCloud/Models/Shared/DeploymentConfigV3Env.cs index d52fad82..eee3fc18 100644 --- a/HathoraCloud/Models/Shared/DeploymentConfigEnv.cs +++ b/HathoraCloud/Models/Shared/DeploymentConfigV3Env.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,7 +15,7 @@ namespace HathoraCloud.Models.Shared using UnityEngine; [Serializable] - public class DeploymentConfigEnv + public class DeploymentConfigV3Env { [SerializeField] diff --git a/HathoraCloud/Models/Shared/DeploymentV1.cs b/HathoraCloud/Models/Shared/DeploymentV1.cs new file mode 100644 index 00000000..fe517cb2 --- /dev/null +++ b/HathoraCloud/Models/Shared/DeploymentV1.cs @@ -0,0 +1,139 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + using UnityEngine; + + /// + /// Deployment is a versioned configuration for a build that describes runtime behavior. + /// + [Serializable] + public class DeploymentV1 + { + + /// + /// Additional ports your server listens on. + /// + [SerializeField] + [JsonProperty("additionalContainerPorts")] + public List AdditionalContainerPorts { get; set; } = default!; + + /// + /// System generated unique identifier for an application. + /// + [SerializeField] + [JsonProperty("appId")] + public string AppId { get; set; } = default!; + + /// + /// System generated id for a build. Increments by 1. + /// + [SerializeField] + [JsonProperty("buildId")] + public int BuildId { get; set; } = default!; + + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] + [SerializeField] + [JsonProperty("containerPort")] + public double ContainerPort { get; set; } = default!; + + /// + /// When the deployment was created. + /// + [SerializeField] + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("createdBy")] + public string CreatedBy { get; set; } = default!; + + /// + /// A container port object represents the transport configruations for how your server will listen. + /// + [SerializeField] + [JsonProperty("defaultContainerPort")] + public ContainerPort DefaultContainerPort { get; set; } = default!; + + /// + /// System generated id for a deployment. Increments by 1. + /// + [SerializeField] + [JsonProperty("deploymentId")] + public int DeploymentId { get; set; } = default!; + + /// + /// The environment variable that our process will have access to at runtime. + /// + [SerializeField] + [JsonProperty("env")] + public List Env { get; set; } = default!; + + /// + /// Option to shut down processes that have had no new connections or rooms
+ /// + /// + /// for five minutes. + /// + ///
+ [SerializeField] + [JsonProperty("idleTimeoutEnabled")] + public bool? IdleTimeoutEnabled { get; set; } + + /// + /// A plan defines how much CPU and memory is required to run an instance of your game server.
+ /// + /// + ///
+ /// `tiny`: shared core, 1gb memory
+ ///
+ /// `small`: 1 core, 2gb memory
+ ///
+ /// `medium`: 2 core, 4gb memory
+ ///
+ /// `large`: 4 core, 8gb memory + ///
+ ///
+ [SerializeField] + [JsonProperty("planName")] + public PlanName PlanName { get; set; } = default!; + + /// + /// The number of cores allocated to your process. + /// + [SerializeField] + [JsonProperty("requestedCPU")] + public double RequestedCPU { get; set; } = default!; + + /// + /// The amount of memory allocated to your process. + /// + [SerializeField] + [JsonProperty("requestedMemoryMB")] + public int RequestedMemoryMB { get; set; } = default!; + + /// + /// Governs how many rooms can be scheduled in a process. + /// + [SerializeField] + [JsonProperty("roomsPerProcess")] + public int RoomsPerProcess { get; set; } = default!; + + [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] + [SerializeField] + [JsonProperty("transportType")] + public DeploymentV1TransportType TransportType { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/DeploymentV1Env.cs b/HathoraCloud/Models/Shared/DeploymentV1Env.cs new file mode 100644 index 00000000..52f8b611 --- /dev/null +++ b/HathoraCloud/Models/Shared/DeploymentV1Env.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using Newtonsoft.Json; + using System; + using UnityEngine; + + [Serializable] + public class DeploymentV1Env + { + + [SerializeField] + [JsonProperty("name")] + public string Name { get; set; } = default!; + + [SerializeField] + [JsonProperty("value")] + public string Value { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/DeploymentTransportType.cs b/HathoraCloud/Models/Shared/DeploymentV1TransportType.cs similarity index 74% rename from HathoraCloud/Models/Shared/DeploymentTransportType.cs rename to HathoraCloud/Models/Shared/DeploymentV1TransportType.cs index 7f96ef41..1b49f9d5 100644 --- a/HathoraCloud/Models/Shared/DeploymentTransportType.cs +++ b/HathoraCloud/Models/Shared/DeploymentV1TransportType.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -14,7 +14,7 @@ namespace HathoraCloud.Models.Shared using System; using UnityEngine; [Obsolete("This enum will be removed in a future release, please migrate away from it as soon as possible")] - public enum DeploymentTransportType + public enum DeploymentV1TransportType { [JsonProperty("tcp")] Tcp, @@ -25,16 +25,16 @@ public enum DeploymentTransportType } #pragma warning disable 0618 - public static class DeploymentTransportTypeExtension + public static class DeploymentV1TransportTypeExtension { - public static string Value(this DeploymentTransportType value) + public static string Value(this DeploymentV1TransportType value) { return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); } - public static DeploymentTransportType ToEnum(this string value) + public static DeploymentV1TransportType ToEnum(this string value) { - foreach(var field in typeof(DeploymentTransportType).GetFields()) + foreach(var field in typeof(DeploymentV1TransportType).GetFields()) { var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); if (attributes.Length == 0) @@ -45,11 +45,11 @@ public static DeploymentTransportType ToEnum(this string value) var attribute = attributes[0] as JsonPropertyAttribute; if (attribute != null && attribute.PropertyName == value) { - return (DeploymentTransportType)field.GetValue(null); + return (DeploymentV1TransportType)field.GetValue(null); } } - throw new Exception($"Unknown value {value} for enum DeploymentTransportType"); + throw new Exception($"Unknown value {value} for enum DeploymentV1TransportType"); } } #pragma warning restore 0618 diff --git a/HathoraCloud/Models/Shared/DeploymentV2.cs b/HathoraCloud/Models/Shared/DeploymentV2.cs index ad6a954e..ca82aac8 100644 --- a/HathoraCloud/Models/Shared/DeploymentV2.cs +++ b/HathoraCloud/Models/Shared/DeploymentV2.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -48,9 +48,6 @@ public class DeploymentV2 [JsonProperty("createdAt")] public DateTime CreatedAt { get; set; } = default!; - /// - /// UserId or email address for the user that created the deployment. - /// [SerializeField] [JsonProperty("createdBy")] public string CreatedBy { get; set; } = default!; diff --git a/HathoraCloud/Models/Shared/DeploymentV2Env.cs b/HathoraCloud/Models/Shared/DeploymentV2Env.cs index 02a30fe6..372156a9 100644 --- a/HathoraCloud/Models/Shared/DeploymentV2Env.cs +++ b/HathoraCloud/Models/Shared/DeploymentV2Env.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/DeploymentV3.cs b/HathoraCloud/Models/Shared/DeploymentV3.cs new file mode 100644 index 00000000..64917828 --- /dev/null +++ b/HathoraCloud/Models/Shared/DeploymentV3.cs @@ -0,0 +1,115 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + using UnityEngine; + + [Serializable] + public class DeploymentV3 + { + + /// + /// Additional ports your server listens on. + /// + [SerializeField] + [JsonProperty("additionalContainerPorts")] + public List AdditionalContainerPorts { get; set; } = default!; + + /// + /// System generated unique identifier for an application. + /// + [SerializeField] + [JsonProperty("appId")] + public string AppId { get; set; } = default!; + + /// + /// System generated id for a build. Can also be user defined when creating a build. + /// + [SerializeField] + [JsonProperty("buildId")] + public string BuildId { get; set; } = default!; + + /// + /// Tag to associate an external version with a build. It is accessible via `GetBuildInfo()`. + /// + [SerializeField] + [JsonProperty("buildTag")] + public string? BuildTag { get; set; } + + /// + /// When the deployment was created. + /// + [SerializeField] + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("createdBy")] + public string CreatedBy { get; set; } = default!; + + /// + /// A container port object represents the transport configruations for how your server will listen. + /// + [SerializeField] + [JsonProperty("defaultContainerPort")] + public ContainerPort DefaultContainerPort { get; set; } = default!; + + /// + /// System generated id for a deployment. + /// + [SerializeField] + [JsonProperty("deploymentId")] + public string DeploymentId { get; set; } = default!; + + /// + /// The environment variable that our process will have access to at runtime. + /// + [SerializeField] + [JsonProperty("env")] + public List Env { get; set; } = default!; + + /// + /// Option to shut down processes that have had no new connections or rooms
+ /// + /// + /// for five minutes. + /// + ///
+ [SerializeField] + [JsonProperty("idleTimeoutEnabled")] + public bool IdleTimeoutEnabled { get; set; } = default!; + + /// + /// The number of cores allocated to your process. + /// + [SerializeField] + [JsonProperty("requestedCPU")] + public double RequestedCPU { get; set; } = default!; + + /// + /// The amount of memory allocated to your process. + /// + [SerializeField] + [JsonProperty("requestedMemoryMB")] + public double RequestedMemoryMB { get; set; } = default!; + + /// + /// Governs how many rooms can be scheduled in a process. + /// + [SerializeField] + [JsonProperty("roomsPerProcess")] + public int RoomsPerProcess { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/DeploymentV3Env.cs b/HathoraCloud/Models/Shared/DeploymentV3Env.cs new file mode 100644 index 00000000..277b6de8 --- /dev/null +++ b/HathoraCloud/Models/Shared/DeploymentV3Env.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using Newtonsoft.Json; + using System; + using UnityEngine; + + [Serializable] + public class DeploymentV3Env + { + + [SerializeField] + [JsonProperty("name")] + public string Name { get; set; } = default!; + + [SerializeField] + [JsonProperty("value")] + public string Value { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/DeploymentsV3Page.cs b/HathoraCloud/Models/Shared/DeploymentsV3Page.cs new file mode 100644 index 00000000..94b3b7ed --- /dev/null +++ b/HathoraCloud/Models/Shared/DeploymentsV3Page.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + using UnityEngine; + + [Serializable] + public class DeploymentsV3Page + { + + [SerializeField] + [JsonProperty("deployments")] + public List Deployments { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/Env.cs b/HathoraCloud/Models/Shared/Env.cs index 9fa4cecf..4555dbf0 100644 --- a/HathoraCloud/Models/Shared/Env.cs +++ b/HathoraCloud/Models/Shared/Env.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ExposedPort.cs b/HathoraCloud/Models/Shared/ExposedPort.cs index a598c0de..34ed21af 100644 --- a/HathoraCloud/Models/Shared/ExposedPort.cs +++ b/HathoraCloud/Models/Shared/ExposedPort.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/Google.cs b/HathoraCloud/Models/Shared/Google.cs index 0f6cae57..348cae4e 100644 --- a/HathoraCloud/Models/Shared/Google.cs +++ b/HathoraCloud/Models/Shared/Google.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/GoogleIdTokenObject.cs b/HathoraCloud/Models/Shared/GoogleIdTokenObject.cs index e0f20c57..7b073518 100644 --- a/HathoraCloud/Models/Shared/GoogleIdTokenObject.cs +++ b/HathoraCloud/Models/Shared/GoogleIdTokenObject.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/InviteStatusPendingType.cs b/HathoraCloud/Models/Shared/InviteStatusPendingType.cs deleted file mode 100644 index 13df6387..00000000 --- a/HathoraCloud/Models/Shared/InviteStatusPendingType.cs +++ /dev/null @@ -1,51 +0,0 @@ - -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace HathoraCloud.Models.Shared -{ - using Newtonsoft.Json; - using System; - using UnityEngine; - - public enum InviteStatusPendingType - { - [JsonProperty("pending")] - Pending, - } - - public static class InviteStatusPendingTypeExtension - { - public static string Value(this InviteStatusPendingType value) - { - return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); - } - - public static InviteStatusPendingType ToEnum(this string value) - { - foreach(var field in typeof(InviteStatusPendingType).GetFields()) - { - var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); - if (attributes.Length == 0) - { - continue; - } - - var attribute = attributes[0] as JsonPropertyAttribute; - if (attribute != null && attribute.PropertyName == value) - { - return (InviteStatusPendingType)field.GetValue(null); - } - } - - throw new Exception($"Unknown value {value} for enum InviteStatusPendingType"); - } - } - -} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/InviteStatusRejectedType.cs b/HathoraCloud/Models/Shared/InviteStatusRejectedType.cs deleted file mode 100644 index 81719509..00000000 --- a/HathoraCloud/Models/Shared/InviteStatusRejectedType.cs +++ /dev/null @@ -1,51 +0,0 @@ - -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace HathoraCloud.Models.Shared -{ - using Newtonsoft.Json; - using System; - using UnityEngine; - - public enum InviteStatusRejectedType - { - [JsonProperty("rejected")] - Rejected, - } - - public static class InviteStatusRejectedTypeExtension - { - public static string Value(this InviteStatusRejectedType value) - { - return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); - } - - public static InviteStatusRejectedType ToEnum(this string value) - { - foreach(var field in typeof(InviteStatusRejectedType).GetFields()) - { - var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); - if (attributes.Length == 0) - { - continue; - } - - var attribute = attributes[0] as JsonPropertyAttribute; - if (attribute != null && attribute.PropertyName == value) - { - return (InviteStatusRejectedType)field.GetValue(null); - } - } - - throw new Exception($"Unknown value {value} for enum InviteStatusRejectedType"); - } - } - -} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/InviteStatusRescindedType.cs b/HathoraCloud/Models/Shared/InviteStatusRescindedType.cs deleted file mode 100644 index 3ff48c53..00000000 --- a/HathoraCloud/Models/Shared/InviteStatusRescindedType.cs +++ /dev/null @@ -1,51 +0,0 @@ - -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace HathoraCloud.Models.Shared -{ - using Newtonsoft.Json; - using System; - using UnityEngine; - - public enum InviteStatusRescindedType - { - [JsonProperty("rescinded")] - Rescinded, - } - - public static class InviteStatusRescindedTypeExtension - { - public static string Value(this InviteStatusRescindedType value) - { - return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); - } - - public static InviteStatusRescindedType ToEnum(this string value) - { - foreach(var field in typeof(InviteStatusRescindedType).GetFields()) - { - var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); - if (attributes.Length == 0) - { - continue; - } - - var attribute = attributes[0] as JsonPropertyAttribute; - if (attribute != null && attribute.PropertyName == value) - { - return (InviteStatusRescindedType)field.GetValue(null); - } - } - - throw new Exception($"Unknown value {value} for enum InviteStatusRescindedType"); - } - } - -} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/Invoice.cs b/HathoraCloud/Models/Shared/Invoice.cs index 6f182512..4143ed79 100644 --- a/HathoraCloud/Models/Shared/Invoice.cs +++ b/HathoraCloud/Models/Shared/Invoice.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/InvoiceItem.cs b/HathoraCloud/Models/Shared/InvoiceItem.cs new file mode 100644 index 00000000..1eacc457 --- /dev/null +++ b/HathoraCloud/Models/Shared/InvoiceItem.cs @@ -0,0 +1,41 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using Newtonsoft.Json; + using System; + using UnityEngine; + + [Serializable] + public class InvoiceItem + { + + [SerializeField] + [JsonProperty("amount")] + public double Amount { get; set; } = default!; + + [SerializeField] + [JsonProperty("productName")] + public string ProductName { get; set; } = default!; + + [SerializeField] + [JsonProperty("quantity")] + public double Quantity { get; set; } = default!; + + [SerializeField] + [JsonProperty("unit")] + public string Unit { get; set; } = default!; + + [SerializeField] + [JsonProperty("unitPrice")] + public double UnitPrice { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/InvoiceItemPage.cs b/HathoraCloud/Models/Shared/InvoiceItemPage.cs new file mode 100644 index 00000000..999bf4ea --- /dev/null +++ b/HathoraCloud/Models/Shared/InvoiceItemPage.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + using UnityEngine; + + [Serializable] + public class InvoiceItemPage + { + + [SerializeField] + [JsonProperty("invoiceItems")] + public List InvoiceItems { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/InvoiceStatus.cs b/HathoraCloud/Models/Shared/InvoiceStatus.cs index 2090e30c..ef0a7454 100644 --- a/HathoraCloud/Models/Shared/InvoiceStatus.cs +++ b/HathoraCloud/Models/Shared/InvoiceStatus.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/LinkPaymentMethod.cs b/HathoraCloud/Models/Shared/LinkPaymentMethod.cs index f6279df3..d3a43908 100644 --- a/HathoraCloud/Models/Shared/LinkPaymentMethod.cs +++ b/HathoraCloud/Models/Shared/LinkPaymentMethod.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ListOrgTokens.cs b/HathoraCloud/Models/Shared/ListOrgTokens.cs index 99fa1bfc..1ff7a232 100644 --- a/HathoraCloud/Models/Shared/ListOrgTokens.cs +++ b/HathoraCloud/Models/Shared/ListOrgTokens.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/Lobby.cs b/HathoraCloud/Models/Shared/Lobby.cs index dcdc2d87..f7aea806 100644 --- a/HathoraCloud/Models/Shared/Lobby.cs +++ b/HathoraCloud/Models/Shared/Lobby.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -41,14 +41,14 @@ public class Lobby ///
[SerializeField] [JsonProperty("createdBy")] - public string CreatedBy { get; set; } = default!; + public CreatedBy CreatedBy { get; set; } = default!; /// /// User input to initialize the game state. Object must be smaller than 64KB. /// [SerializeField] [JsonProperty("initialConfig")] - public LobbyInitialConfig InitialConfig { get; set; } = default!; + public object InitialConfig { get; set; } = default!; [Obsolete("This field will be removed in a future release, please migrate away from it as soon as possible")] [SerializeField] @@ -79,7 +79,7 @@ public class Lobby ///
[SerializeField] [JsonProperty("state")] - public State? State { get; set; } + public object? State { get; set; } /// /// Types of lobbies a player can create.
diff --git a/HathoraCloud/Models/Shared/LobbyV3.cs b/HathoraCloud/Models/Shared/LobbyV3.cs index 46123c2f..255179e3 100644 --- a/HathoraCloud/Models/Shared/LobbyV3.cs +++ b/HathoraCloud/Models/Shared/LobbyV3.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -41,15 +41,15 @@ public class LobbyV3 ///
[SerializeField] [JsonProperty("createdBy")] - public string CreatedBy { get; set; } = default!; + public LobbyV3CreatedBy CreatedBy { get; set; } = default!; [SerializeField] [JsonProperty("region")] public Region Region { get; set; } = default!; [SerializeField] - [JsonProperty("roomConfig", NullValueHandling = NullValueHandling.Include)] - public string? RoomConfig { get; set; } = default!; + [JsonProperty("roomConfig")] + public string? RoomConfig { get; set; } /// /// Unique identifier to a game session or match. Use the default system generated ID or overwrite it with your own.
diff --git a/HathoraCloud/Models/Shared/LobbyV3CreatedBy.cs b/HathoraCloud/Models/Shared/LobbyV3CreatedBy.cs new file mode 100644 index 00000000..72c90d3d --- /dev/null +++ b/HathoraCloud/Models/Shared/LobbyV3CreatedBy.cs @@ -0,0 +1,149 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Utils; + using Newtonsoft.Json.Linq; + using Newtonsoft.Json; + using System.Numerics; + using System; + using UnityEngine; + + + public class LobbyV3CreatedByType + { + private LobbyV3CreatedByType(string value) { Value = value; } + + public string Value { get; private set; } + public static LobbyV3CreatedByType Str { get { return new LobbyV3CreatedByType("str"); } } + public static LobbyV3CreatedByType Number { get { return new LobbyV3CreatedByType("number"); } } + public static LobbyV3CreatedByType Null { get { return new LobbyV3CreatedByType("null"); } } + + public override string ToString() { return Value; } + public static implicit operator String(LobbyV3CreatedByType v) { return v.Value; } + public static LobbyV3CreatedByType FromString(string v) { + switch(v) { + case "str": return Str; + case "number": return Number; + case "null": return Null; + default: throw new ArgumentException("Invalid value for LobbyV3CreatedByType"); + } + } + public override bool Equals(object? obj) + { + if (obj == null || GetType() != obj.GetType()) + { + return false; + } + return Value.Equals(((LobbyV3CreatedByType)obj).Value); + } + + public override int GetHashCode() + { + return Value.GetHashCode(); + } + } + +/// +/// UserId or email address for the user that created the lobby. +/// + [JsonConverter(typeof(LobbyV3CreatedBy.LobbyV3CreatedByConverter))] + public class LobbyV3CreatedBy { + public LobbyV3CreatedBy(LobbyV3CreatedByType type) { + Type = type; + } + public string? Str { get; set; } + public double? Number { get; set; } + + public LobbyV3CreatedByType Type {get; set; } + + + public static LobbyV3CreatedBy CreateStr(string str) { + LobbyV3CreatedByType typ = LobbyV3CreatedByType.Str; + + LobbyV3CreatedBy res = new LobbyV3CreatedBy(typ); + res.Str = str; + return res; + } + + public static LobbyV3CreatedBy CreateNumber(double number) { + LobbyV3CreatedByType typ = LobbyV3CreatedByType.Number; + + LobbyV3CreatedBy res = new LobbyV3CreatedBy(typ); + res.Number = number; + return res; + } + + public static LobbyV3CreatedBy CreateNull() { + LobbyV3CreatedByType typ = LobbyV3CreatedByType.Null; + return new LobbyV3CreatedBy(typ); + } + + public class LobbyV3CreatedByConverter : JsonConverter + { + + public override bool CanConvert(System.Type objectType) => objectType == typeof(LobbyV3CreatedBy); + + public override bool CanRead => true; + + public override object? ReadJson(JsonReader reader, System.Type objectType, object? existingValue, JsonSerializer serializer) + { + var json = JRaw.Create(reader).ToString(); + + if (json == "null") { + return null; + } + if (json[0] == '"' && json[^1] == '"'){ + return new LobbyV3CreatedBy(LobbyV3CreatedByType.Str) { + Str = json[1..^1] + }; + } + try { + var converted = Convert.ToDouble(json); + return new LobbyV3CreatedBy(LobbyV3CreatedByType.Number) { + Number = converted + }; + } catch (System.FormatException) { + // try next option + } + + throw new InvalidOperationException("Could not deserialize into any supported types."); + } + + public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) + { + if (value == null) { + writer.WriteRawValue("null"); + return; + } + LobbyV3CreatedBy res = (LobbyV3CreatedBy)value; + if (LobbyV3CreatedByType.FromString(res.Type).Equals(LobbyV3CreatedByType.Null)) + { + writer.WriteRawValue("null"); + return; + } + if (res.Str != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Str)); + return; + } + if (res.Number != null) + { + writer.WriteRawValue(Utilities.SerializeJSON(res.Number)); + return; + } + + } + } + + } + +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/LobbyVisibility.cs b/HathoraCloud/Models/Shared/LobbyVisibility.cs index 916d37ee..6aaad8cb 100644 --- a/HathoraCloud/Models/Shared/LobbyVisibility.cs +++ b/HathoraCloud/Models/Shared/LobbyVisibility.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/MetricName.cs b/HathoraCloud/Models/Shared/MetricName.cs index 6defcf2b..3e028ed4 100644 --- a/HathoraCloud/Models/Shared/MetricName.cs +++ b/HathoraCloud/Models/Shared/MetricName.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/MetricValue.cs b/HathoraCloud/Models/Shared/MetricValue.cs index 21a2d0db..67e67122 100644 --- a/HathoraCloud/Models/Shared/MetricValue.cs +++ b/HathoraCloud/Models/Shared/MetricValue.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/MetricsData.cs b/HathoraCloud/Models/Shared/MetricsData.cs index f685e7cd..bf91b553 100644 --- a/HathoraCloud/Models/Shared/MetricsData.cs +++ b/HathoraCloud/Models/Shared/MetricsData.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -16,9 +16,6 @@ namespace HathoraCloud.Models.Shared using System; using UnityEngine; - /// - /// Construct a type with a set of properties K of type T - /// [Serializable] public class MetricsData { diff --git a/HathoraCloud/Models/Shared/NicknameObject.cs b/HathoraCloud/Models/Shared/NicknameObject.cs index a6383d5b..3e9b17e6 100644 --- a/HathoraCloud/Models/Shared/NicknameObject.cs +++ b/HathoraCloud/Models/Shared/NicknameObject.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/OrgPermission.cs b/HathoraCloud/Models/Shared/OrgMember.cs similarity index 72% rename from HathoraCloud/Models/Shared/OrgPermission.cs rename to HathoraCloud/Models/Shared/OrgMember.cs index 7d299392..10998542 100644 --- a/HathoraCloud/Models/Shared/OrgPermission.cs +++ b/HathoraCloud/Models/Shared/OrgMember.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -10,26 +10,30 @@ #nullable enable namespace HathoraCloud.Models.Shared { - using HathoraCloud.Models.Shared; using Newtonsoft.Json; using System; using UnityEngine; [Serializable] - public class OrgPermission + public class OrgMember { [SerializeField] [JsonProperty("createdAt")] public DateTime CreatedAt { get; set; } = default!; - /// - /// System generated unique identifier for a user. Not guaranteed to have a specific format. - /// [SerializeField] [JsonProperty("invitedBy")] public string InvitedBy { get; set; } = default!; + [SerializeField] + [JsonProperty("joinedAt")] + public DateTime JoinedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("lastLogin")] + public DateTime? LastLogin { get; set; } + /// /// System generated unique identifier for an organization. Not guaranteed to have a specific format. /// @@ -37,14 +41,9 @@ public class OrgPermission [JsonProperty("orgId")] public string OrgId { get; set; } = default!; - [SerializeField] - [JsonProperty("status")] - public OrganizationInviteStatus Status { get; set; } = default!; - - [SerializeField] - [JsonProperty("updatedAt")] - public DateTime UpdatedAt { get; set; } = default!; - + /// + /// A user's email. + /// [SerializeField] [JsonProperty("userEmail")] public string UserEmail { get; set; } = default!; diff --git a/HathoraCloud/Models/Shared/OrgMembersPage.cs b/HathoraCloud/Models/Shared/OrgMembersPage.cs new file mode 100644 index 00000000..5d335edc --- /dev/null +++ b/HathoraCloud/Models/Shared/OrgMembersPage.cs @@ -0,0 +1,27 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + using UnityEngine; + + [Serializable] + public class OrgMembersPage + { + + [SerializeField] + [JsonProperty("members")] + public List Members { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/OrgToken.cs b/HathoraCloud/Models/Shared/OrgToken.cs index 0d0cba63..e7334e95 100644 --- a/HathoraCloud/Models/Shared/OrgToken.cs +++ b/HathoraCloud/Models/Shared/OrgToken.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/OrgTokenStatus.cs b/HathoraCloud/Models/Shared/OrgTokenStatus.cs index 6d0f17c0..fe7891bd 100644 --- a/HathoraCloud/Models/Shared/OrgTokenStatus.cs +++ b/HathoraCloud/Models/Shared/OrgTokenStatus.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/InviteStatusRejected.cs b/HathoraCloud/Models/Shared/Organization.cs similarity index 51% rename from HathoraCloud/Models/Shared/InviteStatusRejected.cs rename to HathoraCloud/Models/Shared/Organization.cs index 43e7c520..606b229f 100644 --- a/HathoraCloud/Models/Shared/InviteStatusRejected.cs +++ b/HathoraCloud/Models/Shared/Organization.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -10,24 +10,27 @@ #nullable enable namespace HathoraCloud.Models.Shared { - using HathoraCloud.Models.Shared; using Newtonsoft.Json; using System; using UnityEngine; [Serializable] - public class InviteStatusRejected + public class Organization { [SerializeField] - [JsonProperty("type")] - public InviteStatusRejectedType Type { get; set; } = default!; + [JsonProperty("isSingleTenant")] + public bool IsSingleTenant { get; set; } = default!; /// - /// System generated unique identifier for a user. Not guaranteed to have a specific format. + /// System generated unique identifier for an organization. Not guaranteed to have a specific format. /// [SerializeField] - [JsonProperty("userId")] - public string UserId { get; set; } = default!; + [JsonProperty("orgId")] + public string OrgId { get; set; } = default!; + + [SerializeField] + [JsonProperty("stripeCustomerId")] + public string StripeCustomerId { get; set; } = default!; } } \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/OrganizationInviteStatus.cs b/HathoraCloud/Models/Shared/OrganizationInviteStatus.cs deleted file mode 100644 index d394584d..00000000 --- a/HathoraCloud/Models/Shared/OrganizationInviteStatus.cs +++ /dev/null @@ -1,219 +0,0 @@ - -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace HathoraCloud.Models.Shared -{ - using HathoraCloud.Models.Shared; - using HathoraCloud.Utils; - using Newtonsoft.Json.Linq; - using Newtonsoft.Json; - using System.Numerics; - using System; - using UnityEngine; - - - public class OrganizationInviteStatusType - { - private OrganizationInviteStatusType(string value) { Value = value; } - - public string Value { get; private set; } - public static OrganizationInviteStatusType InviteStatusPending { get { return new OrganizationInviteStatusType("InviteStatusPending"); } } - public static OrganizationInviteStatusType InviteStatusAccepted { get { return new OrganizationInviteStatusType("InviteStatusAccepted"); } } - public static OrganizationInviteStatusType InviteStatusRejected { get { return new OrganizationInviteStatusType("InviteStatusRejected"); } } - public static OrganizationInviteStatusType InviteStatusRescinded { get { return new OrganizationInviteStatusType("InviteStatusRescinded"); } } - public static OrganizationInviteStatusType Null { get { return new OrganizationInviteStatusType("null"); } } - - public override string ToString() { return Value; } - public static implicit operator String(OrganizationInviteStatusType v) { return v.Value; } - public static OrganizationInviteStatusType FromString(string v) { - switch(v) { - case "InviteStatusPending": return InviteStatusPending; - case "InviteStatusAccepted": return InviteStatusAccepted; - case "InviteStatusRejected": return InviteStatusRejected; - case "InviteStatusRescinded": return InviteStatusRescinded; - case "null": return Null; - default: throw new ArgumentException("Invalid value for OrganizationInviteStatusType"); - } - } - public override bool Equals(object? obj) - { - if (obj == null || GetType() != obj.GetType()) - { - return false; - } - return Value.Equals(((OrganizationInviteStatusType)obj).Value); - } - - public override int GetHashCode() - { - return Value.GetHashCode(); - } - } - - - [JsonConverter(typeof(OrganizationInviteStatus.OrganizationInviteStatusConverter))] - public class OrganizationInviteStatus { - public OrganizationInviteStatus(OrganizationInviteStatusType type) { - Type = type; - } - public InviteStatusPending? InviteStatusPending { get; set; } - public InviteStatusAccepted? InviteStatusAccepted { get; set; } - public InviteStatusRejected? InviteStatusRejected { get; set; } - public InviteStatusRescinded? InviteStatusRescinded { get; set; } - - public OrganizationInviteStatusType Type {get; set; } - - - public static OrganizationInviteStatus CreateInviteStatusPending(InviteStatusPending inviteStatusPending) { - OrganizationInviteStatusType typ = OrganizationInviteStatusType.InviteStatusPending; - - OrganizationInviteStatus res = new OrganizationInviteStatus(typ); - res.InviteStatusPending = inviteStatusPending; - return res; - } - - public static OrganizationInviteStatus CreateInviteStatusAccepted(InviteStatusAccepted inviteStatusAccepted) { - OrganizationInviteStatusType typ = OrganizationInviteStatusType.InviteStatusAccepted; - - OrganizationInviteStatus res = new OrganizationInviteStatus(typ); - res.InviteStatusAccepted = inviteStatusAccepted; - return res; - } - - public static OrganizationInviteStatus CreateInviteStatusRejected(InviteStatusRejected inviteStatusRejected) { - OrganizationInviteStatusType typ = OrganizationInviteStatusType.InviteStatusRejected; - - OrganizationInviteStatus res = new OrganizationInviteStatus(typ); - res.InviteStatusRejected = inviteStatusRejected; - return res; - } - - public static OrganizationInviteStatus CreateInviteStatusRescinded(InviteStatusRescinded inviteStatusRescinded) { - OrganizationInviteStatusType typ = OrganizationInviteStatusType.InviteStatusRescinded; - - OrganizationInviteStatus res = new OrganizationInviteStatus(typ); - res.InviteStatusRescinded = inviteStatusRescinded; - return res; - } - - public static OrganizationInviteStatus CreateNull() { - OrganizationInviteStatusType typ = OrganizationInviteStatusType.Null; - return new OrganizationInviteStatus(typ); - } - - public class OrganizationInviteStatusConverter : JsonConverter - { - - public override bool CanConvert(System.Type objectType) => objectType == typeof(OrganizationInviteStatus); - - public override bool CanRead => true; - - public override object? ReadJson(JsonReader reader, System.Type objectType, object? existingValue, JsonSerializer serializer) - { - var json = JRaw.Create(reader).ToString(); - - if (json == "null") { - return null; - } - try - { - InviteStatusPending? inviteStatusPending = JsonConvert.DeserializeObject(json, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, MissingMemberHandling = MissingMemberHandling.Error, Converters = Utilities.GetJsonDeserializers(typeof(InviteStatusPending))}); - return new OrganizationInviteStatus(OrganizationInviteStatusType.InviteStatusPending) { - InviteStatusPending = inviteStatusPending - }; - } - catch (Exception ex) - { - if (!(ex is Newtonsoft.Json.JsonReaderException || ex is Newtonsoft.Json.JsonSerializationException)) { - throw ex; - } - } - try - { - InviteStatusAccepted? inviteStatusAccepted = JsonConvert.DeserializeObject(json, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, MissingMemberHandling = MissingMemberHandling.Error, Converters = Utilities.GetJsonDeserializers(typeof(InviteStatusAccepted))}); - return new OrganizationInviteStatus(OrganizationInviteStatusType.InviteStatusAccepted) { - InviteStatusAccepted = inviteStatusAccepted - }; - } - catch (Exception ex) - { - if (!(ex is Newtonsoft.Json.JsonReaderException || ex is Newtonsoft.Json.JsonSerializationException)) { - throw ex; - } - } - try - { - InviteStatusRejected? inviteStatusRejected = JsonConvert.DeserializeObject(json, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, MissingMemberHandling = MissingMemberHandling.Error, Converters = Utilities.GetJsonDeserializers(typeof(InviteStatusRejected))}); - return new OrganizationInviteStatus(OrganizationInviteStatusType.InviteStatusRejected) { - InviteStatusRejected = inviteStatusRejected - }; - } - catch (Exception ex) - { - if (!(ex is Newtonsoft.Json.JsonReaderException || ex is Newtonsoft.Json.JsonSerializationException)) { - throw ex; - } - } - try - { - InviteStatusRescinded? inviteStatusRescinded = JsonConvert.DeserializeObject(json, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, MissingMemberHandling = MissingMemberHandling.Error, Converters = Utilities.GetJsonDeserializers(typeof(InviteStatusRescinded))}); - return new OrganizationInviteStatus(OrganizationInviteStatusType.InviteStatusRescinded) { - InviteStatusRescinded = inviteStatusRescinded - }; - } - catch (Exception ex) - { - if (!(ex is Newtonsoft.Json.JsonReaderException || ex is Newtonsoft.Json.JsonSerializationException)) { - throw ex; - } - } - - throw new InvalidOperationException("Could not deserialize into any supported types."); - } - - public override void WriteJson(JsonWriter writer, object? value, JsonSerializer serializer) - { - if (value == null) { - writer.WriteRawValue("null"); - return; - } - OrganizationInviteStatus res = (OrganizationInviteStatus)value; - if (OrganizationInviteStatusType.FromString(res.Type).Equals(OrganizationInviteStatusType.Null)) - { - writer.WriteRawValue("null"); - return; - } - if (res.InviteStatusPending != null) - { - writer.WriteRawValue(Utilities.SerializeJSON(res.InviteStatusPending)); - return; - } - if (res.InviteStatusAccepted != null) - { - writer.WriteRawValue(Utilities.SerializeJSON(res.InviteStatusAccepted)); - return; - } - if (res.InviteStatusRejected != null) - { - writer.WriteRawValue(Utilities.SerializeJSON(res.InviteStatusRejected)); - return; - } - if (res.InviteStatusRescinded != null) - { - writer.WriteRawValue(Utilities.SerializeJSON(res.InviteStatusRescinded)); - return; - } - - } - } - - } - -} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/InviteStatusPending.cs b/HathoraCloud/Models/Shared/OrgsPage.cs similarity index 69% rename from HathoraCloud/Models/Shared/InviteStatusPending.cs rename to HathoraCloud/Models/Shared/OrgsPage.cs index f22cb9c3..dfdd9d5a 100644 --- a/HathoraCloud/Models/Shared/InviteStatusPending.cs +++ b/HathoraCloud/Models/Shared/OrgsPage.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -12,15 +12,16 @@ namespace HathoraCloud.Models.Shared { using HathoraCloud.Models.Shared; using Newtonsoft.Json; + using System.Collections.Generic; using System; using UnityEngine; [Serializable] - public class InviteStatusPending + public class OrgsPage { [SerializeField] - [JsonProperty("type")] - public InviteStatusPendingType Type { get; set; } = default!; + [JsonProperty("orgs")] + public List Orgs { get; set; } = default!; } } \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/PaymentMethod.cs b/HathoraCloud/Models/Shared/PaymentMethod.cs index e29c9741..594ad968 100644 --- a/HathoraCloud/Models/Shared/PaymentMethod.cs +++ b/HathoraCloud/Models/Shared/PaymentMethod.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/PendingOrgInvite.cs b/HathoraCloud/Models/Shared/PendingOrgInvite.cs new file mode 100644 index 00000000..064e1028 --- /dev/null +++ b/HathoraCloud/Models/Shared/PendingOrgInvite.cs @@ -0,0 +1,43 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using Newtonsoft.Json; + using System; + using UnityEngine; + + [Serializable] + public class PendingOrgInvite + { + + [SerializeField] + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("invitedBy")] + public string InvitedBy { get; set; } = default!; + + /// + /// System generated unique identifier for an organization. Not guaranteed to have a specific format. + /// + [SerializeField] + [JsonProperty("orgId")] + public string OrgId { get; set; } = default!; + + /// + /// A user's email. + /// + [SerializeField] + [JsonProperty("userEmail")] + public string UserEmail { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/OrgInvitesPage.cs b/HathoraCloud/Models/Shared/PendingOrgInvitesPage.cs similarity index 76% rename from HathoraCloud/Models/Shared/OrgInvitesPage.cs rename to HathoraCloud/Models/Shared/PendingOrgInvitesPage.cs index 2704e748..cc25d0b9 100644 --- a/HathoraCloud/Models/Shared/OrgInvitesPage.cs +++ b/HathoraCloud/Models/Shared/PendingOrgInvitesPage.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -17,11 +17,11 @@ namespace HathoraCloud.Models.Shared using UnityEngine; [Serializable] - public class OrgInvitesPage + public class PendingOrgInvitesPage { [SerializeField] [JsonProperty("invites")] - public List Invites { get; set; } = default!; + public List Invites { get; set; } = default!; } } \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/PingEndpoints.cs b/HathoraCloud/Models/Shared/PingEndpoints.cs index 59aad915..e40cb801 100644 --- a/HathoraCloud/Models/Shared/PingEndpoints.cs +++ b/HathoraCloud/Models/Shared/PingEndpoints.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/PlanName.cs b/HathoraCloud/Models/Shared/PlanName.cs index 7fcf54d7..e74cb460 100644 --- a/HathoraCloud/Models/Shared/PlanName.cs +++ b/HathoraCloud/Models/Shared/PlanName.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/PlayerTokenObject.cs b/HathoraCloud/Models/Shared/PlayerTokenObject.cs index daacc8a1..c058c6d2 100644 --- a/HathoraCloud/Models/Shared/PlayerTokenObject.cs +++ b/HathoraCloud/Models/Shared/PlayerTokenObject.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/Process.cs b/HathoraCloud/Models/Shared/Process.cs index 54b71d2f..26398cd6 100644 --- a/HathoraCloud/Models/Shared/Process.cs +++ b/HathoraCloud/Models/Shared/Process.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ProcessExposedPort.cs b/HathoraCloud/Models/Shared/ProcessExposedPort.cs index 3214f731..b2609045 100644 --- a/HathoraCloud/Models/Shared/ProcessExposedPort.cs +++ b/HathoraCloud/Models/Shared/ProcessExposedPort.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ProcessStatus.cs b/HathoraCloud/Models/Shared/ProcessStatus.cs index 5d3631df..cb820409 100644 --- a/HathoraCloud/Models/Shared/ProcessStatus.cs +++ b/HathoraCloud/Models/Shared/ProcessStatus.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ProcessV2.cs b/HathoraCloud/Models/Shared/ProcessV2.cs index 7cc06638..8c20f709 100644 --- a/HathoraCloud/Models/Shared/ProcessV2.cs +++ b/HathoraCloud/Models/Shared/ProcessV2.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ProcessV2ExposedPort.cs b/HathoraCloud/Models/Shared/ProcessV2ExposedPort.cs index 32c7dcbe..7c8fc061 100644 --- a/HathoraCloud/Models/Shared/ProcessV2ExposedPort.cs +++ b/HathoraCloud/Models/Shared/ProcessV2ExposedPort.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ProcessV3.cs b/HathoraCloud/Models/Shared/ProcessV3.cs new file mode 100644 index 00000000..f4008096 --- /dev/null +++ b/HathoraCloud/Models/Shared/ProcessV3.cs @@ -0,0 +1,102 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System.Collections.Generic; + using System; + using UnityEngine; + + [Serializable] + public class ProcessV3 + { + + [SerializeField] + [JsonProperty("additionalExposedPorts")] + public List AdditionalExposedPorts { get; set; } = default!; + + /// + /// System generated unique identifier for an application. + /// + [SerializeField] + [JsonProperty("appId")] + public string AppId { get; set; } = default!; + + /// + /// When the process started being provisioned. + /// + [SerializeField] + [JsonProperty("createdAt")] + public DateTime CreatedAt { get; set; } = default!; + + /// + /// System generated id for a deployment. + /// + [SerializeField] + [JsonProperty("deploymentId")] + public string DeploymentId { get; set; } = default!; + + [SerializeField] + [JsonProperty("exposedPort", NullValueHandling = NullValueHandling.Include)] + public ProcessV3ExposedPort? ExposedPort { get; set; } = default!; + + /// + /// System generated unique identifier to a runtime instance of your game server. + /// + [SerializeField] + [JsonProperty("processId")] + public string ProcessId { get; set; } = default!; + + [SerializeField] + [JsonProperty("region")] + public Region Region { get; set; } = default!; + + /// + /// Tracks the number of rooms that have been allocated to the process. + /// + [SerializeField] + [JsonProperty("roomsAllocated")] + public int RoomsAllocated { get; set; } = default!; + + /// + /// Governs how many rooms can be scheduled in a process. + /// + [SerializeField] + [JsonProperty("roomsPerProcess")] + public int RoomsPerProcess { get; set; } = default!; + + /// + /// When the process bound to the specified port. We use this to determine when we should start billing. + /// + [SerializeField] + [JsonProperty("startedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? StartedAt { get; set; } = default!; + + [SerializeField] + [JsonProperty("status")] + public ProcessStatus Status { get; set; } = default!; + + /// + /// When the process is issued to stop. We use this to determine when we should stop billing. + /// + [SerializeField] + [JsonProperty("stoppingAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? StoppingAt { get; set; } = default!; + + /// + /// When the process has been terminated. + /// + [SerializeField] + [JsonProperty("terminatedAt", NullValueHandling = NullValueHandling.Include)] + public DateTime? TerminatedAt { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/ProcessV3ExposedPort.cs b/HathoraCloud/Models/Shared/ProcessV3ExposedPort.cs new file mode 100644 index 00000000..800fb113 --- /dev/null +++ b/HathoraCloud/Models/Shared/ProcessV3ExposedPort.cs @@ -0,0 +1,44 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using HathoraCloud.Models.Shared; + using Newtonsoft.Json; + using System; + using UnityEngine; + + /// + /// Connection details for an active process. + /// + [Serializable] + public class ProcessV3ExposedPort + { + + [SerializeField] + [JsonProperty("host")] + public string Host { get; set; } = default!; + + [SerializeField] + [JsonProperty("name")] + public string Name { get; set; } = default!; + + [SerializeField] + [JsonProperty("port")] + public int Port { get; set; } = default!; + + /// + /// Transport type specifies the underlying communication protocol to the exposed port. + /// + [SerializeField] + [JsonProperty("transportType")] + public TransportType TransportType { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/ProcessWithRooms.cs b/HathoraCloud/Models/Shared/ProcessWithRooms.cs index 4917ace0..67c77e4a 100644 --- a/HathoraCloud/Models/Shared/ProcessWithRooms.cs +++ b/HathoraCloud/Models/Shared/ProcessWithRooms.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/ProcessWithRoomsExposedPort.cs b/HathoraCloud/Models/Shared/ProcessWithRoomsExposedPort.cs index 0a12d44e..e7254185 100644 --- a/HathoraCloud/Models/Shared/ProcessWithRoomsExposedPort.cs +++ b/HathoraCloud/Models/Shared/ProcessWithRoomsExposedPort.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/RecordStringNever.cs b/HathoraCloud/Models/Shared/RecordStringNever.cs index c983f248..0322e17a 100644 --- a/HathoraCloud/Models/Shared/RecordStringNever.cs +++ b/HathoraCloud/Models/Shared/RecordStringNever.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/Region.cs b/HathoraCloud/Models/Shared/Region.cs index 1be629c4..8f219e57 100644 --- a/HathoraCloud/Models/Shared/Region.cs +++ b/HathoraCloud/Models/Shared/Region.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/RegionalContainerTags.cs b/HathoraCloud/Models/Shared/RegionalContainerTags.cs index 26f85f55..6445273a 100644 --- a/HathoraCloud/Models/Shared/RegionalContainerTags.cs +++ b/HathoraCloud/Models/Shared/RegionalContainerTags.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/RescindUserInvite.cs b/HathoraCloud/Models/Shared/RescindUserInvite.cs index bb9eeee3..139c3b73 100644 --- a/HathoraCloud/Models/Shared/RescindUserInvite.cs +++ b/HathoraCloud/Models/Shared/RescindUserInvite.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -18,6 +18,9 @@ namespace HathoraCloud.Models.Shared public class RescindUserInvite { + /// + /// A user's email. + /// [SerializeField] [JsonProperty("userEmail")] public string UserEmail { get; set; } = default!; diff --git a/HathoraCloud/Models/Shared/Room.cs b/HathoraCloud/Models/Shared/Room.cs index b2bdab4f..8ca10ca4 100644 --- a/HathoraCloud/Models/Shared/Room.cs +++ b/HathoraCloud/Models/Shared/Room.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -39,8 +39,8 @@ public class Room public CurrentAllocation? CurrentAllocation { get; set; } = default!; [SerializeField] - [JsonProperty("roomConfig", NullValueHandling = NullValueHandling.Include)] - public string? RoomConfig { get; set; } = default!; + [JsonProperty("roomConfig")] + public string? RoomConfig { get; set; } /// /// Unique identifier to a game session or match. Use the default system generated ID or overwrite it with your own.
@@ -62,8 +62,6 @@ public class Room ///
/// `active`: ready to accept connections
///
- /// `suspended`: room is unallocated from the process but can be rescheduled later with the same `roomId`
- ///
/// `destroyed`: all associated metadata is deleted /// ///
diff --git a/HathoraCloud/Models/Shared/RoomAllocation.cs b/HathoraCloud/Models/Shared/RoomAllocation.cs index f188944a..66543a9d 100644 --- a/HathoraCloud/Models/Shared/RoomAllocation.cs +++ b/HathoraCloud/Models/Shared/RoomAllocation.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/RoomConnectionData.cs b/HathoraCloud/Models/Shared/RoomConnectionData.cs index bbdf1473..3404b4d6 100644 --- a/HathoraCloud/Models/Shared/RoomConnectionData.cs +++ b/HathoraCloud/Models/Shared/RoomConnectionData.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/RoomReadyStatus.cs b/HathoraCloud/Models/Shared/RoomReadyStatus.cs index ed44993d..32fa1e0a 100644 --- a/HathoraCloud/Models/Shared/RoomReadyStatus.cs +++ b/HathoraCloud/Models/Shared/RoomReadyStatus.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/RoomStatus.cs b/HathoraCloud/Models/Shared/RoomStatus.cs index d37ff3c3..50d9fce0 100644 --- a/HathoraCloud/Models/Shared/RoomStatus.cs +++ b/HathoraCloud/Models/Shared/RoomStatus.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -23,8 +23,6 @@ namespace HathoraCloud.Models.Shared ///
/// `active`: ready to accept connections
///
- /// `suspended`: room is unallocated from the process but can be rescheduled later with the same `roomId`
- ///
/// `destroyed`: all associated metadata is deleted /// ///
@@ -34,8 +32,6 @@ public enum RoomStatus Scheduling, [JsonProperty("active")] Active, - [JsonProperty("suspended")] - Suspended, [JsonProperty("destroyed")] Destroyed, } diff --git a/HathoraCloud/Models/Shared/RoomWithoutAllocations.cs b/HathoraCloud/Models/Shared/RoomWithoutAllocations.cs index c27921b0..df00a7c3 100644 --- a/HathoraCloud/Models/Shared/RoomWithoutAllocations.cs +++ b/HathoraCloud/Models/Shared/RoomWithoutAllocations.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -15,9 +15,6 @@ namespace HathoraCloud.Models.Shared using System; using UnityEngine; - /// - /// From T, pick a set of properties whose keys are in the union K - /// [Serializable] public class RoomWithoutAllocations { @@ -34,8 +31,8 @@ public class RoomWithoutAllocations public RoomWithoutAllocationsCurrentAllocation? CurrentAllocation { get; set; } = default!; [SerializeField] - [JsonProperty("roomConfig", NullValueHandling = NullValueHandling.Include)] - public string? RoomConfig { get; set; } = default!; + [JsonProperty("roomConfig")] + public string? RoomConfig { get; set; } /// /// Unique identifier to a game session or match. Use the default system generated ID or overwrite it with your own.
@@ -57,8 +54,6 @@ public class RoomWithoutAllocations ///
/// `active`: ready to accept connections
///
- /// `suspended`: room is unallocated from the process but can be rescheduled later with the same `roomId`
- ///
/// `destroyed`: all associated metadata is deleted /// ///
diff --git a/HathoraCloud/Models/Shared/RoomWithoutAllocationsCurrentAllocation.cs b/HathoraCloud/Models/Shared/RoomWithoutAllocationsCurrentAllocation.cs index 96030d7f..1041e5f8 100644 --- a/HathoraCloud/Models/Shared/RoomWithoutAllocationsCurrentAllocation.cs +++ b/HathoraCloud/Models/Shared/RoomWithoutAllocationsCurrentAllocation.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/Security.cs b/HathoraCloud/Models/Shared/Security.cs index 3e41148b..23333752 100644 --- a/HathoraCloud/Models/Shared/Security.cs +++ b/HathoraCloud/Models/Shared/Security.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/SetLobbyStateParams.cs b/HathoraCloud/Models/Shared/SetLobbyStateParams.cs index 417a8eb7..0c205261 100644 --- a/HathoraCloud/Models/Shared/SetLobbyStateParams.cs +++ b/HathoraCloud/Models/Shared/SetLobbyStateParams.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -10,7 +10,6 @@ #nullable enable namespace HathoraCloud.Models.Shared { - using HathoraCloud.Models.Shared; using Newtonsoft.Json; using System; using UnityEngine; @@ -24,6 +23,6 @@ public class SetLobbyStateParams ///
[SerializeField] [JsonProperty("state")] - public SetLobbyStateParamsState State { get; set; } = default!; + public object State { get; set; } = default!; } } \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/SetLobbyStateParamsState.cs b/HathoraCloud/Models/Shared/SetLobbyStateParamsState.cs deleted file mode 100644 index 1fd995d3..00000000 --- a/HathoraCloud/Models/Shared/SetLobbyStateParamsState.cs +++ /dev/null @@ -1,23 +0,0 @@ - -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace HathoraCloud.Models.Shared -{ - using System; - using UnityEngine; - - /// - /// JSON blob to store metadata for a room. Must be smaller than 1MB. - /// - [Serializable] - public class SetLobbyStateParamsState - { - } -} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/StartingConnectionInfo.cs b/HathoraCloud/Models/Shared/StartingConnectionInfo.cs index d3e221d7..a219349f 100644 --- a/HathoraCloud/Models/Shared/StartingConnectionInfo.cs +++ b/HathoraCloud/Models/Shared/StartingConnectionInfo.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/StartingConnectionInfoStatus.cs b/HathoraCloud/Models/Shared/StartingConnectionInfoStatus.cs index b2e51bd2..bb271da9 100644 --- a/HathoraCloud/Models/Shared/StartingConnectionInfoStatus.cs +++ b/HathoraCloud/Models/Shared/StartingConnectionInfoStatus.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/Status.cs b/HathoraCloud/Models/Shared/Status.cs index b3660451..c79b6123 100644 --- a/HathoraCloud/Models/Shared/Status.cs +++ b/HathoraCloud/Models/Shared/Status.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/TransportType.cs b/HathoraCloud/Models/Shared/TransportType.cs index 43b53280..d599c855 100644 --- a/HathoraCloud/Models/Shared/TransportType.cs +++ b/HathoraCloud/Models/Shared/TransportType.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/Type.cs b/HathoraCloud/Models/Shared/Type.cs deleted file mode 100644 index a70ec082..00000000 --- a/HathoraCloud/Models/Shared/Type.cs +++ /dev/null @@ -1,51 +0,0 @@ - -//------------------------------------------------------------------------------ -// -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. -// -// Changes to this file may cause incorrect behavior and will be lost when -// the code is regenerated. -// -//------------------------------------------------------------------------------ -#nullable enable -namespace HathoraCloud.Models.Shared -{ - using Newtonsoft.Json; - using System; - using UnityEngine; - - public enum Type - { - [JsonProperty("accepted")] - Accepted, - } - - public static class TypeExtension - { - public static string Value(this Type value) - { - return ((JsonPropertyAttribute)value.GetType().GetMember(value.ToString())[0].GetCustomAttributes(typeof(JsonPropertyAttribute), false)[0]).PropertyName ?? value.ToString(); - } - - public static Type ToEnum(this string value) - { - foreach(var field in typeof(Type).GetFields()) - { - var attributes = field.GetCustomAttributes(typeof(JsonPropertyAttribute), false); - if (attributes.Length == 0) - { - continue; - } - - var attribute = attributes[0] as JsonPropertyAttribute; - if (attribute != null && attribute.PropertyName == value) - { - return (Type)field.GetValue(null); - } - } - - throw new Exception($"Unknown value {value} for enum Type"); - } - } - -} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/UpdateRoomConfigParams.cs b/HathoraCloud/Models/Shared/UpdateRoomConfigParams.cs index 43d9b799..f414a520 100644 --- a/HathoraCloud/Models/Shared/UpdateRoomConfigParams.cs +++ b/HathoraCloud/Models/Shared/UpdateRoomConfigParams.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/UploadBodyParams.cs b/HathoraCloud/Models/Shared/UploadBodyParams.cs new file mode 100644 index 00000000..163ac734 --- /dev/null +++ b/HathoraCloud/Models/Shared/UploadBodyParams.cs @@ -0,0 +1,29 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud.Models.Shared +{ + using Newtonsoft.Json; + using System; + using UnityEngine; + + [Serializable] + public class UploadBodyParams + { + + [SerializeField] + [JsonProperty("key")] + public string Key { get; set; } = default!; + + [SerializeField] + [JsonProperty("value")] + public string Value { get; set; } = default!; + } +} \ No newline at end of file diff --git a/HathoraCloud/Models/Shared/VerificationEmailRequest.cs b/HathoraCloud/Models/Shared/VerificationEmailRequest.cs index 1f784523..d0db4db1 100644 --- a/HathoraCloud/Models/Shared/VerificationEmailRequest.cs +++ b/HathoraCloud/Models/Shared/VerificationEmailRequest.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Models/Shared/VerificationEmailSuccess.cs b/HathoraCloud/Models/Shared/VerificationEmailSuccess.cs index e57f19ef..2d328303 100644 --- a/HathoraCloud/Models/Shared/VerificationEmailSuccess.cs +++ b/HathoraCloud/Models/Shared/VerificationEmailSuccess.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/OrganizationsV1.cs b/HathoraCloud/OrganizationsV1.cs index 5a827946..b5060754 100644 --- a/HathoraCloud/OrganizationsV1.cs +++ b/HathoraCloud/OrganizationsV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -24,7 +24,13 @@ namespace HathoraCloud public interface IOrganizationsV1 { Task AcceptInviteAsync(AcceptInviteRequest request); + Task GetOrgMembersAsync(GetOrgMembersRequest request); Task GetOrgPendingInvitesAsync(GetOrgPendingInvitesRequest request); + + /// + /// Returns an unsorted list of all organizations that you are a member of (an accepted membership invite). An organization is uniquely identified by an `orgId`. + /// + Task GetOrgsAsync(); Task GetUserPendingInvitesAsync(); Task InviteUserAsync(InviteUserRequest request); Task RejectInviteAsync(RejectInviteRequest request); @@ -35,10 +41,10 @@ public class OrganizationsV1: IOrganizationsV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; @@ -126,6 +132,88 @@ public async Task AcceptInviteAsync(AcceptInviteRequest re + public async Task GetOrgMembersAsync(GetOrgMembersRequest request) + { + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/orgs/v1/{orgId}/members", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetOrgMembersResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.OrgMembersPage = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + public async Task GetOrgPendingInvitesAsync(GetOrgPendingInvitesRequest request) { string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); @@ -174,8 +262,8 @@ public async Task GetOrgPendingInvitesAsync(GetOrg { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.OrgInvitesPage = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.PendingOrgInvitesPage = obj; } else { @@ -208,6 +296,88 @@ public async Task GetOrgPendingInvitesAsync(GetOrg + public async Task GetOrgsAsync() + { + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = baseUrl + "/orgs/v1"; + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetOrgsResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.OrgsPage = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + public async Task GetUserPendingInvitesAsync() { string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); @@ -256,8 +426,8 @@ public async Task GetUserPendingInvitesAsync() { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.OrgInvitesPage = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.PendingOrgInvitesPage = obj; } else { @@ -345,8 +515,8 @@ public async Task InviteUserAsync(InviteUserRequest request) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { - var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); - response.OrgPermission = obj; + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.PendingOrgInvite = obj; } else { @@ -506,7 +676,7 @@ public async Task RescindInviteAsync(RescindInviteRequest if (httpCode == 204) { } - else if (new List{401, 404, 429, 500}.Contains(httpCode)) + else if (new List{401, 404, 422, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/ProcessesV1.cs b/HathoraCloud/ProcessesV1.cs index b9a1df7b..d44de076 100644 --- a/HathoraCloud/ProcessesV1.cs +++ b/HathoraCloud/ProcessesV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -50,10 +50,10 @@ public class ProcessesV1: IProcessesV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; @@ -130,7 +130,7 @@ public async Task GetProcessInfoDeprecatedAsyn throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404, 500}.Contains(httpCode)) + else if (new List{401, 404, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -218,7 +218,7 @@ public async Task GetRunningProcessesAsync(GetRunni throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -306,7 +306,7 @@ public async Task GetStoppedProcessesAsync(GetStopp throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/ProcessesV2.cs b/HathoraCloud/ProcessesV2.cs index a0846ed3..97eb1547 100644 --- a/HathoraCloud/ProcessesV2.cs +++ b/HathoraCloud/ProcessesV2.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -30,22 +30,27 @@ public interface IProcessesV2 /// /// Creates a process without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via CreateRoom() can be instant. /// - Task CreateProcessAsync(CreateProcessRequest request); + Task CreateProcessV2DeprecatedAsync(CreateProcessV2DeprecatedRequest request); /// /// Retrieve the 10 most recent processes objects for an application. Filter the array by optionally passing in a `status` or `region`. /// - Task GetLatestProcessesAsync(GetLatestProcessesRequest request); + Task GetLatestProcessesV2DeprecatedAsync(GetLatestProcessesV2DeprecatedRequest request); /// /// Get details for a process. /// - Task GetProcessInfoAsync(GetProcessInfoRequest request); + Task GetProcessInfoV2DeprecatedAsync(GetProcessInfoV2DeprecatedRequest request); + + /// + /// Count the number of processes objects for an application. Filter by optionally passing in a `status` or `region`. + /// + Task GetProcessesCountExperimentalV2DeprecatedAsync(GetProcessesCountExperimentalV2DeprecatedRequest request); /// /// Stops a process immediately. /// - Task StopProcessAsync(StopProcessRequest request); + Task StopProcessV2DeprecatedAsync(StopProcessV2DeprecatedRequest request); } /// @@ -55,10 +60,10 @@ public class ProcessesV2: IProcessesV2 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; @@ -73,11 +78,11 @@ public ProcessesV2(ISpeakeasyHttpClient defaultClient, Func? securityS - public async Task CreateProcessAsync(CreateProcessRequest request) + public async Task CreateProcessV2DeprecatedAsync(CreateProcessV2DeprecatedRequest request) { if (request == null) { - request = new CreateProcessRequest(); + request = new CreateProcessV2DeprecatedRequest(); } request.AppId ??= SDKConfiguration.AppId; @@ -117,7 +122,7 @@ public async Task CreateProcessAsync(CreateProcessRequest contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; } int httpCode = errorCode ?? (int)httpResponse.responseCode; - var response = new CreateProcessResponse + var response = new CreateProcessV2DeprecatedResponse { StatusCode = httpCode, ContentType = contentType, @@ -135,7 +140,7 @@ public async Task CreateProcessAsync(CreateProcessRequest throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 402, 404, 500}.Contains(httpCode)) + else if (new List{401, 402, 404, 422, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -161,11 +166,11 @@ public async Task CreateProcessAsync(CreateProcessRequest - public async Task GetLatestProcessesAsync(GetLatestProcessesRequest request) + public async Task GetLatestProcessesV2DeprecatedAsync(GetLatestProcessesV2DeprecatedRequest request) { if (request == null) { - request = new GetLatestProcessesRequest(); + request = new GetLatestProcessesV2DeprecatedRequest(); } request.AppId ??= SDKConfiguration.AppId; @@ -205,7 +210,7 @@ public async Task GetLatestProcessesAsync(GetLatestP contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; } int httpCode = errorCode ?? (int)httpResponse.responseCode; - var response = new GetLatestProcessesResponse + var response = new GetLatestProcessesV2DeprecatedResponse { StatusCode = httpCode, ContentType = contentType, @@ -223,7 +228,7 @@ public async Task GetLatestProcessesAsync(GetLatestP throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -249,11 +254,11 @@ public async Task GetLatestProcessesAsync(GetLatestP - public async Task GetProcessInfoAsync(GetProcessInfoRequest request) + public async Task GetProcessInfoV2DeprecatedAsync(GetProcessInfoV2DeprecatedRequest request) { if (request == null) { - request = new GetProcessInfoRequest(); + request = new GetProcessInfoV2DeprecatedRequest(); } request.AppId ??= SDKConfiguration.AppId; @@ -293,7 +298,7 @@ public async Task GetProcessInfoAsync(GetProcessInfoRequ contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; } int httpCode = errorCode ?? (int)httpResponse.responseCode; - var response = new GetProcessInfoResponse + var response = new GetProcessInfoV2DeprecatedResponse { StatusCode = httpCode, ContentType = contentType, @@ -311,7 +316,95 @@ public async Task GetProcessInfoAsync(GetProcessInfoRequ throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetProcessesCountExperimentalV2DeprecatedAsync(GetProcessesCountExperimentalV2DeprecatedRequest request) + { + if (request == null) + { + request = new GetProcessesCountExperimentalV2DeprecatedRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/processes/v2/{appId}/count", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetProcessesCountExperimentalV2DeprecatedResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Object = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -337,11 +430,11 @@ public async Task GetProcessInfoAsync(GetProcessInfoRequ - public async Task StopProcessAsync(StopProcessRequest request) + public async Task StopProcessV2DeprecatedAsync(StopProcessV2DeprecatedRequest request) { if (request == null) { - request = new StopProcessRequest(); + request = new StopProcessV2DeprecatedRequest(); } request.AppId ??= SDKConfiguration.AppId; @@ -381,7 +474,7 @@ public async Task StopProcessAsync(StopProcessRequest reque contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; } int httpCode = errorCode ?? (int)httpResponse.responseCode; - var response = new StopProcessResponse + var response = new StopProcessV2DeprecatedResponse { StatusCode = httpCode, ContentType = contentType, @@ -390,7 +483,7 @@ public async Task StopProcessAsync(StopProcessRequest reque if (httpCode == 204) { } - else if (new List{401, 404, 500}.Contains(httpCode)) + else if (new List{401, 404, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/ProcessesV3.cs b/HathoraCloud/ProcessesV3.cs new file mode 100644 index 00000000..c0759851 --- /dev/null +++ b/HathoraCloud/ProcessesV3.cs @@ -0,0 +1,505 @@ + +//------------------------------------------------------------------------------ +// +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. +// +// Changes to this file may cause incorrect behavior and will be lost when +// the code is regenerated. +// +//------------------------------------------------------------------------------ +#nullable enable +namespace HathoraCloud +{ + using HathoraCloud.Models.Errors; + using HathoraCloud.Models.Operations; + using HathoraCloud.Models.Shared; + using HathoraCloud.Utils; + using Newtonsoft.Json; + using System.Collections.Generic; + using System.Text.RegularExpressions; + using System.Threading.Tasks; + using System; + using UnityEngine.Networking; + + public interface IProcessesV3 + { + + /// + /// Creates a process without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via CreateRoom() can be instant. + /// + Task CreateProcessAsync(CreateProcessRequest request); + + /// + /// Retrieve the 10 most recent processes objects for an application. Filter the array by optionally passing in a `status` or `region`. + /// + Task GetLatestProcessesAsync(GetLatestProcessesRequest request); + + /// + /// Get details for a process. + /// + Task GetProcessAsync(GetProcessRequest request); + + /// + /// Count the number of processes objects for an application. Filter by optionally passing in a `status` or `region`. + /// + Task GetProcessesCountExperimentalAsync(GetProcessesCountExperimentalRequest request); + + /// + /// Stops a process immediately. + /// + Task StopProcessAsync(StopProcessRequest request); + } + + public class ProcessesV3: IProcessesV3 + { + public SDKConfig SDKConfiguration { get; private set; } + private const string _target = "unity"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; + private const string _openapiDocVersion = "0.0.1"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; + private string _serverUrl = ""; + private ISpeakeasyHttpClient _defaultClient; + private Func? _securitySource; + + public ProcessesV3(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + { + _defaultClient = defaultClient; + _securitySource = securitySource; + _serverUrl = serverUrl; + SDKConfiguration = config; + } + + + + public async Task CreateProcessAsync(CreateProcessRequest request) + { + if (request == null) + { + request = new CreateProcessRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/processes/v3/apps/{appId}/processes/regions/{region}", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new CreateProcessResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 201) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.ProcessV3 = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 402, 404, 422, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetLatestProcessesAsync(GetLatestProcessesRequest request) + { + if (request == null) + { + request = new GetLatestProcessesRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/processes/v3/apps/{appId}/processes/latest", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetLatestProcessesResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject>(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Classes = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetProcessAsync(GetProcessRequest request) + { + if (request == null) + { + request = new GetProcessRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/processes/v3/apps/{appId}/processes/{processId}", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetProcessResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.ProcessV3 = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task GetProcessesCountExperimentalAsync(GetProcessesCountExperimentalRequest request) + { + if (request == null) + { + request = new GetProcessesCountExperimentalRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/processes/v3/apps/{appId}/processes/count", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbGET); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new GetProcessesCountExperimentalResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 200) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + response.Object = obj; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (new List{401, 404, 429}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + + + public async Task StopProcessAsync(StopProcessRequest request) + { + if (request == null) + { + request = new StopProcessRequest(); + } + request.AppId ??= SDKConfiguration.AppId; + + string baseUrl = this.SDKConfiguration.GetTemplatedServerDetails(); + var urlString = URLBuilder.Build(baseUrl, "/processes/v3/apps/{appId}/processes/{processId}/stop", request); + + var httpRequest = new UnityWebRequest(urlString, UnityWebRequest.kHttpVerbPOST); + DownloadHandlerStream downloadHandler = new DownloadHandlerStream(); + httpRequest.downloadHandler = downloadHandler; + httpRequest.SetRequestHeader("user-agent", _userAgent); + + var client = _defaultClient; + if (_securitySource != null) + { + client = SecuritySerializer.Apply(_defaultClient, _securitySource); + } + + var httpResponse = await client.SendAsync(httpRequest); + int? errorCode = null; + string? contentType = null; + switch (httpResponse.result) + { + case UnityWebRequest.Result.ConnectionError: + case UnityWebRequest.Result.DataProcessingError: + case UnityWebRequest.Result.ProtocolError: + errorCode = (int)httpRequest.responseCode; + contentType = httpRequest.GetResponseHeader("Content-Type"); + httpRequest.Dispose(); + break; + case UnityWebRequest.Result.Success: + Console.WriteLine("Success"); + break; + } + + if (contentType == null) + { + contentType = httpResponse.GetResponseHeader("Content-Type") ?? "application/octet-stream"; + } + int httpCode = errorCode ?? (int)httpResponse.responseCode; + var response = new StopProcessResponse + { + StatusCode = httpCode, + ContentType = contentType, + RawResponse = httpResponse + }; + if (httpCode == 204) + { + } + else if (new List{401, 404, 429, 500}.Contains(httpCode)) + { + if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) + { + var obj = JsonConvert.DeserializeObject(httpResponse.downloadHandler.text, new JsonSerializerSettings(){ NullValueHandling = NullValueHandling.Ignore, Converters = Utilities.GetDefaultJsonDeserializers() }); + throw obj!; + } + else + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + } + else if (httpCode >= 400 && httpCode < 500 || httpCode >= 500 && httpCode < 600) + { + throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + else + { + throw new SDKException("unknown status code received", httpCode, httpResponse.downloadHandler.text, httpResponse); + } + return response; + } + + + } +} \ No newline at end of file diff --git a/HathoraCloud/RoomV1.cs b/HathoraCloud/RoomsV1.cs similarity index 96% rename from HathoraCloud/RoomV1.cs rename to HathoraCloud/RoomsV1.cs index c091666a..88bf0e88 100644 --- a/HathoraCloud/RoomV1.cs +++ b/HathoraCloud/RoomsV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,10 +21,7 @@ namespace HathoraCloud using System; using UnityEngine.Networking; - /// - /// Deprecated. Use RoomV2. - /// - public interface IRoomV1 + public interface IRoomsV1 { Task CreateRoomDeprecatedAsync(CreateRoomDeprecatedRequest request); Task DestroyRoomDeprecatedAsync(DestroyRoomDeprecatedRequest request); @@ -35,22 +32,19 @@ public interface IRoomV1 Task SuspendRoomDeprecatedAsync(SuspendRoomDeprecatedRequest request); } - /// - /// Deprecated. Use RoomV2. - /// - public class RoomV1: IRoomV1 + public class RoomsV1: IRoomsV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public RoomV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public RoomsV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -129,7 +123,7 @@ public async Task CreateRoomDeprecatedAsync(Create throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{400, 401, 402, 403, 404, 429, 500}.Contains(httpCode)) + else if (new List{400, 401, 402, 404, 422, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -296,7 +290,7 @@ public async Task GetActiveRoomsForP throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -380,7 +374,7 @@ public async Task GetConnectionInfoDeprecat throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{400, 402, 404, 500}.Contains(httpCode)) + else if (new List{400, 402, 404, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -468,7 +462,7 @@ public async Task GetInactiveRooms throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -556,7 +550,7 @@ public async Task GetRoomInfoDeprecatedAsync(GetR throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 422, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/RoomV2.cs b/HathoraCloud/RoomsV2.cs similarity index 96% rename from HathoraCloud/RoomV2.cs rename to HathoraCloud/RoomsV2.cs index 79336727..35c3e68f 100644 --- a/HathoraCloud/RoomV2.cs +++ b/HathoraCloud/RoomsV2.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -21,10 +21,7 @@ namespace HathoraCloud using System; using UnityEngine.Networking; - /// - /// Operations to create, manage, and connect to rooms. - /// - public interface IRoomV2 + public interface IRoomsV2 { /// @@ -64,22 +61,19 @@ public interface IRoomV2 Task UpdateRoomConfigAsync(UpdateRoomConfigRequest request); } - /// - /// Operations to create, manage, and connect to rooms. - /// - public class RoomV2: IRoomV2 + public class RoomsV2: IRoomsV2 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public RoomV2(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public RoomsV2(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -158,7 +152,7 @@ public async Task CreateRoomAsync(CreateRoomRequest request) throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{400, 401, 402, 403, 404, 429, 500}.Contains(httpCode)) + else if (new List{400, 401, 402, 404, 422, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -325,7 +319,7 @@ public async Task GetActiveRoomsForProcessAsyn throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -409,7 +403,7 @@ public async Task GetConnectionInfoAsync(GetConnectio throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{400, 402, 404, 500}.Contains(httpCode)) + else if (new List{400, 402, 404, 422, 429, 500}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -497,7 +491,7 @@ public async Task GetInactiveRoomsForProcess throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -585,7 +579,7 @@ public async Task GetRoomInfoAsync(GetRoomInfoRequest reque throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 422, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/OrgTokensV1.cs b/HathoraCloud/TokensV1.cs similarity index 95% rename from HathoraCloud/OrgTokensV1.cs rename to HathoraCloud/TokensV1.cs index ef9e83cc..cd602ae6 100644 --- a/HathoraCloud/OrgTokensV1.cs +++ b/HathoraCloud/TokensV1.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -24,7 +24,7 @@ namespace HathoraCloud /// /// /// - public interface IOrgTokensV1 + public interface ITokensV1 { /// @@ -46,19 +46,19 @@ public interface IOrgTokensV1 /// /// /// - public class OrgTokensV1: IOrgTokensV1 + public class TokensV1: ITokensV1 { public SDKConfig SDKConfiguration { get; private set; } private const string _target = "unity"; - private const string _sdkVersion = "0.29.0"; - private const string _sdkGenVersion = "2.326.3"; + private const string _sdkVersion = "0.30.0"; + private const string _sdkGenVersion = "2.415.0"; private const string _openapiDocVersion = "0.0.1"; - private const string _userAgent = "speakeasy-sdk/unity 0.29.0 2.326.3 0.0.1 HathoraCloud"; + private const string _userAgent = "speakeasy-sdk/unity 0.30.0 2.415.0 0.0.1 HathoraCloud"; private string _serverUrl = ""; private ISpeakeasyHttpClient _defaultClient; private Func? _securitySource; - public OrgTokensV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) + public TokensV1(ISpeakeasyHttpClient defaultClient, Func? securitySource, string serverUrl, SDKConfig config) { _defaultClient = defaultClient; _securitySource = securitySource; @@ -131,7 +131,7 @@ public async Task CreateOrgTokenAsync(CreateOrgTokenRequ throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404, 422}.Contains(httpCode)) + else if (new List{401, 404, 422, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -213,7 +213,7 @@ public async Task GetOrgTokensAsync(GetOrgTokensRequest re throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { @@ -295,7 +295,7 @@ public async Task RevokeOrgTokenAsync(RevokeOrgTokenRequ throw new SDKException("API error occurred", httpCode, httpResponse.downloadHandler.text, httpResponse); } } - else if (new List{401, 404}.Contains(httpCode)) + else if (new List{401, 404, 429}.Contains(httpCode)) { if(Utilities.IsContentTypeMatch("application/json",response.ContentType)) { diff --git a/HathoraCloud/Utils/AnyDeserializer.cs b/HathoraCloud/Utils/AnyDeserializer.cs index 0b0ef51f..90c034a0 100644 --- a/HathoraCloud/Utils/AnyDeserializer.cs +++ b/HathoraCloud/Utils/AnyDeserializer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/BigIntStrConverter.cs b/HathoraCloud/Utils/BigIntStrConverter.cs index b6b17dc4..45270f9a 100644 --- a/HathoraCloud/Utils/BigIntStrConverter.cs +++ b/HathoraCloud/Utils/BigIntStrConverter.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/DateOnly.cs b/HathoraCloud/Utils/DateOnly.cs index 97811e77..1e5a7bd6 100644 --- a/HathoraCloud/Utils/DateOnly.cs +++ b/HathoraCloud/Utils/DateOnly.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/DateOnlyConverter.cs b/HathoraCloud/Utils/DateOnlyConverter.cs index bda09f0c..431163b8 100644 --- a/HathoraCloud/Utils/DateOnlyConverter.cs +++ b/HathoraCloud/Utils/DateOnlyConverter.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/DecimalStrConverter.cs b/HathoraCloud/Utils/DecimalStrConverter.cs index b4a9c5f8..f28fce25 100644 --- a/HathoraCloud/Utils/DecimalStrConverter.cs +++ b/HathoraCloud/Utils/DecimalStrConverter.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/DownloadHandlerStream.cs b/HathoraCloud/Utils/DownloadHandlerStream.cs index 36f960b6..c04f9ca9 100644 --- a/HathoraCloud/Utils/DownloadHandlerStream.cs +++ b/HathoraCloud/Utils/DownloadHandlerStream.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/EnumConverter.cs b/HathoraCloud/Utils/EnumConverter.cs index 3cdfc7d0..82bb0767 100644 --- a/HathoraCloud/Utils/EnumConverter.cs +++ b/HathoraCloud/Utils/EnumConverter.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. @@ -35,7 +35,7 @@ JsonSerializer serializer { if (reader.Value == null) { - throw new ArgumentNullException(nameof(reader.Value)); + return null; } var extensionType = System.Type.GetType(objectType.FullName + "Extension"); diff --git a/HathoraCloud/Utils/FlexibleObjectDeserializer.cs b/HathoraCloud/Utils/FlexibleObjectDeserializer.cs index 82ff7ea3..651fcd4b 100644 --- a/HathoraCloud/Utils/FlexibleObjectDeserializer.cs +++ b/HathoraCloud/Utils/FlexibleObjectDeserializer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/HeaderSerializer.cs b/HathoraCloud/Utils/HeaderSerializer.cs index 0c2523f1..dd02d4f7 100644 --- a/HathoraCloud/Utils/HeaderSerializer.cs +++ b/HathoraCloud/Utils/HeaderSerializer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/IsoDateTimeSerializer.cs b/HathoraCloud/Utils/IsoDateTimeSerializer.cs index d63f9966..76fe9a30 100644 --- a/HathoraCloud/Utils/IsoDateTimeSerializer.cs +++ b/HathoraCloud/Utils/IsoDateTimeSerializer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/MemoryQueueBufferStream.cs b/HathoraCloud/Utils/MemoryQueueBufferStream.cs index 45ac5a26..98be1541 100644 --- a/HathoraCloud/Utils/MemoryQueueBufferStream.cs +++ b/HathoraCloud/Utils/MemoryQueueBufferStream.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/RequestBodySerializer.cs b/HathoraCloud/Utils/RequestBodySerializer.cs index 97e1da4d..8ba69c35 100644 --- a/HathoraCloud/Utils/RequestBodySerializer.cs +++ b/HathoraCloud/Utils/RequestBodySerializer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/SecuritySerializer.cs b/HathoraCloud/Utils/SecuritySerializer.cs index 8ee6a556..d9d121c4 100644 --- a/HathoraCloud/Utils/SecuritySerializer.cs +++ b/HathoraCloud/Utils/SecuritySerializer.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/SpeakeasyHttpClient.cs b/HathoraCloud/Utils/SpeakeasyHttpClient.cs index 596b34e9..099360f1 100644 --- a/HathoraCloud/Utils/SpeakeasyHttpClient.cs +++ b/HathoraCloud/Utils/SpeakeasyHttpClient.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/SpeakeasyMetadata.cs b/HathoraCloud/Utils/SpeakeasyMetadata.cs index d85dd262..aac29dc9 100644 --- a/HathoraCloud/Utils/SpeakeasyMetadata.cs +++ b/HathoraCloud/Utils/SpeakeasyMetadata.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/URLBuilder.cs b/HathoraCloud/Utils/URLBuilder.cs index f1d0d4fc..a71dbe28 100644 --- a/HathoraCloud/Utils/URLBuilder.cs +++ b/HathoraCloud/Utils/URLBuilder.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/HathoraCloud/Utils/Utilities.cs b/HathoraCloud/Utils/Utilities.cs index c09ad0a3..b8207296 100644 --- a/HathoraCloud/Utils/Utilities.cs +++ b/HathoraCloud/Utils/Utilities.cs @@ -1,7 +1,7 @@ //------------------------------------------------------------------------------ // -// This code was generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT. +// This code was generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. // // Changes to this file may cause incorrect behavior and will be lost when // the code is regenerated. diff --git a/README.md b/README.md index a6f5f055..50218293 100755 --- a/README.md +++ b/README.md @@ -7,6 +7,24 @@ + +## Summary + +Hathora Cloud API: Welcome to the Hathora Cloud API documentation! Learn how to use the Hathora Cloud APIs to build and scale your game servers globally. + + + +## Table of Contents + +* [SDK Installation](#sdk-installation) +* [SDK Example Usage](#sdk-example-usage) +* [Available Resources and Operations](#available-resources-and-operations) +* [Global Parameters](#global-parameters) +* [Error Handling](#error-handling) +* [Server Selection](#server-selection) +* [Authentication](#authentication) + + ## SDK Installation @@ -38,7 +56,7 @@ AppConfig req = new AppConfig() { }; -using(var res = await sdk.AppV1.CreateAppAsync(req)) +using(var res = await sdk.AppsV1.CreateAppV1DeprecatedAsync(req)) { // handle response } @@ -50,13 +68,21 @@ using(var res = await sdk.AppV1.CreateAppAsync(req)) ## Available Resources and Operations -### [AppV1](docs/sdks/appv1/README.md) +### [AppsV1](docs/sdks/appsv1/README.md) + +* [CreateAppV1Deprecated](docs/sdks/appsv1/README.md#createappv1deprecated) - Create a new [application](https://hathora.dev/docs/concepts/hathora-entities#application). +* [DeleteAppV1Deprecated](docs/sdks/appsv1/README.md#deleteappv1deprecated) - Delete an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. Your organization will lose access to this application. +* [GetAppInfoV1Deprecated](docs/sdks/appsv1/README.md#getappinfov1deprecated) - Get details for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. +* [GetAppsV1Deprecated](docs/sdks/appsv1/README.md#getappsv1deprecated) - Returns an unsorted list of your organization’s [applications](https://hathora.dev/docs/concepts/hathora-entities#application). An application is uniquely identified by an `appId`. +* [UpdateAppV1Deprecated](docs/sdks/appsv1/README.md#updateappv1deprecated) - Update data for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. + +### [AppsV2](docs/sdks/appsv2/README.md) -* [CreateApp](docs/sdks/appv1/README.md#createapp) - Create a new [application](https://hathora.dev/docs/concepts/hathora-entities#application). -* [DeleteApp](docs/sdks/appv1/README.md#deleteapp) - Delete an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. Your organization will lose access to this application. -* [GetAppInfo](docs/sdks/appv1/README.md#getappinfo) - Get details for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. -* [GetApps](docs/sdks/appv1/README.md#getapps) - Returns an unsorted list of your organization’s [applications](https://hathora.dev/docs/concepts/hathora-entities#application). An application is uniquely identified by an `appId`. -* [UpdateApp](docs/sdks/appv1/README.md#updateapp) - Update data for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. +* [CreateApp](docs/sdks/appsv2/README.md#createapp) - Create a new [application](https://hathora.dev/docs/concepts/hathora-entities#application). +* [DeleteApp](docs/sdks/appsv2/README.md#deleteapp) - Delete an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. Your organization will lose access to this application. +* [GetApp](docs/sdks/appsv2/README.md#getapp) - Get details for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. +* [GetApps](docs/sdks/appsv2/README.md#getapps) - Returns an unsorted list of your organization’s [applications](https://hathora.dev/docs/concepts/hathora-entities#application). An application is uniquely identified by an `appId`. +* [UpdateApp](docs/sdks/appsv2/README.md#updateapp) - Update data for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. ### [AuthV1](docs/sdks/authv1/README.md) @@ -69,37 +95,58 @@ using(var res = await sdk.AppV1.CreateAppAsync(req)) * [GetBalance](docs/sdks/billingv1/README.md#getbalance) * [GetInvoices](docs/sdks/billingv1/README.md#getinvoices) * [GetPaymentMethod](docs/sdks/billingv1/README.md#getpaymentmethod) +* [GetUpcomingInvoiceItems](docs/sdks/billingv1/README.md#getupcominginvoiceitems) +* [GetUpcomingInvoiceTotal](docs/sdks/billingv1/README.md#getupcominginvoicetotal) * [InitStripeCustomerPortalUrl](docs/sdks/billingv1/README.md#initstripecustomerportalurl) -### [BuildV1](docs/sdks/buildv1/README.md) +### [BuildsV1](docs/sdks/buildsv1/README.md) -* [~~CreateBuildDeprecated~~](docs/sdks/buildv1/README.md#createbuilddeprecated) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build). Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. :warning: **Deprecated** -* [~~DeleteBuildDeprecated~~](docs/sdks/buildv1/README.md#deletebuilddeprecated) - Delete a [build](https://hathora.dev/docs/concepts/hathora-entities#build). All associated metadata is deleted. :warning: **Deprecated** -* [~~GetBuildInfoDeprecated~~](docs/sdks/buildv1/README.md#getbuildinfodeprecated) - Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). :warning: **Deprecated** -* [~~GetBuildsDeprecated~~](docs/sdks/buildv1/README.md#getbuildsdeprecated) - Returns an array of [builds](https://hathora.dev/docs/concepts/hathora-entities#build) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). :warning: **Deprecated** -* [~~RunBuildDeprecated~~](docs/sdks/buildv1/README.md#runbuilddeprecated) - Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild). :warning: **Deprecated** +* [~~CreateBuildDeprecated~~](docs/sdks/buildsv1/README.md#createbuilddeprecated) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build). Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. :warning: **Deprecated** +* [~~DeleteBuildDeprecated~~](docs/sdks/buildsv1/README.md#deletebuilddeprecated) - Delete a [build](https://hathora.dev/docs/concepts/hathora-entities#build). All associated metadata is deleted. :warning: **Deprecated** +* [~~GetBuildInfoDeprecated~~](docs/sdks/buildsv1/README.md#getbuildinfodeprecated) - Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). :warning: **Deprecated** +* [~~GetBuildsDeprecated~~](docs/sdks/buildsv1/README.md#getbuildsdeprecated) - Returns an array of [builds](https://hathora.dev/docs/concepts/hathora-entities#build) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). :warning: **Deprecated** +* [~~RunBuildDeprecated~~](docs/sdks/buildsv1/README.md#runbuilddeprecated) - Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild). :warning: **Deprecated** -### [BuildV2](docs/sdks/buildv2/README.md) +### [BuildsV2](docs/sdks/buildsv2/README.md) -* [CreateBuild](docs/sdks/buildv2/README.md#createbuild) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build). Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. -* [DeleteBuild](docs/sdks/buildv2/README.md#deletebuild) - Delete a [build](https://hathora.dev/docs/concepts/hathora-entities#build). All associated metadata is deleted. -* [GetBuildInfo](docs/sdks/buildv2/README.md#getbuildinfo) - Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). -* [GetBuilds](docs/sdks/buildv2/README.md#getbuilds) - Returns an array of [builds](https://hathora.dev/docs/concepts/hathora-entities#build) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). -* [RunBuild](docs/sdks/buildv2/README.md#runbuild) - Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild). +* [CreateBuildV2Deprecated](docs/sdks/buildsv2/README.md#createbuildv2deprecated) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build). Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. +* [CreateBuildWithUploadUrlV2Deprecated](docs/sdks/buildsv2/README.md#createbuildwithuploadurlv2deprecated) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build) with `uploadUrl` that can be used to upload the build to before calling `runBuild`. Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. +* [CreateWithMultipartUploadsV2Deprecated](docs/sdks/buildsv2/README.md#createwithmultipartuploadsv2deprecated) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build) with optional `multipartUploadUrls` that can be used to upload larger builds in parts before calling `runBuild`. Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. +* [DeleteBuildV2Deprecated](docs/sdks/buildsv2/README.md#deletebuildv2deprecated) - Delete a [build](https://hathora.dev/docs/concepts/hathora-entities#build). All associated metadata is deleted. +* [GetBuildInfoV2Deprecated](docs/sdks/buildsv2/README.md#getbuildinfov2deprecated) - Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). +* [GetBuildsV2Deprecated](docs/sdks/buildsv2/README.md#getbuildsv2deprecated) - Returns an array of [builds](https://hathora.dev/docs/concepts/hathora-entities#build) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). +* [RunBuildV2Deprecated](docs/sdks/buildsv2/README.md#runbuildv2deprecated) - Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild). -### [DeploymentV1](docs/sdks/deploymentv1/README.md) +### [BuildsV3](docs/sdks/buildsv3/README.md) -* [~~CreateDeploymentDeprecated~~](docs/sdks/deploymentv1/README.md#createdeploymentdeprecated) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. :warning: **Deprecated** -* [~~GetDeploymentInfoDeprecated~~](docs/sdks/deploymentv1/README.md#getdeploymentinfodeprecated) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). :warning: **Deprecated** -* [~~GetDeploymentsDeprecated~~](docs/sdks/deploymentv1/README.md#getdeploymentsdeprecated) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). :warning: **Deprecated** -* [~~GetLatestDeploymentDeprecated~~](docs/sdks/deploymentv1/README.md#getlatestdeploymentdeprecated) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). :warning: **Deprecated** +* [CreateBuild](docs/sdks/buildsv3/README.md#createbuild) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build) with optional `multipartUploadUrls` that can be used to upload larger builds in parts before calling `runBuild`. Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. +* [DeleteBuild](docs/sdks/buildsv3/README.md#deletebuild) - Delete a [build](https://hathora.dev/docs/concepts/hathora-entities#build). All associated metadata is deleted. +Be careful which builds you delete. This endpoint does not prevent you from deleting actively used builds. +Deleting a build that is actively build used by an app's deployment will cause failures when creating rooms. +* [GetBuild](docs/sdks/buildsv3/README.md#getbuild) - Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). +* [GetBuilds](docs/sdks/buildsv3/README.md#getbuilds) - Returns an array of [builds](https://hathora.dev/docs/concepts/hathora-entities#build) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). +* [RunBuild](docs/sdks/buildsv3/README.md#runbuild) - Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild). -### [DeploymentV2](docs/sdks/deploymentv2/README.md) +### [DeploymentsV1](docs/sdks/deploymentsv1/README.md) -* [CreateDeployment](docs/sdks/deploymentv2/README.md#createdeployment) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. -* [GetDeploymentInfo](docs/sdks/deploymentv2/README.md#getdeploymentinfo) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). -* [GetDeployments](docs/sdks/deploymentv2/README.md#getdeployments) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). -* [GetLatestDeployment](docs/sdks/deploymentv2/README.md#getlatestdeployment) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). +* [~~CreateDeploymentV1Deprecated~~](docs/sdks/deploymentsv1/README.md#createdeploymentv1deprecated) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. :warning: **Deprecated** +* [~~GetDeploymentInfoV1Deprecated~~](docs/sdks/deploymentsv1/README.md#getdeploymentinfov1deprecated) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). :warning: **Deprecated** +* [~~GetDeploymentsV1Deprecated~~](docs/sdks/deploymentsv1/README.md#getdeploymentsv1deprecated) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). :warning: **Deprecated** +* [~~GetLatestDeploymentV1Deprecated~~](docs/sdks/deploymentsv1/README.md#getlatestdeploymentv1deprecated) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). :warning: **Deprecated** + +### [DeploymentsV2](docs/sdks/deploymentsv2/README.md) + +* [CreateDeploymentV2Deprecated](docs/sdks/deploymentsv2/README.md#createdeploymentv2deprecated) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. +* [GetDeploymentInfoV2Deprecated](docs/sdks/deploymentsv2/README.md#getdeploymentinfov2deprecated) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). +* [GetDeploymentsV2Deprecated](docs/sdks/deploymentsv2/README.md#getdeploymentsv2deprecated) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). +* [GetLatestDeploymentV2Deprecated](docs/sdks/deploymentsv2/README.md#getlatestdeploymentv2deprecated) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). + +### [DeploymentsV3](docs/sdks/deploymentsv3/README.md) + +* [CreateDeployment](docs/sdks/deploymentsv3/README.md#createdeployment) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. +* [GetDeployment](docs/sdks/deploymentsv3/README.md#getdeployment) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). +* [GetDeployments](docs/sdks/deploymentsv3/README.md#getdeployments) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). +* [GetLatestDeployment](docs/sdks/deploymentsv3/README.md#getlatestdeployment) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). ### [DiscoveryV1](docs/sdks/discoveryv1/README.md) @@ -109,35 +156,35 @@ using(var res = await sdk.AppV1.CreateAppAsync(req)) * [GetPingServiceEndpoints](docs/sdks/discoveryv2/README.md#getpingserviceendpoints) - Returns an array of all regions with a host and port that a client can directly ping. Open a websocket connection to `wss://:/ws` and send a packet. To calculate ping, measure the time it takes to get an echo packet back. -### [LobbyV1](docs/sdks/lobbyv1/README.md) +### [LobbiesV1](docs/sdks/lobbiesv1/README.md) -* [~~CreatePrivateLobbyDeprecated~~](docs/sdks/lobbyv1/README.md#createprivatelobbydeprecated) - :warning: **Deprecated** -* [~~CreatePublicLobbyDeprecated~~](docs/sdks/lobbyv1/README.md#createpubliclobbydeprecated) - :warning: **Deprecated** -* [~~ListActivePublicLobbiesDeprecatedV1~~](docs/sdks/lobbyv1/README.md#listactivepubliclobbiesdeprecatedv1) - :warning: **Deprecated** +* [~~CreatePrivateLobbyDeprecated~~](docs/sdks/lobbiesv1/README.md#createprivatelobbydeprecated) - :warning: **Deprecated** +* [~~CreatePublicLobbyDeprecated~~](docs/sdks/lobbiesv1/README.md#createpubliclobbydeprecated) - :warning: **Deprecated** +* [~~ListActivePublicLobbiesDeprecatedV1~~](docs/sdks/lobbiesv1/README.md#listactivepubliclobbiesdeprecatedv1) - :warning: **Deprecated** -### [LobbyV2](docs/sdks/lobbyv2/README.md) +### [LobbiesV2](docs/sdks/lobbiesv2/README.md) -* [~~CreateLobbyDeprecated~~](docs/sdks/lobbyv2/README.md#createlobbydeprecated) - Create a new lobby for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). A lobby object is a wrapper around a [room](https://hathora.dev/docs/concepts/hathora-entities#room) object. With a lobby, you get additional functionality like configuring the visibility of the room, managing the state of a match, and retrieving a list of public lobbies to display to players. :warning: **Deprecated** -* [~~CreateLocalLobby~~](docs/sdks/lobbyv2/README.md#createlocallobby) - :warning: **Deprecated** -* [~~CreatePrivateLobby~~](docs/sdks/lobbyv2/README.md#createprivatelobby) - :warning: **Deprecated** -* [~~CreatePublicLobby~~](docs/sdks/lobbyv2/README.md#createpubliclobby) - :warning: **Deprecated** -* [~~GetLobbyInfo~~](docs/sdks/lobbyv2/README.md#getlobbyinfo) - Get details for a lobby. :warning: **Deprecated** -* [~~ListActivePublicLobbiesDeprecatedV2~~](docs/sdks/lobbyv2/README.md#listactivepubliclobbiesdeprecatedv2) - Get all active lobbies for a an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter by optionally passing in a `region`. Use this endpoint to display all public lobbies that a player can join in the game client. :warning: **Deprecated** -* [~~SetLobbyState~~](docs/sdks/lobbyv2/README.md#setlobbystate) - Set the state of a lobby. State is intended to be set by the server and must be smaller than 1MB. Use this endpoint to store match data like live player count to enforce max number of clients or persist end-game data (i.e. winner or final scores). :warning: **Deprecated** +* [~~CreateLobbyDeprecated~~](docs/sdks/lobbiesv2/README.md#createlobbydeprecated) - Create a new lobby for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). A lobby object is a wrapper around a [room](https://hathora.dev/docs/concepts/hathora-entities#room) object. With a lobby, you get additional functionality like configuring the visibility of the room, managing the state of a match, and retrieving a list of public lobbies to display to players. :warning: **Deprecated** +* [~~CreateLocalLobby~~](docs/sdks/lobbiesv2/README.md#createlocallobby) - :warning: **Deprecated** +* [~~CreatePrivateLobby~~](docs/sdks/lobbiesv2/README.md#createprivatelobby) - :warning: **Deprecated** +* [~~CreatePublicLobby~~](docs/sdks/lobbiesv2/README.md#createpubliclobby) - :warning: **Deprecated** +* [~~GetLobbyInfo~~](docs/sdks/lobbiesv2/README.md#getlobbyinfo) - Get details for a lobby. :warning: **Deprecated** +* [~~ListActivePublicLobbiesDeprecatedV2~~](docs/sdks/lobbiesv2/README.md#listactivepubliclobbiesdeprecatedv2) - Get all active lobbies for a an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter by optionally passing in a `region`. Use this endpoint to display all public lobbies that a player can join in the game client. :warning: **Deprecated** +* [~~SetLobbyState~~](docs/sdks/lobbiesv2/README.md#setlobbystate) - Set the state of a lobby. State is intended to be set by the server and must be smaller than 1MB. Use this endpoint to store match data like live player count to enforce max number of clients or persist end-game data (i.e. winner or final scores). :warning: **Deprecated** -### [LobbyV3SDK](docs/sdks/lobbyv3sdk/README.md) +### [LobbiesV3](docs/sdks/lobbiesv3/README.md) -* [CreateLobby](docs/sdks/lobbyv3sdk/README.md#createlobby) - Create a new lobby for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). A lobby object is a wrapper around a [room](https://hathora.dev/docs/concepts/hathora-entities#room) object. With a lobby, you get additional functionality like configuring the visibility of the room, managing the state of a match, and retrieving a list of public lobbies to display to players. -* [GetLobbyInfoByRoomId](docs/sdks/lobbyv3sdk/README.md#getlobbyinfobyroomid) - Get details for a lobby. -* [GetLobbyInfoByShortCode](docs/sdks/lobbyv3sdk/README.md#getlobbyinfobyshortcode) - Get details for a lobby. If 2 or more lobbies have the same `shortCode`, then the most recently created lobby will be returned. -* [ListActivePublicLobbies](docs/sdks/lobbyv3sdk/README.md#listactivepubliclobbies) - Get all active lobbies for a given [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `region`. Use this endpoint to display all public lobbies that a player can join in the game client. +* [CreateLobby](docs/sdks/lobbiesv3/README.md#createlobby) - Create a new lobby for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). A lobby object is a wrapper around a [room](https://hathora.dev/docs/concepts/hathora-entities#room) object. With a lobby, you get additional functionality like configuring the visibility of the room, managing the state of a match, and retrieving a list of public lobbies to display to players. +* [GetLobbyInfoByRoomId](docs/sdks/lobbiesv3/README.md#getlobbyinfobyroomid) - Get details for a lobby. +* [GetLobbyInfoByShortCode](docs/sdks/lobbiesv3/README.md#getlobbyinfobyshortcode) - Get details for a lobby. If 2 or more lobbies have the same `shortCode`, then the most recently created lobby will be returned. +* [ListActivePublicLobbies](docs/sdks/lobbiesv3/README.md#listactivepubliclobbies) - Get all active lobbies for a given [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `region`. Use this endpoint to display all public lobbies that a player can join in the game client. -### [LogV1](docs/sdks/logv1/README.md) +### [LogsV1](docs/sdks/logsv1/README.md) -* [DownloadLogForProcess](docs/sdks/logv1/README.md#downloadlogforprocess) - Download entire log file for a stopped process. -* [~~GetLogsForApp~~](docs/sdks/logv1/README.md#getlogsforapp) - Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. :warning: **Deprecated** -* [~~GetLogsForDeployment~~](docs/sdks/logv1/README.md#getlogsfordeployment) - Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`. :warning: **Deprecated** -* [GetLogsForProcess](docs/sdks/logv1/README.md#getlogsforprocess) - Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. +* [DownloadLogForProcess](docs/sdks/logsv1/README.md#downloadlogforprocess) - Download entire log file for a stopped process. +* [~~GetLogsForApp~~](docs/sdks/logsv1/README.md#getlogsforapp) - Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. :warning: **Deprecated** +* [~~GetLogsForDeployment~~](docs/sdks/logsv1/README.md#getlogsfordeployment) - Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`. :warning: **Deprecated** +* [GetLogsForProcess](docs/sdks/logsv1/README.md#getlogsforprocess) - Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. ### [ManagementV1](docs/sdks/managementv1/README.md) @@ -150,7 +197,9 @@ using(var res = await sdk.AppV1.CreateAppAsync(req)) ### [OrganizationsV1](docs/sdks/organizationsv1/README.md) * [AcceptInvite](docs/sdks/organizationsv1/README.md#acceptinvite) +* [GetOrgMembers](docs/sdks/organizationsv1/README.md#getorgmembers) * [GetOrgPendingInvites](docs/sdks/organizationsv1/README.md#getorgpendinginvites) +* [GetOrgs](docs/sdks/organizationsv1/README.md#getorgs) - Returns an unsorted list of all organizations that you are a member of (an accepted membership invite). An organization is uniquely identified by an `orgId`. * [GetUserPendingInvites](docs/sdks/organizationsv1/README.md#getuserpendinginvites) * [InviteUser](docs/sdks/organizationsv1/README.md#inviteuser) * [RejectInvite](docs/sdks/organizationsv1/README.md#rejectinvite) @@ -164,37 +213,46 @@ using(var res = await sdk.AppV1.CreateAppAsync(req)) ### [ProcessesV2](docs/sdks/processesv2/README.md) -* [CreateProcess](docs/sdks/processesv2/README.md#createprocess) - Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. -* [GetLatestProcesses](docs/sdks/processesv2/README.md#getlatestprocesses) - Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. -* [GetProcessInfo](docs/sdks/processesv2/README.md#getprocessinfo) - Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). -* [StopProcess](docs/sdks/processesv2/README.md#stopprocess) - Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. - -### [RoomV1](docs/sdks/roomv1/README.md) - -* [~~CreateRoomDeprecated~~](docs/sdks/roomv1/README.md#createroomdeprecated) - :warning: **Deprecated** -* [~~DestroyRoomDeprecated~~](docs/sdks/roomv1/README.md#destroyroomdeprecated) - :warning: **Deprecated** -* [~~GetActiveRoomsForProcessDeprecated~~](docs/sdks/roomv1/README.md#getactiveroomsforprocessdeprecated) - :warning: **Deprecated** -* [~~GetConnectionInfoDeprecated~~](docs/sdks/roomv1/README.md#getconnectioninfodeprecated) - :warning: **Deprecated** -* [~~GetInactiveRoomsForProcessDeprecated~~](docs/sdks/roomv1/README.md#getinactiveroomsforprocessdeprecated) - :warning: **Deprecated** -* [~~GetRoomInfoDeprecated~~](docs/sdks/roomv1/README.md#getroominfodeprecated) - :warning: **Deprecated** -* [~~SuspendRoomDeprecated~~](docs/sdks/roomv1/README.md#suspendroomdeprecated) - :warning: **Deprecated** - -### [RoomV2](docs/sdks/roomv2/README.md) - -* [CreateRoom](docs/sdks/roomv2/README.md#createroom) - Create a new [room](https://hathora.dev/docs/concepts/hathora-entities#room) for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application). Poll the [`GetConnectionInfo()`](https://hathora.dev/api#tag/RoomV2/operation/GetConnectionInfo) endpoint to get connection details for an active room. -* [DestroyRoom](docs/sdks/roomv2/README.md#destroyroom) - Destroy a [room](https://hathora.dev/docs/concepts/hathora-entities#room). All associated metadata is deleted. -* [GetActiveRoomsForProcess](docs/sdks/roomv2/README.md#getactiveroomsforprocess) - Get all active [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) for a given [process](https://hathora.dev/docs/concepts/hathora-entities#process). -* [GetConnectionInfo](docs/sdks/roomv2/README.md#getconnectioninfo) - Poll this endpoint to get connection details to a [room](https://hathora.dev/docs/concepts/hathora-entities#room). Clients can call this endpoint without authentication. -* [GetInactiveRoomsForProcess](docs/sdks/roomv2/README.md#getinactiveroomsforprocess) - Get all inactive [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) for a given [process](https://hathora.dev/docs/concepts/hathora-entities#process). -* [GetRoomInfo](docs/sdks/roomv2/README.md#getroominfo) - Retreive current and historical allocation data for a [room](https://hathora.dev/docs/concepts/hathora-entities#room). -* [~~SuspendRoomV2Deprecated~~](docs/sdks/roomv2/README.md#suspendroomv2deprecated) - Suspend a [room](https://hathora.dev/docs/concepts/hathora-entities#room). The room is unallocated from the process but can be rescheduled later using the same `roomId`. :warning: **Deprecated** -* [UpdateRoomConfig](docs/sdks/roomv2/README.md#updateroomconfig) - -### [OrgTokensV1](docs/sdks/orgtokensv1/README.md) - -* [CreateOrgToken](docs/sdks/orgtokensv1/README.md#createorgtoken) - Create a new organization token. -* [GetOrgTokens](docs/sdks/orgtokensv1/README.md#getorgtokens) - List all organization tokens for a given org. -* [RevokeOrgToken](docs/sdks/orgtokensv1/README.md#revokeorgtoken) - Revoke an organization token. +* [CreateProcessV2Deprecated](docs/sdks/processesv2/README.md#createprocessv2deprecated) - Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. +* [GetLatestProcessesV2Deprecated](docs/sdks/processesv2/README.md#getlatestprocessesv2deprecated) - Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. +* [GetProcessInfoV2Deprecated](docs/sdks/processesv2/README.md#getprocessinfov2deprecated) - Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). +* [GetProcessesCountExperimentalV2Deprecated](docs/sdks/processesv2/README.md#getprocessescountexperimentalv2deprecated) - Count the number of [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter by optionally passing in a `status` or `region`. +* [StopProcessV2Deprecated](docs/sdks/processesv2/README.md#stopprocessv2deprecated) - Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. + +### [ProcessesV3](docs/sdks/processesv3/README.md) + +* [CreateProcess](docs/sdks/processesv3/README.md#createprocess) - Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. +* [GetLatestProcesses](docs/sdks/processesv3/README.md#getlatestprocesses) - Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. +* [GetProcess](docs/sdks/processesv3/README.md#getprocess) - Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). +* [GetProcessesCountExperimental](docs/sdks/processesv3/README.md#getprocessescountexperimental) - Count the number of [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter by optionally passing in a `status` or `region`. +* [StopProcess](docs/sdks/processesv3/README.md#stopprocess) - Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. + +### [RoomsV1](docs/sdks/roomsv1/README.md) + +* [~~CreateRoomDeprecated~~](docs/sdks/roomsv1/README.md#createroomdeprecated) - :warning: **Deprecated** +* [~~DestroyRoomDeprecated~~](docs/sdks/roomsv1/README.md#destroyroomdeprecated) - :warning: **Deprecated** +* [~~GetActiveRoomsForProcessDeprecated~~](docs/sdks/roomsv1/README.md#getactiveroomsforprocessdeprecated) - :warning: **Deprecated** +* [~~GetConnectionInfoDeprecated~~](docs/sdks/roomsv1/README.md#getconnectioninfodeprecated) - :warning: **Deprecated** +* [~~GetInactiveRoomsForProcessDeprecated~~](docs/sdks/roomsv1/README.md#getinactiveroomsforprocessdeprecated) - :warning: **Deprecated** +* [~~GetRoomInfoDeprecated~~](docs/sdks/roomsv1/README.md#getroominfodeprecated) - :warning: **Deprecated** +* [~~SuspendRoomDeprecated~~](docs/sdks/roomsv1/README.md#suspendroomdeprecated) - :warning: **Deprecated** + +### [RoomsV2](docs/sdks/roomsv2/README.md) + +* [CreateRoom](docs/sdks/roomsv2/README.md#createroom) - Create a new [room](https://hathora.dev/docs/concepts/hathora-entities#room) for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application). Poll the [`GetConnectionInfo()`](https://hathora.dev/api#tag/RoomV2/operation/GetConnectionInfo) endpoint to get connection details for an active room. +* [DestroyRoom](docs/sdks/roomsv2/README.md#destroyroom) - Destroy a [room](https://hathora.dev/docs/concepts/hathora-entities#room). All associated metadata is deleted. +* [GetActiveRoomsForProcess](docs/sdks/roomsv2/README.md#getactiveroomsforprocess) - Get all active [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) for a given [process](https://hathora.dev/docs/concepts/hathora-entities#process). +* [GetConnectionInfo](docs/sdks/roomsv2/README.md#getconnectioninfo) - Poll this endpoint to get connection details to a [room](https://hathora.dev/docs/concepts/hathora-entities#room). Clients can call this endpoint without authentication. +* [GetInactiveRoomsForProcess](docs/sdks/roomsv2/README.md#getinactiveroomsforprocess) - Get all inactive [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) for a given [process](https://hathora.dev/docs/concepts/hathora-entities#process). +* [GetRoomInfo](docs/sdks/roomsv2/README.md#getroominfo) - Retreive current and historical allocation data for a [room](https://hathora.dev/docs/concepts/hathora-entities#room). +* [~~SuspendRoomV2Deprecated~~](docs/sdks/roomsv2/README.md#suspendroomv2deprecated) - Suspend a [room](https://hathora.dev/docs/concepts/hathora-entities#room). The room is unallocated from the process but can be rescheduled later using the same `roomId`. :warning: **Deprecated** +* [UpdateRoomConfig](docs/sdks/roomsv2/README.md#updateroomconfig) + +### [TokensV1](docs/sdks/tokensv1/README.md) + +* [CreateOrgToken](docs/sdks/tokensv1/README.md#createorgtoken) - Create a new organization token. +* [GetOrgTokens](docs/sdks/tokensv1/README.md#getorgtokens) - List all organization tokens for a given org. +* [RevokeOrgToken](docs/sdks/tokensv1/README.md#revokeorgtoken) - Revoke an organization token. @@ -208,7 +266,7 @@ using(var res = await sdk.AppV1.CreateAppAsync(req)) A parameter is configured globally. This parameter may be set on the SDK client instance itself during initialization. When configured as an option during SDK initialization, This global value will be used as the default on the operations that use it. When such operations are called, there is a place in each to override the global value, if needed. -For example, you can set `appId` to `"app-af469a92-5b45-4565-b3c4-b79878de67d2"` at SDK initialization and then you do not have to pass the same value on calls to operations like `DeleteApp`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. +For example, you can set `appId` to `"app-af469a92-5b45-4565-b3c4-b79878de67d2"` at SDK initialization and then you do not have to pass the same value on calls to operations like `DeleteAppV1Deprecated`. But if you want to do so you may, which will locally override the global setting. See the example code below for a demonstration. ### Available Globals @@ -233,10 +291,10 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -DeleteAppRequest req = new DeleteAppRequest() {}; +DeleteAppV1DeprecatedRequest req = new DeleteAppV1DeprecatedRequest() {}; -using(var res = await sdk.AppV1.DeleteAppAsync(req)) +using(var res = await sdk.AppsV1.DeleteAppV1DeprecatedAsync(req)) { // handle response } @@ -298,7 +356,7 @@ AppConfig req = new AppConfig() { try { - using(var res = await sdk.AppV1.CreateAppAsync(req)) + using(var res = await sdk.AppsV1.CreateAppV1DeprecatedAsync(req)) { // handle response } @@ -346,7 +404,7 @@ AppConfig req = new AppConfig() { }; -using(var res = await sdk.AppV1.CreateAppAsync(req)) +using(var res = await sdk.AppsV1.CreateAppV1DeprecatedAsync(req)) { // handle response } @@ -367,10 +425,10 @@ var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2") CreatePrivateLobbyDeprecatedRequest req = new CreatePrivateLobbyDeprecatedRequest() {}; -using(var res = await sdk.LobbyV1.CreatePrivateLobbyDeprecatedAsync( - new CreatePrivateLobbyDeprecatedSecurity() { - PlayerAuth = "", -}, +using(var res = await sdk.LobbiesV1.CreatePrivateLobbyDeprecatedAsync( + security: new CreatePrivateLobbyDeprecatedSecurity() { + PlayerAuth = "", + }, req)) { // handle response diff --git a/RELEASES.md b/RELEASES.md index b458baaa..7e0dfa9b 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -366,4 +366,12 @@ Based on: - OpenAPI Doc - Speakeasy CLI 1.285.3 (2.326.3) https://github.com/speakeasy-api/speakeasy ### Generated -- [unity v0.29.0] . \ No newline at end of file +- [unity v0.29.0] . + +## 2024-09-12 00:03:31 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.396.2 (2.415.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [unity v0.30.0] . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 88a15370..188fecf8 100644 --- a/USAGE.md +++ b/USAGE.md @@ -15,7 +15,7 @@ AppConfig req = new AppConfig() { }; -using(var res = await sdk.AppV1.CreateAppAsync(req)) +using(var res = await sdk.AppsV1.CreateAppV1DeprecatedAsync(req)) { // handle response } diff --git a/codeSamples.yaml b/codeSamples.yaml new file mode 100644 index 00000000..ee423a8b --- /dev/null +++ b/codeSamples.yaml @@ -0,0 +1,2731 @@ +overlay: 1.0.0 +info: + title: CodeSamples overlay for unity target + version: 0.0.0 +actions: + - target: $["paths"]["/apps/v1/create"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateAppV1Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + AppConfig req = new AppConfig() { + AuthConfiguration = new AuthConfiguration() {}, + AppName = "minecraft", + }; + + + using(var res = await sdk.AppsV1.CreateAppV1DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/apps/v1/delete/{appId}"]["delete"] + update: + x-codeSamples: + - lang: unity + label: DeleteAppV1Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + DeleteAppV1DeprecatedRequest req = new DeleteAppV1DeprecatedRequest() {}; + + + using(var res = await sdk.AppsV1.DeleteAppV1DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/apps/v1/info/{appId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetAppInfoV1Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetAppInfoV1DeprecatedRequest req = new GetAppInfoV1DeprecatedRequest() {}; + + + using(var res = await sdk.AppsV1.GetAppInfoV1DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/apps/v1/list"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetAppsV1Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + + using(var res = await sdk.AppsV1.GetAppsV1DeprecatedAsync()) + { + // handle response + } + - target: $["paths"]["/apps/v1/update/{appId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: UpdateAppV1Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + UpdateAppV1DeprecatedRequest req = new UpdateAppV1DeprecatedRequest() { + AppConfig = new AppConfig() { + AuthConfiguration = new AuthConfiguration() {}, + AppName = "minecraft", + }, + }; + + + using(var res = await sdk.AppsV1.UpdateAppV1DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/apps/v2/apps"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetApps + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetAppsRequest req = new GetAppsRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + }; + + + using(var res = await sdk.AppsV2.GetAppsAsync(req)) + { + // handle response + } + - target: $["paths"]["/apps/v2/apps"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateApp + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateAppRequest req = new CreateAppRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + AppConfig = new AppConfig() { + AuthConfiguration = new AuthConfiguration() {}, + AppName = "minecraft", + }, + }; + + + using(var res = await sdk.AppsV2.CreateAppAsync(req)) + { + // handle response + } + - target: $["paths"]["/apps/v2/apps/{appId}"]["delete"] + update: + x-codeSamples: + - lang: unity + label: DeleteApp + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + DeleteAppRequest req = new DeleteAppRequest() {}; + + + using(var res = await sdk.AppsV2.DeleteAppAsync(req)) + { + // handle response + } + - target: $["paths"]["/apps/v2/apps/{appId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetApp + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetAppRequest req = new GetAppRequest() {}; + + + using(var res = await sdk.AppsV2.GetAppAsync(req)) + { + // handle response + } + - target: $["paths"]["/apps/v2/apps/{appId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: UpdateApp + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + UpdateAppRequest req = new UpdateAppRequest() { + AppConfig = new AppConfig() { + AuthConfiguration = new AuthConfiguration() {}, + AppName = "minecraft", + }, + }; + + + using(var res = await sdk.AppsV2.UpdateAppAsync(req)) + { + // handle response + } + - target: $["paths"]["/auth/v1/{appId}/login/anonymous"]["post"] + update: + x-codeSamples: + - lang: unity + label: LoginAnonymous + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + LoginAnonymousRequest req = new LoginAnonymousRequest() {}; + + + using(var res = await sdk.AuthV1.LoginAnonymousAsync(req)) + { + // handle response + } + - target: $["paths"]["/auth/v1/{appId}/login/google"]["post"] + update: + x-codeSamples: + - lang: unity + label: LoginGoogle + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + LoginGoogleRequest req = new LoginGoogleRequest() { + GoogleIdTokenObject = new GoogleIdTokenObject() { + IdToken = "eyJhbGciOiJSUzI1NiIsImtpZCI6ImZkNDhhNzUxMzhkOWQ0OGYwYWE2MzVlZjU2OWM0ZTE5NmY3YWU4ZDYiLCJ0eXAiOiJKV1QifQ.eyJpc3MiOiJhY2NvdW50cy5nb29nbGUuY29tIiwiYXpwIjoiODQ4NDEyODI2Nzg4LW00bXNyYjZxNDRkbTJ1ZTNrZ3Z1aTBmcTdrZGE1NWxzLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwiYXVkIjoiODQ4NDEyODI2Nzg4LW00bXNyYjZxNDRkbTJ1ZTNrZ3Z1aTBmcTdrZGE1NWxzLmFwcHMuZ29vZ2xldXNlcmNvbnRlbnQuY29tIiwic3ViIjoiMTE0NTQyMzMwNzI3MTU2MTMzNzc2IiwiZW1haWwiOiJocGFdkeivmeuzQGdtYWlsLmNvbSIsImVtYWlsX3ZlcmlmaWVkIjp0cnVlLCJhdF9oYXNoIjoidno1NGhhdTNxbnVR", + }, + }; + + + using(var res = await sdk.AuthV1.LoginGoogleAsync(req)) + { + // handle response + } + - target: $["paths"]["/auth/v1/{appId}/login/nickname"]["post"] + update: + x-codeSamples: + - lang: unity + label: LoginNickname + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + LoginNicknameRequest req = new LoginNicknameRequest() { + NicknameObject = new NicknameObject() { + Nickname = "squiddytwoshoes", + }, + }; + + + using(var res = await sdk.AuthV1.LoginNicknameAsync(req)) + { + // handle response + } + - target: $["paths"]["/billing/v1/balance"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetBalance + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + + using(var res = await sdk.BillingV1.GetBalanceAsync()) + { + // handle response + } + - target: $["paths"]["/billing/v1/customerportalurl"]["post"] + update: + x-codeSamples: + - lang: unity + label: InitStripeCustomerPortalUrl + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CustomerPortalUrl req = new CustomerPortalUrl() { + ReturnUrl = "", + }; + + + using(var res = await sdk.BillingV1.InitStripeCustomerPortalUrlAsync(req)) + { + // handle response + } + - target: $["paths"]["/billing/v1/invoices"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetInvoices + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + + using(var res = await sdk.BillingV1.GetInvoicesAsync()) + { + // handle response + } + - target: $["paths"]["/billing/v1/paymentmethod"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetPaymentMethod + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + + using(var res = await sdk.BillingV1.GetPaymentMethodAsync()) + { + // handle response + } + - target: $["paths"]["/billing/v1/upcoming/items"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetUpcomingInvoiceItems + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + + using(var res = await sdk.BillingV1.GetUpcomingInvoiceItemsAsync()) + { + // handle response + } + - target: $["paths"]["/billing/v1/upcoming/total"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetUpcomingInvoiceTotal + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + + using(var res = await sdk.BillingV1.GetUpcomingInvoiceTotalAsync()) + { + // handle response + } + - target: $["paths"]["/builds/v1/{appId}/create"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateBuildDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateBuildDeprecatedRequest req = new CreateBuildDeprecatedRequest() { + CreateBuildParams = new CreateBuildParams() { + BuildTag = "0.1.14-14c793", + }, + }; + + + using(var res = await sdk.BuildsV1.CreateBuildDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v1/{appId}/delete/{buildId}"]["delete"] + update: + x-codeSamples: + - lang: unity + label: DeleteBuildDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + DeleteBuildDeprecatedRequest req = new DeleteBuildDeprecatedRequest() { + BuildId = 1, + }; + + + using(var res = await sdk.BuildsV1.DeleteBuildDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v1/{appId}/info/{buildId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetBuildInfoDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetBuildInfoDeprecatedRequest req = new GetBuildInfoDeprecatedRequest() { + BuildId = 1, + }; + + + using(var res = await sdk.BuildsV1.GetBuildInfoDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v1/{appId}/list"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetBuildsDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetBuildsDeprecatedRequest req = new GetBuildsDeprecatedRequest() {}; + + + using(var res = await sdk.BuildsV1.GetBuildsDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v1/{appId}/run/{buildId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: RunBuildDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + RunBuildDeprecatedRequest req = new RunBuildDeprecatedRequest() { + BuildId = 1, + RequestBody = new RunBuildDeprecatedRequestBody() { + File = new File() { + FileName = "your_file_here", + Content = System.Text.Encoding.UTF8.GetBytes("0x96Cf4be63b"), + }, + }, + }; + + + using(var res = await sdk.BuildsV1.RunBuildDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v2/{appId}/create"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateBuildV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateBuildV2DeprecatedRequest req = new CreateBuildV2DeprecatedRequest() { + CreateBuildParams = new CreateBuildParams() { + BuildTag = "0.1.14-14c793", + }, + }; + + + using(var res = await sdk.BuildsV2.CreateBuildV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v2/{appId}/createWithMultipartUploads"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateWithMultipartUploadsV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateWithMultipartUploadsV2DeprecatedRequest req = new CreateWithMultipartUploadsV2DeprecatedRequest() { + CreateMultipartBuildParams = new CreateMultipartBuildParams() { + BuildTag = "0.1.14-14c793", + BuildSizeInBytes = 3146.66D, + }, + }; + + + using(var res = await sdk.BuildsV2.CreateWithMultipartUploadsV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v2/{appId}/createWithUploadUrl"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateBuildWithUploadUrlV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateBuildWithUploadUrlV2DeprecatedRequest req = new CreateBuildWithUploadUrlV2DeprecatedRequest() { + CreateBuildParams = new CreateBuildParams() { + BuildTag = "0.1.14-14c793", + }, + }; + + + using(var res = await sdk.BuildsV2.CreateBuildWithUploadUrlV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v2/{appId}/delete/{buildId}"]["delete"] + update: + x-codeSamples: + - lang: unity + label: DeleteBuildV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + DeleteBuildV2DeprecatedRequest req = new DeleteBuildV2DeprecatedRequest() { + BuildId = 1, + }; + + + using(var res = await sdk.BuildsV2.DeleteBuildV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v2/{appId}/info/{buildId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetBuildInfoV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetBuildInfoV2DeprecatedRequest req = new GetBuildInfoV2DeprecatedRequest() { + BuildId = 1, + }; + + + using(var res = await sdk.BuildsV2.GetBuildInfoV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v2/{appId}/list"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetBuildsV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetBuildsV2DeprecatedRequest req = new GetBuildsV2DeprecatedRequest() {}; + + + using(var res = await sdk.BuildsV2.GetBuildsV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v2/{appId}/run/{buildId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: RunBuildV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + RunBuildV2DeprecatedRequest req = new RunBuildV2DeprecatedRequest() { + BuildId = 1, + RequestBody = new RunBuildV2DeprecatedRequestBody() {}, + }; + + + using(var res = await sdk.BuildsV2.RunBuildV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v3/builds"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetBuilds + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetBuildsRequest req = new GetBuildsRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + }; + + + using(var res = await sdk.BuildsV3.GetBuildsAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v3/builds"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateBuild + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateBuildRequest req = new CreateBuildRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + CreateMultipartBuildParams = new CreateMultipartBuildParams() { + BuildTag = "0.1.14-14c793", + BuildSizeInBytes = 5387.85D, + }, + }; + + + using(var res = await sdk.BuildsV3.CreateBuildAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v3/builds/{buildId}"]["delete"] + update: + x-codeSamples: + - lang: unity + label: DeleteBuild + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + DeleteBuildRequest req = new DeleteBuildRequest() { + BuildId = "", + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + }; + + + using(var res = await sdk.BuildsV3.DeleteBuildAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v3/builds/{buildId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetBuild + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetBuildRequest req = new GetBuildRequest() { + BuildId = "", + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + }; + + + using(var res = await sdk.BuildsV3.GetBuildAsync(req)) + { + // handle response + } + - target: $["paths"]["/builds/v3/builds/{buildId}/run"]["post"] + update: + x-codeSamples: + - lang: unity + label: RunBuild + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + RunBuildRequest req = new RunBuildRequest() { + BuildId = "", + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + }; + + + using(var res = await sdk.BuildsV3.RunBuildAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v1/{appId}/create/{buildId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateDeploymentV1Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + using System.Collections.Generic; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateDeploymentV1DeprecatedRequest req = new CreateDeploymentV1DeprecatedRequest() { + BuildId = 1, + DeploymentConfig = new DeploymentConfig() { + Env = new List() { + new DeploymentConfigEnv() { + Value = "TRUE", + Name = "EULA", + }, + }, + RoomsPerProcess = 3, + PlanName = PlanName.Tiny, + AdditionalContainerPorts = new List() { + new ContainerPort() { + TransportType = TransportType.Tcp, + Port = 8000, + Name = "default", + }, + }, + TransportType = TransportType.Tcp, + ContainerPort = 4000, + }, + }; + + + using(var res = await sdk.DeploymentsV1.CreateDeploymentV1DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v1/{appId}/info/{deploymentId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetDeploymentInfoV1Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetDeploymentInfoV1DeprecatedRequest req = new GetDeploymentInfoV1DeprecatedRequest() { + DeploymentId = 1, + }; + + + using(var res = await sdk.DeploymentsV1.GetDeploymentInfoV1DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v1/{appId}/latest"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetLatestDeploymentV1Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetLatestDeploymentV1DeprecatedRequest req = new GetLatestDeploymentV1DeprecatedRequest() {}; + + + using(var res = await sdk.DeploymentsV1.GetLatestDeploymentV1DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v1/{appId}/list"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetDeploymentsV1Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetDeploymentsV1DeprecatedRequest req = new GetDeploymentsV1DeprecatedRequest() {}; + + + using(var res = await sdk.DeploymentsV1.GetDeploymentsV1DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v2/{appId}/create/{buildId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateDeploymentV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + using System.Collections.Generic; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateDeploymentV2DeprecatedRequest req = new CreateDeploymentV2DeprecatedRequest() { + BuildId = 1, + DeploymentConfigV2 = new DeploymentConfigV2() { + IdleTimeoutEnabled = false, + Env = new List() { + new DeploymentConfigV2Env() { + Value = "TRUE", + Name = "EULA", + }, + }, + RoomsPerProcess = 3, + AdditionalContainerPorts = new List() { + new ContainerPort() { + TransportType = TransportType.Tls, + Port = 8000, + Name = "default", + }, + }, + TransportType = TransportType.Tcp, + ContainerPort = 4000, + RequestedMemoryMB = 1024D, + RequestedCPU = 0.5D, + }, + }; + + + using(var res = await sdk.DeploymentsV2.CreateDeploymentV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v2/{appId}/info/{deploymentId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetDeploymentInfoV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetDeploymentInfoV2DeprecatedRequest req = new GetDeploymentInfoV2DeprecatedRequest() { + DeploymentId = 1, + }; + + + using(var res = await sdk.DeploymentsV2.GetDeploymentInfoV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v2/{appId}/latest"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetLatestDeploymentV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetLatestDeploymentV2DeprecatedRequest req = new GetLatestDeploymentV2DeprecatedRequest() {}; + + + using(var res = await sdk.DeploymentsV2.GetLatestDeploymentV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v2/{appId}/list"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetDeploymentsV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetDeploymentsV2DeprecatedRequest req = new GetDeploymentsV2DeprecatedRequest() {}; + + + using(var res = await sdk.DeploymentsV2.GetDeploymentsV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v3/apps/{appId}/deployments"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetDeployments + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetDeploymentsRequest req = new GetDeploymentsRequest() {}; + + + using(var res = await sdk.DeploymentsV3.GetDeploymentsAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v3/apps/{appId}/deployments"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateDeployment + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + using System.Collections.Generic; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateDeploymentRequest req = new CreateDeploymentRequest() { + DeploymentConfigV3 = new DeploymentConfigV3() { + IdleTimeoutEnabled = false, + Env = new List() { + new DeploymentConfigV3Env() { + Value = "TRUE", + Name = "EULA", + }, + }, + RoomsPerProcess = 3, + AdditionalContainerPorts = new List() { + new ContainerPort() { + TransportType = TransportType.Udp, + Port = 8000, + Name = "default", + }, + }, + TransportType = TransportType.Tcp, + ContainerPort = 4000, + RequestedMemoryMB = 1024D, + RequestedCPU = 0.5D, + BuildId = "", + }, + }; + + + using(var res = await sdk.DeploymentsV3.CreateDeploymentAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v3/apps/{appId}/deployments/latest"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetLatestDeployment + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetLatestDeploymentRequest req = new GetLatestDeploymentRequest() {}; + + + using(var res = await sdk.DeploymentsV3.GetLatestDeploymentAsync(req)) + { + // handle response + } + - target: $["paths"]["/deployments/v3/apps/{appId}/deployments/{deploymentId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetDeployment + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetDeploymentRequest req = new GetDeploymentRequest() { + DeploymentId = "", + }; + + + using(var res = await sdk.DeploymentsV3.GetDeploymentAsync(req)) + { + // handle response + } + - target: $["paths"]["/discovery/v1/ping"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetPingServiceEndpointsDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + + using(var res = await sdk.DiscoveryV1.GetPingServiceEndpointsDeprecatedAsync()) + { + // handle response + } + - target: $["paths"]["/discovery/v2/ping"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetPingServiceEndpoints + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + + using(var res = await sdk.DiscoveryV2.GetPingServiceEndpointsAsync()) + { + // handle response + } + - target: $["paths"]["/lobby/v1/{appId}/create/private"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreatePrivateLobbyDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Operations; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreatePrivateLobbyDeprecatedRequest req = new CreatePrivateLobbyDeprecatedRequest() {}; + + + using(var res = await sdk.LobbiesV1.CreatePrivateLobbyDeprecatedAsync( + security: new CreatePrivateLobbyDeprecatedSecurity() { + PlayerAuth = "", + }, + req)) + { + // handle response + } + - target: $["paths"]["/lobby/v1/{appId}/create/public"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreatePublicLobbyDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Operations; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreatePublicLobbyDeprecatedRequest req = new CreatePublicLobbyDeprecatedRequest() {}; + + + using(var res = await sdk.LobbiesV1.CreatePublicLobbyDeprecatedAsync( + security: new CreatePublicLobbyDeprecatedSecurity() { + PlayerAuth = "", + }, + req)) + { + // handle response + } + - target: $["paths"]["/lobby/v1/{appId}/list"]["get"] + update: + x-codeSamples: + - lang: unity + label: ListActivePublicLobbiesDeprecatedV1 + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + ListActivePublicLobbiesDeprecatedV1Request req = new ListActivePublicLobbiesDeprecatedV1Request() {}; + + + using(var res = await sdk.LobbiesV1.ListActivePublicLobbiesDeprecatedV1Async(req)) + { + // handle response + } + - target: $["paths"]["/lobby/v2/{appId}/create"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateLobbyDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Operations; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateLobbyDeprecatedRequest req = new CreateLobbyDeprecatedRequest() { + RoomId = "2swovpy1fnunu", + CreateLobbyParams = new CreateLobbyParams() { + Visibility = LobbyVisibility.Private, + InitialConfig = "", + Region = Region.Tokyo, + }, + }; + + + using(var res = await sdk.LobbiesV2.CreateLobbyDeprecatedAsync( + security: new CreateLobbyDeprecatedSecurity() { + PlayerAuth = "", + }, + req)) + { + // handle response + } + - target: $["paths"]["/lobby/v2/{appId}/create/local"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateLocalLobby + source: |- + using HathoraCloud; + using HathoraCloud.Models.Operations; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateLocalLobbyRequest req = new CreateLocalLobbyRequest() { + RoomId = "2swovpy1fnunu", + RequestBody = new CreateLocalLobbyRequestBody() { + InitialConfig = "", + Region = Region.SaoPaulo, + }, + }; + + + using(var res = await sdk.LobbiesV2.CreateLocalLobbyAsync( + security: new CreateLocalLobbySecurity() { + PlayerAuth = "", + }, + req)) + { + // handle response + } + - target: $["paths"]["/lobby/v2/{appId}/create/private"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreatePrivateLobby + source: |- + using HathoraCloud; + using HathoraCloud.Models.Operations; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreatePrivateLobbyRequest req = new CreatePrivateLobbyRequest() { + RoomId = "2swovpy1fnunu", + RequestBody = new CreatePrivateLobbyRequestBody() { + InitialConfig = "", + Region = Region.Chicago, + }, + }; + + + using(var res = await sdk.LobbiesV2.CreatePrivateLobbyAsync( + security: new CreatePrivateLobbySecurity() { + PlayerAuth = "", + }, + req)) + { + // handle response + } + - target: $["paths"]["/lobby/v2/{appId}/create/public"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreatePublicLobby + source: |- + using HathoraCloud; + using HathoraCloud.Models.Operations; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreatePublicLobbyRequest req = new CreatePublicLobbyRequest() { + RoomId = "2swovpy1fnunu", + RequestBody = new CreatePublicLobbyRequestBody() { + InitialConfig = "", + Region = Region.SaoPaulo, + }, + }; + + + using(var res = await sdk.LobbiesV2.CreatePublicLobbyAsync( + security: new CreatePublicLobbySecurity() { + PlayerAuth = "", + }, + req)) + { + // handle response + } + - target: $["paths"]["/lobby/v2/{appId}/info/{roomId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetLobbyInfo + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetLobbyInfoRequest req = new GetLobbyInfoRequest() { + RoomId = "2swovpy1fnunu", + }; + + + using(var res = await sdk.LobbiesV2.GetLobbyInfoAsync(req)) + { + // handle response + } + - target: $["paths"]["/lobby/v2/{appId}/list/public"]["get"] + update: + x-codeSamples: + - lang: unity + label: ListActivePublicLobbiesDeprecatedV2 + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + ListActivePublicLobbiesDeprecatedV2Request req = new ListActivePublicLobbiesDeprecatedV2Request() {}; + + + using(var res = await sdk.LobbiesV2.ListActivePublicLobbiesDeprecatedV2Async(req)) + { + // handle response + } + - target: $["paths"]["/lobby/v2/{appId}/setState/{roomId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: SetLobbyState + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + SetLobbyStateRequest req = new SetLobbyStateRequest() { + RoomId = "2swovpy1fnunu", + SetLobbyStateParams = new SetLobbyStateParams() { + State = "", + }, + }; + + + using(var res = await sdk.LobbiesV2.SetLobbyStateAsync(req)) + { + // handle response + } + - target: $["paths"]["/lobby/v3/{appId}/create"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateLobby + source: |- + using HathoraCloud; + using HathoraCloud.Models.Operations; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateLobbyRequest req = new CreateLobbyRequest() { + ShortCode = "LFG4", + RoomId = "2swovpy1fnunu", + CreateLobbyV3Params = new CreateLobbyV3Params() { + Visibility = LobbyVisibility.Private, + RoomConfig = "{\"name\":\"my-room\"}", + Region = Region.Seattle, + }, + }; + + + using(var res = await sdk.LobbiesV3.CreateLobbyAsync( + security: new CreateLobbySecurity() { + PlayerAuth = "", + }, + req)) + { + // handle response + } + - target: $["paths"]["/lobby/v3/{appId}/info/roomid/{roomId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetLobbyInfoByRoomId + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetLobbyInfoByRoomIdRequest req = new GetLobbyInfoByRoomIdRequest() { + RoomId = "2swovpy1fnunu", + }; + + + using(var res = await sdk.LobbiesV3.GetLobbyInfoByRoomIdAsync(req)) + { + // handle response + } + - target: $["paths"]["/lobby/v3/{appId}/info/shortcode/{shortCode}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetLobbyInfoByShortCode + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetLobbyInfoByShortCodeRequest req = new GetLobbyInfoByShortCodeRequest() { + ShortCode = "LFG4", + }; + + + using(var res = await sdk.LobbiesV3.GetLobbyInfoByShortCodeAsync(req)) + { + // handle response + } + - target: $["paths"]["/lobby/v3/{appId}/list/public"]["get"] + update: + x-codeSamples: + - lang: unity + label: ListActivePublicLobbies + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + ListActivePublicLobbiesRequest req = new ListActivePublicLobbiesRequest() {}; + + + using(var res = await sdk.LobbiesV3.ListActivePublicLobbiesAsync(req)) + { + // handle response + } + - target: $["paths"]["/logs/v1/{appId}/all"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetLogsForApp + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetLogsForAppRequest req = new GetLogsForAppRequest() { + TailLines = 100, + }; + + + using(var res = await sdk.LogsV1.GetLogsForAppAsync(req)) + { + // handle response + } + - target: $["paths"]["/logs/v1/{appId}/deployment/{deploymentId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetLogsForDeployment + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetLogsForDeploymentRequest req = new GetLogsForDeploymentRequest() { + DeploymentId = 1, + TailLines = 100, + }; + + + using(var res = await sdk.LogsV1.GetLogsForDeploymentAsync(req)) + { + // handle response + } + - target: $["paths"]["/logs/v1/{appId}/process/{processId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetLogsForProcess + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetLogsForProcessRequest req = new GetLogsForProcessRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + TailLines = 100, + }; + + + using(var res = await sdk.LogsV1.GetLogsForProcessAsync(req)) + { + // handle response + } + - target: $["paths"]["/logs/v1/{appId}/process/{processId}/download"]["get"] + update: + x-codeSamples: + - lang: unity + label: DownloadLogForProcess + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + DownloadLogForProcessRequest req = new DownloadLogForProcessRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + }; + + + using(var res = await sdk.LogsV1.DownloadLogForProcessAsync(req)) + { + // handle response + } + - target: $["paths"]["/management/v1/sendverificationemail"]["post"] + update: + x-codeSamples: + - lang: unity + label: SendVerificationEmail + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + VerificationEmailRequest req = new VerificationEmailRequest() { + UserId = "", + }; + + + using(var res = await sdk.ManagementV1.SendVerificationEmailAsync(req)) + { + // handle response + } + - target: $["paths"]["/metrics/v1/{appId}/process/{processId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetMetrics + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + using System.Collections.Generic; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetMetricsRequest req = new GetMetricsRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + }; + + + using(var res = await sdk.MetricsV1.GetMetricsAsync(req)) + { + // handle response + } + - target: $["paths"]["/orgs/v1"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetOrgs + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + + using(var res = await sdk.OrganizationsV1.GetOrgsAsync()) + { + // handle response + } + - target: $["paths"]["/orgs/v1/user/invites/pending"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetUserPendingInvites + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + + using(var res = await sdk.OrganizationsV1.GetUserPendingInvitesAsync()) + { + // handle response + } + - target: $["paths"]["/orgs/v1/{orgId}/invites"]["put"] + update: + x-codeSamples: + - lang: unity + label: InviteUser + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + InviteUserRequest req = new InviteUserRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + CreateUserInvite = new CreateUserInvite() { + UserEmail = "noreply@hathora.dev", + }, + }; + + + using(var res = await sdk.OrganizationsV1.InviteUserAsync(req)) + { + // handle response + } + - target: $["paths"]["/orgs/v1/{orgId}/invites/accept"]["post"] + update: + x-codeSamples: + - lang: unity + label: AcceptInvite + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + AcceptInviteRequest req = new AcceptInviteRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + }; + + + using(var res = await sdk.OrganizationsV1.AcceptInviteAsync(req)) + { + // handle response + } + - target: $["paths"]["/orgs/v1/{orgId}/invites/pending"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetOrgPendingInvites + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetOrgPendingInvitesRequest req = new GetOrgPendingInvitesRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + }; + + + using(var res = await sdk.OrganizationsV1.GetOrgPendingInvitesAsync(req)) + { + // handle response + } + - target: $["paths"]["/orgs/v1/{orgId}/invites/reject"]["post"] + update: + x-codeSamples: + - lang: unity + label: RejectInvite + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + RejectInviteRequest req = new RejectInviteRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + }; + + + using(var res = await sdk.OrganizationsV1.RejectInviteAsync(req)) + { + // handle response + } + - target: $["paths"]["/orgs/v1/{orgId}/invites/rescind"]["post"] + update: + x-codeSamples: + - lang: unity + label: RescindInvite + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + RescindInviteRequest req = new RescindInviteRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + RescindUserInvite = new RescindUserInvite() { + UserEmail = "noreply@hathora.dev", + }, + }; + + + using(var res = await sdk.OrganizationsV1.RescindInviteAsync(req)) + { + // handle response + } + - target: $["paths"]["/orgs/v1/{orgId}/members"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetOrgMembers + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetOrgMembersRequest req = new GetOrgMembersRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + }; + + + using(var res = await sdk.OrganizationsV1.GetOrgMembersAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v1/{appId}/info/{processId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetProcessInfoDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetProcessInfoDeprecatedRequest req = new GetProcessInfoDeprecatedRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + }; + + + using(var res = await sdk.ProcessesV1.GetProcessInfoDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v1/{appId}/list/running"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetRunningProcesses + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetRunningProcessesRequest req = new GetRunningProcessesRequest() {}; + + + using(var res = await sdk.ProcessesV1.GetRunningProcessesAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v1/{appId}/list/stopped"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetStoppedProcesses + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetStoppedProcessesRequest req = new GetStoppedProcessesRequest() {}; + + + using(var res = await sdk.ProcessesV1.GetStoppedProcessesAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v2/{appId}/count"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetProcessesCountExperimentalV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + using System.Collections.Generic; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetProcessesCountExperimentalV2DeprecatedRequest req = new GetProcessesCountExperimentalV2DeprecatedRequest() {}; + + + using(var res = await sdk.ProcessesV2.GetProcessesCountExperimentalV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v2/{appId}/create/{region}"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateProcessV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateProcessV2DeprecatedRequest req = new CreateProcessV2DeprecatedRequest() { + Region = Region.Mumbai, + }; + + + using(var res = await sdk.ProcessesV2.CreateProcessV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v2/{appId}/info/{processId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetProcessInfoV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetProcessInfoV2DeprecatedRequest req = new GetProcessInfoV2DeprecatedRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + }; + + + using(var res = await sdk.ProcessesV2.GetProcessInfoV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v2/{appId}/list/latest"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetLatestProcessesV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + using System.Collections.Generic; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetLatestProcessesV2DeprecatedRequest req = new GetLatestProcessesV2DeprecatedRequest() {}; + + + using(var res = await sdk.ProcessesV2.GetLatestProcessesV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v2/{appId}/stop/{processId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: StopProcessV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + StopProcessV2DeprecatedRequest req = new StopProcessV2DeprecatedRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + }; + + + using(var res = await sdk.ProcessesV2.StopProcessV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v3/apps/{appId}/processes/count"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetProcessesCountExperimental + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + using System.Collections.Generic; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetProcessesCountExperimentalRequest req = new GetProcessesCountExperimentalRequest() {}; + + + using(var res = await sdk.ProcessesV3.GetProcessesCountExperimentalAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v3/apps/{appId}/processes/latest"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetLatestProcesses + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + using System.Collections.Generic; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetLatestProcessesRequest req = new GetLatestProcessesRequest() {}; + + + using(var res = await sdk.ProcessesV3.GetLatestProcessesAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v3/apps/{appId}/processes/regions/{region}"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateProcess + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateProcessRequest req = new CreateProcessRequest() { + Region = Region.Tokyo, + }; + + + using(var res = await sdk.ProcessesV3.CreateProcessAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v3/apps/{appId}/processes/{processId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetProcess + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetProcessRequest req = new GetProcessRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + }; + + + using(var res = await sdk.ProcessesV3.GetProcessAsync(req)) + { + // handle response + } + - target: $["paths"]["/processes/v3/apps/{appId}/processes/{processId}/stop"]["post"] + update: + x-codeSamples: + - lang: unity + label: StopProcess + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + StopProcessRequest req = new StopProcessRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + }; + + + using(var res = await sdk.ProcessesV3.StopProcessAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v1/{appId}/connectioninfo/{roomId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetConnectionInfoDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetConnectionInfoDeprecatedRequest req = new GetConnectionInfoDeprecatedRequest() { + RoomId = "2swovpy1fnunu", + }; + + + using(var res = await sdk.RoomsV1.GetConnectionInfoDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v1/{appId}/create"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateRoomDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + using System.Collections.Generic; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateRoomDeprecatedRequest req = new CreateRoomDeprecatedRequest() { + RoomId = "2swovpy1fnunu", + CreateRoomParams = new CreateRoomParams() { + RoomConfig = "{\"name\":\"my-room\"}", + Region = Region.Chicago, + }, + }; + + + using(var res = await sdk.RoomsV1.CreateRoomDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v1/{appId}/destroy/{roomId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: DestroyRoomDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + DestroyRoomDeprecatedRequest req = new DestroyRoomDeprecatedRequest() { + RoomId = "2swovpy1fnunu", + }; + + + using(var res = await sdk.RoomsV1.DestroyRoomDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v1/{appId}/info/{roomId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetRoomInfoDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetRoomInfoDeprecatedRequest req = new GetRoomInfoDeprecatedRequest() { + RoomId = "2swovpy1fnunu", + }; + + + using(var res = await sdk.RoomsV1.GetRoomInfoDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v1/{appId}/list/{processId}/active"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetActiveRoomsForProcessDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetActiveRoomsForProcessDeprecatedRequest req = new GetActiveRoomsForProcessDeprecatedRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + }; + + + using(var res = await sdk.RoomsV1.GetActiveRoomsForProcessDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v1/{appId}/list/{processId}/inactive"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetInactiveRoomsForProcessDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetInactiveRoomsForProcessDeprecatedRequest req = new GetInactiveRoomsForProcessDeprecatedRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + }; + + + using(var res = await sdk.RoomsV1.GetInactiveRoomsForProcessDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v1/{appId}/suspend/{roomId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: SuspendRoomDeprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + SuspendRoomDeprecatedRequest req = new SuspendRoomDeprecatedRequest() { + RoomId = "2swovpy1fnunu", + }; + + + using(var res = await sdk.RoomsV1.SuspendRoomDeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v2/{appId}/connectioninfo/{roomId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetConnectionInfo + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetConnectionInfoRequest req = new GetConnectionInfoRequest() { + RoomId = "2swovpy1fnunu", + }; + + + using(var res = await sdk.RoomsV2.GetConnectionInfoAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v2/{appId}/create"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateRoom + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + using System.Collections.Generic; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateRoomRequest req = new CreateRoomRequest() { + RoomId = "2swovpy1fnunu", + CreateRoomParams = new CreateRoomParams() { + RoomConfig = "{\"name\":\"my-room\"}", + Region = Region.SaoPaulo, + }, + }; + + + using(var res = await sdk.RoomsV2.CreateRoomAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v2/{appId}/destroy/{roomId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: DestroyRoom + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + DestroyRoomRequest req = new DestroyRoomRequest() { + RoomId = "2swovpy1fnunu", + }; + + + using(var res = await sdk.RoomsV2.DestroyRoomAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v2/{appId}/info/{roomId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetRoomInfo + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetRoomInfoRequest req = new GetRoomInfoRequest() { + RoomId = "2swovpy1fnunu", + }; + + + using(var res = await sdk.RoomsV2.GetRoomInfoAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v2/{appId}/list/{processId}/active"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetActiveRoomsForProcess + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetActiveRoomsForProcessRequest req = new GetActiveRoomsForProcessRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + }; + + + using(var res = await sdk.RoomsV2.GetActiveRoomsForProcessAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v2/{appId}/list/{processId}/inactive"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetInactiveRoomsForProcess + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetInactiveRoomsForProcessRequest req = new GetInactiveRoomsForProcessRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", + }; + + + using(var res = await sdk.RoomsV2.GetInactiveRoomsForProcessAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v2/{appId}/suspend/{roomId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: SuspendRoomV2Deprecated + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + SuspendRoomV2DeprecatedRequest req = new SuspendRoomV2DeprecatedRequest() { + RoomId = "2swovpy1fnunu", + }; + + + using(var res = await sdk.RoomsV2.SuspendRoomV2DeprecatedAsync(req)) + { + // handle response + } + - target: $["paths"]["/rooms/v2/{appId}/update/{roomId}"]["post"] + update: + x-codeSamples: + - lang: unity + label: UpdateRoomConfig + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + UpdateRoomConfigRequest req = new UpdateRoomConfigRequest() { + RoomId = "2swovpy1fnunu", + UpdateRoomConfigParams = new UpdateRoomConfigParams() { + RoomConfig = "{\"name\":\"my-room\"}", + }, + }; + + + using(var res = await sdk.RoomsV2.UpdateRoomConfigAsync(req)) + { + // handle response + } + - target: $["paths"]["/tokens/v1/orgs/{orgId}"]["get"] + update: + x-codeSamples: + - lang: unity + label: GetOrgTokens + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + GetOrgTokensRequest req = new GetOrgTokensRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + }; + + + using(var res = await sdk.TokensV1.GetOrgTokensAsync(req)) + { + // handle response + } + - target: $["paths"]["/tokens/v1/orgs/{orgId}/create"]["post"] + update: + x-codeSamples: + - lang: unity + label: CreateOrgToken + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + CreateOrgTokenRequest req = new CreateOrgTokenRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + CreateOrgToken = new CreateOrgToken() { + Name = "ci-token", + }, + }; + + + using(var res = await sdk.TokensV1.CreateOrgTokenAsync(req)) + { + // handle response + } + - target: $["paths"]["/tokens/v1/orgs/{orgId}/tokens/{orgTokenId}/revoke"]["post"] + update: + x-codeSamples: + - lang: unity + label: RevokeOrgToken + source: |- + using HathoraCloud; + using HathoraCloud.Models.Shared; + using HathoraCloud.Models.Operations; + + var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + RevokeOrgTokenRequest req = new RevokeOrgTokenRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + OrgTokenId = "org-token-af469a92-5b45-4565-b3c4-b79878de67d2", + }; + + + using(var res = await sdk.TokensV1.RevokeOrgTokenAsync(req)) + { + // handle response + } diff --git a/docs/Models/Operations/CreateAppRequest.md b/docs/Models/Operations/CreateAppRequest.md new file mode 100644 index 00000000..2a9c1e70 --- /dev/null +++ b/docs/Models/Operations/CreateAppRequest.md @@ -0,0 +1,9 @@ +# CreateAppRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `AppConfig` | [AppConfig](../../Models/Shared/AppConfig.md) | :heavy_check_mark: | N/A | | +| `OrgId` | *string* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/Models/Operations/CreateAppV1DeprecatedResponse.md b/docs/Models/Operations/CreateAppV1DeprecatedResponse.md new file mode 100644 index 00000000..bf6116c4 --- /dev/null +++ b/docs/Models/Operations/CreateAppV1DeprecatedResponse.md @@ -0,0 +1,11 @@ +# CreateAppV1DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `Application` | [HathoraCloud.Models.Shared.Application](../../Models/Shared/Application.md) | :heavy_minus_sign: | N/A | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CreateBuildRequest.md b/docs/Models/Operations/CreateBuildRequest.md index 9de7ce85..1ab84343 100644 --- a/docs/Models/Operations/CreateBuildRequest.md +++ b/docs/Models/Operations/CreateBuildRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | -| `CreateBuildParams` | [CreateBuildParams](../../Models/Shared/CreateBuildParams.md) | :heavy_check_mark: | N/A | | -| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `CreateMultipartBuildParams` | [CreateMultipartBuildParams](../../Models/Shared/CreateMultipartBuildParams.md) | :heavy_check_mark: | N/A | | +| `OrgId` | *string* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/Models/Operations/CreateBuildResponse.md b/docs/Models/Operations/CreateBuildResponse.md index f9913f01..6ea936c7 100644 --- a/docs/Models/Operations/CreateBuildResponse.md +++ b/docs/Models/Operations/CreateBuildResponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `Build` | [Build](../../Models/Shared/Build.md) | :heavy_minus_sign: | N/A | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `CreatedBuildV3WithMultipartUrls` | [CreatedBuildV3WithMultipartUrls](../../Models/Shared/CreatedBuildV3WithMultipartUrls.md) | :heavy_minus_sign: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CreateBuildV2DeprecatedRequest.md b/docs/Models/Operations/CreateBuildV2DeprecatedRequest.md new file mode 100644 index 00000000..16b540ef --- /dev/null +++ b/docs/Models/Operations/CreateBuildV2DeprecatedRequest.md @@ -0,0 +1,9 @@ +# CreateBuildV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `CreateBuildParams` | [CreateBuildParams](../../Models/Shared/CreateBuildParams.md) | :heavy_check_mark: | N/A | | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/CreateBuildV2DeprecatedResponse.md b/docs/Models/Operations/CreateBuildV2DeprecatedResponse.md new file mode 100644 index 00000000..5c42ff33 --- /dev/null +++ b/docs/Models/Operations/CreateBuildV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# CreateBuildV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `Build` | [Build](../../Models/Shared/Build.md) | :heavy_minus_sign: | N/A | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedRequest.md b/docs/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedRequest.md new file mode 100644 index 00000000..21855701 --- /dev/null +++ b/docs/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedRequest.md @@ -0,0 +1,9 @@ +# CreateBuildWithUploadUrlV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `CreateBuildParams` | [CreateBuildParams](../../Models/Shared/CreateBuildParams.md) | :heavy_check_mark: | N/A | | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedResponse.md b/docs/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedResponse.md new file mode 100644 index 00000000..aa307edd --- /dev/null +++ b/docs/Models/Operations/CreateBuildWithUploadUrlV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# CreateBuildWithUploadUrlV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `BuildWithUploadUrl` | [BuildWithUploadUrl](../../Models/Shared/BuildWithUploadUrl.md) | :heavy_minus_sign: | N/A | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CreateDeploymentRequest.md b/docs/Models/Operations/CreateDeploymentRequest.md index 94cf6c47..b649cefd 100644 --- a/docs/Models/Operations/CreateDeploymentRequest.md +++ b/docs/Models/Operations/CreateDeploymentRequest.md @@ -5,6 +5,5 @@ | Field | Type | Required | Description | Example | | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | -| `DeploymentConfigV2` | [DeploymentConfigV2](../../Models/Shared/DeploymentConfigV2.md) | :heavy_check_mark: | N/A | | -| `BuildId` | *int* | :heavy_check_mark: | N/A | 1 | +| `DeploymentConfigV3` | [DeploymentConfigV3](../../Models/Shared/DeploymentConfigV3.md) | :heavy_check_mark: | N/A | | | `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/CreateDeploymentResponse.md b/docs/Models/Operations/CreateDeploymentResponse.md index a850d5fb..599f9d5c 100644 --- a/docs/Models/Operations/CreateDeploymentResponse.md +++ b/docs/Models/Operations/CreateDeploymentResponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `DeploymentV2` | [HathoraCloud.Models.Shared.DeploymentV2](../../Models/Shared/DeploymentV2.md) | :heavy_minus_sign: | N/A | +| `DeploymentV3` | [DeploymentV3](../../Models/Shared/DeploymentV3.md) | :heavy_minus_sign: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CreateDeploymentDeprecatedRequest.md b/docs/Models/Operations/CreateDeploymentV1DeprecatedRequest.md similarity index 97% rename from docs/Models/Operations/CreateDeploymentDeprecatedRequest.md rename to docs/Models/Operations/CreateDeploymentV1DeprecatedRequest.md index 0ac28a37..69e813a2 100644 --- a/docs/Models/Operations/CreateDeploymentDeprecatedRequest.md +++ b/docs/Models/Operations/CreateDeploymentV1DeprecatedRequest.md @@ -1,4 +1,4 @@ -# CreateDeploymentDeprecatedRequest +# CreateDeploymentV1DeprecatedRequest ## Fields diff --git a/docs/Models/Operations/CreateDeploymentDeprecatedResponse.md b/docs/Models/Operations/CreateDeploymentV1DeprecatedResponse.md similarity index 94% rename from docs/Models/Operations/CreateDeploymentDeprecatedResponse.md rename to docs/Models/Operations/CreateDeploymentV1DeprecatedResponse.md index 92f82473..348a47ff 100644 --- a/docs/Models/Operations/CreateDeploymentDeprecatedResponse.md +++ b/docs/Models/Operations/CreateDeploymentV1DeprecatedResponse.md @@ -1,4 +1,4 @@ -# CreateDeploymentDeprecatedResponse +# CreateDeploymentV1DeprecatedResponse ## Fields @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `Deployment` | [Deployment](../../Models/Shared/Deployment.md) | :heavy_minus_sign: | N/A | +| `DeploymentV1` | [DeploymentV1](../../Models/Shared/DeploymentV1.md) | :heavy_minus_sign: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CreateDeploymentV2DeprecatedRequest.md b/docs/Models/Operations/CreateDeploymentV2DeprecatedRequest.md new file mode 100644 index 00000000..9cba19eb --- /dev/null +++ b/docs/Models/Operations/CreateDeploymentV2DeprecatedRequest.md @@ -0,0 +1,10 @@ +# CreateDeploymentV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `DeploymentConfigV2` | [DeploymentConfigV2](../../Models/Shared/DeploymentConfigV2.md) | :heavy_check_mark: | N/A | | +| `BuildId` | *int* | :heavy_check_mark: | N/A | 1 | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/CreateDeploymentV2DeprecatedResponse.md b/docs/Models/Operations/CreateDeploymentV2DeprecatedResponse.md new file mode 100644 index 00000000..9f759e25 --- /dev/null +++ b/docs/Models/Operations/CreateDeploymentV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# CreateDeploymentV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `DeploymentV2` | [DeploymentV2](../../Models/Shared/DeploymentV2.md) | :heavy_minus_sign: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CreateLocalLobbyRequestBody.md b/docs/Models/Operations/CreateLocalLobbyRequestBody.md index 881ae79d..9967e39e 100644 --- a/docs/Models/Operations/CreateLocalLobbyRequestBody.md +++ b/docs/Models/Operations/CreateLocalLobbyRequestBody.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `InitialConfig` | [LobbyInitialConfig](../../Models/Shared/LobbyInitialConfig.md) | :heavy_check_mark: | User input to initialize the game state. Object must be smaller than 64KB. | +| `InitialConfig` | *object* | :heavy_check_mark: | User input to initialize the game state. Object must be smaller than 64KB. | | `Region` | [Region](../../Models/Shared/Region.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/CreatePrivateLobbyRequestBody.md b/docs/Models/Operations/CreatePrivateLobbyRequestBody.md index 4430731f..de7c6704 100644 --- a/docs/Models/Operations/CreatePrivateLobbyRequestBody.md +++ b/docs/Models/Operations/CreatePrivateLobbyRequestBody.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `InitialConfig` | [LobbyInitialConfig](../../Models/Shared/LobbyInitialConfig.md) | :heavy_check_mark: | User input to initialize the game state. Object must be smaller than 64KB. | +| `InitialConfig` | *object* | :heavy_check_mark: | User input to initialize the game state. Object must be smaller than 64KB. | | `Region` | [Region](../../Models/Shared/Region.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/CreateProcessResponse.md b/docs/Models/Operations/CreateProcessResponse.md index f9dace1f..9c225891 100644 --- a/docs/Models/Operations/CreateProcessResponse.md +++ b/docs/Models/Operations/CreateProcessResponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `ProcessV2` | [ProcessV2](../../Models/Shared/ProcessV2.md) | :heavy_minus_sign: | N/A | +| `ProcessV3` | [ProcessV3](../../Models/Shared/ProcessV3.md) | :heavy_minus_sign: | N/A | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CreateProcessV2DeprecatedRequest.md b/docs/Models/Operations/CreateProcessV2DeprecatedRequest.md new file mode 100644 index 00000000..62e12875 --- /dev/null +++ b/docs/Models/Operations/CreateProcessV2DeprecatedRequest.md @@ -0,0 +1,9 @@ +# CreateProcessV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `Region` | [Region](../../Models/Shared/Region.md) | :heavy_check_mark: | N/A | | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/CreateProcessV2DeprecatedResponse.md b/docs/Models/Operations/CreateProcessV2DeprecatedResponse.md new file mode 100644 index 00000000..1ecc8639 --- /dev/null +++ b/docs/Models/Operations/CreateProcessV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# CreateProcessV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `ProcessV2` | [ProcessV2](../../Models/Shared/ProcessV2.md) | :heavy_minus_sign: | N/A | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/CreatePublicLobbyRequestBody.md b/docs/Models/Operations/CreatePublicLobbyRequestBody.md index cc1e8ca3..d122e0be 100644 --- a/docs/Models/Operations/CreatePublicLobbyRequestBody.md +++ b/docs/Models/Operations/CreatePublicLobbyRequestBody.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `InitialConfig` | [LobbyInitialConfig](../../Models/Shared/LobbyInitialConfig.md) | :heavy_check_mark: | User input to initialize the game state. Object must be smaller than 64KB. | +| `InitialConfig` | *object* | :heavy_check_mark: | User input to initialize the game state. Object must be smaller than 64KB. | | `Region` | [Region](../../Models/Shared/Region.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/CreateWithMultipartUploadsV2DeprecatedRequest.md b/docs/Models/Operations/CreateWithMultipartUploadsV2DeprecatedRequest.md new file mode 100644 index 00000000..f1fe775b --- /dev/null +++ b/docs/Models/Operations/CreateWithMultipartUploadsV2DeprecatedRequest.md @@ -0,0 +1,9 @@ +# CreateWithMultipartUploadsV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `CreateMultipartBuildParams` | [CreateMultipartBuildParams](../../Models/Shared/CreateMultipartBuildParams.md) | :heavy_check_mark: | N/A | | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/CreateWithMultipartUploadsV2DeprecatedResponse.md b/docs/Models/Operations/CreateWithMultipartUploadsV2DeprecatedResponse.md new file mode 100644 index 00000000..8168d51c --- /dev/null +++ b/docs/Models/Operations/CreateWithMultipartUploadsV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# CreateWithMultipartUploadsV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `BuildWithMultipartUrls` | [BuildWithMultipartUrls](../../Models/Shared/BuildWithMultipartUrls.md) | :heavy_minus_sign: | N/A | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetDeploymentsDeprecatedRequest.md b/docs/Models/Operations/DeleteAppV1DeprecatedRequest.md similarity index 95% rename from docs/Models/Operations/GetDeploymentsDeprecatedRequest.md rename to docs/Models/Operations/DeleteAppV1DeprecatedRequest.md index 514369bf..1534e82c 100644 --- a/docs/Models/Operations/GetDeploymentsDeprecatedRequest.md +++ b/docs/Models/Operations/DeleteAppV1DeprecatedRequest.md @@ -1,4 +1,4 @@ -# GetDeploymentsDeprecatedRequest +# DeleteAppV1DeprecatedRequest ## Fields diff --git a/docs/Models/Operations/DeleteAppV1DeprecatedResponse.md b/docs/Models/Operations/DeleteAppV1DeprecatedResponse.md new file mode 100644 index 00000000..21605ac9 --- /dev/null +++ b/docs/Models/Operations/DeleteAppV1DeprecatedResponse.md @@ -0,0 +1,10 @@ +# DeleteAppV1DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteBuildRequest.md b/docs/Models/Operations/DeleteBuildRequest.md index 141295b1..67a2c8e1 100644 --- a/docs/Models/Operations/DeleteBuildRequest.md +++ b/docs/Models/Operations/DeleteBuildRequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | Example | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `BuildId` | *int* | :heavy_check_mark: | N/A | 1 | -| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file +| `BuildId` | *string* | :heavy_check_mark: | N/A | | +| `OrgId` | *string* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/Models/Operations/DeleteBuildResponse.md b/docs/Models/Operations/DeleteBuildResponse.md index 27f0c16c..16f66c80 100644 --- a/docs/Models/Operations/DeleteBuildResponse.md +++ b/docs/Models/Operations/DeleteBuildResponse.md @@ -6,5 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `DeletedBuild` | [DeletedBuild](../../Models/Shared/DeletedBuild.md) | :heavy_minus_sign: | Ok | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetBuildInfoRequest.md b/docs/Models/Operations/DeleteBuildV2DeprecatedRequest.md similarity index 96% rename from docs/Models/Operations/GetBuildInfoRequest.md rename to docs/Models/Operations/DeleteBuildV2DeprecatedRequest.md index 61a4f47a..8e38c945 100644 --- a/docs/Models/Operations/GetBuildInfoRequest.md +++ b/docs/Models/Operations/DeleteBuildV2DeprecatedRequest.md @@ -1,4 +1,4 @@ -# GetBuildInfoRequest +# DeleteBuildV2DeprecatedRequest ## Fields diff --git a/docs/Models/Operations/DeleteBuildV2DeprecatedResponse.md b/docs/Models/Operations/DeleteBuildV2DeprecatedResponse.md new file mode 100644 index 00000000..c585322f --- /dev/null +++ b/docs/Models/Operations/DeleteBuildV2DeprecatedResponse.md @@ -0,0 +1,10 @@ +# DeleteBuildV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/DownloadLogForProcessResponse.md b/docs/Models/Operations/DownloadLogForProcessResponse.md index 3d137913..a0dce519 100644 --- a/docs/Models/Operations/DownloadLogForProcessResponse.md +++ b/docs/Models/Operations/DownloadLogForProcessResponse.md @@ -8,4 +8,4 @@ | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Stream` | *MemoryQueueBufferStream* | :heavy_minus_sign: | Ok | \ No newline at end of file +| `ResponseStream` | *MemoryQueueBufferStream* | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetLatestDeploymentDeprecatedRequest.md b/docs/Models/Operations/GetAppInfoV1DeprecatedRequest.md similarity index 94% rename from docs/Models/Operations/GetLatestDeploymentDeprecatedRequest.md rename to docs/Models/Operations/GetAppInfoV1DeprecatedRequest.md index a55df9b8..753f2a48 100644 --- a/docs/Models/Operations/GetLatestDeploymentDeprecatedRequest.md +++ b/docs/Models/Operations/GetAppInfoV1DeprecatedRequest.md @@ -1,4 +1,4 @@ -# GetLatestDeploymentDeprecatedRequest +# GetAppInfoV1DeprecatedRequest ## Fields diff --git a/docs/Models/Operations/GetAppInfoV1DeprecatedResponse.md b/docs/Models/Operations/GetAppInfoV1DeprecatedResponse.md new file mode 100644 index 00000000..719467c0 --- /dev/null +++ b/docs/Models/Operations/GetAppInfoV1DeprecatedResponse.md @@ -0,0 +1,11 @@ +# GetAppInfoV1DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `Application` | [HathoraCloud.Models.Shared.Application](../../Models/Shared/Application.md) | :heavy_minus_sign: | Ok | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetAppInfoRequest.md b/docs/Models/Operations/GetAppRequest.md similarity index 97% rename from docs/Models/Operations/GetAppInfoRequest.md rename to docs/Models/Operations/GetAppRequest.md index 9d03528c..60aa4b4a 100644 --- a/docs/Models/Operations/GetAppInfoRequest.md +++ b/docs/Models/Operations/GetAppRequest.md @@ -1,4 +1,4 @@ -# GetAppInfoRequest +# GetAppRequest ## Fields diff --git a/docs/Models/Operations/GetAppInfoResponse.md b/docs/Models/Operations/GetAppResponse.md similarity index 99% rename from docs/Models/Operations/GetAppInfoResponse.md rename to docs/Models/Operations/GetAppResponse.md index ddfca7dc..ab53752f 100644 --- a/docs/Models/Operations/GetAppInfoResponse.md +++ b/docs/Models/Operations/GetAppResponse.md @@ -1,4 +1,4 @@ -# GetAppInfoResponse +# GetAppResponse ## Fields diff --git a/docs/Models/Operations/GetAppsRequest.md b/docs/Models/Operations/GetAppsRequest.md new file mode 100644 index 00000000..995526e4 --- /dev/null +++ b/docs/Models/Operations/GetAppsRequest.md @@ -0,0 +1,8 @@ +# GetAppsRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `OrgId` | *string* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/Models/Operations/GetAppsResponse.md b/docs/Models/Operations/GetAppsResponse.md index 15c5e771..74cd0206 100644 --- a/docs/Models/Operations/GetAppsResponse.md +++ b/docs/Models/Operations/GetAppsResponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ApplicationsPage` | [ApplicationsPage](../../Models/Shared/ApplicationsPage.md) | :heavy_minus_sign: | Ok | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Classes` | List<[ApplicationWithLatestDeploymentAndBuild](../../Models/Shared/ApplicationWithLatestDeploymentAndBuild.md)> | :heavy_minus_sign: | Ok | \ No newline at end of file +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetAppsV1DeprecatedResponse.md b/docs/Models/Operations/GetAppsV1DeprecatedResponse.md new file mode 100644 index 00000000..8ea1ddfa --- /dev/null +++ b/docs/Models/Operations/GetAppsV1DeprecatedResponse.md @@ -0,0 +1,11 @@ +# GetAppsV1DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `Classes` | List<[ApplicationWithLatestDeploymentAndBuildDeprecated](../../Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecated.md)> | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetBuildInfoV2DeprecatedRequest.md b/docs/Models/Operations/GetBuildInfoV2DeprecatedRequest.md new file mode 100644 index 00000000..f3982ded --- /dev/null +++ b/docs/Models/Operations/GetBuildInfoV2DeprecatedRequest.md @@ -0,0 +1,9 @@ +# GetBuildInfoV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `BuildId` | *int* | :heavy_check_mark: | N/A | 1 | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/GetBuildInfoResponse.md b/docs/Models/Operations/GetBuildInfoV2DeprecatedResponse.md similarity index 98% rename from docs/Models/Operations/GetBuildInfoResponse.md rename to docs/Models/Operations/GetBuildInfoV2DeprecatedResponse.md index 8b40023a..ec49d917 100644 --- a/docs/Models/Operations/GetBuildInfoResponse.md +++ b/docs/Models/Operations/GetBuildInfoV2DeprecatedResponse.md @@ -1,4 +1,4 @@ -# GetBuildInfoResponse +# GetBuildInfoV2DeprecatedResponse ## Fields diff --git a/docs/Models/Operations/GetBuildRequest.md b/docs/Models/Operations/GetBuildRequest.md new file mode 100644 index 00000000..823c966a --- /dev/null +++ b/docs/Models/Operations/GetBuildRequest.md @@ -0,0 +1,9 @@ +# GetBuildRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `BuildId` | *string* | :heavy_check_mark: | N/A | | +| `OrgId` | *string* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/Models/Operations/GetBuildResponse.md b/docs/Models/Operations/GetBuildResponse.md new file mode 100644 index 00000000..9971e20f --- /dev/null +++ b/docs/Models/Operations/GetBuildResponse.md @@ -0,0 +1,11 @@ +# GetBuildResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `BuildV3` | [BuildV3](../../Models/Shared/BuildV3.md) | :heavy_minus_sign: | Ok | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetBuildsRequest.md b/docs/Models/Operations/GetBuildsRequest.md index 7ddbc220..2b71c3df 100644 --- a/docs/Models/Operations/GetBuildsRequest.md +++ b/docs/Models/Operations/GetBuildsRequest.md @@ -5,4 +5,4 @@ | Field | Type | Required | Description | Example | | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file +| `OrgId` | *string* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/Models/Operations/GetBuildsResponse.md b/docs/Models/Operations/GetBuildsResponse.md index b4c2a5b3..f134309d 100644 --- a/docs/Models/Operations/GetBuildsResponse.md +++ b/docs/Models/Operations/GetBuildsResponse.md @@ -5,7 +5,7 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `BuildsV3Page` | [BuildsV3Page](../../Models/Shared/BuildsV3Page.md) | :heavy_minus_sign: | Ok | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Classes` | List<[Build](../../Models/Shared/Build.md)> | :heavy_minus_sign: | Ok | \ No newline at end of file +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetBuildsV2DeprecatedRequest.md b/docs/Models/Operations/GetBuildsV2DeprecatedRequest.md new file mode 100644 index 00000000..cc27648b --- /dev/null +++ b/docs/Models/Operations/GetBuildsV2DeprecatedRequest.md @@ -0,0 +1,8 @@ +# GetBuildsV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/GetBuildsV2DeprecatedResponse.md b/docs/Models/Operations/GetBuildsV2DeprecatedResponse.md new file mode 100644 index 00000000..9d1386eb --- /dev/null +++ b/docs/Models/Operations/GetBuildsV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# GetBuildsV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `Classes` | List<[Build](../../Models/Shared/Build.md)> | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetDeploymentInfoRequest.md b/docs/Models/Operations/GetDeploymentInfoV1DeprecatedRequest.md similarity index 95% rename from docs/Models/Operations/GetDeploymentInfoRequest.md rename to docs/Models/Operations/GetDeploymentInfoV1DeprecatedRequest.md index 0b4b6515..b66625b8 100644 --- a/docs/Models/Operations/GetDeploymentInfoRequest.md +++ b/docs/Models/Operations/GetDeploymentInfoV1DeprecatedRequest.md @@ -1,4 +1,4 @@ -# GetDeploymentInfoRequest +# GetDeploymentInfoV1DeprecatedRequest ## Fields diff --git a/docs/Models/Operations/GetLatestDeploymentDeprecatedResponse.md b/docs/Models/Operations/GetDeploymentInfoV1DeprecatedResponse.md similarity index 94% rename from docs/Models/Operations/GetLatestDeploymentDeprecatedResponse.md rename to docs/Models/Operations/GetDeploymentInfoV1DeprecatedResponse.md index 13f9c82b..a6031d2c 100644 --- a/docs/Models/Operations/GetLatestDeploymentDeprecatedResponse.md +++ b/docs/Models/Operations/GetDeploymentInfoV1DeprecatedResponse.md @@ -1,4 +1,4 @@ -# GetLatestDeploymentDeprecatedResponse +# GetDeploymentInfoV1DeprecatedResponse ## Fields @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `Deployment` | [Deployment](../../Models/Shared/Deployment.md) | :heavy_minus_sign: | Ok | +| `DeploymentV1` | [DeploymentV1](../../Models/Shared/DeploymentV1.md) | :heavy_minus_sign: | Ok | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetDeploymentInfoDeprecatedRequest.md b/docs/Models/Operations/GetDeploymentInfoV2DeprecatedRequest.md similarity index 95% rename from docs/Models/Operations/GetDeploymentInfoDeprecatedRequest.md rename to docs/Models/Operations/GetDeploymentInfoV2DeprecatedRequest.md index fca1c159..3f87bf42 100644 --- a/docs/Models/Operations/GetDeploymentInfoDeprecatedRequest.md +++ b/docs/Models/Operations/GetDeploymentInfoV2DeprecatedRequest.md @@ -1,4 +1,4 @@ -# GetDeploymentInfoDeprecatedRequest +# GetDeploymentInfoV2DeprecatedRequest ## Fields diff --git a/docs/Models/Operations/GetDeploymentInfoV2DeprecatedResponse.md b/docs/Models/Operations/GetDeploymentInfoV2DeprecatedResponse.md new file mode 100644 index 00000000..68f331ef --- /dev/null +++ b/docs/Models/Operations/GetDeploymentInfoV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# GetDeploymentInfoV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `DeploymentV2` | [DeploymentV2](../../Models/Shared/DeploymentV2.md) | :heavy_minus_sign: | Ok | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetDeploymentRequest.md b/docs/Models/Operations/GetDeploymentRequest.md new file mode 100644 index 00000000..84a2aef6 --- /dev/null +++ b/docs/Models/Operations/GetDeploymentRequest.md @@ -0,0 +1,9 @@ +# GetDeploymentRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `DeploymentId` | *string* | :heavy_check_mark: | N/A | | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/GetDeploymentInfoDeprecatedResponse.md b/docs/Models/Operations/GetDeploymentResponse.md similarity index 94% rename from docs/Models/Operations/GetDeploymentInfoDeprecatedResponse.md rename to docs/Models/Operations/GetDeploymentResponse.md index ac653e8b..c85f66eb 100644 --- a/docs/Models/Operations/GetDeploymentInfoDeprecatedResponse.md +++ b/docs/Models/Operations/GetDeploymentResponse.md @@ -1,4 +1,4 @@ -# GetDeploymentInfoDeprecatedResponse +# GetDeploymentResponse ## Fields @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `Deployment` | [Deployment](../../Models/Shared/Deployment.md) | :heavy_minus_sign: | Ok | +| `DeploymentV3` | [DeploymentV3](../../Models/Shared/DeploymentV3.md) | :heavy_minus_sign: | Ok | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetDeploymentsResponse.md b/docs/Models/Operations/GetDeploymentsResponse.md index 518f9fa9..5c320704 100644 --- a/docs/Models/Operations/GetDeploymentsResponse.md +++ b/docs/Models/Operations/GetDeploymentsResponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `DeploymentsV3Page` | [DeploymentsV3Page](../../Models/Shared/DeploymentsV3Page.md) | :heavy_minus_sign: | Ok | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Classes` | List<[HathoraCloud.Models.Shared.DeploymentV2](../../Models/Shared/DeploymentV2.md)> | :heavy_minus_sign: | Ok | \ No newline at end of file +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetDeploymentsV1DeprecatedRequest.md b/docs/Models/Operations/GetDeploymentsV1DeprecatedRequest.md new file mode 100644 index 00000000..2b013640 --- /dev/null +++ b/docs/Models/Operations/GetDeploymentsV1DeprecatedRequest.md @@ -0,0 +1,8 @@ +# GetDeploymentsV1DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/GetDeploymentsDeprecatedResponse.md b/docs/Models/Operations/GetDeploymentsV1DeprecatedResponse.md similarity index 96% rename from docs/Models/Operations/GetDeploymentsDeprecatedResponse.md rename to docs/Models/Operations/GetDeploymentsV1DeprecatedResponse.md index ca496338..9d1329d4 100644 --- a/docs/Models/Operations/GetDeploymentsDeprecatedResponse.md +++ b/docs/Models/Operations/GetDeploymentsV1DeprecatedResponse.md @@ -1,4 +1,4 @@ -# GetDeploymentsDeprecatedResponse +# GetDeploymentsV1DeprecatedResponse ## Fields @@ -8,4 +8,4 @@ | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Classes` | List<[Deployment](../../Models/Shared/Deployment.md)> | :heavy_minus_sign: | Ok | \ No newline at end of file +| `Classes` | List<[DeploymentV1](../../Models/Shared/DeploymentV1.md)> | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetDeploymentsV2DeprecatedRequest.md b/docs/Models/Operations/GetDeploymentsV2DeprecatedRequest.md new file mode 100644 index 00000000..64621d2c --- /dev/null +++ b/docs/Models/Operations/GetDeploymentsV2DeprecatedRequest.md @@ -0,0 +1,8 @@ +# GetDeploymentsV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/GetDeploymentsV2DeprecatedResponse.md b/docs/Models/Operations/GetDeploymentsV2DeprecatedResponse.md new file mode 100644 index 00000000..3363f2f6 --- /dev/null +++ b/docs/Models/Operations/GetDeploymentsV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# GetDeploymentsV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `Classes` | List<[DeploymentV2](../../Models/Shared/DeploymentV2.md)> | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetLatestDeploymentResponse.md b/docs/Models/Operations/GetLatestDeploymentResponse.md index 1e21a66f..0bce28bf 100644 --- a/docs/Models/Operations/GetLatestDeploymentResponse.md +++ b/docs/Models/Operations/GetLatestDeploymentResponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `DeploymentV2` | [HathoraCloud.Models.Shared.DeploymentV2](../../Models/Shared/DeploymentV2.md) | :heavy_minus_sign: | Ok | +| `DeploymentV3` | [DeploymentV3](../../Models/Shared/DeploymentV3.md) | :heavy_minus_sign: | Ok | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetLatestDeploymentV1DeprecatedRequest.md b/docs/Models/Operations/GetLatestDeploymentV1DeprecatedRequest.md new file mode 100644 index 00000000..30200433 --- /dev/null +++ b/docs/Models/Operations/GetLatestDeploymentV1DeprecatedRequest.md @@ -0,0 +1,8 @@ +# GetLatestDeploymentV1DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/GetLatestDeploymentV1DeprecatedResponse.md b/docs/Models/Operations/GetLatestDeploymentV1DeprecatedResponse.md new file mode 100644 index 00000000..67f51bab --- /dev/null +++ b/docs/Models/Operations/GetLatestDeploymentV1DeprecatedResponse.md @@ -0,0 +1,11 @@ +# GetLatestDeploymentV1DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `DeploymentV1` | [DeploymentV1](../../Models/Shared/DeploymentV1.md) | :heavy_minus_sign: | Ok | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetLatestDeploymentV2DeprecatedRequest.md b/docs/Models/Operations/GetLatestDeploymentV2DeprecatedRequest.md new file mode 100644 index 00000000..9c1e5af2 --- /dev/null +++ b/docs/Models/Operations/GetLatestDeploymentV2DeprecatedRequest.md @@ -0,0 +1,8 @@ +# GetLatestDeploymentV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/GetLatestDeploymentV2DeprecatedResponse.md b/docs/Models/Operations/GetLatestDeploymentV2DeprecatedResponse.md new file mode 100644 index 00000000..4db1e40f --- /dev/null +++ b/docs/Models/Operations/GetLatestDeploymentV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# GetLatestDeploymentV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `DeploymentV2` | [DeploymentV2](../../Models/Shared/DeploymentV2.md) | :heavy_minus_sign: | Ok | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetLatestProcessesResponse.md b/docs/Models/Operations/GetLatestProcessesResponse.md index dfa5681c..6f2c43da 100644 --- a/docs/Models/Operations/GetLatestProcessesResponse.md +++ b/docs/Models/Operations/GetLatestProcessesResponse.md @@ -8,4 +8,4 @@ | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Classes` | List<[ProcessV2](../../Models/Shared/ProcessV2.md)> | :heavy_minus_sign: | Ok | \ No newline at end of file +| `Classes` | List<[ProcessV3](../../Models/Shared/ProcessV3.md)> | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetLatestProcessesV2DeprecatedRequest.md b/docs/Models/Operations/GetLatestProcessesV2DeprecatedRequest.md new file mode 100644 index 00000000..f42e601f --- /dev/null +++ b/docs/Models/Operations/GetLatestProcessesV2DeprecatedRequest.md @@ -0,0 +1,10 @@ +# GetLatestProcessesV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `Region` | List<[Region](../../Models/Shared/Region.md)> | :heavy_minus_sign: | N/A | | +| `Status` | List<[ProcessStatus](../../Models/Shared/ProcessStatus.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetLatestProcessesV2DeprecatedResponse.md b/docs/Models/Operations/GetLatestProcessesV2DeprecatedResponse.md new file mode 100644 index 00000000..d8fd9f80 --- /dev/null +++ b/docs/Models/Operations/GetLatestProcessesV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# GetLatestProcessesV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `Classes` | List<[ProcessV2](../../Models/Shared/ProcessV2.md)> | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetLogsForAppResponse.md b/docs/Models/Operations/GetLogsForAppResponse.md index 6d98c027..7e530966 100644 --- a/docs/Models/Operations/GetLogsForAppResponse.md +++ b/docs/Models/Operations/GetLogsForAppResponse.md @@ -8,4 +8,4 @@ | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Stream` | *MemoryQueueBufferStream* | :heavy_minus_sign: | Ok | \ No newline at end of file +| `ResponseStream` | *MemoryQueueBufferStream* | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetLogsForDeploymentResponse.md b/docs/Models/Operations/GetLogsForDeploymentResponse.md index 2635eef2..45290ad2 100644 --- a/docs/Models/Operations/GetLogsForDeploymentResponse.md +++ b/docs/Models/Operations/GetLogsForDeploymentResponse.md @@ -8,4 +8,4 @@ | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Stream` | *MemoryQueueBufferStream* | :heavy_minus_sign: | Ok | \ No newline at end of file +| `ResponseStream` | *MemoryQueueBufferStream* | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetLogsForProcessResponse.md b/docs/Models/Operations/GetLogsForProcessResponse.md index 67f9be8d..40a97639 100644 --- a/docs/Models/Operations/GetLogsForProcessResponse.md +++ b/docs/Models/Operations/GetLogsForProcessResponse.md @@ -8,4 +8,4 @@ | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Stream` | *MemoryQueueBufferStream* | :heavy_minus_sign: | Ok | \ No newline at end of file +| `ResponseStream` | *MemoryQueueBufferStream* | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetOrgMembersRequest.md b/docs/Models/Operations/GetOrgMembersRequest.md new file mode 100644 index 00000000..c80e5aa6 --- /dev/null +++ b/docs/Models/Operations/GetOrgMembersRequest.md @@ -0,0 +1,8 @@ +# GetOrgMembersRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `OrgId` | *string* | :heavy_check_mark: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/Models/Operations/GetOrgMembersResponse.md b/docs/Models/Operations/GetOrgMembersResponse.md new file mode 100644 index 00000000..4033787c --- /dev/null +++ b/docs/Models/Operations/GetOrgMembersResponse.md @@ -0,0 +1,11 @@ +# GetOrgMembersResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `OrgMembersPage` | [OrgMembersPage](../../Models/Shared/OrgMembersPage.md) | :heavy_minus_sign: | Ok | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetOrgPendingInvitesResponse.md b/docs/Models/Operations/GetOrgPendingInvitesResponse.md index df4afe1b..5cc43afa 100644 --- a/docs/Models/Operations/GetOrgPendingInvitesResponse.md +++ b/docs/Models/Operations/GetOrgPendingInvitesResponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `OrgInvitesPage` | [OrgInvitesPage](../../Models/Shared/OrgInvitesPage.md) | :heavy_minus_sign: | Ok | +| `PendingOrgInvitesPage` | [PendingOrgInvitesPage](../../Models/Shared/PendingOrgInvitesPage.md) | :heavy_minus_sign: | Ok | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetOrgsResponse.md b/docs/Models/Operations/GetOrgsResponse.md new file mode 100644 index 00000000..b62b16a3 --- /dev/null +++ b/docs/Models/Operations/GetOrgsResponse.md @@ -0,0 +1,11 @@ +# GetOrgsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `OrgsPage` | [OrgsPage](../../Models/Shared/OrgsPage.md) | :heavy_minus_sign: | Ok | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetProcessInfoV2DeprecatedRequest.md b/docs/Models/Operations/GetProcessInfoV2DeprecatedRequest.md new file mode 100644 index 00000000..a5e8411f --- /dev/null +++ b/docs/Models/Operations/GetProcessInfoV2DeprecatedRequest.md @@ -0,0 +1,9 @@ +# GetProcessInfoV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `ProcessId` | *string* | :heavy_check_mark: | N/A | cbfcddd2-0006-43ae-996c-995fff7bed2e | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/GetProcessInfoResponse.md b/docs/Models/Operations/GetProcessInfoV2DeprecatedResponse.md similarity index 98% rename from docs/Models/Operations/GetProcessInfoResponse.md rename to docs/Models/Operations/GetProcessInfoV2DeprecatedResponse.md index e80cee09..26461b64 100644 --- a/docs/Models/Operations/GetProcessInfoResponse.md +++ b/docs/Models/Operations/GetProcessInfoV2DeprecatedResponse.md @@ -1,4 +1,4 @@ -# GetProcessInfoResponse +# GetProcessInfoV2DeprecatedResponse ## Fields diff --git a/docs/Models/Operations/GetProcessInfoRequest.md b/docs/Models/Operations/GetProcessRequest.md similarity index 97% rename from docs/Models/Operations/GetProcessInfoRequest.md rename to docs/Models/Operations/GetProcessRequest.md index 6c13363b..6c356e63 100644 --- a/docs/Models/Operations/GetProcessInfoRequest.md +++ b/docs/Models/Operations/GetProcessRequest.md @@ -1,4 +1,4 @@ -# GetProcessInfoRequest +# GetProcessRequest ## Fields diff --git a/docs/Models/Operations/GetProcessResponse.md b/docs/Models/Operations/GetProcessResponse.md new file mode 100644 index 00000000..d8be1212 --- /dev/null +++ b/docs/Models/Operations/GetProcessResponse.md @@ -0,0 +1,11 @@ +# GetProcessResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `ProcessV3` | [ProcessV3](../../Models/Shared/ProcessV3.md) | :heavy_minus_sign: | Ok | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetProcessesCountExperimentalRequest.md b/docs/Models/Operations/GetProcessesCountExperimentalRequest.md new file mode 100644 index 00000000..be7a7f71 --- /dev/null +++ b/docs/Models/Operations/GetProcessesCountExperimentalRequest.md @@ -0,0 +1,10 @@ +# GetProcessesCountExperimentalRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `Region` | List<[Region](../../Models/Shared/Region.md)> | :heavy_minus_sign: | N/A | | +| `Status` | List<[ProcessStatus](../../Models/Shared/ProcessStatus.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetProcessesCountExperimentalResponse.md b/docs/Models/Operations/GetProcessesCountExperimentalResponse.md new file mode 100644 index 00000000..f17b9ffd --- /dev/null +++ b/docs/Models/Operations/GetProcessesCountExperimentalResponse.md @@ -0,0 +1,11 @@ +# GetProcessesCountExperimentalResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `Object` | [GetProcessesCountExperimentalResponseBody](../../Models/Operations/GetProcessesCountExperimentalResponseBody.md) | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetProcessesCountExperimentalResponseBody.md b/docs/Models/Operations/GetProcessesCountExperimentalResponseBody.md new file mode 100644 index 00000000..c463e58d --- /dev/null +++ b/docs/Models/Operations/GetProcessesCountExperimentalResponseBody.md @@ -0,0 +1,10 @@ +# GetProcessesCountExperimentalResponseBody + +Ok + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Count` | *double* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedRequest.md b/docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedRequest.md new file mode 100644 index 00000000..3fbd031f --- /dev/null +++ b/docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedRequest.md @@ -0,0 +1,10 @@ +# GetProcessesCountExperimentalV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `Region` | List<[Region](../../Models/Shared/Region.md)> | :heavy_minus_sign: | N/A | | +| `Status` | List<[ProcessStatus](../../Models/Shared/ProcessStatus.md)> | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponse.md b/docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponse.md new file mode 100644 index 00000000..8df0c278 --- /dev/null +++ b/docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# GetProcessesCountExperimentalV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `Object` | [GetProcessesCountExperimentalV2DeprecatedResponseBody](../../Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponseBody.md) | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponseBody.md b/docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponseBody.md new file mode 100644 index 00000000..4ce618bd --- /dev/null +++ b/docs/Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponseBody.md @@ -0,0 +1,10 @@ +# GetProcessesCountExperimentalV2DeprecatedResponseBody + +Ok + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Count` | *double* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetUpcomingInvoiceItemsResponse.md b/docs/Models/Operations/GetUpcomingInvoiceItemsResponse.md new file mode 100644 index 00000000..04c6f37f --- /dev/null +++ b/docs/Models/Operations/GetUpcomingInvoiceItemsResponse.md @@ -0,0 +1,11 @@ +# GetUpcomingInvoiceItemsResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `InvoiceItemPage` | [InvoiceItemPage](../../Models/Shared/InvoiceItemPage.md) | :heavy_minus_sign: | Ok | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/GetUpcomingInvoiceTotalResponse.md b/docs/Models/Operations/GetUpcomingInvoiceTotalResponse.md new file mode 100644 index 00000000..843c1a96 --- /dev/null +++ b/docs/Models/Operations/GetUpcomingInvoiceTotalResponse.md @@ -0,0 +1,11 @@ +# GetUpcomingInvoiceTotalResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `Object` | [GetUpcomingInvoiceTotalResponseBody](../../Models/Operations/GetUpcomingInvoiceTotalResponseBody.md) | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/GetUpcomingInvoiceTotalResponseBody.md b/docs/Models/Operations/GetUpcomingInvoiceTotalResponseBody.md new file mode 100644 index 00000000..ad374806 --- /dev/null +++ b/docs/Models/Operations/GetUpcomingInvoiceTotalResponseBody.md @@ -0,0 +1,10 @@ +# GetUpcomingInvoiceTotalResponseBody + +Ok + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Value` | *double* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/GetUserPendingInvitesResponse.md b/docs/Models/Operations/GetUserPendingInvitesResponse.md index bf18105d..6301d8be 100644 --- a/docs/Models/Operations/GetUserPendingInvitesResponse.md +++ b/docs/Models/Operations/GetUserPendingInvitesResponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `OrgInvitesPage` | [OrgInvitesPage](../../Models/Shared/OrgInvitesPage.md) | :heavy_minus_sign: | Ok | +| `PendingOrgInvitesPage` | [PendingOrgInvitesPage](../../Models/Shared/PendingOrgInvitesPage.md) | :heavy_minus_sign: | Ok | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/InviteUserResponse.md b/docs/Models/Operations/InviteUserResponse.md index a04304bb..dcd3053c 100644 --- a/docs/Models/Operations/InviteUserResponse.md +++ b/docs/Models/Operations/InviteUserResponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `OrgPermission` | [OrgPermission](../../Models/Shared/OrgPermission.md) | :heavy_minus_sign: | Ok | +| `PendingOrgInvite` | [PendingOrgInvite](../../Models/Shared/PendingOrgInvite.md) | :heavy_minus_sign: | Ok | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/RevokeOrgTokenRequest.md b/docs/Models/Operations/RevokeOrgTokenRequest.md index e4c5cf98..d0c1de06 100644 --- a/docs/Models/Operations/RevokeOrgTokenRequest.md +++ b/docs/Models/Operations/RevokeOrgTokenRequest.md @@ -3,7 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | -| `OrgId` | *string* | :heavy_check_mark: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | -| `OrgTokenId` | *string* | :heavy_check_mark: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `OrgId` | *string* | :heavy_check_mark: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | +| `OrgTokenId` | *string* | :heavy_check_mark: | N/A | org-token-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/RunBuildRequest.md b/docs/Models/Operations/RunBuildRequest.md index d083354f..ba3a3948 100644 --- a/docs/Models/Operations/RunBuildRequest.md +++ b/docs/Models/Operations/RunBuildRequest.md @@ -3,8 +3,7 @@ ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `RequestBody` | [RunBuildRequestBody](../../Models/Operations/RunBuildRequestBody.md) | :heavy_check_mark: | N/A | | -| `BuildId` | *int* | :heavy_check_mark: | N/A | 1 | -| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `BuildId` | *string* | :heavy_check_mark: | N/A | | +| `OrgId` | *string* | :heavy_minus_sign: | N/A | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/Models/Operations/RunBuildResponse.md b/docs/Models/Operations/RunBuildResponse.md index 77b6cf99..2ca50f0d 100644 --- a/docs/Models/Operations/RunBuildResponse.md +++ b/docs/Models/Operations/RunBuildResponse.md @@ -8,4 +8,4 @@ | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | -| `Stream` | *MemoryQueueBufferStream* | :heavy_minus_sign: | Ok | \ No newline at end of file +| `ResponseStream` | *MemoryQueueBufferStream* | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/RunBuildFile.md b/docs/Models/Operations/RunBuildV2DeprecatedFile.md similarity index 92% rename from docs/Models/Operations/RunBuildFile.md rename to docs/Models/Operations/RunBuildV2DeprecatedFile.md index 4ba9ff01..9fcf473d 100644 --- a/docs/Models/Operations/RunBuildFile.md +++ b/docs/Models/Operations/RunBuildV2DeprecatedFile.md @@ -1,4 +1,4 @@ -# RunBuildFile +# RunBuildV2DeprecatedFile ## Fields diff --git a/docs/Models/Operations/RunBuildV2DeprecatedRequest.md b/docs/Models/Operations/RunBuildV2DeprecatedRequest.md new file mode 100644 index 00000000..4d930ce2 --- /dev/null +++ b/docs/Models/Operations/RunBuildV2DeprecatedRequest.md @@ -0,0 +1,10 @@ +# RunBuildV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `RequestBody` | [RunBuildV2DeprecatedRequestBody](../../Models/Operations/RunBuildV2DeprecatedRequestBody.md) | :heavy_check_mark: | N/A | | +| `BuildId` | *int* | :heavy_check_mark: | N/A | 1 | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/RunBuildV2DeprecatedRequestBody.md b/docs/Models/Operations/RunBuildV2DeprecatedRequestBody.md new file mode 100644 index 00000000..da74ccb0 --- /dev/null +++ b/docs/Models/Operations/RunBuildV2DeprecatedRequestBody.md @@ -0,0 +1,8 @@ +# RunBuildV2DeprecatedRequestBody + + +## Fields + +| Field | Type | Required | Description | +| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | +| `File` | [RunBuildV2DeprecatedFile](../../Models/Operations/RunBuildV2DeprecatedFile.md) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/RunBuildV2DeprecatedResponse.md b/docs/Models/Operations/RunBuildV2DeprecatedResponse.md new file mode 100644 index 00000000..1283c4d7 --- /dev/null +++ b/docs/Models/Operations/RunBuildV2DeprecatedResponse.md @@ -0,0 +1,11 @@ +# RunBuildV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `ResponseStream` | *MemoryQueueBufferStream* | :heavy_minus_sign: | Ok | \ No newline at end of file diff --git a/docs/Models/Operations/StopProcessV2DeprecatedRequest.md b/docs/Models/Operations/StopProcessV2DeprecatedRequest.md new file mode 100644 index 00000000..7f0698f5 --- /dev/null +++ b/docs/Models/Operations/StopProcessV2DeprecatedRequest.md @@ -0,0 +1,9 @@ +# StopProcessV2DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | ---------------------------------------- | +| `ProcessId` | *string* | :heavy_check_mark: | N/A | cbfcddd2-0006-43ae-996c-995fff7bed2e | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/StopProcessV2DeprecatedResponse.md b/docs/Models/Operations/StopProcessV2DeprecatedResponse.md new file mode 100644 index 00000000..6831ab98 --- /dev/null +++ b/docs/Models/Operations/StopProcessV2DeprecatedResponse.md @@ -0,0 +1,10 @@ +# StopProcessV2DeprecatedResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | +| `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Operations/UpdateAppV1DeprecatedRequest.md b/docs/Models/Operations/UpdateAppV1DeprecatedRequest.md new file mode 100644 index 00000000..84086e58 --- /dev/null +++ b/docs/Models/Operations/UpdateAppV1DeprecatedRequest.md @@ -0,0 +1,9 @@ +# UpdateAppV1DeprecatedRequest + + +## Fields + +| Field | Type | Required | Description | Example | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `AppConfig` | [AppConfig](../../Models/Shared/AppConfig.md) | :heavy_check_mark: | N/A | | +| `AppId` | *string* | :heavy_minus_sign: | N/A | app-af469a92-5b45-4565-b3c4-b79878de67d2 | \ No newline at end of file diff --git a/docs/Models/Operations/GetDeploymentInfoResponse.md b/docs/Models/Operations/UpdateAppV1DeprecatedResponse.md similarity index 92% rename from docs/Models/Operations/GetDeploymentInfoResponse.md rename to docs/Models/Operations/UpdateAppV1DeprecatedResponse.md index b03bc660..7414f62d 100644 --- a/docs/Models/Operations/GetDeploymentInfoResponse.md +++ b/docs/Models/Operations/UpdateAppV1DeprecatedResponse.md @@ -1,11 +1,11 @@ -# GetDeploymentInfoResponse +# UpdateAppV1DeprecatedResponse ## Fields | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `Application` | [HathoraCloud.Models.Shared.Application](../../Models/Shared/Application.md) | :heavy_minus_sign: | Ok | | `ContentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation | -| `DeploymentV2` | [HathoraCloud.Models.Shared.DeploymentV2](../../Models/Shared/DeploymentV2.md) | :heavy_minus_sign: | Ok | | `StatusCode` | *int* | :heavy_check_mark: | HTTP response status code for this operation | | `RawResponse` | [UnityWebRequest](https://docs.unity3d.com/2021.3/Documentation/ScriptReference/Networking.UnityWebRequest.html) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/Models/Shared/Application.md b/docs/Models/Shared/Application.md index ac5a7bb6..05e42082 100644 --- a/docs/Models/Shared/Application.md +++ b/docs/Models/Shared/Application.md @@ -12,7 +12,7 @@ An application object is the top level namespace for the game server. | `AppSecret` | *string* | :heavy_check_mark: | Secret that is used for identity and access management. | secret-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | | `AuthConfiguration` | [AuthConfiguration](../../Models/Shared/AuthConfiguration.md) | :heavy_check_mark: | Configure [player authentication](https://hathora.dev/docs/lobbies-and-matchmaking/auth-service) for your application. Use Hathora's built-in auth providers or use your own [custom authentication](https://hathora.dev/docs/lobbies-and-matchmaking/auth-service#custom-auth-provider). | | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the application was created. | | -| `CreatedBy` | *string* | :heavy_check_mark: | UserId or email address for the user that created the application. | google-oauth2\|107030234048588177467 | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | | `DeletedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the application was deleted. | | -| `DeletedBy` | *string* | :heavy_check_mark: | UserId or email address for the user that deleted the application. | google-oauth2\|107030234048588177467 | +| `DeletedBy` | *string* | :heavy_check_mark: | The email address or token id for the user that deleted the application. | noreply@hathora.dev | | `OrgId` | *string* | :heavy_check_mark: | System generated unique identifier for an organization. Not guaranteed to have a specific format. | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuild.md b/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuild.md index 9f875ee0..4dea36ce 100644 --- a/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuild.md +++ b/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuild.md @@ -12,8 +12,8 @@ An application object is the top level namespace for the game server. | `AppSecret` | *string* | :heavy_check_mark: | Secret that is used for identity and access management. | secret-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | | `AuthConfiguration` | [AuthConfiguration](../../Models/Shared/AuthConfiguration.md) | :heavy_check_mark: | Configure [player authentication](https://hathora.dev/docs/lobbies-and-matchmaking/auth-service) for your application. Use Hathora's built-in auth providers or use your own [custom authentication](https://hathora.dev/docs/lobbies-and-matchmaking/auth-service#custom-auth-provider). | | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the application was created. | | -| `CreatedBy` | *string* | :heavy_check_mark: | UserId or email address for the user that created the application. | google-oauth2\|107030234048588177467 | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | | `DeletedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the application was deleted. | | -| `DeletedBy` | *string* | :heavy_check_mark: | UserId or email address for the user that deleted the application. | google-oauth2\|107030234048588177467 | -| `Deployment` | [ApplicationWithLatestDeploymentAndBuildDeployment](../../Models/Shared/ApplicationWithLatestDeploymentAndBuildDeployment.md) | :heavy_minus_sign: | N/A | | +| `DeletedBy` | *string* | :heavy_check_mark: | The email address or token id for the user that deleted the application. | noreply@hathora.dev | +| `Deployment` | [Deployment](../../Models/Shared/Deployment.md) | :heavy_minus_sign: | N/A | | | `OrgId` | *string* | :heavy_check_mark: | System generated unique identifier for an organization. Not guaranteed to have a specific format. | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeployment.md b/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeployment.md deleted file mode 100644 index f8b03ad8..00000000 --- a/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeployment.md +++ /dev/null @@ -1,20 +0,0 @@ -# ApplicationWithLatestDeploymentAndBuildDeployment - - -## Fields - -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | -| `AdditionalContainerPorts` | List<[ContainerPort](../../Models/Shared/ContainerPort.md)> | :heavy_check_mark: | Additional ports your server listens on. | {
"transportType": "tcp",
"port": 4000,
"name": "debug"
} | -| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | -| `Build` | [Build](../../Models/Shared/Build.md) | :heavy_check_mark: | A build represents a game server artifact and its associated metadata. | | -| `BuildId` | *int* | :heavy_check_mark: | System generated id for a build. Increments by 1. | 1 | -| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the deployment was created. | | -| `CreatedBy` | *string* | :heavy_check_mark: | UserId or email address for the user that created the deployment. | google-oauth2\|107030234048588177467 | -| `DefaultContainerPort` | [ContainerPort](../../Models/Shared/ContainerPort.md) | :heavy_check_mark: | A container port object represents the transport configruations for how your server will listen. | | -| `DeploymentId` | *int* | :heavy_check_mark: | System generated id for a deployment. Increments by 1. | 1 | -| `Env` | List<[ApplicationWithLatestDeploymentAndBuildEnv](../../Models/Shared/ApplicationWithLatestDeploymentAndBuildEnv.md)> | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | | -| `IdleTimeoutEnabled` | *bool* | :heavy_check_mark: | Option to shut down processes that have had no new connections or rooms
for five minutes. | | -| `RequestedCPU` | *double* | :heavy_check_mark: | The number of cores allocated to your process. | 0.5 | -| `RequestedMemoryMB` | *double* | :heavy_check_mark: | The amount of memory allocated to your process. | 1024 | -| `RoomsPerProcess` | *int* | :heavy_check_mark: | Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. | 3 | \ No newline at end of file diff --git a/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecated.md b/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecated.md new file mode 100644 index 00000000..2d5b2eaa --- /dev/null +++ b/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecated.md @@ -0,0 +1,19 @@ +# ApplicationWithLatestDeploymentAndBuildDeprecated + +An application object is the top level namespace for the game server. + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `AppName` | *string* | :heavy_check_mark: | Readable name for an application. Must be unique within an organization. | minecraft | +| `AppSecret` | *string* | :heavy_check_mark: | Secret that is used for identity and access management. | secret-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | +| `AuthConfiguration` | [AuthConfiguration](../../Models/Shared/AuthConfiguration.md) | :heavy_check_mark: | Configure [player authentication](https://hathora.dev/docs/lobbies-and-matchmaking/auth-service) for your application. Use Hathora's built-in auth providers or use your own [custom authentication](https://hathora.dev/docs/lobbies-and-matchmaking/auth-service#custom-auth-provider). | | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the application was created. | | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | +| `DeletedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the application was deleted. | | +| `DeletedBy` | *string* | :heavy_check_mark: | The email address or token id for the user that deleted the application. | noreply@hathora.dev | +| `Deployment` | [ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment](../../Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment.md) | :heavy_minus_sign: | N/A | | +| `OrgId` | *string* | :heavy_check_mark: | System generated unique identifier for an organization. Not guaranteed to have a specific format. | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | \ No newline at end of file diff --git a/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment.md b/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment.md new file mode 100644 index 00000000..6fe47666 --- /dev/null +++ b/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment.md @@ -0,0 +1,20 @@ +# ApplicationWithLatestDeploymentAndBuildDeprecatedDeployment + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | +| `AdditionalContainerPorts` | List<[ContainerPort](../../Models/Shared/ContainerPort.md)> | :heavy_check_mark: | Additional ports your server listens on. | {
"transportType": "tcp",
"port": 4000,
"name": "debug"
} | +| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `Build` | [Build](../../Models/Shared/Build.md) | :heavy_check_mark: | A build represents a game server artifact and its associated metadata. | | +| `BuildId` | *int* | :heavy_check_mark: | System generated id for a build. Increments by 1. | 1 | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the deployment was created. | | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | +| `DefaultContainerPort` | [ContainerPort](../../Models/Shared/ContainerPort.md) | :heavy_check_mark: | A container port object represents the transport configruations for how your server will listen. | | +| `DeploymentId` | *int* | :heavy_check_mark: | System generated id for a deployment. Increments by 1. | 1 | +| `Env` | List<[ApplicationWithLatestDeploymentAndBuildDeprecatedEnv](../../Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedEnv.md)> | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | | +| `IdleTimeoutEnabled` | *bool* | :heavy_check_mark: | Option to shut down processes that have had no new connections or rooms
for five minutes. | | +| `RequestedCPU` | *double* | :heavy_check_mark: | The number of cores allocated to your process. | 0.5 | +| `RequestedMemoryMB` | *double* | :heavy_check_mark: | The amount of memory allocated to your process. | 1024 | +| `RoomsPerProcess` | *int* | :heavy_check_mark: | Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. | 3 | \ No newline at end of file diff --git a/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedEnv.md b/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedEnv.md new file mode 100644 index 00000000..2c7df9e4 --- /dev/null +++ b/docs/Models/Shared/ApplicationWithLatestDeploymentAndBuildDeprecatedEnv.md @@ -0,0 +1,9 @@ +# ApplicationWithLatestDeploymentAndBuildDeprecatedEnv + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Name` | *string* | :heavy_check_mark: | N/A | EULA | +| `Value` | *string* | :heavy_check_mark: | N/A | TRUE | \ No newline at end of file diff --git a/docs/Models/Shared/ApplicationsPage.md b/docs/Models/Shared/ApplicationsPage.md new file mode 100644 index 00000000..2659ee5c --- /dev/null +++ b/docs/Models/Shared/ApplicationsPage.md @@ -0,0 +1,8 @@ +# ApplicationsPage + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | +| `Applications` | List<[ApplicationWithLatestDeploymentAndBuild](../../Models/Shared/ApplicationWithLatestDeploymentAndBuild.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/Build.md b/docs/Models/Shared/Build.md index 8e887919..0888a107 100644 --- a/docs/Models/Shared/Build.md +++ b/docs/Models/Shared/Build.md @@ -11,7 +11,7 @@ A build represents a game server artifact and its associated metadata. | `BuildId` | *int* | :heavy_check_mark: | System generated id for a build. Increments by 1. | 1 | | `BuildTag` | *string* | :heavy_minus_sign: | N/A | 0.1.14-14c793 | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`CreateBuild()`](https://hathora.dev/api#tag/BuildV2/operation/CreateBuild) is called. | | -| `CreatedBy` | *string* | :heavy_check_mark: | UserId or email address for the user that created the build. | google-oauth2\|107030234048588177467 | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | | `DeletedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the build was deleted. | | | `FinishedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`RunBuild()`](https://hathora.dev/api#tag/BuildV2/operation/RunBuild) finished executing. | | | `ImageSize` | *long* | :heavy_check_mark: | The size (in bytes) of the Docker image built by Hathora. | | diff --git a/docs/Models/Shared/BuildPart.md b/docs/Models/Shared/BuildPart.md new file mode 100644 index 00000000..e8a2a225 --- /dev/null +++ b/docs/Models/Shared/BuildPart.md @@ -0,0 +1,9 @@ +# BuildPart + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `PartNumber` | *double* | :heavy_check_mark: | N/A | +| `PutRequestUrl` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/BuildV3.md b/docs/Models/Shared/BuildV3.md new file mode 100644 index 00000000..40f54e1c --- /dev/null +++ b/docs/Models/Shared/BuildV3.md @@ -0,0 +1,20 @@ +# BuildV3 + +A build represents a game server artifact and its associated metadata. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `BuildId` | *string* | :heavy_check_mark: | System generated id for a build. Can also be user defined when creating a build. | | +| `BuildTag` | *string* | :heavy_minus_sign: | Tag to associate an external version with a build. It is accessible via [`GetBuildInfo()`](https://hathora.dev/api#tag/BuildV2/operation/GetBuildInfo). | 0.1.14-14c793 | +| `ContentHash` | *string* | :heavy_minus_sign: | N/A | | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`CreateBuild()`](https://hathora.dev/api#tag/BuildV2/operation/CreateBuild) is called. | | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | +| `DeletedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the build was deleted. | | +| `FinishedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`RunBuild()`](https://hathora.dev/api#tag/BuildV2/operation/RunBuild) finished executing. | | +| `ImageSize` | *long* | :heavy_check_mark: | The size (in bytes) of the Docker image built by Hathora. | | +| `OrgId` | *string* | :heavy_check_mark: | System generated unique identifier for an organization. Not guaranteed to have a specific format. | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | +| `StartedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`RunBuild()`](https://hathora.dev/api#tag/BuildV2/operation/RunBuild) is called. | | +| `Status` | [BuildStatus](../../Models/Shared/BuildStatus.md) | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/Models/Shared/BuildWithMultipartUrls.md b/docs/Models/Shared/BuildWithMultipartUrls.md new file mode 100644 index 00000000..d33d6ad7 --- /dev/null +++ b/docs/Models/Shared/BuildWithMultipartUrls.md @@ -0,0 +1,23 @@ +# BuildWithMultipartUrls + +A build represents a game server artifact and its associated metadata. + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `BuildId` | *int* | :heavy_check_mark: | System generated id for a build. Increments by 1. | 1 | +| `BuildTag` | *string* | :heavy_minus_sign: | N/A | 0.1.14-14c793 | +| `CompleteUploadPostRequestUrl` | *string* | :heavy_check_mark: | N/A | | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`CreateBuild()`](https://hathora.dev/api#tag/BuildV2/operation/CreateBuild) is called. | | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | +| `DeletedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the build was deleted. | | +| `FinishedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`RunBuild()`](https://hathora.dev/api#tag/BuildV2/operation/RunBuild) finished executing. | | +| `ImageSize` | *long* | :heavy_check_mark: | The size (in bytes) of the Docker image built by Hathora. | | +| `MaxChunkSize` | *double* | :heavy_check_mark: | N/A | | +| ~~`RegionalContainerTags`~~ | List<[BuildWithMultipartUrlsRegionalContainerTags](../../Models/Shared/BuildWithMultipartUrlsRegionalContainerTags.md)> | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | +| `StartedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`RunBuild()`](https://hathora.dev/api#tag/BuildV2/operation/RunBuild) is called. | | +| `Status` | [BuildStatus](../../Models/Shared/BuildStatus.md) | :heavy_check_mark: | N/A | | +| `UploadParts` | List<[BuildPart](../../Models/Shared/BuildPart.md)> | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/Models/Shared/BuildWithMultipartUrlsRegionalContainerTags.md b/docs/Models/Shared/BuildWithMultipartUrlsRegionalContainerTags.md new file mode 100644 index 00000000..03f8e96c --- /dev/null +++ b/docs/Models/Shared/BuildWithMultipartUrlsRegionalContainerTags.md @@ -0,0 +1,9 @@ +# BuildWithMultipartUrlsRegionalContainerTags + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `ContainerTag` | *string* | :heavy_check_mark: | N/A | +| `Region` | [Region](../../Models/Shared/Region.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/BuildWithUploadUrl.md b/docs/Models/Shared/BuildWithUploadUrl.md new file mode 100644 index 00000000..87c15173 --- /dev/null +++ b/docs/Models/Shared/BuildWithUploadUrl.md @@ -0,0 +1,22 @@ +# BuildWithUploadUrl + +A build represents a game server artifact and its associated metadata. + + +## Fields + +| Field | Type | Required | Description | Example | +| ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------- | +| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `BuildId` | *int* | :heavy_check_mark: | System generated id for a build. Increments by 1. | 1 | +| `BuildTag` | *string* | :heavy_minus_sign: | N/A | 0.1.14-14c793 | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`CreateBuild()`](https://hathora.dev/api#tag/BuildV2/operation/CreateBuild) is called. | | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | +| `DeletedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the build was deleted. | | +| `FinishedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`RunBuild()`](https://hathora.dev/api#tag/BuildV2/operation/RunBuild) finished executing. | | +| `ImageSize` | *long* | :heavy_check_mark: | The size (in bytes) of the Docker image built by Hathora. | | +| ~~`RegionalContainerTags`~~ | List<[BuildWithUploadUrlRegionalContainerTags](../../Models/Shared/BuildWithUploadUrlRegionalContainerTags.md)> | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | +| `StartedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`RunBuild()`](https://hathora.dev/api#tag/BuildV2/operation/RunBuild) is called. | | +| `Status` | [BuildStatus](../../Models/Shared/BuildStatus.md) | :heavy_check_mark: | N/A | | +| `UploadBodyParams` | List<[UploadBodyParams](../../Models/Shared/UploadBodyParams.md)> | :heavy_check_mark: | N/A | | +| `UploadUrl` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/Models/Shared/BuildWithUploadUrlRegionalContainerTags.md b/docs/Models/Shared/BuildWithUploadUrlRegionalContainerTags.md new file mode 100644 index 00000000..358fcb17 --- /dev/null +++ b/docs/Models/Shared/BuildWithUploadUrlRegionalContainerTags.md @@ -0,0 +1,9 @@ +# BuildWithUploadUrlRegionalContainerTags + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| `ContainerTag` | *string* | :heavy_check_mark: | N/A | +| `Region` | [Region](../../Models/Shared/Region.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/BuildsV3Page.md b/docs/Models/Shared/BuildsV3Page.md new file mode 100644 index 00000000..849ec2b5 --- /dev/null +++ b/docs/Models/Shared/BuildsV3Page.md @@ -0,0 +1,8 @@ +# BuildsV3Page + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | ----------------------------------------------- | +| `Builds` | List<[BuildV3](../../Models/Shared/BuildV3.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/CreateLobbyParams.md b/docs/Models/Shared/CreateLobbyParams.md index 94c35800..0e267e5d 100644 --- a/docs/Models/Shared/CreateLobbyParams.md +++ b/docs/Models/Shared/CreateLobbyParams.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `InitialConfig` | [LobbyInitialConfig](../../Models/Shared/LobbyInitialConfig.md) | :heavy_check_mark: | User input to initialize the game state. Object must be smaller than 64KB. | | +| `InitialConfig` | *object* | :heavy_check_mark: | User input to initialize the game state. Object must be smaller than 64KB. | | | `Region` | [Region](../../Models/Shared/Region.md) | :heavy_check_mark: | N/A | | | `Visibility` | [LobbyVisibility](../../Models/Shared/LobbyVisibility.md) | :heavy_check_mark: | Types of lobbies a player can create.

`private`: the player who created the room must share the roomId with their friends

`public`: visible in the public lobby list, anyone can join

`local`: for testing with a server running locally | private | \ No newline at end of file diff --git a/docs/Models/Shared/CreateMultipartBuildParams.md b/docs/Models/Shared/CreateMultipartBuildParams.md new file mode 100644 index 00000000..adb04174 --- /dev/null +++ b/docs/Models/Shared/CreateMultipartBuildParams.md @@ -0,0 +1,10 @@ +# CreateMultipartBuildParams + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `BuildId` | *string* | :heavy_minus_sign: | System generated id for a build. Can also be user defined when creating a build. | | +| `BuildSizeInBytes` | *double* | :heavy_check_mark: | N/A | | +| `BuildTag` | *string* | :heavy_minus_sign: | Tag to associate an external version with a build. It is accessible via [`GetBuildInfo()`](https://hathora.dev/api#tag/BuildV2/operation/GetBuildInfo). | 0.1.14-14c793 | \ No newline at end of file diff --git a/docs/Models/Shared/CreateRoomParams.md b/docs/Models/Shared/CreateRoomParams.md index 76c72a93..82d00b31 100644 --- a/docs/Models/Shared/CreateRoomParams.md +++ b/docs/Models/Shared/CreateRoomParams.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `ClientIPs` | List<*string*> | :heavy_minus_sign: | N/A | | | `Region` | [Region](../../Models/Shared/Region.md) | :heavy_check_mark: | N/A | | | `RoomConfig` | *string* | :heavy_minus_sign: | Optional configuration parameters for the room. Can be any string including stringified JSON. It is accessible from the room via [`GetRoomInfo()`](https://hathora.dev/api#tag/RoomV2/operation/GetRoomInfo). | {"name":"my-room"} | \ No newline at end of file diff --git a/docs/Models/Shared/CreateUserInvite.md b/docs/Models/Shared/CreateUserInvite.md index 99499e0f..8333d0cf 100644 --- a/docs/Models/Shared/CreateUserInvite.md +++ b/docs/Models/Shared/CreateUserInvite.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `UserEmail` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `UserEmail` | *string* | :heavy_check_mark: | A user's email. | noreply@hathora.dev | \ No newline at end of file diff --git a/docs/Models/Shared/CreatedBuildV3WithMultipartUrls.md b/docs/Models/Shared/CreatedBuildV3WithMultipartUrls.md new file mode 100644 index 00000000..a9e655a9 --- /dev/null +++ b/docs/Models/Shared/CreatedBuildV3WithMultipartUrls.md @@ -0,0 +1,23 @@ +# CreatedBuildV3WithMultipartUrls + +A build represents a game server artifact and its associated metadata. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `BuildId` | *string* | :heavy_check_mark: | System generated id for a build. Can also be user defined when creating a build. | | +| `BuildTag` | *string* | :heavy_minus_sign: | Tag to associate an external version with a build. It is accessible via [`GetBuildInfo()`](https://hathora.dev/api#tag/BuildV2/operation/GetBuildInfo). | 0.1.14-14c793 | +| `CompleteUploadPostRequestUrl` | *string* | :heavy_check_mark: | N/A | | +| `ContentHash` | *string* | :heavy_minus_sign: | N/A | | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`CreateBuild()`](https://hathora.dev/api#tag/BuildV2/operation/CreateBuild) is called. | | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | +| `DeletedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the build was deleted. | | +| `FinishedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`RunBuild()`](https://hathora.dev/api#tag/BuildV2/operation/RunBuild) finished executing. | | +| `ImageSize` | *long* | :heavy_check_mark: | The size (in bytes) of the Docker image built by Hathora. | | +| `MaxChunkSize` | *double* | :heavy_check_mark: | N/A | | +| `OrgId` | *string* | :heavy_check_mark: | System generated unique identifier for an organization. Not guaranteed to have a specific format. | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | +| `StartedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When [`RunBuild()`](https://hathora.dev/api#tag/BuildV2/operation/RunBuild) is called. | | +| `Status` | [BuildStatus](../../Models/Shared/BuildStatus.md) | :heavy_check_mark: | N/A | | +| `UploadParts` | List<[BuildPart](../../Models/Shared/BuildPart.md)> | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/Models/Shared/CreatedBy.md b/docs/Models/Shared/CreatedBy.md new file mode 100644 index 00000000..cf590784 --- /dev/null +++ b/docs/Models/Shared/CreatedBy.md @@ -0,0 +1,4 @@ +# CreatedBy + +UserId or email address for the user that created the lobby. + diff --git a/docs/Models/Shared/State.md b/docs/Models/Shared/DeletedBuild.md similarity index 63% rename from docs/Models/Shared/State.md rename to docs/Models/Shared/DeletedBuild.md index a9ee8110..f436c41e 100644 --- a/docs/Models/Shared/State.md +++ b/docs/Models/Shared/DeletedBuild.md @@ -1,6 +1,6 @@ -# State +# DeletedBuild -JSON blob to store metadata for a room. Must be smaller than 1MB. +Construct a type with a set of properties K of type T ## Fields diff --git a/docs/Models/Shared/Deployment.md b/docs/Models/Shared/Deployment.md index 7aa66d43..70ac28be 100644 --- a/docs/Models/Shared/Deployment.md +++ b/docs/Models/Shared/Deployment.md @@ -1,24 +1,21 @@ # Deployment -Deployment is a versioned configuration for a build that describes runtime behavior. - ## Fields -| Field | Type | Required | Description | Example | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AdditionalContainerPorts` | List<[ContainerPort](../../Models/Shared/ContainerPort.md)> | :heavy_check_mark: | Additional ports your server listens on. | {
"transportType": "tcp",
"port": 4000,
"name": "debug"
} | -| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | -| `BuildId` | *int* | :heavy_check_mark: | System generated id for a build. Increments by 1. | 1 | -| ~~`ContainerPort`~~ | *double* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | -| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the deployment was created. | | -| `CreatedBy` | *string* | :heavy_check_mark: | UserId or email address for the user that created the deployment. | google-oauth2\|107030234048588177467 | -| `DefaultContainerPort` | [ContainerPort](../../Models/Shared/ContainerPort.md) | :heavy_check_mark: | A container port object represents the transport configruations for how your server will listen. | | -| `DeploymentId` | *int* | :heavy_check_mark: | System generated id for a deployment. Increments by 1. | 1 | -| `Env` | List<[Env](../../Models/Shared/Env.md)> | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | | -| `IdleTimeoutEnabled` | *bool* | :heavy_minus_sign: | Option to shut down processes that have had no new connections or rooms
for five minutes. | | -| `PlanName` | [PlanName](../../Models/Shared/PlanName.md) | :heavy_check_mark: | A plan defines how much CPU and memory is required to run an instance of your game server.

`tiny`: shared core, 1gb memory

`small`: 1 core, 2gb memory

`medium`: 2 core, 4gb memory

`large`: 4 core, 8gb memory | tiny | -| `RequestedCPU` | *double* | :heavy_check_mark: | The number of cores allocated to your process. | 0.5 | -| `RequestedMemoryMB` | *int* | :heavy_check_mark: | The amount of memory allocated to your process. | 1024 | -| `RoomsPerProcess` | *int* | :heavy_check_mark: | Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. | 3 | -| ~~`TransportType`~~ | [DeploymentTransportType](../../Models/Shared/DeploymentTransportType.md) | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `AdditionalContainerPorts` | List<[ContainerPort](../../Models/Shared/ContainerPort.md)> | :heavy_check_mark: | Additional ports your server listens on. | {
"transportType": "tcp",
"port": 4000,
"name": "debug"
} | +| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `Build` | [BuildV3](../../Models/Shared/BuildV3.md) | :heavy_check_mark: | A build represents a game server artifact and its associated metadata. | | +| `BuildId` | *string* | :heavy_check_mark: | System generated id for a build. Can also be user defined when creating a build. | | +| `BuildTag` | *string* | :heavy_minus_sign: | Tag to associate an external version with a build. It is accessible via [`GetBuildInfo()`](https://hathora.dev/api#tag/BuildV2/operation/GetBuildInfo). | 0.1.14-14c793 | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the deployment was created. | | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | +| `DefaultContainerPort` | [ContainerPort](../../Models/Shared/ContainerPort.md) | :heavy_check_mark: | A container port object represents the transport configruations for how your server will listen. | | +| `DeploymentId` | *string* | :heavy_check_mark: | System generated id for a deployment. | | +| `Env` | List<[ApplicationWithLatestDeploymentAndBuildEnv](../../Models/Shared/ApplicationWithLatestDeploymentAndBuildEnv.md)> | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | | +| `IdleTimeoutEnabled` | *bool* | :heavy_check_mark: | Option to shut down processes that have had no new connections or rooms
for five minutes. | | +| `RequestedCPU` | *double* | :heavy_check_mark: | The number of cores allocated to your process. | 0.5 | +| `RequestedMemoryMB` | *double* | :heavy_check_mark: | The amount of memory allocated to your process. | 1024 | +| `RoomsPerProcess` | *int* | :heavy_check_mark: | Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. | 3 | \ No newline at end of file diff --git a/docs/Models/Shared/DeploymentConfig.md b/docs/Models/Shared/DeploymentConfig.md index e90c69ff..6fa35b87 100644 --- a/docs/Models/Shared/DeploymentConfig.md +++ b/docs/Models/Shared/DeploymentConfig.md @@ -9,7 +9,7 @@ User specified deployment configuration for your application at runtime. | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AdditionalContainerPorts` | List<[ContainerPort](../../Models/Shared/ContainerPort.md)> | :heavy_minus_sign: | Additional ports your server listens on. | | | `ContainerPort` | *int* | :heavy_check_mark: | Default port the server listens on. | 4000 | -| `Env` | List<[DeploymentConfigEnv](../../Models/Shared/DeploymentConfigEnv.md)> | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | | +| `Env` | List<[Env](../../Models/Shared/Env.md)> | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | | | `IdleTimeoutEnabled` | *bool* | :heavy_minus_sign: | Option to shut down processes that have had no new connections or rooms
for five minutes. | | | `PlanName` | [PlanName](../../Models/Shared/PlanName.md) | :heavy_check_mark: | A plan defines how much CPU and memory is required to run an instance of your game server.

`tiny`: shared core, 1gb memory

`small`: 1 core, 2gb memory

`medium`: 2 core, 4gb memory

`large`: 4 core, 8gb memory | tiny | | `RoomsPerProcess` | *int* | :heavy_check_mark: | Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. | 3 | diff --git a/docs/Models/Shared/DeploymentConfigV3.md b/docs/Models/Shared/DeploymentConfigV3.md new file mode 100644 index 00000000..adb6e8de --- /dev/null +++ b/docs/Models/Shared/DeploymentConfigV3.md @@ -0,0 +1,16 @@ +# DeploymentConfigV3 + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `AdditionalContainerPorts` | List<[ContainerPort](../../Models/Shared/ContainerPort.md)> | :heavy_minus_sign: | Additional ports your server listens on. | | +| `BuildId` | *string* | :heavy_check_mark: | System generated id for a build. Can also be user defined when creating a build. | | +| `ContainerPort` | *int* | :heavy_check_mark: | Default port the server listens on. | 4000 | +| `Env` | List<[DeploymentConfigV3Env](../../Models/Shared/DeploymentConfigV3Env.md)> | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | | +| `IdleTimeoutEnabled` | *bool* | :heavy_check_mark: | Option to shut down processes that have had no new connections or rooms
for five minutes. | | +| `RequestedCPU` | *double* | :heavy_check_mark: | The number of cores allocated to your process. | 0.5 | +| `RequestedMemoryMB` | *double* | :heavy_check_mark: | The amount of memory allocated to your process. | 1024 | +| `RoomsPerProcess` | *int* | :heavy_check_mark: | Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. | 3 | +| `TransportType` | [TransportType](../../Models/Shared/TransportType.md) | :heavy_check_mark: | Transport type specifies the underlying communication protocol to the exposed port. | | \ No newline at end of file diff --git a/docs/Models/Shared/DeploymentConfigV3Env.md b/docs/Models/Shared/DeploymentConfigV3Env.md new file mode 100644 index 00000000..b915e1eb --- /dev/null +++ b/docs/Models/Shared/DeploymentConfigV3Env.md @@ -0,0 +1,9 @@ +# DeploymentConfigV3Env + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Name` | *string* | :heavy_check_mark: | N/A | EULA | +| `Value` | *string* | :heavy_check_mark: | N/A | TRUE | \ No newline at end of file diff --git a/docs/Models/Shared/DeploymentV1.md b/docs/Models/Shared/DeploymentV1.md new file mode 100644 index 00000000..584b5907 --- /dev/null +++ b/docs/Models/Shared/DeploymentV1.md @@ -0,0 +1,24 @@ +# DeploymentV1 + +Deployment is a versioned configuration for a build that describes runtime behavior. + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `AdditionalContainerPorts` | List<[ContainerPort](../../Models/Shared/ContainerPort.md)> | :heavy_check_mark: | Additional ports your server listens on. | {
"transportType": "tcp",
"port": 4000,
"name": "debug"
} | +| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `BuildId` | *int* | :heavy_check_mark: | System generated id for a build. Increments by 1. | 1 | +| ~~`ContainerPort`~~ | *double* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the deployment was created. | | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | +| `DefaultContainerPort` | [ContainerPort](../../Models/Shared/ContainerPort.md) | :heavy_check_mark: | A container port object represents the transport configruations for how your server will listen. | | +| `DeploymentId` | *int* | :heavy_check_mark: | System generated id for a deployment. Increments by 1. | 1 | +| `Env` | List<[DeploymentV1Env](../../Models/Shared/DeploymentV1Env.md)> | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | | +| `IdleTimeoutEnabled` | *bool* | :heavy_minus_sign: | Option to shut down processes that have had no new connections or rooms
for five minutes. | | +| `PlanName` | [PlanName](../../Models/Shared/PlanName.md) | :heavy_check_mark: | A plan defines how much CPU and memory is required to run an instance of your game server.

`tiny`: shared core, 1gb memory

`small`: 1 core, 2gb memory

`medium`: 2 core, 4gb memory

`large`: 4 core, 8gb memory | tiny | +| `RequestedCPU` | *double* | :heavy_check_mark: | The number of cores allocated to your process. | 0.5 | +| `RequestedMemoryMB` | *int* | :heavy_check_mark: | The amount of memory allocated to your process. | 1024 | +| `RoomsPerProcess` | *int* | :heavy_check_mark: | Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. | 3 | +| ~~`TransportType`~~ | [DeploymentV1TransportType](../../Models/Shared/DeploymentV1TransportType.md) | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | \ No newline at end of file diff --git a/docs/Models/Shared/DeploymentConfigEnv.md b/docs/Models/Shared/DeploymentV1Env.md similarity index 95% rename from docs/Models/Shared/DeploymentConfigEnv.md rename to docs/Models/Shared/DeploymentV1Env.md index b9a40043..9043d5a9 100644 --- a/docs/Models/Shared/DeploymentConfigEnv.md +++ b/docs/Models/Shared/DeploymentV1Env.md @@ -1,4 +1,4 @@ -# DeploymentConfigEnv +# DeploymentV1Env ## Fields diff --git a/docs/Models/Shared/DeploymentTransportType.md b/docs/Models/Shared/DeploymentV1TransportType.md similarity index 87% rename from docs/Models/Shared/DeploymentTransportType.md rename to docs/Models/Shared/DeploymentV1TransportType.md index cdee1994..8822e900 100644 --- a/docs/Models/Shared/DeploymentTransportType.md +++ b/docs/Models/Shared/DeploymentV1TransportType.md @@ -1,4 +1,4 @@ -# ~~DeploymentTransportType~~ +# ~~DeploymentV1TransportType~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. diff --git a/docs/Models/Shared/DeploymentV2.md b/docs/Models/Shared/DeploymentV2.md index 3ad6b89f..fd8768c5 100644 --- a/docs/Models/Shared/DeploymentV2.md +++ b/docs/Models/Shared/DeploymentV2.md @@ -9,7 +9,7 @@ | `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | | `BuildId` | *int* | :heavy_check_mark: | System generated id for a build. Increments by 1. | 1 | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the deployment was created. | | -| `CreatedBy` | *string* | :heavy_check_mark: | UserId or email address for the user that created the deployment. | google-oauth2\|107030234048588177467 | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | | `DefaultContainerPort` | [ContainerPort](../../Models/Shared/ContainerPort.md) | :heavy_check_mark: | A container port object represents the transport configruations for how your server will listen. | | | `DeploymentId` | *int* | :heavy_check_mark: | System generated id for a deployment. Increments by 1. | 1 | | `Env` | List<[DeploymentV2Env](../../Models/Shared/DeploymentV2Env.md)> | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | | diff --git a/docs/Models/Shared/DeploymentV3.md b/docs/Models/Shared/DeploymentV3.md new file mode 100644 index 00000000..675adc9e --- /dev/null +++ b/docs/Models/Shared/DeploymentV3.md @@ -0,0 +1,20 @@ +# DeploymentV3 + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `AdditionalContainerPorts` | List<[ContainerPort](../../Models/Shared/ContainerPort.md)> | :heavy_check_mark: | Additional ports your server listens on. | {
"transportType": "tcp",
"port": 4000,
"name": "debug"
} | +| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `BuildId` | *string* | :heavy_check_mark: | System generated id for a build. Can also be user defined when creating a build. | | +| `BuildTag` | *string* | :heavy_minus_sign: | Tag to associate an external version with a build. It is accessible via [`GetBuildInfo()`](https://hathora.dev/api#tag/BuildV2/operation/GetBuildInfo). | 0.1.14-14c793 | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the deployment was created. | | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | +| `DefaultContainerPort` | [ContainerPort](../../Models/Shared/ContainerPort.md) | :heavy_check_mark: | A container port object represents the transport configruations for how your server will listen. | | +| `DeploymentId` | *string* | :heavy_check_mark: | System generated id for a deployment. | | +| `Env` | List<[DeploymentV3Env](../../Models/Shared/DeploymentV3Env.md)> | :heavy_check_mark: | The environment variable that our process will have access to at runtime. | | +| `IdleTimeoutEnabled` | *bool* | :heavy_check_mark: | Option to shut down processes that have had no new connections or rooms
for five minutes. | | +| `RequestedCPU` | *double* | :heavy_check_mark: | The number of cores allocated to your process. | 0.5 | +| `RequestedMemoryMB` | *double* | :heavy_check_mark: | The amount of memory allocated to your process. | 1024 | +| `RoomsPerProcess` | *int* | :heavy_check_mark: | Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. | 3 | \ No newline at end of file diff --git a/docs/Models/Shared/DeploymentV3Env.md b/docs/Models/Shared/DeploymentV3Env.md new file mode 100644 index 00000000..f0aa445c --- /dev/null +++ b/docs/Models/Shared/DeploymentV3Env.md @@ -0,0 +1,9 @@ +# DeploymentV3Env + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ | +| `Name` | *string* | :heavy_check_mark: | N/A | EULA | +| `Value` | *string* | :heavy_check_mark: | N/A | TRUE | \ No newline at end of file diff --git a/docs/Models/Shared/DeploymentsV3Page.md b/docs/Models/Shared/DeploymentsV3Page.md new file mode 100644 index 00000000..d9a30fca --- /dev/null +++ b/docs/Models/Shared/DeploymentsV3Page.md @@ -0,0 +1,8 @@ +# DeploymentsV3Page + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `Deployments` | List<[DeploymentV3](../../Models/Shared/DeploymentV3.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/InviteStatusAccepted.md b/docs/Models/Shared/InviteStatusAccepted.md deleted file mode 100644 index 2ee7204e..00000000 --- a/docs/Models/Shared/InviteStatusAccepted.md +++ /dev/null @@ -1,9 +0,0 @@ -# InviteStatusAccepted - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `Type` | [Type](../../Models/Shared/Type.md) | :heavy_check_mark: | N/A | | -| `UserId` | *string* | :heavy_check_mark: | System generated unique identifier for a user. Not guaranteed to have a specific format. | auth0\|646bdf96f7fb73d04c8c84db | \ No newline at end of file diff --git a/docs/Models/Shared/InviteStatusPending.md b/docs/Models/Shared/InviteStatusPending.md deleted file mode 100644 index bb3f7af7..00000000 --- a/docs/Models/Shared/InviteStatusPending.md +++ /dev/null @@ -1,8 +0,0 @@ -# InviteStatusPending - - -## Fields - -| Field | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `Type` | [InviteStatusPendingType](../../Models/Shared/InviteStatusPendingType.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/InviteStatusPendingType.md b/docs/Models/Shared/InviteStatusPendingType.md deleted file mode 100644 index 398f1b42..00000000 --- a/docs/Models/Shared/InviteStatusPendingType.md +++ /dev/null @@ -1,8 +0,0 @@ -# InviteStatusPendingType - - -## Values - -| Name | Value | -| --------- | --------- | -| `Pending` | pending | \ No newline at end of file diff --git a/docs/Models/Shared/InviteStatusRejected.md b/docs/Models/Shared/InviteStatusRejected.md deleted file mode 100644 index fd06f0b2..00000000 --- a/docs/Models/Shared/InviteStatusRejected.md +++ /dev/null @@ -1,9 +0,0 @@ -# InviteStatusRejected - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `Type` | [InviteStatusRejectedType](../../Models/Shared/InviteStatusRejectedType.md) | :heavy_check_mark: | N/A | | -| `UserId` | *string* | :heavy_check_mark: | System generated unique identifier for a user. Not guaranteed to have a specific format. | auth0\|646bdf96f7fb73d04c8c84db | \ No newline at end of file diff --git a/docs/Models/Shared/InviteStatusRejectedType.md b/docs/Models/Shared/InviteStatusRejectedType.md deleted file mode 100644 index 5be820b7..00000000 --- a/docs/Models/Shared/InviteStatusRejectedType.md +++ /dev/null @@ -1,8 +0,0 @@ -# InviteStatusRejectedType - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `Rejected` | rejected | \ No newline at end of file diff --git a/docs/Models/Shared/InviteStatusRescinded.md b/docs/Models/Shared/InviteStatusRescinded.md deleted file mode 100644 index c7ffbcb2..00000000 --- a/docs/Models/Shared/InviteStatusRescinded.md +++ /dev/null @@ -1,10 +0,0 @@ -# InviteStatusRescinded - - -## Fields - -| Field | Type | Required | Description | Example | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `RescindedBy` | *string* | :heavy_check_mark: | System generated unique identifier for a user. Not guaranteed to have a specific format. | auth0\|646bdf96f7fb73d04c8c84db | -| `Type` | [InviteStatusRescindedType](../../Models/Shared/InviteStatusRescindedType.md) | :heavy_check_mark: | N/A | | -| `UserId` | *string* | :heavy_minus_sign: | System generated unique identifier for a user. Not guaranteed to have a specific format. | auth0\|646bdf96f7fb73d04c8c84db | \ No newline at end of file diff --git a/docs/Models/Shared/InviteStatusRescindedType.md b/docs/Models/Shared/InviteStatusRescindedType.md deleted file mode 100644 index e4519971..00000000 --- a/docs/Models/Shared/InviteStatusRescindedType.md +++ /dev/null @@ -1,8 +0,0 @@ -# InviteStatusRescindedType - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `Rescinded` | rescinded | \ No newline at end of file diff --git a/docs/Models/Shared/InvoiceItem.md b/docs/Models/Shared/InvoiceItem.md new file mode 100644 index 00000000..2b6171eb --- /dev/null +++ b/docs/Models/Shared/InvoiceItem.md @@ -0,0 +1,12 @@ +# InvoiceItem + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Amount` | *double* | :heavy_check_mark: | N/A | +| `ProductName` | *string* | :heavy_check_mark: | N/A | +| `Quantity` | *double* | :heavy_check_mark: | N/A | +| `Unit` | *string* | :heavy_check_mark: | N/A | +| `UnitPrice` | *double* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Operations/RunBuildRequestBody.md b/docs/Models/Shared/InvoiceItemPage.md similarity index 79% rename from docs/Models/Operations/RunBuildRequestBody.md rename to docs/Models/Shared/InvoiceItemPage.md index d9cdc679..5a02e646 100644 --- a/docs/Models/Operations/RunBuildRequestBody.md +++ b/docs/Models/Shared/InvoiceItemPage.md @@ -1,8 +1,8 @@ -# RunBuildRequestBody +# InvoiceItemPage ## Fields | Field | Type | Required | Description | | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | ------------------------------------------------------- | -| `File` | [RunBuildFile](../../Models/Operations/RunBuildFile.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `InvoiceItems` | List<[InvoiceItem](../../Models/Shared/InvoiceItem.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/Lobby.md b/docs/Models/Shared/Lobby.md index ee71bdd1..abfb1d62 100644 --- a/docs/Models/Shared/Lobby.md +++ b/docs/Models/Shared/Lobby.md @@ -9,11 +9,11 @@ A lobby object allows you to store and manage metadata for your rooms. | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the lobby was created. | | -| `CreatedBy` | *string* | :heavy_check_mark: | UserId or email address for the user that created the lobby. | google-oauth2\|107030234048588177467 | -| `InitialConfig` | [LobbyInitialConfig](../../Models/Shared/LobbyInitialConfig.md) | :heavy_check_mark: | User input to initialize the game state. Object must be smaller than 64KB. | | +| `CreatedBy` | [CreatedBy](../../Models/Shared/CreatedBy.md) | :heavy_check_mark: | UserId or email address for the user that created the lobby. | google-oauth2\|107030234048588177467 | +| `InitialConfig` | *object* | :heavy_check_mark: | User input to initialize the game state. Object must be smaller than 64KB. | | | ~~`Local`~~ | *bool* | :heavy_check_mark: | : warning: ** DEPRECATED **: This will be removed in a future release, please migrate away from it as soon as possible. | | | `Region` | [Region](../../Models/Shared/Region.md) | :heavy_check_mark: | N/A | | | `RoomId` | *string* | :heavy_check_mark: | Unique identifier to a game session or match. Use the default system generated ID or overwrite it with your own.
Note: error will be returned if `roomId` is not globally unique. | 2swovpy1fnunu | | `ShortCode` | *string* | :heavy_check_mark: | N/A | LFG4 | -| `State` | [State](../../Models/Shared/State.md) | :heavy_minus_sign: | JSON blob to store metadata for a room. Must be smaller than 1MB. | | +| `State` | *object* | :heavy_minus_sign: | JSON blob to store metadata for a room. Must be smaller than 1MB. | | | `Visibility` | [LobbyVisibility](../../Models/Shared/LobbyVisibility.md) | :heavy_check_mark: | Types of lobbies a player can create.

`private`: the player who created the room must share the roomId with their friends

`public`: visible in the public lobby list, anyone can join

`local`: for testing with a server running locally | private | \ No newline at end of file diff --git a/docs/Models/Shared/LobbyInitialConfig.md b/docs/Models/Shared/LobbyInitialConfig.md deleted file mode 100644 index a66c5684..00000000 --- a/docs/Models/Shared/LobbyInitialConfig.md +++ /dev/null @@ -1,9 +0,0 @@ -# LobbyInitialConfig - -User input to initialize the game state. Object must be smaller than 64KB. - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Shared/LobbyV3.md b/docs/Models/Shared/LobbyV3.md index 87a682a4..7e1623ed 100644 --- a/docs/Models/Shared/LobbyV3.md +++ b/docs/Models/Shared/LobbyV3.md @@ -9,9 +9,9 @@ A lobby object allows you to store and manage metadata for your rooms. | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the lobby was created. | | -| `CreatedBy` | *string* | :heavy_check_mark: | UserId or email address for the user that created the lobby. | google-oauth2\|107030234048588177467 | +| `CreatedBy` | [LobbyV3CreatedBy](../../Models/Shared/LobbyV3CreatedBy.md) | :heavy_check_mark: | UserId or email address for the user that created the lobby. | google-oauth2\|107030234048588177467 | | `Region` | [Region](../../Models/Shared/Region.md) | :heavy_check_mark: | N/A | | -| `RoomConfig` | *string* | :heavy_check_mark: | N/A | {"name":"my-room"} | +| `RoomConfig` | *string* | :heavy_minus_sign: | N/A | {"name":"my-room"} | | `RoomId` | *string* | :heavy_check_mark: | Unique identifier to a game session or match. Use the default system generated ID or overwrite it with your own.
Note: error will be returned if `roomId` is not globally unique. | 2swovpy1fnunu | | `ShortCode` | *string* | :heavy_check_mark: | User-defined identifier for a lobby. | LFG4 | | `Visibility` | [LobbyVisibility](../../Models/Shared/LobbyVisibility.md) | :heavy_check_mark: | Types of lobbies a player can create.

`private`: the player who created the room must share the roomId with their friends

`public`: visible in the public lobby list, anyone can join

`local`: for testing with a server running locally | private | \ No newline at end of file diff --git a/docs/Models/Shared/LobbyV3CreatedBy.md b/docs/Models/Shared/LobbyV3CreatedBy.md new file mode 100644 index 00000000..ee919a0b --- /dev/null +++ b/docs/Models/Shared/LobbyV3CreatedBy.md @@ -0,0 +1,4 @@ +# LobbyV3CreatedBy + +UserId or email address for the user that created the lobby. + diff --git a/docs/Models/Shared/MetricsData.md b/docs/Models/Shared/MetricsData.md index 44e2cfc4..f08c22d7 100644 --- a/docs/Models/Shared/MetricsData.md +++ b/docs/Models/Shared/MetricsData.md @@ -1,7 +1,5 @@ # MetricsData -Construct a type with a set of properties K of type T - ## Fields diff --git a/docs/Models/Shared/OrgInvitesPage.md b/docs/Models/Shared/OrgInvitesPage.md deleted file mode 100644 index afff6acf..00000000 --- a/docs/Models/Shared/OrgInvitesPage.md +++ /dev/null @@ -1,8 +0,0 @@ -# OrgInvitesPage - - -## Fields - -| Field | Type | Required | Description | -| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | -| `Invites` | List<[OrgPermission](../../Models/Shared/OrgPermission.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/OrgPermission.md b/docs/Models/Shared/OrgMember.md similarity index 85% rename from docs/Models/Shared/OrgPermission.md rename to docs/Models/Shared/OrgMember.md index 06b58661..220f8f1c 100644 --- a/docs/Models/Shared/OrgPermission.md +++ b/docs/Models/Shared/OrgMember.md @@ -1,4 +1,4 @@ -# OrgPermission +# OrgMember ## Fields @@ -6,8 +6,8 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | | -| `InvitedBy` | *string* | :heavy_check_mark: | System generated unique identifier for a user. Not guaranteed to have a specific format. | auth0\|646bdf96f7fb73d04c8c84db | +| `InvitedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | +| `JoinedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | | +| `LastLogin` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_minus_sign: | N/A | | | `OrgId` | *string* | :heavy_check_mark: | System generated unique identifier for an organization. Not guaranteed to have a specific format. | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | -| `Status` | [OrganizationInviteStatus](../../Models/Shared/OrganizationInviteStatus.md) | :heavy_check_mark: | N/A | | -| `UpdatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | | -| `UserEmail` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file +| `UserEmail` | *string* | :heavy_check_mark: | A user's email. | noreply@hathora.dev | \ No newline at end of file diff --git a/docs/Models/Shared/OrgMembersPage.md b/docs/Models/Shared/OrgMembersPage.md new file mode 100644 index 00000000..917f9517 --- /dev/null +++ b/docs/Models/Shared/OrgMembersPage.md @@ -0,0 +1,8 @@ +# OrgMembersPage + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | +| `Members` | List<[OrgMember](../../Models/Shared/OrgMember.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/OrgToken.md b/docs/Models/Shared/OrgToken.md index d814684a..d03b17b4 100644 --- a/docs/Models/Shared/OrgToken.md +++ b/docs/Models/Shared/OrgToken.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | | -| `CreatedBy` | *string* | :heavy_check_mark: | N/A | | +| `CreatedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | | `LastFourCharsOfKey` | *string* | :heavy_check_mark: | N/A | | | `Name` | *string* | :heavy_check_mark: | Readable name for a token. Must be unique within an organization. | ci-token | | `OrgId` | *string* | :heavy_check_mark: | N/A | | diff --git a/docs/Models/Shared/Organization.md b/docs/Models/Shared/Organization.md new file mode 100644 index 00000000..ea0df8df --- /dev/null +++ b/docs/Models/Shared/Organization.md @@ -0,0 +1,10 @@ +# Organization + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `IsSingleTenant` | *bool* | :heavy_check_mark: | N/A | | +| `OrgId` | *string* | :heavy_check_mark: | System generated unique identifier for an organization. Not guaranteed to have a specific format. | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | +| `StripeCustomerId` | *string* | :heavy_check_mark: | N/A | | \ No newline at end of file diff --git a/docs/Models/Shared/OrganizationInviteStatus.md b/docs/Models/Shared/OrganizationInviteStatus.md deleted file mode 100644 index 966cd8ab..00000000 --- a/docs/Models/Shared/OrganizationInviteStatus.md +++ /dev/null @@ -1,2 +0,0 @@ -# OrganizationInviteStatus - diff --git a/docs/Models/Shared/OrgsPage.md b/docs/Models/Shared/OrgsPage.md new file mode 100644 index 00000000..2bc8ef23 --- /dev/null +++ b/docs/Models/Shared/OrgsPage.md @@ -0,0 +1,8 @@ +# OrgsPage + + +## Fields + +| Field | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `Orgs` | List<[Organization](../../Models/Shared/Organization.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/PendingOrgInvite.md b/docs/Models/Shared/PendingOrgInvite.md new file mode 100644 index 00000000..cb3284ed --- /dev/null +++ b/docs/Models/Shared/PendingOrgInvite.md @@ -0,0 +1,11 @@ +# PendingOrgInvite + + +## Fields + +| Field | Type | Required | Description | Example | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | N/A | | +| `InvitedBy` | *string* | :heavy_check_mark: | N/A | noreply@hathora.dev | +| `OrgId` | *string* | :heavy_check_mark: | System generated unique identifier for an organization. Not guaranteed to have a specific format. | org-6f706e83-0ec1-437a-9a46-7d4281eb2f39 | +| `UserEmail` | *string* | :heavy_check_mark: | A user's email. | noreply@hathora.dev | \ No newline at end of file diff --git a/docs/Models/Shared/PendingOrgInvitesPage.md b/docs/Models/Shared/PendingOrgInvitesPage.md new file mode 100644 index 00000000..6e3c9628 --- /dev/null +++ b/docs/Models/Shared/PendingOrgInvitesPage.md @@ -0,0 +1,8 @@ +# PendingOrgInvitesPage + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `Invites` | List<[PendingOrgInvite](../../Models/Shared/PendingOrgInvite.md)> | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/Models/Shared/ProcessV3.md b/docs/Models/Shared/ProcessV3.md new file mode 100644 index 00000000..1b88e426 --- /dev/null +++ b/docs/Models/Shared/ProcessV3.md @@ -0,0 +1,20 @@ +# ProcessV3 + + +## Fields + +| Field | Type | Required | Description | Example | +| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | +| `AdditionalExposedPorts` | List<[ExposedPort](../../Models/Shared/ExposedPort.md)> | :heavy_check_mark: | N/A | [
{
"host": "1.proxy.hathora.dev",
"name": "debug",
"port": 72941,
"transportType": "tcp"
}
] | +| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `CreatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the process started being provisioned. | | +| `DeploymentId` | *string* | :heavy_check_mark: | System generated id for a deployment. | | +| `ExposedPort` | [ProcessV3ExposedPort](../../Models/Shared/ProcessV3ExposedPort.md) | :heavy_check_mark: | N/A | {
"host": "1.proxy.hathora.dev",
"name": "default",
"port": 34567,
"transportType": "tcp"
} | +| `ProcessId` | *string* | :heavy_check_mark: | System generated unique identifier to a runtime instance of your game server. | cbfcddd2-0006-43ae-996c-995fff7bed2e | +| `Region` | [Region](../../Models/Shared/Region.md) | :heavy_check_mark: | N/A | | +| `RoomsAllocated` | *int* | :heavy_check_mark: | Tracks the number of rooms that have been allocated to the process. | 1 | +| `RoomsPerProcess` | *int* | :heavy_check_mark: | Governs how many [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) can be scheduled in a process. | 3 | +| `StartedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the process bound to the specified port. We use this to determine when we should start billing. | | +| `Status` | [ProcessStatus](../../Models/Shared/ProcessStatus.md) | :heavy_check_mark: | N/A | | +| `StoppingAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the process is issued to stop. We use this to determine when we should stop billing. | | +| `TerminatedAt` | [DateTime](https://learn.microsoft.com/en-us/dotnet/api/system.datetime?view=net-5.0) | :heavy_check_mark: | When the process has been terminated. | | \ No newline at end of file diff --git a/docs/Models/Shared/ProcessV3ExposedPort.md b/docs/Models/Shared/ProcessV3ExposedPort.md new file mode 100644 index 00000000..c22f0e3b --- /dev/null +++ b/docs/Models/Shared/ProcessV3ExposedPort.md @@ -0,0 +1,13 @@ +# ProcessV3ExposedPort + +Connection details for an active process. + + +## Fields + +| Field | Type | Required | Description | +| ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | +| `Host` | *string* | :heavy_check_mark: | N/A | +| `Name` | *string* | :heavy_check_mark: | N/A | +| `Port` | *int* | :heavy_check_mark: | N/A | +| `TransportType` | [TransportType](../../Models/Shared/TransportType.md) | :heavy_check_mark: | Transport type specifies the underlying communication protocol to the exposed port. | \ No newline at end of file diff --git a/docs/Models/Shared/RescindUserInvite.md b/docs/Models/Shared/RescindUserInvite.md index ddda3050..59683d18 100644 --- a/docs/Models/Shared/RescindUserInvite.md +++ b/docs/Models/Shared/RescindUserInvite.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `UserEmail` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | Example | +| ------------------- | ------------------- | ------------------- | ------------------- | ------------------- | +| `UserEmail` | *string* | :heavy_check_mark: | A user's email. | noreply@hathora.dev | \ No newline at end of file diff --git a/docs/Models/Shared/Room.md b/docs/Models/Shared/Room.md index f820ee47..03e40c2d 100644 --- a/docs/Models/Shared/Room.md +++ b/docs/Models/Shared/Room.md @@ -5,11 +5,11 @@ A room object represents a game session or match. ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `Allocations` | List<[RoomAllocation](../../Models/Shared/RoomAllocation.md)> | :heavy_check_mark: | N/A | | -| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | -| `CurrentAllocation` | [CurrentAllocation](../../Models/Shared/CurrentAllocation.md) | :heavy_check_mark: | N/A | | -| `RoomConfig` | *string* | :heavy_check_mark: | N/A | {"name":"my-room"} | -| `RoomId` | *string* | :heavy_check_mark: | Unique identifier to a game session or match. Use the default system generated ID or overwrite it with your own.
Note: error will be returned if `roomId` is not globally unique. | 2swovpy1fnunu | -| `Status` | [RoomStatus](../../Models/Shared/RoomStatus.md) | :heavy_check_mark: | The allocation status of a room.

`scheduling`: a process is not allocated yet and the room is waiting to be scheduled

`active`: ready to accept connections

`suspended`: room is unallocated from the process but can be rescheduled later with the same `roomId`

`destroyed`: all associated metadata is deleted | active | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `Allocations` | List<[RoomAllocation](../../Models/Shared/RoomAllocation.md)> | :heavy_check_mark: | N/A | | +| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `CurrentAllocation` | [CurrentAllocation](../../Models/Shared/CurrentAllocation.md) | :heavy_check_mark: | N/A | | +| `RoomConfig` | *string* | :heavy_minus_sign: | N/A | {"name":"my-room"} | +| `RoomId` | *string* | :heavy_check_mark: | Unique identifier to a game session or match. Use the default system generated ID or overwrite it with your own.
Note: error will be returned if `roomId` is not globally unique. | 2swovpy1fnunu | +| `Status` | [RoomStatus](../../Models/Shared/RoomStatus.md) | :heavy_check_mark: | The allocation status of a room.

`scheduling`: a process is not allocated yet and the room is waiting to be scheduled

`active`: ready to accept connections

`destroyed`: all associated metadata is deleted | active | \ No newline at end of file diff --git a/docs/Models/Shared/RoomStatus.md b/docs/Models/Shared/RoomStatus.md index 89a3b8fd..de44a3cb 100644 --- a/docs/Models/Shared/RoomStatus.md +++ b/docs/Models/Shared/RoomStatus.md @@ -6,8 +6,6 @@ The allocation status of a room. `active`: ready to accept connections -`suspended`: room is unallocated from the process but can be rescheduled later with the same `roomId` - `destroyed`: all associated metadata is deleted @@ -17,5 +15,4 @@ The allocation status of a room. | ------------ | ------------ | | `Scheduling` | scheduling | | `Active` | active | -| `Suspended` | suspended | | `Destroyed` | destroyed | \ No newline at end of file diff --git a/docs/Models/Shared/RoomWithoutAllocations.md b/docs/Models/Shared/RoomWithoutAllocations.md index a6254cf7..6ee1d224 100644 --- a/docs/Models/Shared/RoomWithoutAllocations.md +++ b/docs/Models/Shared/RoomWithoutAllocations.md @@ -1,14 +1,12 @@ # RoomWithoutAllocations -From T, pick a set of properties whose keys are in the union K - ## Fields -| Field | Type | Required | Description | Example | -| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | -| `CurrentAllocation` | [RoomWithoutAllocationsCurrentAllocation](../../Models/Shared/RoomWithoutAllocationsCurrentAllocation.md) | :heavy_check_mark: | N/A | | -| `RoomConfig` | *string* | :heavy_check_mark: | N/A | {"name":"my-room"} | -| `RoomId` | *string* | :heavy_check_mark: | Unique identifier to a game session or match. Use the default system generated ID or overwrite it with your own.
Note: error will be returned if `roomId` is not globally unique. | 2swovpy1fnunu | -| `Status` | [RoomStatus](../../Models/Shared/RoomStatus.md) | :heavy_check_mark: | The allocation status of a room.

`scheduling`: a process is not allocated yet and the room is waiting to be scheduled

`active`: ready to accept connections

`suspended`: room is unallocated from the process but can be rescheduled later with the same `roomId`

`destroyed`: all associated metadata is deleted | active | \ No newline at end of file +| Field | Type | Required | Description | Example | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `AppId` | *string* | :heavy_check_mark: | System generated unique identifier for an application. | app-af469a92-5b45-4565-b3c4-b79878de67d2 | +| `CurrentAllocation` | [RoomWithoutAllocationsCurrentAllocation](../../Models/Shared/RoomWithoutAllocationsCurrentAllocation.md) | :heavy_check_mark: | N/A | | +| `RoomConfig` | *string* | :heavy_minus_sign: | N/A | {"name":"my-room"} | +| `RoomId` | *string* | :heavy_check_mark: | Unique identifier to a game session or match. Use the default system generated ID or overwrite it with your own.
Note: error will be returned if `roomId` is not globally unique. | 2swovpy1fnunu | +| `Status` | [RoomStatus](../../Models/Shared/RoomStatus.md) | :heavy_check_mark: | The allocation status of a room.

`scheduling`: a process is not allocated yet and the room is waiting to be scheduled

`active`: ready to accept connections

`destroyed`: all associated metadata is deleted | active | \ No newline at end of file diff --git a/docs/Models/Shared/SetLobbyStateParams.md b/docs/Models/Shared/SetLobbyStateParams.md index 6162e88d..9c089c68 100644 --- a/docs/Models/Shared/SetLobbyStateParams.md +++ b/docs/Models/Shared/SetLobbyStateParams.md @@ -3,6 +3,6 @@ ## Fields -| Field | Type | Required | Description | -| --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -| `State` | [SetLobbyStateParamsState](../../Models/Shared/SetLobbyStateParamsState.md) | :heavy_check_mark: | JSON blob to store metadata for a room. Must be smaller than 1MB. | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `State` | *object* | :heavy_check_mark: | JSON blob to store metadata for a room. Must be smaller than 1MB. | \ No newline at end of file diff --git a/docs/Models/Shared/SetLobbyStateParamsState.md b/docs/Models/Shared/SetLobbyStateParamsState.md deleted file mode 100644 index 88051911..00000000 --- a/docs/Models/Shared/SetLobbyStateParamsState.md +++ /dev/null @@ -1,9 +0,0 @@ -# SetLobbyStateParamsState - -JSON blob to store metadata for a room. Must be smaller than 1MB. - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/Models/Shared/Type.md b/docs/Models/Shared/Type.md deleted file mode 100644 index a4ea8a14..00000000 --- a/docs/Models/Shared/Type.md +++ /dev/null @@ -1,8 +0,0 @@ -# Type - - -## Values - -| Name | Value | -| ---------- | ---------- | -| `Accepted` | accepted | \ No newline at end of file diff --git a/docs/Models/Shared/UploadBodyParams.md b/docs/Models/Shared/UploadBodyParams.md new file mode 100644 index 00000000..08264322 --- /dev/null +++ b/docs/Models/Shared/UploadBodyParams.md @@ -0,0 +1,9 @@ +# UploadBodyParams + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `Key` | *string* | :heavy_check_mark: | N/A | +| `Value` | *string* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdks/appsv1/README.md b/docs/sdks/appsv1/README.md new file mode 100644 index 00000000..ed46e5d9 --- /dev/null +++ b/docs/sdks/appsv1/README.md @@ -0,0 +1,239 @@ +# AppsV1 +(*AppsV1*) + +## Overview + +### Available Operations + +* [CreateAppV1Deprecated](#createappv1deprecated) - Create a new [application](https://hathora.dev/docs/concepts/hathora-entities#application). +* [DeleteAppV1Deprecated](#deleteappv1deprecated) - Delete an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. Your organization will lose access to this application. +* [GetAppInfoV1Deprecated](#getappinfov1deprecated) - Get details for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. +* [GetAppsV1Deprecated](#getappsv1deprecated) - Returns an unsorted list of your organization’s [applications](https://hathora.dev/docs/concepts/hathora-entities#application). An application is uniquely identified by an `appId`. +* [UpdateAppV1Deprecated](#updateappv1deprecated) - Update data for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. + +## CreateAppV1Deprecated + +Create a new [application](https://hathora.dev/docs/concepts/hathora-entities#application). + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +AppConfig req = new AppConfig() { + AppName = "minecraft", + AuthConfiguration = new AuthConfiguration() {}, +}; + + +using(var res = await sdk.AppsV1.CreateAppV1DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | +| `request` | [AppConfig](../../Models/Shared/AppConfig.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[CreateAppV1DeprecatedResponse](../../Models/Operations/CreateAppV1DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,422,429,500 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## DeleteAppV1Deprecated + +Delete an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. Your organization will lose access to this application. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +DeleteAppV1DeprecatedRequest req = new DeleteAppV1DeprecatedRequest() {}; + + +using(var res = await sdk.AppsV1.DeleteAppV1DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `request` | [DeleteAppV1DeprecatedRequest](../../Models/Operations/DeleteAppV1DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[DeleteAppV1DeprecatedResponse](../../Models/Operations/DeleteAppV1DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetAppInfoV1Deprecated + +Get details for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +GetAppInfoV1DeprecatedRequest req = new GetAppInfoV1DeprecatedRequest() {}; + + +using(var res = await sdk.AppsV1.GetAppInfoV1DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | +| `request` | [GetAppInfoV1DeprecatedRequest](../../Models/Operations/GetAppInfoV1DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetAppInfoV1DeprecatedResponse](../../Models/Operations/GetAppInfoV1DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetAppsV1Deprecated + +Returns an unsorted list of your organization’s [applications](https://hathora.dev/docs/concepts/hathora-entities#application). An application is uniquely identified by an `appId`. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + +using(var res = await sdk.AppsV1.GetAppsV1DeprecatedAsync()) +{ + // handle response +} + + +``` + +### Response + +**[GetAppsV1DeprecatedResponse](../../Models/Operations/GetAppsV1DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## UpdateAppV1Deprecated + +Update data for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +UpdateAppV1DeprecatedRequest req = new UpdateAppV1DeprecatedRequest() { + AppConfig = new AppConfig() { + AppName = "minecraft", + AuthConfiguration = new AuthConfiguration() {}, + }, +}; + + +using(var res = await sdk.AppsV1.UpdateAppV1DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `request` | [UpdateAppV1DeprecatedRequest](../../Models/Operations/UpdateAppV1DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[UpdateAppV1DeprecatedResponse](../../Models/Operations/UpdateAppV1DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429,500 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/appv1/README.md b/docs/sdks/appsv2/README.md similarity index 70% rename from docs/sdks/appv1/README.md rename to docs/sdks/appsv2/README.md index b1adee1f..d9d23173 100644 --- a/docs/sdks/appv1/README.md +++ b/docs/sdks/appsv2/README.md @@ -1,15 +1,13 @@ -# AppV1 -(*AppV1*) +# AppsV2 +(*AppsV2*) ## Overview -Operations that allow you manage your [applications](https://hathora.dev/docs/concepts/hathora-entities#application). - ### Available Operations * [CreateApp](#createapp) - Create a new [application](https://hathora.dev/docs/concepts/hathora-entities#application). * [DeleteApp](#deleteapp) - Delete an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. Your organization will lose access to this application. -* [GetAppInfo](#getappinfo) - Get details for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. +* [GetApp](#getapp) - Get details for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. * [GetApps](#getapps) - Returns an unsorted list of your organization’s [applications](https://hathora.dev/docs/concepts/hathora-entities#application). An application is uniquely identified by an `appId`. * [UpdateApp](#updateapp) - Update data for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. @@ -22,6 +20,7 @@ Create a new [application](https://hathora.dev/docs/concepts/hathora-entities#ap ```csharp using HathoraCloud; using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; var sdk = new HathoraCloudSDK( security: new Security() { @@ -29,13 +28,16 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -AppConfig req = new AppConfig() { - AppName = "minecraft", - AuthConfiguration = new AuthConfiguration() {}, +CreateAppRequest req = new CreateAppRequest() { + AppConfig = new AppConfig() { + AppName = "minecraft", + AuthConfiguration = new AuthConfiguration() {}, + }, + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", }; -using(var res = await sdk.AppV1.CreateAppAsync(req)) +using(var res = await sdk.AppsV2.CreateAppAsync(req)) { // handle response } @@ -45,21 +47,22 @@ using(var res = await sdk.AppV1.CreateAppAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | --------------------------------------------- | -| `request` | [AppConfig](../../Models/Shared/AppConfig.md) | :heavy_check_mark: | The request object to use for the request. | - +| Parameter | Type | Required | Description | +| --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | +| `request` | [CreateAppRequest](../../Models/Operations/CreateAppRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response **[CreateAppResponse](../../Models/Operations/CreateAppResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,422,429,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## DeleteApp Delete an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. Your organization will lose access to this application. @@ -80,7 +83,7 @@ var sdk = new HathoraCloudSDK( DeleteAppRequest req = new DeleteAppRequest() {}; -using(var res = await sdk.AppV1.DeleteAppAsync(req)) +using(var res = await sdk.AppsV2.DeleteAppAsync(req)) { // handle response } @@ -94,10 +97,10 @@ using(var res = await sdk.AppV1.DeleteAppAsync(req)) | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [DeleteAppRequest](../../Models/Operations/DeleteAppRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[DeleteAppResponse](../../Models/Operations/DeleteAppResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -105,7 +108,8 @@ using(var res = await sdk.AppV1.DeleteAppAsync(req)) | HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | -## GetAppInfo + +## GetApp Get details for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. @@ -122,10 +126,10 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -GetAppInfoRequest req = new GetAppInfoRequest() {}; +GetAppRequest req = new GetAppRequest() {}; -using(var res = await sdk.AppV1.GetAppInfoAsync(req)) +using(var res = await sdk.AppsV2.GetAppAsync(req)) { // handle response } @@ -135,21 +139,22 @@ using(var res = await sdk.AppV1.GetAppInfoAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | -| `request` | [GetAppInfoRequest](../../Models/Operations/GetAppInfoRequest.md) | :heavy_check_mark: | The request object to use for the request. | - +| Parameter | Type | Required | Description | +| --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | --------------------------------------------------------- | +| `request` | [GetAppRequest](../../Models/Operations/GetAppRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[GetAppInfoResponse](../../Models/Operations/GetAppInfoResponse.md)** +**[GetAppResponse](../../Models/Operations/GetAppResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetApps Returns an unsorted list of your organization’s [applications](https://hathora.dev/docs/concepts/hathora-entities#application). An application is uniquely identified by an `appId`. @@ -159,6 +164,7 @@ Returns an unsorted list of your organization’s [applications](https://hathora ```csharp using HathoraCloud; using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; var sdk = new HathoraCloudSDK( security: new Security() { @@ -166,8 +172,12 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); +GetAppsRequest req = new GetAppsRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", +}; + -using(var res = await sdk.AppV1.GetAppsAsync()) +using(var res = await sdk.AppsV2.GetAppsAsync(req)) { // handle response } @@ -175,16 +185,24 @@ using(var res = await sdk.AppV1.GetAppsAsync()) ``` +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | ----------------------------------------------------------- | +| `request` | [GetAppsRequest](../../Models/Operations/GetAppsRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response **[GetAppsResponse](../../Models/Operations/GetAppsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## UpdateApp Update data for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. @@ -210,7 +228,7 @@ UpdateAppRequest req = new UpdateAppRequest() { }; -using(var res = await sdk.AppV1.UpdateAppAsync(req)) +using(var res = await sdk.AppsV2.UpdateAppAsync(req)) { // handle response } @@ -224,10 +242,10 @@ using(var res = await sdk.AppV1.UpdateAppAsync(req)) | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [UpdateAppRequest](../../Models/Operations/UpdateAppRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[UpdateAppResponse](../../Models/Operations/UpdateAppResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/authv1/README.md b/docs/sdks/authv1/README.md index 2ef23f71..6a9c3f08 100644 --- a/docs/sdks/authv1/README.md +++ b/docs/sdks/authv1/README.md @@ -41,17 +41,18 @@ using(var res = await sdk.AuthV1.LoginAnonymousAsync(req)) | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [LoginAnonymousRequest](../../Models/Operations/LoginAnonymousRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[LoginAnonymousResponse](../../Models/Operations/LoginAnonymousResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## LoginGoogle Returns a unique player token using a Google-signed OIDC `idToken`. @@ -86,17 +87,18 @@ using(var res = await sdk.AuthV1.LoginGoogleAsync(req)) | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [LoginGoogleRequest](../../Models/Operations/LoginGoogleRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[LoginGoogleResponse](../../Models/Operations/LoginGoogleResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## LoginNickname Returns a unique player token with a specified nickname for a user. @@ -131,13 +133,13 @@ using(var res = await sdk.AuthV1.LoginNicknameAsync(req)) | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [LoginNicknameRequest](../../Models/Operations/LoginNicknameRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[LoginNicknameResponse](../../Models/Operations/LoginNicknameResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/billingv1/README.md b/docs/sdks/billingv1/README.md index 900a3a41..34d75c53 100644 --- a/docs/sdks/billingv1/README.md +++ b/docs/sdks/billingv1/README.md @@ -10,6 +10,8 @@ * [GetBalance](#getbalance) * [GetInvoices](#getinvoices) * [GetPaymentMethod](#getpaymentmethod) +* [GetUpcomingInvoiceItems](#getupcominginvoiceitems) +* [GetUpcomingInvoiceTotal](#getupcominginvoicetotal) * [InitStripeCustomerPortalUrl](#initstripecustomerportalurl) ## GetBalance @@ -35,17 +37,18 @@ using(var res = await sdk.BillingV1.GetBalanceAsync()) ``` - ### Response **[GetBalanceResponse](../../Models/Operations/GetBalanceResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetInvoices ### Example Usage @@ -69,17 +72,18 @@ using(var res = await sdk.BillingV1.GetInvoicesAsync()) ``` - ### Response **[GetInvoicesResponse](../../Models/Operations/GetInvoicesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetPaymentMethod ### Example Usage @@ -103,17 +107,88 @@ using(var res = await sdk.BillingV1.GetPaymentMethodAsync()) ``` - ### Response **[GetPaymentMethodResponse](../../Models/Operations/GetPaymentMethodResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + +## GetUpcomingInvoiceItems + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + +using(var res = await sdk.BillingV1.GetUpcomingInvoiceItemsAsync()) +{ + // handle response +} + + +``` + +### Response + +**[GetUpcomingInvoiceItemsResponse](../../Models/Operations/GetUpcomingInvoiceItemsResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetUpcomingInvoiceTotal + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + +using(var res = await sdk.BillingV1.GetUpcomingInvoiceTotalAsync()) +{ + // handle response +} + + +``` + +### Response + +**[GetUpcomingInvoiceTotalResponse](../../Models/Operations/GetUpcomingInvoiceTotalResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + ## InitStripeCustomerPortalUrl ### Example Usage @@ -147,10 +222,10 @@ using(var res = await sdk.BillingV1.InitStripeCustomerPortalUrlAsync(req)) | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `request` | [CustomerPortalUrl](../../Models/Shared/CustomerPortalUrl.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[InitStripeCustomerPortalUrlResponse](../../Models/Operations/InitStripeCustomerPortalUrlResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/buildv1/README.md b/docs/sdks/buildsv1/README.md similarity index 94% rename from docs/sdks/buildv1/README.md rename to docs/sdks/buildsv1/README.md index a349c283..eed0fbbb 100644 --- a/docs/sdks/buildv1/README.md +++ b/docs/sdks/buildsv1/README.md @@ -1,10 +1,8 @@ -# BuildV1 -(*BuildV1*) +# BuildsV1 +(*BuildsV1*) ## Overview -Deprecated. Use [BuildV2](https://hathora.dev/api#tag/BuildV2). - ### Available Operations * [~~CreateBuildDeprecated~~](#createbuilddeprecated) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build). Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. :warning: **Deprecated** @@ -39,7 +37,7 @@ CreateBuildDeprecatedRequest req = new CreateBuildDeprecatedRequest() { }; -using(var res = await sdk.BuildV1.CreateBuildDeprecatedAsync(req)) +using(var res = await sdk.BuildsV1.CreateBuildDeprecatedAsync(req)) { // handle response } @@ -53,10 +51,10 @@ using(var res = await sdk.BuildV1.CreateBuildDeprecatedAsync(req)) | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `request` | [CreateBuildDeprecatedRequest](../../Models/Operations/CreateBuildDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[CreateBuildDeprecatedResponse](../../Models/Operations/CreateBuildDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -64,6 +62,7 @@ using(var res = await sdk.BuildV1.CreateBuildDeprecatedAsync(req)) | HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~DeleteBuildDeprecated~~ Delete a [build](https://hathora.dev/docs/concepts/hathora-entities#build). All associated metadata is deleted. @@ -88,7 +87,7 @@ DeleteBuildDeprecatedRequest req = new DeleteBuildDeprecatedRequest() { }; -using(var res = await sdk.BuildV1.DeleteBuildDeprecatedAsync(req)) +using(var res = await sdk.BuildsV1.DeleteBuildDeprecatedAsync(req)) { // handle response } @@ -102,17 +101,18 @@ using(var res = await sdk.BuildV1.DeleteBuildDeprecatedAsync(req)) | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `request` | [DeleteBuildDeprecatedRequest](../../Models/Operations/DeleteBuildDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[DeleteBuildDeprecatedResponse](../../Models/Operations/DeleteBuildDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404,422,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~GetBuildInfoDeprecated~~ Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). @@ -137,7 +137,7 @@ GetBuildInfoDeprecatedRequest req = new GetBuildInfoDeprecatedRequest() { }; -using(var res = await sdk.BuildV1.GetBuildInfoDeprecatedAsync(req)) +using(var res = await sdk.BuildsV1.GetBuildInfoDeprecatedAsync(req)) { // handle response } @@ -151,17 +151,18 @@ using(var res = await sdk.BuildV1.GetBuildInfoDeprecatedAsync(req)) | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------- | | `request` | [GetBuildInfoDeprecatedRequest](../../Models/Operations/GetBuildInfoDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetBuildInfoDeprecatedResponse](../../Models/Operations/GetBuildInfoDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~GetBuildsDeprecated~~ Returns an array of [builds](https://hathora.dev/docs/concepts/hathora-entities#build) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). @@ -184,7 +185,7 @@ var sdk = new HathoraCloudSDK( GetBuildsDeprecatedRequest req = new GetBuildsDeprecatedRequest() {}; -using(var res = await sdk.BuildV1.GetBuildsDeprecatedAsync(req)) +using(var res = await sdk.BuildsV1.GetBuildsDeprecatedAsync(req)) { // handle response } @@ -198,17 +199,18 @@ using(var res = await sdk.BuildV1.GetBuildsDeprecatedAsync(req)) | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | `request` | [GetBuildsDeprecatedRequest](../../Models/Operations/GetBuildsDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetBuildsDeprecatedResponse](../../Models/Operations/GetBuildsDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~RunBuildDeprecated~~ Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild). @@ -231,15 +233,15 @@ var sdk = new HathoraCloudSDK( RunBuildDeprecatedRequest req = new RunBuildDeprecatedRequest() { RequestBody = new RunBuildDeprecatedRequestBody() { File = new File() { - Content = "0x96Cf4be63b as bytes <<<>>>", - FileName = "east_though_senegal.mpeg", + Content = System.Text.Encoding.UTF8.GetBytes("0x96Cf4be63b"), + FileName = "your_file_here", }, }, BuildId = 1, }; -using(var res = await sdk.BuildV1.RunBuildDeprecatedAsync(req)) +using(var res = await sdk.BuildsV1.RunBuildDeprecatedAsync(req)) { // handle response } @@ -253,13 +255,13 @@ using(var res = await sdk.BuildV1.RunBuildDeprecatedAsync(req)) | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | | `request` | [RunBuildDeprecatedRequest](../../Models/Operations/RunBuildDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[RunBuildDeprecatedResponse](../../Models/Operations/RunBuildDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 400,401,404,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/buildsv2/README.md b/docs/sdks/buildsv2/README.md new file mode 100644 index 00000000..f07e011a --- /dev/null +++ b/docs/sdks/buildsv2/README.md @@ -0,0 +1,355 @@ +# BuildsV2 +(*BuildsV2*) + +## Overview + +### Available Operations + +* [CreateBuildV2Deprecated](#createbuildv2deprecated) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build). Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. +* [CreateBuildWithUploadUrlV2Deprecated](#createbuildwithuploadurlv2deprecated) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build) with `uploadUrl` that can be used to upload the build to before calling `runBuild`. Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. +* [CreateWithMultipartUploadsV2Deprecated](#createwithmultipartuploadsv2deprecated) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build) with optional `multipartUploadUrls` that can be used to upload larger builds in parts before calling `runBuild`. Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. +* [DeleteBuildV2Deprecated](#deletebuildv2deprecated) - Delete a [build](https://hathora.dev/docs/concepts/hathora-entities#build). All associated metadata is deleted. +* [GetBuildInfoV2Deprecated](#getbuildinfov2deprecated) - Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). +* [GetBuildsV2Deprecated](#getbuildsv2deprecated) - Returns an array of [builds](https://hathora.dev/docs/concepts/hathora-entities#build) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). +* [RunBuildV2Deprecated](#runbuildv2deprecated) - Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild). + +## CreateBuildV2Deprecated + +Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build). Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +CreateBuildV2DeprecatedRequest req = new CreateBuildV2DeprecatedRequest() { + CreateBuildParams = new CreateBuildParams() { + BuildTag = "0.1.14-14c793", + }, +}; + + +using(var res = await sdk.BuildsV2.CreateBuildV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `request` | [CreateBuildV2DeprecatedRequest](../../Models/Operations/CreateBuildV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[CreateBuildV2DeprecatedResponse](../../Models/Operations/CreateBuildV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## CreateBuildWithUploadUrlV2Deprecated + +Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build) with `uploadUrl` that can be used to upload the build to before calling `runBuild`. Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +CreateBuildWithUploadUrlV2DeprecatedRequest req = new CreateBuildWithUploadUrlV2DeprecatedRequest() { + CreateBuildParams = new CreateBuildParams() { + BuildTag = "0.1.14-14c793", + }, +}; + + +using(var res = await sdk.BuildsV2.CreateBuildWithUploadUrlV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | +| `request` | [CreateBuildWithUploadUrlV2DeprecatedRequest](../../Models/Operations/CreateBuildWithUploadUrlV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[CreateBuildWithUploadUrlV2DeprecatedResponse](../../Models/Operations/CreateBuildWithUploadUrlV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## CreateWithMultipartUploadsV2Deprecated + +Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build) with optional `multipartUploadUrls` that can be used to upload larger builds in parts before calling `runBuild`. Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +CreateWithMultipartUploadsV2DeprecatedRequest req = new CreateWithMultipartUploadsV2DeprecatedRequest() { + CreateMultipartBuildParams = new CreateMultipartBuildParams() { + BuildSizeInBytes = 3146.66D, + BuildTag = "0.1.14-14c793", + }, +}; + + +using(var res = await sdk.BuildsV2.CreateWithMultipartUploadsV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------- | +| `request` | [CreateWithMultipartUploadsV2DeprecatedRequest](../../Models/Operations/CreateWithMultipartUploadsV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[CreateWithMultipartUploadsV2DeprecatedResponse](../../Models/Operations/CreateWithMultipartUploadsV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 400,401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## DeleteBuildV2Deprecated + +Delete a [build](https://hathora.dev/docs/concepts/hathora-entities#build). All associated metadata is deleted. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +DeleteBuildV2DeprecatedRequest req = new DeleteBuildV2DeprecatedRequest() { + BuildId = 1, +}; + + +using(var res = await sdk.BuildsV2.DeleteBuildV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `request` | [DeleteBuildV2DeprecatedRequest](../../Models/Operations/DeleteBuildV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[DeleteBuildV2DeprecatedResponse](../../Models/Operations/DeleteBuildV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429,500 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetBuildInfoV2Deprecated + +Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +GetBuildInfoV2DeprecatedRequest req = new GetBuildInfoV2DeprecatedRequest() { + BuildId = 1, +}; + + +using(var res = await sdk.BuildsV2.GetBuildInfoV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | +| `request` | [GetBuildInfoV2DeprecatedRequest](../../Models/Operations/GetBuildInfoV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetBuildInfoV2DeprecatedResponse](../../Models/Operations/GetBuildInfoV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetBuildsV2Deprecated + +Returns an array of [builds](https://hathora.dev/docs/concepts/hathora-entities#build) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +GetBuildsV2DeprecatedRequest req = new GetBuildsV2DeprecatedRequest() {}; + + +using(var res = await sdk.BuildsV2.GetBuildsV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | +| `request` | [GetBuildsV2DeprecatedRequest](../../Models/Operations/GetBuildsV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetBuildsV2DeprecatedResponse](../../Models/Operations/GetBuildsV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## RunBuildV2Deprecated + +Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild). + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +RunBuildV2DeprecatedRequest req = new RunBuildV2DeprecatedRequest() { + RequestBody = new RunBuildV2DeprecatedRequestBody() {}, + BuildId = 1, +}; + + +using(var res = await sdk.BuildsV2.RunBuildV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | +| `request` | [RunBuildV2DeprecatedRequest](../../Models/Operations/RunBuildV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[RunBuildV2DeprecatedResponse](../../Models/Operations/RunBuildV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 400,401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/buildv2/README.md b/docs/sdks/buildsv3/README.md similarity index 74% rename from docs/sdks/buildv2/README.md rename to docs/sdks/buildsv3/README.md index 63986a3e..49b6559a 100644 --- a/docs/sdks/buildv2/README.md +++ b/docs/sdks/buildsv3/README.md @@ -1,21 +1,21 @@ -# BuildV2 -(*BuildV2*) +# BuildsV3 +(*BuildsV3*) ## Overview -Operations that allow you create and manage your [builds](https://hathora.dev/docs/concepts/hathora-entities#build). - ### Available Operations -* [CreateBuild](#createbuild) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build). Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. +* [CreateBuild](#createbuild) - Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build) with optional `multipartUploadUrls` that can be used to upload larger builds in parts before calling `runBuild`. Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. * [DeleteBuild](#deletebuild) - Delete a [build](https://hathora.dev/docs/concepts/hathora-entities#build). All associated metadata is deleted. -* [GetBuildInfo](#getbuildinfo) - Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). +Be careful which builds you delete. This endpoint does not prevent you from deleting actively used builds. +Deleting a build that is actively build used by an app's deployment will cause failures when creating rooms. +* [GetBuild](#getbuild) - Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). * [GetBuilds](#getbuilds) - Returns an array of [builds](https://hathora.dev/docs/concepts/hathora-entities#build) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). * [RunBuild](#runbuild) - Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild). ## CreateBuild -Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build). Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. +Creates a new [build](https://hathora.dev/docs/concepts/hathora-entities#build) with optional `multipartUploadUrls` that can be used to upload larger builds in parts before calling `runBuild`. Responds with a `buildId` that you must pass to [`RunBuild()`](https://hathora.dev/api#tag/BuildV1/operation/RunBuild) to build the game server artifact. You can optionally pass in a `buildTag` to associate an external version with a build. ### Example Usage @@ -31,13 +31,15 @@ var sdk = new HathoraCloudSDK( appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); CreateBuildRequest req = new CreateBuildRequest() { - CreateBuildParams = new CreateBuildParams() { + CreateMultipartBuildParams = new CreateMultipartBuildParams() { + BuildSizeInBytes = 5387.85D, BuildTag = "0.1.14-14c793", }, + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", }; -using(var res = await sdk.BuildV2.CreateBuildAsync(req)) +using(var res = await sdk.BuildsV3.CreateBuildAsync(req)) { // handle response } @@ -51,20 +53,23 @@ using(var res = await sdk.BuildV2.CreateBuildAsync(req)) | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [CreateBuildRequest](../../Models/Operations/CreateBuildRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[CreateBuildResponse](../../Models/Operations/CreateBuildResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 400,401,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## DeleteBuild Delete a [build](https://hathora.dev/docs/concepts/hathora-entities#build). All associated metadata is deleted. +Be careful which builds you delete. This endpoint does not prevent you from deleting actively used builds. +Deleting a build that is actively build used by an app's deployment will cause failures when creating rooms. ### Example Usage @@ -80,11 +85,12 @@ var sdk = new HathoraCloudSDK( appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); DeleteBuildRequest req = new DeleteBuildRequest() { - BuildId = 1, + BuildId = "", + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", }; -using(var res = await sdk.BuildV2.DeleteBuildAsync(req)) +using(var res = await sdk.BuildsV3.DeleteBuildAsync(req)) { // handle response } @@ -98,10 +104,10 @@ using(var res = await sdk.BuildV2.DeleteBuildAsync(req)) | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [DeleteBuildRequest](../../Models/Operations/DeleteBuildRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[DeleteBuildResponse](../../Models/Operations/DeleteBuildResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -109,7 +115,8 @@ using(var res = await sdk.BuildV2.DeleteBuildAsync(req)) | HathoraCloud.Models.Errors.ApiError | 401,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | -## GetBuildInfo + +## GetBuild Get details for a [build](https://hathora.dev/docs/concepts/hathora-entities#build). @@ -126,12 +133,13 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -GetBuildInfoRequest req = new GetBuildInfoRequest() { - BuildId = 1, +GetBuildRequest req = new GetBuildRequest() { + BuildId = "", + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", }; -using(var res = await sdk.BuildV2.GetBuildInfoAsync(req)) +using(var res = await sdk.BuildsV3.GetBuildAsync(req)) { // handle response } @@ -141,21 +149,22 @@ using(var res = await sdk.BuildV2.GetBuildInfoAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | -| `request` | [GetBuildInfoRequest](../../Models/Operations/GetBuildInfoRequest.md) | :heavy_check_mark: | The request object to use for the request. | - +| Parameter | Type | Required | Description | +| ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | +| `request` | [GetBuildRequest](../../Models/Operations/GetBuildRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[GetBuildInfoResponse](../../Models/Operations/GetBuildInfoResponse.md)** +**[GetBuildResponse](../../Models/Operations/GetBuildResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetBuilds Returns an array of [builds](https://hathora.dev/docs/concepts/hathora-entities#build) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). @@ -173,10 +182,12 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -GetBuildsRequest req = new GetBuildsRequest() {}; +GetBuildsRequest req = new GetBuildsRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", +}; -using(var res = await sdk.BuildV2.GetBuildsAsync(req)) +using(var res = await sdk.BuildsV3.GetBuildsAsync(req)) { // handle response } @@ -190,17 +201,18 @@ using(var res = await sdk.BuildV2.GetBuildsAsync(req)) | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | --------------------------------------------------------------- | | `request` | [GetBuildsRequest](../../Models/Operations/GetBuildsRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetBuildsResponse](../../Models/Operations/GetBuildsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## RunBuild Builds a game server artifact from a tarball you provide. Pass in the `buildId` generated from [`CreateBuild()`](https://hathora.dev/api#tag/BuildV1/operation/CreateBuild). @@ -219,17 +231,12 @@ var sdk = new HathoraCloudSDK( appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); RunBuildRequest req = new RunBuildRequest() { - RequestBody = new RunBuildRequestBody() { - File = new RunBuildFile() { - Content = "0xcBBBDB7B76 as bytes <<<>>>", - FileName = "times_mini.wav", - }, - }, - BuildId = 1, + BuildId = "", + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", }; -using(var res = await sdk.BuildV2.RunBuildAsync(req)) +using(var res = await sdk.BuildsV3.RunBuildAsync(req)) { // handle response } @@ -243,13 +250,13 @@ using(var res = await sdk.BuildV2.RunBuildAsync(req)) | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | ------------------------------------------------------------- | | `request` | [RunBuildRequest](../../Models/Operations/RunBuildRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[RunBuildResponse](../../Models/Operations/RunBuildResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 400,401,404,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/deploymentv1/README.md b/docs/sdks/deploymentsv1/README.md similarity index 63% rename from docs/sdks/deploymentv1/README.md rename to docs/sdks/deploymentsv1/README.md index 9067165c..1e0e617d 100644 --- a/docs/sdks/deploymentv1/README.md +++ b/docs/sdks/deploymentsv1/README.md @@ -1,18 +1,16 @@ -# DeploymentV1 -(*DeploymentV1*) +# DeploymentsV1 +(*DeploymentsV1*) ## Overview -Deprecated. Use [DeploymentV2](https://hathora.dev/api#tag/DeploymentV2). - ### Available Operations -* [~~CreateDeploymentDeprecated~~](#createdeploymentdeprecated) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. :warning: **Deprecated** -* [~~GetDeploymentInfoDeprecated~~](#getdeploymentinfodeprecated) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). :warning: **Deprecated** -* [~~GetDeploymentsDeprecated~~](#getdeploymentsdeprecated) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). :warning: **Deprecated** -* [~~GetLatestDeploymentDeprecated~~](#getlatestdeploymentdeprecated) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). :warning: **Deprecated** +* [~~CreateDeploymentV1Deprecated~~](#createdeploymentv1deprecated) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. :warning: **Deprecated** +* [~~GetDeploymentInfoV1Deprecated~~](#getdeploymentinfov1deprecated) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). :warning: **Deprecated** +* [~~GetDeploymentsV1Deprecated~~](#getdeploymentsv1deprecated) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). :warning: **Deprecated** +* [~~GetLatestDeploymentV1Deprecated~~](#getlatestdeploymentv1deprecated) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). :warning: **Deprecated** -## ~~CreateDeploymentDeprecated~~ +## ~~CreateDeploymentV1Deprecated~~ Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. @@ -32,31 +30,31 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -CreateDeploymentDeprecatedRequest req = new CreateDeploymentDeprecatedRequest() { +CreateDeploymentV1DeprecatedRequest req = new CreateDeploymentV1DeprecatedRequest() { DeploymentConfig = new DeploymentConfig() { AdditionalContainerPorts = new List() { new ContainerPort() { Name = "default", Port = 8000, - TransportType = TransportType.Udp, + TransportType = TransportType.Tcp, }, }, ContainerPort = 4000, - Env = new List() { - new DeploymentConfigEnv() { + Env = new List() { + new Env() { Name = "EULA", Value = "TRUE", }, }, PlanName = PlanName.Tiny, RoomsPerProcess = 3, - TransportType = TransportType.Tls, + TransportType = TransportType.Tcp, }, BuildId = 1, }; -using(var res = await sdk.DeploymentV1.CreateDeploymentDeprecatedAsync(req)) +using(var res = await sdk.DeploymentsV1.CreateDeploymentV1DeprecatedAsync(req)) { // handle response } @@ -66,22 +64,23 @@ using(var res = await sdk.DeploymentV1.CreateDeploymentDeprecatedAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | -| `request` | [CreateDeploymentDeprecatedRequest](../../Models/Operations/CreateDeploymentDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `request` | [CreateDeploymentV1DeprecatedRequest](../../Models/Operations/CreateDeploymentV1DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[CreateDeploymentDeprecatedResponse](../../Models/Operations/CreateDeploymentDeprecatedResponse.md)** +**[CreateDeploymentV1DeprecatedResponse](../../Models/Operations/CreateDeploymentV1DeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 400,401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 400,401,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | -## ~~GetDeploymentInfoDeprecated~~ + +## ~~GetDeploymentInfoV1Deprecated~~ Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). @@ -100,12 +99,12 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -GetDeploymentInfoDeprecatedRequest req = new GetDeploymentInfoDeprecatedRequest() { +GetDeploymentInfoV1DeprecatedRequest req = new GetDeploymentInfoV1DeprecatedRequest() { DeploymentId = 1, }; -using(var res = await sdk.DeploymentV1.GetDeploymentInfoDeprecatedAsync(req)) +using(var res = await sdk.DeploymentsV1.GetDeploymentInfoV1DeprecatedAsync(req)) { // handle response } @@ -115,22 +114,23 @@ using(var res = await sdk.DeploymentV1.GetDeploymentInfoDeprecatedAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | -| `request` | [GetDeploymentInfoDeprecatedRequest](../../Models/Operations/GetDeploymentInfoDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `request` | [GetDeploymentInfoV1DeprecatedRequest](../../Models/Operations/GetDeploymentInfoV1DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[GetDeploymentInfoDeprecatedResponse](../../Models/Operations/GetDeploymentInfoDeprecatedResponse.md)** +**[GetDeploymentInfoV1DeprecatedResponse](../../Models/Operations/GetDeploymentInfoV1DeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | -## ~~GetDeploymentsDeprecated~~ + +## ~~GetDeploymentsV1Deprecated~~ Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). @@ -149,10 +149,10 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -GetDeploymentsDeprecatedRequest req = new GetDeploymentsDeprecatedRequest() {}; +GetDeploymentsV1DeprecatedRequest req = new GetDeploymentsV1DeprecatedRequest() {}; -using(var res = await sdk.DeploymentV1.GetDeploymentsDeprecatedAsync(req)) +using(var res = await sdk.DeploymentsV1.GetDeploymentsV1DeprecatedAsync(req)) { // handle response } @@ -162,22 +162,23 @@ using(var res = await sdk.DeploymentV1.GetDeploymentsDeprecatedAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | -| `request` | [GetDeploymentsDeprecatedRequest](../../Models/Operations/GetDeploymentsDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `request` | [GetDeploymentsV1DeprecatedRequest](../../Models/Operations/GetDeploymentsV1DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[GetDeploymentsDeprecatedResponse](../../Models/Operations/GetDeploymentsDeprecatedResponse.md)** +**[GetDeploymentsV1DeprecatedResponse](../../Models/Operations/GetDeploymentsV1DeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | -## ~~GetLatestDeploymentDeprecated~~ + +## ~~GetLatestDeploymentV1Deprecated~~ Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). @@ -196,10 +197,10 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -GetLatestDeploymentDeprecatedRequest req = new GetLatestDeploymentDeprecatedRequest() {}; +GetLatestDeploymentV1DeprecatedRequest req = new GetLatestDeploymentV1DeprecatedRequest() {}; -using(var res = await sdk.DeploymentV1.GetLatestDeploymentDeprecatedAsync(req)) +using(var res = await sdk.DeploymentsV1.GetLatestDeploymentV1DeprecatedAsync(req)) { // handle response } @@ -209,17 +210,17 @@ using(var res = await sdk.DeploymentV1.GetLatestDeploymentDeprecatedAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | -| `request` | [GetLatestDeploymentDeprecatedRequest](../../Models/Operations/GetLatestDeploymentDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `request` | [GetLatestDeploymentV1DeprecatedRequest](../../Models/Operations/GetLatestDeploymentV1DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[GetLatestDeploymentDeprecatedResponse](../../Models/Operations/GetLatestDeploymentDeprecatedResponse.md)** +**[GetLatestDeploymentV1DeprecatedResponse](../../Models/Operations/GetLatestDeploymentV1DeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/deploymentsv2/README.md b/docs/sdks/deploymentsv2/README.md new file mode 100644 index 00000000..c6912b1a --- /dev/null +++ b/docs/sdks/deploymentsv2/README.md @@ -0,0 +1,220 @@ +# DeploymentsV2 +(*DeploymentsV2*) + +## Overview + +### Available Operations + +* [CreateDeploymentV2Deprecated](#createdeploymentv2deprecated) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. +* [GetDeploymentInfoV2Deprecated](#getdeploymentinfov2deprecated) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). +* [GetDeploymentsV2Deprecated](#getdeploymentsv2deprecated) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). +* [GetLatestDeploymentV2Deprecated](#getlatestdeploymentv2deprecated) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). + +## CreateDeploymentV2Deprecated + +Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; +using System.Collections.Generic; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +CreateDeploymentV2DeprecatedRequest req = new CreateDeploymentV2DeprecatedRequest() { + DeploymentConfigV2 = new DeploymentConfigV2() { + AdditionalContainerPorts = new List() { + new ContainerPort() { + Name = "default", + Port = 8000, + TransportType = TransportType.Tls, + }, + }, + ContainerPort = 4000, + Env = new List() { + new DeploymentConfigV2Env() { + Name = "EULA", + Value = "TRUE", + }, + }, + IdleTimeoutEnabled = false, + RequestedCPU = 0.5D, + RequestedMemoryMB = 1024D, + RoomsPerProcess = 3, + TransportType = TransportType.Tcp, + }, + BuildId = 1, +}; + + +using(var res = await sdk.DeploymentsV2.CreateDeploymentV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | +| `request` | [CreateDeploymentV2DeprecatedRequest](../../Models/Operations/CreateDeploymentV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[CreateDeploymentV2DeprecatedResponse](../../Models/Operations/CreateDeploymentV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 400,401,404,422,429,500 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetDeploymentInfoV2Deprecated + +Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +GetDeploymentInfoV2DeprecatedRequest req = new GetDeploymentInfoV2DeprecatedRequest() { + DeploymentId = 1, +}; + + +using(var res = await sdk.DeploymentsV2.GetDeploymentInfoV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `request` | [GetDeploymentInfoV2DeprecatedRequest](../../Models/Operations/GetDeploymentInfoV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetDeploymentInfoV2DeprecatedResponse](../../Models/Operations/GetDeploymentInfoV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetDeploymentsV2Deprecated + +Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +GetDeploymentsV2DeprecatedRequest req = new GetDeploymentsV2DeprecatedRequest() {}; + + +using(var res = await sdk.DeploymentsV2.GetDeploymentsV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `request` | [GetDeploymentsV2DeprecatedRequest](../../Models/Operations/GetDeploymentsV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetDeploymentsV2DeprecatedResponse](../../Models/Operations/GetDeploymentsV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetLatestDeploymentV2Deprecated + +Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +GetLatestDeploymentV2DeprecatedRequest req = new GetLatestDeploymentV2DeprecatedRequest() {}; + + +using(var res = await sdk.DeploymentsV2.GetLatestDeploymentV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------- | +| `request` | [GetLatestDeploymentV2DeprecatedRequest](../../Models/Operations/GetLatestDeploymentV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetLatestDeploymentV2DeprecatedResponse](../../Models/Operations/GetLatestDeploymentV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/deploymentv2/README.md b/docs/sdks/deploymentsv3/README.md similarity index 81% rename from docs/sdks/deploymentv2/README.md rename to docs/sdks/deploymentsv3/README.md index aac5b0df..2b2156a7 100644 --- a/docs/sdks/deploymentv2/README.md +++ b/docs/sdks/deploymentsv3/README.md @@ -1,14 +1,12 @@ -# DeploymentV2 -(*DeploymentV2*) +# DeploymentsV3 +(*DeploymentsV3*) ## Overview -Operations that allow you configure and manage an application's [build](https://hathora.dev/docs/concepts/hathora-entities#build) at runtime. - ### Available Operations * [CreateDeployment](#createdeployment) - Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. -* [GetDeploymentInfo](#getdeploymentinfo) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). +* [GetDeployment](#getdeployment) - Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). * [GetDeployments](#getdeployments) - Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). * [GetLatestDeployment](#getlatestdeployment) - Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). @@ -31,7 +29,7 @@ var sdk = new HathoraCloudSDK( appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); CreateDeploymentRequest req = new CreateDeploymentRequest() { - DeploymentConfigV2 = new DeploymentConfigV2() { + DeploymentConfigV3 = new DeploymentConfigV3() { AdditionalContainerPorts = new List() { new ContainerPort() { Name = "default", @@ -39,9 +37,10 @@ CreateDeploymentRequest req = new CreateDeploymentRequest() { TransportType = TransportType.Udp, }, }, + BuildId = "", ContainerPort = 4000, - Env = new List() { - new DeploymentConfigV2Env() { + Env = new List() { + new DeploymentConfigV3Env() { Name = "EULA", Value = "TRUE", }, @@ -52,11 +51,10 @@ CreateDeploymentRequest req = new CreateDeploymentRequest() { RoomsPerProcess = 3, TransportType = TransportType.Tcp, }, - BuildId = 1, }; -using(var res = await sdk.DeploymentV2.CreateDeploymentAsync(req)) +using(var res = await sdk.DeploymentsV3.CreateDeploymentAsync(req)) { // handle response } @@ -70,18 +68,19 @@ using(var res = await sdk.DeploymentV2.CreateDeploymentAsync(req)) | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [CreateDeploymentRequest](../../Models/Operations/CreateDeploymentRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[CreateDeploymentResponse](../../Models/Operations/CreateDeploymentResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 400,401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 400,401,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | -## GetDeploymentInfo + +## GetDeployment Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). @@ -98,12 +97,12 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -GetDeploymentInfoRequest req = new GetDeploymentInfoRequest() { - DeploymentId = 1, +GetDeploymentRequest req = new GetDeploymentRequest() { + DeploymentId = "", }; -using(var res = await sdk.DeploymentV2.GetDeploymentInfoAsync(req)) +using(var res = await sdk.DeploymentsV3.GetDeploymentAsync(req)) { // handle response } @@ -113,21 +112,22 @@ using(var res = await sdk.DeploymentV2.GetDeploymentInfoAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | -| `request` | [GetDeploymentInfoRequest](../../Models/Operations/GetDeploymentInfoRequest.md) | :heavy_check_mark: | The request object to use for the request. | - +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | [GetDeploymentRequest](../../Models/Operations/GetDeploymentRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[GetDeploymentInfoResponse](../../Models/Operations/GetDeploymentInfoResponse.md)** +**[GetDeploymentResponse](../../Models/Operations/GetDeploymentResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetDeployments Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). @@ -148,7 +148,7 @@ var sdk = new HathoraCloudSDK( GetDeploymentsRequest req = new GetDeploymentsRequest() {}; -using(var res = await sdk.DeploymentV2.GetDeploymentsAsync(req)) +using(var res = await sdk.DeploymentsV3.GetDeploymentsAsync(req)) { // handle response } @@ -162,17 +162,18 @@ using(var res = await sdk.DeploymentV2.GetDeploymentsAsync(req)) | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [GetDeploymentsRequest](../../Models/Operations/GetDeploymentsRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetDeploymentsResponse](../../Models/Operations/GetDeploymentsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetLatestDeployment Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). @@ -193,7 +194,7 @@ var sdk = new HathoraCloudSDK( GetLatestDeploymentRequest req = new GetLatestDeploymentRequest() {}; -using(var res = await sdk.DeploymentV2.GetLatestDeploymentAsync(req)) +using(var res = await sdk.DeploymentsV3.GetLatestDeploymentAsync(req)) { // handle response } @@ -207,13 +208,13 @@ using(var res = await sdk.DeploymentV2.GetLatestDeploymentAsync(req)) | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | `request` | [GetLatestDeploymentRequest](../../Models/Operations/GetLatestDeploymentRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetLatestDeploymentResponse](../../Models/Operations/GetLatestDeploymentResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/discoveryv1/README.md b/docs/sdks/discoveryv1/README.md index 7ae37217..ea73c03e 100644 --- a/docs/sdks/discoveryv1/README.md +++ b/docs/sdks/discoveryv1/README.md @@ -32,10 +32,10 @@ using(var res = await sdk.DiscoveryV1.GetPingServiceEndpointsDeprecatedAsync()) ``` - ### Response **[GetPingServiceEndpointsDeprecatedResponse](../../Models/Operations/GetPingServiceEndpointsDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/discoveryv2/README.md b/docs/sdks/discoveryv2/README.md index 073ae04e..256fbc9b 100644 --- a/docs/sdks/discoveryv2/README.md +++ b/docs/sdks/discoveryv2/README.md @@ -30,10 +30,10 @@ using(var res = await sdk.DiscoveryV2.GetPingServiceEndpointsAsync()) ``` - ### Response **[GetPingServiceEndpointsResponse](../../Models/Operations/GetPingServiceEndpointsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/hathoracloudsdk/README.md b/docs/sdks/hathoracloudsdk/README.md index b97726c8..025e492f 100644 --- a/docs/sdks/hathoracloudsdk/README.md +++ b/docs/sdks/hathoracloudsdk/README.md @@ -1,9 +1,5 @@ # HathoraCloudSDK - ## Overview -Hathora Cloud API: Welcome to the Hathora Cloud API documentation! Learn how to use the Hathora Cloud APIs to build and scale your game servers globally. - -### Available Operations - +Hathora Cloud API: Welcome to the Hathora Cloud API documentation! Learn how to use the Hathora Cloud APIs to build and scale your game servers globally. \ No newline at end of file diff --git a/docs/sdks/lobbyv1/README.md b/docs/sdks/lobbiesv1/README.md similarity index 94% rename from docs/sdks/lobbyv1/README.md rename to docs/sdks/lobbiesv1/README.md index dc760b88..a3bdd3eb 100644 --- a/docs/sdks/lobbyv1/README.md +++ b/docs/sdks/lobbiesv1/README.md @@ -1,10 +1,8 @@ -# LobbyV1 -(*LobbyV1*) +# LobbiesV1 +(*LobbiesV1*) ## Overview -Deprecated. Use [LobbyV3](https://hathora.dev/api#tag/LobbyV3). - ### Available Operations * [~~CreatePrivateLobbyDeprecated~~](#createprivatelobbydeprecated) - :warning: **Deprecated** @@ -27,10 +25,10 @@ var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2") CreatePrivateLobbyDeprecatedRequest req = new CreatePrivateLobbyDeprecatedRequest() {}; -using(var res = await sdk.LobbyV1.CreatePrivateLobbyDeprecatedAsync( - new CreatePrivateLobbyDeprecatedSecurity() { - PlayerAuth = "", -}, +using(var res = await sdk.LobbiesV1.CreatePrivateLobbyDeprecatedAsync( + security: new CreatePrivateLobbyDeprecatedSecurity() { + PlayerAuth = "", + }, req)) { // handle response @@ -46,10 +44,10 @@ using(var res = await sdk.LobbyV1.CreatePrivateLobbyDeprecatedAsync( | `request` | [CreatePrivateLobbyDeprecatedRequest](../../Models/Operations/CreatePrivateLobbyDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | | `security` | [HathoraCloud.Models.Operations.CreatePrivateLobbyDeprecatedSecurity](../../models/operations/CreatePrivateLobbyDeprecatedSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | - ### Response **[CreatePrivateLobbyDeprecatedResponse](../../Models/Operations/CreatePrivateLobbyDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -57,6 +55,7 @@ using(var res = await sdk.LobbyV1.CreatePrivateLobbyDeprecatedAsync( | HathoraCloud.Models.Errors.ApiError | 400,401,402,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~CreatePublicLobbyDeprecated~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. @@ -73,10 +72,10 @@ var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2") CreatePublicLobbyDeprecatedRequest req = new CreatePublicLobbyDeprecatedRequest() {}; -using(var res = await sdk.LobbyV1.CreatePublicLobbyDeprecatedAsync( - new CreatePublicLobbyDeprecatedSecurity() { - PlayerAuth = "", -}, +using(var res = await sdk.LobbiesV1.CreatePublicLobbyDeprecatedAsync( + security: new CreatePublicLobbyDeprecatedSecurity() { + PlayerAuth = "", + }, req)) { // handle response @@ -92,10 +91,10 @@ using(var res = await sdk.LobbyV1.CreatePublicLobbyDeprecatedAsync( | `request` | [CreatePublicLobbyDeprecatedRequest](../../Models/Operations/CreatePublicLobbyDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | | `security` | [HathoraCloud.Models.Operations.CreatePublicLobbyDeprecatedSecurity](../../models/operations/CreatePublicLobbyDeprecatedSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | - ### Response **[CreatePublicLobbyDeprecatedResponse](../../Models/Operations/CreatePublicLobbyDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -103,6 +102,7 @@ using(var res = await sdk.LobbyV1.CreatePublicLobbyDeprecatedAsync( | HathoraCloud.Models.Errors.ApiError | 400,401,402,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~ListActivePublicLobbiesDeprecatedV1~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. @@ -119,7 +119,7 @@ var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2") ListActivePublicLobbiesDeprecatedV1Request req = new ListActivePublicLobbiesDeprecatedV1Request() {}; -using(var res = await sdk.LobbyV1.ListActivePublicLobbiesDeprecatedV1Async(req)) +using(var res = await sdk.LobbiesV1.ListActivePublicLobbiesDeprecatedV1Async(req)) { // handle response } @@ -133,13 +133,13 @@ using(var res = await sdk.LobbyV1.ListActivePublicLobbiesDeprecatedV1Async(req)) | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `request` | [ListActivePublicLobbiesDeprecatedV1Request](../../Models/Operations/ListActivePublicLobbiesDeprecatedV1Request.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[ListActivePublicLobbiesDeprecatedV1Response](../../Models/Operations/ListActivePublicLobbiesDeprecatedV1Response.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/lobbyv2/README.md b/docs/sdks/lobbiesv2/README.md similarity index 94% rename from docs/sdks/lobbyv2/README.md rename to docs/sdks/lobbiesv2/README.md index 372642cc..63f886b3 100644 --- a/docs/sdks/lobbyv2/README.md +++ b/docs/sdks/lobbiesv2/README.md @@ -1,10 +1,8 @@ -# LobbyV2 -(*LobbyV2*) +# LobbiesV2 +(*LobbiesV2*) ## Overview -Deprecated. Use [LobbyV3](https://hathora.dev/api#tag/LobbyV3). - ### Available Operations * [~~CreateLobbyDeprecated~~](#createlobbydeprecated) - Create a new lobby for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). A lobby object is a wrapper around a [room](https://hathora.dev/docs/concepts/hathora-entities#room) object. With a lobby, you get additional functionality like configuring the visibility of the room, managing the state of a match, and retrieving a list of public lobbies to display to players. :warning: **Deprecated** @@ -32,7 +30,7 @@ var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2") CreateLobbyDeprecatedRequest req = new CreateLobbyDeprecatedRequest() { CreateLobbyParams = new CreateLobbyParams() { - InitialConfig = new LobbyInitialConfig() {}, + InitialConfig = "", Region = Region.Tokyo, Visibility = LobbyVisibility.Private, }, @@ -40,10 +38,10 @@ CreateLobbyDeprecatedRequest req = new CreateLobbyDeprecatedRequest() { }; -using(var res = await sdk.LobbyV2.CreateLobbyDeprecatedAsync( - new CreateLobbyDeprecatedSecurity() { - PlayerAuth = "", -}, +using(var res = await sdk.LobbiesV2.CreateLobbyDeprecatedAsync( + security: new CreateLobbyDeprecatedSecurity() { + PlayerAuth = "", + }, req)) { // handle response @@ -59,10 +57,10 @@ using(var res = await sdk.LobbyV2.CreateLobbyDeprecatedAsync( | `request` | [CreateLobbyDeprecatedRequest](../../Models/Operations/CreateLobbyDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | | `security` | [HathoraCloud.Models.Operations.CreateLobbyDeprecatedSecurity](../../models/operations/CreateLobbyDeprecatedSecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | - ### Response **[CreateLobbyDeprecatedResponse](../../Models/Operations/CreateLobbyDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -70,6 +68,7 @@ using(var res = await sdk.LobbyV2.CreateLobbyDeprecatedAsync( | HathoraCloud.Models.Errors.ApiError | 400,401,402,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~CreateLocalLobby~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. @@ -85,17 +84,17 @@ var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2") CreateLocalLobbyRequest req = new CreateLocalLobbyRequest() { RequestBody = new CreateLocalLobbyRequestBody() { - InitialConfig = new LobbyInitialConfig() {}, + InitialConfig = "", Region = Region.SaoPaulo, }, RoomId = "2swovpy1fnunu", }; -using(var res = await sdk.LobbyV2.CreateLocalLobbyAsync( - new CreateLocalLobbySecurity() { - PlayerAuth = "", -}, +using(var res = await sdk.LobbiesV2.CreateLocalLobbyAsync( + security: new CreateLocalLobbySecurity() { + PlayerAuth = "", + }, req)) { // handle response @@ -111,10 +110,10 @@ using(var res = await sdk.LobbyV2.CreateLocalLobbyAsync( | `request` | [CreateLocalLobbyRequest](../../Models/Operations/CreateLocalLobbyRequest.md) | :heavy_check_mark: | The request object to use for the request. | | `security` | [HathoraCloud.Models.Operations.CreateLocalLobbySecurity](../../models/operations/CreateLocalLobbySecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | - ### Response **[CreateLocalLobbyResponse](../../Models/Operations/CreateLocalLobbyResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -122,6 +121,7 @@ using(var res = await sdk.LobbyV2.CreateLocalLobbyAsync( | HathoraCloud.Models.Errors.ApiError | 400,401,402,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~CreatePrivateLobby~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. @@ -137,17 +137,17 @@ var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2") CreatePrivateLobbyRequest req = new CreatePrivateLobbyRequest() { RequestBody = new CreatePrivateLobbyRequestBody() { - InitialConfig = new LobbyInitialConfig() {}, + InitialConfig = "", Region = Region.Chicago, }, RoomId = "2swovpy1fnunu", }; -using(var res = await sdk.LobbyV2.CreatePrivateLobbyAsync( - new CreatePrivateLobbySecurity() { - PlayerAuth = "", -}, +using(var res = await sdk.LobbiesV2.CreatePrivateLobbyAsync( + security: new CreatePrivateLobbySecurity() { + PlayerAuth = "", + }, req)) { // handle response @@ -163,10 +163,10 @@ using(var res = await sdk.LobbyV2.CreatePrivateLobbyAsync( | `request` | [CreatePrivateLobbyRequest](../../Models/Operations/CreatePrivateLobbyRequest.md) | :heavy_check_mark: | The request object to use for the request. | | `security` | [HathoraCloud.Models.Operations.CreatePrivateLobbySecurity](../../models/operations/CreatePrivateLobbySecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | - ### Response **[CreatePrivateLobbyResponse](../../Models/Operations/CreatePrivateLobbyResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -174,6 +174,7 @@ using(var res = await sdk.LobbyV2.CreatePrivateLobbyAsync( | HathoraCloud.Models.Errors.ApiError | 400,401,402,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~CreatePublicLobby~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. @@ -189,17 +190,17 @@ var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2") CreatePublicLobbyRequest req = new CreatePublicLobbyRequest() { RequestBody = new CreatePublicLobbyRequestBody() { - InitialConfig = new LobbyInitialConfig() {}, + InitialConfig = "", Region = Region.SaoPaulo, }, RoomId = "2swovpy1fnunu", }; -using(var res = await sdk.LobbyV2.CreatePublicLobbyAsync( - new CreatePublicLobbySecurity() { - PlayerAuth = "", -}, +using(var res = await sdk.LobbiesV2.CreatePublicLobbyAsync( + security: new CreatePublicLobbySecurity() { + PlayerAuth = "", + }, req)) { // handle response @@ -215,10 +216,10 @@ using(var res = await sdk.LobbyV2.CreatePublicLobbyAsync( | `request` | [CreatePublicLobbyRequest](../../Models/Operations/CreatePublicLobbyRequest.md) | :heavy_check_mark: | The request object to use for the request. | | `security` | [HathoraCloud.Models.Operations.CreatePublicLobbySecurity](../../models/operations/CreatePublicLobbySecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | - ### Response **[CreatePublicLobbyResponse](../../Models/Operations/CreatePublicLobbyResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -226,6 +227,7 @@ using(var res = await sdk.LobbyV2.CreatePublicLobbyAsync( | HathoraCloud.Models.Errors.ApiError | 400,401,402,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~GetLobbyInfo~~ Get details for a lobby. @@ -246,7 +248,7 @@ GetLobbyInfoRequest req = new GetLobbyInfoRequest() { }; -using(var res = await sdk.LobbyV2.GetLobbyInfoAsync(req)) +using(var res = await sdk.LobbiesV2.GetLobbyInfoAsync(req)) { // handle response } @@ -260,17 +262,18 @@ using(var res = await sdk.LobbyV2.GetLobbyInfoAsync(req)) | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [GetLobbyInfoRequest](../../Models/Operations/GetLobbyInfoRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetLobbyInfoResponse](../../Models/Operations/GetLobbyInfoResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~ListActivePublicLobbiesDeprecatedV2~~ Get all active lobbies for a an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter by optionally passing in a `region`. Use this endpoint to display all public lobbies that a player can join in the game client. @@ -289,7 +292,7 @@ var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2") ListActivePublicLobbiesDeprecatedV2Request req = new ListActivePublicLobbiesDeprecatedV2Request() {}; -using(var res = await sdk.LobbyV2.ListActivePublicLobbiesDeprecatedV2Async(req)) +using(var res = await sdk.LobbiesV2.ListActivePublicLobbiesDeprecatedV2Async(req)) { // handle response } @@ -303,16 +306,18 @@ using(var res = await sdk.LobbyV2.ListActivePublicLobbiesDeprecatedV2Async(req)) | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- | | `request` | [ListActivePublicLobbiesDeprecatedV2Request](../../Models/Operations/ListActivePublicLobbiesDeprecatedV2Request.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[ListActivePublicLobbiesDeprecatedV2Response](../../Models/Operations/ListActivePublicLobbiesDeprecatedV2Response.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~SetLobbyState~~ Set the state of a lobby. State is intended to be set by the server and must be smaller than 1MB. Use this endpoint to store match data like live player count to enforce max number of clients or persist end-game data (i.e. winner or final scores). @@ -334,13 +339,13 @@ var sdk = new HathoraCloudSDK( SetLobbyStateRequest req = new SetLobbyStateRequest() { SetLobbyStateParams = new SetLobbyStateParams() { - State = new SetLobbyStateParamsState() {}, + State = "", }, RoomId = "2swovpy1fnunu", }; -using(var res = await sdk.LobbyV2.SetLobbyStateAsync(req)) +using(var res = await sdk.LobbiesV2.SetLobbyStateAsync(req)) { // handle response } @@ -354,10 +359,10 @@ using(var res = await sdk.LobbyV2.SetLobbyStateAsync(req)) | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [SetLobbyStateRequest](../../Models/Operations/SetLobbyStateRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[SetLobbyStateResponse](../../Models/Operations/SetLobbyStateResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/lobbyv3sdk/README.md b/docs/sdks/lobbiesv3/README.md similarity index 94% rename from docs/sdks/lobbyv3sdk/README.md rename to docs/sdks/lobbiesv3/README.md index 4c0d66f4..669c0622 100644 --- a/docs/sdks/lobbyv3sdk/README.md +++ b/docs/sdks/lobbiesv3/README.md @@ -1,10 +1,8 @@ -# LobbyV3SDK -(*LobbyV3SDK*) +# LobbiesV3 +(*LobbiesV3*) ## Overview -Operations to create and manage lobbies using our [Lobby Service](https://hathora.dev/docs/lobbies-and-matchmaking/lobby-service). - ### Available Operations * [CreateLobby](#createlobby) - Create a new lobby for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). A lobby object is a wrapper around a [room](https://hathora.dev/docs/concepts/hathora-entities#room) object. With a lobby, you get additional functionality like configuring the visibility of the room, managing the state of a match, and retrieving a list of public lobbies to display to players. @@ -36,10 +34,10 @@ CreateLobbyRequest req = new CreateLobbyRequest() { }; -using(var res = await sdk.LobbyV3SDK.CreateLobbyAsync( - new CreateLobbySecurity() { - PlayerAuth = "", -}, +using(var res = await sdk.LobbiesV3.CreateLobbyAsync( + security: new CreateLobbySecurity() { + PlayerAuth = "", + }, req)) { // handle response @@ -55,10 +53,10 @@ using(var res = await sdk.LobbyV3SDK.CreateLobbyAsync( | `request` | [CreateLobbyRequest](../../Models/Operations/CreateLobbyRequest.md) | :heavy_check_mark: | The request object to use for the request. | | `security` | [HathoraCloud.Models.Operations.CreateLobbySecurity](../../models/operations/CreateLobbySecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | - ### Response **[CreateLobbyResponse](../../Models/Operations/CreateLobbyResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -66,6 +64,7 @@ using(var res = await sdk.LobbyV3SDK.CreateLobbyAsync( | HathoraCloud.Models.Errors.ApiError | 400,401,402,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetLobbyInfoByRoomId Get details for a lobby. @@ -84,7 +83,7 @@ GetLobbyInfoByRoomIdRequest req = new GetLobbyInfoByRoomIdRequest() { }; -using(var res = await sdk.LobbyV3SDK.GetLobbyInfoByRoomIdAsync(req)) +using(var res = await sdk.LobbiesV3.GetLobbyInfoByRoomIdAsync(req)) { // handle response } @@ -98,17 +97,18 @@ using(var res = await sdk.LobbyV3SDK.GetLobbyInfoByRoomIdAsync(req)) | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [GetLobbyInfoByRoomIdRequest](../../Models/Operations/GetLobbyInfoByRoomIdRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetLobbyInfoByRoomIdResponse](../../Models/Operations/GetLobbyInfoByRoomIdResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 404,422,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetLobbyInfoByShortCode Get details for a lobby. If 2 or more lobbies have the same `shortCode`, then the most recently created lobby will be returned. @@ -127,7 +127,7 @@ GetLobbyInfoByShortCodeRequest req = new GetLobbyInfoByShortCodeRequest() { }; -using(var res = await sdk.LobbyV3SDK.GetLobbyInfoByShortCodeAsync(req)) +using(var res = await sdk.LobbiesV3.GetLobbyInfoByShortCodeAsync(req)) { // handle response } @@ -141,17 +141,18 @@ using(var res = await sdk.LobbyV3SDK.GetLobbyInfoByShortCodeAsync(req)) | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [GetLobbyInfoByShortCodeRequest](../../Models/Operations/GetLobbyInfoByShortCodeRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetLobbyInfoByShortCodeResponse](../../Models/Operations/GetLobbyInfoByShortCodeResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ListActivePublicLobbies Get all active lobbies for a given [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `region`. Use this endpoint to display all public lobbies that a player can join in the game client. @@ -168,7 +169,7 @@ var sdk = new HathoraCloudSDK(appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2") ListActivePublicLobbiesRequest req = new ListActivePublicLobbiesRequest() {}; -using(var res = await sdk.LobbyV3SDK.ListActivePublicLobbiesAsync(req)) +using(var res = await sdk.LobbiesV3.ListActivePublicLobbiesAsync(req)) { // handle response } @@ -182,12 +183,13 @@ using(var res = await sdk.LobbyV3SDK.ListActivePublicLobbiesAsync(req)) | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [ListActivePublicLobbiesRequest](../../Models/Operations/ListActivePublicLobbiesRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[ListActivePublicLobbiesResponse](../../Models/Operations/ListActivePublicLobbiesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/logv1/README.md b/docs/sdks/logsv1/README.md similarity index 91% rename from docs/sdks/logv1/README.md rename to docs/sdks/logsv1/README.md index 83bbede5..c5d3c926 100644 --- a/docs/sdks/logv1/README.md +++ b/docs/sdks/logsv1/README.md @@ -1,10 +1,8 @@ -# LogV1 -(*LogV1*) +# LogsV1 +(*LogsV1*) ## Overview -Operations to get logs by [applications](https://hathora.dev/docs/concepts/hathora-entities#application), [processes](https://hathora.dev/docs/concepts/hathora-entities#process), and [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment). We store 20GB of logs data. - ### Available Operations * [DownloadLogForProcess](#downloadlogforprocess) - Download entire log file for a stopped process. @@ -34,7 +32,7 @@ DownloadLogForProcessRequest req = new DownloadLogForProcessRequest() { }; -using(var res = await sdk.LogV1.DownloadLogForProcessAsync(req)) +using(var res = await sdk.LogsV1.DownloadLogForProcessAsync(req)) { // handle response } @@ -48,17 +46,18 @@ using(var res = await sdk.LogV1.DownloadLogForProcessAsync(req)) | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `request` | [DownloadLogForProcessRequest](../../Models/Operations/DownloadLogForProcessRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[DownloadLogForProcessResponse](../../Models/Operations/DownloadLogForProcessResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 400,401,404,410 | application/json | +| HathoraCloud.Models.Errors.ApiError | 400,401,404,410,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~GetLogsForApp~~ Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. @@ -83,7 +82,7 @@ GetLogsForAppRequest req = new GetLogsForAppRequest() { }; -using(var res = await sdk.LogV1.GetLogsForAppAsync(req)) +using(var res = await sdk.LogsV1.GetLogsForAppAsync(req)) { // handle response } @@ -97,17 +96,18 @@ using(var res = await sdk.LogV1.GetLogsForAppAsync(req)) | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [GetLogsForAppRequest](../../Models/Operations/GetLogsForAppRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetLogsForAppResponse](../../Models/Operations/GetLogsForAppResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~GetLogsForDeployment~~ Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`. @@ -133,7 +133,7 @@ GetLogsForDeploymentRequest req = new GetLogsForDeploymentRequest() { }; -using(var res = await sdk.LogV1.GetLogsForDeploymentAsync(req)) +using(var res = await sdk.LogsV1.GetLogsForDeploymentAsync(req)) { // handle response } @@ -147,17 +147,18 @@ using(var res = await sdk.LogV1.GetLogsForDeploymentAsync(req)) | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [GetLogsForDeploymentRequest](../../Models/Operations/GetLogsForDeploymentRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetLogsForDeploymentResponse](../../Models/Operations/GetLogsForDeploymentResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetLogsForProcess Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. @@ -181,7 +182,7 @@ GetLogsForProcessRequest req = new GetLogsForProcessRequest() { }; -using(var res = await sdk.LogV1.GetLogsForProcessAsync(req)) +using(var res = await sdk.LogsV1.GetLogsForProcessAsync(req)) { // handle response } @@ -195,13 +196,13 @@ using(var res = await sdk.LogV1.GetLogsForProcessAsync(req)) | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `request` | [GetLogsForProcessRequest](../../Models/Operations/GetLogsForProcessRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetLogsForProcessResponse](../../Models/Operations/GetLogsForProcessResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 400,401,404,410,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 400,401,404,410,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/managementv1/README.md b/docs/sdks/managementv1/README.md index a82b55c6..baa62252 100644 --- a/docs/sdks/managementv1/README.md +++ b/docs/sdks/managementv1/README.md @@ -38,10 +38,10 @@ using(var res = await sdk.ManagementV1.SendVerificationEmailAsync(req)) | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | --------------------------------------------------------------------------- | | `request` | [VerificationEmailRequest](../../Models/Shared/VerificationEmailRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[SendVerificationEmailResponse](../../Models/Operations/SendVerificationEmailResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/metricsv1/README.md b/docs/sdks/metricsv1/README.md index 026a5ce8..88238ffb 100644 --- a/docs/sdks/metricsv1/README.md +++ b/docs/sdks/metricsv1/README.md @@ -46,13 +46,13 @@ using(var res = await sdk.MetricsV1.GetMetricsAsync(req)) | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [GetMetricsRequest](../../Models/Operations/GetMetricsRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetMetricsResponse](../../Models/Operations/GetMetricsResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404,422,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/organizationsv1/README.md b/docs/sdks/organizationsv1/README.md index 96a98086..e7f31276 100644 --- a/docs/sdks/organizationsv1/README.md +++ b/docs/sdks/organizationsv1/README.md @@ -1,10 +1,14 @@ # OrganizationsV1 (*OrganizationsV1*) +## Overview + ### Available Operations * [AcceptInvite](#acceptinvite) +* [GetOrgMembers](#getorgmembers) * [GetOrgPendingInvites](#getorgpendinginvites) +* [GetOrgs](#getorgs) - Returns an unsorted list of all organizations that you are a member of (an accepted membership invite). An organization is uniquely identified by an `orgId`. * [GetUserPendingInvites](#getuserpendinginvites) * [InviteUser](#inviteuser) * [RejectInvite](#rejectinvite) @@ -44,10 +48,10 @@ using(var res = await sdk.OrganizationsV1.AcceptInviteAsync(req)) | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [AcceptInviteRequest](../../Models/Operations/AcceptInviteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[AcceptInviteResponse](../../Models/Operations/AcceptInviteResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -55,6 +59,53 @@ using(var res = await sdk.OrganizationsV1.AcceptInviteAsync(req)) | HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + +## GetOrgMembers + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +GetOrgMembersRequest req = new GetOrgMembersRequest() { + OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", +}; + + +using(var res = await sdk.OrganizationsV1.GetOrgMembersAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | [GetOrgMembersRequest](../../Models/Operations/GetOrgMembersRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetOrgMembersResponse](../../Models/Operations/GetOrgMembersResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + ## GetOrgPendingInvites ### Example Usage @@ -89,10 +140,10 @@ using(var res = await sdk.OrganizationsV1.GetOrgPendingInvitesAsync(req)) | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [GetOrgPendingInvitesRequest](../../Models/Operations/GetOrgPendingInvitesRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetOrgPendingInvitesResponse](../../Models/Operations/GetOrgPendingInvitesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -100,6 +151,44 @@ using(var res = await sdk.OrganizationsV1.GetOrgPendingInvitesAsync(req)) | HathoraCloud.Models.Errors.ApiError | 401,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + +## GetOrgs + +Returns an unsorted list of all organizations that you are a member of (an accepted membership invite). An organization is uniquely identified by an `orgId`. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + + +using(var res = await sdk.OrganizationsV1.GetOrgsAsync()) +{ + // handle response +} + + +``` + +### Response + +**[GetOrgsResponse](../../Models/Operations/GetOrgsResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + ## GetUserPendingInvites ### Example Usage @@ -123,10 +212,10 @@ using(var res = await sdk.OrganizationsV1.GetUserPendingInvitesAsync()) ``` - ### Response **[GetUserPendingInvitesResponse](../../Models/Operations/GetUserPendingInvitesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -134,6 +223,7 @@ using(var res = await sdk.OrganizationsV1.GetUserPendingInvitesAsync()) | HathoraCloud.Models.Errors.ApiError | 401,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## InviteUser ### Example Usage @@ -151,7 +241,7 @@ var sdk = new HathoraCloudSDK( InviteUserRequest req = new InviteUserRequest() { CreateUserInvite = new CreateUserInvite() { - UserEmail = "", + UserEmail = "noreply@hathora.dev", }, OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", }; @@ -171,10 +261,10 @@ using(var res = await sdk.OrganizationsV1.InviteUserAsync(req)) | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [InviteUserRequest](../../Models/Operations/InviteUserRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[InviteUserResponse](../../Models/Operations/InviteUserResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -182,6 +272,7 @@ using(var res = await sdk.OrganizationsV1.InviteUserAsync(req)) | HathoraCloud.Models.Errors.ApiError | 401,422,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## RejectInvite ### Example Usage @@ -216,10 +307,10 @@ using(var res = await sdk.OrganizationsV1.RejectInviteAsync(req)) | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [RejectInviteRequest](../../Models/Operations/RejectInviteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[RejectInviteResponse](../../Models/Operations/RejectInviteResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -227,6 +318,7 @@ using(var res = await sdk.OrganizationsV1.RejectInviteAsync(req)) | HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## RescindInvite ### Example Usage @@ -244,7 +336,7 @@ var sdk = new HathoraCloudSDK( RescindInviteRequest req = new RescindInviteRequest() { RescindUserInvite = new RescindUserInvite() { - UserEmail = "", + UserEmail = "noreply@hathora.dev", }, OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", }; @@ -264,13 +356,13 @@ using(var res = await sdk.OrganizationsV1.RescindInviteAsync(req)) | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | | `request` | [RescindInviteRequest](../../Models/Operations/RescindInviteRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[RescindInviteResponse](../../Models/Operations/RescindInviteResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/processesv1/README.md b/docs/sdks/processesv1/README.md index 344cd661..c765a770 100644 --- a/docs/sdks/processesv1/README.md +++ b/docs/sdks/processesv1/README.md @@ -49,17 +49,18 @@ using(var res = await sdk.ProcessesV1.GetProcessInfoDeprecatedAsync(req)) | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `request` | [GetProcessInfoDeprecatedRequest](../../Models/Operations/GetProcessInfoDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetProcessInfoDeprecatedResponse](../../Models/Operations/GetProcessInfoDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~GetRunningProcesses~~ Retrieve 10 most recently started [process](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `region`. @@ -96,17 +97,18 @@ using(var res = await sdk.ProcessesV1.GetRunningProcessesAsync(req)) | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | `request` | [GetRunningProcessesRequest](../../Models/Operations/GetRunningProcessesRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetRunningProcessesResponse](../../Models/Operations/GetRunningProcessesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~GetStoppedProcesses~~ Retrieve 10 most recently stopped [process](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `region`. @@ -143,13 +145,13 @@ using(var res = await sdk.ProcessesV1.GetStoppedProcessesAsync(req)) | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------- | | `request` | [GetStoppedProcessesRequest](../../Models/Operations/GetStoppedProcessesRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetStoppedProcessesResponse](../../Models/Operations/GetStoppedProcessesResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/processesv2/README.md b/docs/sdks/processesv2/README.md index 07d302aa..058454e1 100644 --- a/docs/sdks/processesv2/README.md +++ b/docs/sdks/processesv2/README.md @@ -7,12 +7,13 @@ Operations to get data on active and stopped [processes](https://hathora.dev/doc ### Available Operations -* [CreateProcess](#createprocess) - Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. -* [GetLatestProcesses](#getlatestprocesses) - Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. -* [GetProcessInfo](#getprocessinfo) - Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). -* [StopProcess](#stopprocess) - Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. +* [CreateProcessV2Deprecated](#createprocessv2deprecated) - Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. +* [GetLatestProcessesV2Deprecated](#getlatestprocessesv2deprecated) - Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. +* [GetProcessInfoV2Deprecated](#getprocessinfov2deprecated) - Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). +* [GetProcessesCountExperimentalV2Deprecated](#getprocessescountexperimentalv2deprecated) - Count the number of [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter by optionally passing in a `status` or `region`. +* [StopProcessV2Deprecated](#stopprocessv2deprecated) - Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. -## CreateProcess +## CreateProcessV2Deprecated Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. @@ -29,12 +30,12 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -CreateProcessRequest req = new CreateProcessRequest() { - Region = Region.Tokyo, +CreateProcessV2DeprecatedRequest req = new CreateProcessV2DeprecatedRequest() { + Region = Region.Mumbai, }; -using(var res = await sdk.ProcessesV2.CreateProcessAsync(req)) +using(var res = await sdk.ProcessesV2.CreateProcessV2DeprecatedAsync(req)) { // handle response } @@ -44,22 +45,23 @@ using(var res = await sdk.ProcessesV2.CreateProcessAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | -| `request` | [CreateProcessRequest](../../Models/Operations/CreateProcessRequest.md) | :heavy_check_mark: | The request object to use for the request. | - +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------- | +| `request` | [CreateProcessV2DeprecatedRequest](../../Models/Operations/CreateProcessV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[CreateProcessResponse](../../Models/Operations/CreateProcessResponse.md)** +**[CreateProcessV2DeprecatedResponse](../../Models/Operations/CreateProcessV2DeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,402,404,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,402,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | -## GetLatestProcesses + +## GetLatestProcessesV2Deprecated Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. @@ -77,10 +79,10 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -GetLatestProcessesRequest req = new GetLatestProcessesRequest() {}; +GetLatestProcessesV2DeprecatedRequest req = new GetLatestProcessesV2DeprecatedRequest() {}; -using(var res = await sdk.ProcessesV2.GetLatestProcessesAsync(req)) +using(var res = await sdk.ProcessesV2.GetLatestProcessesV2DeprecatedAsync(req)) { // handle response } @@ -90,22 +92,23 @@ using(var res = await sdk.ProcessesV2.GetLatestProcessesAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | -| `request` | [GetLatestProcessesRequest](../../Models/Operations/GetLatestProcessesRequest.md) | :heavy_check_mark: | The request object to use for the request. | - +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------- | +| `request` | [GetLatestProcessesV2DeprecatedRequest](../../Models/Operations/GetLatestProcessesV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[GetLatestProcessesResponse](../../Models/Operations/GetLatestProcessesResponse.md)** +**[GetLatestProcessesV2DeprecatedResponse](../../Models/Operations/GetLatestProcessesV2DeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | -## GetProcessInfo + +## GetProcessInfoV2Deprecated Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). @@ -122,12 +125,12 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -GetProcessInfoRequest req = new GetProcessInfoRequest() { +GetProcessInfoV2DeprecatedRequest req = new GetProcessInfoV2DeprecatedRequest() { ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", }; -using(var res = await sdk.ProcessesV2.GetProcessInfoAsync(req)) +using(var res = await sdk.ProcessesV2.GetProcessInfoV2DeprecatedAsync(req)) { // handle response } @@ -137,22 +140,70 @@ using(var res = await sdk.ProcessesV2.GetProcessInfoAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | -| `request` | [GetProcessInfoRequest](../../Models/Operations/GetProcessInfoRequest.md) | :heavy_check_mark: | The request object to use for the request. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | +| `request` | [GetProcessInfoV2DeprecatedRequest](../../Models/Operations/GetProcessInfoV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetProcessInfoV2DeprecatedResponse](../../Models/Operations/GetProcessInfoV2DeprecatedResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetProcessesCountExperimentalV2Deprecated + +Count the number of [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter by optionally passing in a `status` or `region`. +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; +using System.Collections.Generic; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +GetProcessesCountExperimentalV2DeprecatedRequest req = new GetProcessesCountExperimentalV2DeprecatedRequest() {}; + + +using(var res = await sdk.ProcessesV2.GetProcessesCountExperimentalV2DeprecatedAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [GetProcessesCountExperimentalV2DeprecatedRequest](../../Models/Operations/GetProcessesCountExperimentalV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[GetProcessInfoResponse](../../Models/Operations/GetProcessInfoResponse.md)** +**[GetProcessesCountExperimentalV2DeprecatedResponse](../../Models/Operations/GetProcessesCountExperimentalV2DeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | -## StopProcess + +## StopProcessV2Deprecated Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. @@ -169,12 +220,12 @@ var sdk = new HathoraCloudSDK( }, appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); -StopProcessRequest req = new StopProcessRequest() { +StopProcessV2DeprecatedRequest req = new StopProcessV2DeprecatedRequest() { ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", }; -using(var res = await sdk.ProcessesV2.StopProcessAsync(req)) +using(var res = await sdk.ProcessesV2.StopProcessV2DeprecatedAsync(req)) { // handle response } @@ -184,17 +235,17 @@ using(var res = await sdk.ProcessesV2.StopProcessAsync(req)) ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | -| `request` | [StopProcessRequest](../../Models/Operations/StopProcessRequest.md) | :heavy_check_mark: | The request object to use for the request. | - +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | +| `request` | [StopProcessV2DeprecatedRequest](../../Models/Operations/StopProcessV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | ### Response -**[StopProcessResponse](../../Models/Operations/StopProcessResponse.md)** +**[StopProcessV2DeprecatedResponse](../../Models/Operations/StopProcessV2DeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/processesv3/README.md b/docs/sdks/processesv3/README.md new file mode 100644 index 00000000..92523cf0 --- /dev/null +++ b/docs/sdks/processesv3/README.md @@ -0,0 +1,249 @@ +# ProcessesV3 +(*ProcessesV3*) + +## Overview + +### Available Operations + +* [CreateProcess](#createprocess) - Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. +* [GetLatestProcesses](#getlatestprocesses) - Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. +* [GetProcess](#getprocess) - Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). +* [GetProcessesCountExperimental](#getprocessescountexperimental) - Count the number of [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter by optionally passing in a `status` or `region`. +* [StopProcess](#stopprocess) - Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. + +## CreateProcess + +Creates a [process](https://hathora.dev/docs/concepts/hathora-entities#process) without a room. Use this to pre-allocate processes ahead of time so that subsequent room assignment via [CreateRoom()](https://hathora.dev/api#tag/RoomV2/operation/CreateRoom) can be instant. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +CreateProcessRequest req = new CreateProcessRequest() { + Region = Region.Tokyo, +}; + + +using(var res = await sdk.ProcessesV3.CreateProcessAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | ----------------------------------------------------------------------- | +| `request` | [CreateProcessRequest](../../Models/Operations/CreateProcessRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[CreateProcessResponse](../../Models/Operations/CreateProcessResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,402,404,422,429,500 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetLatestProcesses + +Retrieve the 10 most recent [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter the array by optionally passing in a `status` or `region`. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; +using System.Collections.Generic; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +GetLatestProcessesRequest req = new GetLatestProcessesRequest() {}; + + +using(var res = await sdk.ProcessesV3.GetLatestProcessesAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------- | +| `request` | [GetLatestProcessesRequest](../../Models/Operations/GetLatestProcessesRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetLatestProcessesResponse](../../Models/Operations/GetLatestProcessesResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetProcess + +Get details for a [process](https://hathora.dev/docs/concepts/hathora-entities#process). + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +GetProcessRequest req = new GetProcessRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", +}; + + +using(var res = await sdk.ProcessesV3.GetProcessAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | +| `request` | [GetProcessRequest](../../Models/Operations/GetProcessRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetProcessResponse](../../Models/Operations/GetProcessResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## GetProcessesCountExperimental + +Count the number of [processes](https://hathora.dev/docs/concepts/hathora-entities#process) objects for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). Filter by optionally passing in a `status` or `region`. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; +using System.Collections.Generic; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +GetProcessesCountExperimentalRequest req = new GetProcessesCountExperimentalRequest() {}; + + +using(var res = await sdk.ProcessesV3.GetProcessesCountExperimentalAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------- | +| `request` | [GetProcessesCountExperimentalRequest](../../Models/Operations/GetProcessesCountExperimentalRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[GetProcessesCountExperimentalResponse](../../Models/Operations/GetProcessesCountExperimentalResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + + +## StopProcess + +Stops a [process](https://hathora.dev/docs/concepts/hathora-entities#process) immediately. + +### Example Usage + +```csharp +using HathoraCloud; +using HathoraCloud.Models.Shared; +using HathoraCloud.Models.Operations; + +var sdk = new HathoraCloudSDK( + security: new Security() { + HathoraDevToken = "", + }, + appId: "app-af469a92-5b45-4565-b3c4-b79878de67d2"); + +StopProcessRequest req = new StopProcessRequest() { + ProcessId = "cbfcddd2-0006-43ae-996c-995fff7bed2e", +}; + + +using(var res = await sdk.ProcessesV3.StopProcessAsync(req)) +{ + // handle response +} + + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | +| `request` | [StopProcessRequest](../../Models/Operations/StopProcessRequest.md) | :heavy_check_mark: | The request object to use for the request. | + +### Response + +**[StopProcessResponse](../../Models/Operations/StopProcessResponse.md)** + +### Errors + +| Error Object | Status Code | Content Type | +| --------------------------------------- | --------------------------------------- | --------------------------------------- | +| HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | +| HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/docs/sdks/roomv1/README.md b/docs/sdks/roomsv1/README.md similarity index 95% rename from docs/sdks/roomv1/README.md rename to docs/sdks/roomsv1/README.md index ce9e7512..97917a47 100644 --- a/docs/sdks/roomv1/README.md +++ b/docs/sdks/roomsv1/README.md @@ -1,10 +1,8 @@ -# RoomV1 -(*RoomV1*) +# RoomsV1 +(*RoomsV1*) ## Overview -Deprecated. Use [RoomV2](https://hathora.dev/api#tag/RoomV2). - ### Available Operations * [~~CreateRoomDeprecated~~](#createroomdeprecated) - :warning: **Deprecated** @@ -25,6 +23,7 @@ Deprecated. Use [RoomV2](https://hathora.dev/api#tag/RoomV2). using HathoraCloud; using HathoraCloud.Models.Shared; using HathoraCloud.Models.Operations; +using System.Collections.Generic; var sdk = new HathoraCloudSDK( security: new Security() { @@ -41,7 +40,7 @@ CreateRoomDeprecatedRequest req = new CreateRoomDeprecatedRequest() { }; -using(var res = await sdk.RoomV1.CreateRoomDeprecatedAsync(req)) +using(var res = await sdk.RoomsV1.CreateRoomDeprecatedAsync(req)) { // handle response } @@ -55,17 +54,18 @@ using(var res = await sdk.RoomV1.CreateRoomDeprecatedAsync(req)) | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | | `request` | [CreateRoomDeprecatedRequest](../../Models/Operations/CreateRoomDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[CreateRoomDeprecatedResponse](../../Models/Operations/CreateRoomDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 400,401,402,403,404,429,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 400,401,402,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~DestroyRoomDeprecated~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. @@ -88,7 +88,7 @@ DestroyRoomDeprecatedRequest req = new DestroyRoomDeprecatedRequest() { }; -using(var res = await sdk.RoomV1.DestroyRoomDeprecatedAsync(req)) +using(var res = await sdk.RoomsV1.DestroyRoomDeprecatedAsync(req)) { // handle response } @@ -102,10 +102,10 @@ using(var res = await sdk.RoomV1.DestroyRoomDeprecatedAsync(req)) | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `request` | [DestroyRoomDeprecatedRequest](../../Models/Operations/DestroyRoomDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[DestroyRoomDeprecatedResponse](../../Models/Operations/DestroyRoomDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -113,6 +113,7 @@ using(var res = await sdk.RoomV1.DestroyRoomDeprecatedAsync(req)) | HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~GetActiveRoomsForProcessDeprecated~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. @@ -135,7 +136,7 @@ GetActiveRoomsForProcessDeprecatedRequest req = new GetActiveRoomsForProcessDepr }; -using(var res = await sdk.RoomV1.GetActiveRoomsForProcessDeprecatedAsync(req)) +using(var res = await sdk.RoomsV1.GetActiveRoomsForProcessDeprecatedAsync(req)) { // handle response } @@ -149,17 +150,18 @@ using(var res = await sdk.RoomV1.GetActiveRoomsForProcessDeprecatedAsync(req)) | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | | `request` | [GetActiveRoomsForProcessDeprecatedRequest](../../Models/Operations/GetActiveRoomsForProcessDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetActiveRoomsForProcessDeprecatedResponse](../../Models/Operations/GetActiveRoomsForProcessDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~GetConnectionInfoDeprecated~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. @@ -178,7 +180,7 @@ GetConnectionInfoDeprecatedRequest req = new GetConnectionInfoDeprecatedRequest( }; -using(var res = await sdk.RoomV1.GetConnectionInfoDeprecatedAsync(req)) +using(var res = await sdk.RoomsV1.GetConnectionInfoDeprecatedAsync(req)) { // handle response } @@ -192,17 +194,18 @@ using(var res = await sdk.RoomV1.GetConnectionInfoDeprecatedAsync(req)) | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------- | | `request` | [GetConnectionInfoDeprecatedRequest](../../Models/Operations/GetConnectionInfoDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetConnectionInfoDeprecatedResponse](../../Models/Operations/GetConnectionInfoDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 400,402,404,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 400,402,404,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~GetInactiveRoomsForProcessDeprecated~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. @@ -225,7 +228,7 @@ GetInactiveRoomsForProcessDeprecatedRequest req = new GetInactiveRoomsForProcess }; -using(var res = await sdk.RoomV1.GetInactiveRoomsForProcessDeprecatedAsync(req)) +using(var res = await sdk.RoomsV1.GetInactiveRoomsForProcessDeprecatedAsync(req)) { // handle response } @@ -239,17 +242,18 @@ using(var res = await sdk.RoomV1.GetInactiveRoomsForProcessDeprecatedAsync(req)) | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------- | | `request` | [GetInactiveRoomsForProcessDeprecatedRequest](../../Models/Operations/GetInactiveRoomsForProcessDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetInactiveRoomsForProcessDeprecatedResponse](../../Models/Operations/GetInactiveRoomsForProcessDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~GetRoomInfoDeprecated~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. @@ -272,7 +276,7 @@ GetRoomInfoDeprecatedRequest req = new GetRoomInfoDeprecatedRequest() { }; -using(var res = await sdk.RoomV1.GetRoomInfoDeprecatedAsync(req)) +using(var res = await sdk.RoomsV1.GetRoomInfoDeprecatedAsync(req)) { // handle response } @@ -286,17 +290,18 @@ using(var res = await sdk.RoomV1.GetRoomInfoDeprecatedAsync(req)) | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `request` | [GetRoomInfoDeprecatedRequest](../../Models/Operations/GetRoomInfoDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetRoomInfoDeprecatedResponse](../../Models/Operations/GetRoomInfoDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~SuspendRoomDeprecated~~ > :warning: **DEPRECATED**: This will be removed in a future release, please migrate away from it as soon as possible. @@ -319,7 +324,7 @@ SuspendRoomDeprecatedRequest req = new SuspendRoomDeprecatedRequest() { }; -using(var res = await sdk.RoomV1.SuspendRoomDeprecatedAsync(req)) +using(var res = await sdk.RoomsV1.SuspendRoomDeprecatedAsync(req)) { // handle response } @@ -333,10 +338,10 @@ using(var res = await sdk.RoomV1.SuspendRoomDeprecatedAsync(req)) | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | | `request` | [SuspendRoomDeprecatedRequest](../../Models/Operations/SuspendRoomDeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[SuspendRoomDeprecatedResponse](../../Models/Operations/SuspendRoomDeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/roomv2/README.md b/docs/sdks/roomsv2/README.md similarity index 95% rename from docs/sdks/roomv2/README.md rename to docs/sdks/roomsv2/README.md index 639a015e..da749e0c 100644 --- a/docs/sdks/roomv2/README.md +++ b/docs/sdks/roomsv2/README.md @@ -1,10 +1,8 @@ -# RoomV2 -(*RoomV2*) +# RoomsV2 +(*RoomsV2*) ## Overview -Operations to create, manage, and connect to [rooms](https://hathora.dev/docs/concepts/hathora-entities#room). - ### Available Operations * [CreateRoom](#createroom) - Create a new [room](https://hathora.dev/docs/concepts/hathora-entities#room) for an existing [application](https://hathora.dev/docs/concepts/hathora-entities#application). Poll the [`GetConnectionInfo()`](https://hathora.dev/api#tag/RoomV2/operation/GetConnectionInfo) endpoint to get connection details for an active room. @@ -26,6 +24,7 @@ Create a new [room](https://hathora.dev/docs/concepts/hathora-entities#room) for using HathoraCloud; using HathoraCloud.Models.Shared; using HathoraCloud.Models.Operations; +using System.Collections.Generic; var sdk = new HathoraCloudSDK( security: new Security() { @@ -42,7 +41,7 @@ CreateRoomRequest req = new CreateRoomRequest() { }; -using(var res = await sdk.RoomV2.CreateRoomAsync(req)) +using(var res = await sdk.RoomsV2.CreateRoomAsync(req)) { // handle response } @@ -56,17 +55,18 @@ using(var res = await sdk.RoomV2.CreateRoomAsync(req)) | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | ----------------------------------------------------------------- | | `request` | [CreateRoomRequest](../../Models/Operations/CreateRoomRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[CreateRoomResponse](../../Models/Operations/CreateRoomResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 400,401,402,403,404,429,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 400,401,402,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## DestroyRoom Destroy a [room](https://hathora.dev/docs/concepts/hathora-entities#room). All associated metadata is deleted. @@ -89,7 +89,7 @@ DestroyRoomRequest req = new DestroyRoomRequest() { }; -using(var res = await sdk.RoomV2.DestroyRoomAsync(req)) +using(var res = await sdk.RoomsV2.DestroyRoomAsync(req)) { // handle response } @@ -103,10 +103,10 @@ using(var res = await sdk.RoomV2.DestroyRoomAsync(req)) | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [DestroyRoomRequest](../../Models/Operations/DestroyRoomRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[DestroyRoomResponse](../../Models/Operations/DestroyRoomResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -114,6 +114,7 @@ using(var res = await sdk.RoomV2.DestroyRoomAsync(req)) | HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetActiveRoomsForProcess Get all active [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) for a given [process](https://hathora.dev/docs/concepts/hathora-entities#process). @@ -136,7 +137,7 @@ GetActiveRoomsForProcessRequest req = new GetActiveRoomsForProcessRequest() { }; -using(var res = await sdk.RoomV2.GetActiveRoomsForProcessAsync(req)) +using(var res = await sdk.RoomsV2.GetActiveRoomsForProcessAsync(req)) { // handle response } @@ -150,17 +151,18 @@ using(var res = await sdk.RoomV2.GetActiveRoomsForProcessAsync(req)) | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------- | | `request` | [GetActiveRoomsForProcessRequest](../../Models/Operations/GetActiveRoomsForProcessRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetActiveRoomsForProcessResponse](../../Models/Operations/GetActiveRoomsForProcessResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetConnectionInfo Poll this endpoint to get connection details to a [room](https://hathora.dev/docs/concepts/hathora-entities#room). Clients can call this endpoint without authentication. @@ -179,7 +181,7 @@ GetConnectionInfoRequest req = new GetConnectionInfoRequest() { }; -using(var res = await sdk.RoomV2.GetConnectionInfoAsync(req)) +using(var res = await sdk.RoomsV2.GetConnectionInfoAsync(req)) { // handle response } @@ -193,17 +195,18 @@ using(var res = await sdk.RoomV2.GetConnectionInfoAsync(req)) | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | ------------------------------------------------------------------------------- | | `request` | [GetConnectionInfoRequest](../../Models/Operations/GetConnectionInfoRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetConnectionInfoResponse](../../Models/Operations/GetConnectionInfoResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 400,402,404,500 | application/json | +| HathoraCloud.Models.Errors.ApiError | 400,402,404,422,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetInactiveRoomsForProcess Get all inactive [rooms](https://hathora.dev/docs/concepts/hathora-entities#room) for a given [process](https://hathora.dev/docs/concepts/hathora-entities#process). @@ -226,7 +229,7 @@ GetInactiveRoomsForProcessRequest req = new GetInactiveRoomsForProcessRequest() }; -using(var res = await sdk.RoomV2.GetInactiveRoomsForProcessAsync(req)) +using(var res = await sdk.RoomsV2.GetInactiveRoomsForProcessAsync(req)) { // handle response } @@ -240,17 +243,18 @@ using(var res = await sdk.RoomV2.GetInactiveRoomsForProcessAsync(req)) | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------- | | `request` | [GetInactiveRoomsForProcessRequest](../../Models/Operations/GetInactiveRoomsForProcessRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetInactiveRoomsForProcessResponse](../../Models/Operations/GetInactiveRoomsForProcessResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetRoomInfo Retreive current and historical allocation data for a [room](https://hathora.dev/docs/concepts/hathora-entities#room). @@ -273,7 +277,7 @@ GetRoomInfoRequest req = new GetRoomInfoRequest() { }; -using(var res = await sdk.RoomV2.GetRoomInfoAsync(req)) +using(var res = await sdk.RoomsV2.GetRoomInfoAsync(req)) { // handle response } @@ -287,17 +291,18 @@ using(var res = await sdk.RoomV2.GetRoomInfoAsync(req)) | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | ------------------------------------------------------------------- | | `request` | [GetRoomInfoRequest](../../Models/Operations/GetRoomInfoRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetRoomInfoResponse](../../Models/Operations/GetRoomInfoResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## ~~SuspendRoomV2Deprecated~~ Suspend a [room](https://hathora.dev/docs/concepts/hathora-entities#room). The room is unallocated from the process but can be rescheduled later using the same `roomId`. @@ -322,7 +327,7 @@ SuspendRoomV2DeprecatedRequest req = new SuspendRoomV2DeprecatedRequest() { }; -using(var res = await sdk.RoomV2.SuspendRoomV2DeprecatedAsync(req)) +using(var res = await sdk.RoomsV2.SuspendRoomV2DeprecatedAsync(req)) { // handle response } @@ -336,10 +341,10 @@ using(var res = await sdk.RoomV2.SuspendRoomV2DeprecatedAsync(req)) | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- | | `request` | [SuspendRoomV2DeprecatedRequest](../../Models/Operations/SuspendRoomV2DeprecatedRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[SuspendRoomV2DeprecatedResponse](../../Models/Operations/SuspendRoomV2DeprecatedResponse.md)** + ### Errors | Error Object | Status Code | Content Type | @@ -347,6 +352,7 @@ using(var res = await sdk.RoomV2.SuspendRoomV2DeprecatedAsync(req)) | HathoraCloud.Models.Errors.ApiError | 401,404,429,500 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## UpdateRoomConfig ### Example Usage @@ -370,7 +376,7 @@ UpdateRoomConfigRequest req = new UpdateRoomConfigRequest() { }; -using(var res = await sdk.RoomV2.UpdateRoomConfigAsync(req)) +using(var res = await sdk.RoomsV2.UpdateRoomConfigAsync(req)) { // handle response } @@ -384,10 +390,10 @@ using(var res = await sdk.RoomV2.UpdateRoomConfigAsync(req)) | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | | `request` | [UpdateRoomConfigRequest](../../Models/Operations/UpdateRoomConfigRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[UpdateRoomConfigResponse](../../Models/Operations/UpdateRoomConfigResponse.md)** + ### Errors | Error Object | Status Code | Content Type | diff --git a/docs/sdks/orgtokensv1/README.md b/docs/sdks/tokensv1/README.md similarity index 93% rename from docs/sdks/orgtokensv1/README.md rename to docs/sdks/tokensv1/README.md index 1d72988c..d7ac8883 100644 --- a/docs/sdks/orgtokensv1/README.md +++ b/docs/sdks/tokensv1/README.md @@ -1,5 +1,5 @@ -# OrgTokensV1 -(*OrgTokensV1*) +# TokensV1 +(*TokensV1*) ## Overview @@ -36,7 +36,7 @@ CreateOrgTokenRequest req = new CreateOrgTokenRequest() { }; -using(var res = await sdk.OrgTokensV1.CreateOrgTokenAsync(req)) +using(var res = await sdk.TokensV1.CreateOrgTokenAsync(req)) { // handle response } @@ -50,17 +50,18 @@ using(var res = await sdk.OrgTokensV1.CreateOrgTokenAsync(req)) | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [CreateOrgTokenRequest](../../Models/Operations/CreateOrgTokenRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[CreateOrgTokenResponse](../../Models/Operations/CreateOrgTokenResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404,422 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,422,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## GetOrgTokens List all organization tokens for a given org. @@ -83,7 +84,7 @@ GetOrgTokensRequest req = new GetOrgTokensRequest() { }; -using(var res = await sdk.OrgTokensV1.GetOrgTokensAsync(req)) +using(var res = await sdk.TokensV1.GetOrgTokensAsync(req)) { // handle response } @@ -97,17 +98,18 @@ using(var res = await sdk.OrgTokensV1.GetOrgTokensAsync(req)) | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | | `request` | [GetOrgTokensRequest](../../Models/Operations/GetOrgTokensRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[GetOrgTokensResponse](../../Models/Operations/GetOrgTokensResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | + ## RevokeOrgToken Revoke an organization token. @@ -127,11 +129,11 @@ var sdk = new HathoraCloudSDK( RevokeOrgTokenRequest req = new RevokeOrgTokenRequest() { OrgId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", - OrgTokenId = "org-6f706e83-0ec1-437a-9a46-7d4281eb2f39", + OrgTokenId = "org-token-af469a92-5b45-4565-b3c4-b79878de67d2", }; -using(var res = await sdk.OrgTokensV1.RevokeOrgTokenAsync(req)) +using(var res = await sdk.TokensV1.RevokeOrgTokenAsync(req)) { // handle response } @@ -145,13 +147,13 @@ using(var res = await sdk.OrgTokensV1.RevokeOrgTokenAsync(req)) | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | ------------------------------------------------------------------------- | | `request` | [RevokeOrgTokenRequest](../../Models/Operations/RevokeOrgTokenRequest.md) | :heavy_check_mark: | The request object to use for the request. | - ### Response **[RevokeOrgTokenResponse](../../Models/Operations/RevokeOrgTokenResponse.md)** + ### Errors | Error Object | Status Code | Content Type | | --------------------------------------- | --------------------------------------- | --------------------------------------- | -| HathoraCloud.Models.Errors.ApiError | 401,404 | application/json | +| HathoraCloud.Models.Errors.ApiError | 401,404,429 | application/json | | HathoraCloud.Models.Errors.SDKException | 4xx-5xx | */* | diff --git a/gen.yaml b/gen.yaml index 482e5f05..b0e19679 100644 --- a/gen.yaml +++ b/gen.yaml @@ -10,7 +10,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false unity: - version: 0.29.0 + version: 0.30.0 author: Hathora clientServerStatusCodesAsErrors: true disableNamespacePascalCasingApr2024: false