|
| 1 | +#![doc = "generated by AutoRust 0.1.0"] |
| 2 | +#![allow(non_camel_case_types)] |
| 3 | +#![allow(unused_imports)] |
| 4 | +use serde::{Deserialize, Serialize}; |
| 5 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 6 | +pub struct ConfigurationStoreListResult { |
| 7 | + #[serde(skip_serializing_if = "Vec::is_empty")] |
| 8 | + pub value: Vec<ConfigurationStore>, |
| 9 | + #[serde(rename = "nextLink", skip_serializing_if = "Option::is_none")] |
| 10 | + pub next_link: Option<String>, |
| 11 | +} |
| 12 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 13 | +pub struct ConfigurationStore { |
| 14 | + #[serde(flatten)] |
| 15 | + pub resource: Resource, |
| 16 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 17 | + pub properties: Option<ConfigurationStoreProperties>, |
| 18 | +} |
| 19 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 20 | +pub struct ConfigurationStoreProperties { |
| 21 | + #[serde(rename = "provisioningState", skip_serializing)] |
| 22 | + pub provisioning_state: Option<configuration_store_properties::ProvisioningState>, |
| 23 | + #[serde(rename = "creationDate", skip_serializing)] |
| 24 | + pub creation_date: Option<String>, |
| 25 | + #[serde(skip_serializing)] |
| 26 | + pub endpoint: Option<String>, |
| 27 | +} |
| 28 | +mod configuration_store_properties { |
| 29 | + use super::*; |
| 30 | + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 31 | + pub enum ProvisioningState { |
| 32 | + Creating, |
| 33 | + Updating, |
| 34 | + Deleting, |
| 35 | + Succeeded, |
| 36 | + Failed, |
| 37 | + Canceled, |
| 38 | + } |
| 39 | +} |
| 40 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 41 | +pub struct ConfigurationStoreUpdateParameters { |
| 42 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 43 | + pub properties: Option<ConfigurationStorePropertiesUpdateParameters>, |
| 44 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 45 | + pub tags: Option<serde_json::Value>, |
| 46 | +} |
| 47 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 48 | +pub struct ConfigurationStorePropertiesUpdateParameters {} |
| 49 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 50 | +pub struct CheckNameAvailabilityParameters { |
| 51 | + pub name: String, |
| 52 | + #[serde(rename = "type")] |
| 53 | + pub type_: check_name_availability_parameters::Type, |
| 54 | +} |
| 55 | +mod check_name_availability_parameters { |
| 56 | + use super::*; |
| 57 | + #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 58 | + pub enum Type { |
| 59 | + #[serde(rename = "Microsoft.AppConfiguration/configurationStores")] |
| 60 | + Microsoft_AppConfigurationConfigurationStores, |
| 61 | + } |
| 62 | +} |
| 63 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 64 | +pub struct NameAvailabilityStatus { |
| 65 | + #[serde(rename = "nameAvailable", skip_serializing)] |
| 66 | + pub name_available: Option<bool>, |
| 67 | + #[serde(skip_serializing)] |
| 68 | + pub message: Option<String>, |
| 69 | + #[serde(skip_serializing)] |
| 70 | + pub reason: Option<String>, |
| 71 | +} |
| 72 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 73 | +pub struct ApiKeyListResult { |
| 74 | + #[serde(skip_serializing_if = "Vec::is_empty")] |
| 75 | + pub value: Vec<ApiKey>, |
| 76 | + #[serde(rename = "nextLink", skip_serializing_if = "Option::is_none")] |
| 77 | + pub next_link: Option<String>, |
| 78 | +} |
| 79 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 80 | +pub struct ApiKey { |
| 81 | + #[serde(skip_serializing)] |
| 82 | + pub id: Option<String>, |
| 83 | + #[serde(skip_serializing)] |
| 84 | + pub name: Option<String>, |
| 85 | + #[serde(skip_serializing)] |
| 86 | + pub value: Option<String>, |
| 87 | + #[serde(rename = "connectionString", skip_serializing)] |
| 88 | + pub connection_string: Option<String>, |
| 89 | + #[serde(rename = "lastModified", skip_serializing)] |
| 90 | + pub last_modified: Option<String>, |
| 91 | + #[serde(rename = "readOnly", skip_serializing)] |
| 92 | + pub read_only: Option<bool>, |
| 93 | +} |
| 94 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 95 | +pub struct RegenerateKeyParameters { |
| 96 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 97 | + pub id: Option<String>, |
| 98 | +} |
| 99 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 100 | +pub struct ListKeyValueParameters { |
| 101 | + pub key: String, |
| 102 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 103 | + pub label: Option<String>, |
| 104 | +} |
| 105 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 106 | +pub struct KeyValue { |
| 107 | + #[serde(skip_serializing)] |
| 108 | + pub key: Option<String>, |
| 109 | + #[serde(skip_serializing)] |
| 110 | + pub label: Option<String>, |
| 111 | + #[serde(skip_serializing)] |
| 112 | + pub value: Option<String>, |
| 113 | + #[serde(rename = "contentType", skip_serializing)] |
| 114 | + pub content_type: Option<String>, |
| 115 | + #[serde(rename = "eTag", skip_serializing)] |
| 116 | + pub e_tag: Option<String>, |
| 117 | + #[serde(rename = "lastModified", skip_serializing)] |
| 118 | + pub last_modified: Option<String>, |
| 119 | + #[serde(skip_serializing)] |
| 120 | + pub locked: Option<bool>, |
| 121 | + #[serde(skip_serializing)] |
| 122 | + pub tags: Option<serde_json::Value>, |
| 123 | +} |
| 124 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 125 | +pub struct OperationDefinitionListResult { |
| 126 | + #[serde(skip_serializing_if = "Vec::is_empty")] |
| 127 | + pub value: Vec<OperationDefinition>, |
| 128 | + #[serde(rename = "nextLink", skip_serializing_if = "Option::is_none")] |
| 129 | + pub next_link: Option<String>, |
| 130 | +} |
| 131 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 132 | +pub struct OperationDefinition { |
| 133 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 134 | + pub name: Option<String>, |
| 135 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 136 | + pub display: Option<OperationDefinitionDisplay>, |
| 137 | +} |
| 138 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 139 | +pub struct OperationDefinitionDisplay { |
| 140 | + #[serde(skip_serializing)] |
| 141 | + pub provider: Option<String>, |
| 142 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 143 | + pub resource: Option<String>, |
| 144 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 145 | + pub operation: Option<String>, |
| 146 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 147 | + pub description: Option<String>, |
| 148 | +} |
| 149 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 150 | +pub struct Error { |
| 151 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 152 | + pub code: Option<String>, |
| 153 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 154 | + pub message: Option<String>, |
| 155 | +} |
| 156 | +#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] |
| 157 | +pub struct Resource { |
| 158 | + #[serde(skip_serializing)] |
| 159 | + pub id: Option<String>, |
| 160 | + #[serde(skip_serializing)] |
| 161 | + pub name: Option<String>, |
| 162 | + #[serde(rename = "type", skip_serializing)] |
| 163 | + pub type_: Option<String>, |
| 164 | + pub location: String, |
| 165 | + #[serde(skip_serializing_if = "Option::is_none")] |
| 166 | + pub tags: Option<serde_json::Value>, |
| 167 | +} |
0 commit comments