generated/api/Models/GoogleCloudVMInfo.cs
// Code generated by Microsoft (R) AutoRest Code Generator (autorest: 3.10.2, generator: @autorest/powershell@4.0.708) // Changes may cause incorrect behavior and will be lost if the code is regenerated. namespace Commvault.Powershell.Models { using static Commvault.Powershell.Runtime.Extensions; /// <summary>VM restore information for the Google Cloud VM</summary> public partial class GoogleCloudVMInfo : Commvault.Powershell.Models.IGoogleCloudVMInfo, Commvault.Powershell.Models.IGoogleCloudVMInfoInternal { /// <summary>Internal Acessors for ServiceAccount</summary> Commvault.Powershell.Models.IServiceAccount Commvault.Powershell.Models.IGoogleCloudVMInfoInternal.ServiceAccount { get => (this._serviceAccount = this._serviceAccount ?? new Commvault.Powershell.Models.ServiceAccount()); set { {_serviceAccount = value;} } } /// <summary>Backing field for <see cref="CreatePublicIP" /> property.</summary> private bool? _createPublicIP; /// <summary>Flag to create external IP after restore. Defaults to false.</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public bool? CreatePublicIP { get => this._createPublicIP; set => this._createPublicIP = value; } /// <summary>Backing field for <see cref="CustomMetadata" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> _customMetadata; /// <summary>GCP custom metadata key-value pairs</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> CustomMetadata { get => this._customMetadata; set => this._customMetadata = value; } /// <summary>Backing field for <see cref="EncryptionKey" /> property.</summary> private string _encryptionKey; /// <summary>Customer Managed Encryption Key</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string EncryptionKey { get => this._encryptionKey; set => this._encryptionKey = value; } /// <summary>Backing field for <see cref="InstanceId" /> property.</summary> private string _instanceId; /// <summary> /// Instance ID of the google cloud virtual machine to be restored. Ex: 123456789123456789. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string InstanceId { get => this._instanceId; set => this._instanceId = value; } /// <summary>Backing field for <see cref="KeyProtectionLevel" /> property.</summary> private string _keyProtectionLevel; /// <summary>Protection level of encryption key</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string KeyProtectionLevel { get => this._keyProtectionLevel; set => this._keyProtectionLevel = value; } /// <summary>Backing field for <see cref="MachineType" /> property.</summary> private string _machineType; /// <summary> /// GCP Machine Family. Ex: c2d-highmem-8. Defaults to --Auto Select--. For Reference: cloud.google.com/compute/docs/machine-resource /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string MachineType { get => this._machineType; set => this._machineType = value; } /// <summary>Backing field for <see cref="Name" /> property.</summary> private string _name; /// <summary> /// The new name of the instance after restore. Defaults to source name after restore. /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Name { get => this._name; set => this._name = value; } /// <summary>Backing field for <see cref="NetworkInterfaces" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.IGoogleCloudNetworkInterfaceInfo> _networkInterfaces; /// <summary>Google Cloud VM network interfaces list</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.IGoogleCloudNetworkInterfaceInfo> NetworkInterfaces { get => this._networkInterfaces; set => this._networkInterfaces = value; } /// <summary>Backing field for <see cref="NodeAffinities" /> property.</summary> private System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> _nodeAffinities; /// <summary> /// Node affinity for the virtual machine to provision virtual machine as sole tenanat VM. Defaults to no node affinity. Format: /// '[{name: compute.googleapis.com/node-group-name, value: {Node Group Name} }, {name: compute.googleapis.com/node-name, /// value: {Node Name} }]' /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> NodeAffinities { get => this._nodeAffinities; set => this._nodeAffinities = value; } /// <summary>Backing field for <see cref="ProjectId" /> property.</summary> private string _projectId; /// <summary>GCP Project ID</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string ProjectId { get => this._projectId; set => this._projectId = value; } /// <summary>Backing field for <see cref="Region" /> property.</summary> private string _region; /// <summary> /// GCP Region. Ex: asia-east1. Defaults to source instance region after restore. For reference: cloud.google.com/compute/docs/regions-zones#available /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Region { get => this._region; set => this._region = value; } /// <summary>Backing field for <see cref="ServiceAccount" /> property.</summary> private Commvault.Powershell.Models.IServiceAccount _serviceAccount; /// <summary>Google cloud service account details</summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] internal Commvault.Powershell.Models.IServiceAccount ServiceAccount { get => (this._serviceAccount = this._serviceAccount ?? new Commvault.Powershell.Models.ServiceAccount()); set => this._serviceAccount = value; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ServiceAccountEmail { get => ((Commvault.Powershell.Models.IServiceAccountInternal)ServiceAccount).Email; set => ((Commvault.Powershell.Models.IServiceAccountInternal)ServiceAccount).Email = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ServiceAccountId { get => ((Commvault.Powershell.Models.IServiceAccountInternal)ServiceAccount).Id; set => ((Commvault.Powershell.Models.IServiceAccountInternal)ServiceAccount).Id = value ?? null; } [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Inlined)] public string ServiceAccountName { get => ((Commvault.Powershell.Models.IServiceAccountInternal)ServiceAccount).Name; set => ((Commvault.Powershell.Models.IServiceAccountInternal)ServiceAccount).Name = value ?? null; } /// <summary>Backing field for <see cref="Zone" /> property.</summary> private string _zone; /// <summary> /// GCP zones. Ex: asia-east1-a. Defaults to source instance zone after restore. For reference: cloud.google.com/compute/docs/regions-zones#available /// </summary> [Commvault.Powershell.Origin(Commvault.Powershell.PropertyOrigin.Owned)] public string Zone { get => this._zone; set => this._zone = value; } /// <summary>Creates an new <see cref="GoogleCloudVMInfo" /> instance.</summary> public GoogleCloudVMInfo() { } } /// VM restore information for the Google Cloud VM public partial interface IGoogleCloudVMInfo : Commvault.Powershell.Runtime.IJsonSerializable { /// <summary>Flag to create external IP after restore. Defaults to false.</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Flag to create external IP after restore. Defaults to false.", SerializedName = @"createPublicIP", PossibleTypes = new [] { typeof(bool) })] bool? CreatePublicIP { get; set; } /// <summary>GCP custom metadata key-value pairs</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"GCP custom metadata key-value pairs", SerializedName = @"customMetadata", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.INameValue) })] System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> CustomMetadata { get; set; } /// <summary>Customer Managed Encryption Key</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Customer Managed Encryption Key", SerializedName = @"encryptionKey", PossibleTypes = new [] { typeof(string) })] string EncryptionKey { get; set; } /// <summary> /// Instance ID of the google cloud virtual machine to be restored. Ex: 123456789123456789. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Instance ID of the google cloud virtual machine to be restored. Ex: 123456789123456789.", SerializedName = @"instanceId", PossibleTypes = new [] { typeof(string) })] string InstanceId { get; set; } /// <summary>Protection level of encryption key</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Protection level of encryption key", SerializedName = @"keyProtectionLevel", PossibleTypes = new [] { typeof(string) })] string KeyProtectionLevel { get; set; } /// <summary> /// GCP Machine Family. Ex: c2d-highmem-8. Defaults to --Auto Select--. For Reference: cloud.google.com/compute/docs/machine-resource /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"GCP Machine Family. Ex: c2d-highmem-8. Defaults to --Auto Select--. For Reference: cloud.google.com/compute/docs/machine-resource", SerializedName = @"machineType", PossibleTypes = new [] { typeof(string) })] string MachineType { get; set; } /// <summary> /// The new name of the instance after restore. Defaults to source name after restore. /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"The new name of the instance after restore. Defaults to source name after restore.", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string Name { get; set; } /// <summary>Google Cloud VM network interfaces list</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Google Cloud VM network interfaces list", SerializedName = @"networkInterfaces", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.IGoogleCloudNetworkInterfaceInfo) })] System.Collections.Generic.List<Commvault.Powershell.Models.IGoogleCloudNetworkInterfaceInfo> NetworkInterfaces { get; set; } /// <summary> /// Node affinity for the virtual machine to provision virtual machine as sole tenanat VM. Defaults to no node affinity. Format: /// '[{name: compute.googleapis.com/node-group-name, value: {Node Group Name} }, {name: compute.googleapis.com/node-name, /// value: {Node Name} }]' /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"Node affinity for the virtual machine to provision virtual machine as sole tenanat VM. Defaults to no node affinity. Format: '[{name: compute.googleapis.com/node-group-name, value: {Node Group Name} }, {name: compute.googleapis.com/node-name, value: {Node Name} }]'", SerializedName = @"nodeAffinities", PossibleTypes = new [] { typeof(Commvault.Powershell.Models.INameValue) })] System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> NodeAffinities { get; set; } /// <summary>GCP Project ID</summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"GCP Project ID", SerializedName = @"projectId", PossibleTypes = new [] { typeof(string) })] string ProjectId { get; set; } /// <summary> /// GCP Region. Ex: asia-east1. Defaults to source instance region after restore. For reference: cloud.google.com/compute/docs/regions-zones#available /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"GCP Region. Ex: asia-east1. Defaults to source instance region after restore. For reference: cloud.google.com/compute/docs/regions-zones#available", SerializedName = @"region", PossibleTypes = new [] { typeof(string) })] string Region { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"email", PossibleTypes = new [] { typeof(string) })] string ServiceAccountEmail { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"id", PossibleTypes = new [] { typeof(string) })] string ServiceAccountId { get; set; } [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"", SerializedName = @"name", PossibleTypes = new [] { typeof(string) })] string ServiceAccountName { get; set; } /// <summary> /// GCP zones. Ex: asia-east1-a. Defaults to source instance zone after restore. For reference: cloud.google.com/compute/docs/regions-zones#available /// </summary> [Commvault.Powershell.Runtime.Info( Required = false, ReadOnly = false, Read = true, Create = true, Update = true, Description = @"GCP zones. Ex: asia-east1-a. Defaults to source instance zone after restore. For reference: cloud.google.com/compute/docs/regions-zones#available", SerializedName = @"zone", PossibleTypes = new [] { typeof(string) })] string Zone { get; set; } } /// VM restore information for the Google Cloud VM internal partial interface IGoogleCloudVMInfoInternal { /// <summary>Flag to create external IP after restore. Defaults to false.</summary> bool? CreatePublicIP { get; set; } /// <summary>GCP custom metadata key-value pairs</summary> System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> CustomMetadata { get; set; } /// <summary>Customer Managed Encryption Key</summary> string EncryptionKey { get; set; } /// <summary> /// Instance ID of the google cloud virtual machine to be restored. Ex: 123456789123456789. /// </summary> string InstanceId { get; set; } /// <summary>Protection level of encryption key</summary> string KeyProtectionLevel { get; set; } /// <summary> /// GCP Machine Family. Ex: c2d-highmem-8. Defaults to --Auto Select--. For Reference: cloud.google.com/compute/docs/machine-resource /// </summary> string MachineType { get; set; } /// <summary> /// The new name of the instance after restore. Defaults to source name after restore. /// </summary> string Name { get; set; } /// <summary>Google Cloud VM network interfaces list</summary> System.Collections.Generic.List<Commvault.Powershell.Models.IGoogleCloudNetworkInterfaceInfo> NetworkInterfaces { get; set; } /// <summary> /// Node affinity for the virtual machine to provision virtual machine as sole tenanat VM. Defaults to no node affinity. Format: /// '[{name: compute.googleapis.com/node-group-name, value: {Node Group Name} }, {name: compute.googleapis.com/node-name, /// value: {Node Name} }]' /// </summary> System.Collections.Generic.List<Commvault.Powershell.Models.INameValue> NodeAffinities { get; set; } /// <summary>GCP Project ID</summary> string ProjectId { get; set; } /// <summary> /// GCP Region. Ex: asia-east1. Defaults to source instance region after restore. For reference: cloud.google.com/compute/docs/regions-zones#available /// </summary> string Region { get; set; } /// <summary>Google cloud service account details</summary> Commvault.Powershell.Models.IServiceAccount ServiceAccount { get; set; } string ServiceAccountEmail { get; set; } string ServiceAccountId { get; set; } string ServiceAccountName { get; set; } /// <summary> /// GCP zones. Ex: asia-east1-a. Defaults to source instance zone after restore. For reference: cloud.google.com/compute/docs/regions-zones#available /// </summary> string Zone { get; set; } } } |