Ejemplo n.º 1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="InlineResponse20010" /> class.
        /// </summary>
        /// <param name="links">links (required).</param>
        /// <param name="page">page (required).</param>
        public InlineResponse20010(InlineResponse2002EmbeddedLinks links = default(InlineResponse2002EmbeddedLinks), InlineResponse2001Page page = default(InlineResponse2001Page))
        {
            // to ensure "links" is required (not null)
            if (links == null)
            {
                throw new InvalidDataException("links is a required property for InlineResponse20010 and cannot be null");
            }
            else
            {
                this.Links = links;
            }

            // to ensure "page" is required (not null)
            if (page == null)
            {
                throw new InvalidDataException("page is a required property for InlineResponse20010 and cannot be null");
            }
            else
            {
                this.Page = page;
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="InlineResponse2002EmbeddedDataCenters" /> class.
        /// </summary>
        /// <param name="city">city (required).</param>
        /// <param name="continentCode">continentCode (required).</param>
        /// <param name="stateCode">stateCode (required).</param>
        /// <param name="lng">lng (required).</param>
        /// <param name="provider">provider (required).</param>
        /// <param name="stateName">stateName (required).</param>
        /// <param name="continentName">continentName (required).</param>
        /// <param name="isp">isp (required).</param>
        /// <param name="locationCode">locationCode (required).</param>
        /// <param name="countryName">countryName (required).</param>
        /// <param name="id">id (required).</param>
        /// <param name="countryCode">countryCode (required).</param>
        /// <param name="address">address (required).</param>
        /// <param name="locationName">locationName (required).</param>
        /// <param name="lat">lat (required).</param>
        /// <param name="links">links (required).</param>
        public InlineResponse2002EmbeddedDataCenters(AnyType city = default(AnyType), AnyType continentCode = default(AnyType), AnyType stateCode = default(AnyType), decimal lng = default(decimal), string provider = default(string), AnyType stateName = default(AnyType), AnyType continentName = default(AnyType), AnyType isp = default(AnyType), string locationCode = default(string), AnyType countryName = default(AnyType), string id = default(string), AnyType countryCode = default(AnyType), AnyType address = default(AnyType), string locationName = default(string), decimal lat = default(decimal), InlineResponse2002EmbeddedLinks links = default(InlineResponse2002EmbeddedLinks))
        {
            // to ensure "city" is required (not null)
            if (city == null)
            {
                throw new InvalidDataException("city is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.City = city;
            }

            // to ensure "continentCode" is required (not null)
            if (continentCode == null)
            {
                throw new InvalidDataException("continentCode is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.ContinentCode = continentCode;
            }

            // to ensure "stateCode" is required (not null)
            if (stateCode == null)
            {
                throw new InvalidDataException("stateCode is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.StateCode = stateCode;
            }

            // to ensure "lng" is required (not null)
            if (lng == null)
            {
                throw new InvalidDataException("lng is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.Lng = lng;
            }

            // to ensure "provider" is required (not null)
            if (provider == null)
            {
                throw new InvalidDataException("provider is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.Provider = provider;
            }

            // to ensure "stateName" is required (not null)
            if (stateName == null)
            {
                throw new InvalidDataException("stateName is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.StateName = stateName;
            }

            // to ensure "continentName" is required (not null)
            if (continentName == null)
            {
                throw new InvalidDataException("continentName is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.ContinentName = continentName;
            }

            // to ensure "isp" is required (not null)
            if (isp == null)
            {
                throw new InvalidDataException("isp is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.Isp = isp;
            }

            // to ensure "locationCode" is required (not null)
            if (locationCode == null)
            {
                throw new InvalidDataException("locationCode is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.LocationCode = locationCode;
            }

            // to ensure "countryName" is required (not null)
            if (countryName == null)
            {
                throw new InvalidDataException("countryName is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.CountryName = countryName;
            }

            // to ensure "id" is required (not null)
            if (id == null)
            {
                throw new InvalidDataException("id is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.Id = id;
            }

            // to ensure "countryCode" is required (not null)
            if (countryCode == null)
            {
                throw new InvalidDataException("countryCode is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.CountryCode = countryCode;
            }

            // to ensure "address" is required (not null)
            if (address == null)
            {
                throw new InvalidDataException("address is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.Address = address;
            }

            // to ensure "locationName" is required (not null)
            if (locationName == null)
            {
                throw new InvalidDataException("locationName is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.LocationName = locationName;
            }

            // to ensure "lat" is required (not null)
            if (lat == null)
            {
                throw new InvalidDataException("lat is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.Lat = lat;
            }

            // to ensure "links" is required (not null)
            if (links == null)
            {
                throw new InvalidDataException("links is a required property for InlineResponse2002EmbeddedDataCenters and cannot be null");
            }
            else
            {
                this.Links = links;
            }
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="InlineResponse20015EmbeddedNetworkConfigMetadataList" /> class.
        /// </summary>
        /// <param name="networkControllerVolumeSize">networkControllerVolumeSize (required).</param>
        /// <param name="gatewayVolumeSize">gatewayVolumeSize (required).</param>
        /// <param name="name">name (required).</param>
        /// <param name="gcpTransferNodeSize">gcpTransferNodeSize (required).</param>
        /// <param name="awsNetworkControllerSize">awsNetworkControllerSize (required).</param>
        /// <param name="transferNodeVolumeSize">transferNodeVolumeSize (required).</param>
        /// <param name="awsGatewaySize">awsGatewaySize (required).</param>
        /// <param name="ocpTransferNodeSize">ocpTransferNodeSize (required).</param>
        /// <param name="awsTransferNodeSize">awsTransferNodeSize (required).</param>
        /// <param name="id">id (required).</param>
        /// <param name="azureTransferNodeSize">azureTransferNodeSize (required).</param>
        /// <param name="alicloudTransferNodeSize">alicloudTransferNodeSize (required).</param>
        /// <param name="links">links (required).</param>
        public InlineResponse20015EmbeddedNetworkConfigMetadataList(decimal networkControllerVolumeSize = default(decimal), decimal gatewayVolumeSize = default(decimal), string name = default(string), string gcpTransferNodeSize = default(string), string awsNetworkControllerSize = default(string), decimal transferNodeVolumeSize = default(decimal), string awsGatewaySize = default(string), string ocpTransferNodeSize = default(string), string awsTransferNodeSize = default(string), string id = default(string), string azureTransferNodeSize = default(string), string alicloudTransferNodeSize = default(string), InlineResponse2002EmbeddedLinks links = default(InlineResponse2002EmbeddedLinks))
        {
            // to ensure "networkControllerVolumeSize" is required (not null)
            if (networkControllerVolumeSize == null)
            {
                throw new InvalidDataException("networkControllerVolumeSize is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.NetworkControllerVolumeSize = networkControllerVolumeSize;
            }

            // to ensure "gatewayVolumeSize" is required (not null)
            if (gatewayVolumeSize == null)
            {
                throw new InvalidDataException("gatewayVolumeSize is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.GatewayVolumeSize = gatewayVolumeSize;
            }

            // to ensure "name" is required (not null)
            if (name == null)
            {
                throw new InvalidDataException("name is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.Name = name;
            }

            // to ensure "gcpTransferNodeSize" is required (not null)
            if (gcpTransferNodeSize == null)
            {
                throw new InvalidDataException("gcpTransferNodeSize is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.GcpTransferNodeSize = gcpTransferNodeSize;
            }

            // to ensure "awsNetworkControllerSize" is required (not null)
            if (awsNetworkControllerSize == null)
            {
                throw new InvalidDataException("awsNetworkControllerSize is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.AwsNetworkControllerSize = awsNetworkControllerSize;
            }

            // to ensure "transferNodeVolumeSize" is required (not null)
            if (transferNodeVolumeSize == null)
            {
                throw new InvalidDataException("transferNodeVolumeSize is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.TransferNodeVolumeSize = transferNodeVolumeSize;
            }

            // to ensure "awsGatewaySize" is required (not null)
            if (awsGatewaySize == null)
            {
                throw new InvalidDataException("awsGatewaySize is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.AwsGatewaySize = awsGatewaySize;
            }

            // to ensure "ocpTransferNodeSize" is required (not null)
            if (ocpTransferNodeSize == null)
            {
                throw new InvalidDataException("ocpTransferNodeSize is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.OcpTransferNodeSize = ocpTransferNodeSize;
            }

            // to ensure "awsTransferNodeSize" is required (not null)
            if (awsTransferNodeSize == null)
            {
                throw new InvalidDataException("awsTransferNodeSize is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.AwsTransferNodeSize = awsTransferNodeSize;
            }

            // to ensure "id" is required (not null)
            if (id == null)
            {
                throw new InvalidDataException("id is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.Id = id;
            }

            // to ensure "azureTransferNodeSize" is required (not null)
            if (azureTransferNodeSize == null)
            {
                throw new InvalidDataException("azureTransferNodeSize is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.AzureTransferNodeSize = azureTransferNodeSize;
            }

            // to ensure "alicloudTransferNodeSize" is required (not null)
            if (alicloudTransferNodeSize == null)
            {
                throw new InvalidDataException("alicloudTransferNodeSize is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.AlicloudTransferNodeSize = alicloudTransferNodeSize;
            }

            // to ensure "links" is required (not null)
            if (links == null)
            {
                throw new InvalidDataException("links is a required property for InlineResponse20015EmbeddedNetworkConfigMetadataList and cannot be null");
            }
            else
            {
                this.Links = links;
            }
        }