From c8edd959ab7a354ea416435fd9c5aae804349d6f Mon Sep 17 00:00:00 2001 From: cdhanna <3848374+cdhanna@users.noreply.github.com> Date: Tue, 23 Jul 2024 18:06:46 +0000 Subject: [PATCH] syncing Unity SDK from CLI --- .../Commands/BeamProjectRemoteManifest.cs | 50 -------------- .../BeamProjectRemoteManifest.cs.meta | 11 --- .../BeamCli/Commands/BeamServiceDependency.cs | 13 ---- .../Commands/BeamServiceDependency.cs.meta | 11 --- .../BeamCli/Commands/BeamServiceManifest.cs | 17 ----- .../Commands/BeamServiceManifest.cs.meta | 11 --- .../BeamCli/Commands/BeamServiceReference.cs | 20 ------ .../Commands/BeamServiceReference.cs.meta | 11 --- .../Commands/BeamServiceStorageReference.cs | 16 ----- .../BeamServiceStorageReference.cs.meta | 11 --- .../BeamCli/Commands/BeamServicesReset.cs | 68 ------------------- .../Commands/BeamServicesReset.cs.meta | 11 --- .../Commands/BeamServicesResetResult.cs | 13 ---- .../Commands/BeamServicesResetResult.cs.meta | 11 --- 14 files changed, 274 deletions(-) delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectRemoteManifest.cs delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectRemoteManifest.cs.meta delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceDependency.cs delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceDependency.cs.meta delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceManifest.cs delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceManifest.cs.meta delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceReference.cs delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceReference.cs.meta delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceStorageReference.cs delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceStorageReference.cs.meta delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesReset.cs delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesReset.cs.meta delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesResetResult.cs delete mode 100644 client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesResetResult.cs.meta diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectRemoteManifest.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectRemoteManifest.cs deleted file mode 100644 index 7499c52004..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectRemoteManifest.cs +++ /dev/null @@ -1,50 +0,0 @@ - -namespace Beamable.Editor.BeamCli.Commands -{ - using Beamable.Common; - using Beamable.Common.BeamCli; - - public class ProjectRemoteManifestArgs : Beamable.Common.BeamCli.IBeamCommandArgs - { - /// Serializes the arguments for command line usage. - public virtual string Serialize() - { - // Create a list of arguments for the command - System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); - string genBeamCommandStr = ""; - // Join all the args with spaces - genBeamCommandStr = string.Join(" ", genBeamCommandArgs); - return genBeamCommandStr; - } - } - public partial class BeamCommands - { - public virtual ProjectRemoteManifestWrapper ProjectRemoteManifest() - { - // Create a list of arguments for the command - System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); - genBeamCommandArgs.Add("beam"); - genBeamCommandArgs.Add(defaultBeamArgs.Serialize()); - genBeamCommandArgs.Add("project"); - genBeamCommandArgs.Add("remote-manifest"); - // Create an instance of an IBeamCommand - Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create(); - // Join all the command paths and args into one string - string genBeamCommandStr = string.Join(" ", genBeamCommandArgs); - // Configure the command with the command string - command.SetCommand(genBeamCommandStr); - ProjectRemoteManifestWrapper genBeamCommandWrapper = new ProjectRemoteManifestWrapper(); - genBeamCommandWrapper.Command = command; - // Return the command! - return genBeamCommandWrapper; - } - } - public class ProjectRemoteManifestWrapper : Beamable.Common.BeamCli.BeamCommandWrapper - { - public virtual ProjectRemoteManifestWrapper OnStreamServiceManifest(System.Action> cb) - { - this.Command.On("stream", cb); - return this; - } - } -} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectRemoteManifest.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectRemoteManifest.cs.meta deleted file mode 100644 index 50174b9bab..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamProjectRemoteManifest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: b41390ef1403eef16ab0bc0c79c60f34 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceDependency.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceDependency.cs deleted file mode 100644 index 2230930182..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceDependency.cs +++ /dev/null @@ -1,13 +0,0 @@ - -namespace Beamable.Editor.BeamCli.Commands -{ - using Beamable.Common; - using Beamable.Common.BeamCli; - - [System.SerializableAttribute()] - public class BeamServiceDependency - { - public string storageType; - public string id; - } -} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceDependency.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceDependency.cs.meta deleted file mode 100644 index df22407ca2..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceDependency.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 75c5ce7311bb4709e660cadf8caece09 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceManifest.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceManifest.cs deleted file mode 100644 index 508a2f9a5d..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceManifest.cs +++ /dev/null @@ -1,17 +0,0 @@ - -namespace Beamable.Editor.BeamCli.Commands -{ - using Beamable.Common; - using Beamable.Common.BeamCli; - - [System.SerializableAttribute()] - public class BeamServiceManifest - { - public string id; - public long created; - public System.Collections.Generic.List manifest; - public System.Collections.Generic.List storageReference; - public long createdByAccountId; - public string comments; - } -} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceManifest.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceManifest.cs.meta deleted file mode 100644 index 202deba814..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceManifest.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 2bea6c01a3a7f92959ec26ae90c4965e -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceReference.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceReference.cs deleted file mode 100644 index 8fa5c2789a..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceReference.cs +++ /dev/null @@ -1,20 +0,0 @@ - -namespace Beamable.Editor.BeamCli.Commands -{ - using Beamable.Common; - using Beamable.Common.BeamCli; - - [System.SerializableAttribute()] - public class BeamServiceReference - { - public string serviceName; - public string checksum; - public bool enabled; - public string imageId; - public string templateId; - public string comments; - public System.Collections.Generic.List dependencies; - public long containerHealthCheckPort; - public System.Collections.Generic.List components; - } -} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceReference.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceReference.cs.meta deleted file mode 100644 index c42a76ed19..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 0d280d30ce40f1ca8af412e74b1940aa -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceStorageReference.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceStorageReference.cs deleted file mode 100644 index 5c1843965f..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceStorageReference.cs +++ /dev/null @@ -1,16 +0,0 @@ - -namespace Beamable.Editor.BeamCli.Commands -{ - using Beamable.Common; - using Beamable.Common.BeamCli; - - [System.SerializableAttribute()] - public class BeamServiceStorageReference - { - public string id; - public string storageType; - public bool enabled; - public string templateId; - public string checksum; - } -} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceStorageReference.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceStorageReference.cs.meta deleted file mode 100644 index d4bf20a286..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServiceStorageReference.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 04de5f368c36c8ccc66bef7399606495 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesReset.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesReset.cs deleted file mode 100644 index 9f7e586aa6..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesReset.cs +++ /dev/null @@ -1,68 +0,0 @@ - -namespace Beamable.Editor.BeamCli.Commands -{ - using Beamable.Common; - using Beamable.Common.BeamCli; - - public class ServicesResetArgs : Beamable.Common.BeamCli.IBeamCommandArgs - { - /// Either image|container|protocols.'image' will cleanup all your locally built images for the selected Beamo Services. - ///'container' will stop all your locally running containers for the selected Beamo Services. - ///'protocols' will reset all the protocol data for the selected Beamo Services back to default parameters - public string target; - /// The ids for the services you wish to reset - public string[] ids; - /// Serializes the arguments for command line usage. - public virtual string Serialize() - { - // Create a list of arguments for the command - System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); - // Add the target value to the list of args. - genBeamCommandArgs.Add(this.target.ToString()); - // If the ids value was not default, then add it to the list of args. - if ((this.ids != default(string[]))) - { - for (int i = 0; (i < this.ids.Length); i = (i + 1)) - { - // The parameter allows multiple values - genBeamCommandArgs.Add(("--ids=" + this.ids[i])); - } - } - string genBeamCommandStr = ""; - // Join all the args with spaces - genBeamCommandStr = string.Join(" ", genBeamCommandArgs); - return genBeamCommandStr; - } - } - public partial class BeamCommands - { - public virtual ServicesResetWrapper ServicesReset(ServicesResetArgs resetArgs) - { - // Create a list of arguments for the command - System.Collections.Generic.List genBeamCommandArgs = new System.Collections.Generic.List(); - genBeamCommandArgs.Add("beam"); - genBeamCommandArgs.Add(defaultBeamArgs.Serialize()); - genBeamCommandArgs.Add("services"); - genBeamCommandArgs.Add("reset"); - genBeamCommandArgs.Add(resetArgs.Serialize()); - // Create an instance of an IBeamCommand - Beamable.Common.BeamCli.IBeamCommand command = this._factory.Create(); - // Join all the command paths and args into one string - string genBeamCommandStr = string.Join(" ", genBeamCommandArgs); - // Configure the command with the command string - command.SetCommand(genBeamCommandStr); - ServicesResetWrapper genBeamCommandWrapper = new ServicesResetWrapper(); - genBeamCommandWrapper.Command = command; - // Return the command! - return genBeamCommandWrapper; - } - } - public class ServicesResetWrapper : Beamable.Common.BeamCli.BeamCommandWrapper - { - public virtual ServicesResetWrapper OnStreamServicesResetResult(System.Action> cb) - { - this.Command.On("stream", cb); - return this; - } - } -} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesReset.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesReset.cs.meta deleted file mode 100644 index a98231b12b..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesReset.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: eed967e730c207e9f49051b3a302cf58 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesResetResult.cs b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesResetResult.cs deleted file mode 100644 index 01545ef935..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesResetResult.cs +++ /dev/null @@ -1,13 +0,0 @@ - -namespace Beamable.Editor.BeamCli.Commands -{ - using Beamable.Common; - using Beamable.Common.BeamCli; - - [System.SerializableAttribute()] - public class BeamServicesResetResult - { - public string Target; - public System.Collections.Generic.List Ids; - } -} diff --git a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesResetResult.cs.meta b/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesResetResult.cs.meta deleted file mode 100644 index 8832869116..0000000000 --- a/client/Packages/com.beamable/Editor/BeamCli/Commands/BeamServicesResetResult.cs.meta +++ /dev/null @@ -1,11 +0,0 @@ -fileFormatVersion: 2 -guid: 7a6c9f603e5618a94be202de46560758 -MonoImporter: - externalObjects: {} - serializedVersion: 2 - defaultReferences: [] - executionOrder: 0 - icon: {instanceID: 0} - userData: - assetBundleName: - assetBundleVariant: