Beispiel #1
0
        public SqlStoredProcedureCreateUpdateParameters(SqlStoredProcedureResource resource, CreateUpdateOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            Resource = resource;
            Options  = options;
        }
Beispiel #2
0
        public GremlinDatabaseCreateUpdateParameters(GremlinDatabaseResource resource, CreateUpdateOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            Resource = resource;
            Options  = options;
        }
        public CassandraTableCreateUpdateParameters(CassandraTableResource resource, CreateUpdateOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            Resource = resource;
            Options  = options;
        }
Beispiel #4
0
        public MongoDBCollectionCreateUpdateParameters(MongoDBCollectionResource resource, CreateUpdateOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            Resource = resource;
            Options  = options;
        }
        public SqlContainerCreateUpdateParameters(SqlContainerResource resource, CreateUpdateOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            Resource = resource;
            Options  = options;
        }
        public SqlUserDefinedFunctionCreateUpdateParameters(SqlUserDefinedFunctionResource resource, CreateUpdateOptions options)
        {
            if (resource == null)
            {
                throw new ArgumentNullException(nameof(resource));
            }
            if (options == null)
            {
                throw new ArgumentNullException(nameof(options));
            }

            Resource = resource;
            Options  = options;
        }
 internal GremlinGraphCreateUpdateData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary <string, string> tags, AzureLocation location, GremlinGraphResource resource, CreateUpdateOptions options) : base(id, name, resourceType, systemData, tags, location)
 {
     Resource = resource;
     Options  = options;
 }
        internal static SqlTriggerCreateUpdateParameters DeserializeSqlTriggerCreateUpdateParameters(JsonElement element)
        {
            Optional <string> id       = default;
            Optional <string> name     = default;
            Optional <string> type     = default;
            Optional <string> location = default;
            Optional <IDictionary <string, string> > tags = default;
            SqlTriggerResource  resource = default;
            CreateUpdateOptions options  = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("id"))
                {
                    id = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("type"))
                {
                    type = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("location"))
                {
                    location = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("tags"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    Dictionary <string, string> dictionary = new Dictionary <string, string>();
                    foreach (var property0 in property.Value.EnumerateObject())
                    {
                        dictionary.Add(property0.Name, property0.Value.GetString());
                    }
                    tags = dictionary;
                    continue;
                }
                if (property.NameEquals("properties"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    foreach (var property0 in property.Value.EnumerateObject())
                    {
                        if (property0.NameEquals("resource"))
                        {
                            resource = SqlTriggerResource.DeserializeSqlTriggerResource(property0.Value);
                            continue;
                        }
                        if (property0.NameEquals("options"))
                        {
                            options = CreateUpdateOptions.DeserializeCreateUpdateOptions(property0.Value);
                            continue;
                        }
                    }
                    continue;
                }
            }
            return(new SqlTriggerCreateUpdateParameters(id.Value, name.Value, type.Value, location.Value, Optional.ToDictionary(tags), resource, options));
        }
 internal CassandraKeyspaceCreateUpdateData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary <string, string> tags, AzureLocation location, CassandraKeyspaceResource resource, CreateUpdateOptions options) : base(id, name, resourceType, systemData, tags, location)
 {
     Resource = resource;
     Options  = options;
 }
 internal SqlStoredProcedureCreateUpdateOptions(ResourceIdentifier id, string name, ResourceType type, IDictionary <string, string> tags, Location location, SqlStoredProcedureResource resource, CreateUpdateOptions options) : base(id, name, type, tags, location)
 {
     Resource = resource;
     Options  = options;
 }
Beispiel #11
0
 internal SqlTriggerCreateOrUpdateContent(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary <string, string> tags, AzureLocation location, SqlTriggerResource resource, CreateUpdateOptions options) : base(id, name, resourceType, systemData, tags, location)
 {
     Resource = resource;
     Options  = options;
 }
Beispiel #12
0
 internal MongoDBDatabaseCreateUpdateOptions(ResourceIdentifier id, string name, ResourceType type, SystemData systemData, IDictionary <string, string> tags, AzureLocation location, MongoDBDatabaseResource resource, CreateUpdateOptions options) : base(id, name, type, systemData, tags, location)
 {
     Resource = resource;
     Options  = options;
 }
Beispiel #13
0
 internal SqlUserDefinedFunctionCreateUpdateOptions(ResourceIdentifier id, string name, ResourceType type, IDictionary <string, string> tags, Location location, SqlUserDefinedFunctionResource resource, CreateUpdateOptions options) : base(id, name, type, tags, location)
 {
     Resource = resource;
     Options  = options;
 }
 internal CassandraTableCreateUpdateParameters(string id, string name, string type, string location, IDictionary <string, string> tags, CassandraTableResource resource, CreateUpdateOptions options) : base(id, name, type, location, tags)
 {
     Resource = resource;
     Options  = options;
 }
Beispiel #15
0
        internal static CassandraKeyspaceCreateUpdateParameters DeserializeCassandraKeyspaceCreateUpdateParameters(JsonElement element)
        {
            Optional <string> id       = default;
            Optional <string> name     = default;
            Optional <string> type     = default;
            Optional <string> location = default;
            Optional <IDictionary <string, string> > tags = default;
            CassandraKeyspaceResource resource            = default;
            CreateUpdateOptions       options             = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("id"))
                {
                    id = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("type"))
                {
                    type = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("location"))
                {
                    location = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("tags"))
                {
                    Dictionary <string, string> dictionary = new Dictionary <string, string>();
                    foreach (var property0 in property.Value.EnumerateObject())
                    {
                        dictionary.Add(property0.Name, property0.Value.GetString());
                    }
                    tags = dictionary;
                    continue;
                }
                if (property.NameEquals("properties"))
                {
                    foreach (var property0 in property.Value.EnumerateObject())
                    {
                        if (property0.NameEquals("resource"))
                        {
                            resource = CassandraKeyspaceResource.DeserializeCassandraKeyspaceResource(property0.Value);
                            continue;
                        }
                        if (property0.NameEquals("options"))
                        {
                            options = CreateUpdateOptions.DeserializeCreateUpdateOptions(property0.Value);
                            continue;
                        }
                    }
                    continue;
                }
            }
            return(new CassandraKeyspaceCreateUpdateParameters(id.Value, name.Value, type.Value, location.Value, Optional.ToDictionary(tags), resource, options));
        }
Beispiel #16
0
 internal MongoDBCollectionCreateUpdateParameters(string id, string name, string type, string location, IDictionary <string, string> tags, MongoDBCollectionResource resource, CreateUpdateOptions options) : base(id, name, type, location, tags)
 {
     Resource = resource;
     Options  = options;
 }
 internal SqlStoredProcedureCreateUpdateData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary <string, string> tags, AzureLocation location, SqlStoredProcedureResource resource, CreateUpdateOptions options) : base(id, name, resourceType, systemData, tags, location)
 {
     Resource = resource;
     Options  = options;
 }
Beispiel #18
0
        internal static GremlinGraphCreateUpdateOptions DeserializeGremlinGraphCreateUpdateOptions(JsonElement element)
        {
            IDictionary <string, string> tags       = default;
            Location                       location = default;
            ResourceIdentifier             id       = default;
            string                         name     = default;
            ResourceType                   type     = default;
            GremlinGraphResource           resource = default;
            Optional <CreateUpdateOptions> options  = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("tags"))
                {
                    Dictionary <string, string> dictionary = new Dictionary <string, string>();
                    foreach (var property0 in property.Value.EnumerateObject())
                    {
                        dictionary.Add(property0.Name, property0.Value.GetString());
                    }
                    tags = dictionary;
                    continue;
                }
                if (property.NameEquals("location"))
                {
                    location = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("id"))
                {
                    id = new ResourceIdentifier(property.Value.GetString());
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("type"))
                {
                    type = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("properties"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    foreach (var property0 in property.Value.EnumerateObject())
                    {
                        if (property0.NameEquals("resource"))
                        {
                            resource = GremlinGraphResource.DeserializeGremlinGraphResource(property0.Value);
                            continue;
                        }
                        if (property0.NameEquals("options"))
                        {
                            if (property0.Value.ValueKind == JsonValueKind.Null)
                            {
                                property0.ThrowNonNullablePropertyIsNull();
                                continue;
                            }
                            options = CreateUpdateOptions.DeserializeCreateUpdateOptions(property0.Value);
                            continue;
                        }
                    }
                    continue;
                }
            }
            return(new GremlinGraphCreateUpdateOptions(id, name, type, tags, location, resource, options.Value));
        }
Beispiel #19
0
 internal CassandraKeyspaceCreateUpdateOptions(ResourceIdentifier id, string name, ResourceType type, IDictionary <string, string> tags, Location location, CassandraKeyspaceResource resource, CreateUpdateOptions options) : base(id, name, type, tags, location)
 {
     Resource = resource;
     Options  = options;
 }
Beispiel #20
0
 internal GremlinGraphCreateUpdateOptions(ResourceIdentifier id, string name, ResourceType type, IDictionary <string, string> tags, Location location, GremlinGraphResource resource, CreateUpdateOptions options) : base(id, name, type, tags, location)
 {
     Resource = resource;
     Options  = options;
 }
Beispiel #21
0
 internal GremlinDatabaseCreateUpdateParameters(string id, string name, string type, string location, IDictionary <string, string> tags, GremlinDatabaseResource resource, CreateUpdateOptions options) : base(id, name, type, location, tags)
 {
     Resource = resource;
     Options  = options;
 }
Beispiel #22
0
 internal SqlStoredProcedureCreateUpdateParameters(string id, string name, string type, string location, IDictionary <string, string> tags, SqlStoredProcedureResource resource, CreateUpdateOptions options) : base(id, name, type, location, tags)
 {
     Resource = resource;
     Options  = options;
 }
 internal SqlUserDefinedFunctionCreateUpdateParameters(string id, string name, string type, string location, IDictionary <string, string> tags, SqlUserDefinedFunctionResource resource, CreateUpdateOptions options) : base(id, name, type, location, tags)
 {
     Resource = resource;
     Options  = options;
 }
Beispiel #24
0
        internal static CassandraTableCreateOrUpdateContent DeserializeCassandraTableCreateOrUpdateContent(JsonElement element)
        {
            IDictionary <string, string> tags         = default;
            AzureLocation                  location   = default;
            ResourceIdentifier             id         = default;
            string                         name       = default;
            ResourceType                   type       = default;
            SystemData                     systemData = default;
            CassandraTableResource         resource   = default;
            Optional <CreateUpdateOptions> options    = default;

            foreach (var property in element.EnumerateObject())
            {
                if (property.NameEquals("tags"))
                {
                    Dictionary <string, string> dictionary = new Dictionary <string, string>();
                    foreach (var property0 in property.Value.EnumerateObject())
                    {
                        dictionary.Add(property0.Name, property0.Value.GetString());
                    }
                    tags = dictionary;
                    continue;
                }
                if (property.NameEquals("location"))
                {
                    location = new AzureLocation(property.Value.GetString());
                    continue;
                }
                if (property.NameEquals("id"))
                {
                    id = new ResourceIdentifier(property.Value.GetString());
                    continue;
                }
                if (property.NameEquals("name"))
                {
                    name = property.Value.GetString();
                    continue;
                }
                if (property.NameEquals("type"))
                {
                    type = new ResourceType(property.Value.GetString());
                    continue;
                }
                if (property.NameEquals("systemData"))
                {
                    systemData = JsonSerializer.Deserialize <SystemData>(property.Value.ToString());
                    continue;
                }
                if (property.NameEquals("properties"))
                {
                    if (property.Value.ValueKind == JsonValueKind.Null)
                    {
                        property.ThrowNonNullablePropertyIsNull();
                        continue;
                    }
                    foreach (var property0 in property.Value.EnumerateObject())
                    {
                        if (property0.NameEquals("resource"))
                        {
                            resource = CassandraTableResource.DeserializeCassandraTableResource(property0.Value);
                            continue;
                        }
                        if (property0.NameEquals("options"))
                        {
                            if (property0.Value.ValueKind == JsonValueKind.Null)
                            {
                                property0.ThrowNonNullablePropertyIsNull();
                                continue;
                            }
                            options = CreateUpdateOptions.DeserializeCreateUpdateOptions(property0.Value);
                            continue;
                        }
                    }
                    continue;
                }
            }
            return(new CassandraTableCreateOrUpdateContent(id, name, type, systemData, tags, location, resource, options.Value));
        }
Beispiel #25
0
 internal MongoDBCollectionCreateUpdateOptions(ResourceIdentifier id, string name, ResourceType type, IDictionary <string, string> tags, Location location, MongoDBCollectionResource resource, CreateUpdateOptions options) : base(id, name, type, tags, location)
 {
     Resource = resource;
     Options  = options;
 }