diff --git a/services/mgmt/activedirectory/src/package_2020_03/models.rs b/services/mgmt/activedirectory/src/package_2020_03/models.rs index a3cfaea30f..92e67ea7db 100644 --- a/services/mgmt/activedirectory/src/package_2020_03/models.rs +++ b/services/mgmt/activedirectory/src/package_2020_03/models.rs @@ -94,8 +94,6 @@ impl PrivateEndpoint { #[doc = "Private endpoint connection resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the private endpoint connection resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/advisor/src/package_2022_10/models.rs b/services/mgmt/advisor/src/package_2022_10/models.rs index 94265a241b..f1a3a6fee8 100644 --- a/services/mgmt/advisor/src/package_2022_10/models.rs +++ b/services/mgmt/advisor/src/package_2022_10/models.rs @@ -1038,8 +1038,6 @@ impl SuppressionProperties { #[doc = "The details of Advisor score for a single category."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AdvisorScoreEntity { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Advisor score data."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/advisor/src/package_2023_01/models.rs b/services/mgmt/advisor/src/package_2023_01/models.rs index 94265a241b..f1a3a6fee8 100644 --- a/services/mgmt/advisor/src/package_2023_01/models.rs +++ b/services/mgmt/advisor/src/package_2023_01/models.rs @@ -1038,8 +1038,6 @@ impl SuppressionProperties { #[doc = "The details of Advisor score for a single category."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AdvisorScoreEntity { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Advisor score data."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs b/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs index 6acbb89f74..369b717954 100644 --- a/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs +++ b/services/mgmt/agrifood/src/package_2020_05_12_preview/models.rs @@ -214,8 +214,6 @@ impl ErrorResponse { #[doc = "Extension resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Extension { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -308,8 +306,6 @@ impl FarmBeats { #[doc = "FarmBeats extension resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FarmBeatsExtension { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/agrifood/src/package_preview_2021_09/models.rs b/services/mgmt/agrifood/src/package_preview_2021_09/models.rs index c831c5d378..c295f5211a 100644 --- a/services/mgmt/agrifood/src/package_preview_2021_09/models.rs +++ b/services/mgmt/agrifood/src/package_preview_2021_09/models.rs @@ -226,8 +226,6 @@ impl ErrorResponse { #[doc = "Extension resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Extension { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -334,8 +332,6 @@ impl FarmBeats { #[doc = "FarmBeats extension resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FarmBeatsExtension { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "FarmBeatsExtension properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -512,8 +508,6 @@ pub mod farm_beats_properties { #[doc = "FarmBeats solution resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FarmBeatsSolution { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1317,8 +1311,6 @@ pub mod sensor_integration { #[doc = "Solution resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Solution { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/agrifood/src/package_preview_2023_06/models.rs b/services/mgmt/agrifood/src/package_preview_2023_06/models.rs index e066894e7d..d6eb9dece3 100644 --- a/services/mgmt/agrifood/src/package_preview_2023_06/models.rs +++ b/services/mgmt/agrifood/src/package_preview_2023_06/models.rs @@ -6,15 +6,13 @@ use std::str::FromStr; #[doc = "ApiKeyAuthCredentials class for ApiKey based Auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ApiKeyAuthCredentials { - #[serde(flatten)] - pub auth_credentials: AuthCredentials, #[doc = "Properties of the key vault."] #[serde(rename = "apiKey")] pub api_key: KeyVaultProperties, } impl ApiKeyAuthCredentials { - pub fn new(auth_credentials: AuthCredentials, api_key: KeyVaultProperties) -> Self { - Self { auth_credentials, api_key } + pub fn new(api_key: KeyVaultProperties) -> Self { + Self { api_key } } } #[doc = "Api properties."] @@ -59,14 +57,6 @@ impl ArmAsyncOperationError { Self::default() } } -#[doc = "AuthCredentials abstract base class for Auth Purpose."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AuthCredentials {} -impl AuthCredentials { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum for different types of AuthCredentials supported."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -187,8 +177,6 @@ pub mod check_name_availability_response { #[doc = "DataConnector Model."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataConnector { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -201,7 +189,6 @@ pub struct DataConnector { impl DataConnector { pub fn new(properties: DataConnectorProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, e_tag: None, @@ -263,8 +250,6 @@ impl DataManagerForAgriculture { #[doc = "DataManagerForAgriculture extension resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DataManagerForAgricultureExtension { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -455,8 +440,6 @@ pub mod data_manager_for_agriculture_properties { #[doc = "DataManagerForAgriculture solution resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DataManagerForAgricultureSolution { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -705,8 +688,6 @@ impl ErrorResponse { #[doc = "Extension resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Extension { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -854,8 +835,6 @@ impl MarketplaceOfferDetails { #[doc = "OAuthClientCredentials for clientId clientSecret auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OAuthClientCredentials { - #[serde(flatten)] - pub auth_credentials: AuthCredentials, #[doc = "ClientId associated with the provider."] #[serde(rename = "clientId")] pub client_id: String, @@ -864,12 +843,8 @@ pub struct OAuthClientCredentials { pub client_secret: KeyVaultProperties, } impl OAuthClientCredentials { - pub fn new(auth_credentials: AuthCredentials, client_id: String, client_secret: KeyVaultProperties) -> Self { - Self { - auth_credentials, - client_id, - client_secret, - } + pub fn new(client_id: String, client_secret: KeyVaultProperties) -> Self { + Self { client_id, client_secret } } } #[doc = "Details of a REST API operation, returned from the Resource Provider Operations API"] @@ -1389,8 +1364,6 @@ pub mod sensor_integration { #[doc = "Solution resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Solution { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs b/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs index 0ccee1684c..d4acb478ea 100644 --- a/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs +++ b/services/mgmt/alertsmanagement/src/package_preview_2021_08/models.rs @@ -3,14 +3,6 @@ use serde::de::{value, Deserializer, IntoDeserializer}; use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; -#[doc = "Action to be applied."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Action {} -impl Action { - pub fn new() -> Self { - Self {} - } -} #[doc = "Action that should be applied."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "actionType")] @@ -21,15 +13,13 @@ pub enum ActionUnion { #[doc = "Add action groups to alert processing rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AddActionGroups { - #[serde(flatten)] - pub action: Action, #[doc = "List of action group Ids to add to alert processing rule."] #[serde(rename = "actionGroupIds")] pub action_group_ids: Vec, } impl AddActionGroups { - pub fn new(action: Action, action_group_ids: Vec) -> Self { - Self { action, action_group_ids } + pub fn new(action_group_ids: Vec) -> Self { + Self { action_group_ids } } } #[doc = "Alert processing rule object containing target scopes, conditions and scheduling logic."] @@ -328,17 +318,12 @@ impl MonitorServiceDetails { #[doc = "Monitor service details"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MonitorServiceList { - #[serde(flatten)] - pub alerts_meta_data_properties: AlertsMetaDataProperties, #[doc = "Array of operations"] pub data: Vec, } impl MonitorServiceList { - pub fn new(alerts_meta_data_properties: AlertsMetaDataProperties, data: Vec) -> Self { - Self { - alerts_meta_data_properties, - data, - } + pub fn new(data: Vec) -> Self { + Self { data } } } #[doc = "Monthly recurrence object."] @@ -410,13 +395,10 @@ pub enum RecurrenceUnion { } #[doc = "Indicates if all action groups should be removed."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RemoveAllActionGroups { - #[serde(flatten)] - pub action: Action, -} +pub struct RemoveAllActionGroups {} impl RemoveAllActionGroups { - pub fn new(action: Action) -> Self { - Self { action } + pub fn new() -> Self { + Self {} } } #[doc = "An azure resource object"] @@ -645,14 +627,6 @@ impl AlertsMetaData { Self::default() } } -#[doc = "alert meta data property bag"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AlertsMetaDataProperties {} -impl AlertsMetaDataProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "Identification of the information to be retrieved by API call"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "metadataIdentifier")] diff --git a/services/mgmt/alertsmanagement/src/package_preview_2023_01/models.rs b/services/mgmt/alertsmanagement/src/package_preview_2023_01/models.rs index cb3624236d..122122d305 100644 --- a/services/mgmt/alertsmanagement/src/package_preview_2023_01/models.rs +++ b/services/mgmt/alertsmanagement/src/package_preview_2023_01/models.rs @@ -28,17 +28,12 @@ impl AlertRuleRecommendationProperties { #[doc = "A single alert rule recommendation resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AlertRuleRecommendationResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the format of Alert Rule Recommendations response."] pub properties: AlertRuleRecommendationProperties, } impl AlertRuleRecommendationResource { pub fn new(properties: AlertRuleRecommendationProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "List of alert rule recommendations."] diff --git a/services/mgmt/alertsmanagement/src/package_preview_2023_05/models.rs b/services/mgmt/alertsmanagement/src/package_preview_2023_05/models.rs index 04e998b01b..8c119c43d6 100644 --- a/services/mgmt/alertsmanagement/src/package_preview_2023_05/models.rs +++ b/services/mgmt/alertsmanagement/src/package_preview_2023_05/models.rs @@ -3,14 +3,6 @@ use serde::de::{value, Deserializer, IntoDeserializer}; use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; -#[doc = "Action to be applied."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Action {} -impl Action { - pub fn new() -> Self { - Self {} - } -} #[doc = "Action that should be applied."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "actionType")] @@ -22,15 +14,13 @@ pub enum ActionUnion { #[doc = "Add action groups to alert processing rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AddActionGroups { - #[serde(flatten)] - pub action: Action, #[doc = "List of action group Ids to add to alert processing rule."] #[serde(rename = "actionGroupIds")] pub action_group_ids: Vec, } impl AddActionGroups { - pub fn new(action: Action, action_group_ids: Vec) -> Self { - Self { action, action_group_ids } + pub fn new(action_group_ids: Vec) -> Self { + Self { action_group_ids } } } #[doc = "Alert processing rule object containing target scopes, conditions and scheduling logic."] @@ -236,8 +226,6 @@ pub type Conditions = Vec; #[doc = "Add logic for alerts correlation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CorrelateAlerts { - #[serde(flatten)] - pub action: Action, #[doc = "The list of conditions for the alerts correlations."] #[serde(rename = "correlateBy")] pub correlate_by: Vec, @@ -251,9 +239,8 @@ pub struct CorrelateAlerts { pub notifications_for_correlated_alerts: Option, } impl CorrelateAlerts { - pub fn new(action: Action, correlate_by: Vec, correlation_interval: String, priority: i32) -> Self { + pub fn new(correlate_by: Vec, correlation_interval: String, priority: i32) -> Self { Self { - action, correlate_by, correlation_interval, priority, @@ -465,13 +452,10 @@ pub enum RecurrenceUnion { } #[doc = "Indicates if all action groups should be removed."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RemoveAllActionGroups { - #[serde(flatten)] - pub action: Action, -} +pub struct RemoveAllActionGroups {} impl RemoveAllActionGroups { - pub fn new(action: Action) -> Self { - Self { action } + pub fn new() -> Self { + Self {} } } #[doc = "An azure resource object"] diff --git a/services/mgmt/apimanagement/src/package_preview_2022_04/models.rs b/services/mgmt/apimanagement/src/package_preview_2022_04/models.rs index 84519fa989..8f93f715c7 100644 --- a/services/mgmt/apimanagement/src/package_preview_2022_04/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2022_04/models.rs @@ -34,8 +34,6 @@ impl AccessInformationCollection { #[doc = "Tenant Settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccessInformationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tenant access information contract of the API Management service."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -358,8 +356,6 @@ impl ApiContactInformation { #[doc = "API details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API Entity Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1861,8 +1857,6 @@ impl ApiReleaseCollection { #[doc = "ApiRelease details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiReleaseContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API Release details"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2060,8 +2054,6 @@ impl ApiVersionSetCollection { #[doc = "API Version Set Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiVersionSetContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an API Version Set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2327,8 +2319,6 @@ impl ArmIdWrapper { #[doc = "Association entity details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssociationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Association entity contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2424,8 +2414,6 @@ impl AuthorizationAccessPolicyCollection { #[doc = "Authorization access policy contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationAccessPolicyContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Authorization Access Policy details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2481,8 +2469,6 @@ impl AuthorizationCollection { #[doc = "Authorization contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Authorization details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2661,8 +2647,6 @@ impl AuthorizationProviderCollection { #[doc = "Authorization Provider contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationProviderContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Authorization Provider details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2751,8 +2735,6 @@ impl AuthorizationServerCollection { #[doc = "External OAuth authorization server settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationServerContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "External OAuth authorization server settings Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2893,8 +2875,6 @@ impl AuthorizationServerSecretsContract { #[doc = "External OAuth authorization server settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationServerUpdateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "External OAuth authorization server Update settings contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3018,8 +2998,6 @@ impl BackendCollection { #[doc = "Backend details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BackendContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Parameters supplied to the Create Backend operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3159,8 +3137,6 @@ impl BackendProxyContract { #[doc = "Reconnect request parameters."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BackendReconnectContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties to control reconnect requests."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3396,8 +3372,6 @@ impl CacheCollection { #[doc = "Cache details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CacheContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Cache contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3532,8 +3506,6 @@ pub mod certificate_configuration { #[doc = "Certificate details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CertificateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Certificate contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4233,8 +4205,6 @@ impl ContentItemCollection { #[doc = "Content type contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContentItemContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -4278,8 +4248,6 @@ impl ContentTypeCollection { #[doc = "Content type contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContentTypeContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -4391,8 +4359,6 @@ pub mod data_masking_entity { #[doc = "Deleted API Management Service information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DeletedServiceContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "API Management Service Master Location."] @@ -4503,8 +4469,6 @@ impl DiagnosticCollection { #[doc = "Diagnostic details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DiagnosticContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostic Entity Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4753,8 +4717,6 @@ impl EmailTemplateCollection { #[doc = "Email Template details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EmailTemplateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Email Template Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4979,8 +4941,6 @@ impl GatewayCertificateAuthorityCollection { #[doc = "Gateway certificate authority details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayCertificateAuthorityContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Gateway certificate authority details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5033,8 +4993,6 @@ impl GatewayCollection { #[doc = "Gateway details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Gateway contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5087,8 +5045,6 @@ impl GatewayHostnameConfigurationCollection { #[doc = "Gateway hostname configuration details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayHostnameConfigurationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Gateway hostname configuration details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5249,8 +5205,6 @@ impl GlobalSchemaCollection { #[doc = "Global Schema Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GlobalSchemaContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Schema create or update contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5367,8 +5321,6 @@ impl GroupCollection { #[doc = "Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GroupContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Group contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5830,8 +5782,6 @@ pub mod identity_provider_base_parameters { #[doc = "Identity Provider details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IdentityProviderContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5865,8 +5815,6 @@ impl IdentityProviderContractProperties { #[doc = "Identity Provider details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IdentityProviderCreateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5985,8 +5933,6 @@ impl IssueAttachmentCollection { #[doc = "Issue Attachment Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueAttachmentContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Issue Attachment contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6075,8 +6021,6 @@ impl IssueCommentCollection { #[doc = "Issue Comment Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueCommentContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Issue Comment contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6118,8 +6062,6 @@ impl IssueContext { #[doc = "Issue Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Issue contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6331,8 +6273,6 @@ impl LoggerCollection { #[doc = "Logger details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LoggerContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Logger entity in API Management represents an event sink that you can use to log API Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6526,8 +6466,6 @@ impl NamedValueCollection { #[doc = "NamedValue details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct NamedValueContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "NamedValue Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6565,8 +6503,6 @@ impl NamedValueContractProperties { #[doc = "NamedValue details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct NamedValueCreateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "NamedValue Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6728,8 +6664,6 @@ impl NotificationCollection { #[doc = "Notification details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct NotificationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Notification Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6826,8 +6760,6 @@ impl OpenIdConnectProviderCollection { #[doc = "OpenId Connect Provider details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OpenidConnectProviderContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "OpenID Connect Providers Contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6993,8 +6925,6 @@ impl OperationCollection { #[doc = "API Operation details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Operation Contract Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7089,8 +7019,6 @@ impl OperationListResult { #[doc = "Long Running Git Operation Results."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResultContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Operation Result."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7380,8 +7308,6 @@ impl PolicyCollection { #[doc = "Policy Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PolicyContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Policy contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7480,8 +7406,6 @@ impl PolicyDescriptionCollection { #[doc = "Policy description details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PolicyDescriptionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Policy description properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7531,8 +7455,6 @@ impl PolicyFragmentCollection { #[doc = "Policy fragment contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PolicyFragmentContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Policy fragment contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7632,8 +7554,6 @@ impl PortalConfigCollection { #[doc = "The developer portal configuration contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalConfigContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The developer portal configuration contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7825,8 +7745,6 @@ impl PortalConfigTermsOfServiceProperties { #[doc = "Delegation settings for a developer portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalDelegationSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Delegation settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7885,8 +7803,6 @@ impl PortalRevisionCollection { #[doc = "Portal Revision's contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalRevisionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -8003,8 +7919,6 @@ impl PortalSettingsCollection { #[doc = "Portal Settings for the Developer Portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalSettingsContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sign-in settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8056,8 +7970,6 @@ impl PortalSigninSettingProperties { #[doc = "Sign-In settings for the Developer Portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalSigninSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sign-in settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8070,8 +7982,6 @@ impl PortalSigninSettings { #[doc = "Sign-Up settings for a developer portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalSignupSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sign-up settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8414,8 +8324,6 @@ impl ProductCollection { #[doc = "Product details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProductContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Product profile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8658,8 +8566,6 @@ impl RecipientEmailCollection { #[doc = "Recipient Email details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecipientEmailContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Recipient Email Contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8706,8 +8612,6 @@ impl RecipientUserCollection { #[doc = "Recipient User details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecipientUserContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Recipient User Contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9477,8 +9381,6 @@ impl SchemaCollection { #[doc = "API Schema Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SchemaContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API Schema create or update contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9551,8 +9453,6 @@ impl SubscriptionCollection { #[doc = "Subscription details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubscriptionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Subscription details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9849,8 +9749,6 @@ impl TagCollection { #[doc = "Tag Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tag contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9933,8 +9831,6 @@ impl TagDescriptionCollection { #[doc = "Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagDescriptionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "TagDescription contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10044,8 +9940,6 @@ impl TagTagResourceContractProperties { #[doc = "Result of Tenant Configuration Sync State."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TenantConfigurationSyncStateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tenant Configuration Synchronization State."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10116,8 +10010,6 @@ impl TenantSettingsCollection { #[doc = "Tenant Settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TenantSettingsContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tenant access information contract of the API Management service."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10201,8 +10093,6 @@ impl UserCollection { #[doc = "User details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct UserContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "User profile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/apimanagement/src/package_preview_2022_09/models.rs b/services/mgmt/apimanagement/src/package_preview_2022_09/models.rs index 7f720c359f..09c2c61283 100644 --- a/services/mgmt/apimanagement/src/package_preview_2022_09/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2022_09/models.rs @@ -34,8 +34,6 @@ impl AccessInformationCollection { #[doc = "Tenant Settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccessInformationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tenant access information contract of the API Management service."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -361,8 +359,6 @@ impl ApiContactInformation { #[doc = "API details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API Entity Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1867,8 +1863,6 @@ impl ApiReleaseCollection { #[doc = "ApiRelease details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiReleaseContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API Release details"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2066,8 +2060,6 @@ impl ApiVersionSetCollection { #[doc = "API Version Set Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiVersionSetContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an API Version Set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2333,8 +2325,6 @@ impl ArmIdWrapper { #[doc = "Association entity details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssociationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Association entity contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2430,8 +2420,6 @@ impl AuthorizationAccessPolicyCollection { #[doc = "Authorization access policy contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationAccessPolicyContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Authorization Access Policy details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2499,8 +2487,6 @@ impl AuthorizationConfirmConsentCodeRequestContract { #[doc = "Authorization contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Authorization details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2676,8 +2662,6 @@ impl AuthorizationProviderCollection { #[doc = "Authorization Provider contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationProviderContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Authorization Provider details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2766,8 +2750,6 @@ impl AuthorizationServerCollection { #[doc = "External OAuth authorization server settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationServerContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "External OAuth authorization server settings Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2908,8 +2890,6 @@ impl AuthorizationServerSecretsContract { #[doc = "External OAuth authorization server settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationServerUpdateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "External OAuth authorization server Update settings contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3052,8 +3032,6 @@ impl BackendCollection { #[doc = "Backend details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BackendContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Parameters supplied to the Create Backend operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3193,8 +3171,6 @@ impl BackendProxyContract { #[doc = "Reconnect request parameters."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BackendReconnectContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties to control reconnect requests."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3430,8 +3406,6 @@ impl CacheCollection { #[doc = "Cache details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CacheContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Cache contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3566,8 +3540,6 @@ pub mod certificate_configuration { #[doc = "Certificate details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CertificateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Certificate contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4319,8 +4291,6 @@ impl ContentItemCollection { #[doc = "Content type contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContentItemContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -4364,8 +4334,6 @@ impl ContentTypeCollection { #[doc = "Content type contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContentTypeContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -4477,8 +4445,6 @@ pub mod data_masking_entity { #[doc = "Deleted API Management Service information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DeletedServiceContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "API Management Service Master Location."] @@ -4589,8 +4555,6 @@ impl DiagnosticCollection { #[doc = "Diagnostic details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DiagnosticContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostic Entity Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4836,8 +4800,6 @@ impl DocumentationCollection { #[doc = "Markdown documentation details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DocumentationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Markdown documentation details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4905,8 +4867,6 @@ impl EmailTemplateCollection { #[doc = "Email Template details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EmailTemplateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Email Template Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5146,8 +5106,6 @@ impl GatewayCertificateAuthorityCollection { #[doc = "Gateway certificate authority details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayCertificateAuthorityContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Gateway certificate authority details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5200,8 +5158,6 @@ impl GatewayCollection { #[doc = "Gateway details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Gateway contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5254,8 +5210,6 @@ impl GatewayHostnameConfigurationCollection { #[doc = "Gateway hostname configuration details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayHostnameConfigurationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Gateway hostname configuration details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5416,8 +5370,6 @@ impl GlobalSchemaCollection { #[doc = "Global Schema Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GlobalSchemaContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Schema create or update contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5534,8 +5486,6 @@ impl GroupCollection { #[doc = "Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GroupContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Group contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5997,8 +5947,6 @@ pub mod identity_provider_base_parameters { #[doc = "Identity Provider details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IdentityProviderContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6032,8 +5980,6 @@ impl IdentityProviderContractProperties { #[doc = "Identity Provider details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IdentityProviderCreateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6152,8 +6098,6 @@ impl IssueAttachmentCollection { #[doc = "Issue Attachment Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueAttachmentContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Issue Attachment contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6242,8 +6186,6 @@ impl IssueCommentCollection { #[doc = "Issue Comment Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueCommentContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Issue Comment contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6285,8 +6227,6 @@ impl IssueContext { #[doc = "Issue Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Issue contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6498,8 +6438,6 @@ impl LoggerCollection { #[doc = "Logger details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LoggerContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Logger entity in API Management represents an event sink that you can use to log API Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6693,8 +6631,6 @@ impl NamedValueCollection { #[doc = "NamedValue details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct NamedValueContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "NamedValue Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6732,8 +6668,6 @@ impl NamedValueContractProperties { #[doc = "NamedValue details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct NamedValueCreateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "NamedValue Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6895,8 +6829,6 @@ impl NotificationCollection { #[doc = "Notification details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct NotificationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Notification Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6993,8 +6925,6 @@ impl OpenIdConnectProviderCollection { #[doc = "OpenId Connect Provider details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OpenidConnectProviderContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "OpenID Connect Providers Contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7160,8 +7090,6 @@ impl OperationCollection { #[doc = "API Operation details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Operation Contract Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7256,8 +7184,6 @@ impl OperationListResult { #[doc = "Long Running Git Operation Results."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResultContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Operation Result."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7553,8 +7479,6 @@ impl PolicyCollection { #[doc = "Policy Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PolicyContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Policy contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7653,8 +7577,6 @@ impl PolicyDescriptionCollection { #[doc = "Policy description details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PolicyDescriptionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Policy description properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7710,8 +7632,6 @@ impl PolicyFragmentCollection { #[doc = "Policy fragment contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PolicyFragmentContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Policy fragment contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7817,8 +7737,6 @@ impl PortalConfigCollection { #[doc = "The developer portal configuration contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalConfigContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The developer portal configuration contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8010,8 +7928,6 @@ impl PortalConfigTermsOfServiceProperties { #[doc = "Delegation settings for a developer portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalDelegationSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Delegation settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8070,8 +7986,6 @@ impl PortalRevisionCollection { #[doc = "Portal Revision's contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalRevisionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -8188,8 +8102,6 @@ impl PortalSettingsCollection { #[doc = "Portal Settings for the Developer Portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalSettingsContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sign-in settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8241,8 +8153,6 @@ impl PortalSigninSettingProperties { #[doc = "Sign-In settings for the Developer Portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalSigninSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sign-in settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8255,8 +8165,6 @@ impl PortalSigninSettings { #[doc = "Sign-Up settings for a developer portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalSignupSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sign-up settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8599,8 +8507,6 @@ impl ProductApiLinkCollection { #[doc = "Product-API link details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProductApiLinkContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Product-API link entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8653,8 +8559,6 @@ impl ProductCollection { #[doc = "Product details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProductContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Product profile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8750,8 +8654,6 @@ impl ProductGroupLinkCollection { #[doc = "Product-group link details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProductGroupLinkContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Product-group link entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8951,8 +8853,6 @@ impl RecipientEmailCollection { #[doc = "Recipient Email details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecipientEmailContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Recipient Email Contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8999,8 +8899,6 @@ impl RecipientUserCollection { #[doc = "Recipient User details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecipientUserContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Recipient User Contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9427,8 +9325,6 @@ impl ResolverCollection { #[doc = "GraphQL API Resolver details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ResolverContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "GraphQL API Resolver Entity Base Contract details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9459,8 +9355,6 @@ impl ResolverEntityBaseContract { #[doc = "Long Running Git Resolver Results."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ResolverResultContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resolver Result."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9938,8 +9832,6 @@ impl SchemaCollection { #[doc = "API Schema Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SchemaContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API Schema create or update contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10012,8 +9904,6 @@ impl SubscriptionCollection { #[doc = "Subscription details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubscriptionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Subscription details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10310,8 +10200,6 @@ impl TagApiLinkCollection { #[doc = "Tag-API link details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagApiLinkContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tag-API link entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10364,8 +10252,6 @@ impl TagCollection { #[doc = "Tag Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tag contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10448,8 +10334,6 @@ impl TagDescriptionCollection { #[doc = "Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagDescriptionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "TagDescription contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10519,8 +10403,6 @@ impl TagOperationLinkCollection { #[doc = "Tag-operation link details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagOperationLinkContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tag-operation link entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10573,8 +10455,6 @@ impl TagProductLinkCollection { #[doc = "Tag-product link details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagProductLinkContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tag-product link entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10667,8 +10547,6 @@ impl TagTagResourceContractProperties { #[doc = "Result of Tenant Configuration Sync State."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TenantConfigurationSyncStateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tenant Configuration Synchronization State."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10739,8 +10617,6 @@ impl TenantSettingsCollection { #[doc = "Tenant Settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TenantSettingsContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tenant access information contract of the API Management service."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10824,8 +10700,6 @@ impl UserCollection { #[doc = "User details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct UserContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "User profile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -11262,8 +11136,6 @@ impl WikiCollection { #[doc = "Wiki properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WikiContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Wiki contract details"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -11344,8 +11216,6 @@ impl WorkspaceCollection { #[doc = "Workspace details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkspaceContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Workspace entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/apimanagement/src/package_preview_2023_03/models.rs b/services/mgmt/apimanagement/src/package_preview_2023_03/models.rs index 7b8fd4b816..1e75dd5666 100644 --- a/services/mgmt/apimanagement/src/package_preview_2023_03/models.rs +++ b/services/mgmt/apimanagement/src/package_preview_2023_03/models.rs @@ -34,8 +34,6 @@ impl AccessInformationCollection { #[doc = "Tenant Settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccessInformationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tenant access information contract of the API Management service."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -361,8 +359,6 @@ impl ApiContactInformation { #[doc = "API details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API Entity Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1972,8 +1968,6 @@ impl ApiReleaseCollection { #[doc = "ApiRelease details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiReleaseContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API Release details"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2171,8 +2165,6 @@ impl ApiVersionSetCollection { #[doc = "API Version Set Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiVersionSetContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an API Version Set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2438,8 +2430,6 @@ impl ArmIdWrapper { #[doc = "Association entity details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssociationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Association entity contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2535,8 +2525,6 @@ impl AuthorizationAccessPolicyCollection { #[doc = "Authorization access policy contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationAccessPolicyContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Authorization Access Policy details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2604,8 +2592,6 @@ impl AuthorizationConfirmConsentCodeRequestContract { #[doc = "Authorization contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Authorization details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2781,8 +2767,6 @@ impl AuthorizationProviderCollection { #[doc = "Authorization Provider contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationProviderContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Authorization Provider details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2871,8 +2855,6 @@ impl AuthorizationServerCollection { #[doc = "External OAuth authorization server settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationServerContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "External OAuth authorization server settings Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3013,8 +2995,6 @@ impl AuthorizationServerSecretsContract { #[doc = "External OAuth authorization server settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthorizationServerUpdateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "External OAuth authorization server Update settings contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3157,8 +3137,6 @@ impl BackendCollection { #[doc = "Backend details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BackendContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Parameters supplied to the Create Backend operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3298,8 +3276,6 @@ impl BackendProxyContract { #[doc = "Reconnect request parameters."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BackendReconnectContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties to control reconnect requests."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3535,8 +3511,6 @@ impl CacheCollection { #[doc = "Cache details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CacheContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Cache contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3671,8 +3645,6 @@ pub mod certificate_configuration { #[doc = "Certificate details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CertificateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Certificate contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4481,8 +4453,6 @@ impl ContentItemCollection { #[doc = "Content type contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContentItemContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -4526,8 +4496,6 @@ impl ContentTypeCollection { #[doc = "Content type contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContentTypeContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -4639,8 +4607,6 @@ pub mod data_masking_entity { #[doc = "Deleted API Management Service information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DeletedServiceContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "API Management Service Master Location."] @@ -4751,8 +4717,6 @@ impl DiagnosticCollection { #[doc = "Diagnostic details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DiagnosticContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostic Entity Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4998,8 +4962,6 @@ impl DocumentationCollection { #[doc = "Markdown documentation details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DocumentationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Markdown documentation details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5067,8 +5029,6 @@ impl EmailTemplateCollection { #[doc = "Email Template details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EmailTemplateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Email Template Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5308,8 +5268,6 @@ impl GatewayCertificateAuthorityCollection { #[doc = "Gateway certificate authority details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayCertificateAuthorityContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Gateway certificate authority details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5362,8 +5320,6 @@ impl GatewayCollection { #[doc = "Gateway details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Gateway contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5428,8 +5384,6 @@ impl GatewayHostnameConfigurationCollection { #[doc = "Gateway hostname configuration details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayHostnameConfigurationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Gateway hostname configuration details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5631,8 +5585,6 @@ impl GlobalSchemaCollection { #[doc = "Global Schema Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GlobalSchemaContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Schema create or update contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5749,8 +5701,6 @@ impl GroupCollection { #[doc = "Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GroupContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Group contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6214,8 +6164,6 @@ pub mod identity_provider_base_parameters { #[doc = "Identity Provider details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IdentityProviderContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6249,8 +6197,6 @@ impl IdentityProviderContractProperties { #[doc = "Identity Provider details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IdentityProviderCreateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The external Identity Providers like Facebook, Google, Microsoft, Twitter or Azure Active Directory which can be used to enable access to the API Management service developer portal for all users."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6369,8 +6315,6 @@ impl IssueAttachmentCollection { #[doc = "Issue Attachment Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueAttachmentContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Issue Attachment contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6459,8 +6403,6 @@ impl IssueCommentCollection { #[doc = "Issue Comment Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueCommentContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Issue Comment contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6502,8 +6444,6 @@ impl IssueContext { #[doc = "Issue Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IssueContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Issue contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6715,8 +6655,6 @@ impl LoggerCollection { #[doc = "Logger details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LoggerContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Logger entity in API Management represents an event sink that you can use to log API Management events. Currently the Logger entity supports logging API Management events to Azure Event Hubs."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6963,8 +6901,6 @@ impl NamedValueCollection { #[doc = "NamedValue details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct NamedValueContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "NamedValue Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7002,8 +6938,6 @@ impl NamedValueContractProperties { #[doc = "NamedValue details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct NamedValueCreateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "NamedValue Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7165,8 +7099,6 @@ impl NotificationCollection { #[doc = "Notification details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct NotificationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Notification Contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7263,8 +7195,6 @@ impl OpenIdConnectProviderCollection { #[doc = "OpenId Connect Provider details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OpenidConnectProviderContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "OpenID Connect Providers Contract."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7430,8 +7360,6 @@ impl OperationCollection { #[doc = "API Operation details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Operation Contract Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7526,8 +7454,6 @@ impl OperationListResult { #[doc = "Long Running Git Operation Results."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationResultContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Operation Result."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7823,8 +7749,6 @@ impl PolicyCollection { #[doc = "Policy Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PolicyContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Policy contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7923,8 +7847,6 @@ impl PolicyDescriptionCollection { #[doc = "Policy description details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PolicyDescriptionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Policy description properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7980,8 +7902,6 @@ impl PolicyFragmentCollection { #[doc = "Policy fragment contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PolicyFragmentContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Policy fragment contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8087,8 +8007,6 @@ impl PortalConfigCollection { #[doc = "The developer portal configuration contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalConfigContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The developer portal configuration contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8280,8 +8198,6 @@ impl PortalConfigTermsOfServiceProperties { #[doc = "Delegation settings for a developer portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalDelegationSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Delegation settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8340,8 +8256,6 @@ impl PortalRevisionCollection { #[doc = "Portal Revision's contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalRevisionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -8458,8 +8372,6 @@ impl PortalSettingsCollection { #[doc = "Portal Settings for the Developer Portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalSettingsContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sign-in settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8511,8 +8423,6 @@ impl PortalSigninSettingProperties { #[doc = "Sign-In settings for the Developer Portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalSigninSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sign-in settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8525,8 +8435,6 @@ impl PortalSigninSettings { #[doc = "Sign-Up settings for a developer portal."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PortalSignupSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sign-up settings contract properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8869,8 +8777,6 @@ impl ProductApiLinkCollection { #[doc = "Product-API link details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProductApiLinkContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Product-API link entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8923,8 +8829,6 @@ impl ProductCollection { #[doc = "Product details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProductContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Product profile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9020,8 +8924,6 @@ impl ProductGroupLinkCollection { #[doc = "Product-group link details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProductGroupLinkContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Product-group link entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9221,8 +9123,6 @@ impl RecipientEmailCollection { #[doc = "Recipient Email details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecipientEmailContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Recipient Email Contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9269,8 +9169,6 @@ impl RecipientUserCollection { #[doc = "Recipient User details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecipientUserContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Recipient User Contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9697,8 +9595,6 @@ impl ResolverCollection { #[doc = "GraphQL API Resolver details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ResolverContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "GraphQL API Resolver Entity Base Contract details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -9729,8 +9625,6 @@ impl ResolverEntityBaseContract { #[doc = "Long Running Git Resolver Results."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ResolverResultContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resolver Result."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10208,8 +10102,6 @@ impl SchemaCollection { #[doc = "API Schema Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SchemaContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API Schema create or update contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10282,8 +10174,6 @@ impl SubscriptionCollection { #[doc = "Subscription details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubscriptionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Subscription details."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10580,8 +10470,6 @@ impl TagApiLinkCollection { #[doc = "Tag-API link details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagApiLinkContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tag-API link entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10634,8 +10522,6 @@ impl TagCollection { #[doc = "Tag Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tag contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10718,8 +10604,6 @@ impl TagDescriptionCollection { #[doc = "Contract details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagDescriptionContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "TagDescription contract Properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10789,8 +10673,6 @@ impl TagOperationLinkCollection { #[doc = "Tag-operation link details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagOperationLinkContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tag-operation link entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10843,8 +10725,6 @@ impl TagProductLinkCollection { #[doc = "Tag-product link details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TagProductLinkContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tag-product link entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -10937,8 +10817,6 @@ impl TagTagResourceContractProperties { #[doc = "Result of Tenant Configuration Sync State."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TenantConfigurationSyncStateContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tenant Configuration Synchronization State."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -11009,8 +10887,6 @@ impl TenantSettingsCollection { #[doc = "Tenant Settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TenantSettingsContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tenant access information contract of the API Management service."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -11094,8 +10970,6 @@ impl UserCollection { #[doc = "User details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct UserContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "User profile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -11532,8 +11406,6 @@ impl WikiCollection { #[doc = "Wiki properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WikiContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Wiki contract details"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -11614,8 +11486,6 @@ impl WorkspaceCollection { #[doc = "Workspace details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkspaceContract { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Workspace entity properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/app/src/package_2023_05/models.rs b/services/mgmt/app/src/package_2023_05/models.rs index fe22390516..69176ec355 100644 --- a/services/mgmt/app/src/package_2023_05/models.rs +++ b/services/mgmt/app/src/package_2023_05/models.rs @@ -109,8 +109,6 @@ impl AppleRegistration { #[doc = "Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthConfig { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "AuthConfig resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -210,8 +208,6 @@ impl AvailableOperations { #[doc = "A workload profile with specific hardware configure to run container apps."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AvailableWorkloadProfile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Region of the workload profile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -571,8 +567,6 @@ impl BaseContainer { #[doc = "Billing meter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BillingMeter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Region for the billing meter."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -1070,8 +1064,6 @@ impl ConnectedEnvironmentCollection { #[doc = "Storage resource for connectedEnvironment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConnectedEnvironmentStorage { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1972,8 +1964,6 @@ pub mod dapr { #[doc = "Dapr Component."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DaprComponent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Dapr Component resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2279,8 +2269,6 @@ impl DiagnosticSupportTopic { #[doc = "Diagnostics data for a resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Diagnostics { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostics resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4128,8 +4116,6 @@ pub mod managed_environment { #[doc = "Storage resource for managedEnvironment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ManagedEnvironmentStorage { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4485,8 +4471,6 @@ impl RegistryInfo { #[doc = "Container App Revision Replica."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Replica { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Replica resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4688,8 +4672,6 @@ impl Resource { #[doc = "Container App Revision."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Revision { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Revision resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5032,8 +5014,6 @@ impl ServiceBind { #[doc = "Container App SourceControl."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControl { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SourceControl resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5546,8 +5526,6 @@ pub mod system_data { #[doc = "Collection of all the workload Profile States for a Managed Environment.."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkloadProfileStates { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Workload Profile resource specific properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/app/src/package_preview_2022_06/models.rs b/services/mgmt/app/src/package_preview_2022_06/models.rs index 01cff3e22f..b5625ff460 100644 --- a/services/mgmt/app/src/package_preview_2022_06/models.rs +++ b/services/mgmt/app/src/package_preview_2022_06/models.rs @@ -109,8 +109,6 @@ impl AppleRegistration { #[doc = "Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthConfig { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "AuthConfig resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -210,8 +208,6 @@ impl AvailableOperations { #[doc = "A premium workload profile."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AvailableWorkloadProfile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Region of the workload profile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -613,8 +609,6 @@ impl BaseContainer { #[doc = "A premium billing meter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BillingMeter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Region for the billing meter."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -1151,8 +1145,6 @@ impl ConnectedEnvironmentCollection { #[doc = "Storage resource for connectedEnvironment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConnectedEnvironmentStorage { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1971,8 +1963,6 @@ pub mod dapr { #[doc = "Dapr Component."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DaprComponent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Dapr Component resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2266,8 +2256,6 @@ impl DiagnosticSupportTopic { #[doc = "Diagnostics data for a resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Diagnostics { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostics resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3324,8 +3312,6 @@ impl ManagedEnvironmentOutboundSettings { #[doc = "Storage resource for managedEnvironment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ManagedEnvironmentStorage { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3667,8 +3653,6 @@ impl RegistryInfo { #[doc = "Container App Revision Replica."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Replica { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Replica resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3765,8 +3749,6 @@ impl Resource { #[doc = "Container App Revision."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Revision { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Revision resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4013,8 +3995,6 @@ impl SecretsCollection { #[doc = "Container App SourceControl."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControl { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SourceControl resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4503,8 +4483,6 @@ pub mod system_data { #[doc = "Collection of all the workload Profile States for a Premium Managed Environment.."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkloadProfileStates { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Workload Profile resource specific properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/app/src/package_preview_2022_11/models.rs b/services/mgmt/app/src/package_preview_2022_11/models.rs index 97336cd9a5..2056850630 100644 --- a/services/mgmt/app/src/package_preview_2022_11/models.rs +++ b/services/mgmt/app/src/package_preview_2022_11/models.rs @@ -109,8 +109,6 @@ impl AppleRegistration { #[doc = "Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthConfig { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "AuthConfig resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -210,8 +208,6 @@ impl AvailableOperations { #[doc = "A workload profile with specific hardware configure to run container apps."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AvailableWorkloadProfile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Region of the workload profile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -568,8 +564,6 @@ impl BaseContainer { #[doc = "Billing meter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BillingMeter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Region for the billing meter."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -1064,8 +1058,6 @@ impl ConnectedEnvironmentCollection { #[doc = "Storage resource for connectedEnvironment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConnectedEnvironmentStorage { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1966,8 +1958,6 @@ pub mod dapr { #[doc = "Dapr Component."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DaprComponent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Dapr Component resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2273,8 +2263,6 @@ impl DiagnosticSupportTopic { #[doc = "Diagnostics data for a resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Diagnostics { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostics resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4032,8 +4020,6 @@ pub mod managed_environment { #[doc = "Storage resource for managedEnvironment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ManagedEnvironmentStorage { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4376,8 +4362,6 @@ impl RegistryInfo { #[doc = "Container App Revision Replica."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Replica { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Replica resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4475,8 +4459,6 @@ impl Resource { #[doc = "Container App Revision."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Revision { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Revision resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4744,8 +4726,6 @@ impl SecretsCollection { #[doc = "Container App SourceControl."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControl { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SourceControl resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5241,8 +5221,6 @@ pub mod system_data { #[doc = "Collection of all the workload Profile States for a Managed Environment.."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkloadProfileStates { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Workload Profile resource specific properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/app/src/package_preview_2023_04/models.rs b/services/mgmt/app/src/package_preview_2023_04/models.rs index fe22390516..69176ec355 100644 --- a/services/mgmt/app/src/package_preview_2023_04/models.rs +++ b/services/mgmt/app/src/package_preview_2023_04/models.rs @@ -109,8 +109,6 @@ impl AppleRegistration { #[doc = "Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthConfig { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "AuthConfig resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -210,8 +208,6 @@ impl AvailableOperations { #[doc = "A workload profile with specific hardware configure to run container apps."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AvailableWorkloadProfile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Region of the workload profile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -571,8 +567,6 @@ impl BaseContainer { #[doc = "Billing meter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BillingMeter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Region for the billing meter."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -1070,8 +1064,6 @@ impl ConnectedEnvironmentCollection { #[doc = "Storage resource for connectedEnvironment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConnectedEnvironmentStorage { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1972,8 +1964,6 @@ pub mod dapr { #[doc = "Dapr Component."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DaprComponent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Dapr Component resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2279,8 +2269,6 @@ impl DiagnosticSupportTopic { #[doc = "Diagnostics data for a resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Diagnostics { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostics resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4128,8 +4116,6 @@ pub mod managed_environment { #[doc = "Storage resource for managedEnvironment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ManagedEnvironmentStorage { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4485,8 +4471,6 @@ impl RegistryInfo { #[doc = "Container App Revision Replica."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Replica { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Replica resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4688,8 +4672,6 @@ impl Resource { #[doc = "Container App Revision."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Revision { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Revision resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5032,8 +5014,6 @@ impl ServiceBind { #[doc = "Container App SourceControl."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControl { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SourceControl resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5546,8 +5526,6 @@ pub mod system_data { #[doc = "Collection of all the workload Profile States for a Managed Environment.."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkloadProfileStates { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Workload Profile resource specific properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/app/src/package_preview_2023_05/models.rs b/services/mgmt/app/src/package_preview_2023_05/models.rs index 7fe60226e0..d0002b04fb 100644 --- a/services/mgmt/app/src/package_preview_2023_05/models.rs +++ b/services/mgmt/app/src/package_preview_2023_05/models.rs @@ -109,8 +109,6 @@ impl AppleRegistration { #[doc = "Configuration settings for the Azure ContainerApp Service Authentication / Authorization feature."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AuthConfig { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "AuthConfig resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -213,8 +211,6 @@ impl AvailableOperations { #[doc = "A workload profile with specific hardware configure to run container apps."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AvailableWorkloadProfile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Region of the workload profile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -574,8 +570,6 @@ impl BaseContainer { #[doc = "Billing meter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BillingMeter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Region for the billing meter."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -1085,8 +1079,6 @@ impl ConnectedEnvironmentCollection { #[doc = "Storage resource for connectedEnvironment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConnectedEnvironmentStorage { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1988,8 +1980,6 @@ pub mod dapr { #[doc = "Dapr Component."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DaprComponent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Dapr Component resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2295,8 +2285,6 @@ impl DiagnosticSupportTopic { #[doc = "Diagnostics data for a resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Diagnostics { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostics resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4215,8 +4203,6 @@ pub mod managed_environment { #[doc = "Storage resource for managedEnvironment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ManagedEnvironmentStorage { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4572,8 +4558,6 @@ impl RegistryInfo { #[doc = "Container App Revision Replica."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Replica { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Replica resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4775,8 +4759,6 @@ impl Resource { #[doc = "Container App Revision."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Revision { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Revision resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5119,8 +5101,6 @@ impl ServiceBind { #[doc = "Container App SourceControl."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControl { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SourceControl resource specific properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5697,8 +5677,6 @@ pub mod system_data { #[doc = "Collection of all the workload Profile States for a Managed Environment.."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WorkloadProfileStates { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Workload Profile resource specific properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/appcomplianceautomation/src/package_2022_11_16_preview/models.rs b/services/mgmt/appcomplianceautomation/src/package_2022_11_16_preview/models.rs index afcbe5834f..e53915e13b 100644 --- a/services/mgmt/appcomplianceautomation/src/package_2022_11_16_preview/models.rs +++ b/services/mgmt/appcomplianceautomation/src/package_2022_11_16_preview/models.rs @@ -1033,17 +1033,12 @@ pub mod report_properties { #[doc = "A class represent an AppComplianceAutomation report resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ReportResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Report's properties."] pub properties: ReportProperties, } impl ReportResource { pub fn new(properties: ReportProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Object that includes an array of resources and a possible link for next set."] @@ -1298,8 +1293,6 @@ impl SnapshotProperties { #[doc = "A class represent a AppComplianceAutomation snapshot resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SnapshotResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Snapshot's properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs b/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs index 3c7be098db..c47291cc60 100644 --- a/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs +++ b/services/mgmt/applicationinsights/src/package_2022_01_11/models.rs @@ -1099,8 +1099,6 @@ impl ApplicationInsightsWebTestLocationsListResult { #[doc = "An Application Insights component linked storage accounts"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ComponentLinkedStorageAccounts { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "An Application Insights component linked storage account"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs b/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs index 3c7be098db..c47291cc60 100644 --- a/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs +++ b/services/mgmt/applicationinsights/src/package_2022_02_01/models.rs @@ -1099,8 +1099,6 @@ impl ApplicationInsightsWebTestLocationsListResult { #[doc = "An Application Insights component linked storage accounts"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ComponentLinkedStorageAccounts { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "An Application Insights component linked storage account"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs b/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs index db4a8741ab..7ae29d6c4f 100644 --- a/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs +++ b/services/mgmt/applicationinsights/src/package_2022_04_01/models.rs @@ -1099,8 +1099,6 @@ impl ApplicationInsightsWebTestLocationsListResult { #[doc = "An Application Insights component linked storage accounts"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ComponentLinkedStorageAccounts { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "An Application Insights component linked storage account"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/applicationinsights/src/package_2022_06_15/models.rs b/services/mgmt/applicationinsights/src/package_2022_06_15/models.rs index efb0cf7e89..27a5abe5d7 100644 --- a/services/mgmt/applicationinsights/src/package_2022_06_15/models.rs +++ b/services/mgmt/applicationinsights/src/package_2022_06_15/models.rs @@ -1099,8 +1099,6 @@ impl ApplicationInsightsWebTestLocationsListResult { #[doc = "An Application Insights component linked storage accounts"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ComponentLinkedStorageAccounts { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "An Application Insights component linked storage account"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/appplatform/src/package_preview_2023_01/models.rs b/services/mgmt/appplatform/src/package_preview_2023_01/models.rs index 0e48febc97..243186fd9d 100644 --- a/services/mgmt/appplatform/src/package_preview_2023_01/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2023_01/models.rs @@ -3,14 +3,6 @@ use serde::de::{value, Deserializer, IntoDeserializer}; use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; -#[doc = "Auth setting payload."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AcceleratorAuthSetting {} -impl AcceleratorAuthSetting { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the auth setting."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "authType")] @@ -23,8 +15,6 @@ pub enum AcceleratorAuthSettingUnion { #[doc = "Auth setting for basic auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorBasicAuthSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Username of git repository basic auth."] pub username: String, #[doc = "Password of git repository basic auth."] @@ -32,12 +22,8 @@ pub struct AcceleratorBasicAuthSetting { pub password: Option, } impl AcceleratorBasicAuthSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting, username: String) -> Self { - Self { - accelerator_auth_setting, - username, - password: None, - } + pub fn new(username: String) -> Self { + Self { username, password: None } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] @@ -74,20 +60,15 @@ impl AcceleratorGitRepository { } #[doc = "Auth setting for public url."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AcceleratorPublicSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, -} +pub struct AcceleratorPublicSetting {} impl AcceleratorPublicSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting) -> Self { - Self { accelerator_auth_setting } + pub fn new() -> Self { + Self {} } } #[doc = "Auth setting for SSH auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorSshSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Public SSH Key of git repository."] #[serde(rename = "hostKey", default, skip_serializing_if = "Option::is_none")] pub host_key: Option, @@ -99,9 +80,8 @@ pub struct AcceleratorSshSetting { pub private_key: Option, } impl AcceleratorSshSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting) -> Self { + pub fn new() -> Self { Self { - accelerator_auth_setting, host_key: None, host_key_algorithm: None, private_key: None, @@ -140,8 +120,6 @@ impl ApiPortalCustomDomainProperties { #[doc = "Custom domain of the API portal"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiPortalCustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of custom domain for API portal"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -290,8 +268,6 @@ pub mod api_portal_properties { #[doc = "API portal resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiPortalResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API portal properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -347,8 +323,6 @@ impl ApiPortalResourceRequests { #[doc = "App resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AppResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "App resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -605,8 +579,6 @@ pub mod application_accelerator_properties { #[doc = "Application accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApplicationAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -768,8 +740,6 @@ pub mod application_live_view_properties { #[doc = "Application Live View resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApplicationLiveViewResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application Live View properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -882,8 +852,6 @@ impl AzureFileVolume { #[doc = "Binding resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BindingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Binding resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -954,8 +922,6 @@ impl BindingResourceProperties { #[doc = "Build resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Build { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1084,8 +1050,6 @@ impl BuildResourceRequests { #[doc = "Build result resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildResult { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build result resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1227,8 +1191,6 @@ impl BuildResultUserSourceInfo { #[doc = "Build service resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildService { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build service resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1256,8 +1218,6 @@ impl BuildServiceAgentPoolProperties { #[doc = "The build service agent pool resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildServiceAgentPoolResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build service agent pool properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1551,8 +1511,6 @@ pub mod builder_properties { #[doc = "KPack Builder resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuilderResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "KPack Builder properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1718,8 +1676,6 @@ pub mod buildpack_binding_properties { #[doc = "Buildpack Binding Resource object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildpackBindingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a buildpack binding"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1888,8 +1844,6 @@ pub enum CertificatePropertiesUnion { #[doc = "Certificate resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CertificateResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Certificate resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2228,8 +2182,6 @@ pub mod config_server_properties { #[doc = "Config Server resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigServerResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Config server git properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2469,8 +2421,6 @@ pub mod configuration_service_properties { #[doc = "Application Configuration Service resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigurationServiceResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application Configuration Service properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2698,8 +2648,6 @@ pub mod custom_domain_properties { #[doc = "Custom domain resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Custom domain of app resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2921,8 +2869,6 @@ pub mod customized_accelerator_properties { #[doc = "Customized accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomizedAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Customized accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3063,8 +3009,6 @@ impl DeploymentList { #[doc = "Deployment resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DeploymentResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Deployment resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3442,8 +3386,6 @@ pub mod dev_tool_portal_properties { #[doc = "Dev Tool Portal resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DevToolPortalResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Dev Tool Portal properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3557,8 +3499,6 @@ impl Error { #[doc = "ExecAction describes a \"run in container\" action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExecAction { - #[serde(flatten)] - pub probe_action: ProbeAction, #[doc = "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy."] #[serde( default, @@ -3568,11 +3508,8 @@ pub struct ExecAction { pub command: Vec, } impl ExecAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { - probe_action, - command: Vec::new(), - } + pub fn new() -> Self { + Self { command: Vec::new() } } } #[doc = "API metadata property for Spring Cloud Gateway"] @@ -3709,8 +3646,6 @@ impl GatewayCustomDomainProperties { #[doc = "Custom domain of the Spring Cloud Gateway"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayCustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of custom domain for Spring Cloud Gateway"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3923,8 +3858,6 @@ pub mod gateway_properties { #[doc = "Spring Cloud Gateway resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Spring Cloud Gateway properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4127,8 +4060,6 @@ pub mod gateway_route_config_properties { #[doc = "Spring Cloud Gateway route config resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayRouteConfigResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API route config of the Spring Cloud Gateway"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4227,8 +4158,6 @@ impl GitPatternRepository { #[doc = "HTTPGetAction describes an action based on HTTP Get requests."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HttpGetAction { - #[serde(flatten)] - pub probe_action: ProbeAction, #[doc = "Path to access on the HTTP server."] #[serde(default, skip_serializing_if = "Option::is_none")] pub path: Option, @@ -4237,12 +4166,8 @@ pub struct HttpGetAction { pub scheme: Option, } impl HttpGetAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { - probe_action, - path: None, - scheme: None, - } + pub fn new() -> Self { + Self { path: None, scheme: None } } } pub mod http_get_action { @@ -4784,8 +4709,6 @@ pub mod monitoring_setting_properties { #[doc = "Monitoring Setting resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MonitoringSettingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Monitoring Setting properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5142,8 +5065,6 @@ pub mod predefined_accelerator_properties { #[doc = "Predefined accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PredefinedAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Predefined accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5216,14 +5137,6 @@ impl Probe { } } } -#[doc = "The action of the probe."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProbeAction {} -impl ProbeAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the action to take to perform the health check."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -5888,8 +5801,6 @@ pub mod service_registry_properties { #[doc = "Service Registry resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServiceRegistryResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Service Registry properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6182,8 +6093,6 @@ impl StackProperties { #[doc = "storage resource of type Azure Storage Account."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageAccount { - #[serde(flatten)] - pub storage_properties: StorageProperties, #[doc = "The account name of the Azure Storage Account."] #[serde(rename = "accountName")] pub account_name: String, @@ -6192,20 +6101,8 @@ pub struct StorageAccount { pub account_key: String, } impl StorageAccount { - pub fn new(storage_properties: StorageProperties, account_name: String, account_key: String) -> Self { - Self { - storage_properties, - account_name, - account_key, - } - } -} -#[doc = "Storage resource payload."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StorageProperties {} -impl StorageProperties { - pub fn new() -> Self { - Self {} + pub fn new(account_name: String, account_key: String) -> Self { + Self { account_name, account_key } } } #[doc = "The type of the storage."] @@ -6217,8 +6114,6 @@ pub enum StoragePropertiesUnion { #[doc = "Storage resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6256,8 +6151,6 @@ impl StorageResourceCollection { #[doc = "Supported buildpack resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportedBuildpackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Supported buildpack resource properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6405,8 +6298,6 @@ pub mod supported_runtime_version { #[doc = "Supported stack resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportedStackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Supported stack resource properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6564,13 +6455,10 @@ pub mod system_data { } #[doc = "TCPSocketAction describes an action based on opening a socket"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TcpSocketAction { - #[serde(flatten)] - pub probe_action: ProbeAction, -} +pub struct TcpSocketAction {} impl TcpSocketAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { probe_action } + pub fn new() -> Self { + Self {} } } #[doc = "Azure Spring Apps App Instance Tcp scaling rule."] diff --git a/services/mgmt/appplatform/src/package_preview_2023_03/models.rs b/services/mgmt/appplatform/src/package_preview_2023_03/models.rs index cacf323d3f..9610b45c8f 100644 --- a/services/mgmt/appplatform/src/package_preview_2023_03/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2023_03/models.rs @@ -3,14 +3,6 @@ use serde::de::{value, Deserializer, IntoDeserializer}; use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; -#[doc = "Auth setting payload."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AcceleratorAuthSetting {} -impl AcceleratorAuthSetting { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the auth setting."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "authType")] @@ -23,8 +15,6 @@ pub enum AcceleratorAuthSettingUnion { #[doc = "Auth setting for basic auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorBasicAuthSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Resource Id of CA certificate for https URL of Git repository."] #[serde(rename = "caCertResourceId", default, skip_serializing_if = "Option::is_none")] pub ca_cert_resource_id: Option, @@ -35,9 +25,8 @@ pub struct AcceleratorBasicAuthSetting { pub password: Option, } impl AcceleratorBasicAuthSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting, username: String) -> Self { + pub fn new(username: String) -> Self { Self { - accelerator_auth_setting, ca_cert_resource_id: None, username, password: None, @@ -79,25 +68,18 @@ impl AcceleratorGitRepository { #[doc = "Auth setting for public url."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorPublicSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Resource Id of CA certificate for https URL of Git repository."] #[serde(rename = "caCertResourceId", default, skip_serializing_if = "Option::is_none")] pub ca_cert_resource_id: Option, } impl AcceleratorPublicSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting) -> Self { - Self { - accelerator_auth_setting, - ca_cert_resource_id: None, - } + pub fn new() -> Self { + Self { ca_cert_resource_id: None } } } #[doc = "Auth setting for SSH auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorSshSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Public SSH Key of git repository."] #[serde(rename = "hostKey", default, skip_serializing_if = "Option::is_none")] pub host_key: Option, @@ -109,9 +91,8 @@ pub struct AcceleratorSshSetting { pub private_key: Option, } impl AcceleratorSshSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting) -> Self { + pub fn new() -> Self { Self { - accelerator_auth_setting, host_key: None, host_key_algorithm: None, private_key: None, @@ -150,8 +131,6 @@ impl ApiPortalCustomDomainProperties { #[doc = "Custom domain of the API portal"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiPortalCustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of custom domain for API portal"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -300,8 +279,6 @@ pub mod api_portal_properties { #[doc = "API portal resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiPortalResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API portal properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -357,8 +334,6 @@ impl ApiPortalResourceRequests { #[doc = "App resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AppResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "App resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -615,8 +590,6 @@ pub mod application_accelerator_properties { #[doc = "Application accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApplicationAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -778,8 +751,6 @@ pub mod application_live_view_properties { #[doc = "Application Live View resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApplicationLiveViewResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application Live View properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -892,8 +863,6 @@ impl AzureFileVolume { #[doc = "Binding resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BindingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Binding resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -964,8 +933,6 @@ impl BindingResourceProperties { #[doc = "Build resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Build { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1094,8 +1061,6 @@ impl BuildResourceRequests { #[doc = "Build result resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildResult { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build result resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1240,8 +1205,6 @@ impl BuildResultUserSourceInfo { #[doc = "Build service resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildService { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build service resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1269,8 +1232,6 @@ impl BuildServiceAgentPoolProperties { #[doc = "The build service agent pool resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildServiceAgentPoolResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build service agent pool properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1567,8 +1528,6 @@ pub mod builder_properties { #[doc = "KPack Builder resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuilderResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "KPack Builder properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1734,8 +1693,6 @@ pub mod buildpack_binding_properties { #[doc = "Buildpack Binding Resource object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildpackBindingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a buildpack binding"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1904,8 +1861,6 @@ pub enum CertificatePropertiesUnion { #[doc = "Certificate resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CertificateResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Certificate resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2244,8 +2199,6 @@ pub mod config_server_properties { #[doc = "Config Server resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigServerResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Config server git properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2485,8 +2438,6 @@ pub mod configuration_service_properties { #[doc = "Application Configuration Service resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigurationServiceResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application Configuration Service properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2578,8 +2529,6 @@ impl ContainerProbeSettings { #[doc = "The basic authentication properties for the container registry resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContainerRegistryBasicCredentials { - #[serde(flatten)] - pub container_registry_credentials: ContainerRegistryCredentials, #[doc = "The login server of the Container Registry."] pub server: String, #[doc = "The username of the Container Registry."] @@ -2588,23 +2537,14 @@ pub struct ContainerRegistryBasicCredentials { pub password: String, } impl ContainerRegistryBasicCredentials { - pub fn new(container_registry_credentials: ContainerRegistryCredentials, server: String, username: String, password: String) -> Self { + pub fn new(server: String, username: String, password: String) -> Self { Self { - container_registry_credentials, server, username, password, } } } -#[doc = "The credential for the container registry resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContainerRegistryCredentials {} -impl ContainerRegistryCredentials { - pub fn new() -> Self { - Self {} - } -} #[doc = "The credential type of the container registry credentials."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -2677,8 +2617,6 @@ pub mod container_registry_properties { #[doc = "Container registry resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContainerRegistryResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Container registry resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2852,8 +2790,6 @@ pub mod custom_domain_properties { #[doc = "Custom domain resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Custom domain of app resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3075,8 +3011,6 @@ pub mod customized_accelerator_properties { #[doc = "Customized accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomizedAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Customized accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3217,8 +3151,6 @@ impl DeploymentList { #[doc = "Deployment resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DeploymentResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Deployment resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3596,8 +3528,6 @@ pub mod dev_tool_portal_properties { #[doc = "Dev Tool Portal resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DevToolPortalResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Dev Tool Portal properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3711,8 +3641,6 @@ impl Error { #[doc = "ExecAction describes a \"run in container\" action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExecAction { - #[serde(flatten)] - pub probe_action: ProbeAction, #[doc = "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy."] #[serde( default, @@ -3722,11 +3650,8 @@ pub struct ExecAction { pub command: Vec, } impl ExecAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { - probe_action, - command: Vec::new(), - } + pub fn new() -> Self { + Self { command: Vec::new() } } } #[doc = "API metadata property for Spring Cloud Gateway"] @@ -3863,8 +3788,6 @@ impl GatewayCustomDomainProperties { #[doc = "Custom domain of the Spring Cloud Gateway"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayCustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of custom domain for Spring Cloud Gateway"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4144,8 +4067,6 @@ pub mod gateway_properties { #[doc = "Spring Cloud Gateway resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Spring Cloud Gateway properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4348,8 +4269,6 @@ pub mod gateway_route_config_properties { #[doc = "Spring Cloud Gateway route config resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayRouteConfigResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API route config of the Spring Cloud Gateway"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4448,8 +4367,6 @@ impl GitPatternRepository { #[doc = "HTTPGetAction describes an action based on HTTP Get requests."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HttpGetAction { - #[serde(flatten)] - pub probe_action: ProbeAction, #[doc = "Path to access on the HTTP server."] #[serde(default, skip_serializing_if = "Option::is_none")] pub path: Option, @@ -4458,12 +4375,8 @@ pub struct HttpGetAction { pub scheme: Option, } impl HttpGetAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { - probe_action, - path: None, - scheme: None, - } + pub fn new() -> Self { + Self { path: None, scheme: None } } } pub mod http_get_action { @@ -5005,8 +4918,6 @@ pub mod monitoring_setting_properties { #[doc = "Monitoring Setting resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MonitoringSettingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Monitoring Setting properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5363,8 +5274,6 @@ pub mod predefined_accelerator_properties { #[doc = "Predefined accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PredefinedAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Predefined accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5437,14 +5346,6 @@ impl Probe { } } } -#[doc = "The action of the probe."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProbeAction {} -impl ProbeAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the action to take to perform the health check."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -6109,8 +6010,6 @@ pub mod service_registry_properties { #[doc = "Service Registry resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServiceRegistryResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Service Registry properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6406,8 +6305,6 @@ impl StackProperties { #[doc = "storage resource of type Azure Storage Account."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageAccount { - #[serde(flatten)] - pub storage_properties: StorageProperties, #[doc = "The account name of the Azure Storage Account."] #[serde(rename = "accountName")] pub account_name: String, @@ -6416,20 +6313,8 @@ pub struct StorageAccount { pub account_key: String, } impl StorageAccount { - pub fn new(storage_properties: StorageProperties, account_name: String, account_key: String) -> Self { - Self { - storage_properties, - account_name, - account_key, - } - } -} -#[doc = "Storage resource payload."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StorageProperties {} -impl StorageProperties { - pub fn new() -> Self { - Self {} + pub fn new(account_name: String, account_key: String) -> Self { + Self { account_name, account_key } } } #[doc = "The type of the storage."] @@ -6441,8 +6326,6 @@ pub enum StoragePropertiesUnion { #[doc = "Storage resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6480,8 +6363,6 @@ impl StorageResourceCollection { #[doc = "Supported buildpack resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportedBuildpackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Supported buildpack resource properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6629,8 +6510,6 @@ pub mod supported_runtime_version { #[doc = "Supported stack resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportedStackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Supported stack resource properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6788,13 +6667,10 @@ pub mod system_data { } #[doc = "TCPSocketAction describes an action based on opening a socket"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TcpSocketAction { - #[serde(flatten)] - pub probe_action: ProbeAction, -} +pub struct TcpSocketAction {} impl TcpSocketAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { probe_action } + pub fn new() -> Self { + Self {} } } #[doc = "Azure Spring Apps App Instance Tcp scaling rule."] diff --git a/services/mgmt/appplatform/src/package_preview_2023_05/models.rs b/services/mgmt/appplatform/src/package_preview_2023_05/models.rs index 52753b01be..9fe52f2f6b 100644 --- a/services/mgmt/appplatform/src/package_preview_2023_05/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2023_05/models.rs @@ -3,14 +3,6 @@ use serde::de::{value, Deserializer, IntoDeserializer}; use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; -#[doc = "Auth setting payload."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AcceleratorAuthSetting {} -impl AcceleratorAuthSetting { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the auth setting."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "authType")] @@ -23,8 +15,6 @@ pub enum AcceleratorAuthSettingUnion { #[doc = "Auth setting for basic auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorBasicAuthSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Resource Id of CA certificate for https URL of Git repository."] #[serde(rename = "caCertResourceId", default, skip_serializing_if = "Option::is_none")] pub ca_cert_resource_id: Option, @@ -35,9 +25,8 @@ pub struct AcceleratorBasicAuthSetting { pub password: Option, } impl AcceleratorBasicAuthSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting, username: String) -> Self { + pub fn new(username: String) -> Self { Self { - accelerator_auth_setting, ca_cert_resource_id: None, username, password: None, @@ -79,25 +68,18 @@ impl AcceleratorGitRepository { #[doc = "Auth setting for public url."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorPublicSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Resource Id of CA certificate for https URL of Git repository."] #[serde(rename = "caCertResourceId", default, skip_serializing_if = "Option::is_none")] pub ca_cert_resource_id: Option, } impl AcceleratorPublicSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting) -> Self { - Self { - accelerator_auth_setting, - ca_cert_resource_id: None, - } + pub fn new() -> Self { + Self { ca_cert_resource_id: None } } } #[doc = "Auth setting for SSH auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorSshSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Public SSH Key of git repository."] #[serde(rename = "hostKey", default, skip_serializing_if = "Option::is_none")] pub host_key: Option, @@ -109,9 +91,8 @@ pub struct AcceleratorSshSetting { pub private_key: Option, } impl AcceleratorSshSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting) -> Self { + pub fn new() -> Self { Self { - accelerator_auth_setting, host_key: None, host_key_algorithm: None, private_key: None, @@ -150,8 +131,6 @@ impl ApiPortalCustomDomainProperties { #[doc = "Custom domain of the API portal"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiPortalCustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of custom domain for API portal"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -300,8 +279,6 @@ pub mod api_portal_properties { #[doc = "API portal resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiPortalResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API portal properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -444,8 +421,6 @@ pub type ApmReferenceCollection = Vec; #[doc = "APM Resource object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApmResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an APM"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -499,8 +474,6 @@ impl ApmSecretKeys { #[doc = "App resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AppResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "App resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -760,8 +733,6 @@ pub mod application_accelerator_properties { #[doc = "Application accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApplicationAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -923,8 +894,6 @@ pub mod application_live_view_properties { #[doc = "Application Live View resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApplicationLiveViewResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application Live View properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1037,8 +1006,6 @@ impl AzureFileVolume { #[doc = "Binding resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BindingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Binding resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1109,8 +1076,6 @@ impl BindingResourceProperties { #[doc = "Build resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Build { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1245,8 +1210,6 @@ impl BuildResourceRequests { #[doc = "Build result resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildResult { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build result resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1391,8 +1354,6 @@ impl BuildResultUserSourceInfo { #[doc = "Build service resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildService { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build service resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1420,8 +1381,6 @@ impl BuildServiceAgentPoolProperties { #[doc = "The build service agent pool resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildServiceAgentPoolResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build service agent pool properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1718,8 +1677,6 @@ pub mod builder_properties { #[doc = "KPack Builder resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuilderResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "KPack Builder properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1885,8 +1842,6 @@ pub mod buildpack_binding_properties { #[doc = "Buildpack Binding Resource object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildpackBindingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a buildpack binding"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2068,8 +2023,6 @@ pub type CertificateReferenceCollection = Vec; #[doc = "Certificate resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CertificateResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Certificate resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2448,8 +2401,6 @@ pub mod config_server_properties { #[doc = "Config Server resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigServerResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Config server git properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2742,8 +2693,6 @@ pub mod configuration_service_properties { #[doc = "Application Configuration Service resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigurationServiceResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application Configuration Service properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2835,8 +2784,6 @@ impl ContainerProbeSettings { #[doc = "The basic authentication properties for the container registry resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContainerRegistryBasicCredentials { - #[serde(flatten)] - pub container_registry_credentials: ContainerRegistryCredentials, #[doc = "The login server of the Container Registry."] pub server: String, #[doc = "The username of the Container Registry."] @@ -2845,23 +2792,14 @@ pub struct ContainerRegistryBasicCredentials { pub password: String, } impl ContainerRegistryBasicCredentials { - pub fn new(container_registry_credentials: ContainerRegistryCredentials, server: String, username: String, password: String) -> Self { + pub fn new(server: String, username: String, password: String) -> Self { Self { - container_registry_credentials, server, username, password, } } } -#[doc = "The credential for the container registry resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContainerRegistryCredentials {} -impl ContainerRegistryCredentials { - pub fn new() -> Self { - Self {} - } -} #[doc = "The credential type of the container registry credentials."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -2936,8 +2874,6 @@ pub mod container_registry_properties { #[doc = "Container registry resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContainerRegistryResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Container registry resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3126,8 +3062,6 @@ pub mod custom_domain_properties { #[doc = "Custom domain resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Custom domain of app resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3349,8 +3283,6 @@ pub mod customized_accelerator_properties { #[doc = "Customized accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomizedAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Customized accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3491,8 +3423,6 @@ impl DeploymentList { #[doc = "Deployment resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DeploymentResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Deployment resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3873,8 +3803,6 @@ pub mod dev_tool_portal_properties { #[doc = "Dev Tool Portal resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DevToolPortalResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Dev Tool Portal properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4087,8 +4015,6 @@ pub mod eureka_server_properties { #[doc = "Eureka server resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EurekaServerResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Eureka server properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4120,8 +4046,6 @@ impl EurekaServerResourceCollection { #[doc = "ExecAction describes a \"run in container\" action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExecAction { - #[serde(flatten)] - pub probe_action: ProbeAction, #[doc = "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy."] #[serde( default, @@ -4131,11 +4055,8 @@ pub struct ExecAction { pub command: Vec, } impl ExecAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { - probe_action, - command: Vec::new(), - } + pub fn new() -> Self { + Self { command: Vec::new() } } } #[doc = "API metadata property for Spring Cloud Gateway"] @@ -4280,8 +4201,6 @@ impl GatewayCustomDomainProperties { #[doc = "Custom domain of the Spring Cloud Gateway"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayCustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of custom domain for Spring Cloud Gateway"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4564,8 +4483,6 @@ pub mod gateway_properties { #[doc = "Spring Cloud Gateway resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Spring Cloud Gateway properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4768,8 +4685,6 @@ pub mod gateway_route_config_properties { #[doc = "Spring Cloud Gateway route config resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayRouteConfigResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API route config of the Spring Cloud Gateway"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4923,8 +4838,6 @@ impl GloballyEnabledApms { #[doc = "HTTPGetAction describes an action based on HTTP Get requests."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HttpGetAction { - #[serde(flatten)] - pub probe_action: ProbeAction, #[doc = "Path to access on the HTTP server."] #[serde(default, skip_serializing_if = "Option::is_none")] pub path: Option, @@ -4933,12 +4846,8 @@ pub struct HttpGetAction { pub scheme: Option, } impl HttpGetAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { - probe_action, - path: None, - scheme: None, - } + pub fn new() -> Self { + Self { path: None, scheme: None } } } pub mod http_get_action { @@ -5480,8 +5389,6 @@ pub mod monitoring_setting_properties { #[doc = "Monitoring Setting resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MonitoringSettingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Monitoring Setting properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5838,8 +5745,6 @@ pub mod predefined_accelerator_properties { #[doc = "Predefined accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PredefinedAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Predefined accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5912,14 +5817,6 @@ impl Probe { } } } -#[doc = "The action of the probe."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProbeAction {} -impl ProbeAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the action to take to perform the health check."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -6584,8 +6481,6 @@ pub mod service_registry_properties { #[doc = "Service Registry resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServiceRegistryResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Service Registry properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6881,8 +6776,6 @@ impl StackProperties { #[doc = "storage resource of type Azure Storage Account."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageAccount { - #[serde(flatten)] - pub storage_properties: StorageProperties, #[doc = "The account name of the Azure Storage Account."] #[serde(rename = "accountName")] pub account_name: String, @@ -6891,20 +6784,8 @@ pub struct StorageAccount { pub account_key: String, } impl StorageAccount { - pub fn new(storage_properties: StorageProperties, account_name: String, account_key: String) -> Self { - Self { - storage_properties, - account_name, - account_key, - } - } -} -#[doc = "Storage resource payload."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StorageProperties {} -impl StorageProperties { - pub fn new() -> Self { - Self {} + pub fn new(account_name: String, account_key: String) -> Self { + Self { account_name, account_key } } } #[doc = "The type of the storage."] @@ -6916,8 +6797,6 @@ pub enum StoragePropertiesUnion { #[doc = "Storage resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6992,8 +6871,6 @@ impl SupportedApmTypes { #[doc = "Supported buildpack resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportedBuildpackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Supported buildpack resource properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7141,8 +7018,6 @@ pub mod supported_runtime_version { #[doc = "Supported stack resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportedStackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Supported stack resource properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7300,13 +7175,10 @@ pub mod system_data { } #[doc = "TCPSocketAction describes an action based on opening a socket"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TcpSocketAction { - #[serde(flatten)] - pub probe_action: ProbeAction, -} +pub struct TcpSocketAction {} impl TcpSocketAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { probe_action } + pub fn new() -> Self { + Self {} } } #[doc = "Azure Spring Apps App Instance Tcp scaling rule."] diff --git a/services/mgmt/appplatform/src/package_preview_2023_07/models.rs b/services/mgmt/appplatform/src/package_preview_2023_07/models.rs index 0d6a21bedd..4fc109c851 100644 --- a/services/mgmt/appplatform/src/package_preview_2023_07/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2023_07/models.rs @@ -3,14 +3,6 @@ use serde::de::{value, Deserializer, IntoDeserializer}; use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; -#[doc = "Auth setting payload."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AcceleratorAuthSetting {} -impl AcceleratorAuthSetting { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the auth setting."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "authType")] @@ -23,8 +15,6 @@ pub enum AcceleratorAuthSettingUnion { #[doc = "Auth setting for basic auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorBasicAuthSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Resource Id of CA certificate for https URL of Git repository."] #[serde(rename = "caCertResourceId", default, skip_serializing_if = "Option::is_none")] pub ca_cert_resource_id: Option, @@ -35,9 +25,8 @@ pub struct AcceleratorBasicAuthSetting { pub password: Option, } impl AcceleratorBasicAuthSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting, username: String) -> Self { + pub fn new(username: String) -> Self { Self { - accelerator_auth_setting, ca_cert_resource_id: None, username, password: None, @@ -79,25 +68,18 @@ impl AcceleratorGitRepository { #[doc = "Auth setting for public url."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorPublicSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Resource Id of CA certificate for https URL of Git repository."] #[serde(rename = "caCertResourceId", default, skip_serializing_if = "Option::is_none")] pub ca_cert_resource_id: Option, } impl AcceleratorPublicSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting) -> Self { - Self { - accelerator_auth_setting, - ca_cert_resource_id: None, - } + pub fn new() -> Self { + Self { ca_cert_resource_id: None } } } #[doc = "Auth setting for SSH auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorSshSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Public SSH Key of git repository."] #[serde(rename = "hostKey", default, skip_serializing_if = "Option::is_none")] pub host_key: Option, @@ -109,9 +91,8 @@ pub struct AcceleratorSshSetting { pub private_key: Option, } impl AcceleratorSshSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting) -> Self { + pub fn new() -> Self { Self { - accelerator_auth_setting, host_key: None, host_key_algorithm: None, private_key: None, @@ -150,8 +131,6 @@ impl ApiPortalCustomDomainProperties { #[doc = "Custom domain of the API portal"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiPortalCustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of custom domain for API portal"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -300,8 +279,6 @@ pub mod api_portal_properties { #[doc = "API portal resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiPortalResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API portal properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -444,8 +421,6 @@ pub type ApmReferenceCollection = Vec; #[doc = "APM Resource object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApmResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an APM"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -499,8 +474,6 @@ impl ApmSecretKeys { #[doc = "App resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AppResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "App resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -760,8 +733,6 @@ pub mod application_accelerator_properties { #[doc = "Application accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApplicationAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -923,8 +894,6 @@ pub mod application_live_view_properties { #[doc = "Application Live View resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApplicationLiveViewResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application Live View properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1037,8 +1006,6 @@ impl AzureFileVolume { #[doc = "Binding resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BindingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Binding resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1109,8 +1076,6 @@ impl BindingResourceProperties { #[doc = "Build resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Build { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1245,8 +1210,6 @@ impl BuildResourceRequests { #[doc = "Build result resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildResult { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build result resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1391,8 +1354,6 @@ impl BuildResultUserSourceInfo { #[doc = "Build service resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildService { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build service resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1420,8 +1381,6 @@ impl BuildServiceAgentPoolProperties { #[doc = "The build service agent pool resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildServiceAgentPoolResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build service agent pool properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1718,8 +1677,6 @@ pub mod builder_properties { #[doc = "KPack Builder resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuilderResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "KPack Builder properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1885,8 +1842,6 @@ pub mod buildpack_binding_properties { #[doc = "Buildpack Binding Resource object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildpackBindingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a buildpack binding"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2068,8 +2023,6 @@ pub type CertificateReferenceCollection = Vec; #[doc = "Certificate resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CertificateResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Certificate resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2451,8 +2404,6 @@ pub mod config_server_properties { #[doc = "Config Server resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigServerResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Config server git properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2745,8 +2696,6 @@ pub mod configuration_service_properties { #[doc = "Application Configuration Service resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigurationServiceResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application Configuration Service properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2838,8 +2787,6 @@ impl ContainerProbeSettings { #[doc = "The basic authentication properties for the container registry resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContainerRegistryBasicCredentials { - #[serde(flatten)] - pub container_registry_credentials: ContainerRegistryCredentials, #[doc = "The login server of the Container Registry."] pub server: String, #[doc = "The username of the Container Registry."] @@ -2848,23 +2795,14 @@ pub struct ContainerRegistryBasicCredentials { pub password: String, } impl ContainerRegistryBasicCredentials { - pub fn new(container_registry_credentials: ContainerRegistryCredentials, server: String, username: String, password: String) -> Self { + pub fn new(server: String, username: String, password: String) -> Self { Self { - container_registry_credentials, server, username, password, } } } -#[doc = "The credential for the container registry resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContainerRegistryCredentials {} -impl ContainerRegistryCredentials { - pub fn new() -> Self { - Self {} - } -} #[doc = "The credential type of the container registry credentials."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -2939,8 +2877,6 @@ pub mod container_registry_properties { #[doc = "Container registry resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContainerRegistryResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Container registry resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3129,8 +3065,6 @@ pub mod custom_domain_properties { #[doc = "Custom domain resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Custom domain of app resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3352,8 +3286,6 @@ pub mod customized_accelerator_properties { #[doc = "Customized accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomizedAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Customized accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3494,8 +3426,6 @@ impl DeploymentList { #[doc = "Deployment resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DeploymentResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Deployment resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3876,8 +3806,6 @@ pub mod dev_tool_portal_properties { #[doc = "Dev Tool Portal resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DevToolPortalResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Dev Tool Portal properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4090,8 +4018,6 @@ pub mod eureka_server_properties { #[doc = "Eureka server resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EurekaServerResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Eureka server properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4123,8 +4049,6 @@ impl EurekaServerResourceCollection { #[doc = "ExecAction describes a \"run in container\" action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExecAction { - #[serde(flatten)] - pub probe_action: ProbeAction, #[doc = "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy."] #[serde( default, @@ -4134,11 +4058,8 @@ pub struct ExecAction { pub command: Vec, } impl ExecAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { - probe_action, - command: Vec::new(), - } + pub fn new() -> Self { + Self { command: Vec::new() } } } #[doc = "API metadata property for Spring Cloud Gateway"] @@ -4283,8 +4204,6 @@ impl GatewayCustomDomainProperties { #[doc = "Custom domain of the Spring Cloud Gateway"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayCustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of custom domain for Spring Cloud Gateway"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4567,8 +4486,6 @@ pub mod gateway_properties { #[doc = "Spring Cloud Gateway resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Spring Cloud Gateway properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4771,8 +4688,6 @@ pub mod gateway_route_config_properties { #[doc = "Spring Cloud Gateway route config resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayRouteConfigResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API route config of the Spring Cloud Gateway"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4926,8 +4841,6 @@ impl GloballyEnabledApms { #[doc = "HTTPGetAction describes an action based on HTTP Get requests."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HttpGetAction { - #[serde(flatten)] - pub probe_action: ProbeAction, #[doc = "Path to access on the HTTP server."] #[serde(default, skip_serializing_if = "Option::is_none")] pub path: Option, @@ -4936,12 +4849,8 @@ pub struct HttpGetAction { pub scheme: Option, } impl HttpGetAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { - probe_action, - path: None, - scheme: None, - } + pub fn new() -> Self { + Self { path: None, scheme: None } } } pub mod http_get_action { @@ -5251,14 +5160,6 @@ impl LogSpecification { Self::default() } } -#[doc = "Configuration for the planned maintenance"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MaintenanceScheduleConfiguration {} -impl MaintenanceScheduleConfiguration { - pub fn new() -> Self { - Self {} - } -} #[doc = "The frequency to run the maintenance job"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "frequency")] @@ -5497,8 +5398,6 @@ pub mod monitoring_setting_properties { #[doc = "Monitoring Setting resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MonitoringSettingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Monitoring Setting properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5855,8 +5754,6 @@ pub mod predefined_accelerator_properties { #[doc = "Predefined accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PredefinedAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Predefined accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5929,14 +5826,6 @@ impl Probe { } } } -#[doc = "The action of the probe."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProbeAction {} -impl ProbeAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the action to take to perform the health check."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -6601,8 +6490,6 @@ pub mod service_registry_properties { #[doc = "Service Registry resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServiceRegistryResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Service Registry properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6898,8 +6785,6 @@ impl StackProperties { #[doc = "storage resource of type Azure Storage Account."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageAccount { - #[serde(flatten)] - pub storage_properties: StorageProperties, #[doc = "The account name of the Azure Storage Account."] #[serde(rename = "accountName")] pub account_name: String, @@ -6908,20 +6793,8 @@ pub struct StorageAccount { pub account_key: String, } impl StorageAccount { - pub fn new(storage_properties: StorageProperties, account_name: String, account_key: String) -> Self { - Self { - storage_properties, - account_name, - account_key, - } - } -} -#[doc = "Storage resource payload."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StorageProperties {} -impl StorageProperties { - pub fn new() -> Self { - Self {} + pub fn new(account_name: String, account_key: String) -> Self { + Self { account_name, account_key } } } #[doc = "The type of the storage."] @@ -6933,8 +6806,6 @@ pub enum StoragePropertiesUnion { #[doc = "Storage resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7009,8 +6880,6 @@ impl SupportedApmTypes { #[doc = "Supported buildpack resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportedBuildpackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Supported buildpack resource properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7158,8 +7027,6 @@ pub mod supported_runtime_version { #[doc = "Supported stack resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportedStackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Supported stack resource properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7317,13 +7184,10 @@ pub mod system_data { } #[doc = "TCPSocketAction describes an action based on opening a socket"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TcpSocketAction { - #[serde(flatten)] - pub probe_action: ProbeAction, -} +pub struct TcpSocketAction {} impl TcpSocketAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { probe_action } + pub fn new() -> Self { + Self {} } } #[doc = "Azure Spring Apps App Instance Tcp scaling rule."] @@ -7494,8 +7358,6 @@ impl ValidationMessages { #[doc = "Weekly planned maintenance"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WeeklyMaintenanceScheduleConfiguration { - #[serde(flatten)] - pub maintenance_schedule_configuration: MaintenanceScheduleConfiguration, #[doc = "The hour to run the maintenance job"] pub hour: i32, #[doc = "The duration time to run the maintenance job, specified in ISO8601 format, e.g. PT8H"] @@ -7505,17 +7367,8 @@ pub struct WeeklyMaintenanceScheduleConfiguration { pub day: weekly_maintenance_schedule_configuration::Day, } impl WeeklyMaintenanceScheduleConfiguration { - pub fn new( - maintenance_schedule_configuration: MaintenanceScheduleConfiguration, - hour: i32, - day: weekly_maintenance_schedule_configuration::Day, - ) -> Self { - Self { - maintenance_schedule_configuration, - hour, - duration: None, - day, - } + pub fn new(hour: i32, day: weekly_maintenance_schedule_configuration::Day) -> Self { + Self { hour, duration: None, day } } } pub mod weekly_maintenance_schedule_configuration { diff --git a/services/mgmt/appplatform/src/package_preview_2023_09/models.rs b/services/mgmt/appplatform/src/package_preview_2023_09/models.rs index 76300b3df3..109ecc4bc7 100644 --- a/services/mgmt/appplatform/src/package_preview_2023_09/models.rs +++ b/services/mgmt/appplatform/src/package_preview_2023_09/models.rs @@ -3,14 +3,6 @@ use serde::de::{value, Deserializer, IntoDeserializer}; use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; -#[doc = "Auth setting payload."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AcceleratorAuthSetting {} -impl AcceleratorAuthSetting { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the auth setting."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "authType")] @@ -23,8 +15,6 @@ pub enum AcceleratorAuthSettingUnion { #[doc = "Auth setting for basic auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorBasicAuthSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Resource Id of CA certificate for https URL of Git repository."] #[serde(rename = "caCertResourceId", default, skip_serializing_if = "Option::is_none")] pub ca_cert_resource_id: Option, @@ -35,9 +25,8 @@ pub struct AcceleratorBasicAuthSetting { pub password: Option, } impl AcceleratorBasicAuthSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting, username: String) -> Self { + pub fn new(username: String) -> Self { Self { - accelerator_auth_setting, ca_cert_resource_id: None, username, password: None, @@ -83,25 +72,18 @@ impl AcceleratorGitRepository { #[doc = "Auth setting for public url."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorPublicSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Resource Id of CA certificate for https URL of Git repository."] #[serde(rename = "caCertResourceId", default, skip_serializing_if = "Option::is_none")] pub ca_cert_resource_id: Option, } impl AcceleratorPublicSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting) -> Self { - Self { - accelerator_auth_setting, - ca_cert_resource_id: None, - } + pub fn new() -> Self { + Self { ca_cert_resource_id: None } } } #[doc = "Auth setting for SSH auth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AcceleratorSshSetting { - #[serde(flatten)] - pub accelerator_auth_setting: AcceleratorAuthSetting, #[doc = "Public SSH Key of git repository."] #[serde(rename = "hostKey", default, skip_serializing_if = "Option::is_none")] pub host_key: Option, @@ -113,9 +95,8 @@ pub struct AcceleratorSshSetting { pub private_key: Option, } impl AcceleratorSshSetting { - pub fn new(accelerator_auth_setting: AcceleratorAuthSetting) -> Self { + pub fn new() -> Self { Self { - accelerator_auth_setting, host_key: None, host_key_algorithm: None, private_key: None, @@ -154,8 +135,6 @@ impl ApiPortalCustomDomainProperties { #[doc = "Custom domain of the API portal"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiPortalCustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of custom domain for API portal"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -304,8 +283,6 @@ pub mod api_portal_properties { #[doc = "API portal resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApiPortalResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API portal properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -448,8 +425,6 @@ pub type ApmReferenceCollection = Vec; #[doc = "APM Resource object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApmResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an APM"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -503,8 +478,6 @@ impl ApmSecretKeys { #[doc = "App resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AppResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "App resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -764,8 +737,6 @@ pub mod application_accelerator_properties { #[doc = "Application accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApplicationAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -927,8 +898,6 @@ pub mod application_live_view_properties { #[doc = "Application Live View resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ApplicationLiveViewResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application Live View properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1041,8 +1010,6 @@ impl AzureFileVolume { #[doc = "Binding resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BindingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Binding resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1113,8 +1080,6 @@ impl BindingResourceProperties { #[doc = "Build resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Build { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1249,8 +1214,6 @@ impl BuildResourceRequests { #[doc = "Build result resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildResult { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build result resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1395,8 +1358,6 @@ impl BuildResultUserSourceInfo { #[doc = "Build service resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildService { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build service resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1424,8 +1385,6 @@ impl BuildServiceAgentPoolProperties { #[doc = "The build service agent pool resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildServiceAgentPoolResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Build service agent pool properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1722,8 +1681,6 @@ pub mod builder_properties { #[doc = "KPack Builder resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuilderResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "KPack Builder properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1889,8 +1846,6 @@ pub mod buildpack_binding_properties { #[doc = "Buildpack Binding Resource object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BuildpackBindingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a buildpack binding"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2072,8 +2027,6 @@ pub type CertificateReferenceCollection = Vec; #[doc = "Certificate resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CertificateResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Certificate resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2455,8 +2408,6 @@ pub mod config_server_properties { #[doc = "Config Server resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigServerResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Config server git properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2749,8 +2700,6 @@ pub mod configuration_service_properties { #[doc = "Application Configuration Service resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigurationServiceResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Application Configuration Service properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2842,8 +2791,6 @@ impl ContainerProbeSettings { #[doc = "The basic authentication properties for the container registry resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContainerRegistryBasicCredentials { - #[serde(flatten)] - pub container_registry_credentials: ContainerRegistryCredentials, #[doc = "The login server of the Container Registry."] pub server: String, #[doc = "The username of the Container Registry."] @@ -2852,23 +2799,14 @@ pub struct ContainerRegistryBasicCredentials { pub password: String, } impl ContainerRegistryBasicCredentials { - pub fn new(container_registry_credentials: ContainerRegistryCredentials, server: String, username: String, password: String) -> Self { + pub fn new(server: String, username: String, password: String) -> Self { Self { - container_registry_credentials, server, username, password, } } } -#[doc = "The credential for the container registry resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContainerRegistryCredentials {} -impl ContainerRegistryCredentials { - pub fn new() -> Self { - Self {} - } -} #[doc = "The credential type of the container registry credentials."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -2943,8 +2881,6 @@ pub mod container_registry_properties { #[doc = "Container registry resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContainerRegistryResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Container registry resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3133,8 +3069,6 @@ pub mod custom_domain_properties { #[doc = "Custom domain resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Custom domain of app resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3405,8 +3339,6 @@ pub mod customized_accelerator_properties { #[doc = "Customized accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomizedAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Customized accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3547,8 +3479,6 @@ impl DeploymentList { #[doc = "Deployment resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DeploymentResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Deployment resource properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3929,8 +3859,6 @@ pub mod dev_tool_portal_properties { #[doc = "Dev Tool Portal resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DevToolPortalResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Dev Tool Portal properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4143,8 +4071,6 @@ pub mod eureka_server_properties { #[doc = "Eureka server resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EurekaServerResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Eureka server properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4176,8 +4102,6 @@ impl EurekaServerResourceCollection { #[doc = "ExecAction describes a \"run in container\" action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExecAction { - #[serde(flatten)] - pub probe_action: ProbeAction, #[doc = "Command is the command line to execute inside the container, the working directory for the command is root ('/') in the container's filesystem. The command is not run inside a shell, so traditional shell instructions ('|', etc) won't work. To use a shell, you need to explicitly call out to that shell. Exit status of 0 is treated as live/healthy and non-zero is unhealthy."] #[serde( default, @@ -4187,11 +4111,8 @@ pub struct ExecAction { pub command: Vec, } impl ExecAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { - probe_action, - command: Vec::new(), - } + pub fn new() -> Self { + Self { command: Vec::new() } } } #[doc = "API metadata property for Spring Cloud Gateway"] @@ -4336,8 +4257,6 @@ impl GatewayCustomDomainProperties { #[doc = "Custom domain of the Spring Cloud Gateway"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayCustomDomainResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of custom domain for Spring Cloud Gateway"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4623,8 +4542,6 @@ pub mod gateway_properties { #[doc = "Spring Cloud Gateway resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Spring Cloud Gateway properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4827,8 +4744,6 @@ pub mod gateway_route_config_properties { #[doc = "Spring Cloud Gateway route config resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GatewayRouteConfigResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "API route config of the Spring Cloud Gateway"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4982,8 +4897,6 @@ impl GloballyEnabledApms { #[doc = "HTTPGetAction describes an action based on HTTP Get requests."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HttpGetAction { - #[serde(flatten)] - pub probe_action: ProbeAction, #[doc = "Path to access on the HTTP server."] #[serde(default, skip_serializing_if = "Option::is_none")] pub path: Option, @@ -4992,12 +4905,8 @@ pub struct HttpGetAction { pub scheme: Option, } impl HttpGetAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { - probe_action, - path: None, - scheme: None, - } + pub fn new() -> Self { + Self { path: None, scheme: None } } } pub mod http_get_action { @@ -5356,14 +5265,6 @@ impl LogSpecification { Self::default() } } -#[doc = "Configuration for the planned maintenance"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MaintenanceScheduleConfiguration {} -impl MaintenanceScheduleConfiguration { - pub fn new() -> Self { - Self {} - } -} #[doc = "The frequency to run the maintenance job"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "frequency")] @@ -5602,8 +5503,6 @@ pub mod monitoring_setting_properties { #[doc = "Monitoring Setting resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MonitoringSettingResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Monitoring Setting properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5960,8 +5859,6 @@ pub mod predefined_accelerator_properties { #[doc = "Predefined accelerator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PredefinedAcceleratorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Predefined accelerator properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6034,14 +5931,6 @@ impl Probe { } } } -#[doc = "The action of the probe."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProbeAction {} -impl ProbeAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the action to take to perform the health check."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -6706,8 +6595,6 @@ pub mod service_registry_properties { #[doc = "Service Registry resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServiceRegistryResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Service Registry properties payload"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7003,8 +6890,6 @@ impl StackProperties { #[doc = "storage resource of type Azure Storage Account."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageAccount { - #[serde(flatten)] - pub storage_properties: StorageProperties, #[doc = "The account name of the Azure Storage Account."] #[serde(rename = "accountName")] pub account_name: String, @@ -7013,20 +6898,8 @@ pub struct StorageAccount { pub account_key: String, } impl StorageAccount { - pub fn new(storage_properties: StorageProperties, account_name: String, account_key: String) -> Self { - Self { - storage_properties, - account_name, - account_key, - } - } -} -#[doc = "Storage resource payload."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StorageProperties {} -impl StorageProperties { - pub fn new() -> Self { - Self {} + pub fn new(account_name: String, account_key: String) -> Self { + Self { account_name, account_key } } } #[doc = "The type of the storage."] @@ -7038,8 +6911,6 @@ pub enum StoragePropertiesUnion { #[doc = "Storage resource payload."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage resource payload."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7114,8 +6985,6 @@ impl SupportedApmTypes { #[doc = "Supported buildpack resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportedBuildpackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Supported buildpack resource properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7306,8 +7175,6 @@ impl SupportedServerVersions { #[doc = "Supported stack resource payload"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SupportedStackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Supported stack resource properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7465,13 +7332,10 @@ pub mod system_data { } #[doc = "TCPSocketAction describes an action based on opening a socket"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TcpSocketAction { - #[serde(flatten)] - pub probe_action: ProbeAction, -} +pub struct TcpSocketAction {} impl TcpSocketAction { - pub fn new(probe_action: ProbeAction) -> Self { - Self { probe_action } + pub fn new() -> Self { + Self {} } } #[doc = "Azure Spring Apps App Instance Tcp scaling rule."] @@ -7667,8 +7531,6 @@ impl WarUploadedUserSourceInfo { #[doc = "Weekly planned maintenance"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WeeklyMaintenanceScheduleConfiguration { - #[serde(flatten)] - pub maintenance_schedule_configuration: MaintenanceScheduleConfiguration, #[doc = "The hour to run the maintenance job"] pub hour: i32, #[doc = "The duration time to run the maintenance job, specified in ISO8601 format, e.g. PT8H"] @@ -7678,17 +7540,8 @@ pub struct WeeklyMaintenanceScheduleConfiguration { pub day: weekly_maintenance_schedule_configuration::Day, } impl WeeklyMaintenanceScheduleConfiguration { - pub fn new( - maintenance_schedule_configuration: MaintenanceScheduleConfiguration, - hour: i32, - day: weekly_maintenance_schedule_configuration::Day, - ) -> Self { - Self { - maintenance_schedule_configuration, - hour, - duration: None, - day, - } + pub fn new(hour: i32, day: weekly_maintenance_schedule_configuration::Day) -> Self { + Self { hour, duration: None, day } } } pub mod weekly_maintenance_schedule_configuration { diff --git a/services/mgmt/arcdata/src/package_preview_2022_03/models.rs b/services/mgmt/arcdata/src/package_preview_2022_03/models.rs index 3816a8f26e..194beae5f7 100644 --- a/services/mgmt/arcdata/src/package_preview_2022_03/models.rs +++ b/services/mgmt/arcdata/src/package_preview_2022_03/models.rs @@ -158,17 +158,12 @@ impl ActiveDirectoryConnectorProperties { #[doc = "Active directory connector resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ActiveDirectoryConnectorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of an Active Directory connector resource"] pub properties: ActiveDirectoryConnectorProperties, } impl ActiveDirectoryConnectorResource { pub fn new(properties: ActiveDirectoryConnectorProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The specifications of the AD Kubernetes resource."] diff --git a/services/mgmt/arcdata/src/package_preview_2022_06/models.rs b/services/mgmt/arcdata/src/package_preview_2022_06/models.rs index 2318af8716..00dbcc36a1 100644 --- a/services/mgmt/arcdata/src/package_preview_2022_06/models.rs +++ b/services/mgmt/arcdata/src/package_preview_2022_06/models.rs @@ -158,17 +158,12 @@ impl ActiveDirectoryConnectorProperties { #[doc = "Active directory connector resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ActiveDirectoryConnectorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of an Active Directory connector resource"] pub properties: ActiveDirectoryConnectorProperties, } impl ActiveDirectoryConnectorResource { pub fn new(properties: ActiveDirectoryConnectorProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The specifications of the AD Kubernetes resource."] diff --git a/services/mgmt/arcdata/src/package_preview_2023_01/models.rs b/services/mgmt/arcdata/src/package_preview_2023_01/models.rs index 724effd20e..ed564b46cd 100644 --- a/services/mgmt/arcdata/src/package_preview_2023_01/models.rs +++ b/services/mgmt/arcdata/src/package_preview_2023_01/models.rs @@ -158,17 +158,12 @@ impl ActiveDirectoryConnectorProperties { #[doc = "Active directory connector resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ActiveDirectoryConnectorResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of an Active Directory connector resource"] pub properties: ActiveDirectoryConnectorProperties, } impl ActiveDirectoryConnectorResource { pub fn new(properties: ActiveDirectoryConnectorProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The specifications of the AD Kubernetes resource."] @@ -608,17 +603,12 @@ pub mod failover_group_properties { #[doc = "A failover group resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FailoverGroupResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a failover group resource."] pub properties: FailoverGroupProperties, } impl FailoverGroupResource { pub fn new(properties: FailoverGroupProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The specifications of the failover group resource."] diff --git a/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs b/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs index 1fcb810702..104bc1b1ad 100644 --- a/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/authorization/src/package_2020_10_01_preview/models.rs @@ -280,14 +280,6 @@ pub mod access_review_decision_properties { } } } -#[doc = "Target of the decision."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AccessReviewDecisionTarget {} -impl AccessReviewDecisionTarget { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of decision target : User/ServicePrincipal"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -4694,8 +4686,6 @@ impl Serialize for RoleManagementPolicyRuleType { #[doc = "Service Principal Decision Target"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServicePrincipalDecisionTarget { - #[serde(flatten)] - pub access_review_decision_target: AccessReviewDecisionTarget, #[doc = "The id of service principal whose access is reviewed."] #[serde(rename = "principalId", default, skip_serializing_if = "Option::is_none")] pub principal_id: Option, @@ -4707,9 +4697,8 @@ pub struct ServicePrincipalDecisionTarget { pub app_id: Option, } impl ServicePrincipalDecisionTarget { - pub fn new(access_review_decision_target: AccessReviewDecisionTarget) -> Self { + pub fn new() -> Self { Self { - access_review_decision_target, principal_id: None, principal_name: None, app_id: None, @@ -4719,8 +4708,6 @@ impl ServicePrincipalDecisionTarget { #[doc = "User Decision Target"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UserDecisionTarget { - #[serde(flatten)] - pub access_review_decision_target: AccessReviewDecisionTarget, #[doc = "The id of user whose access was reviewed."] #[serde(rename = "principalId", default, skip_serializing_if = "Option::is_none")] pub principal_id: Option, @@ -4732,9 +4719,8 @@ pub struct UserDecisionTarget { pub user_principal_name: Option, } impl UserDecisionTarget { - pub fn new(access_review_decision_target: AccessReviewDecisionTarget) -> Self { + pub fn new() -> Self { Self { - access_review_decision_target, principal_id: None, principal_name: None, user_principal_name: None, diff --git a/services/mgmt/authorization/src/package_2022_05_01_preview/models.rs b/services/mgmt/authorization/src/package_2022_05_01_preview/models.rs index ea944d7e70..8ecc0e2666 100644 --- a/services/mgmt/authorization/src/package_2022_05_01_preview/models.rs +++ b/services/mgmt/authorization/src/package_2022_05_01_preview/models.rs @@ -1911,14 +1911,6 @@ impl AlertIncidentListResult { Self::default() } } -#[doc = "Alert incident properties"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AlertIncidentProperties {} -impl AlertIncidentProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "The alert incident type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "alertIncidentType")] @@ -2144,8 +2136,6 @@ impl AzureRolesAssignedOutsidePimAlertConfigurationProperties { #[doc = "Azure roles assigned outside PIM alert incident properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureRolesAssignedOutsidePimAlertIncidentProperties { - #[serde(flatten)] - pub alert_incident_properties: AlertIncidentProperties, #[doc = "The assignee display name."] #[serde(rename = "assigneeDisplayName", default, skip_serializing_if = "Option::is_none")] pub assignee_display_name: Option, @@ -2178,9 +2168,8 @@ pub struct AzureRolesAssignedOutsidePimAlertIncidentProperties { pub requestor_user_principal_name: Option, } impl AzureRolesAssignedOutsidePimAlertIncidentProperties { - pub fn new(alert_incident_properties: AlertIncidentProperties) -> Self { + pub fn new() -> Self { Self { - alert_incident_properties, assignee_display_name: None, assignee_user_principal_name: None, assignee_id: None, @@ -2478,8 +2467,6 @@ impl DuplicateRoleCreatedAlertConfigurationProperties { #[doc = "Duplicate role created alert incident properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DuplicateRoleCreatedAlertIncidentProperties { - #[serde(flatten)] - pub alert_incident_properties: AlertIncidentProperties, #[doc = "The role name."] #[serde(rename = "roleName", default, skip_serializing_if = "Option::is_none")] pub role_name: Option, @@ -2491,9 +2478,8 @@ pub struct DuplicateRoleCreatedAlertIncidentProperties { pub reason: Option, } impl DuplicateRoleCreatedAlertIncidentProperties { - pub fn new(alert_incident_properties: AlertIncidentProperties) -> Self { + pub fn new() -> Self { Self { - alert_incident_properties, role_name: None, duplicate_roles: None, reason: None, @@ -6022,8 +6008,6 @@ impl TooManyOwnersAssignedToResourceAlertConfigurationProperties { #[doc = "Too many owners assigned to resource alert incident properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TooManyOwnersAssignedToResourceAlertIncidentProperties { - #[serde(flatten)] - pub alert_incident_properties: AlertIncidentProperties, #[doc = "The assignee name."] #[serde(rename = "assigneeName", default, skip_serializing_if = "Option::is_none")] pub assignee_name: Option, @@ -6032,9 +6016,8 @@ pub struct TooManyOwnersAssignedToResourceAlertIncidentProperties { pub assignee_type: Option, } impl TooManyOwnersAssignedToResourceAlertIncidentProperties { - pub fn new(alert_incident_properties: AlertIncidentProperties) -> Self { + pub fn new() -> Self { Self { - alert_incident_properties, assignee_name: None, assignee_type: None, } @@ -6068,8 +6051,6 @@ impl TooManyPermanentOwnersAssignedToResourceAlertConfigurationProperties { #[doc = "Too many permanent owners assigned to resource alert incident properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties { - #[serde(flatten)] - pub alert_incident_properties: AlertIncidentProperties, #[doc = "The assignee name."] #[serde(rename = "assigneeName", default, skip_serializing_if = "Option::is_none")] pub assignee_name: Option, @@ -6078,9 +6059,8 @@ pub struct TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties { pub assignee_type: Option, } impl TooManyPermanentOwnersAssignedToResourceAlertIncidentProperties { - pub fn new(alert_incident_properties: AlertIncidentProperties) -> Self { + pub fn new() -> Self { Self { - alert_incident_properties, assignee_name: None, assignee_type: None, } diff --git a/services/mgmt/automanage/src/package_2020_06_30_preview/models.rs b/services/mgmt/automanage/src/package_2020_06_30_preview/models.rs index 1be6c0fdd1..61496b0a4e 100644 --- a/services/mgmt/automanage/src/package_2020_06_30_preview/models.rs +++ b/services/mgmt/automanage/src/package_2020_06_30_preview/models.rs @@ -86,8 +86,6 @@ impl AccountUpdate { #[doc = "Configuration profile assignment is an association between a VM and automanage profile configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigurationProfileAssignment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Automanage configuration profile assignment properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs b/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs index ddd85fd0eb..f29b6db65b 100644 --- a/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs +++ b/services/mgmt/automanage/src/package_2021_04_30_preview/models.rs @@ -124,8 +124,6 @@ impl ConfigurationProfile { #[doc = "Configuration profile assignment is an association between a VM and automanage profile configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigurationProfileAssignment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Automanage configuration profile assignment properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -471,8 +469,6 @@ impl ProxyResource { #[doc = "Definition of the report."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Report { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Data related to the report detail."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -552,8 +548,6 @@ impl Resource { #[doc = "The Service Principal Id for the subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServicePrincipal { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Service Principal properties for the subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/automanage/src/package_2022_05/models.rs b/services/mgmt/automanage/src/package_2022_05/models.rs index 33b8ba6874..4f4a26b4bb 100644 --- a/services/mgmt/automanage/src/package_2022_05/models.rs +++ b/services/mgmt/automanage/src/package_2022_05/models.rs @@ -124,8 +124,6 @@ impl ConfigurationProfile { #[doc = "Configuration profile assignment is an association between a VM and automanage profile configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ConfigurationProfileAssignment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Automanage configuration profile assignment properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -460,8 +458,6 @@ impl ProxyResource { #[doc = "Definition of the report."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Report { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Data related to the report detail."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -541,8 +537,6 @@ impl Resource { #[doc = "The Service Principal Id for the subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServicePrincipal { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Service Principal properties for the subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/automation/src/package_2020_01_13_preview/models.rs b/services/mgmt/automation/src/package_2020_01_13_preview/models.rs index 140e2ab9b0..90e80d1c00 100644 --- a/services/mgmt/automation/src/package_2020_01_13_preview/models.rs +++ b/services/mgmt/automation/src/package_2020_01_13_preview/models.rs @@ -602,8 +602,6 @@ impl AzureQueryProperties { #[doc = "Definition of the certificate."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Certificate { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -734,8 +732,6 @@ impl CertificateUpdateProperties { #[doc = "Definition of the connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Connection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the connection properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1069,8 +1065,6 @@ pub mod content_source { #[doc = "Definition of the credential."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Credential { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the credential properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1196,8 +1190,6 @@ impl CredentialUpdateProperties { #[doc = "Definition of the Dsc Compilation job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscCompilationJob { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of Dsc Compilation job properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1660,8 +1652,6 @@ impl DscMetaConfiguration { #[doc = "Definition of a DscNode"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNode { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a DscNode"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1674,8 +1664,6 @@ impl DscNode { #[doc = "Definition of the dsc node configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for the DscNodeConfiguration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2345,8 +2333,6 @@ pub mod identity { #[doc = "Definition of the job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Job { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of job properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2359,17 +2345,12 @@ impl Job { #[doc = "Job collection item properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobCollectionItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Job collection item properties."] pub properties: JobCollectionItemProperties, } impl JobCollectionItem { pub fn new(properties: JobCollectionItemProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Job collection item properties."] @@ -3425,8 +3406,6 @@ impl OperationListResult { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3491,8 +3470,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4352,8 +4329,6 @@ impl SucScheduleProperties { #[doc = "Definition of the schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Schedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of schedule parameters."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4595,8 +4570,6 @@ pub mod sku { #[doc = "Definition of the source control."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControl { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the source control properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5644,8 +5617,6 @@ impl UsageListResult { #[doc = "Definition of the variable."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Variable { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the variable properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5878,8 +5849,6 @@ impl WatcherUpdateProperties { #[doc = "Definition of the webhook type."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Webhook { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the webhook properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/automation/src/package_2021_06_22/models.rs b/services/mgmt/automation/src/package_2021_06_22/models.rs index 5a2ad33dc8..2cc3cc8d30 100644 --- a/services/mgmt/automation/src/package_2021_06_22/models.rs +++ b/services/mgmt/automation/src/package_2021_06_22/models.rs @@ -617,8 +617,6 @@ impl AzureQueryProperties { #[doc = "Definition of the certificate."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Certificate { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -749,8 +747,6 @@ impl CertificateUpdateProperties { #[doc = "Definition of the connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Connection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the connection properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1084,8 +1080,6 @@ pub mod content_source { #[doc = "Definition of the credential."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Credential { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the credential properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1211,8 +1205,6 @@ impl CredentialUpdateProperties { #[doc = "Definition of the Dsc Compilation job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscCompilationJob { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of Dsc Compilation job properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1675,8 +1667,6 @@ impl DscMetaConfiguration { #[doc = "Definition of a DscNode"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNode { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a DscNode"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1689,8 +1679,6 @@ impl DscNode { #[doc = "Definition of the dsc node configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for the DscNodeConfiguration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2540,8 +2528,6 @@ pub mod identity { #[doc = "Definition of the job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Job { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of job properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2554,17 +2540,12 @@ impl Job { #[doc = "Job collection item properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobCollectionItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Job collection item properties."] pub properties: JobCollectionItemProperties, } impl JobCollectionItem { pub fn new(properties: JobCollectionItemProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Job collection item properties."] @@ -3620,8 +3601,6 @@ impl OperationListResult { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3686,8 +3665,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4605,8 +4582,6 @@ impl SucScheduleProperties { #[doc = "Definition of the schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Schedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of schedule parameters."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4848,8 +4823,6 @@ pub mod sku { #[doc = "Definition of the source control."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControl { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the source control properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5897,8 +5870,6 @@ impl UsageListResult { #[doc = "Definition of the variable."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Variable { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the variable properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6131,8 +6102,6 @@ impl WatcherUpdateProperties { #[doc = "Definition of the webhook type."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Webhook { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the webhook properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/automation/src/package_2022_01_31/models.rs b/services/mgmt/automation/src/package_2022_01_31/models.rs index 4fc729a3e6..84e3c0fa2d 100644 --- a/services/mgmt/automation/src/package_2022_01_31/models.rs +++ b/services/mgmt/automation/src/package_2022_01_31/models.rs @@ -617,8 +617,6 @@ impl AzureQueryProperties { #[doc = "Definition of the certificate."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Certificate { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -749,8 +747,6 @@ impl CertificateUpdateProperties { #[doc = "Definition of the connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Connection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the connection properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1084,8 +1080,6 @@ pub mod content_source { #[doc = "Definition of the credential."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Credential { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the credential properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1272,8 +1266,6 @@ impl DeletedAutomationAccountProperties { #[doc = "Definition of the Dsc Compilation job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscCompilationJob { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of Dsc Compilation job properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1736,8 +1728,6 @@ impl DscMetaConfiguration { #[doc = "Definition of a DscNode"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNode { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a DscNode"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1750,8 +1740,6 @@ impl DscNode { #[doc = "Definition of the dsc node configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for the DscNodeConfiguration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2601,8 +2589,6 @@ pub mod identity { #[doc = "Definition of the job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Job { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of job properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2615,17 +2601,12 @@ impl Job { #[doc = "Job collection item properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobCollectionItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Job collection item properties."] pub properties: JobCollectionItemProperties, } impl JobCollectionItem { pub fn new(properties: JobCollectionItemProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Job collection item properties."] @@ -3681,8 +3662,6 @@ impl OperationListResult { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3747,8 +3726,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4666,8 +4643,6 @@ impl SucScheduleProperties { #[doc = "Definition of the schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Schedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of schedule parameters."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4909,8 +4884,6 @@ pub mod sku { #[doc = "Definition of the source control."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControl { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the source control properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5958,8 +5931,6 @@ impl UsageListResult { #[doc = "Definition of the variable."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Variable { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the variable properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6192,8 +6163,6 @@ impl WatcherUpdateProperties { #[doc = "Definition of the webhook type."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Webhook { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the webhook properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/automation/src/package_2022_02_22/models.rs b/services/mgmt/automation/src/package_2022_02_22/models.rs index 6ee3c359dd..1bf899b3a5 100644 --- a/services/mgmt/automation/src/package_2022_02_22/models.rs +++ b/services/mgmt/automation/src/package_2022_02_22/models.rs @@ -617,8 +617,6 @@ impl AzureQueryProperties { #[doc = "Definition of the certificate."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Certificate { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -749,8 +747,6 @@ impl CertificateUpdateProperties { #[doc = "Definition of the connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Connection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the connection properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1084,8 +1080,6 @@ pub mod content_source { #[doc = "Definition of the credential."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Credential { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the credential properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1272,8 +1266,6 @@ impl DeletedAutomationAccountProperties { #[doc = "Definition of the Dsc Compilation job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscCompilationJob { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of Dsc Compilation job properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1736,8 +1728,6 @@ impl DscMetaConfiguration { #[doc = "Definition of a DscNode"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNode { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a DscNode"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1750,8 +1740,6 @@ impl DscNode { #[doc = "Definition of the dsc node configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for the DscNodeConfiguration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2580,8 +2568,6 @@ pub mod identity { #[doc = "Definition of the job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Job { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of job properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2594,17 +2580,12 @@ impl Job { #[doc = "Job collection item properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobCollectionItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Job collection item properties."] pub properties: JobCollectionItemProperties, } impl JobCollectionItem { pub fn new(properties: JobCollectionItemProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Job collection item properties."] @@ -3660,8 +3641,6 @@ impl OperationListResult { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3726,8 +3705,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4645,8 +4622,6 @@ impl SucScheduleProperties { #[doc = "Definition of the schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Schedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of schedule parameters."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4888,8 +4863,6 @@ pub mod sku { #[doc = "Definition of the source control."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControl { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the source control properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5937,8 +5910,6 @@ impl UsageListResult { #[doc = "Definition of the variable."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Variable { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the variable properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6171,8 +6142,6 @@ impl WatcherUpdateProperties { #[doc = "Definition of the webhook type."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Webhook { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the webhook properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/automation/src/package_2022_08_08/models.rs b/services/mgmt/automation/src/package_2022_08_08/models.rs index a1f7bfd503..4d142143e8 100644 --- a/services/mgmt/automation/src/package_2022_08_08/models.rs +++ b/services/mgmt/automation/src/package_2022_08_08/models.rs @@ -617,8 +617,6 @@ impl AzureQueryProperties { #[doc = "Definition of the certificate."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Certificate { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -749,8 +747,6 @@ impl CertificateUpdateProperties { #[doc = "Definition of the connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Connection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the connection properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1084,8 +1080,6 @@ pub mod content_source { #[doc = "Definition of the credential."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Credential { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the credential properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1287,8 +1281,6 @@ impl Dimension { #[doc = "Definition of the Dsc Compilation job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscCompilationJob { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of Dsc Compilation job properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1751,8 +1743,6 @@ impl DscMetaConfiguration { #[doc = "Definition of a DscNode"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNode { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a DscNode"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1765,8 +1755,6 @@ impl DscNode { #[doc = "Definition of the dsc node configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DscNodeConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for the DscNodeConfiguration"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2595,8 +2583,6 @@ pub mod identity { #[doc = "Definition of the job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Job { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of job properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2609,17 +2595,12 @@ impl Job { #[doc = "Job collection item properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobCollectionItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Job collection item properties."] pub properties: JobCollectionItemProperties, } impl JobCollectionItem { pub fn new(properties: JobCollectionItemProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Job collection item properties."] @@ -3824,8 +3805,6 @@ pub mod operation_properties_format { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3890,8 +3869,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4809,8 +4786,6 @@ impl SucScheduleProperties { #[doc = "Definition of the schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Schedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of schedule parameters."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5052,8 +5027,6 @@ pub mod sku { #[doc = "Definition of the source control."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControl { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the source control properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6115,8 +6088,6 @@ impl UserAssignedIdentitiesProperties { #[doc = "Definition of the variable."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Variable { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the variable properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6349,8 +6320,6 @@ impl WatcherUpdateProperties { #[doc = "Definition of the webhook type."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Webhook { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Definition of the webhook properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/blueprint/src/package_2017_11_preview/models.rs b/services/mgmt/blueprint/src/package_2017_11_preview/models.rs index 2153dc31e8..bb68aefc63 100644 --- a/services/mgmt/blueprint/src/package_2017_11_preview/models.rs +++ b/services/mgmt/blueprint/src/package_2017_11_preview/models.rs @@ -3,19 +3,6 @@ use serde::de::{value, Deserializer, IntoDeserializer}; use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; -#[doc = "Represents a Blueprint artifact."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Artifact { - #[serde(flatten)] - pub azure_resource_base: AzureResourceBase, -} -impl Artifact { - pub fn new() -> Self { - Self { - azure_resource_base: AzureResourceBase::default(), - } - } -} #[doc = "Specifies the kind of Blueprint artifact."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -616,14 +603,12 @@ impl ParameterValueCollection { #[doc = "Blueprint artifact applies Policy assignments."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PolicyAssignmentArtifact { - #[serde(flatten)] - pub artifact: Artifact, #[doc = "PolicyAssignment properties"] pub properties: PolicyAssignmentArtifactProperties, } impl PolicyAssignmentArtifact { - pub fn new(artifact: Artifact, properties: PolicyAssignmentArtifactProperties) -> Self { - Self { artifact, properties } + pub fn new(properties: PolicyAssignmentArtifactProperties) -> Self { + Self { properties } } } #[doc = "PolicyAssignment properties"] @@ -826,14 +811,12 @@ impl ResourceProviderOperationList { #[doc = "Blueprint artifact applies Azure role assignment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RoleAssignmentArtifact { - #[serde(flatten)] - pub artifact: Artifact, #[doc = "Properties of the Role assignment artifact."] pub properties: RoleAssignmentArtifactProperties, } impl RoleAssignmentArtifact { - pub fn new(artifact: Artifact, properties: RoleAssignmentArtifactProperties) -> Self { - Self { artifact, properties } + pub fn new(properties: RoleAssignmentArtifactProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Role assignment artifact."] @@ -970,14 +953,12 @@ pub mod shared_blueprint_properties { #[doc = "Blueprint artifact deploys Azure resource manager template."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TemplateArtifact { - #[serde(flatten)] - pub artifact: Artifact, #[doc = "Properties of a Template Artifact."] pub properties: TemplateArtifactProperties, } impl TemplateArtifact { - pub fn new(artifact: Artifact, properties: TemplateArtifactProperties) -> Self { - Self { artifact, properties } + pub fn new(properties: TemplateArtifactProperties) -> Self { + Self { properties } } } #[doc = "Properties of a Template Artifact."] diff --git a/services/mgmt/blueprint/src/package_2018_11_preview/models.rs b/services/mgmt/blueprint/src/package_2018_11_preview/models.rs index 5db56988b8..564347a611 100644 --- a/services/mgmt/blueprint/src/package_2018_11_preview/models.rs +++ b/services/mgmt/blueprint/src/package_2018_11_preview/models.rs @@ -3,19 +3,6 @@ use serde::de::{value, Deserializer, IntoDeserializer}; use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; -#[doc = "Represents a blueprint artifact."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Artifact { - #[serde(flatten)] - pub azure_resource_base: AzureResourceBase, -} -impl Artifact { - pub fn new() -> Self { - Self { - azure_resource_base: AzureResourceBase::default(), - } - } -} #[doc = "Specifies the kind of blueprint artifact."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -838,14 +825,12 @@ impl ParameterValue { #[doc = "Blueprint artifact that applies a Policy assignment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PolicyAssignmentArtifact { - #[serde(flatten)] - pub artifact: Artifact, #[doc = "Properties of a Policy assignment blueprint artifact."] pub properties: PolicyAssignmentArtifactProperties, } impl PolicyAssignmentArtifact { - pub fn new(artifact: Artifact, properties: PolicyAssignmentArtifactProperties) -> Self { - Self { artifact, properties } + pub fn new(properties: PolicyAssignmentArtifactProperties) -> Self { + Self { properties } } } #[doc = "Properties of a Policy assignment blueprint artifact."] @@ -1035,14 +1020,12 @@ impl ResourceProviderOperationList { #[doc = "Blueprint artifact that applies a Role assignment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RoleAssignmentArtifact { - #[serde(flatten)] - pub artifact: Artifact, #[doc = "Properties of a Role assignment blueprint artifact."] pub properties: RoleAssignmentArtifactProperties, } impl RoleAssignmentArtifact { - pub fn new(artifact: Artifact, properties: RoleAssignmentArtifactProperties) -> Self { - Self { artifact, properties } + pub fn new(properties: RoleAssignmentArtifactProperties) -> Self { + Self { properties } } } #[doc = "Properties of a Role assignment blueprint artifact."] @@ -1163,14 +1146,12 @@ pub mod shared_blueprint_properties { #[doc = "Blueprint artifact that deploys a Resource Manager template."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TemplateArtifact { - #[serde(flatten)] - pub artifact: Artifact, #[doc = "Properties of a Resource Manager template blueprint artifact."] pub properties: TemplateArtifactProperties, } impl TemplateArtifact { - pub fn new(artifact: Artifact, properties: TemplateArtifactProperties) -> Self { - Self { artifact, properties } + pub fn new(properties: TemplateArtifactProperties) -> Self { + Self { properties } } } #[doc = "Properties of a Resource Manager template blueprint artifact."] diff --git a/services/mgmt/botservice/src/package_2020_06_02/models.rs b/services/mgmt/botservice/src/package_2020_06_02/models.rs index b66f16f0f8..be65a39ff2 100644 --- a/services/mgmt/botservice/src/package_2020_06_02/models.rs +++ b/services/mgmt/botservice/src/package_2020_06_02/models.rs @@ -6,15 +6,13 @@ use std::str::FromStr; #[doc = "Alexa channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AlexaChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Alexa channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AlexaChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Alexa channel."] @@ -180,14 +178,6 @@ impl BotResponseList { Self::default() } } -#[doc = "Channel definition"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Channel {} -impl Channel { - pub fn new() -> Self { - Self {} - } -} #[doc = "The channel name"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "channelName")] @@ -364,15 +354,13 @@ impl ConnectionSettingResponseList { #[doc = "Direct Line channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DirectLineChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Direct Line channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl DirectLineChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Direct Line channel."] @@ -445,15 +433,13 @@ impl DirectLineSite { #[doc = "DirectLine Speech channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DirectLineSpeechChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the DirectLine Speech channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl DirectLineSpeechChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the DirectLine Speech channel."] @@ -489,15 +475,13 @@ impl DirectLineSpeechChannelProperties { #[doc = "Email channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct EmailChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Email channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl EmailChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Email channel."] @@ -556,15 +540,13 @@ impl ErrorBody { #[doc = "Facebook channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FacebookChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Facebook channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl FacebookChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Facebook channel."] @@ -622,15 +604,13 @@ impl FacebookPage { #[doc = "Kik channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KikChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Kik channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl KikChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Kik channel."] @@ -707,15 +687,13 @@ impl Serialize for Kind { #[doc = "Line channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LineChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Line channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl LineChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Line channel."] @@ -761,15 +739,13 @@ impl LineRegistration { #[doc = "Microsoft Teams channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MsTeamsChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Microsoft Teams channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl MsTeamsChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Microsoft Teams channel."] @@ -1102,15 +1078,13 @@ impl Serialize for SkuName { #[doc = "Skype channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SkypeChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Microsoft Teams channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SkypeChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Microsoft Teams channel."] @@ -1162,15 +1136,13 @@ impl SkypeChannelProperties { #[doc = "Slack channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SlackChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Slack channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SlackChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Slack channel."] @@ -1226,15 +1198,13 @@ impl SlackChannelProperties { #[doc = "Sms channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SmsChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Sms channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SmsChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Sms channel."] @@ -1269,15 +1239,13 @@ impl SmsChannelProperties { #[doc = "Telegram channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TelegramChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Telegram channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl TelegramChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Telegram channel."] @@ -1305,15 +1273,13 @@ impl TelegramChannelProperties { #[doc = "Web Chat channel definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebChatChannel { - #[serde(flatten)] - pub channel: Channel, #[doc = "The parameters to provide for the Web Chat channel."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl WebChatChannel { - pub fn new(channel: Channel) -> Self { - Self { channel, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The parameters to provide for the Web Chat channel."] diff --git a/services/mgmt/cdn/src/package_2021_06/models.rs b/services/mgmt/cdn/src/package_2021_06/models.rs index 1880512dce..d680742aa3 100644 --- a/services/mgmt/cdn/src/package_2021_06/models.rs +++ b/services/mgmt/cdn/src/package_2021_06/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdDomain { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the domain to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -404,8 +402,6 @@ impl AfdEndpointUpdateParameters { #[doc = "CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdOrigin { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -418,8 +414,6 @@ impl AfdOrigin { #[doc = "AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdOriginGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -998,13 +992,10 @@ impl AzureFirstPartyManagedCertificate { } #[doc = "Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureFirstPartyManagedCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, -} +pub struct AzureFirstPartyManagedCertificateParameters {} impl AzureFirstPartyManagedCertificateParameters { - pub fn new(secret_parameters: SecretParameters) -> Self { - Self { secret_parameters } + pub fn new() -> Self { + Self {} } } #[doc = "Caching settings for a caching-type route. To disable caching, do not provide a cacheConfiguration object."] @@ -1964,8 +1955,6 @@ pub mod cookies_match_condition_parameters { #[doc = "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomDomain { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the custom domain to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2460,8 +2449,6 @@ impl CustomerCertificate { #[doc = "Customer Certificate used for https"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomerCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Reference to another resource."] #[serde(rename = "secretSource")] pub secret_source: ResourceReference, @@ -2493,9 +2480,8 @@ pub struct CustomerCertificateParameters { pub thumbprint: Option, } impl CustomerCertificateParameters { - pub fn new(secret_parameters: SecretParameters, secret_source: ResourceReference) -> Self { + pub fn new(secret_source: ResourceReference) -> Self { Self { - secret_parameters, secret_source, secret_version: None, use_latest_version: None, @@ -2686,14 +2672,6 @@ impl DeliveryRule { } } } -#[doc = "An action for the delivery rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeliveryRuleAction {} -impl DeliveryRuleAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The name of the action for the delivery rule."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "name")] @@ -2711,57 +2689,34 @@ pub enum DeliveryRuleActionUnion { #[doc = "Defines the cache expiration action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCacheExpirationAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the cache expiration action."] pub parameters: CacheExpirationActionParameters, } impl DeliveryRuleCacheExpirationAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: CacheExpirationActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: CacheExpirationActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the cache-key query string action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCacheKeyQueryStringAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the cache-key query string action."] pub parameters: CacheKeyQueryStringActionParameters, } impl DeliveryRuleCacheKeyQueryStringAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: CacheKeyQueryStringActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: CacheKeyQueryStringActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the ClientPort condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleClientPortCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for ClientPort match conditions"] pub parameters: ClientPortMatchConditionParameters, } impl DeliveryRuleClientPortCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: ClientPortMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } - } -} -#[doc = "A condition for the delivery rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeliveryRuleCondition {} -impl DeliveryRuleCondition { - pub fn new() -> Self { - Self {} + pub fn new(parameters: ClientPortMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "The name of the condition for the delivery rule."] @@ -2791,337 +2746,232 @@ pub enum DeliveryRuleConditionUnion { #[doc = "Defines the Cookies condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCookiesCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for Cookies match conditions"] pub parameters: CookiesMatchConditionParameters, } impl DeliveryRuleCookiesCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: CookiesMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: CookiesMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the HostName condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleHostNameCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for HostName match conditions"] pub parameters: HostNameMatchConditionParameters, } impl DeliveryRuleHostNameCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: HostNameMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: HostNameMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the HttpVersion condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleHttpVersionCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for HttpVersion match conditions"] pub parameters: HttpVersionMatchConditionParameters, } impl DeliveryRuleHttpVersionCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: HttpVersionMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: HttpVersionMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the IsDevice condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleIsDeviceCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for IsDevice match conditions"] pub parameters: IsDeviceMatchConditionParameters, } impl DeliveryRuleIsDeviceCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: IsDeviceMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: IsDeviceMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the PostArgs condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRulePostArgsCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for PostArgs match conditions"] pub parameters: PostArgsMatchConditionParameters, } impl DeliveryRulePostArgsCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: PostArgsMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: PostArgsMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the QueryString condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleQueryStringCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for QueryString match conditions"] pub parameters: QueryStringMatchConditionParameters, } impl DeliveryRuleQueryStringCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: QueryStringMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: QueryStringMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RemoteAddress condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRemoteAddressCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RemoteAddress match conditions"] pub parameters: RemoteAddressMatchConditionParameters, } impl DeliveryRuleRemoteAddressCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RemoteAddressMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RemoteAddressMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestBody condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestBodyCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestBody match conditions"] pub parameters: RequestBodyMatchConditionParameters, } impl DeliveryRuleRequestBodyCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestBodyMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestBodyMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the request header action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestHeaderAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the request header action."] pub parameters: HeaderActionParameters, } impl DeliveryRuleRequestHeaderAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: HeaderActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: HeaderActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestHeader condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestHeaderCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestHeader match conditions"] pub parameters: RequestHeaderMatchConditionParameters, } impl DeliveryRuleRequestHeaderCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestHeaderMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestHeaderMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestMethod condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestMethodCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestMethod match conditions"] pub parameters: RequestMethodMatchConditionParameters, } impl DeliveryRuleRequestMethodCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestMethodMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestMethodMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestScheme condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestSchemeCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestScheme match conditions "] pub parameters: RequestSchemeMatchConditionParameters, } impl DeliveryRuleRequestSchemeCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestSchemeMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestSchemeMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestUri condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestUriCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestUri match conditions"] pub parameters: RequestUriMatchConditionParameters, } impl DeliveryRuleRequestUriCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestUriMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestUriMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the response header action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleResponseHeaderAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the request header action."] pub parameters: HeaderActionParameters, } impl DeliveryRuleResponseHeaderAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: HeaderActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: HeaderActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the route configuration override action for the delivery rule. Only applicable to Frontdoor Standard/Premium Profiles."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRouteConfigurationOverrideAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the route configuration override action."] pub parameters: RouteConfigurationOverrideActionParameters, } impl DeliveryRuleRouteConfigurationOverrideAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: RouteConfigurationOverrideActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: RouteConfigurationOverrideActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the ServerPort condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleServerPortCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for ServerPort match conditions"] pub parameters: ServerPortMatchConditionParameters, } impl DeliveryRuleServerPortCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: ServerPortMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: ServerPortMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the SocketAddress condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleSocketAddrCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for SocketAddress match conditions"] pub parameters: SocketAddrMatchConditionParameters, } impl DeliveryRuleSocketAddrCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: SocketAddrMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: SocketAddrMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the SslProtocol condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleSslProtocolCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for SslProtocol match conditions"] pub parameters: SslProtocolMatchConditionParameters, } impl DeliveryRuleSslProtocolCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: SslProtocolMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: SslProtocolMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlFileExtension condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlFileExtensionCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlFileExtension match conditions"] pub parameters: UrlFileExtensionMatchConditionParameters, } impl DeliveryRuleUrlFileExtensionCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlFileExtensionMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlFileExtensionMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlFileName condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlFileNameCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlFilename match conditions"] pub parameters: UrlFileNameMatchConditionParameters, } impl DeliveryRuleUrlFileNameCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlFileNameMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlFileNameMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlPath condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlPathCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlPath match conditions"] pub parameters: UrlPathMatchConditionParameters, } impl DeliveryRuleUrlPathCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlPathMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlPathMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Type of operation: get, read, delete, etc."] @@ -3160,8 +3010,6 @@ impl DomainValidationProperties { #[doc = "Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EdgeNode { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties required to create an edgenode."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4298,8 +4146,6 @@ impl ManagedCertificate { #[doc = "Managed Certificate used for https"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManagedCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Subject name in the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, @@ -4308,9 +4154,8 @@ pub struct ManagedCertificateParameters { pub expiration_date: Option, } impl ManagedCertificateParameters { - pub fn new(secret_parameters: SecretParameters) -> Self { + pub fn new() -> Self { Self { - secret_parameters, subject: None, expiration_date: None, } @@ -4934,8 +4779,6 @@ impl Serialize for OptimizationType { #[doc = "CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Origin { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4948,8 +4791,6 @@ impl Origin { #[doc = "Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OriginGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5044,17 +4885,12 @@ pub mod origin_group_override { #[doc = "Defines the origin group override action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OriginGroupOverrideAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the origin group override action."] pub parameters: OriginGroupOverrideActionParameters, } impl OriginGroupOverrideAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: OriginGroupOverrideActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: OriginGroupOverrideActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the origin group override action."] @@ -6684,8 +6520,6 @@ pub mod response_based_origin_error_detection_parameters { #[doc = "Friendly Routes name mapping to the any Routes or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Route { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Routes to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7012,8 +6846,6 @@ pub mod route_update_properties_parameters { #[doc = "Friendly Rules name mapping to the any Rules or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Rule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Rules to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7067,8 +6899,6 @@ impl RuleProperties { #[doc = "Friendly RuleSet name mapping to the any RuleSet or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RuleSet { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Rule Set to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7209,8 +7039,6 @@ pub mod rule_update_properties_parameters { #[doc = "Friendly Secret name mapping to the any Secret or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Secret { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Secret to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7245,14 +7073,6 @@ impl SecretListResult { Self::default() } } -#[doc = "The json object containing secret parameters"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecretParameters {} -impl SecretParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the secret resource."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -7325,8 +7145,6 @@ impl Serialize for SecretType { #[doc = "SecurityPolicy association for AzureFrontDoor profile"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SecurityPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The json object that contains properties required to create a security policy"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7378,14 +7196,6 @@ impl SecurityPolicyProperties { Self::default() } } -#[doc = "The json object containing security policy parameters"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecurityPolicyPropertiesParameters {} -impl SecurityPolicyPropertiesParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the Security policy to create."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -7443,8 +7253,6 @@ impl SecurityPolicyWebApplicationFirewallAssociation { #[doc = "The json object containing security policy waf parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecurityPolicyWebApplicationFirewallParameters { - #[serde(flatten)] - pub security_policy_properties_parameters: SecurityPolicyPropertiesParameters, #[doc = "Reference to another resource."] #[serde(rename = "wafPolicy", default, skip_serializing_if = "Option::is_none")] pub waf_policy: Option, @@ -7457,9 +7265,8 @@ pub struct SecurityPolicyWebApplicationFirewallParameters { pub associations: Vec, } impl SecurityPolicyWebApplicationFirewallParameters { - pub fn new(security_policy_properties_parameters: SecurityPolicyPropertiesParameters) -> Self { + pub fn new() -> Self { Self { - security_policy_properties_parameters, waf_policy: None, associations: Vec::new(), } @@ -8349,17 +8156,12 @@ pub mod url_path_match_condition_parameters { #[doc = "Defines the url redirect action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlRedirectAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the url redirect action."] pub parameters: UrlRedirectActionParameters, } impl UrlRedirectAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlRedirectActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlRedirectActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the url redirect action."] @@ -8489,17 +8291,12 @@ pub mod url_redirect_action_parameters { #[doc = "Defines the url rewrite action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlRewriteAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the url rewrite action."] pub parameters: UrlRewriteActionParameters, } impl UrlRewriteAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlRewriteActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlRewriteActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the url rewrite action."] @@ -8536,17 +8333,12 @@ pub mod url_rewrite_action_parameters { #[doc = "Defines the url signing action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlSigningAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the Url Signing action."] pub parameters: UrlSigningActionParameters, } impl UrlSigningAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlSigningActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlSigningActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the Url Signing action."] @@ -8639,8 +8431,6 @@ impl UrlSigningKey { #[doc = "Url signing key parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlSigningKeyParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash."] #[serde(rename = "keyId")] pub key_id: String, @@ -8652,9 +8442,8 @@ pub struct UrlSigningKeyParameters { pub secret_version: Option, } impl UrlSigningKeyParameters { - pub fn new(secret_parameters: SecretParameters, key_id: String, secret_source: ResourceReference) -> Self { + pub fn new(key_id: String, secret_source: ResourceReference) -> Self { Self { - secret_parameters, key_id, secret_source, secret_version: None, diff --git a/services/mgmt/cdn/src/package_2023_05/models.rs b/services/mgmt/cdn/src/package_2023_05/models.rs index 583bccb731..5fc275f092 100644 --- a/services/mgmt/cdn/src/package_2023_05/models.rs +++ b/services/mgmt/cdn/src/package_2023_05/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdDomain { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the domain to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -408,8 +406,6 @@ impl AfdEndpointUpdateParameters { #[doc = "Azure Front Door origin is the source of the content being delivered via Azure Front Door. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdOrigin { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -422,8 +418,6 @@ impl AfdOrigin { #[doc = "AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from Azure Front Door."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdOriginGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1003,8 +997,6 @@ impl AzureFirstPartyManagedCertificate { #[doc = "Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFirstPartyManagedCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Reference to another resource."] #[serde(rename = "secretSource", default, skip_serializing_if = "Option::is_none")] pub secret_source: Option, @@ -1030,9 +1022,8 @@ pub struct AzureFirstPartyManagedCertificateParameters { pub thumbprint: Option, } impl AzureFirstPartyManagedCertificateParameters { - pub fn new(secret_parameters: SecretParameters) -> Self { + pub fn new() -> Self { Self { - secret_parameters, secret_source: None, subject: None, expiration_date: None, @@ -2095,8 +2086,6 @@ pub mod cookies_match_condition_parameters { #[doc = "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomDomain { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the custom domain to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2591,8 +2580,6 @@ impl CustomerCertificate { #[doc = "Customer Certificate used for https"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomerCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Reference to another resource."] #[serde(rename = "secretSource")] pub secret_source: ResourceReference, @@ -2624,9 +2611,8 @@ pub struct CustomerCertificateParameters { pub thumbprint: Option, } impl CustomerCertificateParameters { - pub fn new(secret_parameters: SecretParameters, secret_source: ResourceReference) -> Self { + pub fn new(secret_source: ResourceReference) -> Self { Self { - secret_parameters, secret_source, secret_version: None, use_latest_version: None, @@ -2817,14 +2803,6 @@ impl DeliveryRule { } } } -#[doc = "An action for the delivery rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeliveryRuleAction {} -impl DeliveryRuleAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The name of the action for the delivery rule."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "name")] @@ -2842,57 +2820,34 @@ pub enum DeliveryRuleActionUnion { #[doc = "Defines the cache expiration action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCacheExpirationAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the cache expiration action."] pub parameters: CacheExpirationActionParameters, } impl DeliveryRuleCacheExpirationAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: CacheExpirationActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: CacheExpirationActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the cache-key query string action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCacheKeyQueryStringAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the cache-key query string action."] pub parameters: CacheKeyQueryStringActionParameters, } impl DeliveryRuleCacheKeyQueryStringAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: CacheKeyQueryStringActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: CacheKeyQueryStringActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the ClientPort condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleClientPortCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for ClientPort match conditions"] pub parameters: ClientPortMatchConditionParameters, } impl DeliveryRuleClientPortCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: ClientPortMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } - } -} -#[doc = "A condition for the delivery rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeliveryRuleCondition {} -impl DeliveryRuleCondition { - pub fn new() -> Self { - Self {} + pub fn new(parameters: ClientPortMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "The name of the condition for the delivery rule."] @@ -2922,337 +2877,232 @@ pub enum DeliveryRuleConditionUnion { #[doc = "Defines the Cookies condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCookiesCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for Cookies match conditions"] pub parameters: CookiesMatchConditionParameters, } impl DeliveryRuleCookiesCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: CookiesMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: CookiesMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the HostName condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleHostNameCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for HostName match conditions"] pub parameters: HostNameMatchConditionParameters, } impl DeliveryRuleHostNameCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: HostNameMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: HostNameMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the HttpVersion condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleHttpVersionCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for HttpVersion match conditions"] pub parameters: HttpVersionMatchConditionParameters, } impl DeliveryRuleHttpVersionCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: HttpVersionMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: HttpVersionMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the IsDevice condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleIsDeviceCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for IsDevice match conditions"] pub parameters: IsDeviceMatchConditionParameters, } impl DeliveryRuleIsDeviceCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: IsDeviceMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: IsDeviceMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the PostArgs condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRulePostArgsCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for PostArgs match conditions"] pub parameters: PostArgsMatchConditionParameters, } impl DeliveryRulePostArgsCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: PostArgsMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: PostArgsMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the QueryString condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleQueryStringCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for QueryString match conditions"] pub parameters: QueryStringMatchConditionParameters, } impl DeliveryRuleQueryStringCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: QueryStringMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: QueryStringMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RemoteAddress condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRemoteAddressCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RemoteAddress match conditions"] pub parameters: RemoteAddressMatchConditionParameters, } impl DeliveryRuleRemoteAddressCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RemoteAddressMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RemoteAddressMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestBody condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestBodyCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestBody match conditions"] pub parameters: RequestBodyMatchConditionParameters, } impl DeliveryRuleRequestBodyCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestBodyMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestBodyMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the request header action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestHeaderAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the request header action."] pub parameters: HeaderActionParameters, } impl DeliveryRuleRequestHeaderAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: HeaderActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: HeaderActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestHeader condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestHeaderCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestHeader match conditions"] pub parameters: RequestHeaderMatchConditionParameters, } impl DeliveryRuleRequestHeaderCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestHeaderMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestHeaderMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestMethod condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestMethodCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestMethod match conditions"] pub parameters: RequestMethodMatchConditionParameters, } impl DeliveryRuleRequestMethodCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestMethodMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestMethodMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestScheme condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestSchemeCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestScheme match conditions "] pub parameters: RequestSchemeMatchConditionParameters, } impl DeliveryRuleRequestSchemeCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestSchemeMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestSchemeMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestUri condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestUriCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestUri match conditions"] pub parameters: RequestUriMatchConditionParameters, } impl DeliveryRuleRequestUriCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestUriMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestUriMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the response header action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleResponseHeaderAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the request header action."] pub parameters: HeaderActionParameters, } impl DeliveryRuleResponseHeaderAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: HeaderActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: HeaderActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the route configuration override action for the delivery rule. Only applicable to Frontdoor Standard/Premium Profiles."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRouteConfigurationOverrideAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the route configuration override action."] pub parameters: RouteConfigurationOverrideActionParameters, } impl DeliveryRuleRouteConfigurationOverrideAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: RouteConfigurationOverrideActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: RouteConfigurationOverrideActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the ServerPort condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleServerPortCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for ServerPort match conditions"] pub parameters: ServerPortMatchConditionParameters, } impl DeliveryRuleServerPortCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: ServerPortMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: ServerPortMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the SocketAddress condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleSocketAddrCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for SocketAddress match conditions"] pub parameters: SocketAddrMatchConditionParameters, } impl DeliveryRuleSocketAddrCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: SocketAddrMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: SocketAddrMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the SslProtocol condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleSslProtocolCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for SslProtocol match conditions"] pub parameters: SslProtocolMatchConditionParameters, } impl DeliveryRuleSslProtocolCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: SslProtocolMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: SslProtocolMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlFileExtension condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlFileExtensionCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlFileExtension match conditions"] pub parameters: UrlFileExtensionMatchConditionParameters, } impl DeliveryRuleUrlFileExtensionCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlFileExtensionMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlFileExtensionMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlFileName condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlFileNameCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlFilename match conditions"] pub parameters: UrlFileNameMatchConditionParameters, } impl DeliveryRuleUrlFileNameCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlFileNameMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlFileNameMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlPath condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlPathCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlPath match conditions"] pub parameters: UrlPathMatchConditionParameters, } impl DeliveryRuleUrlPathCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlPathMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlPathMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Type of operation: get, read, delete, etc."] @@ -3291,8 +3141,6 @@ impl DomainValidationProperties { #[doc = "Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EdgeNode { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties required to create an edgenode."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4429,8 +4277,6 @@ impl ManagedCertificate { #[doc = "Managed Certificate used for https"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManagedCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Subject name in the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, @@ -4439,9 +4285,8 @@ pub struct ManagedCertificateParameters { pub expiration_date: Option, } impl ManagedCertificateParameters { - pub fn new(secret_parameters: SecretParameters) -> Self { + pub fn new() -> Self { Self { - secret_parameters, subject: None, expiration_date: None, } @@ -5261,8 +5106,6 @@ impl Serialize for OptimizationType { #[doc = "CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Origin { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5275,8 +5118,6 @@ impl Origin { #[doc = "Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OriginGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5371,17 +5212,12 @@ pub mod origin_group_override { #[doc = "Defines the origin group override action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OriginGroupOverrideAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the origin group override action."] pub parameters: OriginGroupOverrideActionParameters, } impl OriginGroupOverrideAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: OriginGroupOverrideActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: OriginGroupOverrideActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the origin group override action."] @@ -7061,8 +6897,6 @@ pub mod response_based_origin_error_detection_parameters { #[doc = "Friendly Routes name mapping to the any Routes or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Route { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Routes to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7389,8 +7223,6 @@ pub mod route_update_properties_parameters { #[doc = "Friendly Rules name mapping to the any Rules or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Rule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Rules to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7444,8 +7276,6 @@ impl RuleProperties { #[doc = "Friendly RuleSet name mapping to the any RuleSet or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RuleSet { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Rule Set to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7586,8 +7416,6 @@ pub mod rule_update_properties_parameters { #[doc = "Friendly Secret name mapping to the any Secret or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Secret { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Secret to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7622,14 +7450,6 @@ impl SecretListResult { Self::default() } } -#[doc = "The json object containing secret parameters"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecretParameters {} -impl SecretParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the secret resource."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -7702,8 +7522,6 @@ impl Serialize for SecretType { #[doc = "SecurityPolicy association for AzureFrontDoor profile"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SecurityPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The json object that contains properties required to create a security policy"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7755,14 +7573,6 @@ impl SecurityPolicyProperties { Self::default() } } -#[doc = "The json object containing security policy parameters"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecurityPolicyPropertiesParameters {} -impl SecurityPolicyPropertiesParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the Security policy to create."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -7820,8 +7630,6 @@ impl SecurityPolicyWebApplicationFirewallAssociation { #[doc = "The json object containing security policy waf parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecurityPolicyWebApplicationFirewallParameters { - #[serde(flatten)] - pub security_policy_properties_parameters: SecurityPolicyPropertiesParameters, #[doc = "Reference to another resource."] #[serde(rename = "wafPolicy", default, skip_serializing_if = "Option::is_none")] pub waf_policy: Option, @@ -7834,9 +7642,8 @@ pub struct SecurityPolicyWebApplicationFirewallParameters { pub associations: Vec, } impl SecurityPolicyWebApplicationFirewallParameters { - pub fn new(security_policy_properties_parameters: SecurityPolicyPropertiesParameters) -> Self { + pub fn new() -> Self { Self { - security_policy_properties_parameters, waf_policy: None, associations: Vec::new(), } @@ -8726,17 +8533,12 @@ pub mod url_path_match_condition_parameters { #[doc = "Defines the url redirect action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlRedirectAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the url redirect action."] pub parameters: UrlRedirectActionParameters, } impl UrlRedirectAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlRedirectActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlRedirectActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the url redirect action."] @@ -8866,17 +8668,12 @@ pub mod url_redirect_action_parameters { #[doc = "Defines the url rewrite action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlRewriteAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the url rewrite action."] pub parameters: UrlRewriteActionParameters, } impl UrlRewriteAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlRewriteActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlRewriteActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the url rewrite action."] @@ -8913,17 +8710,12 @@ pub mod url_rewrite_action_parameters { #[doc = "Defines the url signing action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlSigningAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the Url Signing action."] pub parameters: UrlSigningActionParameters, } impl UrlSigningAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlSigningActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlSigningActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the Url Signing action."] @@ -9016,8 +8808,6 @@ impl UrlSigningKey { #[doc = "Url signing key parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlSigningKeyParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash."] #[serde(rename = "keyId")] pub key_id: String, @@ -9029,9 +8819,8 @@ pub struct UrlSigningKeyParameters { pub secret_version: Option, } impl UrlSigningKeyParameters { - pub fn new(secret_parameters: SecretParameters, key_id: String, secret_source: ResourceReference) -> Self { + pub fn new(key_id: String, secret_source: ResourceReference) -> Self { Self { - secret_parameters, key_id, secret_source, secret_version: None, diff --git a/services/mgmt/cdn/src/package_preview_2022_05/models.rs b/services/mgmt/cdn/src/package_preview_2022_05/models.rs index 9ef3af86ea..022b1b1c10 100644 --- a/services/mgmt/cdn/src/package_preview_2022_05/models.rs +++ b/services/mgmt/cdn/src/package_preview_2022_05/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdDomain { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the domain to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -408,8 +406,6 @@ impl AfdEndpointUpdateParameters { #[doc = "CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdOrigin { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -422,8 +418,6 @@ impl AfdOrigin { #[doc = "AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdOriginGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1003,8 +997,6 @@ impl AzureFirstPartyManagedCertificate { #[doc = "Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFirstPartyManagedCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Reference to another resource."] #[serde(rename = "secretSource", default, skip_serializing_if = "Option::is_none")] pub secret_source: Option, @@ -1030,9 +1022,8 @@ pub struct AzureFirstPartyManagedCertificateParameters { pub thumbprint: Option, } impl AzureFirstPartyManagedCertificateParameters { - pub fn new(secret_parameters: SecretParameters) -> Self { + pub fn new() -> Self { Self { - secret_parameters, secret_source: None, subject: None, expiration_date: None, @@ -2079,8 +2070,6 @@ pub mod cookies_match_condition_parameters { #[doc = "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomDomain { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the custom domain to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2575,8 +2564,6 @@ impl CustomerCertificate { #[doc = "Customer Certificate used for https"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomerCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Reference to another resource."] #[serde(rename = "secretSource")] pub secret_source: ResourceReference, @@ -2608,9 +2595,8 @@ pub struct CustomerCertificateParameters { pub thumbprint: Option, } impl CustomerCertificateParameters { - pub fn new(secret_parameters: SecretParameters, secret_source: ResourceReference) -> Self { + pub fn new(secret_source: ResourceReference) -> Self { Self { - secret_parameters, secret_source, secret_version: None, use_latest_version: None, @@ -2801,14 +2787,6 @@ impl DeliveryRule { } } } -#[doc = "An action for the delivery rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeliveryRuleAction {} -impl DeliveryRuleAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The name of the action for the delivery rule."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "name")] @@ -2826,57 +2804,34 @@ pub enum DeliveryRuleActionUnion { #[doc = "Defines the cache expiration action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCacheExpirationAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the cache expiration action."] pub parameters: CacheExpirationActionParameters, } impl DeliveryRuleCacheExpirationAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: CacheExpirationActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: CacheExpirationActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the cache-key query string action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCacheKeyQueryStringAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the cache-key query string action."] pub parameters: CacheKeyQueryStringActionParameters, } impl DeliveryRuleCacheKeyQueryStringAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: CacheKeyQueryStringActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: CacheKeyQueryStringActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the ClientPort condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleClientPortCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for ClientPort match conditions"] pub parameters: ClientPortMatchConditionParameters, } impl DeliveryRuleClientPortCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: ClientPortMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } - } -} -#[doc = "A condition for the delivery rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeliveryRuleCondition {} -impl DeliveryRuleCondition { - pub fn new() -> Self { - Self {} + pub fn new(parameters: ClientPortMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "The name of the condition for the delivery rule."] @@ -2906,337 +2861,232 @@ pub enum DeliveryRuleConditionUnion { #[doc = "Defines the Cookies condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCookiesCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for Cookies match conditions"] pub parameters: CookiesMatchConditionParameters, } impl DeliveryRuleCookiesCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: CookiesMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: CookiesMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the HostName condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleHostNameCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for HostName match conditions"] pub parameters: HostNameMatchConditionParameters, } impl DeliveryRuleHostNameCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: HostNameMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: HostNameMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the HttpVersion condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleHttpVersionCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for HttpVersion match conditions"] pub parameters: HttpVersionMatchConditionParameters, } impl DeliveryRuleHttpVersionCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: HttpVersionMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: HttpVersionMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the IsDevice condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleIsDeviceCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for IsDevice match conditions"] pub parameters: IsDeviceMatchConditionParameters, } impl DeliveryRuleIsDeviceCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: IsDeviceMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: IsDeviceMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the PostArgs condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRulePostArgsCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for PostArgs match conditions"] pub parameters: PostArgsMatchConditionParameters, } impl DeliveryRulePostArgsCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: PostArgsMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: PostArgsMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the QueryString condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleQueryStringCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for QueryString match conditions"] pub parameters: QueryStringMatchConditionParameters, } impl DeliveryRuleQueryStringCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: QueryStringMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: QueryStringMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RemoteAddress condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRemoteAddressCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RemoteAddress match conditions"] pub parameters: RemoteAddressMatchConditionParameters, } impl DeliveryRuleRemoteAddressCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RemoteAddressMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RemoteAddressMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestBody condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestBodyCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestBody match conditions"] pub parameters: RequestBodyMatchConditionParameters, } impl DeliveryRuleRequestBodyCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestBodyMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestBodyMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the request header action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestHeaderAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the request header action."] pub parameters: HeaderActionParameters, } impl DeliveryRuleRequestHeaderAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: HeaderActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: HeaderActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestHeader condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestHeaderCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestHeader match conditions"] pub parameters: RequestHeaderMatchConditionParameters, } impl DeliveryRuleRequestHeaderCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestHeaderMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestHeaderMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestMethod condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestMethodCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestMethod match conditions"] pub parameters: RequestMethodMatchConditionParameters, } impl DeliveryRuleRequestMethodCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestMethodMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestMethodMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestScheme condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestSchemeCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestScheme match conditions "] pub parameters: RequestSchemeMatchConditionParameters, } impl DeliveryRuleRequestSchemeCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestSchemeMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestSchemeMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestUri condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestUriCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestUri match conditions"] pub parameters: RequestUriMatchConditionParameters, } impl DeliveryRuleRequestUriCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestUriMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestUriMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the response header action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleResponseHeaderAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the request header action."] pub parameters: HeaderActionParameters, } impl DeliveryRuleResponseHeaderAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: HeaderActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: HeaderActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the route configuration override action for the delivery rule. Only applicable to Frontdoor Standard/Premium Profiles."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRouteConfigurationOverrideAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the route configuration override action."] pub parameters: RouteConfigurationOverrideActionParameters, } impl DeliveryRuleRouteConfigurationOverrideAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: RouteConfigurationOverrideActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: RouteConfigurationOverrideActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the ServerPort condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleServerPortCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for ServerPort match conditions"] pub parameters: ServerPortMatchConditionParameters, } impl DeliveryRuleServerPortCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: ServerPortMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: ServerPortMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the SocketAddress condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleSocketAddrCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for SocketAddress match conditions"] pub parameters: SocketAddrMatchConditionParameters, } impl DeliveryRuleSocketAddrCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: SocketAddrMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: SocketAddrMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the SslProtocol condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleSslProtocolCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for SslProtocol match conditions"] pub parameters: SslProtocolMatchConditionParameters, } impl DeliveryRuleSslProtocolCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: SslProtocolMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: SslProtocolMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlFileExtension condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlFileExtensionCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlFileExtension match conditions"] pub parameters: UrlFileExtensionMatchConditionParameters, } impl DeliveryRuleUrlFileExtensionCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlFileExtensionMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlFileExtensionMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlFileName condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlFileNameCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlFilename match conditions"] pub parameters: UrlFileNameMatchConditionParameters, } impl DeliveryRuleUrlFileNameCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlFileNameMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlFileNameMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlPath condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlPathCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlPath match conditions"] pub parameters: UrlPathMatchConditionParameters, } impl DeliveryRuleUrlPathCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlPathMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlPathMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Type of operation: get, read, delete, etc."] @@ -3275,8 +3125,6 @@ impl DomainValidationProperties { #[doc = "Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EdgeNode { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties required to create an edgenode."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4413,8 +4261,6 @@ impl ManagedCertificate { #[doc = "Managed Certificate used for https"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManagedCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Subject name in the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, @@ -4423,9 +4269,8 @@ pub struct ManagedCertificateParameters { pub expiration_date: Option, } impl ManagedCertificateParameters { - pub fn new(secret_parameters: SecretParameters) -> Self { + pub fn new() -> Self { Self { - secret_parameters, subject: None, expiration_date: None, } @@ -5133,8 +4978,6 @@ impl Serialize for OptimizationType { #[doc = "CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Origin { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5147,8 +4990,6 @@ impl Origin { #[doc = "Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OriginGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5243,17 +5084,12 @@ pub mod origin_group_override { #[doc = "Defines the origin group override action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OriginGroupOverrideAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the origin group override action."] pub parameters: OriginGroupOverrideActionParameters, } impl OriginGroupOverrideAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: OriginGroupOverrideActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: OriginGroupOverrideActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the origin group override action."] @@ -6896,8 +6732,6 @@ pub mod response_based_origin_error_detection_parameters { #[doc = "Friendly Routes name mapping to the any Routes or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Route { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Routes to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7224,8 +7058,6 @@ pub mod route_update_properties_parameters { #[doc = "Friendly Rules name mapping to the any Rules or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Rule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Rules to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7279,8 +7111,6 @@ impl RuleProperties { #[doc = "Friendly RuleSet name mapping to the any RuleSet or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RuleSet { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Rule Set to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7421,8 +7251,6 @@ pub mod rule_update_properties_parameters { #[doc = "Friendly Secret name mapping to the any Secret or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Secret { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Secret to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7457,14 +7285,6 @@ impl SecretListResult { Self::default() } } -#[doc = "The json object containing secret parameters"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecretParameters {} -impl SecretParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the secret resource."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -7537,8 +7357,6 @@ impl Serialize for SecretType { #[doc = "SecurityPolicy association for AzureFrontDoor profile"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SecurityPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The json object that contains properties required to create a security policy"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7590,14 +7408,6 @@ impl SecurityPolicyProperties { Self::default() } } -#[doc = "The json object containing security policy parameters"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecurityPolicyPropertiesParameters {} -impl SecurityPolicyPropertiesParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the Security policy to create."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -7655,8 +7465,6 @@ impl SecurityPolicyWebApplicationFirewallAssociation { #[doc = "The json object containing security policy waf parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecurityPolicyWebApplicationFirewallParameters { - #[serde(flatten)] - pub security_policy_properties_parameters: SecurityPolicyPropertiesParameters, #[doc = "Reference to another resource."] #[serde(rename = "wafPolicy", default, skip_serializing_if = "Option::is_none")] pub waf_policy: Option, @@ -7669,9 +7477,8 @@ pub struct SecurityPolicyWebApplicationFirewallParameters { pub associations: Vec, } impl SecurityPolicyWebApplicationFirewallParameters { - pub fn new(security_policy_properties_parameters: SecurityPolicyPropertiesParameters) -> Self { + pub fn new() -> Self { Self { - security_policy_properties_parameters, waf_policy: None, associations: Vec::new(), } @@ -8561,17 +8368,12 @@ pub mod url_path_match_condition_parameters { #[doc = "Defines the url redirect action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlRedirectAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the url redirect action."] pub parameters: UrlRedirectActionParameters, } impl UrlRedirectAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlRedirectActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlRedirectActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the url redirect action."] @@ -8701,17 +8503,12 @@ pub mod url_redirect_action_parameters { #[doc = "Defines the url rewrite action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlRewriteAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the url rewrite action."] pub parameters: UrlRewriteActionParameters, } impl UrlRewriteAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlRewriteActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlRewriteActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the url rewrite action."] @@ -8748,17 +8545,12 @@ pub mod url_rewrite_action_parameters { #[doc = "Defines the url signing action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlSigningAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the Url Signing action."] pub parameters: UrlSigningActionParameters, } impl UrlSigningAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlSigningActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlSigningActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the Url Signing action."] @@ -8851,8 +8643,6 @@ impl UrlSigningKey { #[doc = "Url signing key parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlSigningKeyParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash."] #[serde(rename = "keyId")] pub key_id: String, @@ -8864,9 +8654,8 @@ pub struct UrlSigningKeyParameters { pub secret_version: Option, } impl UrlSigningKeyParameters { - pub fn new(secret_parameters: SecretParameters, key_id: String, secret_source: ResourceReference) -> Self { + pub fn new(key_id: String, secret_source: ResourceReference) -> Self { Self { - secret_parameters, key_id, secret_source, secret_version: None, diff --git a/services/mgmt/cdn/src/package_preview_2022_11/models.rs b/services/mgmt/cdn/src/package_preview_2022_11/models.rs index 31b91adc92..b6d7e94e36 100644 --- a/services/mgmt/cdn/src/package_preview_2022_11/models.rs +++ b/services/mgmt/cdn/src/package_preview_2022_11/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdDomain { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the domain to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -408,8 +406,6 @@ impl AfdEndpointUpdateParameters { #[doc = "Azure Front Door origin is the source of the content being delivered via Azure Front Door. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdOrigin { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -422,8 +418,6 @@ impl AfdOrigin { #[doc = "AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from Azure Front Door."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdOriginGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1003,8 +997,6 @@ impl AzureFirstPartyManagedCertificate { #[doc = "Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFirstPartyManagedCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Reference to another resource."] #[serde(rename = "secretSource", default, skip_serializing_if = "Option::is_none")] pub secret_source: Option, @@ -1030,9 +1022,8 @@ pub struct AzureFirstPartyManagedCertificateParameters { pub thumbprint: Option, } impl AzureFirstPartyManagedCertificateParameters { - pub fn new(secret_parameters: SecretParameters) -> Self { + pub fn new() -> Self { Self { - secret_parameters, secret_source: None, subject: None, expiration_date: None, @@ -2079,8 +2070,6 @@ pub mod cookies_match_condition_parameters { #[doc = "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomDomain { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the custom domain to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2575,8 +2564,6 @@ impl CustomerCertificate { #[doc = "Customer Certificate used for https"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomerCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Reference to another resource."] #[serde(rename = "secretSource")] pub secret_source: ResourceReference, @@ -2608,9 +2595,8 @@ pub struct CustomerCertificateParameters { pub thumbprint: Option, } impl CustomerCertificateParameters { - pub fn new(secret_parameters: SecretParameters, secret_source: ResourceReference) -> Self { + pub fn new(secret_source: ResourceReference) -> Self { Self { - secret_parameters, secret_source, secret_version: None, use_latest_version: None, @@ -2801,14 +2787,6 @@ impl DeliveryRule { } } } -#[doc = "An action for the delivery rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeliveryRuleAction {} -impl DeliveryRuleAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The name of the action for the delivery rule."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "name")] @@ -2826,57 +2804,34 @@ pub enum DeliveryRuleActionUnion { #[doc = "Defines the cache expiration action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCacheExpirationAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the cache expiration action."] pub parameters: CacheExpirationActionParameters, } impl DeliveryRuleCacheExpirationAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: CacheExpirationActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: CacheExpirationActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the cache-key query string action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCacheKeyQueryStringAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the cache-key query string action."] pub parameters: CacheKeyQueryStringActionParameters, } impl DeliveryRuleCacheKeyQueryStringAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: CacheKeyQueryStringActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: CacheKeyQueryStringActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the ClientPort condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleClientPortCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for ClientPort match conditions"] pub parameters: ClientPortMatchConditionParameters, } impl DeliveryRuleClientPortCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: ClientPortMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } - } -} -#[doc = "A condition for the delivery rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeliveryRuleCondition {} -impl DeliveryRuleCondition { - pub fn new() -> Self { - Self {} + pub fn new(parameters: ClientPortMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "The name of the condition for the delivery rule."] @@ -2906,337 +2861,232 @@ pub enum DeliveryRuleConditionUnion { #[doc = "Defines the Cookies condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCookiesCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for Cookies match conditions"] pub parameters: CookiesMatchConditionParameters, } impl DeliveryRuleCookiesCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: CookiesMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: CookiesMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the HostName condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleHostNameCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for HostName match conditions"] pub parameters: HostNameMatchConditionParameters, } impl DeliveryRuleHostNameCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: HostNameMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: HostNameMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the HttpVersion condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleHttpVersionCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for HttpVersion match conditions"] pub parameters: HttpVersionMatchConditionParameters, } impl DeliveryRuleHttpVersionCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: HttpVersionMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: HttpVersionMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the IsDevice condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleIsDeviceCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for IsDevice match conditions"] pub parameters: IsDeviceMatchConditionParameters, } impl DeliveryRuleIsDeviceCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: IsDeviceMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: IsDeviceMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the PostArgs condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRulePostArgsCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for PostArgs match conditions"] pub parameters: PostArgsMatchConditionParameters, } impl DeliveryRulePostArgsCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: PostArgsMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: PostArgsMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the QueryString condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleQueryStringCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for QueryString match conditions"] pub parameters: QueryStringMatchConditionParameters, } impl DeliveryRuleQueryStringCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: QueryStringMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: QueryStringMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RemoteAddress condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRemoteAddressCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RemoteAddress match conditions"] pub parameters: RemoteAddressMatchConditionParameters, } impl DeliveryRuleRemoteAddressCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RemoteAddressMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RemoteAddressMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestBody condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestBodyCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestBody match conditions"] pub parameters: RequestBodyMatchConditionParameters, } impl DeliveryRuleRequestBodyCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestBodyMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestBodyMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the request header action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestHeaderAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the request header action."] pub parameters: HeaderActionParameters, } impl DeliveryRuleRequestHeaderAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: HeaderActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: HeaderActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestHeader condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestHeaderCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestHeader match conditions"] pub parameters: RequestHeaderMatchConditionParameters, } impl DeliveryRuleRequestHeaderCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestHeaderMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestHeaderMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestMethod condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestMethodCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestMethod match conditions"] pub parameters: RequestMethodMatchConditionParameters, } impl DeliveryRuleRequestMethodCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestMethodMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestMethodMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestScheme condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestSchemeCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestScheme match conditions "] pub parameters: RequestSchemeMatchConditionParameters, } impl DeliveryRuleRequestSchemeCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestSchemeMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestSchemeMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestUri condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestUriCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestUri match conditions"] pub parameters: RequestUriMatchConditionParameters, } impl DeliveryRuleRequestUriCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestUriMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestUriMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the response header action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleResponseHeaderAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the request header action."] pub parameters: HeaderActionParameters, } impl DeliveryRuleResponseHeaderAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: HeaderActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: HeaderActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the route configuration override action for the delivery rule. Only applicable to Frontdoor Standard/Premium Profiles."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRouteConfigurationOverrideAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the route configuration override action."] pub parameters: RouteConfigurationOverrideActionParameters, } impl DeliveryRuleRouteConfigurationOverrideAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: RouteConfigurationOverrideActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: RouteConfigurationOverrideActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the ServerPort condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleServerPortCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for ServerPort match conditions"] pub parameters: ServerPortMatchConditionParameters, } impl DeliveryRuleServerPortCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: ServerPortMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: ServerPortMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the SocketAddress condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleSocketAddrCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for SocketAddress match conditions"] pub parameters: SocketAddrMatchConditionParameters, } impl DeliveryRuleSocketAddrCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: SocketAddrMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: SocketAddrMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the SslProtocol condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleSslProtocolCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for SslProtocol match conditions"] pub parameters: SslProtocolMatchConditionParameters, } impl DeliveryRuleSslProtocolCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: SslProtocolMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: SslProtocolMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlFileExtension condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlFileExtensionCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlFileExtension match conditions"] pub parameters: UrlFileExtensionMatchConditionParameters, } impl DeliveryRuleUrlFileExtensionCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlFileExtensionMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlFileExtensionMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlFileName condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlFileNameCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlFilename match conditions"] pub parameters: UrlFileNameMatchConditionParameters, } impl DeliveryRuleUrlFileNameCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlFileNameMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlFileNameMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlPath condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlPathCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlPath match conditions"] pub parameters: UrlPathMatchConditionParameters, } impl DeliveryRuleUrlPathCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlPathMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlPathMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Type of operation: get, read, delete, etc."] @@ -3275,8 +3125,6 @@ impl DomainValidationProperties { #[doc = "Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EdgeNode { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties required to create an edgenode."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4413,8 +4261,6 @@ impl ManagedCertificate { #[doc = "Managed Certificate used for https"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManagedCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Subject name in the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, @@ -4423,9 +4269,8 @@ pub struct ManagedCertificateParameters { pub expiration_date: Option, } impl ManagedCertificateParameters { - pub fn new(secret_parameters: SecretParameters) -> Self { + pub fn new() -> Self { Self { - secret_parameters, subject: None, expiration_date: None, } @@ -5235,8 +5080,6 @@ impl Serialize for OptimizationType { #[doc = "CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Origin { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5249,8 +5092,6 @@ impl Origin { #[doc = "Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OriginGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5345,17 +5186,12 @@ pub mod origin_group_override { #[doc = "Defines the origin group override action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OriginGroupOverrideAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the origin group override action."] pub parameters: OriginGroupOverrideActionParameters, } impl OriginGroupOverrideAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: OriginGroupOverrideActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: OriginGroupOverrideActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the origin group override action."] @@ -7035,8 +6871,6 @@ pub mod response_based_origin_error_detection_parameters { #[doc = "Friendly Routes name mapping to the any Routes or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Route { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Routes to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7363,8 +7197,6 @@ pub mod route_update_properties_parameters { #[doc = "Friendly Rules name mapping to the any Rules or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Rule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Rules to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7418,8 +7250,6 @@ impl RuleProperties { #[doc = "Friendly RuleSet name mapping to the any RuleSet or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RuleSet { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Rule Set to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7560,8 +7390,6 @@ pub mod rule_update_properties_parameters { #[doc = "Friendly Secret name mapping to the any Secret or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Secret { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Secret to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7596,14 +7424,6 @@ impl SecretListResult { Self::default() } } -#[doc = "The json object containing secret parameters"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecretParameters {} -impl SecretParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the secret resource."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -7676,8 +7496,6 @@ impl Serialize for SecretType { #[doc = "SecurityPolicy association for AzureFrontDoor profile"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SecurityPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The json object that contains properties required to create a security policy"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7729,14 +7547,6 @@ impl SecurityPolicyProperties { Self::default() } } -#[doc = "The json object containing security policy parameters"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecurityPolicyPropertiesParameters {} -impl SecurityPolicyPropertiesParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the Security policy to create."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -7794,8 +7604,6 @@ impl SecurityPolicyWebApplicationFirewallAssociation { #[doc = "The json object containing security policy waf parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecurityPolicyWebApplicationFirewallParameters { - #[serde(flatten)] - pub security_policy_properties_parameters: SecurityPolicyPropertiesParameters, #[doc = "Reference to another resource."] #[serde(rename = "wafPolicy", default, skip_serializing_if = "Option::is_none")] pub waf_policy: Option, @@ -7808,9 +7616,8 @@ pub struct SecurityPolicyWebApplicationFirewallParameters { pub associations: Vec, } impl SecurityPolicyWebApplicationFirewallParameters { - pub fn new(security_policy_properties_parameters: SecurityPolicyPropertiesParameters) -> Self { + pub fn new() -> Self { Self { - security_policy_properties_parameters, waf_policy: None, associations: Vec::new(), } @@ -8700,17 +8507,12 @@ pub mod url_path_match_condition_parameters { #[doc = "Defines the url redirect action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlRedirectAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the url redirect action."] pub parameters: UrlRedirectActionParameters, } impl UrlRedirectAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlRedirectActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlRedirectActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the url redirect action."] @@ -8840,17 +8642,12 @@ pub mod url_redirect_action_parameters { #[doc = "Defines the url rewrite action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlRewriteAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the url rewrite action."] pub parameters: UrlRewriteActionParameters, } impl UrlRewriteAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlRewriteActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlRewriteActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the url rewrite action."] @@ -8887,17 +8684,12 @@ pub mod url_rewrite_action_parameters { #[doc = "Defines the url signing action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlSigningAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the Url Signing action."] pub parameters: UrlSigningActionParameters, } impl UrlSigningAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlSigningActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlSigningActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the Url Signing action."] @@ -8990,8 +8782,6 @@ impl UrlSigningKey { #[doc = "Url signing key parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlSigningKeyParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash."] #[serde(rename = "keyId")] pub key_id: String, @@ -9003,9 +8793,8 @@ pub struct UrlSigningKeyParameters { pub secret_version: Option, } impl UrlSigningKeyParameters { - pub fn new(secret_parameters: SecretParameters, key_id: String, secret_source: ResourceReference) -> Self { + pub fn new(key_id: String, secret_source: ResourceReference) -> Self { Self { - secret_parameters, key_id, secret_source, secret_version: None, diff --git a/services/mgmt/cdn/src/package_preview_2023_07/models.rs b/services/mgmt/cdn/src/package_preview_2023_07/models.rs index b356e984be..46a6af930b 100644 --- a/services/mgmt/cdn/src/package_preview_2023_07/models.rs +++ b/services/mgmt/cdn/src/package_preview_2023_07/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdDomain { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the domain to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -408,8 +406,6 @@ impl AfdEndpointUpdateParameters { #[doc = "Azure Front Door origin is the source of the content being delivered via Azure Front Door. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdOrigin { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -422,8 +418,6 @@ impl AfdOrigin { #[doc = "AFDOrigin group comprising of origins is used for load balancing to origins when the content cannot be served from Azure Front Door."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AfdOriginGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -951,17 +945,12 @@ pub mod afd_route_cache_configuration { #[doc = "Defines the url signing action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AfdUrlSigningAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the Url Signing action."] pub parameters: AfdUrlSigningActionParameters, } impl AfdUrlSigningAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: AfdUrlSigningActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: AfdUrlSigningActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the Url Signing action."] @@ -1124,8 +1113,6 @@ impl AzureFirstPartyManagedCertificate { #[doc = "Azure FirstParty Managed Certificate provided by other first party resource providers to enable HTTPS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFirstPartyManagedCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Reference to another resource."] #[serde(rename = "secretSource", default, skip_serializing_if = "Option::is_none")] pub secret_source: Option, @@ -1151,9 +1138,8 @@ pub struct AzureFirstPartyManagedCertificateParameters { pub thumbprint: Option, } impl AzureFirstPartyManagedCertificateParameters { - pub fn new(secret_parameters: SecretParameters) -> Self { + pub fn new() -> Self { Self { - secret_parameters, secret_source: None, subject: None, expiration_date: None, @@ -2216,8 +2202,6 @@ pub mod cookies_match_condition_parameters { #[doc = "Friendly domain name mapping to the endpoint hostname that the customer provides for branding purposes, e.g. www.contoso.com."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomDomain { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the custom domain to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2712,8 +2696,6 @@ impl CustomerCertificate { #[doc = "Customer Certificate used for https"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomerCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Reference to another resource."] #[serde(rename = "secretSource")] pub secret_source: ResourceReference, @@ -2745,9 +2727,8 @@ pub struct CustomerCertificateParameters { pub thumbprint: Option, } impl CustomerCertificateParameters { - pub fn new(secret_parameters: SecretParameters, secret_source: ResourceReference) -> Self { + pub fn new(secret_source: ResourceReference) -> Self { Self { - secret_parameters, secret_source, secret_version: None, use_latest_version: None, @@ -2938,14 +2919,6 @@ impl DeliveryRule { } } } -#[doc = "An action for the delivery rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeliveryRuleAction {} -impl DeliveryRuleAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The name of the action for the delivery rule."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "name")] @@ -2964,57 +2937,34 @@ pub enum DeliveryRuleActionUnion { #[doc = "Defines the cache expiration action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCacheExpirationAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the cache expiration action."] pub parameters: CacheExpirationActionParameters, } impl DeliveryRuleCacheExpirationAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: CacheExpirationActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: CacheExpirationActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the cache-key query string action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCacheKeyQueryStringAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the cache-key query string action."] pub parameters: CacheKeyQueryStringActionParameters, } impl DeliveryRuleCacheKeyQueryStringAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: CacheKeyQueryStringActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: CacheKeyQueryStringActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the ClientPort condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleClientPortCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for ClientPort match conditions"] pub parameters: ClientPortMatchConditionParameters, } impl DeliveryRuleClientPortCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: ClientPortMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } - } -} -#[doc = "A condition for the delivery rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeliveryRuleCondition {} -impl DeliveryRuleCondition { - pub fn new() -> Self { - Self {} + pub fn new(parameters: ClientPortMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "The name of the condition for the delivery rule."] @@ -3044,337 +2994,232 @@ pub enum DeliveryRuleConditionUnion { #[doc = "Defines the Cookies condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleCookiesCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for Cookies match conditions"] pub parameters: CookiesMatchConditionParameters, } impl DeliveryRuleCookiesCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: CookiesMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: CookiesMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the HostName condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleHostNameCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for HostName match conditions"] pub parameters: HostNameMatchConditionParameters, } impl DeliveryRuleHostNameCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: HostNameMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: HostNameMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the HttpVersion condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleHttpVersionCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for HttpVersion match conditions"] pub parameters: HttpVersionMatchConditionParameters, } impl DeliveryRuleHttpVersionCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: HttpVersionMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: HttpVersionMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the IsDevice condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleIsDeviceCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for IsDevice match conditions"] pub parameters: IsDeviceMatchConditionParameters, } impl DeliveryRuleIsDeviceCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: IsDeviceMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: IsDeviceMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the PostArgs condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRulePostArgsCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for PostArgs match conditions"] pub parameters: PostArgsMatchConditionParameters, } impl DeliveryRulePostArgsCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: PostArgsMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: PostArgsMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the QueryString condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleQueryStringCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for QueryString match conditions"] pub parameters: QueryStringMatchConditionParameters, } impl DeliveryRuleQueryStringCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: QueryStringMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: QueryStringMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RemoteAddress condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRemoteAddressCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RemoteAddress match conditions"] pub parameters: RemoteAddressMatchConditionParameters, } impl DeliveryRuleRemoteAddressCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RemoteAddressMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RemoteAddressMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestBody condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestBodyCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestBody match conditions"] pub parameters: RequestBodyMatchConditionParameters, } impl DeliveryRuleRequestBodyCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestBodyMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestBodyMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the request header action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestHeaderAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the request header action."] pub parameters: HeaderActionParameters, } impl DeliveryRuleRequestHeaderAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: HeaderActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: HeaderActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestHeader condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestHeaderCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestHeader match conditions"] pub parameters: RequestHeaderMatchConditionParameters, } impl DeliveryRuleRequestHeaderCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestHeaderMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestHeaderMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestMethod condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestMethodCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestMethod match conditions"] pub parameters: RequestMethodMatchConditionParameters, } impl DeliveryRuleRequestMethodCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestMethodMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestMethodMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestScheme condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestSchemeCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestScheme match conditions "] pub parameters: RequestSchemeMatchConditionParameters, } impl DeliveryRuleRequestSchemeCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestSchemeMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestSchemeMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the RequestUri condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRequestUriCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for RequestUri match conditions"] pub parameters: RequestUriMatchConditionParameters, } impl DeliveryRuleRequestUriCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: RequestUriMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: RequestUriMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the response header action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleResponseHeaderAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the request header action."] pub parameters: HeaderActionParameters, } impl DeliveryRuleResponseHeaderAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: HeaderActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: HeaderActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the route configuration override action for the delivery rule. Only applicable to Frontdoor Standard/Premium Profiles."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleRouteConfigurationOverrideAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the route configuration override action."] pub parameters: RouteConfigurationOverrideActionParameters, } impl DeliveryRuleRouteConfigurationOverrideAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: RouteConfigurationOverrideActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: RouteConfigurationOverrideActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the ServerPort condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleServerPortCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for ServerPort match conditions"] pub parameters: ServerPortMatchConditionParameters, } impl DeliveryRuleServerPortCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: ServerPortMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: ServerPortMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the SocketAddress condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleSocketAddrCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for SocketAddress match conditions"] pub parameters: SocketAddrMatchConditionParameters, } impl DeliveryRuleSocketAddrCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: SocketAddrMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: SocketAddrMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the SslProtocol condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleSslProtocolCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for SslProtocol match conditions"] pub parameters: SslProtocolMatchConditionParameters, } impl DeliveryRuleSslProtocolCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: SslProtocolMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: SslProtocolMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlFileExtension condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlFileExtensionCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlFileExtension match conditions"] pub parameters: UrlFileExtensionMatchConditionParameters, } impl DeliveryRuleUrlFileExtensionCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlFileExtensionMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlFileExtensionMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlFileName condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlFileNameCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlFilename match conditions"] pub parameters: UrlFileNameMatchConditionParameters, } impl DeliveryRuleUrlFileNameCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlFileNameMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlFileNameMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the UrlPath condition for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DeliveryRuleUrlPathCondition { - #[serde(flatten)] - pub delivery_rule_condition: DeliveryRuleCondition, #[doc = "Defines the parameters for UrlPath match conditions"] pub parameters: UrlPathMatchConditionParameters, } impl DeliveryRuleUrlPathCondition { - pub fn new(delivery_rule_condition: DeliveryRuleCondition, parameters: UrlPathMatchConditionParameters) -> Self { - Self { - delivery_rule_condition, - parameters, - } + pub fn new(parameters: UrlPathMatchConditionParameters) -> Self { + Self { parameters } } } #[doc = "Type of operation: get, read, delete, etc."] @@ -3413,8 +3258,6 @@ impl DomainValidationProperties { #[doc = "Edgenode is a global Point of Presence (POP) location used to deliver CDN content to end users."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EdgeNode { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties required to create an edgenode."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4316,8 +4159,6 @@ pub mod is_device_match_condition_parameters { #[doc = "Contains a list of references of UrlSigningKey type secret objects."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct KeyGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the key group to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -4620,8 +4461,6 @@ impl ManagedCertificate { #[doc = "Managed Certificate used for https"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManagedCertificateParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Subject name in the certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub subject: Option, @@ -4630,9 +4469,8 @@ pub struct ManagedCertificateParameters { pub expiration_date: Option, } impl ManagedCertificateParameters { - pub fn new(secret_parameters: SecretParameters) -> Self { + pub fn new() -> Self { Self { - secret_parameters, subject: None, expiration_date: None, } @@ -5452,8 +5290,6 @@ impl Serialize for OptimizationType { #[doc = "CDN origin is the source of the content being delivered via CDN. When the edge nodes represented by an endpoint do not have the requested content cached, they attempt to fetch it from one or more of the configured origins."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Origin { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5466,8 +5302,6 @@ impl Origin { #[doc = "Origin group comprising of origins is used for load balancing to origins when the content cannot be served from CDN."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OriginGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the origin group."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5562,17 +5396,12 @@ pub mod origin_group_override { #[doc = "Defines the origin group override action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OriginGroupOverrideAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the origin group override action."] pub parameters: OriginGroupOverrideActionParameters, } impl OriginGroupOverrideAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: OriginGroupOverrideActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: OriginGroupOverrideActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the origin group override action."] @@ -7252,8 +7081,6 @@ pub mod response_based_origin_error_detection_parameters { #[doc = "Friendly Routes name mapping to the any Routes or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Route { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Routes to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7580,8 +7407,6 @@ pub mod route_update_properties_parameters { #[doc = "Friendly Rules name mapping to the any Rules or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Rule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Rules to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7635,8 +7460,6 @@ impl RuleProperties { #[doc = "Friendly RuleSet name mapping to the any RuleSet or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RuleSet { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Rule Set to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7777,8 +7600,6 @@ pub mod rule_update_properties_parameters { #[doc = "Friendly Secret name mapping to the any Secret or secret related information."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Secret { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties of the Secret to create."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7813,14 +7634,6 @@ impl SecretListResult { Self::default() } } -#[doc = "The json object containing secret parameters"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecretParameters {} -impl SecretParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the secret resource."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -7893,8 +7706,6 @@ impl Serialize for SecretType { #[doc = "SecurityPolicy association for AzureFrontDoor profile"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SecurityPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The json object that contains properties required to create a security policy"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7946,14 +7757,6 @@ impl SecurityPolicyProperties { Self::default() } } -#[doc = "The json object containing security policy parameters"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecurityPolicyPropertiesParameters {} -impl SecurityPolicyPropertiesParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the Security policy to create."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -8011,8 +7814,6 @@ impl SecurityPolicyWebApplicationFirewallAssociation { #[doc = "The json object containing security policy waf parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecurityPolicyWebApplicationFirewallParameters { - #[serde(flatten)] - pub security_policy_properties_parameters: SecurityPolicyPropertiesParameters, #[doc = "Reference to another resource."] #[serde(rename = "wafPolicy", default, skip_serializing_if = "Option::is_none")] pub waf_policy: Option, @@ -8025,9 +7826,8 @@ pub struct SecurityPolicyWebApplicationFirewallParameters { pub associations: Vec, } impl SecurityPolicyWebApplicationFirewallParameters { - pub fn new(security_policy_properties_parameters: SecurityPolicyPropertiesParameters) -> Self { + pub fn new() -> Self { Self { - security_policy_properties_parameters, waf_policy: None, associations: Vec::new(), } @@ -8917,17 +8717,12 @@ pub mod url_path_match_condition_parameters { #[doc = "Defines the url redirect action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlRedirectAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the url redirect action."] pub parameters: UrlRedirectActionParameters, } impl UrlRedirectAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlRedirectActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlRedirectActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the url redirect action."] @@ -9057,17 +8852,12 @@ pub mod url_redirect_action_parameters { #[doc = "Defines the url rewrite action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlRewriteAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the url rewrite action."] pub parameters: UrlRewriteActionParameters, } impl UrlRewriteAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlRewriteActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlRewriteActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the url rewrite action."] @@ -9104,17 +8894,12 @@ pub mod url_rewrite_action_parameters { #[doc = "Defines the url signing action for the delivery rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlSigningAction { - #[serde(flatten)] - pub delivery_rule_action: DeliveryRuleAction, #[doc = "Defines the parameters for the Url Signing action."] pub parameters: UrlSigningActionParameters, } impl UrlSigningAction { - pub fn new(delivery_rule_action: DeliveryRuleAction, parameters: UrlSigningActionParameters) -> Self { - Self { - delivery_rule_action, - parameters, - } + pub fn new(parameters: UrlSigningActionParameters) -> Self { + Self { parameters } } } #[doc = "Defines the parameters for the Url Signing action."] @@ -9207,8 +8992,6 @@ impl UrlSigningKey { #[doc = "Url signing key parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UrlSigningKeyParameters { - #[serde(flatten)] - pub secret_parameters: SecretParameters, #[doc = "Defines the customer defined key Id. This id will exist in the incoming request to indicate the key used to form the hash."] #[serde(rename = "keyId")] pub key_id: String, @@ -9220,9 +9003,8 @@ pub struct UrlSigningKeyParameters { pub secret_version: Option, } impl UrlSigningKeyParameters { - pub fn new(secret_parameters: SecretParameters, key_id: String, secret_source: ResourceReference) -> Self { + pub fn new(key_id: String, secret_source: ResourceReference) -> Self { Self { - secret_parameters, key_id, secret_source, secret_version: None, diff --git a/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs b/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs index d8d2d35bb2..645674909a 100644 --- a/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs +++ b/services/mgmt/changeanalysis/src/package_2020_04_01_preview/models.rs @@ -161,8 +161,6 @@ impl ErrorResponse { #[doc = "An Azure resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ExtendedProxyResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Top level metadata https://github.com/Azure/azure-resource-manager-rpc/blob/master/v1.0/common-api-contracts.md#system-metadata-for-all-azure-resources"] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs b/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs index e00fe5adeb..f6f387b30a 100644 --- a/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs +++ b/services/mgmt/changeanalysis/src/package_2021_04_01/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "The detected change."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Change { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a change."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs b/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs index 4d44231634..2f202b69bd 100644 --- a/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs +++ b/services/mgmt/changeanalysis/src/package_2021_04_01_preview/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "The detected change."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Change { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a change."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -79,8 +77,6 @@ impl ChangeProperties { #[doc = "The detected change snapshots."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ChangeSnapshots { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The change snapshot, represented by a pair of before and after resource snapshots."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/chaos/src/package_2022_10_01_preview/models.rs b/services/mgmt/chaos/src/package_2022_10_01_preview/models.rs index 0396a649d2..ef1a7b711f 100644 --- a/services/mgmt/chaos/src/package_2022_10_01_preview/models.rs +++ b/services/mgmt/chaos/src/package_2022_10_01_preview/models.rs @@ -800,14 +800,6 @@ impl ExperimentStatusProperties { Self::default() } } -#[doc = "Model that represents available filter types that can be applied to a targets list."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Filter {} -impl Filter { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum that discriminates between filter types. Currently only `Simple` type is supported."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] diff --git a/services/mgmt/chaos/src/package_2023_04_01_preview/models.rs b/services/mgmt/chaos/src/package_2023_04_01_preview/models.rs index b06c116c1b..5911cd67e5 100644 --- a/services/mgmt/chaos/src/package_2023_04_01_preview/models.rs +++ b/services/mgmt/chaos/src/package_2023_04_01_preview/models.rs @@ -851,14 +851,6 @@ impl ExperimentUpdate { Self::default() } } -#[doc = "Model that represents available filter types that can be applied to a targets list."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Filter {} -impl Filter { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum that discriminates between filter types. Currently only `Simple` type is supported."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] diff --git a/services/mgmt/chaos/src/package_2023_04_15_preview/models.rs b/services/mgmt/chaos/src/package_2023_04_15_preview/models.rs index cfaa33e99d..05a296734f 100644 --- a/services/mgmt/chaos/src/package_2023_04_15_preview/models.rs +++ b/services/mgmt/chaos/src/package_2023_04_15_preview/models.rs @@ -851,14 +851,6 @@ impl ExperimentUpdate { Self::default() } } -#[doc = "Model that represents available filter types that can be applied to a targets list."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Filter {} -impl Filter { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum that discriminates between filter types. Currently only `Simple` type is supported."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] diff --git a/services/mgmt/cloudshell/src/package_2018_10_01/models.rs b/services/mgmt/cloudshell/src/package_2018_10_01/models.rs index 9ef97ef70a..2d881646ff 100644 --- a/services/mgmt/cloudshell/src/package_2018_10_01/models.rs +++ b/services/mgmt/cloudshell/src/package_2018_10_01/models.rs @@ -6,17 +6,12 @@ use std::str::FromStr; #[doc = "Cloud shell console"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CloudShellConsole { - #[serde(flatten)] - pub resource: Resource, #[doc = "Cloud shell console properties."] pub properties: ConsoleProperties, } impl CloudShellConsole { pub fn new(properties: ConsoleProperties) -> Self { - Self { - resource: Resource::default(), - properties, - } + Self { properties } } } #[doc = "Cloud shell patch operation user settings."] @@ -34,17 +29,12 @@ impl CloudShellPatchUserSettings { #[doc = "Cloud shell user settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CloudShellUserSettings { - #[serde(flatten)] - pub resource: Resource, #[doc = "The cloud shell user settings properties."] pub properties: UserProperties, } impl CloudShellUserSettings { pub fn new(properties: UserProperties) -> Self { - Self { - resource: Resource::default(), - properties, - } + Self { properties } } } #[doc = "Cloud shell properties for creating a console."] @@ -163,17 +153,12 @@ pub mod console_create_properties { #[doc = "Console definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ConsoleDefinition { - #[serde(flatten)] - pub resource: Resource, #[doc = "Cloud shell properties for creating a console."] pub properties: ConsoleCreateProperties, } impl ConsoleDefinition { pub fn new(properties: ConsoleCreateProperties) -> Self { - Self { - resource: Resource::default(), - properties, - } + Self { properties } } } #[doc = "Cloud shell console properties."] @@ -555,16 +540,11 @@ pub mod user_properties { #[doc = "Response to get user settings"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UserSettingsResponse { - #[serde(flatten)] - pub resource: Resource, #[doc = "The cloud shell user settings properties."] pub properties: UserProperties, } impl UserSettingsResponse { pub fn new(properties: UserProperties) -> Self { - Self { - resource: Resource::default(), - properties, - } + Self { properties } } } diff --git a/services/mgmt/cognitiveservices/src/package_2021_10/models.rs b/services/mgmt/cognitiveservices/src/package_2021_10/models.rs index 7d36a378a2..63f3e02ad5 100644 --- a/services/mgmt/cognitiveservices/src/package_2021_10/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2021_10/models.rs @@ -436,8 +436,6 @@ impl CommitmentPeriod { #[doc = "Cognitive Services account commitment plan."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommitmentPlan { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -581,8 +579,6 @@ impl CommitmentTierListResult { #[doc = "Cognitive Services account deployment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Deployment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/cognitiveservices/src/package_2022_03/models.rs b/services/mgmt/cognitiveservices/src/package_2022_03/models.rs index 07efb89c32..da5bb2ffdb 100644 --- a/services/mgmt/cognitiveservices/src/package_2022_03/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2022_03/models.rs @@ -496,8 +496,6 @@ impl CommitmentPeriod { #[doc = "Cognitive Services account commitment plan."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommitmentPlan { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -641,8 +639,6 @@ impl CommitmentTierListResult { #[doc = "Cognitive Services account deployment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Deployment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/cognitiveservices/src/package_2022_10/models.rs b/services/mgmt/cognitiveservices/src/package_2022_10/models.rs index e6acb3051a..5779682e70 100644 --- a/services/mgmt/cognitiveservices/src/package_2022_10/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2022_10/models.rs @@ -496,8 +496,6 @@ impl CommitmentPeriod { #[doc = "Cognitive Services account commitment plan."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommitmentPlan { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -641,8 +639,6 @@ impl CommitmentTierListResult { #[doc = "Cognitive Services account deployment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Deployment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/cognitiveservices/src/package_2022_12/models.rs b/services/mgmt/cognitiveservices/src/package_2022_12/models.rs index da17588228..271f882ed2 100644 --- a/services/mgmt/cognitiveservices/src/package_2022_12/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2022_12/models.rs @@ -553,8 +553,6 @@ impl CommitmentPeriod { #[doc = "Cognitive Services account commitment plan."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommitmentPlan { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -585,8 +583,6 @@ impl CommitmentPlan { #[doc = "The commitment plan association."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommitmentPlanAccountAssociation { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -838,8 +834,6 @@ impl CommitmentTierListResult { #[doc = "Cognitive Services account deployment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Deployment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/cognitiveservices/src/package_2023_05/models.rs b/services/mgmt/cognitiveservices/src/package_2023_05/models.rs index a3ed6b3a9e..4a8e4302d4 100644 --- a/services/mgmt/cognitiveservices/src/package_2023_05/models.rs +++ b/services/mgmt/cognitiveservices/src/package_2023_05/models.rs @@ -645,8 +645,6 @@ impl CommitmentPeriod { #[doc = "Cognitive Services account commitment plan."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommitmentPlan { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -677,8 +675,6 @@ impl CommitmentPlan { #[doc = "The commitment plan association."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CommitmentPlanAccountAssociation { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -938,8 +934,6 @@ impl CommitmentTierListResult { #[doc = "Cognitive Services account deployment."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Deployment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The resource model definition representing SKU"] #[serde(default, skip_serializing_if = "Option::is_none")] pub sku: Option, diff --git a/services/mgmt/communication/src/package_2023_03/models.rs b/services/mgmt/communication/src/package_2023_03/models.rs index e79bf2deb2..6d916b4722 100644 --- a/services/mgmt/communication/src/package_2023_03/models.rs +++ b/services/mgmt/communication/src/package_2023_03/models.rs @@ -1025,8 +1025,6 @@ pub mod sender_username_properties { #[doc = "A class representing a SenderUsername resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SenderUsernameResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "A class that describes the properties of a SenderUsername resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/communication/src/package_preview_2023_03/models.rs b/services/mgmt/communication/src/package_preview_2023_03/models.rs index e79bf2deb2..6d916b4722 100644 --- a/services/mgmt/communication/src/package_preview_2023_03/models.rs +++ b/services/mgmt/communication/src/package_preview_2023_03/models.rs @@ -1025,8 +1025,6 @@ pub mod sender_username_properties { #[doc = "A class representing a SenderUsername resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SenderUsernameResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "A class that describes the properties of a SenderUsername resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/communication/src/package_preview_2023_04/models.rs b/services/mgmt/communication/src/package_preview_2023_04/models.rs index 241223b5ae..138daa7622 100644 --- a/services/mgmt/communication/src/package_preview_2023_04/models.rs +++ b/services/mgmt/communication/src/package_preview_2023_04/models.rs @@ -1102,8 +1102,6 @@ pub mod sender_username_properties { #[doc = "A class representing a SenderUsername resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SenderUsernameResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "A class that describes the properties of a SenderUsername resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/compute/src/package_2022_11_01/models.rs b/services/mgmt/compute/src/package_2022_11_01/models.rs index ab28abb33d..8d97441da4 100644 --- a/services/mgmt/compute/src/package_2022_11_01/models.rs +++ b/services/mgmt/compute/src/package_2022_11_01/models.rs @@ -14532,8 +14532,6 @@ pub mod virtual_machine_scale_set_public_ip_address_configuration_properties { #[doc = "Describes a Virtual Machine Scale Set VM Reimage Parameters."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VirtualMachineScaleSetReimageParameters { - #[serde(flatten)] - pub virtual_machine_scale_set_vm_reimage_parameters: VirtualMachineScaleSetVmReimageParameters, #[doc = "The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set."] #[serde( rename = "instanceIds", diff --git a/services/mgmt/compute/src/package_2023_01_02/models.rs b/services/mgmt/compute/src/package_2023_01_02/models.rs index ac70b058ad..e8c6acb7c9 100644 --- a/services/mgmt/compute/src/package_2023_01_02/models.rs +++ b/services/mgmt/compute/src/package_2023_01_02/models.rs @@ -14748,8 +14748,6 @@ pub mod virtual_machine_scale_set_public_ip_address_configuration_properties { #[doc = "Describes a Virtual Machine Scale Set VM Reimage Parameters."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VirtualMachineScaleSetReimageParameters { - #[serde(flatten)] - pub virtual_machine_scale_set_vm_reimage_parameters: VirtualMachineScaleSetVmReimageParameters, #[doc = "The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set."] #[serde( rename = "instanceIds", diff --git a/services/mgmt/compute/src/package_2023_03_01/models.rs b/services/mgmt/compute/src/package_2023_03_01/models.rs index 8ec65e5f4b..5d9a60b89d 100644 --- a/services/mgmt/compute/src/package_2023_03_01/models.rs +++ b/services/mgmt/compute/src/package_2023_03_01/models.rs @@ -14705,8 +14705,6 @@ pub mod virtual_machine_scale_set_public_ip_address_configuration_properties { #[doc = "Describes a Virtual Machine Scale Set VM Reimage Parameters."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VirtualMachineScaleSetReimageParameters { - #[serde(flatten)] - pub virtual_machine_scale_set_vm_reimage_parameters: VirtualMachineScaleSetVmReimageParameters, #[doc = "The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set."] #[serde( rename = "instanceIds", diff --git a/services/mgmt/compute/src/package_2023_04_02/models.rs b/services/mgmt/compute/src/package_2023_04_02/models.rs index a474a54261..1ed466cec9 100644 --- a/services/mgmt/compute/src/package_2023_04_02/models.rs +++ b/services/mgmt/compute/src/package_2023_04_02/models.rs @@ -14758,8 +14758,6 @@ pub mod virtual_machine_scale_set_public_ip_address_configuration_properties { #[doc = "Describes a Virtual Machine Scale Set VM Reimage Parameters."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VirtualMachineScaleSetReimageParameters { - #[serde(flatten)] - pub virtual_machine_scale_set_vm_reimage_parameters: VirtualMachineScaleSetVmReimageParameters, #[doc = "The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set."] #[serde( rename = "instanceIds", diff --git a/services/mgmt/compute/src/package_2023_07_01/models.rs b/services/mgmt/compute/src/package_2023_07_01/models.rs index e749127fd9..736fc66eaf 100644 --- a/services/mgmt/compute/src/package_2023_07_01/models.rs +++ b/services/mgmt/compute/src/package_2023_07_01/models.rs @@ -15038,8 +15038,6 @@ pub mod virtual_machine_scale_set_public_ip_address_configuration_properties { #[doc = "Describes a Virtual Machine Scale Set VM Reimage Parameters."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VirtualMachineScaleSetReimageParameters { - #[serde(flatten)] - pub virtual_machine_scale_set_vm_reimage_parameters: VirtualMachineScaleSetVmReimageParameters, #[doc = "The virtual machine scale set instance ids. Omitting the virtual machine scale set instance ids will result in the operation being performed on all virtual machines in the virtual machine scale set."] #[serde( rename = "instanceIds", diff --git a/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs b/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs index 5ce9a6a324..5a3ab26694 100644 --- a/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/connectedvmware/src/package_2020_10_01_preview/models.rs @@ -494,8 +494,6 @@ impl Serialize for FirmwareType { #[doc = "Defines the GuestAgent."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GuestAgent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: GuestAgentProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -505,7 +503,6 @@ pub struct GuestAgent { impl GuestAgent { pub fn new(properties: GuestAgentProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -814,8 +811,6 @@ impl HttpProxyConfiguration { #[doc = "Defines the HybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: HybridIdentityMetadataProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -825,7 +820,6 @@ pub struct HybridIdentityMetadata { impl HybridIdentityMetadata { pub fn new(properties: HybridIdentityMetadataProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -988,8 +982,6 @@ pub mod identity { #[doc = "Defines the inventory item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InventoryItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: InventoryItemPropertiesUnion, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1002,7 +994,6 @@ pub struct InventoryItem { impl InventoryItem { pub fn new(properties: InventoryItemPropertiesUnion) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, kind: None, diff --git a/services/mgmt/connectedvmware/src/package_2022_01_10_preview/models.rs b/services/mgmt/connectedvmware/src/package_2022_01_10_preview/models.rs index 28e4178d56..0e88ab8cfe 100644 --- a/services/mgmt/connectedvmware/src/package_2022_01_10_preview/models.rs +++ b/services/mgmt/connectedvmware/src/package_2022_01_10_preview/models.rs @@ -530,8 +530,6 @@ impl Serialize for FirmwareType { #[doc = "Defines the GuestAgent."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GuestAgent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: GuestAgentProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -541,7 +539,6 @@ pub struct GuestAgent { impl GuestAgent { pub fn new(properties: GuestAgentProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -850,8 +847,6 @@ impl HttpProxyConfiguration { #[doc = "Defines the HybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: HybridIdentityMetadataProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -861,7 +856,6 @@ pub struct HybridIdentityMetadata { impl HybridIdentityMetadata { pub fn new(properties: HybridIdentityMetadataProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1024,8 +1018,6 @@ pub mod identity { #[doc = "Defines the inventory item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InventoryItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: InventoryItemPropertiesUnion, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1038,7 +1030,6 @@ pub struct InventoryItem { impl InventoryItem { pub fn new(properties: InventoryItemPropertiesUnion) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, kind: None, diff --git a/services/mgmt/connectedvmware/src/package_2022_07_15_preview/models.rs b/services/mgmt/connectedvmware/src/package_2022_07_15_preview/models.rs index c1b0839bb1..9f76ac52c5 100644 --- a/services/mgmt/connectedvmware/src/package_2022_07_15_preview/models.rs +++ b/services/mgmt/connectedvmware/src/package_2022_07_15_preview/models.rs @@ -555,8 +555,6 @@ impl Serialize for FirmwareType { #[doc = "Defines the GuestAgent."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GuestAgent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of a Virtual Machine Guest Agent."] pub properties: GuestAgentProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -566,7 +564,6 @@ pub struct GuestAgent { impl GuestAgent { pub fn new(properties: GuestAgentProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -909,8 +906,6 @@ impl HttpProxyConfiguration { #[doc = "Defines the HybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of Hybrid Identity Metadata for a Virtual Machine."] pub properties: HybridIdentityMetadataProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -920,7 +915,6 @@ pub struct HybridIdentityMetadata { impl HybridIdentityMetadata { pub fn new(properties: HybridIdentityMetadataProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1083,8 +1077,6 @@ pub mod identity { #[doc = "Defines the inventory item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InventoryItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of an Inventory Item."] pub properties: InventoryItemPropertiesUnion, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1097,7 +1089,6 @@ pub struct InventoryItem { impl InventoryItem { pub fn new(properties: InventoryItemPropertiesUnion) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, kind: None, diff --git a/services/mgmt/connectedvmware/src/package_2023_10/models.rs b/services/mgmt/connectedvmware/src/package_2023_10/models.rs index 1fd3ec3f93..57f77d9123 100644 --- a/services/mgmt/connectedvmware/src/package_2023_10/models.rs +++ b/services/mgmt/connectedvmware/src/package_2023_10/models.rs @@ -511,17 +511,12 @@ impl Serialize for FirmwareType { #[doc = "Defines the GuestAgent."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GuestAgent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of a Virtual Machine Guest Agent."] pub properties: GuestAgentProperties, } impl GuestAgent { pub fn new(properties: GuestAgentProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "List of GuestAgent."] @@ -877,8 +872,6 @@ impl InfrastructureProfile { #[doc = "Defines the inventory item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InventoryItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of an Inventory Item."] pub properties: InventoryItemPropertiesUnion, #[doc = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value."] @@ -887,11 +880,7 @@ pub struct InventoryItem { } impl InventoryItem { pub fn new(properties: InventoryItemPropertiesUnion) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - kind: None, - } + Self { properties, kind: None } } } #[doc = "Describes the properties of an Inventory Item reference."] @@ -2027,8 +2016,6 @@ impl VirtualDiskUpdate { #[doc = "Define the virtualMachineInstance."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineInstance { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of a Virtual Machine Instance."] pub properties: VirtualMachineInstanceProperties, #[doc = "The extended location."] @@ -2038,7 +2025,6 @@ pub struct VirtualMachineInstance { impl VirtualMachineInstance { pub fn new(properties: VirtualMachineInstanceProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, extended_location: None, } @@ -2579,17 +2565,12 @@ impl Serialize for VirtualScsiSharing { #[doc = "Defines the HybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmInstanceHybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of Hybrid Identity Metadata for a Virtual Machine."] pub properties: VmInstanceHybridIdentityMetadataProperties, } impl VmInstanceHybridIdentityMetadata { pub fn new(properties: VmInstanceHybridIdentityMetadataProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "List of HybridIdentityMetadata."] diff --git a/services/mgmt/connectedvmware/src/package_preview_2023_03/models.rs b/services/mgmt/connectedvmware/src/package_preview_2023_03/models.rs index 3a801de45b..289df58c57 100644 --- a/services/mgmt/connectedvmware/src/package_preview_2023_03/models.rs +++ b/services/mgmt/connectedvmware/src/package_preview_2023_03/models.rs @@ -567,17 +567,12 @@ impl Serialize for FirmwareType { #[doc = "Defines the GuestAgent."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GuestAgent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of a Virtual Machine Guest Agent."] pub properties: GuestAgentProperties, } impl GuestAgent { pub fn new(properties: GuestAgentProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "List of GuestAgent."] @@ -932,17 +927,12 @@ impl HttpProxyConfiguration { #[doc = "Defines the HybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of Hybrid Identity Metadata for a Virtual Machine."] pub properties: HybridIdentityMetadataProperties, } impl HybridIdentityMetadata { pub fn new(properties: HybridIdentityMetadataProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "List of HybridIdentityMetadata."] @@ -1141,8 +1131,6 @@ impl InfrastructureProfile { #[doc = "Defines the inventory item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InventoryItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of an Inventory Item."] pub properties: InventoryItemPropertiesUnion, #[doc = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value."] @@ -1151,11 +1139,7 @@ pub struct InventoryItem { } impl InventoryItem { pub fn new(properties: InventoryItemPropertiesUnion) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - kind: None, - } + Self { properties, kind: None } } } #[doc = "Describes the properties of an Inventory Item reference."] @@ -3289,8 +3273,6 @@ pub mod virtual_machine_install_patches_result { #[doc = "Define the virtualMachineInstance."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineInstance { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of a Virtual Machine Instance."] pub properties: VirtualMachineInstanceProperties, #[doc = "The extended location."] @@ -3300,7 +3282,6 @@ pub struct VirtualMachineInstance { impl VirtualMachineInstance { pub fn new(properties: VirtualMachineInstanceProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, extended_location: None, } @@ -3985,17 +3966,12 @@ impl Serialize for VirtualScsiSharing { #[doc = "Defines the HybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmInstanceHybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of Hybrid Identity Metadata for a Virtual Machine."] pub properties: VmInstanceHybridIdentityMetadataProperties, } impl VmInstanceHybridIdentityMetadata { pub fn new(properties: VmInstanceHybridIdentityMetadataProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "List of HybridIdentityMetadata."] diff --git a/services/mgmt/consumption/src/package_2023_05/models.rs b/services/mgmt/consumption/src/package_2023_05/models.rs index 3fd012f0da..7505da5748 100644 --- a/services/mgmt/consumption/src/package_2023_05/models.rs +++ b/services/mgmt/consumption/src/package_2023_05/models.rs @@ -418,19 +418,6 @@ impl BudgetsListResult { Self::default() } } -#[doc = "A charge summary resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ChargeSummary { - #[serde(flatten)] - pub proxy_resource: ProxyResource, -} -impl ChargeSummary { - pub fn new() -> Self { - Self { - proxy_resource: ProxyResource::default(), - } - } -} #[doc = "Specifies the kind of charge summary."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -852,17 +839,12 @@ impl HighCasedErrorResponse { #[doc = "Legacy charge summary."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LegacyChargeSummary { - #[serde(flatten)] - pub charge_summary: ChargeSummary, #[doc = "The properties of legacy charge summary."] pub properties: LegacyChargeSummaryProperties, } impl LegacyChargeSummary { - pub fn new(charge_summary: ChargeSummary, properties: LegacyChargeSummaryProperties) -> Self { - Self { - charge_summary, - properties, - } + pub fn new(properties: LegacyChargeSummaryProperties) -> Self { + Self { properties } } } #[doc = "The properties of legacy charge summary."] @@ -898,17 +880,12 @@ impl LegacyChargeSummaryProperties { #[doc = "Legacy reservation recommendation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LegacyReservationRecommendation { - #[serde(flatten)] - pub reservation_recommendation: ReservationRecommendation, #[doc = "The properties of the reservation recommendation."] pub properties: LegacyReservationRecommendationPropertiesUnion, } impl LegacyReservationRecommendation { - pub fn new(reservation_recommendation: ReservationRecommendation, properties: LegacyReservationRecommendationPropertiesUnion) -> Self { - Self { - reservation_recommendation, - properties, - } + pub fn new(properties: LegacyReservationRecommendationPropertiesUnion) -> Self { + Self { properties } } } #[doc = "The properties of the reservation recommendation."] @@ -1116,14 +1093,12 @@ impl LegacySingleScopeReservationRecommendationProperties { #[doc = "Legacy usage detail."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LegacyUsageDetail { - #[serde(flatten)] - pub usage_detail: UsageDetail, #[doc = "The properties of the legacy usage detail."] pub properties: LegacyUsageDetailProperties, } impl LegacyUsageDetail { - pub fn new(usage_detail: UsageDetail, properties: LegacyUsageDetailProperties) -> Self { - Self { usage_detail, properties } + pub fn new(properties: LegacyUsageDetailProperties) -> Self { + Self { properties } } } #[doc = "The properties of the legacy usage detail."] @@ -1752,17 +1727,12 @@ impl MeterDetailsResponse { #[doc = "Modern charge summary."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ModernChargeSummary { - #[serde(flatten)] - pub charge_summary: ChargeSummary, #[doc = "The properties of modern charge summary."] pub properties: ModernChargeSummaryProperties, } impl ModernChargeSummary { - pub fn new(charge_summary: ChargeSummary, properties: ModernChargeSummaryProperties) -> Self { - Self { - charge_summary, - properties, - } + pub fn new(properties: ModernChargeSummaryProperties) -> Self { + Self { properties } } } #[doc = "The properties of modern charge summary."] @@ -1813,17 +1783,12 @@ impl ModernChargeSummaryProperties { #[doc = "Modern reservation recommendation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ModernReservationRecommendation { - #[serde(flatten)] - pub reservation_recommendation: ReservationRecommendation, #[doc = "The properties of the reservation recommendation."] pub properties: ModernReservationRecommendationPropertiesUnion, } impl ModernReservationRecommendation { - pub fn new(reservation_recommendation: ReservationRecommendation, properties: ModernReservationRecommendationPropertiesUnion) -> Self { - Self { - reservation_recommendation, - properties, - } + pub fn new(properties: ModernReservationRecommendationPropertiesUnion) -> Self { + Self { properties } } } #[doc = "The properties of the reservation recommendation."] @@ -2055,14 +2020,12 @@ impl ModernSingleScopeReservationRecommendationProperties { #[doc = "Modern usage detail."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ModernUsageDetail { - #[serde(flatten)] - pub usage_detail: UsageDetail, #[doc = "The properties of the usage detail."] pub properties: ModernUsageDetailProperties, } impl ModernUsageDetail { - pub fn new(usage_detail: UsageDetail, properties: ModernUsageDetailProperties) -> Self { - Self { usage_detail, properties } + pub fn new(properties: ModernUsageDetailProperties) -> Self { + Self { properties } } } #[doc = "The properties of the usage detail."] @@ -2893,22 +2856,6 @@ impl ReservationDetailsListResult { Self::default() } } -#[doc = "A reservation recommendation resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReservationRecommendation { - #[serde(flatten)] - pub resource: Resource, - #[serde(flatten)] - pub resource_attributes: ResourceAttributes, -} -impl ReservationRecommendation { - pub fn new() -> Self { - Self { - resource: Resource::default(), - resource_attributes: ResourceAttributes::default(), - } - } -} #[doc = "Specifies the kind of reservation recommendation."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -3400,19 +3347,6 @@ impl TagsResult { Self::default() } } -#[doc = "An usage detail resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UsageDetail { - #[serde(flatten)] - pub resource: Resource, -} -impl UsageDetail { - pub fn new() -> Self { - Self { - resource: Resource::default(), - } - } -} #[doc = "Specifies the kind of usage details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] diff --git a/services/mgmt/consumption/src/package_2023_11/models.rs b/services/mgmt/consumption/src/package_2023_11/models.rs index 8b6d1b07ba..30b9e01be9 100644 --- a/services/mgmt/consumption/src/package_2023_11/models.rs +++ b/services/mgmt/consumption/src/package_2023_11/models.rs @@ -418,19 +418,6 @@ impl BudgetsListResult { Self::default() } } -#[doc = "A charge summary resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ChargeSummary { - #[serde(flatten)] - pub proxy_resource: ProxyResource, -} -impl ChargeSummary { - pub fn new() -> Self { - Self { - proxy_resource: ProxyResource::default(), - } - } -} #[doc = "Specifies the kind of charge summary."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -852,17 +839,12 @@ impl HighCasedErrorResponse { #[doc = "Legacy charge summary."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LegacyChargeSummary { - #[serde(flatten)] - pub charge_summary: ChargeSummary, #[doc = "The properties of legacy charge summary."] pub properties: LegacyChargeSummaryProperties, } impl LegacyChargeSummary { - pub fn new(charge_summary: ChargeSummary, properties: LegacyChargeSummaryProperties) -> Self { - Self { - charge_summary, - properties, - } + pub fn new(properties: LegacyChargeSummaryProperties) -> Self { + Self { properties } } } #[doc = "The properties of legacy charge summary."] @@ -898,17 +880,12 @@ impl LegacyChargeSummaryProperties { #[doc = "Legacy reservation recommendation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LegacyReservationRecommendation { - #[serde(flatten)] - pub reservation_recommendation: ReservationRecommendation, #[doc = "The properties of the reservation recommendation."] pub properties: LegacyReservationRecommendationPropertiesUnion, } impl LegacyReservationRecommendation { - pub fn new(reservation_recommendation: ReservationRecommendation, properties: LegacyReservationRecommendationPropertiesUnion) -> Self { - Self { - reservation_recommendation, - properties, - } + pub fn new(properties: LegacyReservationRecommendationPropertiesUnion) -> Self { + Self { properties } } } #[doc = "The properties of the reservation recommendation."] @@ -1116,14 +1093,12 @@ impl LegacySingleScopeReservationRecommendationProperties { #[doc = "Legacy usage detail."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LegacyUsageDetail { - #[serde(flatten)] - pub usage_detail: UsageDetail, #[doc = "The properties of the legacy usage detail."] pub properties: LegacyUsageDetailProperties, } impl LegacyUsageDetail { - pub fn new(usage_detail: UsageDetail, properties: LegacyUsageDetailProperties) -> Self { - Self { usage_detail, properties } + pub fn new(properties: LegacyUsageDetailProperties) -> Self { + Self { properties } } } #[doc = "The properties of the legacy usage detail."] @@ -1795,17 +1770,12 @@ impl MeterDetailsResponse { #[doc = "Modern charge summary."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ModernChargeSummary { - #[serde(flatten)] - pub charge_summary: ChargeSummary, #[doc = "The properties of modern charge summary."] pub properties: ModernChargeSummaryProperties, } impl ModernChargeSummary { - pub fn new(charge_summary: ChargeSummary, properties: ModernChargeSummaryProperties) -> Self { - Self { - charge_summary, - properties, - } + pub fn new(properties: ModernChargeSummaryProperties) -> Self { + Self { properties } } } #[doc = "The properties of modern charge summary."] @@ -1856,17 +1826,12 @@ impl ModernChargeSummaryProperties { #[doc = "Modern reservation recommendation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ModernReservationRecommendation { - #[serde(flatten)] - pub reservation_recommendation: ReservationRecommendation, #[doc = "The properties of the reservation recommendation."] pub properties: ModernReservationRecommendationPropertiesUnion, } impl ModernReservationRecommendation { - pub fn new(reservation_recommendation: ReservationRecommendation, properties: ModernReservationRecommendationPropertiesUnion) -> Self { - Self { - reservation_recommendation, - properties, - } + pub fn new(properties: ModernReservationRecommendationPropertiesUnion) -> Self { + Self { properties } } } #[doc = "The properties of the reservation recommendation."] @@ -2098,14 +2063,12 @@ impl ModernSingleScopeReservationRecommendationProperties { #[doc = "Modern usage detail."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ModernUsageDetail { - #[serde(flatten)] - pub usage_detail: UsageDetail, #[doc = "The properties of the usage detail."] pub properties: ModernUsageDetailProperties, } impl ModernUsageDetail { - pub fn new(usage_detail: UsageDetail, properties: ModernUsageDetailProperties) -> Self { - Self { usage_detail, properties } + pub fn new(properties: ModernUsageDetailProperties) -> Self { + Self { properties } } } #[doc = "The properties of the usage detail."] @@ -2936,22 +2899,6 @@ impl ReservationDetailsListResult { Self::default() } } -#[doc = "A reservation recommendation resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReservationRecommendation { - #[serde(flatten)] - pub resource: Resource, - #[serde(flatten)] - pub resource_attributes: ResourceAttributes, -} -impl ReservationRecommendation { - pub fn new() -> Self { - Self { - resource: Resource::default(), - resource_attributes: ResourceAttributes::default(), - } - } -} #[doc = "Specifies the kind of reservation recommendation."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -3443,19 +3390,6 @@ impl TagsResult { Self::default() } } -#[doc = "An usage detail resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UsageDetail { - #[serde(flatten)] - pub resource: Resource, -} -impl UsageDetail { - pub fn new() -> Self { - Self { - resource: Resource::default(), - } - } -} #[doc = "Specifies the kind of usage details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] diff --git a/services/mgmt/containerstorage/src/package_2023_07_01_preview/models.rs b/services/mgmt/containerstorage/src/package_2023_07_01_preview/models.rs index 30cdeb9c66..fc42b207b2 100644 --- a/services/mgmt/containerstorage/src/package_2023_07_01_preview/models.rs +++ b/services/mgmt/containerstorage/src/package_2023_07_01_preview/models.rs @@ -963,8 +963,6 @@ impl Resources { #[doc = "Concrete proxy resource types can be created by aliasing this type using a specific property type."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Snapshot { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Volume Snapshot Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1061,8 +1059,6 @@ impl UserAssignedIdentity { #[doc = "Concrete proxy resource types can be created by aliasing this type using a specific property type."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Volume { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Volume Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/cosmosdb/src/package_preview_2022_08/models.rs b/services/mgmt/cosmosdb/src/package_preview_2022_08/models.rs index 54ccc7f3c5..403b96a93b 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2022_08/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2022_08/models.rs @@ -296,17 +296,14 @@ impl AutoscaleSettingsResource { #[doc = "An Azure Blob Storage data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBlobDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "containerName")] pub container_name: String, #[serde(rename = "endpointUrl", default, skip_serializing_if = "Option::is_none")] pub endpoint_url: Option, } impl AzureBlobDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, container_name: String) -> Self { + pub fn new(container_name: String) -> Self { Self { - data_transfer_data_source_sink, container_name, endpoint_url: None, } @@ -1727,36 +1724,27 @@ impl CorsPolicy { #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosCassandraDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "keyspaceName")] pub keyspace_name: String, #[serde(rename = "tableName")] pub table_name: String, } impl CosmosCassandraDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, keyspace_name: String, table_name: String) -> Self { - Self { - data_transfer_data_source_sink, - keyspace_name, - table_name, - } + pub fn new(keyspace_name: String, table_name: String) -> Self { + Self { keyspace_name, table_name } } } #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosMongoDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "databaseName")] pub database_name: String, #[serde(rename = "collectionName")] pub collection_name: String, } impl CosmosMongoDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, database_name: String, collection_name: String) -> Self { + pub fn new(database_name: String, collection_name: String) -> Self { Self { - data_transfer_data_source_sink, database_name, collection_name, } @@ -1765,17 +1753,14 @@ impl CosmosMongoDataTransferDataSourceSink { #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosSqlDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "databaseName")] pub database_name: String, #[serde(rename = "containerName")] pub container_name: String, } impl CosmosSqlDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, database_name: String, container_name: String) -> Self { + pub fn new(database_name: String, container_name: String) -> Self { Self { - data_transfer_data_source_sink, database_name, container_name, } @@ -1923,14 +1908,6 @@ pub mod data_center_resource { } } } -#[doc = "Base class for all DataTransfer source/sink"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataTransferDataSourceSink {} -impl DataTransferDataSourceSink { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "component")] pub enum DataTransferDataSourceSinkUnion { @@ -5213,8 +5190,6 @@ impl PhysicalPartitionThroughputInfoResultProperties { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/cosmosdb/src/package_preview_2022_11/models.rs b/services/mgmt/cosmosdb/src/package_preview_2022_11/models.rs index f60a2fb294..6832a3353a 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2022_11/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2022_11/models.rs @@ -296,17 +296,14 @@ impl AutoscaleSettingsResource { #[doc = "An Azure Blob Storage data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBlobDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "containerName")] pub container_name: String, #[serde(rename = "endpointUrl", default, skip_serializing_if = "Option::is_none")] pub endpoint_url: Option, } impl AzureBlobDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, container_name: String) -> Self { + pub fn new(container_name: String) -> Self { Self { - data_transfer_data_source_sink, container_name, endpoint_url: None, } @@ -1727,36 +1724,27 @@ impl CorsPolicy { #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosCassandraDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "keyspaceName")] pub keyspace_name: String, #[serde(rename = "tableName")] pub table_name: String, } impl CosmosCassandraDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, keyspace_name: String, table_name: String) -> Self { - Self { - data_transfer_data_source_sink, - keyspace_name, - table_name, - } + pub fn new(keyspace_name: String, table_name: String) -> Self { + Self { keyspace_name, table_name } } } #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosSqlDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "databaseName")] pub database_name: String, #[serde(rename = "containerName")] pub container_name: String, } impl CosmosSqlDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, database_name: String, container_name: String) -> Self { + pub fn new(database_name: String, container_name: String) -> Self { Self { - data_transfer_data_source_sink, database_name, container_name, } @@ -1904,14 +1892,6 @@ pub mod data_center_resource { } } } -#[doc = "Base class for all DataTransfer source/sink"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataTransferDataSourceSink {} -impl DataTransferDataSourceSink { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "component")] pub enum DataTransferDataSourceSinkUnion { @@ -5269,8 +5249,6 @@ impl PhysicalPartitionThroughputInfoResultProperties { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/cosmosdb/src/package_preview_2023_03/models.rs b/services/mgmt/cosmosdb/src/package_preview_2023_03/models.rs index 290a3db1aa..2c09ec19df 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2023_03/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2023_03/models.rs @@ -296,17 +296,14 @@ impl AutoscaleSettingsResource { #[doc = "An Azure Blob Storage data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBlobDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "containerName")] pub container_name: String, #[serde(rename = "endpointUrl", default, skip_serializing_if = "Option::is_none")] pub endpoint_url: Option, } impl AzureBlobDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, container_name: String) -> Self { + pub fn new(container_name: String) -> Self { Self { - data_transfer_data_source_sink, container_name, endpoint_url: None, } @@ -1815,36 +1812,27 @@ impl CorsPolicy { #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosCassandraDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "keyspaceName")] pub keyspace_name: String, #[serde(rename = "tableName")] pub table_name: String, } impl CosmosCassandraDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, keyspace_name: String, table_name: String) -> Self { - Self { - data_transfer_data_source_sink, - keyspace_name, - table_name, - } + pub fn new(keyspace_name: String, table_name: String) -> Self { + Self { keyspace_name, table_name } } } #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosMongoDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "databaseName")] pub database_name: String, #[serde(rename = "collectionName")] pub collection_name: String, } impl CosmosMongoDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, database_name: String, collection_name: String) -> Self { + pub fn new(database_name: String, collection_name: String) -> Self { Self { - data_transfer_data_source_sink, database_name, collection_name, } @@ -1853,17 +1841,14 @@ impl CosmosMongoDataTransferDataSourceSink { #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosSqlDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "databaseName")] pub database_name: String, #[serde(rename = "containerName")] pub container_name: String, } impl CosmosSqlDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, database_name: String, container_name: String) -> Self { + pub fn new(database_name: String, container_name: String) -> Self { Self { - data_transfer_data_source_sink, database_name, container_name, } @@ -2011,14 +1996,6 @@ pub mod data_center_resource { } } } -#[doc = "Base class for all DataTransfer source/sink"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataTransferDataSourceSink {} -impl DataTransferDataSourceSink { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "component")] pub enum DataTransferDataSourceSinkUnion { @@ -3116,17 +3093,12 @@ impl FailoverPolicy { #[doc = "Represents a mongo cluster firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a mongo cluster firewall rule."] pub properties: FirewallRuleProperties, } impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A list of firewall rules."] @@ -5780,8 +5752,6 @@ impl PhysicalPartitionThroughputInfoResultProperties { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/cosmosdb/src/package_preview_2023_03_15/models.rs b/services/mgmt/cosmosdb/src/package_preview_2023_03_15/models.rs index 4608e5b6bf..4ea5822ed8 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2023_03_15/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2023_03_15/models.rs @@ -299,17 +299,14 @@ impl AutoscaleSettingsResource { #[doc = "An Azure Blob Storage data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBlobDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "containerName")] pub container_name: String, #[serde(rename = "endpointUrl", default, skip_serializing_if = "Option::is_none")] pub endpoint_url: Option, } impl AzureBlobDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, container_name: String) -> Self { + pub fn new(container_name: String) -> Self { Self { - data_transfer_data_source_sink, container_name, endpoint_url: None, } @@ -1847,36 +1844,27 @@ impl CorsPolicy { #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosCassandraDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "keyspaceName")] pub keyspace_name: String, #[serde(rename = "tableName")] pub table_name: String, } impl CosmosCassandraDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, keyspace_name: String, table_name: String) -> Self { - Self { - data_transfer_data_source_sink, - keyspace_name, - table_name, - } + pub fn new(keyspace_name: String, table_name: String) -> Self { + Self { keyspace_name, table_name } } } #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosMongoDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "databaseName")] pub database_name: String, #[serde(rename = "collectionName")] pub collection_name: String, } impl CosmosMongoDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, database_name: String, collection_name: String) -> Self { + pub fn new(database_name: String, collection_name: String) -> Self { Self { - data_transfer_data_source_sink, database_name, collection_name, } @@ -1885,17 +1873,14 @@ impl CosmosMongoDataTransferDataSourceSink { #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosSqlDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "databaseName")] pub database_name: String, #[serde(rename = "containerName")] pub container_name: String, } impl CosmosSqlDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, database_name: String, container_name: String) -> Self { + pub fn new(database_name: String, container_name: String) -> Self { Self { - data_transfer_data_source_sink, database_name, container_name, } @@ -2048,14 +2033,6 @@ pub mod data_center_resource { } } } -#[doc = "Base class for all DataTransfer source/sink"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataTransferDataSourceSink {} -impl DataTransferDataSourceSink { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "component")] pub enum DataTransferDataSourceSinkUnion { @@ -3255,17 +3232,12 @@ impl FailoverPolicy { #[doc = "Represents a mongo cluster firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a mongo cluster firewall rule."] pub properties: FirewallRuleProperties, } impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A list of firewall rules."] @@ -6003,8 +5975,6 @@ impl PhysicalPartitionThroughputInfoResultProperties { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/cosmosdb/src/package_preview_2023_09/models.rs b/services/mgmt/cosmosdb/src/package_preview_2023_09/models.rs index 07622ad7a9..ffa55181fd 100644 --- a/services/mgmt/cosmosdb/src/package_preview_2023_09/models.rs +++ b/services/mgmt/cosmosdb/src/package_preview_2023_09/models.rs @@ -299,17 +299,14 @@ impl AutoscaleSettingsResource { #[doc = "An Azure Blob Storage data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBlobDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(rename = "containerName")] pub container_name: String, #[serde(rename = "endpointUrl", default, skip_serializing_if = "Option::is_none")] pub endpoint_url: Option, } impl AzureBlobDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, container_name: String) -> Self { + pub fn new(container_name: String) -> Self { Self { - data_transfer_data_source_sink, container_name, endpoint_url: None, } @@ -1971,8 +1968,6 @@ impl CorsPolicy { #[doc = "A CosmosDB Cassandra API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosCassandraDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(flatten)] pub base_cosmos_data_transfer_data_source_sink: BaseCosmosDataTransferDataSourceSink, #[serde(rename = "keyspaceName")] @@ -1981,9 +1976,8 @@ pub struct CosmosCassandraDataTransferDataSourceSink { pub table_name: String, } impl CosmosCassandraDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, keyspace_name: String, table_name: String) -> Self { + pub fn new(keyspace_name: String, table_name: String) -> Self { Self { - data_transfer_data_source_sink, base_cosmos_data_transfer_data_source_sink: BaseCosmosDataTransferDataSourceSink::default(), keyspace_name, table_name, @@ -1993,8 +1987,6 @@ impl CosmosCassandraDataTransferDataSourceSink { #[doc = "A CosmosDB Mongo API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosMongoDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(flatten)] pub base_cosmos_data_transfer_data_source_sink: BaseCosmosDataTransferDataSourceSink, #[serde(rename = "databaseName")] @@ -2003,9 +1995,8 @@ pub struct CosmosMongoDataTransferDataSourceSink { pub collection_name: String, } impl CosmosMongoDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, database_name: String, collection_name: String) -> Self { + pub fn new(database_name: String, collection_name: String) -> Self { Self { - data_transfer_data_source_sink, base_cosmos_data_transfer_data_source_sink: BaseCosmosDataTransferDataSourceSink::default(), database_name, collection_name, @@ -2015,8 +2006,6 @@ impl CosmosMongoDataTransferDataSourceSink { #[doc = "A CosmosDB No Sql API data source/sink"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CosmosSqlDataTransferDataSourceSink { - #[serde(flatten)] - pub data_transfer_data_source_sink: DataTransferDataSourceSink, #[serde(flatten)] pub base_cosmos_data_transfer_data_source_sink: BaseCosmosDataTransferDataSourceSink, #[serde(rename = "databaseName")] @@ -2025,9 +2014,8 @@ pub struct CosmosSqlDataTransferDataSourceSink { pub container_name: String, } impl CosmosSqlDataTransferDataSourceSink { - pub fn new(data_transfer_data_source_sink: DataTransferDataSourceSink, database_name: String, container_name: String) -> Self { + pub fn new(database_name: String, container_name: String) -> Self { Self { - data_transfer_data_source_sink, base_cosmos_data_transfer_data_source_sink: BaseCosmosDataTransferDataSourceSink::default(), database_name, container_name, @@ -2254,14 +2242,6 @@ pub mod data_center_resource { } } } -#[doc = "Base class for all DataTransfer source/sink"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataTransferDataSourceSink {} -impl DataTransferDataSourceSink { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "component")] pub enum DataTransferDataSourceSinkUnion { @@ -3528,17 +3508,12 @@ impl FailoverPolicy { #[doc = "Represents a mongo cluster firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a mongo cluster firewall rule."] pub properties: FirewallRuleProperties, } impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A list of firewall rules."] @@ -6276,8 +6251,6 @@ impl PhysicalPartitionThroughputInfoResultProperties { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/costmanagement/src/package_preview_2023_04/models.rs b/services/mgmt/costmanagement/src/package_preview_2023_04/models.rs index d665df7254..14481dcd1e 100644 --- a/services/mgmt/costmanagement/src/package_preview_2023_04/models.rs +++ b/services/mgmt/costmanagement/src/package_preview_2023_04/models.rs @@ -614,19 +614,6 @@ impl BenefitUtilizationSummariesListResult { Self::default() } } -#[doc = "Benefit utilization summary resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BenefitUtilizationSummary { - #[serde(flatten)] - pub resource: Resource, -} -impl BenefitUtilizationSummary { - pub fn new() -> Self { - Self { - resource: Resource::default(), - } - } -} #[doc = "Kind/type of the benefit."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -1196,8 +1183,6 @@ impl CostManagementOperation { #[doc = "The Resource model definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CostManagementProxyResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "eTag of the resource. To handle concurrent update scenario, this field will be used to determine whether the user is updating the latest version or not."] #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, @@ -2783,18 +2768,13 @@ impl Serialize for GranularityType { #[doc = "Included Quantity utilization summary resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IncludedQuantityUtilizationSummary { - #[serde(flatten)] - pub benefit_utilization_summary: BenefitUtilizationSummary, #[doc = "Included Quantity utilization summary properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl IncludedQuantityUtilizationSummary { - pub fn new(benefit_utilization_summary: BenefitUtilizationSummary) -> Self { - Self { - benefit_utilization_summary, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Included Quantity utilization summary properties."] @@ -4606,18 +4586,13 @@ impl Resource { #[doc = "Savings plan utilization summary resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SavingsPlanUtilizationSummary { - #[serde(flatten)] - pub benefit_utilization_summary: BenefitUtilizationSummary, #[doc = "Savings plan utilization summary properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SavingsPlanUtilizationSummary { - pub fn new(benefit_utilization_summary: BenefitUtilizationSummary) -> Self { - Self { - benefit_utilization_summary, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Savings plan utilization summary properties."] @@ -4850,8 +4825,6 @@ impl ScheduledActionProperties { #[doc = "The Resource model definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScheduledActionProxyResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource Etag. For update calls, eTag is mandatory. Fetch the resource's eTag by doing a 'GET' call first and then including the latest eTag as part of the request body or 'If-Match' header while performing the update. For create calls, eTag is not required."] #[serde(rename = "eTag", default, skip_serializing_if = "Option::is_none")] pub e_tag: Option, diff --git a/services/mgmt/data/src/package_2017_03_01_preview/models.rs b/services/mgmt/data/src/package_2017_03_01_preview/models.rs index 6eae163d5f..e3c54b1368 100644 --- a/services/mgmt/data/src/package_2017_03_01_preview/models.rs +++ b/services/mgmt/data/src/package_2017_03_01_preview/models.rs @@ -406,8 +406,6 @@ pub mod sku { #[doc = "A SQL server."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SqlServer { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The SQL server properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/data/src/package_preview_2019_07/models.rs b/services/mgmt/data/src/package_preview_2019_07/models.rs index 6eae163d5f..e3c54b1368 100644 --- a/services/mgmt/data/src/package_preview_2019_07/models.rs +++ b/services/mgmt/data/src/package_preview_2019_07/models.rs @@ -406,8 +406,6 @@ pub mod sku { #[doc = "A SQL server."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SqlServer { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The SQL server properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/databox/src/package_2022_02/models.rs b/services/mgmt/databox/src/package_2022_02/models.rs index a6dd6a5b73..78baaa5508 100644 --- a/services/mgmt/databox/src/package_2022_02/models.rs +++ b/services/mgmt/databox/src/package_2022_02/models.rs @@ -360,14 +360,6 @@ impl ContactDetails { } } } -#[doc = "Details for log generated during copy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyLogDetails {} -impl CopyLogDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Indicates the type of job details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "copyLogDetailsType")] @@ -460,21 +452,13 @@ impl CreateJobValidations { #[doc = "Request to validate create order limit for current subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateOrderLimitForSubscriptionValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Device type to be used for the job."] #[serde(rename = "deviceType")] pub device_type: create_order_limit_for_subscription_validation_request::DeviceType, } impl CreateOrderLimitForSubscriptionValidationRequest { - pub fn new( - validation_input_request: ValidationInputRequest, - device_type: create_order_limit_for_subscription_validation_request::DeviceType, - ) -> Self { - Self { - validation_input_request, - device_type, - } + pub fn new(device_type: create_order_limit_for_subscription_validation_request::DeviceType) -> Self { + Self { device_type } } } pub mod create_order_limit_for_subscription_validation_request { @@ -563,8 +547,6 @@ pub enum DataAccountDetailsUnion { #[doc = "Copy log details for a storage account of a DataBox job"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxAccountCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Account name."] #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, @@ -576,9 +558,8 @@ pub struct DataBoxAccountCopyLogDetails { pub copy_verbose_log_link: Option, } impl DataBoxAccountCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, account_name: None, copy_log_link: None, copy_verbose_log_link: None, @@ -588,8 +569,6 @@ impl DataBoxAccountCopyLogDetails { #[doc = "Copy Log Details for customer disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxCustomerDiskCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "serialNumber", default, skip_serializing_if = "Option::is_none")] pub serial_number: Option, @@ -601,9 +580,8 @@ pub struct DataBoxCustomerDiskCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxCustomerDiskCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, serial_number: None, error_log_link: None, verbose_log_link: None, @@ -746,8 +724,6 @@ impl DataBoxCustomerDiskJobDetails { #[doc = "Copy Log Details for a disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxDiskCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "diskSerialNumber", default, skip_serializing_if = "Option::is_none")] pub disk_serial_number: Option, @@ -759,9 +735,8 @@ pub struct DataBoxDiskCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxDiskCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, disk_serial_number: None, error_log_link: None, verbose_log_link: None, @@ -866,8 +841,6 @@ pub mod data_box_disk_copy_progress { #[doc = "Granular Copy Log Details for customer disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxDiskGranularCopyLogDetails { - #[serde(flatten)] - pub granular_copy_log_details: GranularCopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "serialNumber", default, skip_serializing_if = "Option::is_none")] pub serial_number: Option, @@ -882,9 +855,8 @@ pub struct DataBoxDiskGranularCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxDiskGranularCopyLogDetails { - pub fn new(granular_copy_log_details: GranularCopyLogDetails) -> Self { + pub fn new() -> Self { Self { - granular_copy_log_details, serial_number: None, account_id: None, error_log_link: None, @@ -1068,8 +1040,6 @@ impl DataBoxDiskJobSecrets { #[doc = "Copy log details for a storage account for Databox heavy"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxHeavyAccountCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Account name."] #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, @@ -1091,9 +1061,8 @@ pub struct DataBoxHeavyAccountCopyLogDetails { pub copy_verbose_log_link: Vec, } impl DataBoxHeavyAccountCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, account_name: None, copy_log_link: Vec::new(), copy_verbose_log_link: Vec::new(), @@ -1341,8 +1310,6 @@ impl DataLocationToServiceLocationMap { #[doc = "Request to validate export and import data details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataTransferDetailsValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "List of DataTransfer details to be used to export data from azure."] #[serde( rename = "dataExportDetails", @@ -1368,12 +1335,10 @@ pub struct DataTransferDetailsValidationRequest { } impl DataTransferDetailsValidationRequest { pub fn new( - validation_input_request: ValidationInputRequest, device_type: data_transfer_details_validation_request::DeviceType, transfer_type: data_transfer_details_validation_request::TransferType, ) -> Self { Self { - validation_input_request, data_export_details: Vec::new(), data_import_details: Vec::new(), device_type, @@ -1774,14 +1739,6 @@ pub mod filter_file_details { AzureFile, } } -#[doc = "Granular Details for log generated during copy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GranularCopyLogDetails {} -impl GranularCopyLogDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Indicates the type of job details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "copyLogDetailsType")] @@ -3008,8 +2965,6 @@ impl Preferences { #[doc = "Request to validate preference of transport and data center."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PreferencesValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Preferences related to the order"] #[serde(default, skip_serializing_if = "Option::is_none")] pub preference: Option, @@ -3018,9 +2973,8 @@ pub struct PreferencesValidationRequest { pub device_type: preferences_validation_request::DeviceType, } impl PreferencesValidationRequest { - pub fn new(validation_input_request: ValidationInputRequest, device_type: preferences_validation_request::DeviceType) -> Self { + pub fn new(device_type: preferences_validation_request::DeviceType) -> Self { Self { - validation_input_request, preference: None, device_type, } @@ -3367,8 +3321,6 @@ pub mod sku { #[doc = "Request to validate sku availability."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SkuAvailabilityValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Device type to be used for the job."] #[serde(rename = "deviceType")] pub device_type: sku_availability_validation_request::DeviceType, @@ -3382,14 +3334,12 @@ pub struct SkuAvailabilityValidationRequest { } impl SkuAvailabilityValidationRequest { pub fn new( - validation_input_request: ValidationInputRequest, device_type: sku_availability_validation_request::DeviceType, transfer_type: sku_availability_validation_request::TransferType, country: String, location: String, ) -> Self { Self { - validation_input_request, device_type, transfer_type, country, @@ -3568,13 +3518,10 @@ impl StorageAccountDetails { } #[doc = "Request to validate subscription permission to create jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SubscriptionIsAllowedToCreateJobValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, -} +pub struct SubscriptionIsAllowedToCreateJobValidationRequest {} impl SubscriptionIsAllowedToCreateJobValidationRequest { - pub fn new(validation_input_request: ValidationInputRequest) -> Self { - Self { validation_input_request } + pub fn new() -> Self { + Self {} } } #[doc = "Properties of subscription permission to create job validation response."] @@ -3925,8 +3872,6 @@ impl UserAssignedProperties { #[doc = "The requirements to validate customer address where the device needs to be shipped."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ValidateAddress { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Shipping address where customer wishes to receive the device."] #[serde(rename = "shippingAddress")] pub shipping_address: ShippingAddress, @@ -3938,13 +3883,8 @@ pub struct ValidateAddress { pub transport_preferences: Option, } impl ValidateAddress { - pub fn new( - validation_input_request: ValidationInputRequest, - shipping_address: ShippingAddress, - device_type: validate_address::DeviceType, - ) -> Self { + pub fn new(shipping_address: ShippingAddress, device_type: validate_address::DeviceType) -> Self { Self { - validation_input_request, shipping_address, device_type, transport_preferences: None, @@ -3962,14 +3902,6 @@ pub mod validate_address { DataBoxCustomerDisk, } } -#[doc = "Minimum fields that must be present in any type of validation request."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ValidationInputRequest {} -impl ValidationInputRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "Identifies the type of validation request."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "validationType")] diff --git a/services/mgmt/databox/src/package_2022_09/models.rs b/services/mgmt/databox/src/package_2022_09/models.rs index 29cd800f2e..d391e7a2bf 100644 --- a/services/mgmt/databox/src/package_2022_09/models.rs +++ b/services/mgmt/databox/src/package_2022_09/models.rs @@ -385,14 +385,6 @@ impl ContactInfo { } } } -#[doc = "Details for log generated during copy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyLogDetails {} -impl CopyLogDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Indicates the type of job details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "copyLogDetailsType")] @@ -485,21 +477,13 @@ impl CreateJobValidations { #[doc = "Request to validate create order limit for current subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateOrderLimitForSubscriptionValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Device type to be used for the job."] #[serde(rename = "deviceType")] pub device_type: create_order_limit_for_subscription_validation_request::DeviceType, } impl CreateOrderLimitForSubscriptionValidationRequest { - pub fn new( - validation_input_request: ValidationInputRequest, - device_type: create_order_limit_for_subscription_validation_request::DeviceType, - ) -> Self { - Self { - validation_input_request, - device_type, - } + pub fn new(device_type: create_order_limit_for_subscription_validation_request::DeviceType) -> Self { + Self { device_type } } } pub mod create_order_limit_for_subscription_validation_request { @@ -588,8 +572,6 @@ pub enum DataAccountDetailsUnion { #[doc = "Copy log details for a storage account of a DataBox job"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxAccountCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Account name."] #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, @@ -601,9 +583,8 @@ pub struct DataBoxAccountCopyLogDetails { pub copy_verbose_log_link: Option, } impl DataBoxAccountCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, account_name: None, copy_log_link: None, copy_verbose_log_link: None, @@ -613,8 +594,6 @@ impl DataBoxAccountCopyLogDetails { #[doc = "Copy Log Details for customer disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxCustomerDiskCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "serialNumber", default, skip_serializing_if = "Option::is_none")] pub serial_number: Option, @@ -626,9 +605,8 @@ pub struct DataBoxCustomerDiskCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxCustomerDiskCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, serial_number: None, error_log_link: None, verbose_log_link: None, @@ -771,8 +749,6 @@ impl DataBoxCustomerDiskJobDetails { #[doc = "Copy Log Details for a disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxDiskCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "diskSerialNumber", default, skip_serializing_if = "Option::is_none")] pub disk_serial_number: Option, @@ -784,9 +760,8 @@ pub struct DataBoxDiskCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxDiskCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, disk_serial_number: None, error_log_link: None, verbose_log_link: None, @@ -891,8 +866,6 @@ pub mod data_box_disk_copy_progress { #[doc = "Granular Copy Log Details for customer disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxDiskGranularCopyLogDetails { - #[serde(flatten)] - pub granular_copy_log_details: GranularCopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "serialNumber", default, skip_serializing_if = "Option::is_none")] pub serial_number: Option, @@ -907,9 +880,8 @@ pub struct DataBoxDiskGranularCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxDiskGranularCopyLogDetails { - pub fn new(granular_copy_log_details: GranularCopyLogDetails) -> Self { + pub fn new() -> Self { Self { - granular_copy_log_details, serial_number: None, account_id: None, error_log_link: None, @@ -1093,8 +1065,6 @@ impl DataBoxDiskJobSecrets { #[doc = "Copy log details for a storage account for Databox heavy"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxHeavyAccountCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Account name."] #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, @@ -1116,9 +1086,8 @@ pub struct DataBoxHeavyAccountCopyLogDetails { pub copy_verbose_log_link: Vec, } impl DataBoxHeavyAccountCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, account_name: None, copy_log_link: Vec::new(), copy_verbose_log_link: Vec::new(), @@ -1366,8 +1335,6 @@ impl DataLocationToServiceLocationMap { #[doc = "Request to validate export and import data details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataTransferDetailsValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "List of DataTransfer details to be used to export data from azure."] #[serde( rename = "dataExportDetails", @@ -1393,12 +1360,10 @@ pub struct DataTransferDetailsValidationRequest { } impl DataTransferDetailsValidationRequest { pub fn new( - validation_input_request: ValidationInputRequest, device_type: data_transfer_details_validation_request::DeviceType, transfer_type: data_transfer_details_validation_request::TransferType, ) -> Self { Self { - validation_input_request, data_export_details: Vec::new(), data_import_details: Vec::new(), device_type, @@ -1799,14 +1764,6 @@ pub mod filter_file_details { AzureFile, } } -#[doc = "Granular Details for log generated during copy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GranularCopyLogDetails {} -impl GranularCopyLogDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Indicates the type of job details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "copyLogDetailsType")] @@ -3062,8 +3019,6 @@ impl Preferences { #[doc = "Request to validate preference of transport and data center."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PreferencesValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Preferences related to the order"] #[serde(default, skip_serializing_if = "Option::is_none")] pub preference: Option, @@ -3072,9 +3027,8 @@ pub struct PreferencesValidationRequest { pub device_type: preferences_validation_request::DeviceType, } impl PreferencesValidationRequest { - pub fn new(validation_input_request: ValidationInputRequest, device_type: preferences_validation_request::DeviceType) -> Self { + pub fn new(device_type: preferences_validation_request::DeviceType) -> Self { Self { - validation_input_request, preference: None, device_type, } @@ -3439,8 +3393,6 @@ pub mod sku { #[doc = "Request to validate sku availability."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SkuAvailabilityValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Device type to be used for the job."] #[serde(rename = "deviceType")] pub device_type: sku_availability_validation_request::DeviceType, @@ -3454,14 +3406,12 @@ pub struct SkuAvailabilityValidationRequest { } impl SkuAvailabilityValidationRequest { pub fn new( - validation_input_request: ValidationInputRequest, device_type: sku_availability_validation_request::DeviceType, transfer_type: sku_availability_validation_request::TransferType, country: String, location: String, ) -> Self { Self { - validation_input_request, device_type, transfer_type, country, @@ -3648,13 +3598,10 @@ impl StorageAccountDetails { } #[doc = "Request to validate subscription permission to create jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SubscriptionIsAllowedToCreateJobValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, -} +pub struct SubscriptionIsAllowedToCreateJobValidationRequest {} impl SubscriptionIsAllowedToCreateJobValidationRequest { - pub fn new(validation_input_request: ValidationInputRequest) -> Self { - Self { validation_input_request } + pub fn new() -> Self { + Self {} } } #[doc = "Properties of subscription permission to create job validation response."] @@ -4017,8 +3964,6 @@ impl UserAssignedProperties { #[doc = "The requirements to validate customer address where the device needs to be shipped."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ValidateAddress { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Shipping address where customer wishes to receive the device."] #[serde(rename = "shippingAddress")] pub shipping_address: ShippingAddress, @@ -4030,13 +3975,8 @@ pub struct ValidateAddress { pub transport_preferences: Option, } impl ValidateAddress { - pub fn new( - validation_input_request: ValidationInputRequest, - shipping_address: ShippingAddress, - device_type: validate_address::DeviceType, - ) -> Self { + pub fn new(shipping_address: ShippingAddress, device_type: validate_address::DeviceType) -> Self { Self { - validation_input_request, shipping_address, device_type, transport_preferences: None, @@ -4054,14 +3994,6 @@ pub mod validate_address { DataBoxCustomerDisk, } } -#[doc = "Minimum fields that must be present in any type of validation request."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ValidationInputRequest {} -impl ValidationInputRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "Identifies the type of validation request."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "validationType")] diff --git a/services/mgmt/databox/src/package_2022_10/models.rs b/services/mgmt/databox/src/package_2022_10/models.rs index 02d477c4e0..2af4c205c5 100644 --- a/services/mgmt/databox/src/package_2022_10/models.rs +++ b/services/mgmt/databox/src/package_2022_10/models.rs @@ -385,14 +385,6 @@ impl ContactInfo { } } } -#[doc = "Details for log generated during copy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyLogDetails {} -impl CopyLogDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Indicates the type of job details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "copyLogDetailsType")] @@ -485,21 +477,13 @@ impl CreateJobValidations { #[doc = "Request to validate create order limit for current subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateOrderLimitForSubscriptionValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Device type to be used for the job."] #[serde(rename = "deviceType")] pub device_type: create_order_limit_for_subscription_validation_request::DeviceType, } impl CreateOrderLimitForSubscriptionValidationRequest { - pub fn new( - validation_input_request: ValidationInputRequest, - device_type: create_order_limit_for_subscription_validation_request::DeviceType, - ) -> Self { - Self { - validation_input_request, - device_type, - } + pub fn new(device_type: create_order_limit_for_subscription_validation_request::DeviceType) -> Self { + Self { device_type } } } pub mod create_order_limit_for_subscription_validation_request { @@ -588,8 +572,6 @@ pub enum DataAccountDetailsUnion { #[doc = "Copy log details for a storage account of a DataBox job"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxAccountCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Account name."] #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, @@ -601,9 +583,8 @@ pub struct DataBoxAccountCopyLogDetails { pub copy_verbose_log_link: Option, } impl DataBoxAccountCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, account_name: None, copy_log_link: None, copy_verbose_log_link: None, @@ -613,8 +594,6 @@ impl DataBoxAccountCopyLogDetails { #[doc = "Copy Log Details for customer disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxCustomerDiskCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "serialNumber", default, skip_serializing_if = "Option::is_none")] pub serial_number: Option, @@ -626,9 +605,8 @@ pub struct DataBoxCustomerDiskCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxCustomerDiskCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, serial_number: None, error_log_link: None, verbose_log_link: None, @@ -771,8 +749,6 @@ impl DataBoxCustomerDiskJobDetails { #[doc = "Copy Log Details for a disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxDiskCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "diskSerialNumber", default, skip_serializing_if = "Option::is_none")] pub disk_serial_number: Option, @@ -784,9 +760,8 @@ pub struct DataBoxDiskCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxDiskCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, disk_serial_number: None, error_log_link: None, verbose_log_link: None, @@ -901,8 +876,6 @@ pub mod data_box_disk_copy_progress { #[doc = "Granular Copy Log Details for customer disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxDiskGranularCopyLogDetails { - #[serde(flatten)] - pub granular_copy_log_details: GranularCopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "serialNumber", default, skip_serializing_if = "Option::is_none")] pub serial_number: Option, @@ -917,9 +890,8 @@ pub struct DataBoxDiskGranularCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxDiskGranularCopyLogDetails { - pub fn new(granular_copy_log_details: GranularCopyLogDetails) -> Self { + pub fn new() -> Self { Self { - granular_copy_log_details, serial_number: None, account_id: None, error_log_link: None, @@ -1103,8 +1075,6 @@ impl DataBoxDiskJobSecrets { #[doc = "Copy log details for a storage account for Databox heavy"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxHeavyAccountCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Account name."] #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, @@ -1126,9 +1096,8 @@ pub struct DataBoxHeavyAccountCopyLogDetails { pub copy_verbose_log_link: Vec, } impl DataBoxHeavyAccountCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, account_name: None, copy_log_link: Vec::new(), copy_verbose_log_link: Vec::new(), @@ -1376,8 +1345,6 @@ impl DataLocationToServiceLocationMap { #[doc = "Request to validate export and import data details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataTransferDetailsValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "List of DataTransfer details to be used to export data from azure."] #[serde( rename = "dataExportDetails", @@ -1403,12 +1370,10 @@ pub struct DataTransferDetailsValidationRequest { } impl DataTransferDetailsValidationRequest { pub fn new( - validation_input_request: ValidationInputRequest, device_type: data_transfer_details_validation_request::DeviceType, transfer_type: data_transfer_details_validation_request::TransferType, ) -> Self { Self { - validation_input_request, data_export_details: Vec::new(), data_import_details: Vec::new(), device_type, @@ -1809,14 +1774,6 @@ pub mod filter_file_details { AzureFile, } } -#[doc = "Granular Details for log generated during copy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GranularCopyLogDetails {} -impl GranularCopyLogDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Indicates the type of job details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "copyLogDetailsType")] @@ -3085,8 +3042,6 @@ impl Preferences { #[doc = "Request to validate preference of transport and data center."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PreferencesValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Preferences related to the order"] #[serde(default, skip_serializing_if = "Option::is_none")] pub preference: Option, @@ -3095,9 +3050,8 @@ pub struct PreferencesValidationRequest { pub device_type: preferences_validation_request::DeviceType, } impl PreferencesValidationRequest { - pub fn new(validation_input_request: ValidationInputRequest, device_type: preferences_validation_request::DeviceType) -> Self { + pub fn new(device_type: preferences_validation_request::DeviceType) -> Self { Self { - validation_input_request, preference: None, device_type, } @@ -3462,8 +3416,6 @@ pub mod sku { #[doc = "Request to validate sku availability."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SkuAvailabilityValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Device type to be used for the job."] #[serde(rename = "deviceType")] pub device_type: sku_availability_validation_request::DeviceType, @@ -3477,14 +3429,12 @@ pub struct SkuAvailabilityValidationRequest { } impl SkuAvailabilityValidationRequest { pub fn new( - validation_input_request: ValidationInputRequest, device_type: sku_availability_validation_request::DeviceType, transfer_type: sku_availability_validation_request::TransferType, country: String, location: String, ) -> Self { Self { - validation_input_request, device_type, transfer_type, country, @@ -3671,13 +3621,10 @@ impl StorageAccountDetails { } #[doc = "Request to validate subscription permission to create jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SubscriptionIsAllowedToCreateJobValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, -} +pub struct SubscriptionIsAllowedToCreateJobValidationRequest {} impl SubscriptionIsAllowedToCreateJobValidationRequest { - pub fn new(validation_input_request: ValidationInputRequest) -> Self { - Self { validation_input_request } + pub fn new() -> Self { + Self {} } } #[doc = "Properties of subscription permission to create job validation response."] @@ -4040,8 +3987,6 @@ impl UserAssignedProperties { #[doc = "The requirements to validate customer address where the device needs to be shipped."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ValidateAddress { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Shipping address where customer wishes to receive the device."] #[serde(rename = "shippingAddress")] pub shipping_address: ShippingAddress, @@ -4053,13 +3998,8 @@ pub struct ValidateAddress { pub transport_preferences: Option, } impl ValidateAddress { - pub fn new( - validation_input_request: ValidationInputRequest, - shipping_address: ShippingAddress, - device_type: validate_address::DeviceType, - ) -> Self { + pub fn new(shipping_address: ShippingAddress, device_type: validate_address::DeviceType) -> Self { Self { - validation_input_request, shipping_address, device_type, transport_preferences: None, @@ -4077,14 +4017,6 @@ pub mod validate_address { DataBoxCustomerDisk, } } -#[doc = "Minimum fields that must be present in any type of validation request."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ValidationInputRequest {} -impl ValidationInputRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "Identifies the type of validation request."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "validationType")] diff --git a/services/mgmt/databox/src/package_2022_12/models.rs b/services/mgmt/databox/src/package_2022_12/models.rs index 31d171adcc..c460846123 100644 --- a/services/mgmt/databox/src/package_2022_12/models.rs +++ b/services/mgmt/databox/src/package_2022_12/models.rs @@ -385,14 +385,6 @@ impl ContactInfo { } } } -#[doc = "Details for log generated during copy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyLogDetails {} -impl CopyLogDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Indicates the type of job details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "copyLogDetailsType")] @@ -495,21 +487,13 @@ impl CreateJobValidations { #[doc = "Request to validate create order limit for current subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateOrderLimitForSubscriptionValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Device type to be used for the job."] #[serde(rename = "deviceType")] pub device_type: create_order_limit_for_subscription_validation_request::DeviceType, } impl CreateOrderLimitForSubscriptionValidationRequest { - pub fn new( - validation_input_request: ValidationInputRequest, - device_type: create_order_limit_for_subscription_validation_request::DeviceType, - ) -> Self { - Self { - validation_input_request, - device_type, - } + pub fn new(device_type: create_order_limit_for_subscription_validation_request::DeviceType) -> Self { + Self { device_type } } } pub mod create_order_limit_for_subscription_validation_request { @@ -598,8 +582,6 @@ pub enum DataAccountDetailsUnion { #[doc = "Copy log details for a storage account of a DataBox job"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxAccountCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Account name."] #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, @@ -611,9 +593,8 @@ pub struct DataBoxAccountCopyLogDetails { pub copy_verbose_log_link: Option, } impl DataBoxAccountCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, account_name: None, copy_log_link: None, copy_verbose_log_link: None, @@ -623,8 +604,6 @@ impl DataBoxAccountCopyLogDetails { #[doc = "Copy Log Details for customer disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxCustomerDiskCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "serialNumber", default, skip_serializing_if = "Option::is_none")] pub serial_number: Option, @@ -636,9 +615,8 @@ pub struct DataBoxCustomerDiskCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxCustomerDiskCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, serial_number: None, error_log_link: None, verbose_log_link: None, @@ -781,8 +759,6 @@ impl DataBoxCustomerDiskJobDetails { #[doc = "Copy Log Details for a disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxDiskCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "diskSerialNumber", default, skip_serializing_if = "Option::is_none")] pub disk_serial_number: Option, @@ -794,9 +770,8 @@ pub struct DataBoxDiskCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxDiskCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, disk_serial_number: None, error_log_link: None, verbose_log_link: None, @@ -911,8 +886,6 @@ pub mod data_box_disk_copy_progress { #[doc = "Granular Copy Log Details for customer disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxDiskGranularCopyLogDetails { - #[serde(flatten)] - pub granular_copy_log_details: GranularCopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "serialNumber", default, skip_serializing_if = "Option::is_none")] pub serial_number: Option, @@ -927,9 +900,8 @@ pub struct DataBoxDiskGranularCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxDiskGranularCopyLogDetails { - pub fn new(granular_copy_log_details: GranularCopyLogDetails) -> Self { + pub fn new() -> Self { Self { - granular_copy_log_details, serial_number: None, account_id: None, error_log_link: None, @@ -1113,8 +1085,6 @@ impl DataBoxDiskJobSecrets { #[doc = "Copy log details for a storage account for Databox heavy"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxHeavyAccountCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Account name."] #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, @@ -1136,9 +1106,8 @@ pub struct DataBoxHeavyAccountCopyLogDetails { pub copy_verbose_log_link: Vec, } impl DataBoxHeavyAccountCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, account_name: None, copy_log_link: Vec::new(), copy_verbose_log_link: Vec::new(), @@ -1386,8 +1355,6 @@ impl DataLocationToServiceLocationMap { #[doc = "Request to validate export and import data details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataTransferDetailsValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "List of DataTransfer details to be used to export data from azure."] #[serde( rename = "dataExportDetails", @@ -1413,12 +1380,10 @@ pub struct DataTransferDetailsValidationRequest { } impl DataTransferDetailsValidationRequest { pub fn new( - validation_input_request: ValidationInputRequest, device_type: data_transfer_details_validation_request::DeviceType, transfer_type: data_transfer_details_validation_request::TransferType, ) -> Self { Self { - validation_input_request, data_export_details: Vec::new(), data_import_details: Vec::new(), device_type, @@ -1828,14 +1793,6 @@ pub mod filter_file_details { AzureFile, } } -#[doc = "Granular Details for log generated during copy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GranularCopyLogDetails {} -impl GranularCopyLogDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Indicates the type of job details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "copyLogDetailsType")] @@ -3104,8 +3061,6 @@ impl Preferences { #[doc = "Request to validate preference of transport and data center."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PreferencesValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Preferences related to the order"] #[serde(default, skip_serializing_if = "Option::is_none")] pub preference: Option, @@ -3114,9 +3069,8 @@ pub struct PreferencesValidationRequest { pub device_type: preferences_validation_request::DeviceType, } impl PreferencesValidationRequest { - pub fn new(validation_input_request: ValidationInputRequest, device_type: preferences_validation_request::DeviceType) -> Self { + pub fn new(device_type: preferences_validation_request::DeviceType) -> Self { Self { - validation_input_request, preference: None, device_type, } @@ -3489,8 +3443,6 @@ pub mod sku { #[doc = "Request to validate sku availability."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SkuAvailabilityValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Device type to be used for the job."] #[serde(rename = "deviceType")] pub device_type: sku_availability_validation_request::DeviceType, @@ -3504,14 +3456,12 @@ pub struct SkuAvailabilityValidationRequest { } impl SkuAvailabilityValidationRequest { pub fn new( - validation_input_request: ValidationInputRequest, device_type: sku_availability_validation_request::DeviceType, transfer_type: sku_availability_validation_request::TransferType, country: String, location: String, ) -> Self { Self { - validation_input_request, device_type, transfer_type, country, @@ -3698,13 +3648,10 @@ impl StorageAccountDetails { } #[doc = "Request to validate subscription permission to create jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SubscriptionIsAllowedToCreateJobValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, -} +pub struct SubscriptionIsAllowedToCreateJobValidationRequest {} impl SubscriptionIsAllowedToCreateJobValidationRequest { - pub fn new(validation_input_request: ValidationInputRequest) -> Self { - Self { validation_input_request } + pub fn new() -> Self { + Self {} } } #[doc = "Properties of subscription permission to create job validation response."] @@ -4067,8 +4014,6 @@ impl UserAssignedProperties { #[doc = "The requirements to validate customer address where the device needs to be shipped."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ValidateAddress { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Shipping address where customer wishes to receive the device."] #[serde(rename = "shippingAddress")] pub shipping_address: ShippingAddress, @@ -4080,13 +4025,8 @@ pub struct ValidateAddress { pub transport_preferences: Option, } impl ValidateAddress { - pub fn new( - validation_input_request: ValidationInputRequest, - shipping_address: ShippingAddress, - device_type: validate_address::DeviceType, - ) -> Self { + pub fn new(shipping_address: ShippingAddress, device_type: validate_address::DeviceType) -> Self { Self { - validation_input_request, shipping_address, device_type, transport_preferences: None, @@ -4104,14 +4044,6 @@ pub mod validate_address { DataBoxCustomerDisk, } } -#[doc = "Minimum fields that must be present in any type of validation request."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ValidationInputRequest {} -impl ValidationInputRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "Identifies the type of validation request."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "validationType")] diff --git a/services/mgmt/databox/src/package_2023_03/models.rs b/services/mgmt/databox/src/package_2023_03/models.rs index ac0cebcc45..34d085c6d6 100644 --- a/services/mgmt/databox/src/package_2023_03/models.rs +++ b/services/mgmt/databox/src/package_2023_03/models.rs @@ -385,14 +385,6 @@ impl ContactInfo { } } } -#[doc = "Details for log generated during copy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyLogDetails {} -impl CopyLogDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Indicates the type of job details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "copyLogDetailsType")] @@ -495,21 +487,13 @@ impl CreateJobValidations { #[doc = "Request to validate create order limit for current subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CreateOrderLimitForSubscriptionValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Device type to be used for the job."] #[serde(rename = "deviceType")] pub device_type: create_order_limit_for_subscription_validation_request::DeviceType, } impl CreateOrderLimitForSubscriptionValidationRequest { - pub fn new( - validation_input_request: ValidationInputRequest, - device_type: create_order_limit_for_subscription_validation_request::DeviceType, - ) -> Self { - Self { - validation_input_request, - device_type, - } + pub fn new(device_type: create_order_limit_for_subscription_validation_request::DeviceType) -> Self { + Self { device_type } } } pub mod create_order_limit_for_subscription_validation_request { @@ -598,8 +582,6 @@ pub enum DataAccountDetailsUnion { #[doc = "Copy log details for a storage account of a DataBox job"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxAccountCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Account name."] #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, @@ -611,9 +593,8 @@ pub struct DataBoxAccountCopyLogDetails { pub copy_verbose_log_link: Option, } impl DataBoxAccountCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, account_name: None, copy_log_link: None, copy_verbose_log_link: None, @@ -623,8 +604,6 @@ impl DataBoxAccountCopyLogDetails { #[doc = "Copy Log Details for customer disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxCustomerDiskCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "serialNumber", default, skip_serializing_if = "Option::is_none")] pub serial_number: Option, @@ -636,9 +615,8 @@ pub struct DataBoxCustomerDiskCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxCustomerDiskCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, serial_number: None, error_log_link: None, verbose_log_link: None, @@ -781,8 +759,6 @@ impl DataBoxCustomerDiskJobDetails { #[doc = "Copy Log Details for a disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxDiskCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "diskSerialNumber", default, skip_serializing_if = "Option::is_none")] pub disk_serial_number: Option, @@ -794,9 +770,8 @@ pub struct DataBoxDiskCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxDiskCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, disk_serial_number: None, error_log_link: None, verbose_log_link: None, @@ -911,8 +886,6 @@ pub mod data_box_disk_copy_progress { #[doc = "Granular Copy Log Details for customer disk"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxDiskGranularCopyLogDetails { - #[serde(flatten)] - pub granular_copy_log_details: GranularCopyLogDetails, #[doc = "Disk Serial Number."] #[serde(rename = "serialNumber", default, skip_serializing_if = "Option::is_none")] pub serial_number: Option, @@ -927,9 +900,8 @@ pub struct DataBoxDiskGranularCopyLogDetails { pub verbose_log_link: Option, } impl DataBoxDiskGranularCopyLogDetails { - pub fn new(granular_copy_log_details: GranularCopyLogDetails) -> Self { + pub fn new() -> Self { Self { - granular_copy_log_details, serial_number: None, account_id: None, error_log_link: None, @@ -1113,8 +1085,6 @@ impl DataBoxDiskJobSecrets { #[doc = "Copy log details for a storage account for Databox heavy"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataBoxHeavyAccountCopyLogDetails { - #[serde(flatten)] - pub copy_log_details: CopyLogDetails, #[doc = "Account name."] #[serde(rename = "accountName", default, skip_serializing_if = "Option::is_none")] pub account_name: Option, @@ -1136,9 +1106,8 @@ pub struct DataBoxHeavyAccountCopyLogDetails { pub copy_verbose_log_link: Vec, } impl DataBoxHeavyAccountCopyLogDetails { - pub fn new(copy_log_details: CopyLogDetails) -> Self { + pub fn new() -> Self { Self { - copy_log_details, account_name: None, copy_log_link: Vec::new(), copy_verbose_log_link: Vec::new(), @@ -1386,8 +1355,6 @@ impl DataLocationToServiceLocationMap { #[doc = "Request to validate export and import data details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataTransferDetailsValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "List of DataTransfer details to be used to export data from azure."] #[serde( rename = "dataExportDetails", @@ -1413,12 +1380,10 @@ pub struct DataTransferDetailsValidationRequest { } impl DataTransferDetailsValidationRequest { pub fn new( - validation_input_request: ValidationInputRequest, device_type: data_transfer_details_validation_request::DeviceType, transfer_type: data_transfer_details_validation_request::TransferType, ) -> Self { Self { - validation_input_request, data_export_details: Vec::new(), data_import_details: Vec::new(), device_type, @@ -1828,14 +1793,6 @@ pub mod filter_file_details { AzureFile, } } -#[doc = "Granular Details for log generated during copy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GranularCopyLogDetails {} -impl GranularCopyLogDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Indicates the type of job details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "copyLogDetailsType")] @@ -3309,8 +3266,6 @@ impl Preferences { #[doc = "Request to validate preference of transport and data center."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PreferencesValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Preferences related to the order"] #[serde(default, skip_serializing_if = "Option::is_none")] pub preference: Option, @@ -3319,9 +3274,8 @@ pub struct PreferencesValidationRequest { pub device_type: preferences_validation_request::DeviceType, } impl PreferencesValidationRequest { - pub fn new(validation_input_request: ValidationInputRequest, device_type: preferences_validation_request::DeviceType) -> Self { + pub fn new(device_type: preferences_validation_request::DeviceType) -> Self { Self { - validation_input_request, preference: None, device_type, } @@ -3694,8 +3648,6 @@ pub mod sku { #[doc = "Request to validate sku availability."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SkuAvailabilityValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Device type to be used for the job."] #[serde(rename = "deviceType")] pub device_type: sku_availability_validation_request::DeviceType, @@ -3709,14 +3661,12 @@ pub struct SkuAvailabilityValidationRequest { } impl SkuAvailabilityValidationRequest { pub fn new( - validation_input_request: ValidationInputRequest, device_type: sku_availability_validation_request::DeviceType, transfer_type: sku_availability_validation_request::TransferType, country: String, location: String, ) -> Self { Self { - validation_input_request, device_type, transfer_type, country, @@ -3903,13 +3853,10 @@ impl StorageAccountDetails { } #[doc = "Request to validate subscription permission to create jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SubscriptionIsAllowedToCreateJobValidationRequest { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, -} +pub struct SubscriptionIsAllowedToCreateJobValidationRequest {} impl SubscriptionIsAllowedToCreateJobValidationRequest { - pub fn new(validation_input_request: ValidationInputRequest) -> Self { - Self { validation_input_request } + pub fn new() -> Self { + Self {} } } #[doc = "Properties of subscription permission to create job validation response."] @@ -4272,8 +4219,6 @@ impl UserAssignedProperties { #[doc = "The requirements to validate customer address where the device needs to be shipped."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ValidateAddress { - #[serde(flatten)] - pub validation_input_request: ValidationInputRequest, #[doc = "Shipping address where customer wishes to receive the device."] #[serde(rename = "shippingAddress")] pub shipping_address: ShippingAddress, @@ -4285,13 +4230,8 @@ pub struct ValidateAddress { pub transport_preferences: Option, } impl ValidateAddress { - pub fn new( - validation_input_request: ValidationInputRequest, - shipping_address: ShippingAddress, - device_type: validate_address::DeviceType, - ) -> Self { + pub fn new(shipping_address: ShippingAddress, device_type: validate_address::DeviceType) -> Self { Self { - validation_input_request, shipping_address, device_type, transport_preferences: None, @@ -4309,14 +4249,6 @@ pub mod validate_address { DataBoxCustomerDisk, } } -#[doc = "Minimum fields that must be present in any type of validation request."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ValidationInputRequest {} -impl ValidationInputRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "Identifies the type of validation request."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "validationType")] diff --git a/services/mgmt/datafactory/src/package_2017_09_preview/models.rs b/services/mgmt/datafactory/src/package_2017_09_preview/models.rs index 3663385bbb..8bd81c38f5 100644 --- a/services/mgmt/datafactory/src/package_2017_09_preview/models.rs +++ b/services/mgmt/datafactory/src/package_2017_09_preview/models.rs @@ -121,8 +121,6 @@ impl ActivityRunsListResponse { #[doc = "Azure Key Vault secret reference."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureKeyVaultSecretReference { - #[serde(flatten)] - pub secret_base: SecretBase, #[doc = "Linked service reference type."] pub store: LinkedServiceReference, #[doc = "The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string)."] @@ -133,9 +131,8 @@ pub struct AzureKeyVaultSecretReference { pub secret_version: Option, } impl AzureKeyVaultSecretReference { - pub fn new(secret_base: SecretBase, store: LinkedServiceReference, secret_name: serde_json::Value) -> Self { + pub fn new(store: LinkedServiceReference, secret_name: serde_json::Value) -> Self { Self { - secret_base, store, secret_name, secret_version: None, @@ -1674,14 +1671,6 @@ impl Resource { Self::default() } } -#[doc = "The base definition of a secret type."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecretBase {} -impl SecretBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the secret."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -1692,14 +1681,12 @@ pub enum SecretBaseUnion { #[doc = "Azure Data Factory secure string definition. The string value will be masked with asterisks '*' during Get or List API calls."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecureString { - #[serde(flatten)] - pub secret_base: SecretBase, #[doc = "Value of secure string."] pub value: String, } impl SecureString { - pub fn new(secret_base: SecretBase, value: String) -> Self { - Self { secret_base, value } + pub fn new(value: String) -> Self { + Self { value } } } #[doc = "Properties of Self-hosted integration runtime node."] diff --git a/services/mgmt/datafactory/src/package_2018_06/models.rs b/services/mgmt/datafactory/src/package_2018_06/models.rs index afd0e0a514..1416cd8282 100644 --- a/services/mgmt/datafactory/src/package_2018_06/models.rs +++ b/services/mgmt/datafactory/src/package_2018_06/models.rs @@ -1117,18 +1117,13 @@ impl AppFiguresLinkedServiceTypeProperties { #[doc = "Append value for a Variable of type Array."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AppendVariableActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "AppendVariable activity properties."] #[serde(rename = "typeProperties")] pub type_properties: AppendVariableActivityTypeProperties, } impl AppendVariableActivity { - pub fn new(control_activity: ControlActivity, type_properties: AppendVariableActivityTypeProperties) -> Self { - Self { - control_activity, - type_properties, - } + pub fn new(type_properties: AppendVariableActivityTypeProperties) -> Self { + Self { type_properties } } } #[doc = "AppendVariable activity properties."] @@ -1332,8 +1327,6 @@ impl AvroSource { #[doc = "Avro write settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AvroWriteSettings { - #[serde(flatten)] - pub format_write_settings: FormatWriteSettings, #[doc = "Top level record name in write result, which is required in AVRO spec."] #[serde(rename = "recordName", default, skip_serializing_if = "Option::is_none")] pub record_name: Option, @@ -1348,9 +1341,8 @@ pub struct AvroWriteSettings { pub file_name_prefix: Option, } impl AvroWriteSettings { - pub fn new(format_write_settings: FormatWriteSettings) -> Self { + pub fn new() -> Self { Self { - format_write_settings, record_name: None, record_namespace: None, max_rows_per_file: None, @@ -1361,18 +1353,13 @@ impl AvroWriteSettings { #[doc = "The express custom setup of installing Azure PowerShell."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzPowerShellSetup { - #[serde(flatten)] - pub custom_setup_base: CustomSetupBase, #[doc = "Installation of Azure PowerShell type properties."] #[serde(rename = "typeProperties")] pub type_properties: AzPowerShellSetupTypeProperties, } impl AzPowerShellSetup { - pub fn new(custom_setup_base: CustomSetupBase, type_properties: AzPowerShellSetupTypeProperties) -> Self { - Self { - custom_setup_base, - type_properties, - } + pub fn new(type_properties: AzPowerShellSetupTypeProperties) -> Self { + Self { type_properties } } } #[doc = "Installation of Azure PowerShell type properties."] @@ -2418,8 +2405,6 @@ impl AzureDatabricksDeltaLakeDatasetTypeProperties { #[doc = "Azure Databricks Delta Lake export command settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureDatabricksDeltaLakeExportCommand { - #[serde(flatten)] - pub export_settings: ExportSettings, #[doc = "Specify the date format for the csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string)."] #[serde(rename = "dateFormat", default, skip_serializing_if = "Option::is_none")] pub date_format: Option, @@ -2428,9 +2413,8 @@ pub struct AzureDatabricksDeltaLakeExportCommand { pub timestamp_format: Option, } impl AzureDatabricksDeltaLakeExportCommand { - pub fn new(export_settings: ExportSettings) -> Self { + pub fn new() -> Self { Self { - export_settings, date_format: None, timestamp_format: None, } @@ -2439,8 +2423,6 @@ impl AzureDatabricksDeltaLakeExportCommand { #[doc = "Azure Databricks Delta Lake import command settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureDatabricksDeltaLakeImportCommand { - #[serde(flatten)] - pub import_settings: ImportSettings, #[doc = "Specify the date format for csv in Azure Databricks Delta Lake Copy. Type: string (or Expression with resultType string)."] #[serde(rename = "dateFormat", default, skip_serializing_if = "Option::is_none")] pub date_format: Option, @@ -2449,9 +2431,8 @@ pub struct AzureDatabricksDeltaLakeImportCommand { pub timestamp_format: Option, } impl AzureDatabricksDeltaLakeImportCommand { - pub fn new(import_settings: ImportSettings) -> Self { + pub fn new() -> Self { Self { - import_settings, date_format: None, timestamp_format: None, } @@ -2967,8 +2948,6 @@ impl AzureKeyVaultLinkedServiceTypeProperties { #[doc = "Azure Key Vault secret reference."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureKeyVaultSecretReference { - #[serde(flatten)] - pub secret_base: SecretBase, #[doc = "Linked service reference type."] pub store: LinkedServiceReference, #[doc = "The name of the secret in Azure Key Vault. Type: string (or Expression with resultType string)."] @@ -2979,9 +2958,8 @@ pub struct AzureKeyVaultSecretReference { pub secret_version: Option, } impl AzureKeyVaultSecretReference { - pub fn new(secret_base: SecretBase, store: LinkedServiceReference, secret_name: serde_json::Value) -> Self { + pub fn new(store: LinkedServiceReference, secret_name: serde_json::Value) -> Self { Self { - secret_base, store, secret_name, secret_version: None, @@ -4309,16 +4287,13 @@ impl BinaryDatasetTypeProperties { #[doc = "Binary read settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BinaryReadSettings { - #[serde(flatten)] - pub format_read_settings: FormatReadSettings, #[doc = "Compression read settings."] #[serde(rename = "compressionProperties", default, skip_serializing_if = "Option::is_none")] pub compression_properties: Option, } impl BinaryReadSettings { - pub fn new(format_read_settings: FormatReadSettings) -> Self { + pub fn new() -> Self { Self { - format_read_settings, compression_properties: None, } } @@ -4874,18 +4849,13 @@ impl CloudErrorBody { #[doc = "The custom setup of running cmdkey commands."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CmdkeySetup { - #[serde(flatten)] - pub custom_setup_base: CustomSetupBase, #[doc = "Cmdkey command custom setup type properties."] #[serde(rename = "typeProperties")] pub type_properties: CmdkeySetupTypeProperties, } impl CmdkeySetup { - pub fn new(custom_setup_base: CustomSetupBase, type_properties: CmdkeySetupTypeProperties) -> Self { - Self { - custom_setup_base, - type_properties, - } + pub fn new(type_properties: CmdkeySetupTypeProperties) -> Self { + Self { type_properties } } } #[doc = "Cmdkey command custom setup type properties."] @@ -5062,18 +5032,13 @@ impl CommonDataServiceForAppsSource { #[doc = "The custom setup of installing 3rd party components."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ComponentSetup { - #[serde(flatten)] - pub custom_setup_base: CustomSetupBase, #[doc = "Installation of licensed component setup type properties."] #[serde(rename = "typeProperties")] pub type_properties: LicensedComponentSetupTypeProperties, } impl ComponentSetup { - pub fn new(custom_setup_base: CustomSetupBase, type_properties: LicensedComponentSetupTypeProperties) -> Self { - Self { - custom_setup_base, - type_properties, - } + pub fn new(type_properties: LicensedComponentSetupTypeProperties) -> Self { + Self { type_properties } } } #[doc = "All available compressionCodec values."] @@ -5176,14 +5141,6 @@ impl Serialize for CompressionLevel { } } } -#[doc = "Compression read settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CompressionReadSettings {} -impl CompressionReadSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "The Compression setting type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -5556,14 +5513,6 @@ impl CopySource { #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] pub enum CopySourceUnion {} -#[doc = "A copy activity translator."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyTranslator {} -impl CopyTranslator { - pub fn new() -> Self { - Self {} - } -} #[doc = "Copy translator type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -6270,14 +6219,6 @@ pub mod custom_events_trigger { } } } -#[doc = "The base definition of the custom setup."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CustomSetupBase {} -impl CustomSetupBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of custom setup."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -7659,8 +7600,6 @@ impl DelimitedTextDatasetTypeProperties { #[doc = "Delimited text read settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DelimitedTextReadSettings { - #[serde(flatten)] - pub format_read_settings: FormatReadSettings, #[doc = "Indicates the number of non-empty rows to skip when reading data from input files. Type: integer (or Expression with resultType integer)."] #[serde(rename = "skipLineCount", default, skip_serializing_if = "Option::is_none")] pub skip_line_count: Option, @@ -7669,9 +7608,8 @@ pub struct DelimitedTextReadSettings { pub compression_properties: Option, } impl DelimitedTextReadSettings { - pub fn new(format_read_settings: FormatReadSettings) -> Self { + pub fn new() -> Self { Self { - format_read_settings, skip_line_count: None, compression_properties: None, } @@ -7726,8 +7664,6 @@ impl DelimitedTextSource { #[doc = "Delimited text write settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DelimitedTextWriteSettings { - #[serde(flatten)] - pub format_write_settings: FormatWriteSettings, #[doc = "Indicates whether string values should always be enclosed with quotes. Type: boolean (or Expression with resultType boolean)."] #[serde(rename = "quoteAllText", default, skip_serializing_if = "Option::is_none")] pub quote_all_text: Option, @@ -7742,9 +7678,8 @@ pub struct DelimitedTextWriteSettings { pub file_name_prefix: Option, } impl DelimitedTextWriteSettings { - pub fn new(format_write_settings: FormatWriteSettings, file_extension: serde_json::Value) -> Self { + pub fn new(file_extension: serde_json::Value) -> Self { Self { - format_write_settings, quote_all_text: None, file_extension, max_rows_per_file: None, @@ -7752,14 +7687,6 @@ impl DelimitedTextWriteSettings { } } } -#[doc = "Referenced dependency."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DependencyReference {} -impl DependencyReference { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of dependency reference."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -8637,18 +8564,13 @@ pub mod entity_reference { #[doc = "The custom setup of setting environment variable."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct EnvironmentVariableSetup { - #[serde(flatten)] - pub custom_setup_base: CustomSetupBase, #[doc = "Environment variable custom setup type properties."] #[serde(rename = "typeProperties")] pub type_properties: EnvironmentVariableSetupTypeProperties, } impl EnvironmentVariableSetup { - pub fn new(custom_setup_base: CustomSetupBase, type_properties: EnvironmentVariableSetupTypeProperties) -> Self { - Self { - custom_setup_base, - type_properties, - } + pub fn new(type_properties: EnvironmentVariableSetupTypeProperties) -> Self { + Self { type_properties } } } #[doc = "Environment variable custom setup type properties."] @@ -8824,8 +8746,6 @@ pub mod execute_data_flow_activity_type_properties { #[doc = "Execute pipeline activity."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExecutePipelineActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "Execution policy for an execute pipeline activity."] #[serde(default, skip_serializing_if = "Option::is_none")] pub policy: Option, @@ -8834,9 +8754,8 @@ pub struct ExecutePipelineActivity { pub type_properties: ExecutePipelineActivityTypeProperties, } impl ExecutePipelineActivity { - pub fn new(control_activity: ControlActivity, type_properties: ExecutePipelineActivityTypeProperties) -> Self { + pub fn new(type_properties: ExecutePipelineActivityTypeProperties) -> Self { Self { - control_activity, policy: None, type_properties, } @@ -9017,14 +8936,6 @@ impl ExecutionActivity { } } } -#[doc = "Export command settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ExportSettings {} -impl ExportSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "The export setting type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -9462,18 +9373,13 @@ impl FactoryVstsConfiguration { #[doc = "This activity will fail within its own scope and output a custom error message and error code. The error message and code can provided either as a string literal or as an expression that can be evaluated to a string at runtime. The activity scope can be the whole pipeline or a control activity (e.g. foreach, switch, until), if the fail activity is contained in it."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FailActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "Fail activity properties."] #[serde(rename = "typeProperties")] pub type_properties: FailActivityTypeProperties, } impl FailActivity { - pub fn new(control_activity: ControlActivity, type_properties: FailActivityTypeProperties) -> Self { - Self { - control_activity, - type_properties, - } + pub fn new(type_properties: FailActivityTypeProperties) -> Self { + Self { type_properties } } } #[doc = "Fail activity properties."] @@ -9695,18 +9601,13 @@ impl FileSystemSource { #[doc = "Filter and return results from input array based on the conditions."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FilterActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "Filter activity properties."] #[serde(rename = "typeProperties")] pub type_properties: FilterActivityTypeProperties, } impl FilterActivity { - pub fn new(control_activity: ControlActivity, type_properties: FilterActivityTypeProperties) -> Self { - Self { - control_activity, - type_properties, - } + pub fn new(type_properties: FilterActivityTypeProperties) -> Self { + Self { type_properties } } } #[doc = "Filter activity properties."] @@ -9783,18 +9684,13 @@ impl FlowletTypeProperties { #[doc = "This activity is used for iterating over a collection and execute given activities."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ForEachActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "ForEach activity properties."] #[serde(rename = "typeProperties")] pub type_properties: ForEachActivityTypeProperties, } impl ForEachActivity { - pub fn new(control_activity: ControlActivity, type_properties: ForEachActivityTypeProperties) -> Self { - Self { - control_activity, - type_properties, - } + pub fn new(type_properties: ForEachActivityTypeProperties) -> Self { + Self { type_properties } } } #[doc = "ForEach activity properties."] @@ -9821,26 +9717,10 @@ impl ForEachActivityTypeProperties { } } } -#[doc = "Format read settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FormatReadSettings {} -impl FormatReadSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "The read setting type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] pub enum FormatReadSettingsUnion {} -#[doc = "Format write settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FormatWriteSettings {} -impl FormatWriteSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "The write setting type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -12306,18 +12186,13 @@ impl HubspotSource { #[doc = "This activity evaluates a boolean expression and executes either the activities under the ifTrueActivities property or the ifFalseActivities property depending on the result of the expression."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IfConditionActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "IfCondition activity properties."] #[serde(rename = "typeProperties")] pub type_properties: IfConditionActivityTypeProperties, } impl IfConditionActivity { - pub fn new(control_activity: ControlActivity, type_properties: IfConditionActivityTypeProperties) -> Self { - Self { - control_activity, - type_properties, - } + pub fn new(type_properties: IfConditionActivityTypeProperties) -> Self { + Self { type_properties } } } #[doc = "IfCondition activity properties."] @@ -12516,14 +12391,6 @@ impl ImpalaSource { } } } -#[doc = "Import command settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ImportSettings {} -impl ImportSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "The import setting type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -13722,16 +13589,13 @@ impl Serialize for JsonFormatFilePattern { #[doc = "Json read settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JsonReadSettings { - #[serde(flatten)] - pub format_read_settings: FormatReadSettings, #[doc = "Compression read settings."] #[serde(rename = "compressionProperties", default, skip_serializing_if = "Option::is_none")] pub compression_properties: Option, } impl JsonReadSettings { - pub fn new(format_read_settings: FormatReadSettings) -> Self { + pub fn new() -> Self { Self { - format_read_settings, compression_properties: None, } } @@ -13824,18 +13688,13 @@ impl Serialize for JsonWriteFilePattern { #[doc = "Json write settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JsonWriteSettings { - #[serde(flatten)] - pub format_write_settings: FormatWriteSettings, #[doc = "File pattern of JSON. This setting controls the way a collection of JSON objects will be treated. The default value is 'setOfObjects'. It is case-sensitive."] #[serde(rename = "filePattern", default, skip_serializing_if = "Option::is_none")] pub file_pattern: Option, } impl JsonWriteSettings { - pub fn new(format_write_settings: FormatWriteSettings) -> Self { - Self { - format_write_settings, - file_pattern: None, - } + pub fn new() -> Self { + Self { file_pattern: None } } } #[doc = "Installation of licensed component setup type properties."] @@ -13883,24 +13742,17 @@ impl LinkedIntegrationRuntime { #[doc = "The key authorization type integration runtime."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedIntegrationRuntimeKeyAuthorization { - #[serde(flatten)] - pub linked_integration_runtime_type: LinkedIntegrationRuntimeType, #[doc = "Azure Data Factory secure string definition. The string value will be masked with asterisks '*' during Get or List API calls."] pub key: SecureString, } impl LinkedIntegrationRuntimeKeyAuthorization { - pub fn new(linked_integration_runtime_type: LinkedIntegrationRuntimeType, key: SecureString) -> Self { - Self { - linked_integration_runtime_type, - key, - } + pub fn new(key: SecureString) -> Self { + Self { key } } } #[doc = "The role based access control (RBAC) authorization type integration runtime."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedIntegrationRuntimeRbacAuthorization { - #[serde(flatten)] - pub linked_integration_runtime_type: LinkedIntegrationRuntimeType, #[doc = "The resource identifier of the integration runtime to be shared."] #[serde(rename = "resourceId")] pub resource_id: String, @@ -13909,9 +13761,8 @@ pub struct LinkedIntegrationRuntimeRbacAuthorization { pub credential: Option, } impl LinkedIntegrationRuntimeRbacAuthorization { - pub fn new(linked_integration_runtime_type: LinkedIntegrationRuntimeType, resource_id: String) -> Self { + pub fn new(resource_id: String) -> Self { Self { - linked_integration_runtime_type, resource_id, credential: None, } @@ -13929,14 +13780,6 @@ impl LinkedIntegrationRuntimeRequest { Self { factory_name } } } -#[doc = "The base definition of a linked integration runtime."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct LinkedIntegrationRuntimeType {} -impl LinkedIntegrationRuntimeType { - pub fn new() -> Self { - Self {} - } -} #[doc = "The authorization type for integration runtime sharing."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "authorizationType")] @@ -17491,8 +17334,6 @@ impl OrcSource { #[doc = "Orc write settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OrcWriteSettings { - #[serde(flatten)] - pub format_write_settings: FormatWriteSettings, #[doc = "Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with resultType integer)."] #[serde(rename = "maxRowsPerFile", default, skip_serializing_if = "Option::is_none")] pub max_rows_per_file: Option, @@ -17501,9 +17342,8 @@ pub struct OrcWriteSettings { pub file_name_prefix: Option, } impl OrcWriteSettings { - pub fn new(format_write_settings: FormatWriteSettings) -> Self { + pub fn new() -> Self { Self { - format_write_settings, max_rows_per_file: None, file_name_prefix: None, } @@ -17720,8 +17560,6 @@ impl ParquetSource { #[doc = "Parquet write settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ParquetWriteSettings { - #[serde(flatten)] - pub format_write_settings: FormatWriteSettings, #[doc = "Limit the written file's row count to be smaller than or equal to the specified count. Type: integer (or Expression with resultType integer)."] #[serde(rename = "maxRowsPerFile", default, skip_serializing_if = "Option::is_none")] pub max_rows_per_file: Option, @@ -17730,9 +17568,8 @@ pub struct ParquetWriteSettings { pub file_name_prefix: Option, } impl ParquetWriteSettings { - pub fn new(format_write_settings: FormatWriteSettings) -> Self { + pub fn new() -> Self { Self { - format_write_settings, max_rows_per_file: None, file_name_prefix: None, } @@ -21955,14 +21792,6 @@ pub mod script_activity_type_properties { } } } -#[doc = "The base definition of a secret type."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SecretBase {} -impl SecretBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the secret."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -21988,21 +21817,17 @@ impl SecureInputOutputPolicy { #[doc = "Azure Data Factory secure string definition. The string value will be masked with asterisks '*' during Get or List API calls."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecureString { - #[serde(flatten)] - pub secret_base: SecretBase, #[doc = "Value of secure string."] pub value: String, } impl SecureString { - pub fn new(secret_base: SecretBase, value: String) -> Self { - Self { secret_base, value } + pub fn new(value: String) -> Self { + Self { value } } } #[doc = "Self referenced tumbling window trigger dependency."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SelfDependencyTumblingWindowTriggerReference { - #[serde(flatten)] - pub dependency_reference: DependencyReference, #[doc = "Timespan applied to the start time of a tumbling window when evaluating dependency."] pub offset: String, #[doc = "The size of the window when evaluating the dependency. If undefined the frequency of the tumbling window will be used."] @@ -22010,12 +21835,8 @@ pub struct SelfDependencyTumblingWindowTriggerReference { pub size: Option, } impl SelfDependencyTumblingWindowTriggerReference { - pub fn new(dependency_reference: DependencyReference, offset: String) -> Self { - Self { - dependency_reference, - offset, - size: None, - } + pub fn new(offset: String) -> Self { + Self { offset, size: None } } } #[doc = "Self-hosted integration runtime."] @@ -22525,8 +22346,6 @@ impl Serialize for ServicePrincipalCredentialType { #[doc = "Set value for a Variable."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SetVariableActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "SetVariable activity properties."] #[serde(rename = "typeProperties")] pub type_properties: SetVariableActivityTypeProperties, @@ -22535,9 +22354,8 @@ pub struct SetVariableActivity { pub policy: Option, } impl SetVariableActivity { - pub fn new(control_activity: ControlActivity, type_properties: SetVariableActivityTypeProperties) -> Self { + pub fn new(type_properties: SetVariableActivityTypeProperties) -> Self { Self { - control_activity, type_properties, policy: None, } @@ -23026,8 +22844,6 @@ impl SnowflakeDatasetTypeProperties { #[doc = "Snowflake export command settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SnowflakeExportCopyCommand { - #[serde(flatten)] - pub export_settings: ExportSettings, #[doc = "Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: \"additionalCopyOptions\": { \"DATE_FORMAT\": \"MM/DD/YYYY\", \"TIME_FORMAT\": \"'HH24:MI:SS.FF'\" }"] #[serde(rename = "additionalCopyOptions", default, skip_serializing_if = "Option::is_none")] pub additional_copy_options: Option, @@ -23036,9 +22852,8 @@ pub struct SnowflakeExportCopyCommand { pub additional_format_options: Option, } impl SnowflakeExportCopyCommand { - pub fn new(export_settings: ExportSettings) -> Self { + pub fn new() -> Self { Self { - export_settings, additional_copy_options: None, additional_format_options: None, } @@ -23047,8 +22862,6 @@ impl SnowflakeExportCopyCommand { #[doc = "Snowflake import command settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SnowflakeImportCopyCommand { - #[serde(flatten)] - pub import_settings: ImportSettings, #[doc = "Additional copy options directly passed to snowflake Copy Command. Type: key value pairs (value should be string type) (or Expression with resultType object). Example: \"additionalCopyOptions\": { \"DATE_FORMAT\": \"MM/DD/YYYY\", \"TIME_FORMAT\": \"'HH24:MI:SS.FF'\" }"] #[serde(rename = "additionalCopyOptions", default, skip_serializing_if = "Option::is_none")] pub additional_copy_options: Option, @@ -23057,9 +22870,8 @@ pub struct SnowflakeImportCopyCommand { pub additional_format_options: Option, } impl SnowflakeImportCopyCommand { - pub fn new(import_settings: ImportSettings) -> Self { + pub fn new() -> Self { Self { - import_settings, additional_copy_options: None, additional_format_options: None, } @@ -24738,18 +24550,13 @@ impl SubResourceDebugResource { #[doc = "This activity evaluates an expression and executes activities under the cases property that correspond to the expression evaluation expected in the equals property."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SwitchActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "Switch activity properties."] #[serde(rename = "typeProperties")] pub type_properties: SwitchActivityTypeProperties, } impl SwitchActivity { - pub fn new(control_activity: ControlActivity, type_properties: SwitchActivityTypeProperties) -> Self { - Self { - control_activity, - type_properties, - } + pub fn new(type_properties: SwitchActivityTypeProperties) -> Self { + Self { type_properties } } } #[doc = "Switch activity properties."] @@ -25329,8 +25136,6 @@ impl TabularSource { #[doc = "A copy activity tabular translator."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TabularTranslator { - #[serde(flatten)] - pub copy_translator: CopyTranslator, #[doc = "Column mappings. Example: \"UserId: MyUserId, Group: MyGroup, Name: MyName\" Type: string (or Expression with resultType string). This property will be retired. Please use mappings property."] #[serde(rename = "columnMappings", default, skip_serializing_if = "Option::is_none")] pub column_mappings: Option, @@ -25354,9 +25159,8 @@ pub struct TabularTranslator { pub type_conversion_settings: Option, } impl TabularTranslator { - pub fn new(copy_translator: CopyTranslator) -> Self { + pub fn new() -> Self { Self { - copy_translator, column_mappings: None, schema_mapping: None, collection_reference: None, @@ -25370,16 +25174,13 @@ impl TabularTranslator { #[doc = "The TarGZip compression read settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TarGZipReadSettings { - #[serde(flatten)] - pub compression_read_settings: CompressionReadSettings, #[doc = "Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean)."] #[serde(rename = "preserveCompressionFileNameAsFolder", default, skip_serializing_if = "Option::is_none")] pub preserve_compression_file_name_as_folder: Option, } impl TarGZipReadSettings { - pub fn new(compression_read_settings: CompressionReadSettings) -> Self { + pub fn new() -> Self { Self { - compression_read_settings, preserve_compression_file_name_as_folder: None, } } @@ -25387,16 +25188,13 @@ impl TarGZipReadSettings { #[doc = "The Tar compression read settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TarReadSettings { - #[serde(flatten)] - pub compression_read_settings: CompressionReadSettings, #[doc = "Preserve the compression file name as folder path. Type: boolean (or Expression with resultType boolean)."] #[serde(rename = "preserveCompressionFileNameAsFolder", default, skip_serializing_if = "Option::is_none")] pub preserve_compression_file_name_as_folder: Option, } impl TarReadSettings { - pub fn new(compression_read_settings: CompressionReadSettings) -> Self { + pub fn new() -> Self { Self { - compression_read_settings, preserve_compression_file_name_as_folder: None, } } @@ -25802,18 +25600,13 @@ pub enum TriggerUnion { #[doc = "Trigger referenced dependency."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TriggerDependencyReference { - #[serde(flatten)] - pub dependency_reference: DependencyReference, #[doc = "Trigger reference type."] #[serde(rename = "referenceTrigger")] pub reference_trigger: TriggerReference, } impl TriggerDependencyReference { - pub fn new(dependency_reference: DependencyReference, reference_trigger: TriggerReference) -> Self { - Self { - dependency_reference, - reference_trigger, - } + pub fn new(reference_trigger: TriggerReference) -> Self { + Self { reference_trigger } } } #[doc = "Query parameters for triggers."] @@ -26339,18 +26132,13 @@ impl TypeConversionSettings { #[doc = "This activity executes inner activities until the specified boolean expression results to true or timeout is reached, whichever is earlier."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UntilActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "Until activity properties."] #[serde(rename = "typeProperties")] pub type_properties: UntilActivityTypeProperties, } impl UntilActivity { - pub fn new(control_activity: ControlActivity, type_properties: UntilActivityTypeProperties) -> Self { - Self { - control_activity, - type_properties, - } + pub fn new(type_properties: UntilActivityTypeProperties) -> Self { + Self { type_properties } } } #[doc = "Until activity properties."] @@ -26456,18 +26244,13 @@ impl UserProperty { #[doc = "This activity verifies that an external resource exists."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ValidationActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "Validation activity properties."] #[serde(rename = "typeProperties")] pub type_properties: ValidationActivityTypeProperties, } impl ValidationActivity { - pub fn new(control_activity: ControlActivity, type_properties: ValidationActivityTypeProperties) -> Self { - Self { - control_activity, - type_properties, - } + pub fn new(type_properties: ValidationActivityTypeProperties) -> Self { + Self { type_properties } } } #[doc = "Validation activity properties."] @@ -26657,18 +26440,13 @@ impl VerticaTableDataset { #[doc = "This activity suspends pipeline execution for the specified interval."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WaitActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "Wait activity properties."] #[serde(rename = "typeProperties")] pub type_properties: WaitActivityTypeProperties, } impl WaitActivity { - pub fn new(control_activity: ControlActivity, type_properties: WaitActivityTypeProperties) -> Self { - Self { - control_activity, - type_properties, - } + pub fn new(type_properties: WaitActivityTypeProperties) -> Self { + Self { type_properties } } } #[doc = "Wait activity properties."] @@ -26890,18 +26668,13 @@ impl WebClientCertificateAuthentication { #[doc = "WebHook activity."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebHookActivity { - #[serde(flatten)] - pub control_activity: ControlActivity, #[doc = "WebHook activity type properties."] #[serde(rename = "typeProperties")] pub type_properties: WebHookActivityTypeProperties, } impl WebHookActivity { - pub fn new(control_activity: ControlActivity, type_properties: WebHookActivityTypeProperties) -> Self { - Self { - control_activity, - type_properties, - } + pub fn new(type_properties: WebHookActivityTypeProperties) -> Self { + Self { type_properties } } } #[doc = "The list of HTTP methods supported by a WebHook activity."] @@ -27203,8 +26976,6 @@ impl XmlDatasetTypeProperties { #[doc = "Xml read settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct XmlReadSettings { - #[serde(flatten)] - pub format_read_settings: FormatReadSettings, #[doc = "Compression read settings."] #[serde(rename = "compressionProperties", default, skip_serializing_if = "Option::is_none")] pub compression_properties: Option, @@ -27222,9 +26993,8 @@ pub struct XmlReadSettings { pub namespace_prefixes: Option, } impl XmlReadSettings { - pub fn new(format_read_settings: FormatReadSettings) -> Self { + pub fn new() -> Self { Self { - format_read_settings, compression_properties: None, validation_mode: None, detect_data_type: None, @@ -27351,16 +27121,13 @@ pub mod zendesk_linked_service_type_properties { #[doc = "The ZipDeflate compression read settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ZipDeflateReadSettings { - #[serde(flatten)] - pub compression_read_settings: CompressionReadSettings, #[doc = "Preserve the zip file name as folder path. Type: boolean (or Expression with resultType boolean)."] #[serde(rename = "preserveZipFileNameAsFolder", default, skip_serializing_if = "Option::is_none")] pub preserve_zip_file_name_as_folder: Option, } impl ZipDeflateReadSettings { - pub fn new(compression_read_settings: CompressionReadSettings) -> Self { + pub fn new() -> Self { Self { - compression_read_settings, preserve_zip_file_name_as_folder: None, } } diff --git a/services/mgmt/dataprotection/src/package_2022_04/models.rs b/services/mgmt/dataprotection/src/package_2022_04/models.rs index dc3f75cffd..1235f0638f 100644 --- a/services/mgmt/dataprotection/src/package_2022_04/models.rs +++ b/services/mgmt/dataprotection/src/package_2022_04/models.rs @@ -54,26 +54,13 @@ impl AdhocBasedTaggingCriteria { #[doc = "Adhoc trigger context"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdhocBasedTriggerContext { - #[serde(flatten)] - pub trigger_context: TriggerContext, #[doc = "Adhoc backup tagging criteria"] #[serde(rename = "taggingCriteria")] pub tagging_criteria: AdhocBasedTaggingCriteria, } impl AdhocBasedTriggerContext { - pub fn new(trigger_context: TriggerContext, tagging_criteria: AdhocBasedTaggingCriteria) -> Self { - Self { - trigger_context, - tagging_criteria, - } - } -} -#[doc = "Base class for different types of authentication credentials."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AuthCredentials {} -impl AuthCredentials { - pub fn new() -> Self { - Self {} + pub fn new(tagging_criteria: AdhocBasedTaggingCriteria) -> Self { + Self { tagging_criteria } } } #[doc = "Type of the specific object - used for deserializing"] @@ -85,8 +72,6 @@ pub enum AuthCredentialsUnion { #[doc = "Azure backup discrete RecoveryPoint"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBackupDiscreteRecoveryPoint { - #[serde(flatten)] - pub azure_backup_recovery_point: AzureBackupRecoveryPoint, #[serde(rename = "friendlyName", default, skip_serializing_if = "Option::is_none")] pub friendly_name: Option, #[serde( @@ -112,9 +97,8 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub retention_tag_version: Option, } impl AzureBackupDiscreteRecoveryPoint { - pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: time::OffsetDateTime) -> Self { + pub fn new(recovery_point_time: time::OffsetDateTime) -> Self { Self { - azure_backup_recovery_point, friendly_name: None, recovery_point_data_stores_details: Vec::new(), recovery_point_time, @@ -427,26 +411,13 @@ impl AzureBackupJobResourceList { #[doc = "Azure backup parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBackupParams { - #[serde(flatten)] - pub backup_parameters: BackupParameters, #[doc = "BackupType ; Full/Incremental etc"] #[serde(rename = "backupType")] pub backup_type: String, } impl AzureBackupParams { - pub fn new(backup_parameters: BackupParameters, backup_type: String) -> Self { - Self { - backup_parameters, - backup_type, - } - } -} -#[doc = "Azure backup recoveryPoint"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureBackupRecoveryPoint {} -impl AzureBackupRecoveryPoint { - pub fn new() -> Self { - Self {} + pub fn new(backup_type: String) -> Self { + Self { backup_type } } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -754,14 +725,6 @@ impl AzureRetentionRule { } } } -#[doc = "BackupCriteria base class"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupCriteria {} -impl BackupCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -962,14 +925,6 @@ impl BackupInstanceResourceList { Self::default() } } -#[doc = "BackupParameters base"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupParameters {} -impl BackupParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -1421,19 +1376,8 @@ impl CloudError { } #[doc = "Copy on Expiry Option"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyOnExpiryOption { - #[serde(flatten)] - pub copy_option: CopyOption, -} +pub struct CopyOnExpiryOption {} impl CopyOnExpiryOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { copy_option } - } -} -#[doc = "Options to copy"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyOption {} -impl CopyOption { pub fn new() -> Self { Self {} } @@ -1449,18 +1393,13 @@ pub enum CopyOptionUnion { #[doc = "Duration based custom options to copy"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomCopyOption { - #[serde(flatten)] - pub copy_option: CopyOption, #[doc = "Data copied after given timespan"] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, } impl CustomCopyOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { - copy_option, - duration: None, - } + pub fn new() -> Self { + Self { duration: None } } } #[doc = "DataStoreInfo base"] @@ -1927,8 +1866,6 @@ impl ExportJobsResult { #[doc = "Base class for feature object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FeatureValidationRequest { - #[serde(flatten)] - pub feature_validation_request_base: FeatureValidationRequestBase, #[doc = "backup support feature type."] #[serde(rename = "featureType", default, skip_serializing_if = "Option::is_none")] pub feature_type: Option, @@ -1937,9 +1874,8 @@ pub struct FeatureValidationRequest { pub feature_name: Option, } impl FeatureValidationRequest { - pub fn new(feature_validation_request_base: FeatureValidationRequestBase) -> Self { + pub fn new() -> Self { Self { - feature_validation_request_base, feature_type: None, feature_name: None, } @@ -1985,14 +1921,6 @@ pub mod feature_validation_request { } } } -#[doc = "Base class for Backup Feature support"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureValidationRequestBase {} -impl FeatureValidationRequestBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2002,8 +1930,6 @@ pub enum FeatureValidationRequestBaseUnion { #[doc = "Feature Validation Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FeatureValidationResponse { - #[serde(flatten)] - pub feature_validation_response_base: FeatureValidationResponseBase, #[doc = "backup support feature type."] #[serde(rename = "featureType", default, skip_serializing_if = "Option::is_none")] pub feature_type: Option, @@ -2016,9 +1942,8 @@ pub struct FeatureValidationResponse { pub features: Vec, } impl FeatureValidationResponse { - pub fn new(feature_validation_response_base: FeatureValidationResponseBase) -> Self { + pub fn new() -> Self { Self { - feature_validation_response_base, feature_type: None, features: Vec::new(), } @@ -2064,14 +1989,6 @@ pub mod feature_validation_response { } } } -#[doc = "Base class for Backup Feature support"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureValidationResponseBase {} -impl FeatureValidationResponseBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2080,13 +1997,10 @@ pub enum FeatureValidationResponseBaseUnion { } #[doc = "Immediate copy Option"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ImmediateCopyOption { - #[serde(flatten)] - pub copy_option: CopyOption, -} +pub struct ImmediateCopyOption {} impl ImmediateCopyOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { copy_option } + pub fn new() -> Self { + Self {} } } #[doc = "Inner Error"] @@ -2107,14 +2021,6 @@ impl InnerError { Self::default() } } -#[doc = "Class to contain criteria for item level restore"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ItemLevelRestoreCriteria {} -impl ItemLevelRestoreCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2223,8 +2129,6 @@ impl JobSubTask { #[doc = "Item Level kubernetes persistent volume target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesPvRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Selected persistent volume claim name"] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2233,9 +2137,8 @@ pub struct KubernetesPvRestoreCriteria { pub storage_class_name: Option, } impl KubernetesPvRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, name: None, storage_class_name: None, } @@ -2244,8 +2147,6 @@ impl KubernetesPvRestoreCriteria { #[doc = "Item Level kubernetes storage class target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesStorageClassRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Selected storage class name"] #[serde(rename = "selectedStorageClassName", default, skip_serializing_if = "Option::is_none")] pub selected_storage_class_name: Option, @@ -2254,9 +2155,8 @@ pub struct KubernetesStorageClassRestoreCriteria { pub provisioner: Option, } impl KubernetesStorageClassRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, selected_storage_class_name: None, provisioner: None, } @@ -2274,14 +2174,6 @@ impl MonitoringSettings { Self::default() } } -#[doc = "Operation Extended Info"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationExtendedInfo {} -impl OperationExtendedInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2291,18 +2183,13 @@ pub enum OperationExtendedInfoUnion { #[doc = "Operation Job Extended Info"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationJobExtendedInfo { - #[serde(flatten)] - pub operation_extended_info: OperationExtendedInfo, #[doc = "Arm Id of the job created for this operation."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, } impl OperationJobExtendedInfo { - pub fn new(operation_extended_info: OperationExtendedInfo) -> Self { - Self { - operation_extended_info, - job_id: None, - } + pub fn new() -> Self { + Self { job_id: None } } } #[doc = "Operation Resource"] @@ -2467,8 +2354,6 @@ pub mod protection_status_details { #[doc = "Item Level target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RangeBasedItemLevelRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "minimum value for range prefix match"] #[serde(rename = "minMatchingValue", default, skip_serializing_if = "Option::is_none")] pub min_matching_value: Option, @@ -2477,9 +2362,8 @@ pub struct RangeBasedItemLevelRestoreCriteria { pub max_matching_value: Option, } impl RangeBasedItemLevelRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, min_matching_value: None, max_matching_value: None, } @@ -2938,8 +2822,6 @@ impl RetentionTag { #[doc = "Schedule based backup criteria"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduleBasedBackupCriteria { - #[serde(flatten)] - pub backup_criteria: BackupCriteria, #[doc = "it contains absolute values like \"AllBackup\" / \"FirstOfDay\" / \"FirstOfWeek\" / \"FirstOfMonth\"\r\nand should be part of AbsoluteMarker enum"] #[serde( rename = "absoluteCriteria", @@ -2990,9 +2872,8 @@ pub struct ScheduleBasedBackupCriteria { pub weeks_of_the_month: Vec, } impl ScheduleBasedBackupCriteria { - pub fn new(backup_criteria: BackupCriteria) -> Self { + pub fn new() -> Self { Self { - backup_criteria, absolute_criteria: Vec::new(), days_of_month: Vec::new(), days_of_the_week: Vec::new(), @@ -3005,8 +2886,6 @@ impl ScheduleBasedBackupCriteria { #[doc = "Schedule based trigger context"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduleBasedTriggerContext { - #[serde(flatten)] - pub trigger_context: TriggerContext, #[doc = "Schedule for backup"] pub schedule: BackupSchedule, #[doc = "List of tags that can be applicable for given schedule."] @@ -3014,9 +2893,8 @@ pub struct ScheduleBasedTriggerContext { pub tagging_criteria: Vec, } impl ScheduleBasedTriggerContext { - pub fn new(trigger_context: TriggerContext, schedule: BackupSchedule, tagging_criteria: Vec) -> Self { + pub fn new(schedule: BackupSchedule, tagging_criteria: Vec) -> Self { Self { - trigger_context, schedule, tagging_criteria, } @@ -3025,16 +2903,13 @@ impl ScheduleBasedTriggerContext { #[doc = "Secret store based authentication credentials."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecretStoreBasedAuthCredentials { - #[serde(flatten)] - pub auth_credentials: AuthCredentials, #[doc = "Class representing a secret store resource."] #[serde(rename = "secretStoreResource", default, skip_serializing_if = "Option::is_none")] pub secret_store_resource: Option, } impl SecretStoreBasedAuthCredentials { - pub fn new(auth_credentials: AuthCredentials) -> Self { + pub fn new() -> Self { Self { - auth_credentials, secret_store_resource: None, } } @@ -3464,14 +3339,6 @@ impl TriggerBackupRequest { Self { backup_rule_options } } } -#[doc = "Trigger context"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TriggerContext {} -impl TriggerContext { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] diff --git a/services/mgmt/dataprotection/src/package_2022_05/models.rs b/services/mgmt/dataprotection/src/package_2022_05/models.rs index 852e4e8ecb..36ef95467f 100644 --- a/services/mgmt/dataprotection/src/package_2022_05/models.rs +++ b/services/mgmt/dataprotection/src/package_2022_05/models.rs @@ -54,26 +54,13 @@ impl AdhocBasedTaggingCriteria { #[doc = "Adhoc trigger context"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdhocBasedTriggerContext { - #[serde(flatten)] - pub trigger_context: TriggerContext, #[doc = "Adhoc backup tagging criteria"] #[serde(rename = "taggingCriteria")] pub tagging_criteria: AdhocBasedTaggingCriteria, } impl AdhocBasedTriggerContext { - pub fn new(trigger_context: TriggerContext, tagging_criteria: AdhocBasedTaggingCriteria) -> Self { - Self { - trigger_context, - tagging_criteria, - } - } -} -#[doc = "Base class for different types of authentication credentials."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AuthCredentials {} -impl AuthCredentials { - pub fn new() -> Self { - Self {} + pub fn new(tagging_criteria: AdhocBasedTaggingCriteria) -> Self { + Self { tagging_criteria } } } #[doc = "Type of the specific object - used for deserializing"] @@ -85,8 +72,6 @@ pub enum AuthCredentialsUnion { #[doc = "Azure backup discrete RecoveryPoint"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBackupDiscreteRecoveryPoint { - #[serde(flatten)] - pub azure_backup_recovery_point: AzureBackupRecoveryPoint, #[serde(rename = "friendlyName", default, skip_serializing_if = "Option::is_none")] pub friendly_name: Option, #[serde( @@ -112,9 +97,8 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub retention_tag_version: Option, } impl AzureBackupDiscreteRecoveryPoint { - pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: time::OffsetDateTime) -> Self { + pub fn new(recovery_point_time: time::OffsetDateTime) -> Self { Self { - azure_backup_recovery_point, friendly_name: None, recovery_point_data_stores_details: Vec::new(), recovery_point_time, @@ -427,26 +411,13 @@ impl AzureBackupJobResourceList { #[doc = "Azure backup parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBackupParams { - #[serde(flatten)] - pub backup_parameters: BackupParameters, #[doc = "BackupType ; Full/Incremental etc"] #[serde(rename = "backupType")] pub backup_type: String, } impl AzureBackupParams { - pub fn new(backup_parameters: BackupParameters, backup_type: String) -> Self { - Self { - backup_parameters, - backup_type, - } - } -} -#[doc = "Azure backup recoveryPoint"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureBackupRecoveryPoint {} -impl AzureBackupRecoveryPoint { - pub fn new() -> Self { - Self {} + pub fn new(backup_type: String) -> Self { + Self { backup_type } } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -754,14 +725,6 @@ impl AzureRetentionRule { } } } -#[doc = "BackupCriteria base class"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupCriteria {} -impl BackupCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -962,14 +925,6 @@ impl BackupInstanceResourceList { Self::default() } } -#[doc = "BackupParameters base"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupParameters {} -impl BackupParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -1425,19 +1380,8 @@ impl CloudError { } #[doc = "Copy on Expiry Option"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyOnExpiryOption { - #[serde(flatten)] - pub copy_option: CopyOption, -} +pub struct CopyOnExpiryOption {} impl CopyOnExpiryOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { copy_option } - } -} -#[doc = "Options to copy"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyOption {} -impl CopyOption { pub fn new() -> Self { Self {} } @@ -1453,18 +1397,13 @@ pub enum CopyOptionUnion { #[doc = "Duration based custom options to copy"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomCopyOption { - #[serde(flatten)] - pub copy_option: CopyOption, #[doc = "Data copied after given timespan"] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, } impl CustomCopyOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { - copy_option, - duration: None, - } + pub fn new() -> Self { + Self { duration: None } } } #[doc = "DataStoreInfo base"] @@ -1954,8 +1893,6 @@ impl ExportJobsResult { #[doc = "Base class for feature object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FeatureValidationRequest { - #[serde(flatten)] - pub feature_validation_request_base: FeatureValidationRequestBase, #[doc = "backup support feature type."] #[serde(rename = "featureType", default, skip_serializing_if = "Option::is_none")] pub feature_type: Option, @@ -1964,9 +1901,8 @@ pub struct FeatureValidationRequest { pub feature_name: Option, } impl FeatureValidationRequest { - pub fn new(feature_validation_request_base: FeatureValidationRequestBase) -> Self { + pub fn new() -> Self { Self { - feature_validation_request_base, feature_type: None, feature_name: None, } @@ -2012,14 +1948,6 @@ pub mod feature_validation_request { } } } -#[doc = "Base class for Backup Feature support"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureValidationRequestBase {} -impl FeatureValidationRequestBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2029,8 +1957,6 @@ pub enum FeatureValidationRequestBaseUnion { #[doc = "Feature Validation Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FeatureValidationResponse { - #[serde(flatten)] - pub feature_validation_response_base: FeatureValidationResponseBase, #[doc = "backup support feature type."] #[serde(rename = "featureType", default, skip_serializing_if = "Option::is_none")] pub feature_type: Option, @@ -2043,9 +1969,8 @@ pub struct FeatureValidationResponse { pub features: Vec, } impl FeatureValidationResponse { - pub fn new(feature_validation_response_base: FeatureValidationResponseBase) -> Self { + pub fn new() -> Self { Self { - feature_validation_response_base, feature_type: None, features: Vec::new(), } @@ -2091,14 +2016,6 @@ pub mod feature_validation_response { } } } -#[doc = "Base class for Backup Feature support"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureValidationResponseBase {} -impl FeatureValidationResponseBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2107,13 +2024,10 @@ pub enum FeatureValidationResponseBaseUnion { } #[doc = "Immediate copy Option"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ImmediateCopyOption { - #[serde(flatten)] - pub copy_option: CopyOption, -} +pub struct ImmediateCopyOption {} impl ImmediateCopyOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { copy_option } + pub fn new() -> Self { + Self {} } } #[doc = "Inner Error"] @@ -2134,14 +2048,6 @@ impl InnerError { Self::default() } } -#[doc = "Class to contain criteria for item level restore"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ItemLevelRestoreCriteria {} -impl ItemLevelRestoreCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2250,8 +2156,6 @@ impl JobSubTask { #[doc = "Item Level kubernetes persistent volume target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesPvRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Selected persistent volume claim name"] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2260,9 +2164,8 @@ pub struct KubernetesPvRestoreCriteria { pub storage_class_name: Option, } impl KubernetesPvRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, name: None, storage_class_name: None, } @@ -2271,8 +2174,6 @@ impl KubernetesPvRestoreCriteria { #[doc = "Item Level kubernetes storage class target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesStorageClassRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Selected storage class name"] #[serde(rename = "selectedStorageClassName", default, skip_serializing_if = "Option::is_none")] pub selected_storage_class_name: Option, @@ -2281,9 +2182,8 @@ pub struct KubernetesStorageClassRestoreCriteria { pub provisioner: Option, } impl KubernetesStorageClassRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, selected_storage_class_name: None, provisioner: None, } @@ -2301,14 +2201,6 @@ impl MonitoringSettings { Self::default() } } -#[doc = "Operation Extended Info"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationExtendedInfo {} -impl OperationExtendedInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2318,18 +2210,13 @@ pub enum OperationExtendedInfoUnion { #[doc = "Operation Job Extended Info"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationJobExtendedInfo { - #[serde(flatten)] - pub operation_extended_info: OperationExtendedInfo, #[doc = "Arm Id of the job created for this operation."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, } impl OperationJobExtendedInfo { - pub fn new(operation_extended_info: OperationExtendedInfo) -> Self { - Self { - operation_extended_info, - job_id: None, - } + pub fn new() -> Self { + Self { job_id: None } } } #[doc = "Operation Resource"] @@ -2494,8 +2381,6 @@ pub mod protection_status_details { #[doc = "Item Level target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RangeBasedItemLevelRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "minimum value for range prefix match"] #[serde(rename = "minMatchingValue", default, skip_serializing_if = "Option::is_none")] pub min_matching_value: Option, @@ -2504,9 +2389,8 @@ pub struct RangeBasedItemLevelRestoreCriteria { pub max_matching_value: Option, } impl RangeBasedItemLevelRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, min_matching_value: None, max_matching_value: None, } @@ -2965,8 +2849,6 @@ impl RetentionTag { #[doc = "Schedule based backup criteria"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduleBasedBackupCriteria { - #[serde(flatten)] - pub backup_criteria: BackupCriteria, #[doc = "it contains absolute values like \"AllBackup\" / \"FirstOfDay\" / \"FirstOfWeek\" / \"FirstOfMonth\"\r\nand should be part of AbsoluteMarker enum"] #[serde( rename = "absoluteCriteria", @@ -3017,9 +2899,8 @@ pub struct ScheduleBasedBackupCriteria { pub weeks_of_the_month: Vec, } impl ScheduleBasedBackupCriteria { - pub fn new(backup_criteria: BackupCriteria) -> Self { + pub fn new() -> Self { Self { - backup_criteria, absolute_criteria: Vec::new(), days_of_month: Vec::new(), days_of_the_week: Vec::new(), @@ -3032,8 +2913,6 @@ impl ScheduleBasedBackupCriteria { #[doc = "Schedule based trigger context"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduleBasedTriggerContext { - #[serde(flatten)] - pub trigger_context: TriggerContext, #[doc = "Schedule for backup"] pub schedule: BackupSchedule, #[doc = "List of tags that can be applicable for given schedule."] @@ -3041,9 +2920,8 @@ pub struct ScheduleBasedTriggerContext { pub tagging_criteria: Vec, } impl ScheduleBasedTriggerContext { - pub fn new(trigger_context: TriggerContext, schedule: BackupSchedule, tagging_criteria: Vec) -> Self { + pub fn new(schedule: BackupSchedule, tagging_criteria: Vec) -> Self { Self { - trigger_context, schedule, tagging_criteria, } @@ -3052,16 +2930,13 @@ impl ScheduleBasedTriggerContext { #[doc = "Secret store based authentication credentials."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecretStoreBasedAuthCredentials { - #[serde(flatten)] - pub auth_credentials: AuthCredentials, #[doc = "Class representing a secret store resource."] #[serde(rename = "secretStoreResource", default, skip_serializing_if = "Option::is_none")] pub secret_store_resource: Option, } impl SecretStoreBasedAuthCredentials { - pub fn new(auth_credentials: AuthCredentials) -> Self { + pub fn new() -> Self { Self { - auth_credentials, secret_store_resource: None, } } @@ -3493,14 +3368,6 @@ impl TriggerBackupRequest { Self { backup_rule_options } } } -#[doc = "Trigger context"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TriggerContext {} -impl TriggerContext { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] diff --git a/services/mgmt/dataprotection/src/package_2022_12/models.rs b/services/mgmt/dataprotection/src/package_2022_12/models.rs index 340bdeb86a..aa21efa63e 100644 --- a/services/mgmt/dataprotection/src/package_2022_12/models.rs +++ b/services/mgmt/dataprotection/src/package_2022_12/models.rs @@ -54,26 +54,13 @@ impl AdhocBasedTaggingCriteria { #[doc = "Adhoc trigger context"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdhocBasedTriggerContext { - #[serde(flatten)] - pub trigger_context: TriggerContext, #[doc = "Adhoc backup tagging criteria"] #[serde(rename = "taggingCriteria")] pub tagging_criteria: AdhocBasedTaggingCriteria, } impl AdhocBasedTriggerContext { - pub fn new(trigger_context: TriggerContext, tagging_criteria: AdhocBasedTaggingCriteria) -> Self { - Self { - trigger_context, - tagging_criteria, - } - } -} -#[doc = "Base class for different types of authentication credentials."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AuthCredentials {} -impl AuthCredentials { - pub fn new() -> Self { - Self {} + pub fn new(tagging_criteria: AdhocBasedTaggingCriteria) -> Self { + Self { tagging_criteria } } } #[doc = "Type of the specific object - used for deserializing"] @@ -85,8 +72,6 @@ pub enum AuthCredentialsUnion { #[doc = "Azure backup discrete RecoveryPoint"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBackupDiscreteRecoveryPoint { - #[serde(flatten)] - pub azure_backup_recovery_point: AzureBackupRecoveryPoint, #[serde(rename = "friendlyName", default, skip_serializing_if = "Option::is_none")] pub friendly_name: Option, #[serde( @@ -114,9 +99,8 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub expiry_time: Option, } impl AzureBackupDiscreteRecoveryPoint { - pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: time::OffsetDateTime) -> Self { + pub fn new(recovery_point_time: time::OffsetDateTime) -> Self { Self { - azure_backup_recovery_point, friendly_name: None, recovery_point_data_stores_details: Vec::new(), recovery_point_time, @@ -430,26 +414,13 @@ impl AzureBackupJobResourceList { #[doc = "Azure backup parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBackupParams { - #[serde(flatten)] - pub backup_parameters: BackupParameters, #[doc = "BackupType ; Full/Incremental etc"] #[serde(rename = "backupType")] pub backup_type: String, } impl AzureBackupParams { - pub fn new(backup_parameters: BackupParameters, backup_type: String) -> Self { - Self { - backup_parameters, - backup_type, - } - } -} -#[doc = "Azure backup recoveryPoint"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureBackupRecoveryPoint {} -impl AzureBackupRecoveryPoint { - pub fn new() -> Self { - Self {} + pub fn new(backup_type: String) -> Self { + Self { backup_type } } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -759,14 +730,6 @@ impl AzureRetentionRule { } } } -#[doc = "BackupCriteria base class"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupCriteria {} -impl BackupCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -967,14 +930,6 @@ impl BackupInstanceResourceList { Self::default() } } -#[doc = "BackupParameters base"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupParameters {} -impl BackupParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -1438,19 +1393,8 @@ impl CloudError { } #[doc = "Copy on Expiry Option"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyOnExpiryOption { - #[serde(flatten)] - pub copy_option: CopyOption, -} +pub struct CopyOnExpiryOption {} impl CopyOnExpiryOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { copy_option } - } -} -#[doc = "Options to copy"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyOption {} -impl CopyOption { pub fn new() -> Self { Self {} } @@ -1520,18 +1464,13 @@ pub mod cross_subscription_restore_settings { #[doc = "Duration based custom options to copy"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomCopyOption { - #[serde(flatten)] - pub copy_option: CopyOption, #[doc = "Data copied after given timespan"] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, } impl CustomCopyOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { - copy_option, - duration: None, - } + pub fn new() -> Self { + Self { duration: None } } } #[doc = "DataStoreInfo base"] @@ -2119,8 +2058,6 @@ impl FeatureSettings { #[doc = "Base class for feature object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FeatureValidationRequest { - #[serde(flatten)] - pub feature_validation_request_base: FeatureValidationRequestBase, #[doc = "backup support feature type."] #[serde(rename = "featureType", default, skip_serializing_if = "Option::is_none")] pub feature_type: Option, @@ -2129,9 +2066,8 @@ pub struct FeatureValidationRequest { pub feature_name: Option, } impl FeatureValidationRequest { - pub fn new(feature_validation_request_base: FeatureValidationRequestBase) -> Self { + pub fn new() -> Self { Self { - feature_validation_request_base, feature_type: None, feature_name: None, } @@ -2177,14 +2113,6 @@ pub mod feature_validation_request { } } } -#[doc = "Base class for Backup Feature support"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureValidationRequestBase {} -impl FeatureValidationRequestBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2194,8 +2122,6 @@ pub enum FeatureValidationRequestBaseUnion { #[doc = "Feature Validation Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FeatureValidationResponse { - #[serde(flatten)] - pub feature_validation_response_base: FeatureValidationResponseBase, #[doc = "backup support feature type."] #[serde(rename = "featureType", default, skip_serializing_if = "Option::is_none")] pub feature_type: Option, @@ -2208,9 +2134,8 @@ pub struct FeatureValidationResponse { pub features: Vec, } impl FeatureValidationResponse { - pub fn new(feature_validation_response_base: FeatureValidationResponseBase) -> Self { + pub fn new() -> Self { Self { - feature_validation_response_base, feature_type: None, features: Vec::new(), } @@ -2256,14 +2181,6 @@ pub mod feature_validation_response { } } } -#[doc = "Base class for Backup Feature support"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureValidationResponseBase {} -impl FeatureValidationResponseBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2272,13 +2189,10 @@ pub enum FeatureValidationResponseBaseUnion { } #[doc = "Immediate copy Option"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ImmediateCopyOption { - #[serde(flatten)] - pub copy_option: CopyOption, -} +pub struct ImmediateCopyOption {} impl ImmediateCopyOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { copy_option } + pub fn new() -> Self { + Self {} } } #[doc = "Immutability Settings at vault level"] @@ -2353,14 +2267,6 @@ impl InnerError { Self::default() } } -#[doc = "Class to contain criteria for item level restore"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ItemLevelRestoreCriteria {} -impl ItemLevelRestoreCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2469,8 +2375,6 @@ impl JobSubTask { #[doc = "Item Level kubernetes persistent volume target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesPvRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Selected persistent volume claim name"] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2479,9 +2383,8 @@ pub struct KubernetesPvRestoreCriteria { pub storage_class_name: Option, } impl KubernetesPvRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, name: None, storage_class_name: None, } @@ -2490,8 +2393,6 @@ impl KubernetesPvRestoreCriteria { #[doc = "Item Level kubernetes storage class target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesStorageClassRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Selected storage class name"] #[serde(rename = "selectedStorageClassName", default, skip_serializing_if = "Option::is_none")] pub selected_storage_class_name: Option, @@ -2500,9 +2401,8 @@ pub struct KubernetesStorageClassRestoreCriteria { pub provisioner: Option, } impl KubernetesStorageClassRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, selected_storage_class_name: None, provisioner: None, } @@ -2520,14 +2420,6 @@ impl MonitoringSettings { Self::default() } } -#[doc = "Operation Extended Info"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationExtendedInfo {} -impl OperationExtendedInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2537,18 +2429,13 @@ pub enum OperationExtendedInfoUnion { #[doc = "Operation Job Extended Info"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationJobExtendedInfo { - #[serde(flatten)] - pub operation_extended_info: OperationExtendedInfo, #[doc = "Arm Id of the job created for this operation."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, } impl OperationJobExtendedInfo { - pub fn new(operation_extended_info: OperationExtendedInfo) -> Self { - Self { - operation_extended_info, - job_id: None, - } + pub fn new() -> Self { + Self { job_id: None } } } #[doc = "Operation Resource"] @@ -2731,8 +2618,6 @@ pub mod protection_status_details { #[doc = "Item Level target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RangeBasedItemLevelRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "minimum value for range prefix match"] #[serde(rename = "minMatchingValue", default, skip_serializing_if = "Option::is_none")] pub min_matching_value: Option, @@ -2741,9 +2626,8 @@ pub struct RangeBasedItemLevelRestoreCriteria { pub max_matching_value: Option, } impl RangeBasedItemLevelRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, min_matching_value: None, max_matching_value: None, } @@ -3202,8 +3086,6 @@ impl RetentionTag { #[doc = "Schedule based backup criteria"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduleBasedBackupCriteria { - #[serde(flatten)] - pub backup_criteria: BackupCriteria, #[doc = "it contains absolute values like \"AllBackup\" / \"FirstOfDay\" / \"FirstOfWeek\" / \"FirstOfMonth\"\r\nand should be part of AbsoluteMarker enum"] #[serde( rename = "absoluteCriteria", @@ -3254,9 +3136,8 @@ pub struct ScheduleBasedBackupCriteria { pub weeks_of_the_month: Vec, } impl ScheduleBasedBackupCriteria { - pub fn new(backup_criteria: BackupCriteria) -> Self { + pub fn new() -> Self { Self { - backup_criteria, absolute_criteria: Vec::new(), days_of_month: Vec::new(), days_of_the_week: Vec::new(), @@ -3269,8 +3150,6 @@ impl ScheduleBasedBackupCriteria { #[doc = "Schedule based trigger context"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduleBasedTriggerContext { - #[serde(flatten)] - pub trigger_context: TriggerContext, #[doc = "Schedule for backup"] pub schedule: BackupSchedule, #[doc = "List of tags that can be applicable for given schedule."] @@ -3278,9 +3157,8 @@ pub struct ScheduleBasedTriggerContext { pub tagging_criteria: Vec, } impl ScheduleBasedTriggerContext { - pub fn new(trigger_context: TriggerContext, schedule: BackupSchedule, tagging_criteria: Vec) -> Self { + pub fn new(schedule: BackupSchedule, tagging_criteria: Vec) -> Self { Self { - trigger_context, schedule, tagging_criteria, } @@ -3289,16 +3167,13 @@ impl ScheduleBasedTriggerContext { #[doc = "Secret store based authentication credentials."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecretStoreBasedAuthCredentials { - #[serde(flatten)] - pub auth_credentials: AuthCredentials, #[doc = "Class representing a secret store resource."] #[serde(rename = "secretStoreResource", default, skip_serializing_if = "Option::is_none")] pub secret_store_resource: Option, } impl SecretStoreBasedAuthCredentials { - pub fn new(auth_credentials: AuthCredentials) -> Self { + pub fn new() -> Self { Self { - auth_credentials, secret_store_resource: None, } } @@ -3806,14 +3681,6 @@ impl TriggerBackupRequest { Self { backup_rule_options } } } -#[doc = "Trigger context"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TriggerContext {} -impl TriggerContext { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] diff --git a/services/mgmt/dataprotection/src/package_2023_01/models.rs b/services/mgmt/dataprotection/src/package_2023_01/models.rs index 0c41bfea3b..8e7297460c 100644 --- a/services/mgmt/dataprotection/src/package_2023_01/models.rs +++ b/services/mgmt/dataprotection/src/package_2023_01/models.rs @@ -54,26 +54,13 @@ impl AdhocBasedTaggingCriteria { #[doc = "Adhoc trigger context"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdhocBasedTriggerContext { - #[serde(flatten)] - pub trigger_context: TriggerContext, #[doc = "Adhoc backup tagging criteria"] #[serde(rename = "taggingCriteria")] pub tagging_criteria: AdhocBasedTaggingCriteria, } impl AdhocBasedTriggerContext { - pub fn new(trigger_context: TriggerContext, tagging_criteria: AdhocBasedTaggingCriteria) -> Self { - Self { - trigger_context, - tagging_criteria, - } - } -} -#[doc = "Base class for different types of authentication credentials."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AuthCredentials {} -impl AuthCredentials { - pub fn new() -> Self { - Self {} + pub fn new(tagging_criteria: AdhocBasedTaggingCriteria) -> Self { + Self { tagging_criteria } } } #[doc = "Type of the specific object - used for deserializing"] @@ -85,8 +72,6 @@ pub enum AuthCredentialsUnion { #[doc = "Azure backup discrete RecoveryPoint"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBackupDiscreteRecoveryPoint { - #[serde(flatten)] - pub azure_backup_recovery_point: AzureBackupRecoveryPoint, #[serde(rename = "friendlyName", default, skip_serializing_if = "Option::is_none")] pub friendly_name: Option, #[serde( @@ -114,9 +99,8 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub expiry_time: Option, } impl AzureBackupDiscreteRecoveryPoint { - pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: time::OffsetDateTime) -> Self { + pub fn new(recovery_point_time: time::OffsetDateTime) -> Self { Self { - azure_backup_recovery_point, friendly_name: None, recovery_point_data_stores_details: Vec::new(), recovery_point_time, @@ -430,26 +414,13 @@ impl AzureBackupJobResourceList { #[doc = "Azure backup parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBackupParams { - #[serde(flatten)] - pub backup_parameters: BackupParameters, #[doc = "BackupType ; Full/Incremental etc"] #[serde(rename = "backupType")] pub backup_type: String, } impl AzureBackupParams { - pub fn new(backup_parameters: BackupParameters, backup_type: String) -> Self { - Self { - backup_parameters, - backup_type, - } - } -} -#[doc = "Azure backup recoveryPoint"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureBackupRecoveryPoint {} -impl AzureBackupRecoveryPoint { - pub fn new() -> Self { - Self {} + pub fn new(backup_type: String) -> Self { + Self { backup_type } } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -759,28 +730,12 @@ impl AzureRetentionRule { } } } -#[doc = "BackupCriteria base class"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupCriteria {} -impl BackupCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] pub enum BackupCriteriaUnion { ScheduleBasedBackupCriteria(ScheduleBasedBackupCriteria), } -#[doc = "Parameters for Backup Datasource"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupDatasourceParameters {} -impl BackupDatasourceParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -982,14 +937,6 @@ impl BackupInstanceResourceList { Self::default() } } -#[doc = "BackupParameters base"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupParameters {} -impl BackupParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -1286,18 +1233,13 @@ pub enum BasePolicyRuleUnion { #[doc = "Parameters to be used during configuration of backup of blobs"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobBackupDatasourceParameters { - #[serde(flatten)] - pub backup_datasource_parameters: BackupDatasourceParameters, #[doc = "List of containers to be backed up during configuration of backup of blobs"] #[serde(rename = "containersList")] pub containers_list: Vec, } impl BlobBackupDatasourceParameters { - pub fn new(backup_datasource_parameters: BackupDatasourceParameters, containers_list: Vec) -> Self { - Self { - backup_datasource_parameters, - containers_list, - } + pub fn new(containers_list: Vec) -> Self { + Self { containers_list } } } #[doc = "CheckNameAvailability Request"] @@ -1470,19 +1412,8 @@ impl CloudError { } #[doc = "Copy on Expiry Option"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyOnExpiryOption { - #[serde(flatten)] - pub copy_option: CopyOption, -} +pub struct CopyOnExpiryOption {} impl CopyOnExpiryOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { copy_option } - } -} -#[doc = "Options to copy"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyOption {} -impl CopyOption { pub fn new() -> Self { Self {} } @@ -1552,18 +1483,13 @@ pub mod cross_subscription_restore_settings { #[doc = "Duration based custom options to copy"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomCopyOption { - #[serde(flatten)] - pub copy_option: CopyOption, #[doc = "Data copied after given timespan"] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, } impl CustomCopyOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { - copy_option, - duration: None, - } + pub fn new() -> Self { + Self { duration: None } } } #[doc = "DataStoreInfo base"] @@ -2151,8 +2077,6 @@ impl FeatureSettings { #[doc = "Base class for feature object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FeatureValidationRequest { - #[serde(flatten)] - pub feature_validation_request_base: FeatureValidationRequestBase, #[doc = "backup support feature type."] #[serde(rename = "featureType", default, skip_serializing_if = "Option::is_none")] pub feature_type: Option, @@ -2161,9 +2085,8 @@ pub struct FeatureValidationRequest { pub feature_name: Option, } impl FeatureValidationRequest { - pub fn new(feature_validation_request_base: FeatureValidationRequestBase) -> Self { + pub fn new() -> Self { Self { - feature_validation_request_base, feature_type: None, feature_name: None, } @@ -2209,14 +2132,6 @@ pub mod feature_validation_request { } } } -#[doc = "Base class for Backup Feature support"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureValidationRequestBase {} -impl FeatureValidationRequestBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2226,8 +2141,6 @@ pub enum FeatureValidationRequestBaseUnion { #[doc = "Feature Validation Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FeatureValidationResponse { - #[serde(flatten)] - pub feature_validation_response_base: FeatureValidationResponseBase, #[doc = "backup support feature type."] #[serde(rename = "featureType", default, skip_serializing_if = "Option::is_none")] pub feature_type: Option, @@ -2240,9 +2153,8 @@ pub struct FeatureValidationResponse { pub features: Vec, } impl FeatureValidationResponse { - pub fn new(feature_validation_response_base: FeatureValidationResponseBase) -> Self { + pub fn new() -> Self { Self { - feature_validation_response_base, feature_type: None, features: Vec::new(), } @@ -2288,14 +2200,6 @@ pub mod feature_validation_response { } } } -#[doc = "Base class for Backup Feature support"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureValidationResponseBase {} -impl FeatureValidationResponseBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2304,13 +2208,10 @@ pub enum FeatureValidationResponseBaseUnion { } #[doc = "Immediate copy Option"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ImmediateCopyOption { - #[serde(flatten)] - pub copy_option: CopyOption, -} +pub struct ImmediateCopyOption {} impl ImmediateCopyOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { copy_option } + pub fn new() -> Self { + Self {} } } #[doc = "Immutability Settings at vault level"] @@ -2385,14 +2286,6 @@ impl InnerError { Self::default() } } -#[doc = "Class to contain criteria for item level restore"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ItemLevelRestoreCriteria {} -impl ItemLevelRestoreCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2440,8 +2333,6 @@ impl ItemLevelRestoreTargetInfo { #[doc = "Prefix criteria to be used to during restore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ItemPathBasedRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "The path of the item to be restored. It could be the full path of the item or the path relative to the backup item"] #[serde(rename = "itemPath")] pub item_path: String, @@ -2458,9 +2349,8 @@ pub struct ItemPathBasedRestoreCriteria { pub sub_item_path_prefix: Vec, } impl ItemPathBasedRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria, item_path: String, is_path_relative_to_backup_item: bool) -> Self { + pub fn new(item_path: String, is_path_relative_to_backup_item: bool) -> Self { Self { - item_level_restore_criteria, item_path, is_path_relative_to_backup_item, sub_item_path_prefix: Vec::new(), @@ -2533,8 +2423,6 @@ impl JobSubTask { #[doc = "Parameters for Kubernetes Cluster Backup Datasource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesClusterBackupDatasourceParameters { - #[serde(flatten)] - pub backup_datasource_parameters: BackupDatasourceParameters, #[doc = "Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during restore."] #[serde(rename = "snapshotVolumes")] pub snapshot_volumes: bool, @@ -2583,13 +2471,8 @@ pub struct KubernetesClusterBackupDatasourceParameters { pub label_selectors: Vec, } impl KubernetesClusterBackupDatasourceParameters { - pub fn new( - backup_datasource_parameters: BackupDatasourceParameters, - snapshot_volumes: bool, - include_cluster_scope_resources: bool, - ) -> Self { + pub fn new(snapshot_volumes: bool, include_cluster_scope_resources: bool) -> Self { Self { - backup_datasource_parameters, snapshot_volumes, include_cluster_scope_resources, included_namespaces: Vec::new(), @@ -2603,8 +2486,6 @@ impl KubernetesClusterBackupDatasourceParameters { #[doc = "kubernetes Cluster Backup target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesClusterRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore."] #[serde(rename = "includeClusterScopeResources")] pub include_cluster_scope_resources: bool, @@ -2659,9 +2540,8 @@ pub struct KubernetesClusterRestoreCriteria { pub namespace_mappings: Option, } impl KubernetesClusterRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria, include_cluster_scope_resources: bool) -> Self { + pub fn new(include_cluster_scope_resources: bool) -> Self { Self { - item_level_restore_criteria, include_cluster_scope_resources, included_namespaces: Vec::new(), excluded_namespaces: Vec::new(), @@ -2758,8 +2638,6 @@ pub mod kubernetes_cluster_restore_criteria { #[doc = "Item Level kubernetes persistent volume target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesPvRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Selected persistent volume claim name"] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2768,9 +2646,8 @@ pub struct KubernetesPvRestoreCriteria { pub storage_class_name: Option, } impl KubernetesPvRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, name: None, storage_class_name: None, } @@ -2779,8 +2656,6 @@ impl KubernetesPvRestoreCriteria { #[doc = "Item Level kubernetes storage class target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesStorageClassRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Selected storage class name"] #[serde(rename = "selectedStorageClassName", default, skip_serializing_if = "Option::is_none")] pub selected_storage_class_name: Option, @@ -2789,9 +2664,8 @@ pub struct KubernetesStorageClassRestoreCriteria { pub provisioner: Option, } impl KubernetesStorageClassRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, selected_storage_class_name: None, provisioner: None, } @@ -2809,14 +2683,6 @@ impl MonitoringSettings { Self::default() } } -#[doc = "Operation Extended Info"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationExtendedInfo {} -impl OperationExtendedInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2826,18 +2692,13 @@ pub enum OperationExtendedInfoUnion { #[doc = "Operation Job Extended Info"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationJobExtendedInfo { - #[serde(flatten)] - pub operation_extended_info: OperationExtendedInfo, #[doc = "Arm Id of the job created for this operation."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, } impl OperationJobExtendedInfo { - pub fn new(operation_extended_info: OperationExtendedInfo) -> Self { - Self { - operation_extended_info, - job_id: None, - } + pub fn new() -> Self { + Self { job_id: None } } } #[doc = "Operation Resource"] @@ -3028,8 +2889,6 @@ pub mod protection_status_details { #[doc = "Item Level target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RangeBasedItemLevelRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "minimum value for range prefix match"] #[serde(rename = "minMatchingValue", default, skip_serializing_if = "Option::is_none")] pub min_matching_value: Option, @@ -3038,9 +2897,8 @@ pub struct RangeBasedItemLevelRestoreCriteria { pub max_matching_value: Option, } impl RangeBasedItemLevelRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, min_matching_value: None, max_matching_value: None, } @@ -3572,8 +3430,6 @@ impl RetentionTag { #[doc = "Schedule based backup criteria"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduleBasedBackupCriteria { - #[serde(flatten)] - pub backup_criteria: BackupCriteria, #[doc = "it contains absolute values like \"AllBackup\" / \"FirstOfDay\" / \"FirstOfWeek\" / \"FirstOfMonth\"\r\nand should be part of AbsoluteMarker enum"] #[serde( rename = "absoluteCriteria", @@ -3624,9 +3480,8 @@ pub struct ScheduleBasedBackupCriteria { pub weeks_of_the_month: Vec, } impl ScheduleBasedBackupCriteria { - pub fn new(backup_criteria: BackupCriteria) -> Self { + pub fn new() -> Self { Self { - backup_criteria, absolute_criteria: Vec::new(), days_of_month: Vec::new(), days_of_the_week: Vec::new(), @@ -3639,8 +3494,6 @@ impl ScheduleBasedBackupCriteria { #[doc = "Schedule based trigger context"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduleBasedTriggerContext { - #[serde(flatten)] - pub trigger_context: TriggerContext, #[doc = "Schedule for backup"] pub schedule: BackupSchedule, #[doc = "List of tags that can be applicable for given schedule."] @@ -3648,9 +3501,8 @@ pub struct ScheduleBasedTriggerContext { pub tagging_criteria: Vec, } impl ScheduleBasedTriggerContext { - pub fn new(trigger_context: TriggerContext, schedule: BackupSchedule, tagging_criteria: Vec) -> Self { + pub fn new(schedule: BackupSchedule, tagging_criteria: Vec) -> Self { Self { - trigger_context, schedule, tagging_criteria, } @@ -3659,16 +3511,13 @@ impl ScheduleBasedTriggerContext { #[doc = "Secret store based authentication credentials."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecretStoreBasedAuthCredentials { - #[serde(flatten)] - pub auth_credentials: AuthCredentials, #[doc = "Class representing a secret store resource."] #[serde(rename = "secretStoreResource", default, skip_serializing_if = "Option::is_none")] pub secret_store_resource: Option, } impl SecretStoreBasedAuthCredentials { - pub fn new(auth_credentials: AuthCredentials) -> Self { + pub fn new() -> Self { Self { - auth_credentials, secret_store_resource: None, } } @@ -4176,14 +4025,6 @@ impl TriggerBackupRequest { Self { backup_rule_options } } } -#[doc = "Trigger context"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TriggerContext {} -impl TriggerContext { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] diff --git a/services/mgmt/dataprotection/src/package_2023_05/models.rs b/services/mgmt/dataprotection/src/package_2023_05/models.rs index 68965c5f0a..842ebfcfb6 100644 --- a/services/mgmt/dataprotection/src/package_2023_05/models.rs +++ b/services/mgmt/dataprotection/src/package_2023_05/models.rs @@ -54,26 +54,13 @@ impl AdhocBasedTaggingCriteria { #[doc = "Adhoc trigger context"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdhocBasedTriggerContext { - #[serde(flatten)] - pub trigger_context: TriggerContext, #[doc = "Adhoc backup tagging criteria"] #[serde(rename = "taggingCriteria")] pub tagging_criteria: AdhocBasedTaggingCriteria, } impl AdhocBasedTriggerContext { - pub fn new(trigger_context: TriggerContext, tagging_criteria: AdhocBasedTaggingCriteria) -> Self { - Self { - trigger_context, - tagging_criteria, - } - } -} -#[doc = "Base class for different types of authentication credentials."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AuthCredentials {} -impl AuthCredentials { - pub fn new() -> Self { - Self {} + pub fn new(tagging_criteria: AdhocBasedTaggingCriteria) -> Self { + Self { tagging_criteria } } } #[doc = "Type of the specific object - used for deserializing"] @@ -85,8 +72,6 @@ pub enum AuthCredentialsUnion { #[doc = "Azure backup discrete RecoveryPoint"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBackupDiscreteRecoveryPoint { - #[serde(flatten)] - pub azure_backup_recovery_point: AzureBackupRecoveryPoint, #[serde(rename = "friendlyName", default, skip_serializing_if = "Option::is_none")] pub friendly_name: Option, #[serde( @@ -114,9 +99,8 @@ pub struct AzureBackupDiscreteRecoveryPoint { pub expiry_time: Option, } impl AzureBackupDiscreteRecoveryPoint { - pub fn new(azure_backup_recovery_point: AzureBackupRecoveryPoint, recovery_point_time: time::OffsetDateTime) -> Self { + pub fn new(recovery_point_time: time::OffsetDateTime) -> Self { Self { - azure_backup_recovery_point, friendly_name: None, recovery_point_data_stores_details: Vec::new(), recovery_point_time, @@ -434,26 +418,13 @@ impl AzureBackupJobResourceList { #[doc = "Azure backup parameters"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureBackupParams { - #[serde(flatten)] - pub backup_parameters: BackupParameters, #[doc = "BackupType ; Full/Incremental etc"] #[serde(rename = "backupType")] pub backup_type: String, } impl AzureBackupParams { - pub fn new(backup_parameters: BackupParameters, backup_type: String) -> Self { - Self { - backup_parameters, - backup_type, - } - } -} -#[doc = "Azure backup recoveryPoint"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureBackupRecoveryPoint {} -impl AzureBackupRecoveryPoint { - pub fn new() -> Self { - Self {} + pub fn new(backup_type: String) -> Self { + Self { backup_type } } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -766,28 +737,12 @@ impl AzureRetentionRule { } } } -#[doc = "BackupCriteria base class"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupCriteria {} -impl BackupCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] pub enum BackupCriteriaUnion { ScheduleBasedBackupCriteria(ScheduleBasedBackupCriteria), } -#[doc = "Parameters for Backup Datasource"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupDatasourceParameters {} -impl BackupDatasourceParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -992,14 +947,6 @@ impl BackupInstanceResourceList { Self::default() } } -#[doc = "BackupParameters base"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupParameters {} -impl BackupParameters { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -1340,14 +1287,6 @@ pub enum BasePolicyRuleUnion { AzureBackupRule(AzureBackupRule), AzureRetentionRule(AzureRetentionRule), } -#[doc = "Properties which are specific to datasource/datasourceSets"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BaseResourceProperties {} -impl BaseResourceProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -1357,18 +1296,13 @@ pub enum BaseResourcePropertiesUnion { #[doc = "Parameters to be used during configuration of backup of blobs"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobBackupDatasourceParameters { - #[serde(flatten)] - pub backup_datasource_parameters: BackupDatasourceParameters, #[doc = "List of containers to be backed up during configuration of backup of blobs"] #[serde(rename = "containersList")] pub containers_list: Vec, } impl BlobBackupDatasourceParameters { - pub fn new(backup_datasource_parameters: BackupDatasourceParameters, containers_list: Vec) -> Self { - Self { - backup_datasource_parameters, - containers_list, - } + pub fn new(containers_list: Vec) -> Self { + Self { containers_list } } } #[doc = "CheckNameAvailability Request"] @@ -1541,19 +1475,8 @@ impl CloudError { } #[doc = "Copy on Expiry Option"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyOnExpiryOption { - #[serde(flatten)] - pub copy_option: CopyOption, -} +pub struct CopyOnExpiryOption {} impl CopyOnExpiryOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { copy_option } - } -} -#[doc = "Options to copy"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CopyOption {} -impl CopyOption { pub fn new() -> Self { Self {} } @@ -1674,18 +1597,13 @@ pub mod cross_subscription_restore_settings { #[doc = "Duration based custom options to copy"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomCopyOption { - #[serde(flatten)] - pub copy_option: CopyOption, #[doc = "Data copied after given timespan"] #[serde(default, skip_serializing_if = "Option::is_none")] pub duration: Option, } impl CustomCopyOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { - copy_option, - duration: None, - } + pub fn new() -> Self { + Self { duration: None } } } #[doc = "DataStoreInfo base"] @@ -1909,13 +1827,10 @@ impl Day { } #[doc = "Default source properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DefaultResourceProperties { - #[serde(flatten)] - pub base_resource_properties: BaseResourceProperties, -} +pub struct DefaultResourceProperties {} impl DefaultResourceProperties { - pub fn new(base_resource_properties: BaseResourceProperties) -> Self { - Self { base_resource_properties } + pub fn new() -> Self { + Self {} } } #[doc = "Delete Option"] @@ -2297,8 +2212,6 @@ impl FeatureSettings { #[doc = "Base class for feature object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FeatureValidationRequest { - #[serde(flatten)] - pub feature_validation_request_base: FeatureValidationRequestBase, #[doc = "backup support feature type."] #[serde(rename = "featureType", default, skip_serializing_if = "Option::is_none")] pub feature_type: Option, @@ -2307,9 +2220,8 @@ pub struct FeatureValidationRequest { pub feature_name: Option, } impl FeatureValidationRequest { - pub fn new(feature_validation_request_base: FeatureValidationRequestBase) -> Self { + pub fn new() -> Self { Self { - feature_validation_request_base, feature_type: None, feature_name: None, } @@ -2355,14 +2267,6 @@ pub mod feature_validation_request { } } } -#[doc = "Base class for Backup Feature support"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureValidationRequestBase {} -impl FeatureValidationRequestBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2372,8 +2276,6 @@ pub enum FeatureValidationRequestBaseUnion { #[doc = "Feature Validation Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FeatureValidationResponse { - #[serde(flatten)] - pub feature_validation_response_base: FeatureValidationResponseBase, #[doc = "backup support feature type."] #[serde(rename = "featureType", default, skip_serializing_if = "Option::is_none")] pub feature_type: Option, @@ -2386,9 +2288,8 @@ pub struct FeatureValidationResponse { pub features: Vec, } impl FeatureValidationResponse { - pub fn new(feature_validation_response_base: FeatureValidationResponseBase) -> Self { + pub fn new() -> Self { Self { - feature_validation_response_base, feature_type: None, features: Vec::new(), } @@ -2434,14 +2335,6 @@ pub mod feature_validation_response { } } } -#[doc = "Base class for Backup Feature support"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureValidationResponseBase {} -impl FeatureValidationResponseBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2464,13 +2357,10 @@ impl IdentityDetails { } #[doc = "Immediate copy Option"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ImmediateCopyOption { - #[serde(flatten)] - pub copy_option: CopyOption, -} +pub struct ImmediateCopyOption {} impl ImmediateCopyOption { - pub fn new(copy_option: CopyOption) -> Self { - Self { copy_option } + pub fn new() -> Self { + Self {} } } #[doc = "Immutability Settings at vault level"] @@ -2545,14 +2435,6 @@ impl InnerError { Self::default() } } -#[doc = "Class to contain criteria for item level restore"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ItemLevelRestoreCriteria {} -impl ItemLevelRestoreCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -2600,8 +2482,6 @@ impl ItemLevelRestoreTargetInfo { #[doc = "Prefix criteria to be used to during restore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ItemPathBasedRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "The path of the item to be restored. It could be the full path of the item or the path relative to the backup item"] #[serde(rename = "itemPath")] pub item_path: String, @@ -2618,9 +2498,8 @@ pub struct ItemPathBasedRestoreCriteria { pub sub_item_path_prefix: Vec, } impl ItemPathBasedRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria, item_path: String, is_path_relative_to_backup_item: bool) -> Self { + pub fn new(item_path: String, is_path_relative_to_backup_item: bool) -> Self { Self { - item_level_restore_criteria, item_path, is_path_relative_to_backup_item, sub_item_path_prefix: Vec::new(), @@ -2693,8 +2572,6 @@ impl JobSubTask { #[doc = "Parameters for Kubernetes Cluster Backup Datasource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesClusterBackupDatasourceParameters { - #[serde(flatten)] - pub backup_datasource_parameters: BackupDatasourceParameters, #[doc = "Gets or sets the volume snapshot property. This property if enabled will take volume snapshots during backup."] #[serde(rename = "snapshotVolumes")] pub snapshot_volumes: bool, @@ -2751,13 +2628,8 @@ pub struct KubernetesClusterBackupDatasourceParameters { pub backup_hook_references: Vec, } impl KubernetesClusterBackupDatasourceParameters { - pub fn new( - backup_datasource_parameters: BackupDatasourceParameters, - snapshot_volumes: bool, - include_cluster_scope_resources: bool, - ) -> Self { + pub fn new(snapshot_volumes: bool, include_cluster_scope_resources: bool) -> Self { Self { - backup_datasource_parameters, snapshot_volumes, include_cluster_scope_resources, included_namespaces: Vec::new(), @@ -2772,8 +2644,6 @@ impl KubernetesClusterBackupDatasourceParameters { #[doc = "kubernetes Cluster Backup target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesClusterRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Gets or sets the include cluster resources property. This property if enabled will include cluster scope resources during restore."] #[serde(rename = "includeClusterScopeResources")] pub include_cluster_scope_resources: bool, @@ -2836,9 +2706,8 @@ pub struct KubernetesClusterRestoreCriteria { pub restore_hook_references: Vec, } impl KubernetesClusterRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria, include_cluster_scope_resources: bool) -> Self { + pub fn new(include_cluster_scope_resources: bool) -> Self { Self { - item_level_restore_criteria, include_cluster_scope_resources, included_namespaces: Vec::new(), excluded_namespaces: Vec::new(), @@ -2936,8 +2805,6 @@ pub mod kubernetes_cluster_restore_criteria { #[doc = "Item Level kubernetes persistent volume target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesPvRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Selected persistent volume claim name"] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2946,9 +2813,8 @@ pub struct KubernetesPvRestoreCriteria { pub storage_class_name: Option, } impl KubernetesPvRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, name: None, storage_class_name: None, } @@ -2957,8 +2823,6 @@ impl KubernetesPvRestoreCriteria { #[doc = "Item Level kubernetes storage class target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KubernetesStorageClassRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "Selected storage class name"] #[serde(rename = "selectedStorageClassName", default, skip_serializing_if = "Option::is_none")] pub selected_storage_class_name: Option, @@ -2967,9 +2831,8 @@ pub struct KubernetesStorageClassRestoreCriteria { pub provisioner: Option, } impl KubernetesStorageClassRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, selected_storage_class_name: None, provisioner: None, } @@ -3002,14 +2865,6 @@ impl NamespacedNameResource { Self::default() } } -#[doc = "Operation Extended Info"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationExtendedInfo {} -impl OperationExtendedInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -3019,18 +2874,13 @@ pub enum OperationExtendedInfoUnion { #[doc = "Operation Job Extended Info"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationJobExtendedInfo { - #[serde(flatten)] - pub operation_extended_info: OperationExtendedInfo, #[doc = "Arm Id of the job created for this operation."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, } impl OperationJobExtendedInfo { - pub fn new(operation_extended_info: OperationExtendedInfo) -> Self { - Self { - operation_extended_info, - job_id: None, - } + pub fn new() -> Self { + Self { job_id: None } } } #[doc = "Operation Resource"] @@ -3221,8 +3071,6 @@ pub mod protection_status_details { #[doc = "Item Level target info for restore operation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RangeBasedItemLevelRestoreCriteria { - #[serde(flatten)] - pub item_level_restore_criteria: ItemLevelRestoreCriteria, #[doc = "minimum value for range prefix match"] #[serde(rename = "minMatchingValue", default, skip_serializing_if = "Option::is_none")] pub min_matching_value: Option, @@ -3231,9 +3079,8 @@ pub struct RangeBasedItemLevelRestoreCriteria { pub max_matching_value: Option, } impl RangeBasedItemLevelRestoreCriteria { - pub fn new(item_level_restore_criteria: ItemLevelRestoreCriteria) -> Self { + pub fn new() -> Self { Self { - item_level_restore_criteria, min_matching_value: None, max_matching_value: None, } @@ -3765,8 +3612,6 @@ impl RetentionTag { #[doc = "Schedule based backup criteria"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduleBasedBackupCriteria { - #[serde(flatten)] - pub backup_criteria: BackupCriteria, #[doc = "it contains absolute values like \"AllBackup\" / \"FirstOfDay\" / \"FirstOfWeek\" / \"FirstOfMonth\"\r\nand should be part of AbsoluteMarker enum"] #[serde( rename = "absoluteCriteria", @@ -3817,9 +3662,8 @@ pub struct ScheduleBasedBackupCriteria { pub weeks_of_the_month: Vec, } impl ScheduleBasedBackupCriteria { - pub fn new(backup_criteria: BackupCriteria) -> Self { + pub fn new() -> Self { Self { - backup_criteria, absolute_criteria: Vec::new(), days_of_month: Vec::new(), days_of_the_week: Vec::new(), @@ -3832,8 +3676,6 @@ impl ScheduleBasedBackupCriteria { #[doc = "Schedule based trigger context"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduleBasedTriggerContext { - #[serde(flatten)] - pub trigger_context: TriggerContext, #[doc = "Schedule for backup"] pub schedule: BackupSchedule, #[doc = "List of tags that can be applicable for given schedule."] @@ -3841,9 +3683,8 @@ pub struct ScheduleBasedTriggerContext { pub tagging_criteria: Vec, } impl ScheduleBasedTriggerContext { - pub fn new(trigger_context: TriggerContext, schedule: BackupSchedule, tagging_criteria: Vec) -> Self { + pub fn new(schedule: BackupSchedule, tagging_criteria: Vec) -> Self { Self { - trigger_context, schedule, tagging_criteria, } @@ -3852,16 +3693,13 @@ impl ScheduleBasedTriggerContext { #[doc = "Secret store based authentication credentials."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SecretStoreBasedAuthCredentials { - #[serde(flatten)] - pub auth_credentials: AuthCredentials, #[doc = "Class representing a secret store resource."] #[serde(rename = "secretStoreResource", default, skip_serializing_if = "Option::is_none")] pub secret_store_resource: Option, } impl SecretStoreBasedAuthCredentials { - pub fn new(auth_credentials: AuthCredentials) -> Self { + pub fn new() -> Self { Self { - auth_credentials, secret_store_resource: None, } } @@ -4369,14 +4207,6 @@ impl TriggerBackupRequest { Self { backup_rule_options } } } -#[doc = "Trigger context"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TriggerContext {} -impl TriggerContext { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] diff --git a/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs b/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs index 143d48cfa6..523b97f6c0 100644 --- a/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs +++ b/services/mgmt/datashare/src/package_2018_11_01_preview/models.rs @@ -6,14 +6,12 @@ use std::str::FromStr; #[doc = "An ADLS Gen 1 file data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen1FileDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen1 file data set."] pub properties: AdlsGen1FileProperties, } impl AdlsGen1FileDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen1FileProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen1FileProperties) -> Self { + Self { properties } } } #[doc = "Properties of the ADLS Gen1 file data set."] @@ -53,14 +51,12 @@ impl AdlsGen1FileProperties { #[doc = "An ADLS Gen 1 folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen1FolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen1 folder data set."] pub properties: AdlsGen1FolderProperties, } impl AdlsGen1FolderDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen1FolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen1FolderProperties) -> Self { + Self { properties } } } #[doc = "Properties of the ADLS Gen1 folder data set."] @@ -96,30 +92,23 @@ impl AdlsGen1FolderProperties { #[doc = "An ADLS Gen 2 file data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 file data set."] pub properties: AdlsGen2FileProperties, } impl AdlsGen2FileDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FileProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FileProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 file data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 file data set mapping property bag."] pub properties: AdlsGen2FileDataSetMappingProperties, } impl AdlsGen2FileDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FileDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FileDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 file data set mapping property bag."] @@ -338,30 +327,23 @@ impl AdlsGen2FileProperties { #[doc = "An ADLS Gen 2 file system data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileSystemDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 file system data set."] pub properties: AdlsGen2FileSystemProperties, } impl AdlsGen2FileSystemDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FileSystemProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FileSystemProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 file system data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileSystemDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 file system data set mapping property bag."] pub properties: AdlsGen2FileSystemDataSetMappingProperties, } impl AdlsGen2FileSystemDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FileSystemDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FileSystemDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 file system data set mapping property bag."] @@ -524,30 +506,23 @@ impl AdlsGen2FileSystemProperties { #[doc = "An ADLS Gen 2 folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 folder data set."] pub properties: AdlsGen2FolderProperties, } impl AdlsGen2FolderDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FolderProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 folder data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FolderDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 folder data set mapping property bag."] pub properties: AdlsGen2FolderDataSetMappingProperties, } impl AdlsGen2FolderDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FolderDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FolderDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 folder data set mapping property bag."] @@ -844,30 +819,23 @@ impl AccountUpdateParameters { #[doc = "An Azure storage blob container data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobContainerDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the BLOB container data set."] pub properties: BlobContainerProperties, } impl BlobContainerDataSet { - pub fn new(data_set: DataSet, properties: BlobContainerProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobContainerProperties) -> Self { + Self { properties } } } #[doc = "A Blob container data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobContainerDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob container data set mapping property bag."] pub properties: BlobContainerMappingProperties, } impl BlobContainerDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobContainerMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobContainerMappingProperties) -> Self { + Self { properties } } } #[doc = "Azure storage Blob container data set mapping property bag."] @@ -1030,59 +998,45 @@ impl BlobContainerProperties { #[doc = "An Azure storage blob data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the blob data set."] pub properties: BlobProperties, } impl BlobDataSet { - pub fn new(data_set: DataSet, properties: BlobProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobProperties) -> Self { + Self { properties } } } #[doc = "A Blob data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob data set mapping property bag."] pub properties: BlobMappingProperties, } impl BlobDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobMappingProperties) -> Self { + Self { properties } } } #[doc = "An Azure storage blob folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobFolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the blob folder data set."] pub properties: BlobFolderProperties, } impl BlobFolderDataSet { - pub fn new(data_set: DataSet, properties: BlobFolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobFolderProperties) -> Self { + Self { properties } } } #[doc = "A Blob folder data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobFolderDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob folder data set mapping property bag."] pub properties: BlobFolderMappingProperties, } impl BlobFolderDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobFolderMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobFolderMappingProperties) -> Self { + Self { properties } } } #[doc = "Azure storage Blob folder data set mapping property bag."] @@ -1734,19 +1688,6 @@ pub mod consumer_source_data_set_properties { } } } -#[doc = "A DataSet data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataSet { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl DataSet { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of data set."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -1786,19 +1727,6 @@ impl DataSetList { Self { next_link: None, value } } } -#[doc = "A data set mapping data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataSetMapping { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl DataSetMapping { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of data set mapping."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -2086,30 +2014,23 @@ pub mod invitation_properties { #[doc = "A kusto cluster data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoClusterDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the kusto cluster data set."] pub properties: KustoClusterDataSetProperties, } impl KustoClusterDataSet { - pub fn new(data_set: DataSet, properties: KustoClusterDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: KustoClusterDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Kusto cluster data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoClusterDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Kusto cluster data set mapping"] pub properties: KustoClusterDataSetMappingProperties, } impl KustoClusterDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: KustoClusterDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: KustoClusterDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Kusto cluster data set mapping"] @@ -2300,30 +2221,23 @@ pub mod kusto_cluster_data_set_properties { #[doc = "A kusto database data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoDatabaseDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the kusto database data set."] pub properties: KustoDatabaseDataSetProperties, } impl KustoDatabaseDataSet { - pub fn new(data_set: DataSet, properties: KustoDatabaseDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: KustoDatabaseDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Kusto database data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoDatabaseDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Kusto database data set mapping"] pub properties: KustoDatabaseDataSetMappingProperties, } impl KustoDatabaseDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: KustoDatabaseDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: KustoDatabaseDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Kusto database data set mapping"] @@ -2950,34 +2864,24 @@ pub mod scheduled_source_share_synchronization_setting_properties { #[doc = "A type of synchronization setting based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSourceSynchronizationSetting { - #[serde(flatten)] - pub source_share_synchronization_setting: SourceShareSynchronizationSetting, #[doc = "A Scheduled source synchronization setting data transfer object."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ScheduledSourceSynchronizationSetting { - pub fn new(source_share_synchronization_setting: SourceShareSynchronizationSetting) -> Self { - Self { - source_share_synchronization_setting, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A type of synchronization setting based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSynchronizationSetting { - #[serde(flatten)] - pub synchronization_setting: SynchronizationSetting, #[doc = "A Scheduled synchronization setting data transfer object."] pub properties: ScheduledSynchronizationSettingProperties, } impl ScheduledSynchronizationSetting { - pub fn new(synchronization_setting: SynchronizationSetting, properties: ScheduledSynchronizationSettingProperties) -> Self { - Self { - synchronization_setting, - properties, - } + pub fn new(properties: ScheduledSynchronizationSettingProperties) -> Self { + Self { properties } } } #[doc = "A Scheduled synchronization setting data transfer object."] @@ -3099,14 +3003,12 @@ pub mod scheduled_synchronization_setting_properties { #[doc = "A type of trigger based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledTrigger { - #[serde(flatten)] - pub trigger: Trigger, #[doc = "A Scheduled trigger data transfer object."] pub properties: ScheduledTriggerProperties, } impl ScheduledTrigger { - pub fn new(trigger: Trigger, properties: ScheduledTriggerProperties) -> Self { - Self { trigger, properties } + pub fn new(properties: ScheduledTriggerProperties) -> Self { + Self { properties } } } #[doc = "A Scheduled trigger data transfer object."] @@ -3874,14 +3776,6 @@ impl ShareSynchronizationList { Self { next_link: None, value } } } -#[doc = "A view of synchronization setting added by the provider"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SourceShareSynchronizationSetting {} -impl SourceShareSynchronizationSetting { - pub fn new() -> Self { - Self {} - } -} #[doc = "Kind of synchronization setting on share."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -3911,34 +3805,24 @@ impl SourceShareSynchronizationSettingList { #[doc = "A SQL DB table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDbTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the SQL DB table data set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SqlDbTableDataSet { - pub fn new(data_set: DataSet) -> Self { - Self { - data_set, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A SQL DB Table data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDbTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the SQL DB table data set mapping."] pub properties: SqlDbTableDataSetMappingProperties, } impl SqlDbTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SqlDbTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SqlDbTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the SQL DB table data set mapping."] @@ -4101,34 +3985,24 @@ impl SqlDbTableProperties { #[doc = "A SQL DW table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDwTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the SQL DW table data set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SqlDwTableDataSet { - pub fn new(data_set: DataSet) -> Self { - Self { - data_set, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A SQL DW Table data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDwTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the SQL DW table data set mapping."] pub properties: SqlDwTableDataSetMappingProperties, } impl SqlDwTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SqlDwTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SqlDwTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the SQL DW table data set mapping."] @@ -4424,19 +4298,6 @@ impl SynchronizationDetailsList { Self { next_link: None, value } } } -#[doc = "A Synchronization Setting data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SynchronizationSetting { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl SynchronizationSetting { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of synchronization setting."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -4515,19 +4376,6 @@ pub mod synchronize { } } } -#[doc = "A Trigger data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Trigger { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl Trigger { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of synchronization on trigger."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] diff --git a/services/mgmt/datashare/src/package_2019_11_01/models.rs b/services/mgmt/datashare/src/package_2019_11_01/models.rs index cc6a1b3fc0..837e585770 100644 --- a/services/mgmt/datashare/src/package_2019_11_01/models.rs +++ b/services/mgmt/datashare/src/package_2019_11_01/models.rs @@ -6,14 +6,12 @@ use std::str::FromStr; #[doc = "An ADLS Gen 1 file data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen1FileDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen1 file data set."] pub properties: AdlsGen1FileProperties, } impl AdlsGen1FileDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen1FileProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen1FileProperties) -> Self { + Self { properties } } } #[doc = "Properties of the ADLS Gen1 file data set."] @@ -53,14 +51,12 @@ impl AdlsGen1FileProperties { #[doc = "An ADLS Gen 1 folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen1FolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen1 folder data set."] pub properties: AdlsGen1FolderProperties, } impl AdlsGen1FolderDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen1FolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen1FolderProperties) -> Self { + Self { properties } } } #[doc = "Properties of the ADLS Gen1 folder data set."] @@ -96,30 +92,23 @@ impl AdlsGen1FolderProperties { #[doc = "An ADLS Gen 2 file data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 file data set."] pub properties: AdlsGen2FileProperties, } impl AdlsGen2FileDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FileProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FileProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 file data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 file data set mapping property bag."] pub properties: AdlsGen2FileDataSetMappingProperties, } impl AdlsGen2FileDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FileDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FileDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 file data set mapping property bag."] @@ -338,30 +327,23 @@ impl AdlsGen2FileProperties { #[doc = "An ADLS Gen 2 file system data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileSystemDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 file system data set."] pub properties: AdlsGen2FileSystemProperties, } impl AdlsGen2FileSystemDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FileSystemProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FileSystemProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 file system data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileSystemDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 file system data set mapping property bag."] pub properties: AdlsGen2FileSystemDataSetMappingProperties, } impl AdlsGen2FileSystemDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FileSystemDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FileSystemDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 file system data set mapping property bag."] @@ -524,30 +506,23 @@ impl AdlsGen2FileSystemProperties { #[doc = "An ADLS Gen 2 folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 folder data set."] pub properties: AdlsGen2FolderProperties, } impl AdlsGen2FolderDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FolderProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 folder data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FolderDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 folder data set mapping property bag."] pub properties: AdlsGen2FolderDataSetMappingProperties, } impl AdlsGen2FolderDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FolderDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FolderDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 folder data set mapping property bag."] @@ -844,30 +819,23 @@ impl AccountUpdateParameters { #[doc = "An Azure storage blob container data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobContainerDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the BLOB container data set."] pub properties: BlobContainerProperties, } impl BlobContainerDataSet { - pub fn new(data_set: DataSet, properties: BlobContainerProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobContainerProperties) -> Self { + Self { properties } } } #[doc = "A Blob container data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobContainerDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob container data set mapping property bag."] pub properties: BlobContainerMappingProperties, } impl BlobContainerDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobContainerMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobContainerMappingProperties) -> Self { + Self { properties } } } #[doc = "Azure storage Blob container data set mapping property bag."] @@ -1030,59 +998,45 @@ impl BlobContainerProperties { #[doc = "An Azure storage blob data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the blob data set."] pub properties: BlobProperties, } impl BlobDataSet { - pub fn new(data_set: DataSet, properties: BlobProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobProperties) -> Self { + Self { properties } } } #[doc = "A Blob data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob data set mapping property bag."] pub properties: BlobMappingProperties, } impl BlobDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobMappingProperties) -> Self { + Self { properties } } } #[doc = "An Azure storage blob folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobFolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the blob folder data set."] pub properties: BlobFolderProperties, } impl BlobFolderDataSet { - pub fn new(data_set: DataSet, properties: BlobFolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobFolderProperties) -> Self { + Self { properties } } } #[doc = "A Blob folder data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobFolderDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob folder data set mapping property bag."] pub properties: BlobFolderMappingProperties, } impl BlobFolderDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobFolderMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobFolderMappingProperties) -> Self { + Self { properties } } } #[doc = "Azure storage Blob folder data set mapping property bag."] @@ -1734,19 +1688,6 @@ pub mod consumer_source_data_set_properties { } } } -#[doc = "A DataSet data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataSet { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl DataSet { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of data set."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -1786,19 +1727,6 @@ impl DataSetList { Self { next_link: None, value } } } -#[doc = "A data set mapping data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataSetMapping { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl DataSetMapping { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of data set mapping."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -2154,30 +2082,23 @@ pub mod invitation_properties { #[doc = "A kusto cluster data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoClusterDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the kusto cluster data set."] pub properties: KustoClusterDataSetProperties, } impl KustoClusterDataSet { - pub fn new(data_set: DataSet, properties: KustoClusterDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: KustoClusterDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Kusto cluster data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoClusterDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Kusto cluster data set mapping"] pub properties: KustoClusterDataSetMappingProperties, } impl KustoClusterDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: KustoClusterDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: KustoClusterDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Kusto cluster data set mapping"] @@ -2368,30 +2289,23 @@ pub mod kusto_cluster_data_set_properties { #[doc = "A kusto database data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoDatabaseDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the kusto database data set."] pub properties: KustoDatabaseDataSetProperties, } impl KustoDatabaseDataSet { - pub fn new(data_set: DataSet, properties: KustoDatabaseDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: KustoDatabaseDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Kusto database data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoDatabaseDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Kusto database data set mapping"] pub properties: KustoDatabaseDataSetMappingProperties, } impl KustoDatabaseDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: KustoDatabaseDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: KustoDatabaseDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Kusto database data set mapping"] @@ -3018,34 +2932,24 @@ pub mod scheduled_source_share_synchronization_setting_properties { #[doc = "A type of synchronization setting based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSourceSynchronizationSetting { - #[serde(flatten)] - pub source_share_synchronization_setting: SourceShareSynchronizationSetting, #[doc = "A Scheduled source synchronization setting data transfer object."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ScheduledSourceSynchronizationSetting { - pub fn new(source_share_synchronization_setting: SourceShareSynchronizationSetting) -> Self { - Self { - source_share_synchronization_setting, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A type of synchronization setting based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSynchronizationSetting { - #[serde(flatten)] - pub synchronization_setting: SynchronizationSetting, #[doc = "A Scheduled synchronization setting data transfer object."] pub properties: ScheduledSynchronizationSettingProperties, } impl ScheduledSynchronizationSetting { - pub fn new(synchronization_setting: SynchronizationSetting, properties: ScheduledSynchronizationSettingProperties) -> Self { - Self { - synchronization_setting, - properties, - } + pub fn new(properties: ScheduledSynchronizationSettingProperties) -> Self { + Self { properties } } } #[doc = "A Scheduled synchronization setting data transfer object."] @@ -3167,14 +3071,12 @@ pub mod scheduled_synchronization_setting_properties { #[doc = "A type of trigger based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledTrigger { - #[serde(flatten)] - pub trigger: Trigger, #[doc = "A Scheduled trigger data transfer object."] pub properties: ScheduledTriggerProperties, } impl ScheduledTrigger { - pub fn new(trigger: Trigger, properties: ScheduledTriggerProperties) -> Self { - Self { trigger, properties } + pub fn new(properties: ScheduledTriggerProperties) -> Self { + Self { properties } } } #[doc = "A Scheduled trigger data transfer object."] @@ -3946,14 +3848,6 @@ impl ShareSynchronizationList { Self { next_link: None, value } } } -#[doc = "A view of synchronization setting added by the provider"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SourceShareSynchronizationSetting {} -impl SourceShareSynchronizationSetting { - pub fn new() -> Self { - Self {} - } -} #[doc = "Kind of synchronization setting on share."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -3983,34 +3877,24 @@ impl SourceShareSynchronizationSettingList { #[doc = "A SQL DB table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDbTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the SQL DB table data set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SqlDbTableDataSet { - pub fn new(data_set: DataSet) -> Self { - Self { - data_set, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A SQL DB Table data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDbTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the SQL DB table data set mapping."] pub properties: SqlDbTableDataSetMappingProperties, } impl SqlDbTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SqlDbTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SqlDbTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the SQL DB table data set mapping."] @@ -4173,34 +4057,24 @@ impl SqlDbTableProperties { #[doc = "A SQL DW table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDwTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the SQL DW table data set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SqlDwTableDataSet { - pub fn new(data_set: DataSet) -> Self { - Self { - data_set, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A SQL DW Table data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDwTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the SQL DW table data set mapping."] pub properties: SqlDwTableDataSetMappingProperties, } impl SqlDwTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SqlDwTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SqlDwTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the SQL DW table data set mapping."] @@ -4496,19 +4370,6 @@ impl SynchronizationDetailsList { Self { next_link: None, value } } } -#[doc = "A Synchronization Setting data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SynchronizationSetting { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl SynchronizationSetting { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of synchronization setting."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -4587,19 +4448,6 @@ pub mod synchronize { } } } -#[doc = "A Trigger data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Trigger { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl Trigger { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of synchronization on trigger."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] diff --git a/services/mgmt/datashare/src/package_2020_09_01/models.rs b/services/mgmt/datashare/src/package_2020_09_01/models.rs index 8de35edc19..0d0911c9b4 100644 --- a/services/mgmt/datashare/src/package_2020_09_01/models.rs +++ b/services/mgmt/datashare/src/package_2020_09_01/models.rs @@ -6,14 +6,12 @@ use std::str::FromStr; #[doc = "An ADLS Gen 1 file data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen1FileDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen1 file data set."] pub properties: AdlsGen1FileProperties, } impl AdlsGen1FileDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen1FileProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen1FileProperties) -> Self { + Self { properties } } } #[doc = "Properties of the ADLS Gen1 file data set."] @@ -53,14 +51,12 @@ impl AdlsGen1FileProperties { #[doc = "An ADLS Gen 1 folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen1FolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen1 folder data set."] pub properties: AdlsGen1FolderProperties, } impl AdlsGen1FolderDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen1FolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen1FolderProperties) -> Self { + Self { properties } } } #[doc = "Properties of the ADLS Gen1 folder data set."] @@ -96,30 +92,23 @@ impl AdlsGen1FolderProperties { #[doc = "An ADLS Gen 2 file data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 file data set."] pub properties: AdlsGen2FileProperties, } impl AdlsGen2FileDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FileProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FileProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 file data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 file data set mapping property bag."] pub properties: AdlsGen2FileDataSetMappingProperties, } impl AdlsGen2FileDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FileDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FileDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 file data set mapping property bag."] @@ -338,30 +327,23 @@ impl AdlsGen2FileProperties { #[doc = "An ADLS Gen 2 file system data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileSystemDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 file system data set."] pub properties: AdlsGen2FileSystemProperties, } impl AdlsGen2FileSystemDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FileSystemProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FileSystemProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 file system data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileSystemDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 file system data set mapping property bag."] pub properties: AdlsGen2FileSystemDataSetMappingProperties, } impl AdlsGen2FileSystemDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FileSystemDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FileSystemDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 file system data set mapping property bag."] @@ -524,30 +506,23 @@ impl AdlsGen2FileSystemProperties { #[doc = "An ADLS Gen 2 folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 folder data set."] pub properties: AdlsGen2FolderProperties, } impl AdlsGen2FolderDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FolderProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 folder data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FolderDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 folder data set mapping property bag."] pub properties: AdlsGen2FolderDataSetMappingProperties, } impl AdlsGen2FolderDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FolderDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FolderDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 folder data set mapping property bag."] @@ -844,30 +819,23 @@ impl AccountUpdateParameters { #[doc = "An Azure storage blob container data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobContainerDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the BLOB container data set."] pub properties: BlobContainerProperties, } impl BlobContainerDataSet { - pub fn new(data_set: DataSet, properties: BlobContainerProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobContainerProperties) -> Self { + Self { properties } } } #[doc = "A Blob container data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobContainerDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob container data set mapping property bag."] pub properties: BlobContainerMappingProperties, } impl BlobContainerDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobContainerMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobContainerMappingProperties) -> Self { + Self { properties } } } #[doc = "Azure storage Blob container data set mapping property bag."] @@ -1030,59 +998,45 @@ impl BlobContainerProperties { #[doc = "An Azure storage blob data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the blob data set."] pub properties: BlobProperties, } impl BlobDataSet { - pub fn new(data_set: DataSet, properties: BlobProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobProperties) -> Self { + Self { properties } } } #[doc = "A Blob data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob data set mapping property bag."] pub properties: BlobMappingProperties, } impl BlobDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobMappingProperties) -> Self { + Self { properties } } } #[doc = "An Azure storage blob folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobFolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the blob folder data set."] pub properties: BlobFolderProperties, } impl BlobFolderDataSet { - pub fn new(data_set: DataSet, properties: BlobFolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobFolderProperties) -> Self { + Self { properties } } } #[doc = "A Blob folder data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobFolderDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob folder data set mapping property bag."] pub properties: BlobFolderMappingProperties, } impl BlobFolderDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobFolderMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobFolderMappingProperties) -> Self { + Self { properties } } } #[doc = "Azure storage Blob folder data set mapping property bag."] @@ -1742,19 +1696,6 @@ pub mod consumer_source_data_set_properties { } } } -#[doc = "A DataSet data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataSet { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl DataSet { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of data set."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -1795,19 +1736,6 @@ impl DataSetList { Self { next_link: None, value } } } -#[doc = "A data set mapping data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataSetMapping { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl DataSetMapping { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of data set mapping."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -2167,30 +2095,23 @@ pub mod invitation_properties { #[doc = "A kusto cluster data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoClusterDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the kusto cluster data set."] pub properties: KustoClusterDataSetProperties, } impl KustoClusterDataSet { - pub fn new(data_set: DataSet, properties: KustoClusterDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: KustoClusterDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Kusto cluster data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoClusterDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Kusto cluster data set mapping"] pub properties: KustoClusterDataSetMappingProperties, } impl KustoClusterDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: KustoClusterDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: KustoClusterDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Kusto cluster data set mapping"] @@ -2381,30 +2302,23 @@ pub mod kusto_cluster_data_set_properties { #[doc = "A kusto database data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoDatabaseDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the kusto database data set."] pub properties: KustoDatabaseDataSetProperties, } impl KustoDatabaseDataSet { - pub fn new(data_set: DataSet, properties: KustoDatabaseDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: KustoDatabaseDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Kusto database data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoDatabaseDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Kusto database data set mapping"] pub properties: KustoDatabaseDataSetMappingProperties, } impl KustoDatabaseDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: KustoDatabaseDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: KustoDatabaseDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Kusto database data set mapping"] @@ -3037,34 +2951,24 @@ pub mod scheduled_source_share_synchronization_setting_properties { #[doc = "A type of synchronization setting based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSourceSynchronizationSetting { - #[serde(flatten)] - pub source_share_synchronization_setting: SourceShareSynchronizationSetting, #[doc = "A Scheduled source synchronization setting data transfer object."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ScheduledSourceSynchronizationSetting { - pub fn new(source_share_synchronization_setting: SourceShareSynchronizationSetting) -> Self { - Self { - source_share_synchronization_setting, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A type of synchronization setting based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSynchronizationSetting { - #[serde(flatten)] - pub synchronization_setting: SynchronizationSetting, #[doc = "A Scheduled synchronization setting data transfer object."] pub properties: ScheduledSynchronizationSettingProperties, } impl ScheduledSynchronizationSetting { - pub fn new(synchronization_setting: SynchronizationSetting, properties: ScheduledSynchronizationSettingProperties) -> Self { - Self { - synchronization_setting, - properties, - } + pub fn new(properties: ScheduledSynchronizationSettingProperties) -> Self { + Self { properties } } } #[doc = "A Scheduled synchronization setting data transfer object."] @@ -3186,14 +3090,12 @@ pub mod scheduled_synchronization_setting_properties { #[doc = "A type of trigger based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledTrigger { - #[serde(flatten)] - pub trigger: Trigger, #[doc = "A Scheduled trigger data transfer object."] pub properties: ScheduledTriggerProperties, } impl ScheduledTrigger { - pub fn new(trigger: Trigger, properties: ScheduledTriggerProperties) -> Self { - Self { trigger, properties } + pub fn new(properties: ScheduledTriggerProperties) -> Self { + Self { properties } } } #[doc = "A Scheduled trigger data transfer object."] @@ -3969,14 +3871,6 @@ impl ShareSynchronizationList { Self { next_link: None, value } } } -#[doc = "A view of synchronization setting added by the provider"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SourceShareSynchronizationSetting {} -impl SourceShareSynchronizationSetting { - pub fn new() -> Self { - Self {} - } -} #[doc = "Kind of synchronization setting on share."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -4006,34 +3900,24 @@ impl SourceShareSynchronizationSettingList { #[doc = "A SQL DB table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDbTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the SQL DB table data set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SqlDbTableDataSet { - pub fn new(data_set: DataSet) -> Self { - Self { - data_set, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A SQL DB Table data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDbTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the SQL DB table data set mapping."] pub properties: SqlDbTableDataSetMappingProperties, } impl SqlDbTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SqlDbTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SqlDbTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the SQL DB table data set mapping."] @@ -4196,34 +4080,24 @@ impl SqlDbTableProperties { #[doc = "A SQL DW table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDwTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the SQL DW table data set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SqlDwTableDataSet { - pub fn new(data_set: DataSet) -> Self { - Self { - data_set, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A SQL DW Table data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDwTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the SQL DW table data set mapping."] pub properties: SqlDwTableDataSetMappingProperties, } impl SqlDwTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SqlDwTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SqlDwTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the SQL DW table data set mapping."] @@ -4386,30 +4260,23 @@ impl SqlDwTableProperties { #[doc = "A Synapse Workspace Sql Pool Table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SynapseWorkspaceSqlPoolTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the Synapse Workspace SQL Pool Table data set."] pub properties: SynapseWorkspaceSqlPoolTableDataSetProperties, } impl SynapseWorkspaceSqlPoolTableDataSet { - pub fn new(data_set: DataSet, properties: SynapseWorkspaceSqlPoolTableDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: SynapseWorkspaceSqlPoolTableDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Synapse Workspace Sql Pool Table data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SynapseWorkspaceSqlPoolTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Synapse Workspace SQL Pool Table data set mapping"] pub properties: SynapseWorkspaceSqlPoolTableDataSetMappingProperties, } impl SynapseWorkspaceSqlPoolTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SynapseWorkspaceSqlPoolTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SynapseWorkspaceSqlPoolTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Synapse Workspace SQL Pool Table data set mapping"] @@ -4679,19 +4546,6 @@ impl SynchronizationDetailsList { Self { next_link: None, value } } } -#[doc = "A Synchronization Setting data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SynchronizationSetting { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl SynchronizationSetting { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of synchronization setting."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -4882,19 +4736,6 @@ pub mod system_data { } } } -#[doc = "A Trigger data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Trigger { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl Trigger { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of synchronization on trigger."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] diff --git a/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs b/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs index 2e9777d606..02fca18b62 100644 --- a/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs +++ b/services/mgmt/datashare/src/package_2020_10_01_preview/models.rs @@ -6,14 +6,12 @@ use std::str::FromStr; #[doc = "An ADLS Gen 1 file data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen1FileDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen1 file data set."] pub properties: AdlsGen1FileProperties, } impl AdlsGen1FileDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen1FileProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen1FileProperties) -> Self { + Self { properties } } } #[doc = "Properties of the ADLS Gen1 file data set."] @@ -53,14 +51,12 @@ impl AdlsGen1FileProperties { #[doc = "An ADLS Gen 1 folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen1FolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen1 folder data set."] pub properties: AdlsGen1FolderProperties, } impl AdlsGen1FolderDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen1FolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen1FolderProperties) -> Self { + Self { properties } } } #[doc = "Properties of the ADLS Gen1 folder data set."] @@ -96,30 +92,23 @@ impl AdlsGen1FolderProperties { #[doc = "An ADLS Gen 2 file data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 file data set."] pub properties: AdlsGen2FileProperties, } impl AdlsGen2FileDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FileProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FileProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 file data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 file data set mapping property bag."] pub properties: AdlsGen2FileDataSetMappingProperties, } impl AdlsGen2FileDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FileDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FileDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 file data set mapping property bag."] @@ -338,30 +327,23 @@ impl AdlsGen2FileProperties { #[doc = "An ADLS Gen 2 file system data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileSystemDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 file system data set."] pub properties: AdlsGen2FileSystemProperties, } impl AdlsGen2FileSystemDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FileSystemProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FileSystemProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 file system data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileSystemDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 file system data set mapping property bag."] pub properties: AdlsGen2FileSystemDataSetMappingProperties, } impl AdlsGen2FileSystemDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FileSystemDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FileSystemDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 file system data set mapping property bag."] @@ -524,30 +506,23 @@ impl AdlsGen2FileSystemProperties { #[doc = "An ADLS Gen 2 folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 folder data set."] pub properties: AdlsGen2FolderProperties, } impl AdlsGen2FolderDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FolderProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 folder data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FolderDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 folder data set mapping property bag."] pub properties: AdlsGen2FolderDataSetMappingProperties, } impl AdlsGen2FolderDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FolderDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FolderDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 folder data set mapping property bag."] @@ -725,30 +700,23 @@ impl AdlsGen2FolderProperties { #[doc = "An ADLSGen2 storage account data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2StorageAccountDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLSGen2 storage account data set."] pub properties: AdlsGen2StorageAccountDataSetProperties, } impl AdlsGen2StorageAccountDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2StorageAccountDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2StorageAccountDataSetProperties) -> Self { + Self { properties } } } #[doc = "ADLSGen2 storage account data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2StorageAccountDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the ADLSGen2 storage account data set."] pub properties: AdlsGen2StorageAccountDataSetMappingProperties, } impl AdlsGen2StorageAccountDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2StorageAccountDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2StorageAccountDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the ADLSGen2 storage account data set."] @@ -1044,30 +1012,23 @@ impl AccountUpdateParameters { #[doc = "An Azure storage blob container data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobContainerDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the BLOB container data set."] pub properties: BlobContainerProperties, } impl BlobContainerDataSet { - pub fn new(data_set: DataSet, properties: BlobContainerProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobContainerProperties) -> Self { + Self { properties } } } #[doc = "A Blob container data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobContainerDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob container data set mapping property bag."] pub properties: BlobContainerMappingProperties, } impl BlobContainerDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobContainerMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobContainerMappingProperties) -> Self { + Self { properties } } } #[doc = "Azure storage Blob container data set mapping property bag."] @@ -1230,59 +1191,45 @@ impl BlobContainerProperties { #[doc = "An Azure storage blob data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the blob data set."] pub properties: BlobProperties, } impl BlobDataSet { - pub fn new(data_set: DataSet, properties: BlobProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobProperties) -> Self { + Self { properties } } } #[doc = "A Blob data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob data set mapping property bag."] pub properties: BlobMappingProperties, } impl BlobDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobMappingProperties) -> Self { + Self { properties } } } #[doc = "An Azure storage blob folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobFolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the blob folder data set."] pub properties: BlobFolderProperties, } impl BlobFolderDataSet { - pub fn new(data_set: DataSet, properties: BlobFolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobFolderProperties) -> Self { + Self { properties } } } #[doc = "A Blob folder data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobFolderDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob folder data set mapping property bag."] pub properties: BlobFolderMappingProperties, } impl BlobFolderDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobFolderMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobFolderMappingProperties) -> Self { + Self { properties } } } #[doc = "Azure storage Blob folder data set mapping property bag."] @@ -1671,30 +1618,23 @@ impl BlobProperties { #[doc = "An Azure blob storage account data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobStorageAccountDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the blob storage account data set."] pub properties: BlobStorageAccountDataSetProperties, } impl BlobStorageAccountDataSet { - pub fn new(data_set: DataSet, properties: BlobStorageAccountDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobStorageAccountDataSetProperties) -> Self { + Self { properties } } } #[doc = "A blob storage account data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobStorageAccountDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the blob storage account data set."] pub properties: BlobStorageAccountDataSetMappingProperties, } impl BlobStorageAccountDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobStorageAccountDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobStorageAccountDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the blob storage account data set."] @@ -2146,19 +2086,6 @@ pub mod consumer_source_data_set_properties { } } } -#[doc = "A DataSet data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataSet { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl DataSet { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of data set."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -2201,19 +2128,6 @@ impl DataSetList { Self { next_link: None, value } } } -#[doc = "A data set mapping data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataSetMapping { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl DataSetMapping { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of data set mapping."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -2507,30 +2421,23 @@ pub mod invitation_properties { #[doc = "A kusto cluster data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoClusterDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the kusto cluster data set."] pub properties: KustoClusterDataSetProperties, } impl KustoClusterDataSet { - pub fn new(data_set: DataSet, properties: KustoClusterDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: KustoClusterDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Kusto cluster data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoClusterDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Kusto cluster data set mapping"] pub properties: KustoClusterDataSetMappingProperties, } impl KustoClusterDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: KustoClusterDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: KustoClusterDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Kusto cluster data set mapping"] @@ -2721,30 +2628,23 @@ pub mod kusto_cluster_data_set_properties { #[doc = "A kusto database data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoDatabaseDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the kusto database data set."] pub properties: KustoDatabaseDataSetProperties, } impl KustoDatabaseDataSet { - pub fn new(data_set: DataSet, properties: KustoDatabaseDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: KustoDatabaseDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Kusto database data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoDatabaseDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Kusto database data set mapping"] pub properties: KustoDatabaseDataSetMappingProperties, } impl KustoDatabaseDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: KustoDatabaseDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: KustoDatabaseDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Kusto database data set mapping"] @@ -3377,34 +3277,24 @@ pub mod scheduled_source_share_synchronization_setting_properties { #[doc = "A type of synchronization setting based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSourceSynchronizationSetting { - #[serde(flatten)] - pub source_share_synchronization_setting: SourceShareSynchronizationSetting, #[doc = "A Scheduled source synchronization setting data transfer object."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ScheduledSourceSynchronizationSetting { - pub fn new(source_share_synchronization_setting: SourceShareSynchronizationSetting) -> Self { - Self { - source_share_synchronization_setting, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A type of synchronization setting based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSynchronizationSetting { - #[serde(flatten)] - pub synchronization_setting: SynchronizationSetting, #[doc = "A Scheduled synchronization setting data transfer object."] pub properties: ScheduledSynchronizationSettingProperties, } impl ScheduledSynchronizationSetting { - pub fn new(synchronization_setting: SynchronizationSetting, properties: ScheduledSynchronizationSettingProperties) -> Self { - Self { - synchronization_setting, - properties, - } + pub fn new(properties: ScheduledSynchronizationSettingProperties) -> Self { + Self { properties } } } #[doc = "A Scheduled synchronization setting data transfer object."] @@ -3526,14 +3416,12 @@ pub mod scheduled_synchronization_setting_properties { #[doc = "A type of trigger based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledTrigger { - #[serde(flatten)] - pub trigger: Trigger, #[doc = "A Scheduled trigger data transfer object."] pub properties: ScheduledTriggerProperties, } impl ScheduledTrigger { - pub fn new(trigger: Trigger, properties: ScheduledTriggerProperties) -> Self { - Self { trigger, properties } + pub fn new(properties: ScheduledTriggerProperties) -> Self { + Self { properties } } } #[doc = "A Scheduled trigger data transfer object."] @@ -4309,14 +4197,6 @@ impl ShareSynchronizationList { Self { next_link: None, value } } } -#[doc = "A view of synchronization setting added by the provider"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SourceShareSynchronizationSetting {} -impl SourceShareSynchronizationSetting { - pub fn new() -> Self { - Self {} - } -} #[doc = "Kind of synchronization setting on share."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -4346,34 +4226,24 @@ impl SourceShareSynchronizationSettingList { #[doc = "A SQL DB table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDbTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the SQL DB table data set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SqlDbTableDataSet { - pub fn new(data_set: DataSet) -> Self { - Self { - data_set, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A SQL DB Table data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDbTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the SQL DB table data set mapping."] pub properties: SqlDbTableDataSetMappingProperties, } impl SqlDbTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SqlDbTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SqlDbTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the SQL DB table data set mapping."] @@ -4536,34 +4406,24 @@ impl SqlDbTableProperties { #[doc = "A SQL DW table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDwTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the SQL DW table data set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SqlDwTableDataSet { - pub fn new(data_set: DataSet) -> Self { - Self { - data_set, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A SQL DW Table data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDwTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the SQL DW table data set mapping."] pub properties: SqlDwTableDataSetMappingProperties, } impl SqlDwTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SqlDwTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SqlDwTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the SQL DW table data set mapping."] @@ -4726,30 +4586,23 @@ impl SqlDwTableProperties { #[doc = "A Synapse Workspace Sql Pool Table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SynapseWorkspaceSqlPoolTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the Synapse Workspace SQL Pool Table data set."] pub properties: SynapseWorkspaceSqlPoolTableDataSetProperties, } impl SynapseWorkspaceSqlPoolTableDataSet { - pub fn new(data_set: DataSet, properties: SynapseWorkspaceSqlPoolTableDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: SynapseWorkspaceSqlPoolTableDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Synapse Workspace Sql Pool Table data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SynapseWorkspaceSqlPoolTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Synapse Workspace SQL Pool Table data set mapping"] pub properties: SynapseWorkspaceSqlPoolTableDataSetMappingProperties, } impl SynapseWorkspaceSqlPoolTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SynapseWorkspaceSqlPoolTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SynapseWorkspaceSqlPoolTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Synapse Workspace SQL Pool Table data set mapping"] @@ -5023,19 +4876,6 @@ impl SynchronizationDetailsList { Self { next_link: None, value } } } -#[doc = "A Synchronization Setting data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SynchronizationSetting { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl SynchronizationSetting { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of synchronization setting."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -5226,19 +5066,6 @@ pub mod system_data { } } } -#[doc = "A Trigger data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Trigger { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl Trigger { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of synchronization on trigger."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] diff --git a/services/mgmt/datashare/src/package_2021_08_01/models.rs b/services/mgmt/datashare/src/package_2021_08_01/models.rs index 0668e22516..dc18288240 100644 --- a/services/mgmt/datashare/src/package_2021_08_01/models.rs +++ b/services/mgmt/datashare/src/package_2021_08_01/models.rs @@ -6,14 +6,12 @@ use std::str::FromStr; #[doc = "An ADLS Gen 1 file data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen1FileDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen1 file data set."] pub properties: AdlsGen1FileProperties, } impl AdlsGen1FileDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen1FileProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen1FileProperties) -> Self { + Self { properties } } } #[doc = "Properties of the ADLS Gen1 file data set."] @@ -53,14 +51,12 @@ impl AdlsGen1FileProperties { #[doc = "An ADLS Gen 1 folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen1FolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen1 folder data set."] pub properties: AdlsGen1FolderProperties, } impl AdlsGen1FolderDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen1FolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen1FolderProperties) -> Self { + Self { properties } } } #[doc = "Properties of the ADLS Gen1 folder data set."] @@ -96,30 +92,23 @@ impl AdlsGen1FolderProperties { #[doc = "An ADLS Gen 2 file data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 file data set."] pub properties: AdlsGen2FileProperties, } impl AdlsGen2FileDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FileProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FileProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 file data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 file data set mapping property bag."] pub properties: AdlsGen2FileDataSetMappingProperties, } impl AdlsGen2FileDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FileDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FileDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 file data set mapping property bag."] @@ -338,30 +327,23 @@ impl AdlsGen2FileProperties { #[doc = "An ADLS Gen 2 file system data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileSystemDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 file system data set."] pub properties: AdlsGen2FileSystemProperties, } impl AdlsGen2FileSystemDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FileSystemProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FileSystemProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 file system data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FileSystemDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 file system data set mapping property bag."] pub properties: AdlsGen2FileSystemDataSetMappingProperties, } impl AdlsGen2FileSystemDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FileSystemDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FileSystemDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 file system data set mapping property bag."] @@ -524,30 +506,23 @@ impl AdlsGen2FileSystemProperties { #[doc = "An ADLS Gen 2 folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the ADLS Gen2 folder data set."] pub properties: AdlsGen2FolderProperties, } impl AdlsGen2FolderDataSet { - pub fn new(data_set: DataSet, properties: AdlsGen2FolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: AdlsGen2FolderProperties) -> Self { + Self { properties } } } #[doc = "An ADLS Gen2 folder data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AdlsGen2FolderDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "ADLS Gen 2 folder data set mapping property bag."] pub properties: AdlsGen2FolderDataSetMappingProperties, } impl AdlsGen2FolderDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: AdlsGen2FolderDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: AdlsGen2FolderDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "ADLS Gen 2 folder data set mapping property bag."] @@ -844,30 +819,23 @@ impl AccountUpdateParameters { #[doc = "An Azure storage blob container data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobContainerDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the BLOB container data set."] pub properties: BlobContainerProperties, } impl BlobContainerDataSet { - pub fn new(data_set: DataSet, properties: BlobContainerProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobContainerProperties) -> Self { + Self { properties } } } #[doc = "A Blob container data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobContainerDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob container data set mapping property bag."] pub properties: BlobContainerMappingProperties, } impl BlobContainerDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobContainerMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobContainerMappingProperties) -> Self { + Self { properties } } } #[doc = "Azure storage Blob container data set mapping property bag."] @@ -1030,59 +998,45 @@ impl BlobContainerProperties { #[doc = "An Azure storage blob data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the blob data set."] pub properties: BlobProperties, } impl BlobDataSet { - pub fn new(data_set: DataSet, properties: BlobProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobProperties) -> Self { + Self { properties } } } #[doc = "A Blob data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob data set mapping property bag."] pub properties: BlobMappingProperties, } impl BlobDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobMappingProperties) -> Self { + Self { properties } } } #[doc = "An Azure storage blob folder data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobFolderDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the blob folder data set."] pub properties: BlobFolderProperties, } impl BlobFolderDataSet { - pub fn new(data_set: DataSet, properties: BlobFolderProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: BlobFolderProperties) -> Self { + Self { properties } } } #[doc = "A Blob folder data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BlobFolderDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Azure storage Blob folder data set mapping property bag."] pub properties: BlobFolderMappingProperties, } impl BlobFolderDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: BlobFolderMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: BlobFolderMappingProperties) -> Self { + Self { properties } } } #[doc = "Azure storage Blob folder data set mapping property bag."] @@ -1744,19 +1698,6 @@ pub mod consumer_source_data_set_properties { } } } -#[doc = "A DataSet data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataSet { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl DataSet { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of data set."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -1798,19 +1739,6 @@ impl DataSetList { Self { next_link: None, value } } } -#[doc = "A data set mapping data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DataSetMapping { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl DataSetMapping { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of data set mapping."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -2171,30 +2099,23 @@ pub mod invitation_properties { #[doc = "A kusto cluster data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoClusterDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the kusto cluster data set."] pub properties: KustoClusterDataSetProperties, } impl KustoClusterDataSet { - pub fn new(data_set: DataSet, properties: KustoClusterDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: KustoClusterDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Kusto cluster data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoClusterDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Kusto cluster data set mapping"] pub properties: KustoClusterDataSetMappingProperties, } impl KustoClusterDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: KustoClusterDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: KustoClusterDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Kusto cluster data set mapping"] @@ -2385,30 +2306,23 @@ pub mod kusto_cluster_data_set_properties { #[doc = "A kusto database data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoDatabaseDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the kusto database data set."] pub properties: KustoDatabaseDataSetProperties, } impl KustoDatabaseDataSet { - pub fn new(data_set: DataSet, properties: KustoDatabaseDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: KustoDatabaseDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Kusto database data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoDatabaseDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Kusto database data set mapping"] pub properties: KustoDatabaseDataSetMappingProperties, } impl KustoDatabaseDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: KustoDatabaseDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: KustoDatabaseDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Kusto database data set mapping"] @@ -2599,30 +2513,23 @@ pub mod kusto_database_data_set_properties { #[doc = "A kusto table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the kusto table data set."] pub properties: KustoTableDataSetProperties, } impl KustoTableDataSet { - pub fn new(data_set: DataSet, properties: KustoTableDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: KustoTableDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Kusto database data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct KustoTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Kusto database data set mapping"] pub properties: KustoTableDataSetMappingProperties, } impl KustoTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: KustoTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: KustoTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Kusto database data set mapping"] @@ -3259,34 +3166,24 @@ pub mod scheduled_source_share_synchronization_setting_properties { #[doc = "A type of synchronization setting based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSourceSynchronizationSetting { - #[serde(flatten)] - pub source_share_synchronization_setting: SourceShareSynchronizationSetting, #[doc = "A Scheduled source synchronization setting data transfer object."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ScheduledSourceSynchronizationSetting { - pub fn new(source_share_synchronization_setting: SourceShareSynchronizationSetting) -> Self { - Self { - source_share_synchronization_setting, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A type of synchronization setting based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledSynchronizationSetting { - #[serde(flatten)] - pub synchronization_setting: SynchronizationSetting, #[doc = "A Scheduled synchronization setting data transfer object."] pub properties: ScheduledSynchronizationSettingProperties, } impl ScheduledSynchronizationSetting { - pub fn new(synchronization_setting: SynchronizationSetting, properties: ScheduledSynchronizationSettingProperties) -> Self { - Self { - synchronization_setting, - properties, - } + pub fn new(properties: ScheduledSynchronizationSettingProperties) -> Self { + Self { properties } } } #[doc = "A Scheduled synchronization setting data transfer object."] @@ -3408,14 +3305,12 @@ pub mod scheduled_synchronization_setting_properties { #[doc = "A type of trigger based on schedule"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScheduledTrigger { - #[serde(flatten)] - pub trigger: Trigger, #[doc = "A Scheduled trigger data transfer object."] pub properties: ScheduledTriggerProperties, } impl ScheduledTrigger { - pub fn new(trigger: Trigger, properties: ScheduledTriggerProperties) -> Self { - Self { trigger, properties } + pub fn new(properties: ScheduledTriggerProperties) -> Self { + Self { properties } } } #[doc = "A Scheduled trigger data transfer object."] @@ -4191,14 +4086,6 @@ impl ShareSynchronizationList { Self { next_link: None, value } } } -#[doc = "A view of synchronization setting added by the provider"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SourceShareSynchronizationSetting {} -impl SourceShareSynchronizationSetting { - pub fn new() -> Self { - Self {} - } -} #[doc = "Kind of synchronization setting on share."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -4228,34 +4115,24 @@ impl SourceShareSynchronizationSettingList { #[doc = "A SQL DB table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDbTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the SQL DB table data set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SqlDbTableDataSet { - pub fn new(data_set: DataSet) -> Self { - Self { - data_set, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A SQL DB Table data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDbTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the SQL DB table data set mapping."] pub properties: SqlDbTableDataSetMappingProperties, } impl SqlDbTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SqlDbTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SqlDbTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the SQL DB table data set mapping."] @@ -4418,34 +4295,24 @@ impl SqlDbTableProperties { #[doc = "A SQL DW table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDwTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the SQL DW table data set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SqlDwTableDataSet { - pub fn new(data_set: DataSet) -> Self { - Self { - data_set, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A SQL DW Table data set mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlDwTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the SQL DW table data set mapping."] pub properties: SqlDwTableDataSetMappingProperties, } impl SqlDwTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SqlDwTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SqlDwTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the SQL DW table data set mapping."] @@ -4608,30 +4475,23 @@ impl SqlDwTableProperties { #[doc = "A Synapse Workspace Sql Pool Table data set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SynapseWorkspaceSqlPoolTableDataSet { - #[serde(flatten)] - pub data_set: DataSet, #[doc = "Properties of the Synapse Workspace SQL Pool Table data set."] pub properties: SynapseWorkspaceSqlPoolTableDataSetProperties, } impl SynapseWorkspaceSqlPoolTableDataSet { - pub fn new(data_set: DataSet, properties: SynapseWorkspaceSqlPoolTableDataSetProperties) -> Self { - Self { data_set, properties } + pub fn new(properties: SynapseWorkspaceSqlPoolTableDataSetProperties) -> Self { + Self { properties } } } #[doc = "A Synapse Workspace Sql Pool Table data set mapping"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SynapseWorkspaceSqlPoolTableDataSetMapping { - #[serde(flatten)] - pub data_set_mapping: DataSetMapping, #[doc = "Properties of the Synapse Workspace SQL Pool Table data set mapping"] pub properties: SynapseWorkspaceSqlPoolTableDataSetMappingProperties, } impl SynapseWorkspaceSqlPoolTableDataSetMapping { - pub fn new(data_set_mapping: DataSetMapping, properties: SynapseWorkspaceSqlPoolTableDataSetMappingProperties) -> Self { - Self { - data_set_mapping, - properties, - } + pub fn new(properties: SynapseWorkspaceSqlPoolTableDataSetMappingProperties) -> Self { + Self { properties } } } #[doc = "Properties of the Synapse Workspace SQL Pool Table data set mapping"] @@ -4903,19 +4763,6 @@ impl SynchronizationDetailsList { Self { next_link: None, value } } } -#[doc = "A Synchronization Setting data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SynchronizationSetting { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl SynchronizationSetting { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of synchronization setting."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -5163,19 +5010,6 @@ impl TableLevelSharingProperties { Self::default() } } -#[doc = "A Trigger data transfer object."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Trigger { - #[serde(flatten)] - pub proxy_dto: ProxyDto, -} -impl Trigger { - pub fn new() -> Self { - Self { - proxy_dto: ProxyDto::default(), - } - } -} #[doc = "Kind of synchronization on trigger."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] diff --git a/services/mgmt/deploymentmanager/src/package_2019_11_01_preview/models.rs b/services/mgmt/deploymentmanager/src/package_2019_11_01_preview/models.rs index 6d894e9898..1249dd1494 100644 --- a/services/mgmt/deploymentmanager/src/package_2019_11_01_preview/models.rs +++ b/services/mgmt/deploymentmanager/src/package_2019_11_01_preview/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "ApiKey authentication gives a name and a value that can be included in either the request header or query parameters."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ApiKeyAuthentication { - #[serde(flatten)] - pub rest_request_authentication: RestRequestAuthentication, #[doc = "The key name of the authentication key/value pair."] pub name: String, #[doc = "The location of the authentication key/value pair in the request."] @@ -17,18 +15,8 @@ pub struct ApiKeyAuthentication { pub value: String, } impl ApiKeyAuthentication { - pub fn new( - rest_request_authentication: RestRequestAuthentication, - name: String, - in_: api_key_authentication::In, - value: String, - ) -> Self { - Self { - rest_request_authentication, - name, - in_, - value, - } + pub fn new(name: String, in_: api_key_authentication::In, value: String) -> Self { + Self { name, in_, value } } } pub mod api_key_authentication { @@ -79,14 +67,6 @@ impl ArtifactSourceProperties { } } } -#[doc = "Defines the authentication method and properties to access the artifacts."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Authentication {} -impl Authentication { - pub fn new() -> Self { - Self {} - } -} #[doc = "The authentication type"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -162,17 +142,12 @@ pub enum HealthCheckStepAttributesUnion { #[doc = "Defines the properties of a health check step."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HealthCheckStepProperties { - #[serde(flatten)] - pub step_properties: StepProperties, #[doc = "The attributes for the health check step."] pub attributes: HealthCheckStepAttributesUnion, } impl HealthCheckStepProperties { - pub fn new(step_properties: StepProperties, attributes: HealthCheckStepAttributesUnion) -> Self { - Self { - step_properties, - attributes, - } + pub fn new(attributes: HealthCheckStepAttributesUnion) -> Self { + Self { attributes } } } #[doc = "Identity for the resource."] @@ -395,14 +370,6 @@ pub mod rest_request { Post, } } -#[doc = "The authentication information required in the REST health check request to the health provider."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RestRequestAuthentication {} -impl RestRequestAuthentication { - pub fn new() -> Self { - Self {} - } -} #[doc = "The authentication type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -484,15 +451,10 @@ impl Rollout { } #[doc = "RolloutIdentity uses the user-assigned managed identity authentication context specified in the Identity property during rollout creation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RolloutIdentityAuthentication { - #[serde(flatten)] - pub rest_request_authentication: RestRequestAuthentication, -} +pub struct RolloutIdentityAuthentication {} impl RolloutIdentityAuthentication { - pub fn new(rest_request_authentication: RestRequestAuthentication) -> Self { - Self { - rest_request_authentication, - } + pub fn new() -> Self { + Self {} } } pub type RolloutListResult = Vec; @@ -635,18 +597,13 @@ impl RolloutStep { #[doc = "Defines the properties to access the artifacts using an Azure Storage SAS URI."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SasAuthentication { - #[serde(flatten)] - pub authentication: Authentication, #[doc = "The properties that define SAS authentication."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl SasAuthentication { - pub fn new(authentication: Authentication) -> Self { - Self { - authentication, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that define SAS authentication."] @@ -916,14 +873,6 @@ impl StepOperationInfo { Self::default() } } -#[doc = "The properties of a step resource."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StepProperties {} -impl StepProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of step."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "stepType")] @@ -982,16 +931,11 @@ impl WaitStepAttributes { #[doc = "Defines the properties of a Wait step."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WaitStepProperties { - #[serde(flatten)] - pub step_properties: StepProperties, #[doc = "The parameters for the wait step."] pub attributes: WaitStepAttributes, } impl WaitStepProperties { - pub fn new(step_properties: StepProperties, attributes: WaitStepAttributes) -> Self { - Self { - step_properties, - attributes, - } + pub fn new(attributes: WaitStepAttributes) -> Self { + Self { attributes } } } diff --git a/services/mgmt/desktopvirtualization/src/package_preview_2023_07/models.rs b/services/mgmt/desktopvirtualization/src/package_preview_2023_07/models.rs index 4afd5b50e6..aacdf48a17 100644 --- a/services/mgmt/desktopvirtualization/src/package_preview_2023_07/models.rs +++ b/services/mgmt/desktopvirtualization/src/package_preview_2023_07/models.rs @@ -2485,8 +2485,6 @@ impl ScalingPlanPatchProperties { #[doc = "Represents a ScalingPlanPersonalSchedule definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScalingPlanPersonalSchedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -2496,7 +2494,6 @@ pub struct ScalingPlanPersonalSchedule { impl ScalingPlanPersonalSchedule { pub fn new(properties: ScalingPlanPersonalScheduleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } diff --git a/services/mgmt/devcenter/src/package_2023_04/models.rs b/services/mgmt/devcenter/src/package_2023_04/models.rs index 2b73331575..fc7afd1a26 100644 --- a/services/mgmt/devcenter/src/package_2023_04/models.rs +++ b/services/mgmt/devcenter/src/package_2023_04/models.rs @@ -1169,8 +1169,6 @@ impl Serialize for HibernateSupport { #[doc = "Represents an image."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Image { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an image."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1311,8 +1309,6 @@ impl Serialize for ImageValidationStatus { #[doc = "Represents an image version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImageVersion { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an image version."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/devcenter/src/package_preview_2022_10/models.rs b/services/mgmt/devcenter/src/package_preview_2022_10/models.rs index e53f606413..4497404b2e 100644 --- a/services/mgmt/devcenter/src/package_preview_2022_10/models.rs +++ b/services/mgmt/devcenter/src/package_preview_2022_10/models.rs @@ -947,8 +947,6 @@ impl HealthCheckStatusDetailsProperties { #[doc = "Represents an image."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Image { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an image."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1095,8 +1093,6 @@ impl Serialize for ImageValidationStatus { #[doc = "Represents an image version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImageVersion { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an image version."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/devcenter/src/package_preview_2022_11/models.rs b/services/mgmt/devcenter/src/package_preview_2022_11/models.rs index 706c650a8b..29191bd24e 100644 --- a/services/mgmt/devcenter/src/package_preview_2022_11/models.rs +++ b/services/mgmt/devcenter/src/package_preview_2022_11/models.rs @@ -1076,8 +1076,6 @@ impl Serialize for HibernateSupport { #[doc = "Represents an image."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Image { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an image."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1224,8 +1222,6 @@ impl Serialize for ImageValidationStatus { #[doc = "Represents an image version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImageVersion { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an image version."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/devcenter/src/package_preview_2023_01/models.rs b/services/mgmt/devcenter/src/package_preview_2023_01/models.rs index 52159c7541..cf4158c5ca 100644 --- a/services/mgmt/devcenter/src/package_preview_2023_01/models.rs +++ b/services/mgmt/devcenter/src/package_preview_2023_01/models.rs @@ -1169,8 +1169,6 @@ impl Serialize for HibernateSupport { #[doc = "Represents an image."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Image { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an image."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1311,8 +1309,6 @@ impl Serialize for ImageValidationStatus { #[doc = "Represents an image version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImageVersion { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an image version."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/devcenter/src/package_preview_2023_08/models.rs b/services/mgmt/devcenter/src/package_preview_2023_08/models.rs index 8c1aa7704a..fa2e7280d0 100644 --- a/services/mgmt/devcenter/src/package_preview_2023_08/models.rs +++ b/services/mgmt/devcenter/src/package_preview_2023_08/models.rs @@ -545,8 +545,6 @@ impl CloudErrorBody { #[doc = "Represents a Task to be used in customizing a Dev Box."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CustomizationTask { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a Task."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -985,8 +983,6 @@ impl EndpointDetail { #[doc = "Represents an environment definition catalog item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EnvironmentDefinition { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an environment definition."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1564,8 +1560,6 @@ impl Serialize for HibernateSupport { #[doc = "Represents an image."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Image { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an image."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1706,8 +1700,6 @@ impl Serialize for ImageValidationStatus { #[doc = "Represents an image version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImageVersion { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an image version."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/developerhub/src/package_preview_2022_04/models.rs b/services/mgmt/developerhub/src/package_preview_2022_04/models.rs index 4b45ff593e..b663cb356a 100644 --- a/services/mgmt/developerhub/src/package_preview_2022_04/models.rs +++ b/services/mgmt/developerhub/src/package_preview_2022_04/models.rs @@ -226,8 +226,6 @@ impl GitHubOAuthProperties { #[doc = "Singleton response of GitHubOAuth containing "] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GitHubOAuthResponse { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The response from List GitHubOAuth operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/developerhub/src/package_preview_2022_10/models.rs b/services/mgmt/developerhub/src/package_preview_2022_10/models.rs index 588057d0cf..1297ec7e04 100644 --- a/services/mgmt/developerhub/src/package_preview_2022_10/models.rs +++ b/services/mgmt/developerhub/src/package_preview_2022_10/models.rs @@ -432,8 +432,6 @@ impl GitHubOAuthProperties { #[doc = "Singleton response of GitHubOAuth containing "] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GitHubOAuthResponse { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The response from List GitHubOAuth operation."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs b/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs index 70ff5e9f10..59a4fc1a0a 100644 --- a/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs +++ b/services/mgmt/deviceupdate/src/package_2020_03_01_preview/models.rs @@ -443,17 +443,12 @@ impl GroupConnectivityInformation { #[doc = "The group information for creating a private endpoint on an Account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GroupInformation { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties for a group information object"] pub properties: GroupInformationProperties, } impl GroupInformation { pub fn new(properties: GroupInformationProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The properties for a group information object"] @@ -1000,8 +995,6 @@ impl Serialize for PrivateEndpointConnectionProvisioningState { #[doc = "Private endpoint connection proxy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnectionProxy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(flatten)] pub private_endpoint_connection_proxy_properties: PrivateEndpointConnectionProxyProperties, #[doc = "Private endpoint connection proxy object property bag."] diff --git a/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs b/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs index b49022e8a1..98ef14bfd8 100644 --- a/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs +++ b/services/mgmt/deviceupdate/src/package_2022_04_01_preview/models.rs @@ -495,17 +495,12 @@ impl GroupConnectivityInformation { #[doc = "The group information for creating a private endpoint on an Account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GroupInformation { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties for a group information object"] pub properties: GroupInformationProperties, } impl GroupInformation { pub fn new(properties: GroupInformationProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The properties for a group information object"] @@ -1100,8 +1095,6 @@ impl Serialize for PrivateEndpointConnectionProvisioningState { #[doc = "Private endpoint connection proxy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnectionProxy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(flatten)] pub private_endpoint_connection_proxy_properties: PrivateEndpointConnectionProxyProperties, #[doc = "Private endpoint connection proxy object property bag."] diff --git a/services/mgmt/deviceupdate/src/package_2022_10_01/models.rs b/services/mgmt/deviceupdate/src/package_2022_10_01/models.rs index b49022e8a1..98ef14bfd8 100644 --- a/services/mgmt/deviceupdate/src/package_2022_10_01/models.rs +++ b/services/mgmt/deviceupdate/src/package_2022_10_01/models.rs @@ -495,17 +495,12 @@ impl GroupConnectivityInformation { #[doc = "The group information for creating a private endpoint on an Account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GroupInformation { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties for a group information object"] pub properties: GroupInformationProperties, } impl GroupInformation { pub fn new(properties: GroupInformationProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The properties for a group information object"] @@ -1100,8 +1095,6 @@ impl Serialize for PrivateEndpointConnectionProvisioningState { #[doc = "Private endpoint connection proxy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnectionProxy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(flatten)] pub private_endpoint_connection_proxy_properties: PrivateEndpointConnectionProxyProperties, #[doc = "Private endpoint connection proxy object property bag."] diff --git a/services/mgmt/deviceupdate/src/package_2022_12_01_preview/models.rs b/services/mgmt/deviceupdate/src/package_2022_12_01_preview/models.rs index cb66d63fd9..b98fa447f3 100644 --- a/services/mgmt/deviceupdate/src/package_2022_12_01_preview/models.rs +++ b/services/mgmt/deviceupdate/src/package_2022_12_01_preview/models.rs @@ -513,17 +513,12 @@ impl GroupConnectivityInformation { #[doc = "The group information for creating a private endpoint on an Account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GroupInformation { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties for a group information object"] pub properties: GroupInformationProperties, } impl GroupInformation { pub fn new(properties: GroupInformationProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The properties for a group information object"] @@ -1118,8 +1113,6 @@ impl Serialize for PrivateEndpointConnectionProvisioningState { #[doc = "Private endpoint connection proxy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnectionProxy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(flatten)] pub private_endpoint_connection_proxy_properties: PrivateEndpointConnectionProxyProperties, #[doc = "Private endpoint connection proxy object property bag."] diff --git a/services/mgmt/deviceupdate/src/package_2023_07_01/models.rs b/services/mgmt/deviceupdate/src/package_2023_07_01/models.rs index cb66d63fd9..b98fa447f3 100644 --- a/services/mgmt/deviceupdate/src/package_2023_07_01/models.rs +++ b/services/mgmt/deviceupdate/src/package_2023_07_01/models.rs @@ -513,17 +513,12 @@ impl GroupConnectivityInformation { #[doc = "The group information for creating a private endpoint on an Account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GroupInformation { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties for a group information object"] pub properties: GroupInformationProperties, } impl GroupInformation { pub fn new(properties: GroupInformationProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The properties for a group information object"] @@ -1118,8 +1113,6 @@ impl Serialize for PrivateEndpointConnectionProvisioningState { #[doc = "Private endpoint connection proxy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnectionProxy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(flatten)] pub private_endpoint_connection_proxy_properties: PrivateEndpointConnectionProxyProperties, #[doc = "Private endpoint connection proxy object property bag."] diff --git a/services/mgmt/devspaces/src/package_2019_04_01/models.rs b/services/mgmt/devspaces/src/package_2019_04_01/models.rs index 993646e3cf..6b808b330f 100644 --- a/services/mgmt/devspaces/src/package_2019_04_01/models.rs +++ b/services/mgmt/devspaces/src/package_2019_04_01/models.rs @@ -231,8 +231,6 @@ impl ErrorDetails { #[doc = "Contains information used to connect to a Kubernetes cluster"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct KubernetesConnectionDetails { - #[serde(flatten)] - pub orchestrator_specific_connection_details: OrchestratorSpecificConnectionDetails, #[doc = "Gets the kubeconfig for the cluster."] #[serde(rename = "kubeConfig", default, skip_serializing_if = "Option::is_none")] pub kube_config: Option, @@ -256,14 +254,6 @@ impl ListConnectionDetailsParameters { } } } -#[doc = "Base class for types that supply values used to connect to container orchestrators"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] -pub struct OrchestratorSpecificConnectionDetails {} -impl OrchestratorSpecificConnectionDetails { - pub fn new() -> Self { - Self::default() - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] diff --git a/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs b/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs index 04d5d3d889..f49305797d 100644 --- a/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs +++ b/services/mgmt/dnsresolver/src/package_2020_04_preview/models.rs @@ -262,8 +262,6 @@ pub mod dns_resolver_properties { #[doc = "Describes a forwarding rule within a DNS forwarding ruleset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ForwardingRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "ETag of the forwarding rule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, @@ -872,8 +870,6 @@ impl VirtualNetworkDnsForwardingRulesetListResult { #[doc = "Describes a virtual network link."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VirtualNetworkLink { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "ETag of the virtual network link."] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, diff --git a/services/mgmt/dnsresolver/src/package_2022_07/models.rs b/services/mgmt/dnsresolver/src/package_2022_07/models.rs index a44fcd7b58..8fd2c95225 100644 --- a/services/mgmt/dnsresolver/src/package_2022_07/models.rs +++ b/services/mgmt/dnsresolver/src/package_2022_07/models.rs @@ -267,8 +267,6 @@ pub mod dns_resolver_properties { #[doc = "Describes a forwarding rule within a DNS forwarding ruleset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ForwardingRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "ETag of the forwarding rule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, @@ -281,7 +279,6 @@ pub struct ForwardingRule { impl ForwardingRule { pub fn new(properties: ForwardingRuleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), etag: None, properties, system_data: None, @@ -883,8 +880,6 @@ impl VirtualNetworkDnsForwardingRulesetListResult { #[doc = "Describes a virtual network link."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualNetworkLink { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "ETag of the virtual network link."] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, @@ -897,7 +892,6 @@ pub struct VirtualNetworkLink { impl VirtualNetworkLink { pub fn new(properties: VirtualNetworkLinkProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), etag: None, properties, system_data: None, diff --git a/services/mgmt/dynatrace/src/package_2021_09_01/models.rs b/services/mgmt/dynatrace/src/package_2021_09_01/models.rs index 43ef6fa66f..72734e8345 100644 --- a/services/mgmt/dynatrace/src/package_2021_09_01/models.rs +++ b/services/mgmt/dynatrace/src/package_2021_09_01/models.rs @@ -246,8 +246,6 @@ impl DynatraceSingleSignOnProperties { #[doc = "Single sign-on configurations for a given monitor resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DynatraceSingleSignOnResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The details of a Dynatrace single sign-on."] pub properties: DynatraceSingleSignOnProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -257,7 +255,6 @@ pub struct DynatraceSingleSignOnResource { impl DynatraceSingleSignOnResource { pub fn new(properties: DynatraceSingleSignOnProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1518,8 +1515,6 @@ impl Serialize for TagAction { #[doc = "Tag rules for a monitor resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TagRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for the Tag rules resource of a Monitor account."] pub properties: MonitoringTagRulesProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1529,7 +1524,6 @@ pub struct TagRule { impl TagRule { pub fn new(properties: MonitoringTagRulesProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs b/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs index b198964195..04baa89782 100644 --- a/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/dynatrace/src/package_2021_09_01_preview/models.rs @@ -246,8 +246,6 @@ impl DynatraceSingleSignOnProperties { #[doc = "Single sign-on configurations for a given monitor resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DynatraceSingleSignOnResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The details of a Dynatrace single sign-on."] pub properties: DynatraceSingleSignOnProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -257,7 +255,6 @@ pub struct DynatraceSingleSignOnResource { impl DynatraceSingleSignOnResource { pub fn new(properties: DynatraceSingleSignOnProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1529,8 +1526,6 @@ impl Serialize for TagAction { #[doc = "Tag rules for a monitor resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TagRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for the Tag rules resource of a Monitor account."] pub properties: MonitoringTagRulesProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1540,7 +1535,6 @@ pub struct TagRule { impl TagRule { pub fn new(properties: MonitoringTagRulesProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/dynatrace/src/package_2023_04_27/models.rs b/services/mgmt/dynatrace/src/package_2023_04_27/models.rs index d7cf1a3439..f6ab6a277a 100644 --- a/services/mgmt/dynatrace/src/package_2023_04_27/models.rs +++ b/services/mgmt/dynatrace/src/package_2023_04_27/models.rs @@ -228,8 +228,6 @@ impl DynatraceSingleSignOnProperties { #[doc = "Single sign-on configurations for a given monitor resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DynatraceSingleSignOnResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The details of a Dynatrace single sign-on."] pub properties: DynatraceSingleSignOnProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -239,7 +237,6 @@ pub struct DynatraceSingleSignOnResource { impl DynatraceSingleSignOnResource { pub fn new(properties: DynatraceSingleSignOnProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1537,8 +1534,6 @@ impl Serialize for TagAction { #[doc = "Tag rules for a monitor resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TagRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for the Tag rules resource of a Monitor account."] pub properties: MonitoringTagRulesProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1548,7 +1543,6 @@ pub struct TagRule { impl TagRule { pub fn new(properties: MonitoringTagRulesProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs b/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs index bae2c1008b..22ac6b47e6 100644 --- a/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs +++ b/services/mgmt/edgeorder/src/package_2020_12_preview/models.rs @@ -1769,8 +1769,6 @@ impl OrderProperties { #[doc = "Specifies the properties or parameters for an order. Order is a grouping of one or more order items."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OrderResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Represents order details."] pub properties: OrderProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1780,7 +1778,6 @@ pub struct OrderResource { impl OrderResource { pub fn new(properties: OrderProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/edgeorder/src/package_2021_12/models.rs b/services/mgmt/edgeorder/src/package_2021_12/models.rs index 94a2862b99..bfed535c9c 100644 --- a/services/mgmt/edgeorder/src/package_2021_12/models.rs +++ b/services/mgmt/edgeorder/src/package_2021_12/models.rs @@ -1815,8 +1815,6 @@ impl OrderProperties { #[doc = "Specifies the properties or parameters for an order. Order is a grouping of one or more order items."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OrderResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Represents order details."] pub properties: OrderProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1826,7 +1824,6 @@ pub struct OrderResource { impl OrderResource { pub fn new(properties: OrderProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/edgeorder/src/package_2022_05_preview/models.rs b/services/mgmt/edgeorder/src/package_2022_05_preview/models.rs index 69e546e77a..a16c98c051 100644 --- a/services/mgmt/edgeorder/src/package_2022_05_preview/models.rs +++ b/services/mgmt/edgeorder/src/package_2022_05_preview/models.rs @@ -2287,8 +2287,6 @@ pub mod order_properties { #[doc = "Specifies the properties or parameters for an order. Order is a grouping of one or more order items."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OrderResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Represents order details."] pub properties: OrderProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2298,7 +2296,6 @@ pub struct OrderResource { impl OrderResource { pub fn new(properties: OrderProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/elasticsan/src/package_2023_01/models.rs b/services/mgmt/elasticsan/src/package_2023_01/models.rs index bda6c40d25..fdd2121eeb 100644 --- a/services/mgmt/elasticsan/src/package_2023_01/models.rs +++ b/services/mgmt/elasticsan/src/package_2023_01/models.rs @@ -1192,17 +1192,12 @@ impl Serialize for SkuTier { #[doc = "Response for Volume Snapshot request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Snapshot { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for Snapshot."] pub properties: SnapshotProperties, } impl Snapshot { pub fn new(properties: SnapshotProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Data used when creating a volume snapshot."] @@ -1461,24 +1456,17 @@ pub mod virtual_network_rule { #[doc = "Response for Volume request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Volume { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Volume response properties."] pub properties: VolumeProperties, } impl Volume { pub fn new(properties: VolumeProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Response for Volume Group request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VolumeGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Identity for the resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub identity: Option, diff --git a/services/mgmt/elasticsan/src/package_preview_2022_12/models.rs b/services/mgmt/elasticsan/src/package_preview_2022_12/models.rs index ab9359c93a..cf4f28519f 100644 --- a/services/mgmt/elasticsan/src/package_preview_2022_12/models.rs +++ b/services/mgmt/elasticsan/src/package_preview_2022_12/models.rs @@ -1091,24 +1091,17 @@ pub mod virtual_network_rule { #[doc = "Response for Volume request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Volume { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Volume response properties."] pub properties: VolumeProperties, } impl Volume { pub fn new(properties: VolumeProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Response for Volume Group request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VolumeGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "VolumeGroup response properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/engagementfabric/src/package_2018_09_preview/models.rs b/services/mgmt/engagementfabric/src/package_2018_09_preview/models.rs index d7d7fc1cb3..5d343cd95e 100644 --- a/services/mgmt/engagementfabric/src/package_2018_09_preview/models.rs +++ b/services/mgmt/engagementfabric/src/package_2018_09_preview/models.rs @@ -51,8 +51,6 @@ impl AccountPatch { #[doc = "The EngagementFabric channel"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Channel { - #[serde(flatten)] - pub proxy_only_resource: ProxyOnlyResource, #[doc = "The EngagementFabric channel properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs b/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs index 240248782e..f0f5b947b4 100644 --- a/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs +++ b/services/mgmt/eventgrid/src/package_2021_10_preview/models.rs @@ -42,18 +42,13 @@ pub enum AdvancedFilterUnion { #[doc = "Azure Active Directory Partner Client Authentication"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureAdPartnerClientAuthentication { - #[serde(flatten)] - pub partner_client_authentication: PartnerClientAuthentication, #[doc = "Properties of an Azure Active Directory Partner Client Authentication."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AzureAdPartnerClientAuthentication { - pub fn new(partner_client_authentication: PartnerClientAuthentication) -> Self { - Self { - partner_client_authentication, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Properties of an Azure Active Directory Partner Client Authentication."] @@ -78,18 +73,13 @@ impl AzureAdPartnerClientAuthenticationProperties { #[doc = "Information about the azure function destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFunctionEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Azure Function destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AzureFunctionEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Azure Function destination of an event subscription."] @@ -421,14 +411,6 @@ pub mod connection_state { } } } -#[doc = "Information about the dead letter destination for an event subscription. To configure a deadletter destination, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class. Currently, StorageBlobDeadLetterDestination is the only class that derives from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeadLetterDestination {} -impl DeadLetterDestination { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the endpoint for the dead letter destination"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "endpointType")] @@ -1290,18 +1272,13 @@ impl EventChannelsListResult { #[doc = "Information about the event hub destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct EventHubEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a event hub destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl EventHubEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a event hub destination."] @@ -1341,14 +1318,6 @@ impl EventSubscription { Self::default() } } -#[doc = "Information about the destination for an event subscription."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventSubscriptionDestination {} -impl EventSubscriptionDestination { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the endpoint for the event subscription destination."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "endpointType")] @@ -1875,18 +1844,13 @@ impl ExtensionTopicProperties { #[doc = "Information about the HybridConnection destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridConnectionEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a hybrid connection destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl HybridConnectionEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a hybrid connection destination."] @@ -2045,14 +2009,6 @@ impl InlineEventProperties { Self::default() } } -#[doc = "By default, Event Grid expects events to be in the Event Grid event schema. Specifying an input schema mapping enables publishing to Event Grid using a custom input schema. Currently, the only supported type of InputSchemaMapping is 'JsonInputSchemaMapping'."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct InputSchemaMapping {} -impl InputSchemaMapping { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the custom mapping"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "inputSchemaMappingType")] @@ -2111,18 +2067,13 @@ impl JsonFieldWithDefault { #[doc = "This enables publishing to Event Grid using a custom input schema. This can be used to map properties from a custom input JSON schema to the Event Grid event schema."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JsonInputSchemaMapping { - #[serde(flatten)] - pub input_schema_mapping: InputSchemaMapping, #[doc = "This can be used to map properties of a source schema (or default values, for certain supported properties) to properties of the EventGridEvent schema."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl JsonInputSchemaMapping { - pub fn new(input_schema_mapping: InputSchemaMapping) -> Self { - Self { - input_schema_mapping, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "This can be used to map properties of a source schema (or default values, for certain supported properties) to properties of the EventGridEvent schema."] @@ -2409,14 +2360,6 @@ impl PartnerAuthorization { Self::default() } } -#[doc = "Partner client authentication"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PartnerClientAuthentication {} -impl PartnerClientAuthentication { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of client authentication"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "clientAuthenticationType")] @@ -2796,17 +2739,12 @@ impl PartnerDetails { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PartnerEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl PartnerEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -3583,14 +3521,6 @@ impl PartnerTopicsListResult { Self::default() } } -#[doc = "Properties of the corresponding partner destination of a Channel."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PartnerUpdateDestinationInfo {} -impl PartnerUpdateDestinationInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the endpoint for the partner destination"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "endpointType")] @@ -3915,18 +3845,13 @@ impl RetryPolicy { #[doc = "Information about the service bus destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceBusQueueEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Service Bus destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ServiceBusQueueEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Service Bus destination of an event subscription."] @@ -3952,18 +3877,13 @@ impl ServiceBusQueueEventSubscriptionDestinationProperties { #[doc = "Information about the service bus topic destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceBusTopicEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Service Bus Topic destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ServiceBusTopicEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Service Bus Topic destination of an event subscription."] @@ -4021,18 +3941,13 @@ impl StaticDeliveryAttributeMappingProperties { #[doc = "Information about the storage blob based dead letter destination."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageBlobDeadLetterDestination { - #[serde(flatten)] - pub dead_letter_destination: DeadLetterDestination, #[doc = "Properties of the storage blob based dead letter destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl StorageBlobDeadLetterDestination { - pub fn new(dead_letter_destination: DeadLetterDestination) -> Self { - Self { - dead_letter_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Properties of the storage blob based dead letter destination."] @@ -4053,18 +3968,13 @@ impl StorageBlobDeadLetterDestinationProperties { #[doc = "Information about the storage queue destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageQueueEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a storage queue destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl StorageQueueEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a storage queue destination."] @@ -5189,18 +5099,13 @@ impl VerifiedPartnersListResult { #[doc = "Information about the webhook destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebHookEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "Information about the webhook destination properties for an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl WebHookEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Information about the webhook destination properties for an event subscription."] @@ -5289,18 +5194,13 @@ impl WebhookPartnerDestinationProperties { #[doc = "Information about the update of the WebHook of the partner destination."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebhookUpdatePartnerDestinationInfo { - #[serde(flatten)] - pub partner_update_destination_info: PartnerUpdateDestinationInfo, #[doc = "Properties of a partner destination webhook."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl WebhookUpdatePartnerDestinationInfo { - pub fn new(partner_update_destination_info: PartnerUpdateDestinationInfo) -> Self { - Self { - partner_update_destination_info, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Metadata pertaining to creation and last modification of the resource."] diff --git a/services/mgmt/eventgrid/src/package_2021_12/models.rs b/services/mgmt/eventgrid/src/package_2021_12/models.rs index d47e25d876..68a5e9add2 100644 --- a/services/mgmt/eventgrid/src/package_2021_12/models.rs +++ b/services/mgmt/eventgrid/src/package_2021_12/models.rs @@ -42,18 +42,13 @@ pub enum AdvancedFilterUnion { #[doc = "Information about the azure function destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFunctionEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Azure Function destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AzureFunctionEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Azure Function destination of an event subscription."] @@ -161,14 +156,6 @@ pub mod connection_state { } } } -#[doc = "Information about the dead letter destination for an event subscription. To configure a deadletter destination, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class. Currently, StorageBlobDeadLetterDestination is the only class that derives from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeadLetterDestination {} -impl DeadLetterDestination { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the endpoint for the dead letter destination"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "endpointType")] @@ -730,18 +717,13 @@ impl DynamicDeliveryAttributeMappingProperties { #[doc = "Information about the event hub destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct EventHubEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a event hub destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl EventHubEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a event hub destination."] @@ -781,14 +763,6 @@ impl EventSubscription { Self::default() } } -#[doc = "Information about the destination for an event subscription."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventSubscriptionDestination {} -impl EventSubscriptionDestination { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the endpoint for the event subscription destination."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "endpointType")] @@ -1246,18 +1220,13 @@ impl ExtensionTopicProperties { #[doc = "Information about the HybridConnection destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridConnectionEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a hybrid connection destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl HybridConnectionEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a hybrid connection destination."] @@ -1398,14 +1367,6 @@ pub mod inbound_ip_rule { } } } -#[doc = "By default, Event Grid expects events to be in the Event Grid event schema. Specifying an input schema mapping enables publishing to Event Grid using a custom input schema. Currently, the only supported type of InputSchemaMapping is 'JsonInputSchemaMapping'."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct InputSchemaMapping {} -impl InputSchemaMapping { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the custom mapping"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "inputSchemaMappingType")] @@ -1464,18 +1425,13 @@ impl JsonFieldWithDefault { #[doc = "This enables publishing to Event Grid using a custom input schema. This can be used to map properties from a custom input JSON schema to the Event Grid event schema."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JsonInputSchemaMapping { - #[serde(flatten)] - pub input_schema_mapping: InputSchemaMapping, #[doc = "This can be used to map properties of a source schema (or default values, for certain supported properties) to properties of the EventGridEvent schema."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl JsonInputSchemaMapping { - pub fn new(input_schema_mapping: InputSchemaMapping) -> Self { - Self { - input_schema_mapping, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "This can be used to map properties of a source schema (or default values, for certain supported properties) to properties of the EventGridEvent schema."] @@ -1955,18 +1911,13 @@ impl RetryPolicy { #[doc = "Information about the service bus destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceBusQueueEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Service Bus destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ServiceBusQueueEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Service Bus destination of an event subscription."] @@ -1992,18 +1943,13 @@ impl ServiceBusQueueEventSubscriptionDestinationProperties { #[doc = "Information about the service bus topic destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceBusTopicEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Service Bus Topic destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ServiceBusTopicEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Service Bus Topic destination of an event subscription."] @@ -2061,18 +2007,13 @@ impl StaticDeliveryAttributeMappingProperties { #[doc = "Information about the storage blob based dead letter destination."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageBlobDeadLetterDestination { - #[serde(flatten)] - pub dead_letter_destination: DeadLetterDestination, #[doc = "Properties of the storage blob based dead letter destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl StorageBlobDeadLetterDestination { - pub fn new(dead_letter_destination: DeadLetterDestination) -> Self { - Self { - dead_letter_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Properties of the storage blob based dead letter destination."] @@ -2093,18 +2034,13 @@ impl StorageBlobDeadLetterDestinationProperties { #[doc = "Information about the storage queue destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageQueueEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a storage queue destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl StorageQueueEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a storage queue destination."] @@ -2972,18 +2908,13 @@ impl UserIdentityProperties { #[doc = "Information about the webhook destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebHookEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "Information about the webhook destination properties for an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl WebHookEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Information about the webhook destination properties for an event subscription."] diff --git a/services/mgmt/eventgrid/src/package_2022_06/models.rs b/services/mgmt/eventgrid/src/package_2022_06/models.rs index 4dcef1e9b3..3fb2c177f9 100644 --- a/services/mgmt/eventgrid/src/package_2022_06/models.rs +++ b/services/mgmt/eventgrid/src/package_2022_06/models.rs @@ -42,18 +42,13 @@ pub enum AdvancedFilterUnion { #[doc = "Information about the azure function destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFunctionEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Azure Function destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AzureFunctionEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Azure Function destination of an event subscription."] @@ -381,14 +376,6 @@ pub mod connection_state { } } } -#[doc = "Information about the dead letter destination for an event subscription. To configure a deadletter destination, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class. Currently, StorageBlobDeadLetterDestination is the only class that derives from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeadLetterDestination {} -impl DeadLetterDestination { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the endpoint for the dead letter destination"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "endpointType")] @@ -1030,18 +1017,13 @@ impl DynamicDeliveryAttributeMappingProperties { #[doc = "Information about the event hub destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct EventHubEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a event hub destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl EventHubEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a event hub destination."] @@ -1081,14 +1063,6 @@ impl EventSubscription { Self::default() } } -#[doc = "Information about the destination for an event subscription."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventSubscriptionDestination {} -impl EventSubscriptionDestination { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the endpoint for the event subscription destination."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "endpointType")] @@ -1599,18 +1573,13 @@ impl ExtensionTopicProperties { #[doc = "Information about the HybridConnection destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridConnectionEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a hybrid connection destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl HybridConnectionEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a hybrid connection destination."] @@ -1772,14 +1741,6 @@ impl InlineEventProperties { Self::default() } } -#[doc = "By default, Event Grid expects events to be in the Event Grid event schema. Specifying an input schema mapping enables publishing to Event Grid using a custom input schema. Currently, the only supported type of InputSchemaMapping is 'JsonInputSchemaMapping'."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct InputSchemaMapping {} -impl InputSchemaMapping { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the custom mapping"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "inputSchemaMappingType")] @@ -1838,18 +1799,13 @@ impl JsonFieldWithDefault { #[doc = "This enables publishing to Event Grid using a custom input schema. This can be used to map properties from a custom input JSON schema to the Event Grid event schema."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JsonInputSchemaMapping { - #[serde(flatten)] - pub input_schema_mapping: InputSchemaMapping, #[doc = "This can be used to map properties of a source schema (or default values, for certain supported properties) to properties of the EventGridEvent schema."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl JsonInputSchemaMapping { - pub fn new(input_schema_mapping: InputSchemaMapping) -> Self { - Self { - input_schema_mapping, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "This can be used to map properties of a source schema (or default values, for certain supported properties) to properties of the EventGridEvent schema."] @@ -3199,18 +3155,13 @@ impl RetryPolicy { #[doc = "Information about the service bus destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceBusQueueEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Service Bus destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ServiceBusQueueEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Service Bus destination of an event subscription."] @@ -3236,18 +3187,13 @@ impl ServiceBusQueueEventSubscriptionDestinationProperties { #[doc = "Information about the service bus topic destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceBusTopicEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Service Bus Topic destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ServiceBusTopicEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Service Bus Topic destination of an event subscription."] @@ -3305,18 +3251,13 @@ impl StaticDeliveryAttributeMappingProperties { #[doc = "Information about the storage blob based dead letter destination."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageBlobDeadLetterDestination { - #[serde(flatten)] - pub dead_letter_destination: DeadLetterDestination, #[doc = "Properties of the storage blob based dead letter destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl StorageBlobDeadLetterDestination { - pub fn new(dead_letter_destination: DeadLetterDestination) -> Self { - Self { - dead_letter_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Properties of the storage blob based dead letter destination."] @@ -3337,18 +3278,13 @@ impl StorageBlobDeadLetterDestinationProperties { #[doc = "Information about the storage queue destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageQueueEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a storage queue destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl StorageQueueEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a storage queue destination."] @@ -4410,18 +4346,13 @@ impl VerifiedPartnersListResult { #[doc = "Information about the webhook destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebHookEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "Information about the webhook destination properties for an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl WebHookEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Information about the webhook destination properties for an event subscription."] diff --git a/services/mgmt/eventgrid/src/package_2023_06_preview/models.rs b/services/mgmt/eventgrid/src/package_2023_06_preview/models.rs index be099bc663..0c0bb78b55 100644 --- a/services/mgmt/eventgrid/src/package_2023_06_preview/models.rs +++ b/services/mgmt/eventgrid/src/package_2023_06_preview/models.rs @@ -42,18 +42,13 @@ pub enum AdvancedFilterUnion { #[doc = "Azure Active Directory Partner Client Authentication"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureAdPartnerClientAuthentication { - #[serde(flatten)] - pub partner_client_authentication: PartnerClientAuthentication, #[doc = "Properties of an Azure Active Directory Partner Client Authentication."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AzureAdPartnerClientAuthentication { - pub fn new(partner_client_authentication: PartnerClientAuthentication) -> Self { - Self { - partner_client_authentication, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Properties of an Azure Active Directory Partner Client Authentication."] @@ -78,18 +73,13 @@ impl AzureAdPartnerClientAuthenticationProperties { #[doc = "Information about the azure function destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFunctionEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Azure Function destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AzureFunctionEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Azure Function destination of an event subscription."] @@ -979,14 +969,6 @@ pub mod connection_state { } } } -#[doc = "Information about the dead letter destination for an event subscription. To configure a deadletter destination, do not directly instantiate an object of this class. Instead, instantiate an object of a derived class. Currently, StorageBlobDeadLetterDestination is the only class that derives from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DeadLetterDestination {} -impl DeadLetterDestination { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the endpoint for the dead letter destination"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "endpointType")] @@ -1863,18 +1845,13 @@ impl ErrorResponse { #[doc = "Information about the event hub destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct EventHubEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a event hub destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl EventHubEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a event hub destination."] @@ -1914,14 +1891,6 @@ impl EventSubscription { Self::default() } } -#[doc = "Information about the destination for an event subscription."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventSubscriptionDestination {} -impl EventSubscriptionDestination { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the endpoint for the event subscription destination."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "endpointType")] @@ -2508,18 +2477,13 @@ impl FiltersConfiguration { #[doc = "Information about the HybridConnection destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridConnectionEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a hybrid connection destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl HybridConnectionEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a hybrid connection destination."] @@ -2681,14 +2645,6 @@ impl InlineEventProperties { Self::default() } } -#[doc = "By default, Event Grid expects events to be in the Event Grid event schema. Specifying an input schema mapping enables publishing to Event Grid using a custom input schema. Currently, the only supported type of InputSchemaMapping is 'JsonInputSchemaMapping'."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct InputSchemaMapping {} -impl InputSchemaMapping { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the custom mapping"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "inputSchemaMappingType")] @@ -2769,18 +2725,13 @@ impl JsonFieldWithDefault { #[doc = "This enables publishing to Event Grid using a custom input schema. This can be used to map properties from a custom input JSON schema to the Event Grid event schema."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JsonInputSchemaMapping { - #[serde(flatten)] - pub input_schema_mapping: InputSchemaMapping, #[doc = "This can be used to map properties of a source schema (or default values, for certain supported properties) to properties of the EventGridEvent schema."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl JsonInputSchemaMapping { - pub fn new(input_schema_mapping: InputSchemaMapping) -> Self { - Self { - input_schema_mapping, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "This can be used to map properties of a source schema (or default values, for certain supported properties) to properties of the EventGridEvent schema."] @@ -3821,14 +3772,6 @@ impl PartnerAuthorization { Self::default() } } -#[doc = "Partner client authentication"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PartnerClientAuthentication {} -impl PartnerClientAuthentication { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of client authentication"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "clientAuthenticationType")] @@ -4212,17 +4155,12 @@ impl PartnerDetails { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PartnerEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl PartnerEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -4990,14 +4928,6 @@ impl PartnerTopicsListResult { Self::default() } } -#[doc = "Properties of the corresponding partner destination of a Channel."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PartnerUpdateDestinationInfo {} -impl PartnerUpdateDestinationInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the endpoint for the partner destination"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "endpointType")] @@ -5575,18 +5505,13 @@ pub mod routing_identity_info { #[doc = "Information about the service bus destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceBusQueueEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Service Bus destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ServiceBusQueueEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Service Bus destination of an event subscription."] @@ -5612,18 +5537,13 @@ impl ServiceBusQueueEventSubscriptionDestinationProperties { #[doc = "Information about the service bus topic destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServiceBusTopicEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties that represent the Service Bus Topic destination of an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ServiceBusTopicEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties that represent the Service Bus Topic destination of an event subscription."] @@ -5733,18 +5653,13 @@ pub mod static_routing_enrichment { #[doc = "Information about the storage blob based dead letter destination."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageBlobDeadLetterDestination { - #[serde(flatten)] - pub dead_letter_destination: DeadLetterDestination, #[doc = "Properties of the storage blob based dead letter destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl StorageBlobDeadLetterDestination { - pub fn new(dead_letter_destination: DeadLetterDestination) -> Self { - Self { - dead_letter_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Properties of the storage blob based dead letter destination."] @@ -5765,18 +5680,13 @@ impl StorageBlobDeadLetterDestinationProperties { #[doc = "Information about the storage queue destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StorageQueueEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "The properties for a storage queue destination."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl StorageQueueEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The properties for a storage queue destination."] @@ -7675,18 +7585,13 @@ impl VerifiedPartnersListResult { #[doc = "Information about the webhook destination for an event subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebHookEventSubscriptionDestination { - #[serde(flatten)] - pub event_subscription_destination: EventSubscriptionDestination, #[doc = "Information about the webhook destination properties for an event subscription."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl WebHookEventSubscriptionDestination { - pub fn new(event_subscription_destination: EventSubscriptionDestination) -> Self { - Self { - event_subscription_destination, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Information about the webhook destination properties for an event subscription."] @@ -7823,18 +7728,13 @@ impl WebhookPartnerDestinationProperties { #[doc = "Information about the update of the WebHook of the partner destination."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebhookUpdatePartnerDestinationInfo { - #[serde(flatten)] - pub partner_update_destination_info: PartnerUpdateDestinationInfo, #[doc = "Properties of a partner destination webhook."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl WebhookUpdatePartnerDestinationInfo { - pub fn new(partner_update_destination_info: PartnerUpdateDestinationInfo) -> Self { - Self { - partner_update_destination_info, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Metadata pertaining to creation and last modification of the resource."] diff --git a/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs b/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs index b696175315..ce454eeeda 100644 --- a/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs +++ b/services/mgmt/extendedlocation/src/package_2021_03_15_preview/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "EnabledResourceType definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EnabledResourceType { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for EnabledResourceType of a custom location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs b/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs index adea660814..5757500444 100644 --- a/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs +++ b/services/mgmt/extendedlocation/src/package_2021_08_15/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "EnabledResourceType definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EnabledResourceType { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for EnabledResourceType of a custom location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs b/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs index e909e6f10a..1dc573647a 100644 --- a/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs +++ b/services/mgmt/extendedlocation/src/package_2021_08_31_preview/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "EnabledResourceType definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EnabledResourceType { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for EnabledResourceType of a custom location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/fist/src/package_2023_02_08_preview/models.rs b/services/mgmt/fist/src/package_2023_02_08_preview/models.rs index f851465e7e..708fc0b0f7 100644 --- a/services/mgmt/fist/src/package_2023_02_08_preview/models.rs +++ b/services/mgmt/fist/src/package_2023_02_08_preview/models.rs @@ -1038,8 +1038,6 @@ impl ErrorResponse { #[doc = "Firmware definition"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Firmware { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Firmware properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs b/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs index 025d4880c0..90fb4b26f3 100644 --- a/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_02_15/models.rs @@ -72,8 +72,6 @@ impl ErrorResponse { #[doc = "A FluidRelay Container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FluidRelayContainer { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a Fluid Relay Container resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs b/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs index 2726b6640b..9b8745ca9e 100644 --- a/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_04_21/models.rs @@ -126,8 +126,6 @@ impl ErrorResponse { #[doc = "A FluidRelay Container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FluidRelayContainer { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a Fluid Relay Container resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs b/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs index 041538c5b5..84d6e43e45 100644 --- a/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_05_11/models.rs @@ -126,8 +126,6 @@ impl ErrorResponse { #[doc = "A FluidRelay Container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FluidRelayContainer { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a Fluid Relay Container resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/fluidrelay/src/package_2022_05_26/models.rs b/services/mgmt/fluidrelay/src/package_2022_05_26/models.rs index 5fe644c53f..5cb1b48ab4 100644 --- a/services/mgmt/fluidrelay/src/package_2022_05_26/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_05_26/models.rs @@ -126,8 +126,6 @@ impl ErrorResponse { #[doc = "A FluidRelay Container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FluidRelayContainer { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a Fluid Relay Container resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/fluidrelay/src/package_2022_06_01/models.rs b/services/mgmt/fluidrelay/src/package_2022_06_01/models.rs index 5fe644c53f..5cb1b48ab4 100644 --- a/services/mgmt/fluidrelay/src/package_2022_06_01/models.rs +++ b/services/mgmt/fluidrelay/src/package_2022_06_01/models.rs @@ -126,8 +126,6 @@ impl ErrorResponse { #[doc = "A FluidRelay Container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FluidRelayContainer { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a Fluid Relay Container resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/frontdoor/src/package_2020_04/models.rs b/services/mgmt/frontdoor/src/package_2020_04/models.rs index 80ec0b5f66..e4b54f22be 100644 --- a/services/mgmt/frontdoor/src/package_2020_04/models.rs +++ b/services/mgmt/frontdoor/src/package_2020_04/models.rs @@ -1068,8 +1068,6 @@ pub mod experiment_update_properties { #[doc = "Describes Forwarding Route."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ForwardingConfiguration { - #[serde(flatten)] - pub route_configuration: RouteConfiguration, #[doc = "A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path."] #[serde(rename = "customForwardingPath", default, skip_serializing_if = "Option::is_none")] pub custom_forwarding_path: Option, @@ -1084,9 +1082,8 @@ pub struct ForwardingConfiguration { pub backend_pool: Option, } impl ForwardingConfiguration { - pub fn new(route_configuration: RouteConfiguration) -> Self { + pub fn new() -> Self { Self { - route_configuration, custom_forwarding_path: None, forwarding_protocol: None, cache_configuration: None, @@ -3043,8 +3040,6 @@ impl PurgeParameters { #[doc = "Describes Redirect Route."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedirectConfiguration { - #[serde(flatten)] - pub route_configuration: RouteConfiguration, #[doc = "The redirect type the rule will use when redirecting traffic."] #[serde(rename = "redirectType", default, skip_serializing_if = "Option::is_none")] pub redirect_type: Option, @@ -3065,9 +3060,8 @@ pub struct RedirectConfiguration { pub custom_query_string: Option, } impl RedirectConfiguration { - pub fn new(route_configuration: RouteConfiguration) -> Self { + pub fn new() -> Self { Self { - route_configuration, redirect_type: None, redirect_protocol: None, custom_host: None, @@ -3236,14 +3230,6 @@ pub enum ResourceType { #[serde(rename = "Microsoft.Network/frontDoors/frontendEndpoints")] MicrosoftNetworkFrontDoorsFrontendEndpoints, } -#[doc = "Base class for all types of Route."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RouteConfiguration {} -impl RouteConfiguration { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] pub enum RouteConfigurationUnion { diff --git a/services/mgmt/frontdoor/src/package_2020_05/models.rs b/services/mgmt/frontdoor/src/package_2020_05/models.rs index d0280c6f59..7c6b13999f 100644 --- a/services/mgmt/frontdoor/src/package_2020_05/models.rs +++ b/services/mgmt/frontdoor/src/package_2020_05/models.rs @@ -1074,8 +1074,6 @@ pub mod experiment_update_properties { #[doc = "Describes Forwarding Route."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ForwardingConfiguration { - #[serde(flatten)] - pub route_configuration: RouteConfiguration, #[doc = "A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path."] #[serde(rename = "customForwardingPath", default, skip_serializing_if = "Option::is_none")] pub custom_forwarding_path: Option, @@ -1090,9 +1088,8 @@ pub struct ForwardingConfiguration { pub backend_pool: Option, } impl ForwardingConfiguration { - pub fn new(route_configuration: RouteConfiguration) -> Self { + pub fn new() -> Self { Self { - route_configuration, custom_forwarding_path: None, forwarding_protocol: None, cache_configuration: None, @@ -3049,8 +3046,6 @@ impl PurgeParameters { #[doc = "Describes Redirect Route."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedirectConfiguration { - #[serde(flatten)] - pub route_configuration: RouteConfiguration, #[doc = "The redirect type the rule will use when redirecting traffic."] #[serde(rename = "redirectType", default, skip_serializing_if = "Option::is_none")] pub redirect_type: Option, @@ -3071,9 +3066,8 @@ pub struct RedirectConfiguration { pub custom_query_string: Option, } impl RedirectConfiguration { - pub fn new(route_configuration: RouteConfiguration) -> Self { + pub fn new() -> Self { Self { - route_configuration, redirect_type: None, redirect_protocol: None, custom_host: None, @@ -3242,14 +3236,6 @@ pub enum ResourceType { #[serde(rename = "Microsoft.Network/frontDoors/frontendEndpoints")] MicrosoftNetworkFrontDoorsFrontendEndpoints, } -#[doc = "Base class for all types of Route."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RouteConfiguration {} -impl RouteConfiguration { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] pub enum RouteConfigurationUnion { diff --git a/services/mgmt/frontdoor/src/package_2020_11/models.rs b/services/mgmt/frontdoor/src/package_2020_11/models.rs index a9f40d25eb..94fa311cca 100644 --- a/services/mgmt/frontdoor/src/package_2020_11/models.rs +++ b/services/mgmt/frontdoor/src/package_2020_11/models.rs @@ -1074,8 +1074,6 @@ pub mod experiment_update_properties { #[doc = "Describes Forwarding Route."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ForwardingConfiguration { - #[serde(flatten)] - pub route_configuration: RouteConfiguration, #[doc = "A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path."] #[serde(rename = "customForwardingPath", default, skip_serializing_if = "Option::is_none")] pub custom_forwarding_path: Option, @@ -1090,9 +1088,8 @@ pub struct ForwardingConfiguration { pub backend_pool: Option, } impl ForwardingConfiguration { - pub fn new(route_configuration: RouteConfiguration) -> Self { + pub fn new() -> Self { Self { - route_configuration, custom_forwarding_path: None, forwarding_protocol: None, cache_configuration: None, @@ -3134,8 +3131,6 @@ impl PurgeParameters { #[doc = "Describes Redirect Route."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedirectConfiguration { - #[serde(flatten)] - pub route_configuration: RouteConfiguration, #[doc = "The redirect type the rule will use when redirecting traffic."] #[serde(rename = "redirectType", default, skip_serializing_if = "Option::is_none")] pub redirect_type: Option, @@ -3156,9 +3151,8 @@ pub struct RedirectConfiguration { pub custom_query_string: Option, } impl RedirectConfiguration { - pub fn new(route_configuration: RouteConfiguration) -> Self { + pub fn new() -> Self { Self { - route_configuration, redirect_type: None, redirect_protocol: None, custom_host: None, @@ -3327,14 +3321,6 @@ pub enum ResourceType { #[serde(rename = "Microsoft.Network/frontDoors/frontendEndpoints")] MicrosoftNetworkFrontDoorsFrontendEndpoints, } -#[doc = "Base class for all types of Route."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RouteConfiguration {} -impl RouteConfiguration { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] pub enum RouteConfigurationUnion { diff --git a/services/mgmt/frontdoor/src/package_2021_06/models.rs b/services/mgmt/frontdoor/src/package_2021_06/models.rs index e158fe8dca..f71852ed7d 100644 --- a/services/mgmt/frontdoor/src/package_2021_06/models.rs +++ b/services/mgmt/frontdoor/src/package_2021_06/models.rs @@ -1074,8 +1074,6 @@ pub mod experiment_update_properties { #[doc = "Describes Forwarding Route."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ForwardingConfiguration { - #[serde(flatten)] - pub route_configuration: RouteConfiguration, #[doc = "A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path."] #[serde(rename = "customForwardingPath", default, skip_serializing_if = "Option::is_none")] pub custom_forwarding_path: Option, @@ -1090,9 +1088,8 @@ pub struct ForwardingConfiguration { pub backend_pool: Option, } impl ForwardingConfiguration { - pub fn new(route_configuration: RouteConfiguration) -> Self { + pub fn new() -> Self { Self { - route_configuration, custom_forwarding_path: None, forwarding_protocol: None, cache_configuration: None, @@ -3137,8 +3134,6 @@ impl PurgeParameters { #[doc = "Describes Redirect Route."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedirectConfiguration { - #[serde(flatten)] - pub route_configuration: RouteConfiguration, #[doc = "The redirect type the rule will use when redirecting traffic."] #[serde(rename = "redirectType", default, skip_serializing_if = "Option::is_none")] pub redirect_type: Option, @@ -3159,9 +3154,8 @@ pub struct RedirectConfiguration { pub custom_query_string: Option, } impl RedirectConfiguration { - pub fn new(route_configuration: RouteConfiguration) -> Self { + pub fn new() -> Self { Self { - route_configuration, redirect_type: None, redirect_protocol: None, custom_host: None, @@ -3334,14 +3328,6 @@ pub enum ResourceType { #[serde(rename = "Microsoft.Network/frontDoors/frontendEndpoints")] MicrosoftNetworkFrontDoorsFrontendEndpoints, } -#[doc = "Base class for all types of Route."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RouteConfiguration {} -impl RouteConfiguration { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] pub enum RouteConfigurationUnion { diff --git a/services/mgmt/frontdoor/src/package_2022_05/models.rs b/services/mgmt/frontdoor/src/package_2022_05/models.rs index 3d7add905d..80ddbbfc8f 100644 --- a/services/mgmt/frontdoor/src/package_2022_05/models.rs +++ b/services/mgmt/frontdoor/src/package_2022_05/models.rs @@ -1112,8 +1112,6 @@ pub mod experiment_update_properties { #[doc = "Describes Forwarding Route."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ForwardingConfiguration { - #[serde(flatten)] - pub route_configuration: RouteConfiguration, #[doc = "A custom path used to rewrite resource paths matched by this rule. Leave empty to use incoming path."] #[serde(rename = "customForwardingPath", default, skip_serializing_if = "Option::is_none")] pub custom_forwarding_path: Option, @@ -1128,9 +1126,8 @@ pub struct ForwardingConfiguration { pub backend_pool: Option, } impl ForwardingConfiguration { - pub fn new(route_configuration: RouteConfiguration) -> Self { + pub fn new() -> Self { Self { - route_configuration, custom_forwarding_path: None, forwarding_protocol: None, cache_configuration: None, @@ -3175,8 +3172,6 @@ impl PurgeParameters { #[doc = "Describes Redirect Route."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedirectConfiguration { - #[serde(flatten)] - pub route_configuration: RouteConfiguration, #[doc = "The redirect type the rule will use when redirecting traffic."] #[serde(rename = "redirectType", default, skip_serializing_if = "Option::is_none")] pub redirect_type: Option, @@ -3197,9 +3192,8 @@ pub struct RedirectConfiguration { pub custom_query_string: Option, } impl RedirectConfiguration { - pub fn new(route_configuration: RouteConfiguration) -> Self { + pub fn new() -> Self { Self { - route_configuration, redirect_type: None, redirect_protocol: None, custom_host: None, @@ -3372,14 +3366,6 @@ pub enum ResourceType { #[serde(rename = "Microsoft.Network/frontDoors/frontendEndpoints")] MicrosoftNetworkFrontDoorsFrontendEndpoints, } -#[doc = "Base class for all types of Route."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RouteConfiguration {} -impl RouteConfiguration { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] pub enum RouteConfigurationUnion { diff --git a/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs b/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs index 2becba9fb0..b62663050e 100644 --- a/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2018_06_30_preview/models.rs @@ -377,8 +377,6 @@ pub mod error_response { #[doc = "Guest configuration assignment is an association between a VM and guest configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GuestConfigurationAssignment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Guest configuration assignment properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs b/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs index bc039b5edb..67f9e5f110 100644 --- a/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2018_11_20/models.rs @@ -380,8 +380,6 @@ pub mod error_response { #[doc = "Guest configuration assignment is an association between a machine and guest configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GuestConfigurationAssignment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Guest configuration assignment properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs b/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs index 0fa0525e85..cd7d64b3f5 100644 --- a/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2020_06_25/models.rs @@ -501,8 +501,6 @@ pub mod error_response { #[doc = "Guest configuration assignment is an association between a machine and guest configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GuestConfigurationAssignment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Guest configuration assignment properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs b/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs index 17c086f82b..e57061f995 100644 --- a/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2021_01_25/models.rs @@ -501,8 +501,6 @@ pub mod error_response { #[doc = "Guest configuration assignment is an association between a machine and guest configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GuestConfigurationAssignment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Guest configuration assignment properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs b/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs index 4b777582cf..477cdfef16 100644 --- a/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs +++ b/services/mgmt/guestconfiguration/src/package_2022_01_25/models.rs @@ -501,8 +501,6 @@ pub mod error_response { #[doc = "Guest configuration assignment is an association between a machine and guest configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GuestConfigurationAssignment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Guest configuration assignment properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/hanaon/src/package_2020_02_07_preview/models.rs b/services/mgmt/hanaon/src/package_2020_02_07_preview/models.rs index 43729f4896..f4ef01fce4 100644 --- a/services/mgmt/hanaon/src/package_2020_02_07_preview/models.rs +++ b/services/mgmt/hanaon/src/package_2020_02_07_preview/models.rs @@ -103,8 +103,6 @@ impl OperationList { #[doc = "A provider instance associated with a SAP monitor."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProviderInstance { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of a provider instance."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/hardwaresecuritymodules/src/package_2022_08_preview/models.rs b/services/mgmt/hardwaresecuritymodules/src/package_2022_08_preview/models.rs index b26c3031dd..24b63c42bc 100644 --- a/services/mgmt/hardwaresecuritymodules/src/package_2022_08_preview/models.rs +++ b/services/mgmt/hardwaresecuritymodules/src/package_2022_08_preview/models.rs @@ -749,8 +749,6 @@ impl PrivateEndpoint { #[doc = "The private endpoint connection resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/hdinsight/src/package_2015_03_preview/models.rs b/services/mgmt/hdinsight/src/package_2015_03_preview/models.rs index 2f927fabfb..6d348b26f9 100644 --- a/services/mgmt/hdinsight/src/package_2015_03_preview/models.rs +++ b/services/mgmt/hdinsight/src/package_2015_03_preview/models.rs @@ -36,8 +36,6 @@ impl AaddsResourceDetails { #[doc = "The HDInsight cluster application"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Application { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ETag for the application"] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, diff --git a/services/mgmt/hdinsight/src/package_2018_06_preview/models.rs b/services/mgmt/hdinsight/src/package_2018_06_preview/models.rs index e7b58d12f7..036eadaf98 100644 --- a/services/mgmt/hdinsight/src/package_2018_06_preview/models.rs +++ b/services/mgmt/hdinsight/src/package_2018_06_preview/models.rs @@ -36,8 +36,6 @@ impl AaddsResourceDetails { #[doc = "The HDInsight cluster application"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Application { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ETag for the application"] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, diff --git a/services/mgmt/hdinsight/src/package_2021_06/models.rs b/services/mgmt/hdinsight/src/package_2021_06/models.rs index 05dbb02ab9..ae42d736f3 100644 --- a/services/mgmt/hdinsight/src/package_2021_06/models.rs +++ b/services/mgmt/hdinsight/src/package_2021_06/models.rs @@ -36,8 +36,6 @@ impl AaddsResourceDetails { #[doc = "The HDInsight cluster application"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Application { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ETag for the application"] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, diff --git a/services/mgmt/hdinsight/src/package_2023_04_preview/models.rs b/services/mgmt/hdinsight/src/package_2023_04_preview/models.rs index 05da0c2bb3..408336d2ba 100644 --- a/services/mgmt/hdinsight/src/package_2023_04_preview/models.rs +++ b/services/mgmt/hdinsight/src/package_2023_04_preview/models.rs @@ -36,8 +36,6 @@ impl AaddsResourceDetails { #[doc = "The HDInsight cluster application"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Application { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ETag for the application"] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, diff --git a/services/mgmt/hdinsight/src/package_2023_08_preview/models.rs b/services/mgmt/hdinsight/src/package_2023_08_preview/models.rs index 756b1c5dd1..6703bbcc71 100644 --- a/services/mgmt/hdinsight/src/package_2023_08_preview/models.rs +++ b/services/mgmt/hdinsight/src/package_2023_08_preview/models.rs @@ -36,8 +36,6 @@ impl AaddsResourceDetails { #[doc = "The HDInsight cluster application"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Application { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ETag for the application"] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, diff --git a/services/mgmt/healthcareapis/src/package_2022_12/models.rs b/services/mgmt/healthcareapis/src/package_2022_12/models.rs index a05d7ee6f3..1916be599b 100644 --- a/services/mgmt/healthcareapis/src/package_2022_12/models.rs +++ b/services/mgmt/healthcareapis/src/package_2022_12/models.rs @@ -60,8 +60,6 @@ pub type DicomAudience = String; #[doc = "The description of Dicom Service"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DicomService { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "Dicom Service properties."] @@ -261,8 +259,6 @@ impl Serialize for FhirResourceVersionPolicy { #[doc = "The description of Fhir Service"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FhirService { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "The kind of the service."] @@ -547,8 +543,6 @@ impl ImplementationGuidesConfiguration { #[doc = "IoT Connector definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IotConnector { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "IoT Connector properties."] @@ -2209,8 +2203,6 @@ impl UserAssignedIdentity { #[doc = "Workspace resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Workspace { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[doc = "Workspaces resource specific properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/healthcareapis/src/package_2023_02/models.rs b/services/mgmt/healthcareapis/src/package_2023_02/models.rs index 06e3486366..b125b1d57c 100644 --- a/services/mgmt/healthcareapis/src/package_2023_02/models.rs +++ b/services/mgmt/healthcareapis/src/package_2023_02/models.rs @@ -60,8 +60,6 @@ pub type DicomAudience = String; #[doc = "The description of Dicom Service"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DicomService { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "Dicom Service properties."] @@ -261,8 +259,6 @@ impl Serialize for FhirResourceVersionPolicy { #[doc = "The description of Fhir Service"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FhirService { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "The kind of the service."] @@ -547,8 +543,6 @@ impl ImplementationGuidesConfiguration { #[doc = "IoT Connector definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IotConnector { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "IoT Connector properties."] @@ -2212,8 +2206,6 @@ impl UserAssignedIdentity { #[doc = "Workspace resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Workspace { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[doc = "Workspaces resource specific properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs b/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs index db4ffed097..26c964cdfe 100644 --- a/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs +++ b/services/mgmt/healthcareapis/src/package_preview_2021_06/models.rs @@ -24,8 +24,6 @@ pub type DicomAudience = String; #[doc = "The description of Dicom Service"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DicomService { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[doc = "Dicom Service properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -162,8 +160,6 @@ impl ErrorDetailsInternal { #[doc = "The description of Fhir Service"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FhirService { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "The kind of the service."] @@ -387,8 +383,6 @@ impl FhirServiceProperties { #[doc = "IoT Connector definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IotConnector { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "IoT Connector properties."] @@ -1748,8 +1742,6 @@ impl TaggedResource { #[doc = "Workspace resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Workspace { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[doc = "Workspaces resource specific properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs b/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs index bd48fae7e6..7731437e9e 100644 --- a/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs +++ b/services/mgmt/healthcareapis/src/package_preview_2022_01/models.rs @@ -24,8 +24,6 @@ pub type DicomAudience = String; #[doc = "The description of Dicom Service"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DicomService { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "Dicom Service properties."] @@ -219,8 +217,6 @@ impl Serialize for FhirResourceVersionPolicy { #[doc = "The description of Fhir Service"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FhirService { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "The kind of the service."] @@ -490,8 +486,6 @@ impl FhirServiceProperties { #[doc = "IoT Connector definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IotConnector { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "IoT Connector properties."] @@ -2137,8 +2131,6 @@ impl UserAssignedIdentity { #[doc = "Workspace resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Workspace { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[doc = "Workspaces resource specific properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/healthcareapis/src/package_preview_2022_10/models.rs b/services/mgmt/healthcareapis/src/package_preview_2022_10/models.rs index 7c508261c9..ce37bba05e 100644 --- a/services/mgmt/healthcareapis/src/package_preview_2022_10/models.rs +++ b/services/mgmt/healthcareapis/src/package_preview_2022_10/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Analytics Connector definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AnalyticsConnector { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "Analytics Connector Properties."] @@ -83,14 +81,6 @@ impl AnalyticsConnectorDataLakeDataDestination { } } } -#[doc = "Data source for Analytics Connector. The target resource must be in the same workspace with the Analytics Connector."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AnalyticsConnectorDataSource {} -impl AnalyticsConnectorDataSource { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of data source."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -101,24 +91,14 @@ pub enum AnalyticsConnectorDataSourceUnion { #[doc = "The FHIR service data source for Analytics Connector."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AnalyticsConnectorFhirServiceDataSource { - #[serde(flatten)] - pub analytics_connector_data_source: AnalyticsConnectorDataSource, #[doc = "The URL of FHIR service."] pub url: String, #[doc = "The kind of FHIR Service."] pub kind: analytics_connector_fhir_service_data_source::Kind, } impl AnalyticsConnectorFhirServiceDataSource { - pub fn new( - analytics_connector_data_source: AnalyticsConnectorDataSource, - url: String, - kind: analytics_connector_fhir_service_data_source::Kind, - ) -> Self { - Self { - analytics_connector_data_source, - url, - kind, - } + pub fn new(url: String, kind: analytics_connector_fhir_service_data_source::Kind) -> Self { + Self { url, kind } } } pub mod analytics_connector_fhir_service_data_source { @@ -165,8 +145,6 @@ pub mod analytics_connector_fhir_service_data_source { #[doc = "FHIR Service data mapping configuration for Analytics Connector."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AnalyticsConnectorFhirToParquetMapping { - #[serde(flatten)] - pub analytics_connector_mapping: AnalyticsConnectorMapping, #[doc = "Artifact reference for filter configurations."] #[serde(rename = "filterConfigurationReference", default, skip_serializing_if = "Option::is_none")] pub filter_configuration_reference: Option, @@ -175,22 +153,13 @@ pub struct AnalyticsConnectorFhirToParquetMapping { pub extension_schema_reference: Option, } impl AnalyticsConnectorFhirToParquetMapping { - pub fn new(analytics_connector_mapping: AnalyticsConnectorMapping) -> Self { + pub fn new() -> Self { Self { - analytics_connector_mapping, filter_configuration_reference: None, extension_schema_reference: None, } } } -#[doc = "Data mapping configuration for Analytics Connector."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AnalyticsConnectorMapping {} -impl AnalyticsConnectorMapping { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of data mapping."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -298,8 +267,6 @@ pub type DicomAudience = String; #[doc = "The description of Dicom Service"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DicomService { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "Dicom Service properties."] @@ -496,8 +463,6 @@ impl Serialize for FhirResourceVersionPolicy { #[doc = "The description of Fhir Service"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FhirService { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "The kind of the service."] @@ -767,8 +732,6 @@ impl FhirServiceProperties { #[doc = "IoT Connector definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct IotConnector { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[serde(flatten)] pub service_managed_identity: ServiceManagedIdentity, #[doc = "IoT Connector properties."] @@ -2429,8 +2392,6 @@ impl UserAssignedIdentity { #[doc = "Workspace resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Workspace { - #[serde(flatten)] - pub tagged_resource: TaggedResource, #[doc = "Workspaces resource specific properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/help/src/package_2023_01_01_preview/models.rs b/services/mgmt/help/src/package_2023_01_01_preview/models.rs index 376fde8054..052bcb09af 100644 --- a/services/mgmt/help/src/package_2023_01_01_preview/models.rs +++ b/services/mgmt/help/src/package_2023_01_01_preview/models.rs @@ -79,8 +79,6 @@ impl DiagnosticInvocation { #[doc = "Diagnostic resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DiagnosticResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostic resource properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -599,8 +597,6 @@ impl SolutionMetadataProperties { #[doc = "Solution Metadata resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SolutionMetadataResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostic solution metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/help/src/package_2023_06_01/models.rs b/services/mgmt/help/src/package_2023_06_01/models.rs index 376fde8054..052bcb09af 100644 --- a/services/mgmt/help/src/package_2023_06_01/models.rs +++ b/services/mgmt/help/src/package_2023_06_01/models.rs @@ -79,8 +79,6 @@ impl DiagnosticInvocation { #[doc = "Diagnostic resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DiagnosticResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostic resource properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -599,8 +597,6 @@ impl SolutionMetadataProperties { #[doc = "Solution Metadata resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SolutionMetadataResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostic solution metadata."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/help/src/package_2023_09_01_preview/models.rs b/services/mgmt/help/src/package_2023_09_01_preview/models.rs index 56a941d333..f640b59923 100644 --- a/services/mgmt/help/src/package_2023_09_01_preview/models.rs +++ b/services/mgmt/help/src/package_2023_09_01_preview/models.rs @@ -156,8 +156,6 @@ impl DiagnosticInvocation { #[doc = "Diagnostic resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DiagnosticResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostic resource properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1015,8 +1013,6 @@ impl SolutionMetadataProperties { #[doc = "Metadata resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SolutionMetadataResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "List of solutions"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1642,8 +1638,6 @@ pub mod troubleshooter_instance_properties { #[doc = "Troubleshooter response."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TroubleshooterResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Troubleshooter Instance properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/hybridaks/src/package_2022_05_01_preview/models.rs b/services/mgmt/hybridaks/src/package_2022_05_01_preview/models.rs index 7827a4265d..aebf964442 100644 --- a/services/mgmt/hybridaks/src/package_2022_05_01_preview/models.rs +++ b/services/mgmt/hybridaks/src/package_2022_05_01_preview/models.rs @@ -482,8 +482,6 @@ pub mod control_plane_endpoint_profile { #[doc = "ControlPlaneProfile - The control plane properties for the provisioned cluster."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ControlPlaneProfile { - #[serde(flatten)] - pub named_agent_pool_profile: NamedAgentPoolProfile, #[serde(flatten)] pub control_plane_endpoint_profile: ControlPlaneEndpointProfile, #[serde(flatten)] @@ -610,8 +608,6 @@ pub mod linux_profile_properties { #[doc = "LoadBalancerProfile - Profile of the cluster load balancer."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LoadBalancerProfile { - #[serde(flatten)] - pub named_agent_pool_profile: NamedAgentPoolProfile, #[serde(flatten)] pub linux_profile: LinuxProfile, } @@ -1316,8 +1312,6 @@ impl HttpProxyConfigResponse { #[doc = "Defines the hybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: HybridIdentityMetadataProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1327,7 +1321,6 @@ pub struct HybridIdentityMetadata { impl HybridIdentityMetadata { pub fn new(properties: HybridIdentityMetadataProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/hybridaks/src/package_preview_2022_09/models.rs b/services/mgmt/hybridaks/src/package_preview_2022_09/models.rs index a70328c2bb..de980c1dc7 100644 --- a/services/mgmt/hybridaks/src/package_preview_2022_09/models.rs +++ b/services/mgmt/hybridaks/src/package_preview_2022_09/models.rs @@ -440,8 +440,6 @@ pub mod control_plane_endpoint_profile { #[doc = "ControlPlaneProfile - The control plane properties for the provisioned cluster."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ControlPlaneProfile { - #[serde(flatten)] - pub named_agent_pool_profile: NamedAgentPoolProfile, #[serde(flatten)] pub control_plane_endpoint_profile: ControlPlaneEndpointProfile, #[serde(flatten)] @@ -568,8 +566,6 @@ pub mod linux_profile_properties { #[doc = "LoadBalancerProfile - Profile of the cluster load balancer."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LoadBalancerProfile { - #[serde(flatten)] - pub named_agent_pool_profile: NamedAgentPoolProfile, #[serde(flatten)] pub linux_profile: LinuxProfile, } @@ -887,17 +883,12 @@ impl ProvisionedClusterPoolUpgradeProfileProperties { #[doc = "The list of available upgrades for compute pools."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ProvisionedClusterUpgradeProfile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Control plane and agent pool upgrade profiles."] pub properties: ProvisionedClusterUpgradeProfileProperties, } impl ProvisionedClusterUpgradeProfile { pub fn new(properties: ProvisionedClusterUpgradeProfileProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Control plane and agent pool upgrade profiles."] @@ -1396,8 +1387,6 @@ impl HttpProxyConfigResponse { #[doc = "Defines the hybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: HybridIdentityMetadataProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1407,7 +1396,6 @@ pub struct HybridIdentityMetadata { impl HybridIdentityMetadata { pub fn new(properties: HybridIdentityMetadataProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/hybridcompute/src/package_preview_2022_05/models.rs b/services/mgmt/hybridcompute/src/package_preview_2022_05/models.rs index c5e6373e45..a70bedf646 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2022_05/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2022_05/models.rs @@ -1006,8 +1006,6 @@ pub mod patch_settings { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1107,8 +1105,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/hybridcompute/src/package_preview_2022_08/models.rs b/services/mgmt/hybridcompute/src/package_preview_2022_08/models.rs index a8524aeceb..ea60c6963f 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2022_08/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2022_08/models.rs @@ -245,8 +245,6 @@ impl ExtensionTargetProperties { #[doc = "Describes a Extension Metadata"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ExtensionValue { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes Extension Metadata properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1052,8 +1050,6 @@ pub mod patch_settings { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1153,8 +1149,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/hybridcompute/src/package_preview_2022_12/models.rs b/services/mgmt/hybridcompute/src/package_preview_2022_12/models.rs index 20e1ff2ea4..0a55ee6a6f 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2022_12/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2022_12/models.rs @@ -312,8 +312,6 @@ impl ExtensionTargetProperties { #[doc = "Describes a Extension Metadata"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ExtensionValue { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes Extension Metadata properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1184,8 +1182,6 @@ pub mod patch_settings { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1285,8 +1281,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/hybridcompute/src/package_preview_2023_03/models.rs b/services/mgmt/hybridcompute/src/package_preview_2023_03/models.rs index 34c27ddafb..cc0bb7998a 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2023_03/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2023_03/models.rs @@ -352,8 +352,6 @@ impl ExtensionTargetProperties { #[doc = "Describes a Extension Metadata"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ExtensionValue { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes Extension Metadata properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -473,8 +471,6 @@ impl HybridComputePrivateLinkScopeProperties { #[doc = "Defines the HybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: HybridIdentityMetadataProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -484,7 +480,6 @@ pub struct HybridIdentityMetadata { impl HybridIdentityMetadata { pub fn new(properties: HybridIdentityMetadataProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1386,8 +1381,6 @@ pub mod patch_settings { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1487,8 +1480,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/hybridcompute/src/package_preview_2023_06/models.rs b/services/mgmt/hybridcompute/src/package_preview_2023_06/models.rs index cc16b0c230..a3feece49f 100644 --- a/services/mgmt/hybridcompute/src/package_preview_2023_06/models.rs +++ b/services/mgmt/hybridcompute/src/package_preview_2023_06/models.rs @@ -581,8 +581,6 @@ impl ExtensionTargetProperties { #[doc = "Describes a Extension Metadata"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ExtensionValue { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes Extension Metadata properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -702,8 +700,6 @@ impl HybridComputePrivateLinkScopeProperties { #[doc = "Defines the HybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: HybridIdentityMetadataProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -713,7 +709,6 @@ pub struct HybridIdentityMetadata { impl HybridIdentityMetadata { pub fn new(properties: HybridIdentityMetadataProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2638,8 +2633,6 @@ pub mod patch_settings { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2739,8 +2732,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs b/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs index 759664d658..90f1ff7d26 100644 --- a/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs +++ b/services/mgmt/hybridconnectivity/src/package_2021_10_06_preview/models.rs @@ -81,8 +81,6 @@ pub mod endpoint_properties { #[doc = "The endpoint for the target resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EndpointResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs b/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs index ae92dd26d2..f953a85505 100644 --- a/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs +++ b/services/mgmt/hybridconnectivity/src/package_2022_05_01_preview/models.rs @@ -97,8 +97,6 @@ pub mod endpoint_properties { #[doc = "The endpoint for the target resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EndpointResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/hybridconnectivity/src/package_2023_03/models.rs b/services/mgmt/hybridconnectivity/src/package_2023_03/models.rs index 8881ad2d5f..1e6d0aea24 100644 --- a/services/mgmt/hybridconnectivity/src/package_2023_03/models.rs +++ b/services/mgmt/hybridconnectivity/src/package_2023_03/models.rs @@ -97,8 +97,6 @@ pub mod endpoint_properties { #[doc = "The endpoint for the target resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EndpointResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -783,8 +781,6 @@ impl ServiceConfigurationPropertiesPatch { #[doc = "The service configuration details associated with the target resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServiceConfigurationResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/models.rs b/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/models.rs index 125c5e5409..d50d6cd2b3 100644 --- a/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/models.rs +++ b/services/mgmt/hybridnetwork/src/package_2020_01_01_preview/models.rs @@ -1542,8 +1542,6 @@ impl UserDataTemplate { #[doc = "Vendor resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Vendor { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Vendor properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1601,8 +1599,6 @@ impl VendorListResult { #[doc = "Vendor network function sub resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VendorNetworkFunction { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Vendor network function properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1735,8 +1731,6 @@ impl Serialize for VendorProvisioningState { #[doc = "Sku sub resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VendorSku { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sku properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs b/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs index a68c253f39..592483f1b9 100644 --- a/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs +++ b/services/mgmt/hybridnetwork/src/package_2021_05_01/models.rs @@ -1581,8 +1581,6 @@ impl UserDataTemplate { #[doc = "Vendor resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Vendor { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Vendor properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1643,8 +1641,6 @@ impl VendorListResult { #[doc = "Vendor network function sub resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VendorNetworkFunction { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Vendor network function properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1780,8 +1776,6 @@ impl Serialize for VendorProvisioningState { #[doc = "Sku sub resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VendorSku { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sku properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs b/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs index 7f1f3a7a91..c7c74c9461 100644 --- a/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs +++ b/services/mgmt/hybridnetwork/src/package_2022_01_01_preview/models.rs @@ -1787,8 +1787,6 @@ impl UserDataTemplate { #[doc = "Vendor resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Vendor { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Vendor properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1849,8 +1847,6 @@ impl VendorListResult { #[doc = "Vendor network function sub resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VendorNetworkFunction { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Vendor network function properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1986,8 +1982,6 @@ impl Serialize for VendorProvisioningState { #[doc = "Sku sub resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VendorSku { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Sku properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/imagebuilder/src/package_2020_02/models.rs b/services/mgmt/imagebuilder/src/package_2020_02/models.rs index f65c7e7ffa..e66f2c436e 100644 --- a/services/mgmt/imagebuilder/src/package_2020_02/models.rs +++ b/services/mgmt/imagebuilder/src/package_2020_02/models.rs @@ -266,25 +266,18 @@ impl ImageTemplateManagedImageDistributor { #[doc = "Describes an image source that is a managed image in customer subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplateManagedImageSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "ARM resource id of the managed image in customer subscription"] #[serde(rename = "imageId")] pub image_id: String, } impl ImageTemplateManagedImageSource { - pub fn new(image_template_source: ImageTemplateSource, image_id: String) -> Self { - Self { - image_template_source, - image_id, - } + pub fn new(image_id: String) -> Self { + Self { image_id } } } #[doc = "Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages)."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplatePlatformImageSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub publisher: Option, @@ -302,9 +295,8 @@ pub struct ImageTemplatePlatformImageSource { pub plan_info: Option, } impl ImageTemplatePlatformImageSource { - pub fn new(image_template_source: ImageTemplateSource) -> Self { + pub fn new() -> Self { Self { - image_template_source, publisher: None, offer: None, sku: None, @@ -502,18 +494,13 @@ pub mod image_template_shared_image_distributor { #[doc = "Describes an image source that is an image version in a shared image gallery."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplateSharedImageVersionSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "ARM resource id of the image version in the shared image gallery"] #[serde(rename = "imageVersionId")] pub image_version_id: String, } impl ImageTemplateSharedImageVersionSource { - pub fn new(image_template_source: ImageTemplateSource, image_version_id: String) -> Self { - Self { - image_template_source, - image_version_id, - } + pub fn new(image_version_id: String) -> Self { + Self { image_version_id } } } #[doc = "Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified."] @@ -545,14 +532,6 @@ impl ImageTemplateShellCustomizer { } } } -#[doc = "Describes a virtual machine image source for building, customizing and distributing"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ImageTemplateSource {} -impl ImageTemplateSource { - pub fn new() -> Self { - Self {} - } -} #[doc = "Specifies the type of source image you want to start with."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] diff --git a/services/mgmt/imagebuilder/src/package_2021_10/models.rs b/services/mgmt/imagebuilder/src/package_2021_10/models.rs index 7387adacb3..e243215ac5 100644 --- a/services/mgmt/imagebuilder/src/package_2021_10/models.rs +++ b/services/mgmt/imagebuilder/src/package_2021_10/models.rs @@ -261,25 +261,18 @@ impl ImageTemplateManagedImageDistributor { #[doc = "Describes an image source that is a managed image in customer subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplateManagedImageSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "ARM resource id of the managed image in customer subscription"] #[serde(rename = "imageId")] pub image_id: String, } impl ImageTemplateManagedImageSource { - pub fn new(image_template_source: ImageTemplateSource, image_id: String) -> Self { - Self { - image_template_source, - image_id, - } + pub fn new(image_id: String) -> Self { + Self { image_id } } } #[doc = "Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages)."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplatePlatformImageSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub publisher: Option, @@ -300,9 +293,8 @@ pub struct ImageTemplatePlatformImageSource { pub plan_info: Option, } impl ImageTemplatePlatformImageSource { - pub fn new(image_template_source: ImageTemplateSource) -> Self { + pub fn new() -> Self { Self { - image_template_source, publisher: None, offer: None, sku: None, @@ -501,18 +493,13 @@ pub mod image_template_shared_image_distributor { #[doc = "Describes an image source that is an image version in a shared image gallery."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplateSharedImageVersionSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "ARM resource id of the image version in the shared image gallery"] #[serde(rename = "imageVersionId")] pub image_version_id: String, } impl ImageTemplateSharedImageVersionSource { - pub fn new(image_template_source: ImageTemplateSource, image_version_id: String) -> Self { - Self { - image_template_source, - image_version_id, - } + pub fn new(image_version_id: String) -> Self { + Self { image_version_id } } } #[doc = "Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified."] @@ -544,14 +531,6 @@ impl ImageTemplateShellCustomizer { } } } -#[doc = "Describes a virtual machine image source for building, customizing and distributing"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ImageTemplateSource {} -impl ImageTemplateSource { - pub fn new() -> Self { - Self {} - } -} #[doc = "Specifies the type of source image you want to start with."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] diff --git a/services/mgmt/imagebuilder/src/package_2022_02/models.rs b/services/mgmt/imagebuilder/src/package_2022_02/models.rs index aaab1598f3..dc32d0eaa9 100644 --- a/services/mgmt/imagebuilder/src/package_2022_02/models.rs +++ b/services/mgmt/imagebuilder/src/package_2022_02/models.rs @@ -277,25 +277,18 @@ impl ImageTemplateManagedImageDistributor { #[doc = "Describes an image source that is a managed image in customer subscription. This image must reside in the same subscription and region as the Image Builder template."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplateManagedImageSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "ARM resource id of the managed image in customer subscription"] #[serde(rename = "imageId")] pub image_id: String, } impl ImageTemplateManagedImageSource { - pub fn new(image_template_source: ImageTemplateSource, image_id: String) -> Self { - Self { - image_template_source, - image_id, - } + pub fn new(image_id: String) -> Self { + Self { image_id } } } #[doc = "Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages)."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplatePlatformImageSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub publisher: Option, @@ -316,9 +309,8 @@ pub struct ImageTemplatePlatformImageSource { pub plan_info: Option, } impl ImageTemplatePlatformImageSource { - pub fn new(image_template_source: ImageTemplateSource) -> Self { + pub fn new() -> Self { Self { - image_template_source, publisher: None, offer: None, sku: None, @@ -601,18 +593,13 @@ pub mod image_template_shared_image_distributor { #[doc = "Describes an image source that is an image version in a shared image gallery."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplateSharedImageVersionSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "ARM resource id of the image version in the shared image gallery"] #[serde(rename = "imageVersionId")] pub image_version_id: String, } impl ImageTemplateSharedImageVersionSource { - pub fn new(image_template_source: ImageTemplateSource, image_version_id: String) -> Self { - Self { - image_template_source, - image_version_id, - } + pub fn new(image_version_id: String) -> Self { + Self { image_version_id } } } #[doc = "Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified."] @@ -673,14 +660,6 @@ impl ImageTemplateShellValidator { } } } -#[doc = "Describes a virtual machine image source for building, customizing and distributing"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ImageTemplateSource {} -impl ImageTemplateSource { - pub fn new() -> Self { - Self {} - } -} #[doc = "Specifies the type of source image you want to start with."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -991,8 +970,6 @@ impl Resource { #[doc = "Represents an output that was created by running an image template."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RunOutput { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of a run output"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/imagebuilder/src/package_2022_07/models.rs b/services/mgmt/imagebuilder/src/package_2022_07/models.rs index c5b7e486f6..7c201122b9 100644 --- a/services/mgmt/imagebuilder/src/package_2022_07/models.rs +++ b/services/mgmt/imagebuilder/src/package_2022_07/models.rs @@ -46,14 +46,6 @@ impl CloudErrorBody { Self::default() } } -#[doc = "Describes how to generate new x.y.z version number for distribution."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DistributeVersioner {} -impl DistributeVersioner { - pub fn new() -> Self { - Self {} - } -} #[doc = "Version numbering scheme to be used."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "scheme")] @@ -64,29 +56,21 @@ pub enum DistributeVersionerUnion { #[doc = "Generates version number that will be latest based on existing version numbers."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DistributeVersionerLatest { - #[serde(flatten)] - pub distribute_versioner: DistributeVersioner, #[doc = "Major version for the generated version number. Determine what is \"latest\" based on versions with this value as the major version. -1 is equivalent to leaving it unset."] #[serde(default, skip_serializing_if = "Option::is_none")] pub major: Option, } impl DistributeVersionerLatest { - pub fn new(distribute_versioner: DistributeVersioner) -> Self { - Self { - distribute_versioner, - major: None, - } + pub fn new() -> Self { + Self { major: None } } } #[doc = "Generates version number based on version number of source image"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DistributeVersionerSource { - #[serde(flatten)] - pub distribute_versioner: DistributeVersioner, -} +pub struct DistributeVersionerSource {} impl DistributeVersionerSource { - pub fn new(distribute_versioner: DistributeVersioner) -> Self { - Self { distribute_versioner } + pub fn new() -> Self { + Self {} } } #[doc = "Image template is an ARM resource managed by Microsoft.VirtualMachineImages provider"] @@ -347,25 +331,18 @@ impl ImageTemplateManagedImageDistributor { #[doc = "Describes an image source that is a managed image in customer subscription. This image must reside in the same subscription and region as the Image Builder template."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplateManagedImageSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "ARM resource id of the managed image in customer subscription"] #[serde(rename = "imageId")] pub image_id: String, } impl ImageTemplateManagedImageSource { - pub fn new(image_template_source: ImageTemplateSource, image_id: String) -> Self { - Self { - image_template_source, - image_id, - } + pub fn new(image_id: String) -> Self { + Self { image_id } } } #[doc = "Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages)."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplatePlatformImageSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub publisher: Option, @@ -386,9 +363,8 @@ pub struct ImageTemplatePlatformImageSource { pub plan_info: Option, } impl ImageTemplatePlatformImageSource { - pub fn new(image_template_source: ImageTemplateSource) -> Self { + pub fn new() -> Self { Self { - image_template_source, publisher: None, offer: None, sku: None, @@ -687,8 +663,6 @@ impl ImageTemplateSharedImageDistributor { #[doc = "Describes an image source that is an image version in an Azure Compute Gallery or a Direct Shared Gallery."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplateSharedImageVersionSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "ARM resource id of the image version. When image version name is 'latest', the version is evaluated when the image build takes place."] #[serde(rename = "imageVersionId")] pub image_version_id: String, @@ -697,9 +671,8 @@ pub struct ImageTemplateSharedImageVersionSource { pub exact_version: Option, } impl ImageTemplateSharedImageVersionSource { - pub fn new(image_template_source: ImageTemplateSource, image_version_id: String) -> Self { + pub fn new(image_version_id: String) -> Self { Self { - image_template_source, image_version_id, exact_version: None, } @@ -763,14 +736,6 @@ impl ImageTemplateShellValidator { } } } -#[doc = "Describes a virtual machine image source for building, customizing and distributing"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ImageTemplateSource {} -impl ImageTemplateSource { - pub fn new() -> Self { - Self {} - } -} #[doc = "Specifies the type of source image you want to start with."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -1086,8 +1051,6 @@ impl Resource { #[doc = "Represents an output that was created by running an image template."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RunOutput { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of a run output"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1237,8 +1200,6 @@ impl TrackedResource { #[doc = "Represents a trigger that can invoke an image template build."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Trigger { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of a trigger"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs b/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs index b7b7d529a5..acfc3ffb7b 100644 --- a/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs +++ b/services/mgmt/imagebuilder/src/package_preview_2019_05/models.rs @@ -176,8 +176,6 @@ pub mod image_template_identity { #[doc = "Describes an image source that is an installation ISO. Currently only supports Red Hat Enterprise Linux 7.2-7.5 ISO's."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplateIsoSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "URI to get the ISO image. This URI has to be accessible to the resource provider at the time of the image template creation."] #[serde(rename = "sourceUri")] pub source_uri: String, @@ -186,9 +184,8 @@ pub struct ImageTemplateIsoSource { pub sha256_checksum: String, } impl ImageTemplateIsoSource { - pub fn new(image_template_source: ImageTemplateSource, source_uri: String, sha256_checksum: String) -> Self { + pub fn new(source_uri: String, sha256_checksum: String) -> Self { Self { - image_template_source, source_uri, sha256_checksum, } @@ -285,25 +282,18 @@ impl ImageTemplateManagedImageDistributor { #[doc = "Describes an image source that is a managed image in customer subscription."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplateManagedImageSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "ARM resource id of the managed image in customer subscription"] #[serde(rename = "imageId")] pub image_id: String, } impl ImageTemplateManagedImageSource { - pub fn new(image_template_source: ImageTemplateSource, image_id: String) -> Self { - Self { - image_template_source, - image_id, - } + pub fn new(image_id: String) -> Self { + Self { image_id } } } #[doc = "Describes an image source from [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages)."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplatePlatformImageSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "Image Publisher in [Azure Gallery Images](https://docs.microsoft.com/en-us/rest/api/compute/virtualmachineimages)."] #[serde(default, skip_serializing_if = "Option::is_none")] pub publisher: Option, @@ -318,9 +308,8 @@ pub struct ImageTemplatePlatformImageSource { pub version: Option, } impl ImageTemplatePlatformImageSource { - pub fn new(image_template_source: ImageTemplateSource) -> Self { + pub fn new() -> Self { Self { - image_template_source, publisher: None, offer: None, sku: None, @@ -463,18 +452,13 @@ impl ImageTemplateSharedImageDistributor { #[doc = "Describes an image source that is an image version in a shared image gallery."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ImageTemplateSharedImageVersionSource { - #[serde(flatten)] - pub image_template_source: ImageTemplateSource, #[doc = "ARM resource id of the image version in the shared image gallery"] #[serde(rename = "imageVersionId")] pub image_version_id: String, } impl ImageTemplateSharedImageVersionSource { - pub fn new(image_template_source: ImageTemplateSource, image_version_id: String) -> Self { - Self { - image_template_source, - image_version_id, - } + pub fn new(image_version_id: String) -> Self { + Self { image_version_id } } } #[doc = "Runs a shell script during the customization phase (Linux). Corresponds to Packer shell provisioner. Exactly one of 'scriptUri' or 'inline' can be specified."] @@ -506,14 +490,6 @@ impl ImageTemplateShellCustomizer { } } } -#[doc = "Describes a virtual machine image source for building, customizing and distributing"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ImageTemplateSource {} -impl ImageTemplateSource { - pub fn new() -> Self { - Self {} - } -} #[doc = "Specifies the type of source image you want to start with."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs index e0f1e94e52..0c0044a180 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2021_11/models.rs @@ -8,8 +8,6 @@ pub type ChartVersion = String; #[doc = "Extension scope settings"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ClusterScopeSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Extension scope settings"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -232,8 +230,6 @@ impl ErrorResponse { #[doc = "The Extension object."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Extension { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an Extension resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -585,8 +581,6 @@ impl Default for FluxComplianceStateDefinition { #[doc = "The Flux Configuration object returned in Get & Put response."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FluxConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties to create a Flux Configuration resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1360,8 +1354,6 @@ impl ScopeNamespace { #[doc = "The SourceControl Configuration object returned in Get & Put response."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControlConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties to create a Source Control Configuration resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs index 70f5ffad6d..5fe4412b81 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01/models.rs @@ -68,8 +68,6 @@ pub type ChartVersion = String; #[doc = "Extension scope settings"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ClusterScopeSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Extension scope settings"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -292,8 +290,6 @@ impl ErrorResponse { #[doc = "The Extension object."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Extension { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an Extension resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -645,8 +641,6 @@ impl Default for FluxComplianceStateDefinition { #[doc = "The Flux Configuration object returned in Get & Put response."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FluxConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties to create a Flux Configuration resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1491,8 +1485,6 @@ impl ScopeNamespace { #[doc = "The SourceControl Configuration object returned in Get & Put response."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControlConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties to create a Source Control Configuration resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs index 11e45d30a3..57bee51323 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_01_15/models.rs @@ -275,8 +275,6 @@ impl ErrorResponse { #[doc = "The Extension object."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Extension { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an Extension resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -450,8 +448,6 @@ pub mod extension_status { #[doc = "Represents an Extension Type."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExtensionType { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the connected cluster."] pub properties: ExtensionTypeProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -461,7 +457,6 @@ pub struct ExtensionType { impl ExtensionType { pub fn new(properties: ExtensionTypeProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -625,8 +620,6 @@ impl Default for FluxComplianceStateDefinition { #[doc = "The Flux Configuration object returned in Get & Put response."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FluxConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties to create a Flux Configuration resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1471,8 +1464,6 @@ impl ScopeNamespace { #[doc = "The SourceControl Configuration object returned in Get & Put response."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControlConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties to create a Source Control Configuration resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs index 0959898f40..ed2855b78d 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2022_04/models.rs @@ -248,8 +248,6 @@ impl ErrorResponse { #[doc = "The Extension object."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Extension { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of an Extension resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -504,8 +502,6 @@ impl Default for FluxComplianceStateDefinition { #[doc = "The Flux Configuration object returned in Get & Put response."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FluxConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties to create a Flux Configuration resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1719,8 +1715,6 @@ impl ScopeNamespace { #[doc = "The SourceControl Configuration object returned in Get & Put response."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SourceControlConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties to create a Source Control Configuration resource"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/kubernetesconfiguration/src/package_preview_2023_05/models.rs b/services/mgmt/kubernetesconfiguration/src/package_preview_2023_05/models.rs index 0bd945f027..6321b0e708 100644 --- a/services/mgmt/kubernetesconfiguration/src/package_preview_2023_05/models.rs +++ b/services/mgmt/kubernetesconfiguration/src/package_preview_2023_05/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Extension scope settings"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ClusterScopeSettings { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Extension scope settings"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -104,8 +102,6 @@ impl ErrorResponse { #[doc = "The Extension Type object."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ExtensionType { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -190,8 +186,6 @@ pub mod extension_type { #[doc = "The Extension Type Version object."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ExtensionTypeVersionForReleaseTrain { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } diff --git a/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/models.rs b/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/models.rs index 74e2855c26..2bb0743b5b 100644 --- a/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/models.rs +++ b/services/mgmt/kusto/src/schema_2017_09_07_privatepreview/models.rs @@ -799,8 +799,6 @@ impl DatabaseUpdate { #[doc = "Class representing an event hub connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EventHubConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -913,8 +911,6 @@ pub mod event_hub_connection_properties { #[doc = "Class representing an update to event hub connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EventHubConnectionUpdate { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, diff --git a/services/mgmt/kusto/src/schema_2018_09_07_preview/models.rs b/services/mgmt/kusto/src/schema_2018_09_07_preview/models.rs index 74e2855c26..2bb0743b5b 100644 --- a/services/mgmt/kusto/src/schema_2018_09_07_preview/models.rs +++ b/services/mgmt/kusto/src/schema_2018_09_07_preview/models.rs @@ -799,8 +799,6 @@ impl DatabaseUpdate { #[doc = "Class representing an event hub connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EventHubConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -913,8 +911,6 @@ pub mod event_hub_connection_properties { #[doc = "Class representing an update to event hub connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EventHubConnectionUpdate { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, diff --git a/services/mgmt/kusto/src/schema_2019_01_21/models.rs b/services/mgmt/kusto/src/schema_2019_01_21/models.rs index 1ee4ce5212..58f31abed0 100644 --- a/services/mgmt/kusto/src/schema_2019_01_21/models.rs +++ b/services/mgmt/kusto/src/schema_2019_01_21/models.rs @@ -539,18 +539,13 @@ impl ClusterUpdate { #[doc = "Class representing an data connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, } impl DataConnection { pub fn new() -> Self { - Self { - proxy_resource: ProxyResource::default(), - location: None, - } + Self { location: None } } } #[doc = "Kind of the endpoint for the data connection"] @@ -717,8 +712,6 @@ impl Serialize for DataFormat { #[doc = "Class representing a Kusto database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, diff --git a/services/mgmt/kusto/src/schema_2019_05_15/models.rs b/services/mgmt/kusto/src/schema_2019_05_15/models.rs index 4a23f85b45..424197d00b 100644 --- a/services/mgmt/kusto/src/schema_2019_05_15/models.rs +++ b/services/mgmt/kusto/src/schema_2019_05_15/models.rs @@ -557,18 +557,13 @@ impl ClusterUpdate { #[doc = "Class representing an data connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, } impl DataConnection { pub fn new() -> Self { - Self { - proxy_resource: ProxyResource::default(), - location: None, - } + Self { location: None } } } #[doc = "Kind of the endpoint for the data connection"] @@ -739,8 +734,6 @@ impl Serialize for DataFormat { #[doc = "Class representing a Kusto database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, diff --git a/services/mgmt/kusto/src/schema_2019_09_07/models.rs b/services/mgmt/kusto/src/schema_2019_09_07/models.rs index 2012a7bc8d..2796710e48 100644 --- a/services/mgmt/kusto/src/schema_2019_09_07/models.rs +++ b/services/mgmt/kusto/src/schema_2019_09_07/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Class representing an attached database configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AttachedDatabaseConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -757,18 +755,13 @@ impl ClusterUpdate { #[doc = "Class representing an data connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, } impl DataConnection { pub fn new() -> Self { - Self { - proxy_resource: ProxyResource::default(), - location: None, - } + Self { location: None } } } #[doc = "Kind of the endpoint for the data connection"] @@ -939,8 +932,6 @@ impl Serialize for DataFormat { #[doc = "Class representing a Kusto database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, diff --git a/services/mgmt/labservices/src/package_2022_08/models.rs b/services/mgmt/labservices/src/package_2022_08/models.rs index 5040f157c4..32588b87a3 100644 --- a/services/mgmt/labservices/src/package_2022_08/models.rs +++ b/services/mgmt/labservices/src/package_2022_08/models.rs @@ -160,8 +160,6 @@ pub mod identity { #[doc = "Lab services virtual machine image"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Image { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -171,7 +169,6 @@ pub struct Image { impl Image { pub fn new(properties: ImageProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -1360,8 +1357,6 @@ impl SaveImageBody { #[doc = "Schedule for automatically turning virtual machines in a lab on and off at specified times."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Schedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1371,7 +1366,6 @@ pub struct Schedule { impl Schedule { pub fn new(properties: ScheduleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -1630,8 +1624,6 @@ impl UsageName { #[doc = "User of a lab that can register for and use virtual machines within the lab."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct User { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1641,7 +1633,6 @@ pub struct User { impl User { pub fn new(properties: UserProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -1714,8 +1705,6 @@ impl UserUpdateProperties { #[doc = "A lab virtual machine resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachine { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1725,7 +1714,6 @@ pub struct VirtualMachine { impl VirtualMachine { pub fn new(properties: VirtualMachineProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } diff --git a/services/mgmt/labservices/src/package_2023_06/models.rs b/services/mgmt/labservices/src/package_2023_06/models.rs index 918573e504..892bd4f5c9 100644 --- a/services/mgmt/labservices/src/package_2023_06/models.rs +++ b/services/mgmt/labservices/src/package_2023_06/models.rs @@ -160,8 +160,6 @@ pub mod identity { #[doc = "Lab services virtual machine image"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Image { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -171,7 +169,6 @@ pub struct Image { impl Image { pub fn new(properties: ImageProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -1388,8 +1385,6 @@ impl SaveImageBody { #[doc = "Schedule for automatically turning virtual machines in a lab on and off at specified times."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Schedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1399,7 +1394,6 @@ pub struct Schedule { impl Schedule { pub fn new(properties: ScheduleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -1662,8 +1656,6 @@ impl UsageName { #[doc = "User of a lab that can register for and use virtual machines within the lab."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct User { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1673,7 +1665,6 @@ pub struct User { impl User { pub fn new(properties: UserProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -1750,8 +1741,6 @@ impl UserUpdateProperties { #[doc = "A lab virtual machine resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachine { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1761,7 +1750,6 @@ pub struct VirtualMachine { impl VirtualMachine { pub fn new(properties: VirtualMachineProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } diff --git a/services/mgmt/labservices/src/package_preview_2021_10/models.rs b/services/mgmt/labservices/src/package_preview_2021_10/models.rs index 74f39cde84..c629e93b1f 100644 --- a/services/mgmt/labservices/src/package_preview_2021_10/models.rs +++ b/services/mgmt/labservices/src/package_preview_2021_10/models.rs @@ -134,8 +134,6 @@ impl ErrorResponse { #[doc = "Lab services virtual machine image"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Image { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -145,7 +143,6 @@ pub struct Image { impl Image { pub fn new(properties: ImageProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -989,8 +986,6 @@ impl SaveImageBody { #[doc = "Schedule for automatically turning virtual machines in a lab on and off at specified times."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Schedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1000,7 +995,6 @@ pub struct Schedule { impl Schedule { pub fn new(properties: ScheduleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -1174,8 +1168,6 @@ impl TrackedResourceUpdate { #[doc = "User of a lab that can register for and use virtual machines within the lab."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct User { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1185,7 +1177,6 @@ pub struct User { impl User { pub fn new(properties: UserProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -1258,8 +1249,6 @@ impl UserUpdateProperties { #[doc = "A lab virtual machine resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachine { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1269,7 +1258,6 @@ pub struct VirtualMachine { impl VirtualMachine { pub fn new(properties: VirtualMachineProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } diff --git a/services/mgmt/labservices/src/package_preview_2021_11/models.rs b/services/mgmt/labservices/src/package_preview_2021_11/models.rs index c90427079e..fa6a663924 100644 --- a/services/mgmt/labservices/src/package_preview_2021_11/models.rs +++ b/services/mgmt/labservices/src/package_preview_2021_11/models.rs @@ -134,8 +134,6 @@ impl ErrorResponse { #[doc = "Lab services virtual machine image"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Image { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -145,7 +143,6 @@ pub struct Image { impl Image { pub fn new(properties: ImageProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -1327,8 +1324,6 @@ impl SaveImageBody { #[doc = "Schedule for automatically turning virtual machines in a lab on and off at specified times."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Schedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1338,7 +1333,6 @@ pub struct Schedule { impl Schedule { pub fn new(properties: ScheduleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -1589,8 +1583,6 @@ impl UsageName { #[doc = "User of a lab that can register for and use virtual machines within the lab."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct User { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1600,7 +1592,6 @@ pub struct User { impl User { pub fn new(properties: UserProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -1673,8 +1664,6 @@ impl UserUpdateProperties { #[doc = "A lab virtual machine resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachine { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -1684,7 +1673,6 @@ pub struct VirtualMachine { impl VirtualMachine { pub fn new(properties: VirtualMachineProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } diff --git a/services/mgmt/machinelearningservices/src/package_2021_04_01/models.rs b/services/mgmt/machinelearningservices/src/package_2021_04_01/models.rs index 901207f496..e7292845fe 100644 --- a/services/mgmt/machinelearningservices/src/package_2021_04_01/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2021_04_01/models.rs @@ -543,8 +543,6 @@ pub mod aks_variant_response { #[doc = "Secrets related to a Machine Learning compute based on AKS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AksComputeSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[doc = "Content of kubeconfig file that can be used to connect to the Kubernetes cluster."] #[serde(rename = "userKubeConfig", default, skip_serializing_if = "Option::is_none")] pub user_kube_config: Option, @@ -556,9 +554,8 @@ pub struct AksComputeSecrets { pub image_pull_secret_name: Option, } impl AksComputeSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, user_kube_config: None, admin_kube_config: None, image_pull_secret_name: None, @@ -1662,14 +1659,6 @@ impl ComputeResource { Self::default() } } -#[doc = "Secrets related to a Machine Learning compute. Might differ for every type of compute."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ComputeSecrets {} -impl ComputeSecrets { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of compute"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "computeType")] @@ -1972,16 +1961,13 @@ pub mod databricks { #[doc = "Secrets related to a Machine Learning compute based on Databricks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DatabricksComputeSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[doc = "access token for databricks account."] #[serde(rename = "databricksAccessToken", default, skip_serializing_if = "Option::is_none")] pub databricks_access_token: Option, } impl DatabricksComputeSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, databricks_access_token: None, } } @@ -4727,16 +4713,13 @@ impl VirtualMachineImage { #[doc = "Secrets related to a Machine Learning compute based on AKS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[doc = "Admin credentials for virtual machine"] #[serde(rename = "administratorAccount", default, skip_serializing_if = "Option::is_none")] pub administrator_account: Option, } impl VirtualMachineSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, administrator_account: None, } } diff --git a/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs b/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs index 8397d617a2..e13fb159fe 100644 --- a/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2021_07_01/models.rs @@ -153,15 +153,12 @@ pub mod aks { #[doc = "Secrets related to a Machine Learning compute based on AKS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AksComputeSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[serde(flatten)] pub aks_compute_secrets_properties: AksComputeSecretsProperties, } impl AksComputeSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, aks_compute_secrets_properties: AksComputeSecretsProperties::default(), } } @@ -1229,14 +1226,6 @@ impl ComputeResource { Self::default() } } -#[doc = "Secrets related to a Machine Learning compute. Might differ for every type of compute."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ComputeSecrets {} -impl ComputeSecrets { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of compute"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "computeType")] @@ -1394,15 +1383,12 @@ impl Databricks { #[doc = "Secrets related to a Machine Learning compute based on Databricks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DatabricksComputeSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[serde(flatten)] pub databricks_compute_secrets_properties: DatabricksComputeSecretsProperties, } impl DatabricksComputeSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, databricks_compute_secrets_properties: DatabricksComputeSecretsProperties::default(), } } @@ -3749,16 +3735,13 @@ impl VirtualMachineImage { #[doc = "Secrets related to a Machine Learning compute based on AKS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[doc = "Admin credentials for virtual machine"] #[serde(rename = "administratorAccount", default, skip_serializing_if = "Option::is_none")] pub administrator_account: Option, } impl VirtualMachineSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, administrator_account: None, } } diff --git a/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs b/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs index 94147ee3db..b6acdf40cd 100644 --- a/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2022_05_01/models.rs @@ -166,48 +166,35 @@ pub mod aks_schema { #[doc = "Account key datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AccountKeyDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Datastore account key secrets."] pub secrets: AccountKeyDatastoreSecrets, } impl AccountKeyDatastoreCredentials { - pub fn new(datastore_credentials: DatastoreCredentials, secrets: AccountKeyDatastoreSecrets) -> Self { - Self { - datastore_credentials, - secrets, - } + pub fn new(secrets: AccountKeyDatastoreSecrets) -> Self { + Self { secrets } } } #[doc = "Datastore account key secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AccountKeyDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Storage account key."] #[serde(default, skip_serializing_if = "Option::is_none")] pub key: Option, } impl AccountKeyDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - key: None, - } + pub fn new() -> Self { + Self { key: None } } } #[doc = "Secrets related to a Machine Learning compute based on AKS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AksComputeSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[serde(flatten)] pub aks_compute_secrets_properties: AksComputeSecretsProperties, } impl AksComputeSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, aks_compute_secrets_properties: AksComputeSecretsProperties::default(), } } @@ -678,13 +665,10 @@ impl AmlOperationListResult { } #[doc = "AML Token identity configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AmlToken { - #[serde(flatten)] - pub identity_configuration: IdentityConfiguration, -} +pub struct AmlToken {} impl AmlToken { - pub fn new(identity_configuration: IdentityConfiguration) -> Self { - Self { identity_configuration } + pub fn new() -> Self { + Self {} } } #[doc = "Features enabled for a workspace"] @@ -769,14 +753,6 @@ impl AssetJobOutput { Self::default() } } -#[doc = "Base definition for asset references."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AssetReferenceBase {} -impl AssetReferenceBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine which reference method to use for an asset."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "referenceType")] @@ -1237,13 +1213,10 @@ impl BatchRetrySettings { } #[doc = "Defines a Sampling Algorithm that generates values based on previous values"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BayesianSamplingAlgorithm { - #[serde(flatten)] - pub sampling_algorithm: SamplingAlgorithm, -} +pub struct BayesianSamplingAlgorithm {} impl BayesianSamplingAlgorithm { - pub fn new(sampling_algorithm: SamplingAlgorithm) -> Self { - Self { sampling_algorithm } + pub fn new() -> Self { + Self {} } } #[doc = "Configuration settings for Docker build context"] @@ -1267,8 +1240,6 @@ impl BuildContext { #[doc = "Certificate datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Authority URL used for authentication."] #[serde(rename = "authorityUrl", default, skip_serializing_if = "Option::is_none")] pub authority_url: Option, @@ -1287,15 +1258,8 @@ pub struct CertificateDatastoreCredentials { pub thumbprint: String, } impl CertificateDatastoreCredentials { - pub fn new( - datastore_credentials: DatastoreCredentials, - client_id: String, - secrets: CertificateDatastoreSecrets, - tenant_id: String, - thumbprint: String, - ) -> Self { + pub fn new(client_id: String, secrets: CertificateDatastoreSecrets, tenant_id: String, thumbprint: String) -> Self { Self { - datastore_credentials, authority_url: None, client_id, resource_url: None, @@ -1308,18 +1272,13 @@ impl CertificateDatastoreCredentials { #[doc = "Datastore certificate secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Service principal certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub certificate: Option, } impl CertificateDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - certificate: None, - } + pub fn new() -> Self { + Self { certificate: None } } } #[doc = "AmlCompute update parameters."] @@ -2789,14 +2748,6 @@ impl ComputeSchedules { Self::default() } } -#[doc = "Secrets related to a Machine Learning compute. Might differ for every type of compute."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ComputeSecrets {} -impl ComputeSecrets { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of compute"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "computeType")] @@ -3269,8 +3220,6 @@ pub mod data_lake_analytics_schema { #[doc = "Reference to an asset via its path in a datastore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataPathAssetReference { - #[serde(flatten)] - pub asset_reference_base: AssetReferenceBase, #[doc = "ARM resource ID of the datastore where the asset is located."] #[serde(rename = "datastoreId", default, skip_serializing_if = "Option::is_none")] pub datastore_id: Option, @@ -3279,9 +3228,8 @@ pub struct DataPathAssetReference { pub path: Option, } impl DataPathAssetReference { - pub fn new(asset_reference_base: AssetReferenceBase) -> Self { + pub fn new() -> Self { Self { - asset_reference_base, datastore_id: None, path: None, } @@ -3417,15 +3365,12 @@ impl Databricks { #[doc = "Secrets related to a Machine Learning compute based on Databricks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DatabricksComputeSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[serde(flatten)] pub databricks_compute_secrets_properties: DatabricksComputeSecretsProperties, } impl DatabricksComputeSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, databricks_compute_secrets_properties: DatabricksComputeSecretsProperties::default(), } } @@ -3497,14 +3442,6 @@ pub enum DatastoreUnion { AzureDataLakeGen2(AzureDataLakeGen2Datastore), AzureFile(AzureFileDatastore), } -#[doc = "Base definition for datastore credentials."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DatastoreCredentials {} -impl DatastoreCredentials { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine the datastore credentials type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "credentialsType")] @@ -3556,14 +3493,6 @@ impl DatastoreResourceArmPaginatedResult { Self::default() } } -#[doc = "Base definition for datastore secrets."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DatastoreSecrets {} -impl DatastoreSecrets { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine the datastore secrets type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "secretsType")] @@ -3615,13 +3544,10 @@ impl Serialize for DatastoreType { } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DefaultScaleSettings { - #[serde(flatten)] - pub online_scale_settings: OnlineScaleSettings, -} +pub struct DefaultScaleSettings {} impl DefaultScaleSettings { - pub fn new(online_scale_settings: OnlineScaleSettings) -> Self { - Self { online_scale_settings } + pub fn new() -> Self { + Self {} } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -3885,14 +3811,6 @@ impl DiagnoseWorkspaceParameters { Self::default() } } -#[doc = "Base definition for job distribution configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DistributionConfiguration {} -impl DistributionConfiguration { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine the job distribution type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "distributionType")] @@ -4844,13 +4762,10 @@ impl Serialize for Goal { } #[doc = "Defines a Sampling Algorithm that exhaustively generates every value combination in the space"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GridSamplingAlgorithm { - #[serde(flatten)] - pub sampling_algorithm: SamplingAlgorithm, -} +pub struct GridSamplingAlgorithm {} impl GridSamplingAlgorithm { - pub fn new(sampling_algorithm: SamplingAlgorithm) -> Self { - Self { sampling_algorithm } + pub fn new() -> Self { + Self {} } } #[doc = "A HDInsight compute."] @@ -4901,26 +4816,13 @@ impl HdInsightSchema { #[doc = "Reference to an asset via its ARM resource ID."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IdAssetReference { - #[serde(flatten)] - pub asset_reference_base: AssetReferenceBase, #[doc = "[Required] ARM resource ID of the asset."] #[serde(rename = "assetId")] pub asset_id: String, } impl IdAssetReference { - pub fn new(asset_reference_base: AssetReferenceBase, asset_id: String) -> Self { - Self { - asset_reference_base, - asset_id, - } - } -} -#[doc = "Base definition for identity configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct IdentityConfiguration {} -impl IdentityConfiguration { - pub fn new() -> Self { - Self {} + pub fn new(asset_id: String) -> Self { + Self { asset_id } } } #[doc = "Enum to determine identity framework."] @@ -5884,8 +5786,6 @@ impl MlTableJobOutput { #[doc = "Managed identity configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManagedIdentity { - #[serde(flatten)] - pub identity_configuration: IdentityConfiguration, #[doc = "Specifies a user-assigned identity by client ID. For system-assigned, do not set this field."] #[serde(rename = "clientId", default, skip_serializing_if = "Option::is_none")] pub client_id: Option, @@ -5897,9 +5797,8 @@ pub struct ManagedIdentity { pub resource_id: Option, } impl ManagedIdentity { - pub fn new(identity_configuration: IdentityConfiguration) -> Self { + pub fn new() -> Self { Self { - identity_configuration, client_id: None, object_id: None, resource_id: None, @@ -6130,16 +6029,13 @@ impl ModelVersionResourceArmPaginatedResult { #[doc = "MPI distribution configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Mpi { - #[serde(flatten)] - pub distribution_configuration: DistributionConfiguration, #[doc = "Number of processes per MPI node."] #[serde(rename = "processCountPerInstance", default, skip_serializing_if = "Option::is_none")] pub process_count_per_instance: Option, } impl Mpi { - pub fn new(distribution_configuration: DistributionConfiguration) -> Self { + pub fn new() -> Self { Self { - distribution_configuration, process_count_per_instance: None, } } @@ -6185,13 +6081,10 @@ impl NoneAuthTypeWorkspaceConnectionProperties { } #[doc = "Empty/none datastore credentials."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct NoneDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, -} +pub struct NoneDatastoreCredentials {} impl NoneDatastoreCredentials { - pub fn new(datastore_credentials: DatastoreCredentials) -> Self { - Self { datastore_credentials } + pub fn new() -> Self { + Self {} } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -6460,14 +6353,6 @@ impl OnlineRequestSettings { Self::default() } } -#[doc = "Online deployment scaling configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OnlineScaleSettings {} -impl OnlineScaleSettings { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "scaleType")] pub enum OnlineScaleSettingsUnion { @@ -6591,8 +6476,6 @@ impl Serialize for OutputDeliveryMode { #[doc = "Reference to an asset via its path in a job output."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OutputPathAssetReference { - #[serde(flatten)] - pub asset_reference_base: AssetReferenceBase, #[doc = "ARM resource ID of the job."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -6601,12 +6484,8 @@ pub struct OutputPathAssetReference { pub path: Option, } impl OutputPathAssetReference { - pub fn new(asset_reference_base: AssetReferenceBase) -> Self { - Self { - asset_reference_base, - job_id: None, - path: None, - } + pub fn new() -> Self { + Self { job_id: None, path: None } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] @@ -7099,16 +6978,13 @@ impl ProbeSettings { #[doc = "PyTorch distribution configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PyTorch { - #[serde(flatten)] - pub distribution_configuration: DistributionConfiguration, #[doc = "Number of processes per node."] #[serde(rename = "processCountPerInstance", default, skip_serializing_if = "Option::is_none")] pub process_count_per_instance: Option, } impl PyTorch { - pub fn new(distribution_configuration: DistributionConfiguration) -> Self { + pub fn new() -> Self { Self { - distribution_configuration, process_count_per_instance: None, } } @@ -7194,8 +7070,6 @@ impl QuotaUpdateParameters { #[doc = "Defines a Sampling Algorithm that generates values randomly"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RandomSamplingAlgorithm { - #[serde(flatten)] - pub sampling_algorithm: SamplingAlgorithm, #[doc = "The specific type of random algorithm"] #[serde(default, skip_serializing_if = "Option::is_none")] pub rule: Option, @@ -7204,12 +7078,8 @@ pub struct RandomSamplingAlgorithm { pub seed: Option, } impl RandomSamplingAlgorithm { - pub fn new(sampling_algorithm: SamplingAlgorithm) -> Self { - Self { - sampling_algorithm, - rule: None, - seed: None, - } + pub fn new() -> Self { + Self { rule: None, seed: None } } } #[doc = "The specific type of random algorithm"] @@ -7492,14 +7362,6 @@ impl SasAuthTypeWorkspaceConnectionProperties { } } } -#[doc = "The Sampling Algorithm used to generate hyperparameter values, along with properties to\r\nconfigure the algorithm"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SamplingAlgorithm {} -impl SamplingAlgorithm { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "samplingAlgorithmType")] pub enum SamplingAlgorithmUnion { @@ -7548,34 +7410,24 @@ impl Serialize for SamplingAlgorithmType { #[doc = "SAS datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SasDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Datastore SAS secrets."] pub secrets: SasDatastoreSecrets, } impl SasDatastoreCredentials { - pub fn new(datastore_credentials: DatastoreCredentials, secrets: SasDatastoreSecrets) -> Self { - Self { - datastore_credentials, - secrets, - } + pub fn new(secrets: SasDatastoreSecrets) -> Self { + Self { secrets } } } #[doc = "Datastore SAS secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SasDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Storage container SAS token."] #[serde(rename = "sasToken", default, skip_serializing_if = "Option::is_none")] pub sas_token: Option, } impl SasDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - sas_token: None, - } + pub fn new() -> Self { + Self { sas_token: None } } } #[doc = "scale settings for AML Compute"] @@ -7868,8 +7720,6 @@ impl ServiceManagedResourcesSettings { #[doc = "Service Principal datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServicePrincipalDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Authority URL used for authentication."] #[serde(rename = "authorityUrl", default, skip_serializing_if = "Option::is_none")] pub authority_url: Option, @@ -7886,14 +7736,8 @@ pub struct ServicePrincipalDatastoreCredentials { pub tenant_id: String, } impl ServicePrincipalDatastoreCredentials { - pub fn new( - datastore_credentials: DatastoreCredentials, - client_id: String, - secrets: ServicePrincipalDatastoreSecrets, - tenant_id: String, - ) -> Self { + pub fn new(client_id: String, secrets: ServicePrincipalDatastoreSecrets, tenant_id: String) -> Self { Self { - datastore_credentials, authority_url: None, client_id, resource_url: None, @@ -7905,18 +7749,13 @@ impl ServicePrincipalDatastoreCredentials { #[doc = "Datastore Service Principal secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServicePrincipalDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Service principal secret."] #[serde(rename = "clientSecret", default, skip_serializing_if = "Option::is_none")] pub client_secret: Option, } impl ServicePrincipalDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - client_secret: None, - } + pub fn new() -> Self { + Self { client_secret: None } } } #[doc = "Details of customized scripts to execute for setting up the cluster."] @@ -8337,8 +8176,6 @@ impl SystemService { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TargetUtilizationScaleSettings { - #[serde(flatten)] - pub online_scale_settings: OnlineScaleSettings, #[doc = "The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances."] #[serde(rename = "maxInstances", default, skip_serializing_if = "Option::is_none")] pub max_instances: Option, @@ -8353,9 +8190,8 @@ pub struct TargetUtilizationScaleSettings { pub target_utilization_percentage: Option, } impl TargetUtilizationScaleSettings { - pub fn new(online_scale_settings: OnlineScaleSettings) -> Self { + pub fn new() -> Self { Self { - online_scale_settings, max_instances: None, min_instances: None, polling_interval: None, @@ -8366,8 +8202,6 @@ impl TargetUtilizationScaleSettings { #[doc = "TensorFlow distribution configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TensorFlow { - #[serde(flatten)] - pub distribution_configuration: DistributionConfiguration, #[doc = "Number of parameter server tasks."] #[serde(rename = "parameterServerCount", default, skip_serializing_if = "Option::is_none")] pub parameter_server_count: Option, @@ -8376,9 +8210,8 @@ pub struct TensorFlow { pub worker_count: Option, } impl TensorFlow { - pub fn new(distribution_configuration: DistributionConfiguration) -> Self { + pub fn new() -> Self { Self { - distribution_configuration, parameter_server_count: None, worker_count: None, } @@ -8830,13 +8663,10 @@ impl UserAssignedIdentity { } #[doc = "User identity configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UserIdentity { - #[serde(flatten)] - pub identity_configuration: IdentityConfiguration, -} +pub struct UserIdentity {} impl UserIdentity { - pub fn new(identity_configuration: IdentityConfiguration) -> Self { - Self { identity_configuration } + pub fn new() -> Self { + Self {} } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] @@ -8923,15 +8753,12 @@ pub mod virtual_machine_schema { #[doc = "Secrets related to a Machine Learning compute based on AKS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[serde(flatten)] pub virtual_machine_secrets_schema: VirtualMachineSecretsSchema, } impl VirtualMachineSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, virtual_machine_secrets_schema: VirtualMachineSecretsSchema::default(), } } diff --git a/services/mgmt/machinelearningservices/src/package_2022_10/models.rs b/services/mgmt/machinelearningservices/src/package_2022_10/models.rs index 845cd5937e..9f157c9bf7 100644 --- a/services/mgmt/machinelearningservices/src/package_2022_10/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2022_10/models.rs @@ -166,48 +166,35 @@ pub mod aks_schema { #[doc = "Account key datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AccountKeyDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Datastore account key secrets."] pub secrets: AccountKeyDatastoreSecrets, } impl AccountKeyDatastoreCredentials { - pub fn new(datastore_credentials: DatastoreCredentials, secrets: AccountKeyDatastoreSecrets) -> Self { - Self { - datastore_credentials, - secrets, - } + pub fn new(secrets: AccountKeyDatastoreSecrets) -> Self { + Self { secrets } } } #[doc = "Datastore account key secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AccountKeyDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Storage account key."] #[serde(default, skip_serializing_if = "Option::is_none")] pub key: Option, } impl AccountKeyDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - key: None, - } + pub fn new() -> Self { + Self { key: None } } } #[doc = "Secrets related to a Machine Learning compute based on AKS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AksComputeSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[serde(flatten)] pub aks_compute_secrets_properties: AksComputeSecretsProperties, } impl AksComputeSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, aks_compute_secrets_properties: AksComputeSecretsProperties::default(), } } @@ -678,13 +665,10 @@ impl AmlOperationListResult { } #[doc = "AML Token identity configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AmlToken { - #[serde(flatten)] - pub identity_configuration: IdentityConfiguration, -} +pub struct AmlToken {} impl AmlToken { - pub fn new(identity_configuration: IdentityConfiguration) -> Self { - Self { identity_configuration } + pub fn new() -> Self { + Self {} } } #[doc = "Features enabled for a workspace"] @@ -769,14 +753,6 @@ impl AssetJobOutput { Self::default() } } -#[doc = "Base definition for asset references."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AssetReferenceBase {} -impl AssetReferenceBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine which reference method to use for an asset."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "referenceType")] @@ -802,13 +778,10 @@ impl AssignedUser { } #[doc = "Forecast horizon determined automatically by system."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutoForecastHorizon { - #[serde(flatten)] - pub forecast_horizon: ForecastHorizon, -} +pub struct AutoForecastHorizon {} impl AutoForecastHorizon { - pub fn new(forecast_horizon: ForecastHorizon) -> Self { - Self { forecast_horizon } + pub fn new() -> Self { + Self {} } } #[doc = "AutoMLJob class.\r\nUse this class for executing AutoML tasks like Classification/Regression etc.\r\nSee TaskType enum for all the tasks supported."] @@ -882,13 +855,10 @@ pub enum AutoMlVerticalUnion { } #[doc = "N-Cross validations determined automatically."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutoNCrossValidations { - #[serde(flatten)] - pub n_cross_validations: NCrossValidations, -} +pub struct AutoNCrossValidations {} impl AutoNCrossValidations { - pub fn new(n_cross_validations: NCrossValidations) -> Self { - Self { n_cross_validations } + pub fn new() -> Self { + Self {} } } #[doc = "Auto pause properties"] @@ -957,36 +927,25 @@ impl AutoScaleProperties { } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutoSeasonality { - #[serde(flatten)] - pub seasonality: Seasonality, -} +pub struct AutoSeasonality {} impl AutoSeasonality { - pub fn new(seasonality: Seasonality) -> Self { - Self { seasonality } + pub fn new() -> Self { + Self {} } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutoTargetLags { - #[serde(flatten)] - pub target_lags: TargetLags, -} +pub struct AutoTargetLags {} impl AutoTargetLags { - pub fn new(target_lags: TargetLags) -> Self { - Self { target_lags } + pub fn new() -> Self { + Self {} } } #[doc = "Target lags rolling window determined automatically."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutoTargetRollingWindowSize { - #[serde(flatten)] - pub target_rolling_window_size: TargetRollingWindowSize, -} +pub struct AutoTargetRollingWindowSize {} impl AutoTargetRollingWindowSize { - pub fn new(target_rolling_window_size: TargetRollingWindowSize) -> Self { - Self { - target_rolling_window_size, - } + pub fn new() -> Self { + Self {} } } #[doc = "Azure Blob datastore configuration."] @@ -1398,13 +1357,10 @@ impl BatchRetrySettings { } #[doc = "Defines a Sampling Algorithm that generates values based on previous values"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BayesianSamplingAlgorithm { - #[serde(flatten)] - pub sampling_algorithm: SamplingAlgorithm, -} +pub struct BayesianSamplingAlgorithm {} impl BayesianSamplingAlgorithm { - pub fn new(sampling_algorithm: SamplingAlgorithm) -> Self { - Self { sampling_algorithm } + pub fn new() -> Self { + Self {} } } #[doc = "Enum for all classification models supported by AutoML."] @@ -1481,8 +1437,6 @@ impl BuildContext { #[doc = "Certificate datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Authority URL used for authentication."] #[serde(rename = "authorityUrl", default, skip_serializing_if = "Option::is_none")] pub authority_url: Option, @@ -1501,15 +1455,8 @@ pub struct CertificateDatastoreCredentials { pub thumbprint: String, } impl CertificateDatastoreCredentials { - pub fn new( - datastore_credentials: DatastoreCredentials, - client_id: String, - secrets: CertificateDatastoreSecrets, - tenant_id: String, - thumbprint: String, - ) -> Self { + pub fn new(client_id: String, secrets: CertificateDatastoreSecrets, tenant_id: String, thumbprint: String) -> Self { Self { - datastore_credentials, authority_url: None, client_id, resource_url: None, @@ -1522,18 +1469,13 @@ impl CertificateDatastoreCredentials { #[doc = "Datastore certificate secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Service principal certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub certificate: Option, } impl CertificateDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - certificate: None, - } + pub fn new() -> Self { + Self { certificate: None } } } #[doc = "Classification task in AutoML Table vertical."] @@ -3241,14 +3183,6 @@ impl ComputeSchedules { Self::default() } } -#[doc = "Secrets related to a Machine Learning compute. Might differ for every type of compute."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ComputeSecrets {} -impl ComputeSecrets { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of compute"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "computeType")] @@ -3623,14 +3557,12 @@ impl CronTrigger { #[doc = "The desired maximum forecast horizon in units of time-series frequency."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomForecastHorizon { - #[serde(flatten)] - pub forecast_horizon: ForecastHorizon, #[doc = "[Required] Forecast horizon value."] pub value: i32, } impl CustomForecastHorizon { - pub fn new(forecast_horizon: ForecastHorizon, value: i32) -> Self { - Self { forecast_horizon, value } + pub fn new(value: i32) -> Self { + Self { value } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] @@ -3666,56 +3598,42 @@ impl CustomModelJobOutput { #[doc = "N-Cross validations are specified by user."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomNCrossValidations { - #[serde(flatten)] - pub n_cross_validations: NCrossValidations, #[doc = "[Required] N-Cross validations value."] pub value: i32, } impl CustomNCrossValidations { - pub fn new(n_cross_validations: NCrossValidations, value: i32) -> Self { - Self { - n_cross_validations, - value, - } + pub fn new(value: i32) -> Self { + Self { value } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomSeasonality { - #[serde(flatten)] - pub seasonality: Seasonality, #[doc = "[Required] Seasonality value."] pub value: i32, } impl CustomSeasonality { - pub fn new(seasonality: Seasonality, value: i32) -> Self { - Self { seasonality, value } + pub fn new(value: i32) -> Self { + Self { value } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomTargetLags { - #[serde(flatten)] - pub target_lags: TargetLags, #[doc = "[Required] Set target lags values."] pub values: Vec, } impl CustomTargetLags { - pub fn new(target_lags: TargetLags, values: Vec) -> Self { - Self { target_lags, values } + pub fn new(values: Vec) -> Self { + Self { values } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomTargetRollingWindowSize { - #[serde(flatten)] - pub target_rolling_window_size: TargetRollingWindowSize, #[doc = "[Required] TargetRollingWindowSize value."] pub value: i32, } impl CustomTargetRollingWindowSize { - pub fn new(target_rolling_window_size: TargetRollingWindowSize, value: i32) -> Self { - Self { - target_rolling_window_size, - value, - } + pub fn new(value: i32) -> Self { + Self { value } } } #[doc = "Container for data asset versions."] @@ -3830,8 +3748,6 @@ pub mod data_lake_analytics_schema { #[doc = "Reference to an asset via its path in a datastore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataPathAssetReference { - #[serde(flatten)] - pub asset_reference_base: AssetReferenceBase, #[doc = "ARM resource ID of the datastore where the asset is located."] #[serde(rename = "datastoreId", default, skip_serializing_if = "Option::is_none")] pub datastore_id: Option, @@ -3840,9 +3756,8 @@ pub struct DataPathAssetReference { pub path: Option, } impl DataPathAssetReference { - pub fn new(asset_reference_base: AssetReferenceBase) -> Self { + pub fn new() -> Self { Self { - asset_reference_base, datastore_id: None, path: None, } @@ -3978,15 +3893,12 @@ impl Databricks { #[doc = "Secrets related to a Machine Learning compute based on Databricks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DatabricksComputeSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[serde(flatten)] pub databricks_compute_secrets_properties: DatabricksComputeSecretsProperties, } impl DatabricksComputeSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, databricks_compute_secrets_properties: DatabricksComputeSecretsProperties::default(), } } @@ -4058,14 +3970,6 @@ pub enum DatastoreUnion { AzureDataLakeGen2(AzureDataLakeGen2Datastore), AzureFile(AzureFileDatastore), } -#[doc = "Base definition for datastore credentials."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DatastoreCredentials {} -impl DatastoreCredentials { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine the datastore credentials type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "credentialsType")] @@ -4117,14 +4021,6 @@ impl DatastoreResourceArmPaginatedResult { Self::default() } } -#[doc = "Base definition for datastore secrets."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DatastoreSecrets {} -impl DatastoreSecrets { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine the datastore secrets type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "secretsType")] @@ -4176,13 +4072,10 @@ impl Serialize for DatastoreType { } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DefaultScaleSettings { - #[serde(flatten)] - pub online_scale_settings: OnlineScaleSettings, -} +pub struct DefaultScaleSettings {} impl DefaultScaleSettings { - pub fn new(online_scale_settings: OnlineScaleSettings) -> Self { - Self { online_scale_settings } + pub fn new() -> Self { + Self {} } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -4456,14 +4349,6 @@ impl DiagnoseWorkspaceParameters { Self::default() } } -#[doc = "Base definition for job distribution configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DistributionConfiguration {} -impl DistributionConfiguration { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine the job distribution type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "distributionType")] @@ -4913,16 +4798,13 @@ impl Serialize for EndpointProvisioningState { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct EndpointScheduleAction { - #[serde(flatten)] - pub schedule_action_base: ScheduleActionBase, #[doc = "[Required] Defines Schedule action definition details.\r\n"] #[serde(rename = "endpointInvocationDefinition")] pub endpoint_invocation_definition: serde_json::Value, } impl EndpointScheduleAction { - pub fn new(schedule_action_base: ScheduleActionBase, endpoint_invocation_definition: serde_json::Value) -> Self { + pub fn new(endpoint_invocation_definition: serde_json::Value) -> Self { Self { - schedule_action_base, endpoint_invocation_definition, } } @@ -5520,14 +5402,6 @@ impl FlavorData { Self::default() } } -#[doc = "The desired maximum forecast horizon in units of time-series frequency."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ForecastHorizon {} -impl ForecastHorizon { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine forecast horizon selection mode."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "mode")] @@ -5840,13 +5714,10 @@ impl Serialize for Goal { } #[doc = "Defines a Sampling Algorithm that exhaustively generates every value combination in the space"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GridSamplingAlgorithm { - #[serde(flatten)] - pub sampling_algorithm: SamplingAlgorithm, -} +pub struct GridSamplingAlgorithm {} impl GridSamplingAlgorithm { - pub fn new(sampling_algorithm: SamplingAlgorithm) -> Self { - Self { sampling_algorithm } + pub fn new() -> Self { + Self {} } } #[doc = "A HDInsight compute."] @@ -5897,26 +5768,13 @@ impl HdInsightSchema { #[doc = "Reference to an asset via its ARM resource ID."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IdAssetReference { - #[serde(flatten)] - pub asset_reference_base: AssetReferenceBase, #[doc = "[Required] ARM resource ID of the asset."] #[serde(rename = "assetId")] pub asset_id: String, } impl IdAssetReference { - pub fn new(asset_reference_base: AssetReferenceBase, asset_id: String) -> Self { - Self { - asset_reference_base, - asset_id, - } - } -} -#[doc = "Base definition for identity configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct IdentityConfiguration {} -impl IdentityConfiguration { - pub fn new() -> Self { - Self {} + pub fn new(asset_id: String) -> Self { + Self { asset_id } } } #[doc = "Enum to determine identity framework."] @@ -6982,18 +6840,13 @@ impl JobResourceConfiguration { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobScheduleAction { - #[serde(flatten)] - pub schedule_action_base: ScheduleActionBase, #[doc = "Base definition for a job."] #[serde(rename = "jobDefinition")] pub job_definition: JobBaseUnion, } impl JobScheduleAction { - pub fn new(schedule_action_base: ScheduleActionBase, job_definition: JobBaseUnion) -> Self { - Self { - schedule_action_base, - job_definition, - } + pub fn new(job_definition: JobBaseUnion) -> Self { + Self { job_definition } } } #[doc = "Job endpoint definition"] @@ -7575,8 +7428,6 @@ impl MlTableJobOutput { #[doc = "Managed identity configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManagedIdentity { - #[serde(flatten)] - pub identity_configuration: IdentityConfiguration, #[doc = "Specifies a user-assigned identity by client ID. For system-assigned, do not set this field."] #[serde(rename = "clientId", default, skip_serializing_if = "Option::is_none")] pub client_id: Option, @@ -7588,9 +7439,8 @@ pub struct ManagedIdentity { pub resource_id: Option, } impl ManagedIdentity { - pub fn new(identity_configuration: IdentityConfiguration) -> Self { + pub fn new() -> Self { Self { - identity_configuration, client_id: None, object_id: None, resource_id: None, @@ -7864,28 +7714,17 @@ impl ModelVersionResourceArmPaginatedResult { #[doc = "MPI distribution configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Mpi { - #[serde(flatten)] - pub distribution_configuration: DistributionConfiguration, #[doc = "Number of processes per MPI node."] #[serde(rename = "processCountPerInstance", default, skip_serializing_if = "Option::is_none")] pub process_count_per_instance: Option, } impl Mpi { - pub fn new(distribution_configuration: DistributionConfiguration) -> Self { + pub fn new() -> Self { Self { - distribution_configuration, process_count_per_instance: None, } } } -#[doc = "N-Cross validations value."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct NCrossValidations {} -impl NCrossValidations { - pub fn new() -> Self { - Self {} - } -} #[doc = "Determines how N-Cross validations value is determined."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "mode")] @@ -8015,13 +7854,10 @@ impl NoneAuthTypeWorkspaceConnectionProperties { } #[doc = "Empty/none datastore credentials."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct NoneDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, -} +pub struct NoneDatastoreCredentials {} impl NoneDatastoreCredentials { - pub fn new(datastore_credentials: DatastoreCredentials) -> Self { - Self { datastore_credentials } + pub fn new() -> Self { + Self {} } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -8333,14 +8169,6 @@ impl OnlineRequestSettings { Self::default() } } -#[doc = "Online deployment scaling configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OnlineScaleSettings {} -impl OnlineScaleSettings { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "scaleType")] pub enum OnlineScaleSettingsUnion { @@ -8464,8 +8292,6 @@ impl Serialize for OutputDeliveryMode { #[doc = "Reference to an asset via its path in a job output."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OutputPathAssetReference { - #[serde(flatten)] - pub asset_reference_base: AssetReferenceBase, #[doc = "ARM resource ID of the job."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -8474,12 +8300,8 @@ pub struct OutputPathAssetReference { pub path: Option, } impl OutputPathAssetReference { - pub fn new(asset_reference_base: AssetReferenceBase) -> Self { - Self { - asset_reference_base, - job_id: None, - path: None, - } + pub fn new() -> Self { + Self { job_id: None, path: None } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] @@ -9013,16 +8835,13 @@ impl Serialize for PublicNetworkAccessType { #[doc = "PyTorch distribution configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PyTorch { - #[serde(flatten)] - pub distribution_configuration: DistributionConfiguration, #[doc = "Number of processes per node."] #[serde(rename = "processCountPerInstance", default, skip_serializing_if = "Option::is_none")] pub process_count_per_instance: Option, } impl PyTorch { - pub fn new(distribution_configuration: DistributionConfiguration) -> Self { + pub fn new() -> Self { Self { - distribution_configuration, process_count_per_instance: None, } } @@ -9108,8 +8927,6 @@ impl QuotaUpdateParameters { #[doc = "Defines a Sampling Algorithm that generates values randomly"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RandomSamplingAlgorithm { - #[serde(flatten)] - pub sampling_algorithm: SamplingAlgorithm, #[doc = "The specific type of random algorithm"] #[serde(default, skip_serializing_if = "Option::is_none")] pub rule: Option, @@ -9118,12 +8935,8 @@ pub struct RandomSamplingAlgorithm { pub seed: Option, } impl RandomSamplingAlgorithm { - pub fn new(sampling_algorithm: SamplingAlgorithm) -> Self { - Self { - sampling_algorithm, - rule: None, - seed: None, - } + pub fn new() -> Self { + Self { rule: None, seed: None } } } #[doc = "The specific type of random algorithm"] @@ -9679,14 +9492,6 @@ impl SasAuthTypeWorkspaceConnectionProperties { } } } -#[doc = "The Sampling Algorithm used to generate hyperparameter values, along with properties to\r\nconfigure the algorithm"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SamplingAlgorithm {} -impl SamplingAlgorithm { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "samplingAlgorithmType")] pub enum SamplingAlgorithmUnion { @@ -9735,34 +9540,24 @@ impl Serialize for SamplingAlgorithmType { #[doc = "SAS datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SasDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Datastore SAS secrets."] pub secrets: SasDatastoreSecrets, } impl SasDatastoreCredentials { - pub fn new(datastore_credentials: DatastoreCredentials, secrets: SasDatastoreSecrets) -> Self { - Self { - datastore_credentials, - secrets, - } + pub fn new(secrets: SasDatastoreSecrets) -> Self { + Self { secrets } } } #[doc = "Datastore SAS secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SasDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Storage container SAS token."] #[serde(rename = "sasToken", default, skip_serializing_if = "Option::is_none")] pub sas_token: Option, } impl SasDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - sas_token: None, - } + pub fn new() -> Self { + Self { sas_token: None } } } #[doc = "scale settings for AML Compute"] @@ -9863,13 +9658,6 @@ impl Schedule { } } } -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ScheduleActionBase {} -impl ScheduleActionBase { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "actionType")] pub enum ScheduleActionBaseUnion { @@ -10164,14 +9952,6 @@ impl ScriptsToExecute { Self::default() } } -#[doc = "Forecasting seasonality."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Seasonality {} -impl Seasonality { - pub fn new() -> Self { - Self {} - } -} #[doc = "Forecasting seasonality mode."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "mode")] @@ -10312,8 +10092,6 @@ impl ServiceManagedResourcesSettings { #[doc = "Service Principal datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServicePrincipalDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Authority URL used for authentication."] #[serde(rename = "authorityUrl", default, skip_serializing_if = "Option::is_none")] pub authority_url: Option, @@ -10330,14 +10108,8 @@ pub struct ServicePrincipalDatastoreCredentials { pub tenant_id: String, } impl ServicePrincipalDatastoreCredentials { - pub fn new( - datastore_credentials: DatastoreCredentials, - client_id: String, - secrets: ServicePrincipalDatastoreSecrets, - tenant_id: String, - ) -> Self { + pub fn new(client_id: String, secrets: ServicePrincipalDatastoreSecrets, tenant_id: String) -> Self { Self { - datastore_credentials, authority_url: None, client_id, resource_url: None, @@ -10349,18 +10121,13 @@ impl ServicePrincipalDatastoreCredentials { #[doc = "Datastore Service Principal secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServicePrincipalDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Service principal secret."] #[serde(rename = "clientSecret", default, skip_serializing_if = "Option::is_none")] pub client_secret: Option, } impl ServicePrincipalDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - client_secret: None, - } + pub fn new() -> Self { + Self { client_secret: None } } } #[doc = "Details of customized scripts to execute for setting up the cluster."] @@ -11075,14 +10842,6 @@ impl Serialize for TargetAggregationFunction { } } } -#[doc = "The number of past periods to lag from the target column."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TargetLags {} -impl TargetLags { - pub fn new() -> Self { - Self {} - } -} #[doc = "Target lags selection modes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "mode")] @@ -11127,14 +10886,6 @@ impl Serialize for TargetLagsMode { } } } -#[doc = "Forecasting target rolling window size."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TargetRollingWindowSize {} -impl TargetRollingWindowSize { - pub fn new() -> Self { - Self {} - } -} #[doc = "Target rolling windows size mode."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "mode")] @@ -11181,8 +10932,6 @@ impl Serialize for TargetRollingWindowSizeMode { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TargetUtilizationScaleSettings { - #[serde(flatten)] - pub online_scale_settings: OnlineScaleSettings, #[doc = "The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances."] #[serde(rename = "maxInstances", default, skip_serializing_if = "Option::is_none")] pub max_instances: Option, @@ -11197,9 +10946,8 @@ pub struct TargetUtilizationScaleSettings { pub target_utilization_percentage: Option, } impl TargetUtilizationScaleSettings { - pub fn new(online_scale_settings: OnlineScaleSettings) -> Self { + pub fn new() -> Self { Self { - online_scale_settings, max_instances: None, min_instances: None, polling_interval: None, @@ -11264,8 +11012,6 @@ impl Serialize for TaskType { #[doc = "TensorFlow distribution configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TensorFlow { - #[serde(flatten)] - pub distribution_configuration: DistributionConfiguration, #[doc = "Number of parameter server tasks."] #[serde(rename = "parameterServerCount", default, skip_serializing_if = "Option::is_none")] pub parameter_server_count: Option, @@ -11274,9 +11020,8 @@ pub struct TensorFlow { pub worker_count: Option, } impl TensorFlow { - pub fn new(distribution_configuration: DistributionConfiguration) -> Self { + pub fn new() -> Self { Self { - distribution_configuration, parameter_server_count: None, worker_count: None, } @@ -11920,13 +11665,10 @@ impl UserAssignedIdentity { } #[doc = "User identity configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UserIdentity { - #[serde(flatten)] - pub identity_configuration: IdentityConfiguration, -} +pub struct UserIdentity {} impl UserIdentity { - pub fn new(identity_configuration: IdentityConfiguration) -> Self { - Self { identity_configuration } + pub fn new() -> Self { + Self {} } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] @@ -12054,15 +11796,12 @@ pub mod virtual_machine_schema { #[doc = "Secrets related to a Machine Learning compute based on AKS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[serde(flatten)] pub virtual_machine_secrets_schema: VirtualMachineSecretsSchema, } impl VirtualMachineSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, virtual_machine_secrets_schema: VirtualMachineSecretsSchema::default(), } } diff --git a/services/mgmt/machinelearningservices/src/package_2023_04/models.rs b/services/mgmt/machinelearningservices/src/package_2023_04/models.rs index 5e475464d5..a8cb856250 100644 --- a/services/mgmt/machinelearningservices/src/package_2023_04/models.rs +++ b/services/mgmt/machinelearningservices/src/package_2023_04/models.rs @@ -166,34 +166,24 @@ pub mod aks_schema { #[doc = "Account key datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AccountKeyDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Datastore account key secrets."] pub secrets: AccountKeyDatastoreSecrets, } impl AccountKeyDatastoreCredentials { - pub fn new(datastore_credentials: DatastoreCredentials, secrets: AccountKeyDatastoreSecrets) -> Self { - Self { - datastore_credentials, - secrets, - } + pub fn new(secrets: AccountKeyDatastoreSecrets) -> Self { + Self { secrets } } } #[doc = "Datastore account key secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AccountKeyDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Storage account key."] #[serde(default, skip_serializing_if = "Option::is_none")] pub key: Option, } impl AccountKeyDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - key: None, - } + pub fn new() -> Self { + Self { key: None } } } #[doc = "Details of ACR account to be used for the Registry"] @@ -212,15 +202,12 @@ impl AcrDetails { #[doc = "Secrets related to a Machine Learning compute based on AKS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AksComputeSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[serde(flatten)] pub aks_compute_secrets_properties: AksComputeSecretsProperties, } impl AksComputeSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, aks_compute_secrets_properties: AksComputeSecretsProperties::default(), } } @@ -266,13 +253,10 @@ impl AksNetworkingConfiguration { } #[doc = "All nodes means the service will be running on all of the nodes of the job"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AllNodes { - #[serde(flatten)] - pub nodes: Nodes, -} +pub struct AllNodes {} impl AllNodes { - pub fn new(nodes: Nodes) -> Self { - Self { nodes } + pub fn new() -> Self { + Self {} } } #[doc = "An Azure Machine Learning compute."] @@ -702,13 +686,10 @@ impl AmlOperationListResult { } #[doc = "AML Token identity configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AmlToken { - #[serde(flatten)] - pub identity_configuration: IdentityConfiguration, -} +pub struct AmlToken {} impl AmlToken { - pub fn new(identity_configuration: IdentityConfiguration) -> Self { - Self { identity_configuration } + pub fn new() -> Self { + Self {} } } #[doc = "Features enabled for a workspace"] @@ -850,14 +831,6 @@ impl Serialize for AssetProvisioningState { } } } -#[doc = "Base definition for asset references."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AssetReferenceBase {} -impl AssetReferenceBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine which reference method to use for an asset."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "referenceType")] @@ -883,13 +856,10 @@ impl AssignedUser { } #[doc = "Forecast horizon determined automatically by system."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutoForecastHorizon { - #[serde(flatten)] - pub forecast_horizon: ForecastHorizon, -} +pub struct AutoForecastHorizon {} impl AutoForecastHorizon { - pub fn new(forecast_horizon: ForecastHorizon) -> Self { - Self { forecast_horizon } + pub fn new() -> Self { + Self {} } } #[doc = "AutoMLJob class.\r\nUse this class for executing AutoML tasks like Classification/Regression etc.\r\nSee TaskType enum for all the tasks supported."] @@ -963,13 +933,10 @@ pub enum AutoMlVerticalUnion { } #[doc = "N-Cross validations determined automatically."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutoNCrossValidations { - #[serde(flatten)] - pub n_cross_validations: NCrossValidations, -} +pub struct AutoNCrossValidations {} impl AutoNCrossValidations { - pub fn new(n_cross_validations: NCrossValidations) -> Self { - Self { n_cross_validations } + pub fn new() -> Self { + Self {} } } #[doc = "Auto pause properties"] @@ -1038,36 +1005,25 @@ impl AutoScaleProperties { } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutoSeasonality { - #[serde(flatten)] - pub seasonality: Seasonality, -} +pub struct AutoSeasonality {} impl AutoSeasonality { - pub fn new(seasonality: Seasonality) -> Self { - Self { seasonality } + pub fn new() -> Self { + Self {} } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutoTargetLags { - #[serde(flatten)] - pub target_lags: TargetLags, -} +pub struct AutoTargetLags {} impl AutoTargetLags { - pub fn new(target_lags: TargetLags) -> Self { - Self { target_lags } + pub fn new() -> Self { + Self {} } } #[doc = "Target lags rolling window determined automatically."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutoTargetRollingWindowSize { - #[serde(flatten)] - pub target_rolling_window_size: TargetRollingWindowSize, -} +pub struct AutoTargetRollingWindowSize {} impl AutoTargetRollingWindowSize { - pub fn new(target_rolling_window_size: TargetRollingWindowSize) -> Self { - Self { - target_rolling_window_size, - } + pub fn new() -> Self { + Self {} } } #[doc = "Azure Blob datastore configuration."] @@ -1479,13 +1435,10 @@ impl BatchRetrySettings { } #[doc = "Defines a Sampling Algorithm that generates values based on previous values"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BayesianSamplingAlgorithm { - #[serde(flatten)] - pub sampling_algorithm: SamplingAlgorithm, -} +pub struct BayesianSamplingAlgorithm {} impl BayesianSamplingAlgorithm { - pub fn new(sampling_algorithm: SamplingAlgorithm) -> Self { - Self { sampling_algorithm } + pub fn new() -> Self { + Self {} } } #[doc = "Describes the bind options for the container"] @@ -1596,8 +1549,6 @@ impl BuildContext { #[doc = "Certificate datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Authority URL used for authentication."] #[serde(rename = "authorityUrl", default, skip_serializing_if = "Option::is_none")] pub authority_url: Option, @@ -1616,15 +1567,8 @@ pub struct CertificateDatastoreCredentials { pub thumbprint: String, } impl CertificateDatastoreCredentials { - pub fn new( - datastore_credentials: DatastoreCredentials, - client_id: String, - secrets: CertificateDatastoreSecrets, - tenant_id: String, - thumbprint: String, - ) -> Self { + pub fn new(client_id: String, secrets: CertificateDatastoreSecrets, tenant_id: String, thumbprint: String) -> Self { Self { - datastore_credentials, authority_url: None, client_id, resource_url: None, @@ -1637,18 +1581,13 @@ impl CertificateDatastoreCredentials { #[doc = "Datastore certificate secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Service principal certificate."] #[serde(default, skip_serializing_if = "Option::is_none")] pub certificate: Option, } impl CertificateDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - certificate: None, - } + pub fn new() -> Self { + Self { certificate: None } } } #[doc = "Classification task in AutoML Table vertical."] @@ -3379,14 +3318,6 @@ impl ComputeSchedules { Self::default() } } -#[doc = "Secrets related to a Machine Learning compute. Might differ for every type of compute."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ComputeSecrets {} -impl ComputeSecrets { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of compute"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "computeType")] @@ -3761,14 +3692,12 @@ impl CronTrigger { #[doc = "The desired maximum forecast horizon in units of time-series frequency."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomForecastHorizon { - #[serde(flatten)] - pub forecast_horizon: ForecastHorizon, #[doc = "[Required] Forecast horizon value."] pub value: i32, } impl CustomForecastHorizon { - pub fn new(forecast_horizon: ForecastHorizon, value: i32) -> Self { - Self { forecast_horizon, value } + pub fn new(value: i32) -> Self { + Self { value } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] @@ -3804,29 +3733,22 @@ impl CustomModelJobOutput { #[doc = "N-Cross validations are specified by user."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomNCrossValidations { - #[serde(flatten)] - pub n_cross_validations: NCrossValidations, #[doc = "[Required] N-Cross validations value."] pub value: i32, } impl CustomNCrossValidations { - pub fn new(n_cross_validations: NCrossValidations, value: i32) -> Self { - Self { - n_cross_validations, - value, - } + pub fn new(value: i32) -> Self { + Self { value } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomSeasonality { - #[serde(flatten)] - pub seasonality: Seasonality, #[doc = "[Required] Seasonality value."] pub value: i32, } impl CustomSeasonality { - pub fn new(seasonality: Seasonality, value: i32) -> Self { - Self { seasonality, value } + pub fn new(value: i32) -> Self { + Self { value } } } #[doc = "Specifies the custom service configuration"] @@ -3866,29 +3788,22 @@ impl CustomService { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomTargetLags { - #[serde(flatten)] - pub target_lags: TargetLags, #[doc = "[Required] Set target lags values."] pub values: Vec, } impl CustomTargetLags { - pub fn new(target_lags: TargetLags, values: Vec) -> Self { - Self { target_lags, values } + pub fn new(values: Vec) -> Self { + Self { values } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomTargetRollingWindowSize { - #[serde(flatten)] - pub target_rolling_window_size: TargetRollingWindowSize, #[doc = "[Required] TargetRollingWindowSize value."] pub value: i32, } impl CustomTargetRollingWindowSize { - pub fn new(target_rolling_window_size: TargetRollingWindowSize, value: i32) -> Self { - Self { - target_rolling_window_size, - value, - } + pub fn new(value: i32) -> Self { + Self { value } } } #[doc = "Container for data asset versions."] @@ -4003,8 +3918,6 @@ pub mod data_lake_analytics_schema { #[doc = "Reference to an asset via its path in a datastore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataPathAssetReference { - #[serde(flatten)] - pub asset_reference_base: AssetReferenceBase, #[doc = "ARM resource ID of the datastore where the asset is located."] #[serde(rename = "datastoreId", default, skip_serializing_if = "Option::is_none")] pub datastore_id: Option, @@ -4013,9 +3926,8 @@ pub struct DataPathAssetReference { pub path: Option, } impl DataPathAssetReference { - pub fn new(asset_reference_base: AssetReferenceBase) -> Self { + pub fn new() -> Self { Self { - asset_reference_base, datastore_id: None, path: None, } @@ -4151,15 +4063,12 @@ impl Databricks { #[doc = "Secrets related to a Machine Learning compute based on Databricks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DatabricksComputeSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[serde(flatten)] pub databricks_compute_secrets_properties: DatabricksComputeSecretsProperties, } impl DatabricksComputeSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, databricks_compute_secrets_properties: DatabricksComputeSecretsProperties::default(), } } @@ -4231,14 +4140,6 @@ pub enum DatastoreUnion { AzureDataLakeGen2(AzureDataLakeGen2Datastore), AzureFile(AzureFileDatastore), } -#[doc = "Base definition for datastore credentials."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DatastoreCredentials {} -impl DatastoreCredentials { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine the datastore credentials type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "credentialsType")] @@ -4290,14 +4191,6 @@ impl DatastoreResourceArmPaginatedResult { Self::default() } } -#[doc = "Base definition for datastore secrets."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DatastoreSecrets {} -impl DatastoreSecrets { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine the datastore secrets type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "secretsType")] @@ -4349,13 +4242,10 @@ impl Serialize for DatastoreType { } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DefaultScaleSettings { - #[serde(flatten)] - pub online_scale_settings: OnlineScaleSettings, -} +pub struct DefaultScaleSettings {} impl DefaultScaleSettings { - pub fn new(online_scale_settings: OnlineScaleSettings) -> Self { - Self { online_scale_settings } + pub fn new() -> Self { + Self {} } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -4629,14 +4519,6 @@ impl DiagnoseWorkspaceParameters { Self::default() } } -#[doc = "Base definition for job distribution configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DistributionConfiguration {} -impl DistributionConfiguration { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine the job distribution type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "distributionType")] @@ -5172,16 +5054,13 @@ impl Serialize for EndpointProvisioningState { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct EndpointScheduleAction { - #[serde(flatten)] - pub schedule_action_base: ScheduleActionBase, #[doc = "[Required] Defines Schedule action definition details.\r\n"] #[serde(rename = "endpointInvocationDefinition")] pub endpoint_invocation_definition: serde_json::Value, } impl EndpointScheduleAction { - pub fn new(schedule_action_base: ScheduleActionBase, endpoint_invocation_definition: serde_json::Value) -> Self { + pub fn new(endpoint_invocation_definition: serde_json::Value) -> Self { Self { - schedule_action_base, endpoint_invocation_definition, } } @@ -5888,14 +5767,6 @@ impl FlavorData { Self::default() } } -#[doc = "The desired maximum forecast horizon in units of time-series frequency."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ForecastHorizon {} -impl ForecastHorizon { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine forecast horizon selection mode."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "mode")] @@ -6208,13 +6079,10 @@ impl Serialize for Goal { } #[doc = "Defines a Sampling Algorithm that exhaustively generates every value combination in the space"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GridSamplingAlgorithm { - #[serde(flatten)] - pub sampling_algorithm: SamplingAlgorithm, -} +pub struct GridSamplingAlgorithm {} impl GridSamplingAlgorithm { - pub fn new(sampling_algorithm: SamplingAlgorithm) -> Self { - Self { sampling_algorithm } + pub fn new() -> Self { + Self {} } } #[doc = "A HDInsight compute."] @@ -6265,26 +6133,13 @@ impl HdInsightSchema { #[doc = "Reference to an asset via its ARM resource ID."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IdAssetReference { - #[serde(flatten)] - pub asset_reference_base: AssetReferenceBase, #[doc = "[Required] ARM resource ID of the asset."] #[serde(rename = "assetId")] pub asset_id: String, } impl IdAssetReference { - pub fn new(asset_reference_base: AssetReferenceBase, asset_id: String) -> Self { - Self { - asset_reference_base, - asset_id, - } - } -} -#[doc = "Base definition for identity configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct IdentityConfiguration {} -impl IdentityConfiguration { - pub fn new() -> Self { - Self {} + pub fn new(asset_id: String) -> Self { + Self { asset_id } } } #[doc = "Enum to determine identity framework."] @@ -7442,18 +7297,13 @@ impl JobResourceConfiguration { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobScheduleAction { - #[serde(flatten)] - pub schedule_action_base: ScheduleActionBase, #[doc = "Base definition for a job."] #[serde(rename = "jobDefinition")] pub job_definition: JobBaseUnion, } impl JobScheduleAction { - pub fn new(schedule_action_base: ScheduleActionBase, job_definition: JobBaseUnion) -> Self { - Self { - schedule_action_base, - job_definition, - } + pub fn new(job_definition: JobBaseUnion) -> Self { + Self { job_definition } } } #[doc = "Job endpoint definition"] @@ -8038,8 +7888,6 @@ impl MlTableJobOutput { #[doc = "Managed identity configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManagedIdentity { - #[serde(flatten)] - pub identity_configuration: IdentityConfiguration, #[doc = "Specifies a user-assigned identity by client ID. For system-assigned, do not set this field."] #[serde(rename = "clientId", default, skip_serializing_if = "Option::is_none")] pub client_id: Option, @@ -8051,9 +7899,8 @@ pub struct ManagedIdentity { pub resource_id: Option, } impl ManagedIdentity { - pub fn new(identity_configuration: IdentityConfiguration) -> Self { + pub fn new() -> Self { Self { - identity_configuration, client_id: None, object_id: None, resource_id: None, @@ -8336,28 +8183,17 @@ impl ModelVersionResourceArmPaginatedResult { #[doc = "MPI distribution configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Mpi { - #[serde(flatten)] - pub distribution_configuration: DistributionConfiguration, #[doc = "Number of processes per MPI node."] #[serde(rename = "processCountPerInstance", default, skip_serializing_if = "Option::is_none")] pub process_count_per_instance: Option, } impl Mpi { - pub fn new(distribution_configuration: DistributionConfiguration) -> Self { + pub fn new() -> Self { Self { - distribution_configuration, process_count_per_instance: None, } } } -#[doc = "N-Cross validations value."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct NCrossValidations {} -impl NCrossValidations { - pub fn new() -> Self { - Self {} - } -} #[doc = "Determines how N-Cross validations value is determined."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "mode")] @@ -8473,14 +8309,6 @@ impl NodeStateCounts { Self::default() } } -#[doc = "Abstract Nodes definition"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Nodes {} -impl Nodes { - pub fn new() -> Self { - Self {} - } -} #[doc = "The enumerated types for the nodes value"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "nodesValueType")] @@ -8536,13 +8364,10 @@ impl NoneAuthTypeWorkspaceConnectionProperties { } #[doc = "Empty/none datastore credentials."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct NoneDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, -} +pub struct NoneDatastoreCredentials {} impl NoneDatastoreCredentials { - pub fn new(datastore_credentials: DatastoreCredentials) -> Self { - Self { datastore_credentials } + pub fn new() -> Self { + Self {} } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -8858,14 +8683,6 @@ impl OnlineRequestSettings { Self::default() } } -#[doc = "Online deployment scaling configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OnlineScaleSettings {} -impl OnlineScaleSettings { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "scaleType")] pub enum OnlineScaleSettingsUnion { @@ -8989,8 +8806,6 @@ impl Serialize for OutputDeliveryMode { #[doc = "Reference to an asset via its path in a job output."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OutputPathAssetReference { - #[serde(flatten)] - pub asset_reference_base: AssetReferenceBase, #[doc = "ARM resource ID of the job."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -8999,12 +8814,8 @@ pub struct OutputPathAssetReference { pub path: Option, } impl OutputPathAssetReference { - pub fn new(asset_reference_base: AssetReferenceBase) -> Self { - Self { - asset_reference_base, - job_id: None, - path: None, - } + pub fn new() -> Self { + Self { job_id: None, path: None } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] @@ -9198,13 +9009,6 @@ impl Password { Self::default() } } -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PendingUploadCredentialDto {} -impl PendingUploadCredentialDto { - pub fn new() -> Self { - Self {} - } -} #[doc = "Enum to determine the PendingUpload credentials type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "credentialType")] @@ -9692,16 +9496,13 @@ impl Serialize for PublicNetworkAccessType { #[doc = "PyTorch distribution configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PyTorch { - #[serde(flatten)] - pub distribution_configuration: DistributionConfiguration, #[doc = "Number of processes per node."] #[serde(rename = "processCountPerInstance", default, skip_serializing_if = "Option::is_none")] pub process_count_per_instance: Option, } impl PyTorch { - pub fn new(distribution_configuration: DistributionConfiguration) -> Self { + pub fn new() -> Self { Self { - distribution_configuration, process_count_per_instance: None, } } @@ -9787,8 +9588,6 @@ impl QuotaUpdateParameters { #[doc = "Defines a Sampling Algorithm that generates values randomly"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RandomSamplingAlgorithm { - #[serde(flatten)] - pub sampling_algorithm: SamplingAlgorithm, #[doc = "The specific type of random algorithm"] #[serde(default, skip_serializing_if = "Option::is_none")] pub rule: Option, @@ -9797,12 +9596,8 @@ pub struct RandomSamplingAlgorithm { pub seed: Option, } impl RandomSamplingAlgorithm { - pub fn new(sampling_algorithm: SamplingAlgorithm) -> Self { - Self { - sampling_algorithm, - rule: None, - seed: None, - } + pub fn new() -> Self { + Self { rule: None, seed: None } } } #[doc = "The specific type of random algorithm"] @@ -10553,26 +10348,13 @@ impl SasAuthTypeWorkspaceConnectionProperties { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SasCredentialDto { - #[serde(flatten)] - pub pending_upload_credential_dto: PendingUploadCredentialDto, #[doc = "Full SAS Uri, including the storage, container/blob path and SAS token"] #[serde(rename = "sasUri", default, skip_serializing_if = "Option::is_none")] pub sas_uri: Option, } impl SasCredentialDto { - pub fn new(pending_upload_credential_dto: PendingUploadCredentialDto) -> Self { - Self { - pending_upload_credential_dto, - sas_uri: None, - } - } -} -#[doc = "The Sampling Algorithm used to generate hyperparameter values, along with properties to\r\nconfigure the algorithm"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SamplingAlgorithm {} -impl SamplingAlgorithm { pub fn new() -> Self { - Self {} + Self { sas_uri: None } } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -10623,34 +10405,24 @@ impl Serialize for SamplingAlgorithmType { #[doc = "SAS datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SasDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Datastore SAS secrets."] pub secrets: SasDatastoreSecrets, } impl SasDatastoreCredentials { - pub fn new(datastore_credentials: DatastoreCredentials, secrets: SasDatastoreSecrets) -> Self { - Self { - datastore_credentials, - secrets, - } + pub fn new(secrets: SasDatastoreSecrets) -> Self { + Self { secrets } } } #[doc = "Datastore SAS secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SasDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Storage container SAS token."] #[serde(rename = "sasToken", default, skip_serializing_if = "Option::is_none")] pub sas_token: Option, } impl SasDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - sas_token: None, - } + pub fn new() -> Self { + Self { sas_token: None } } } #[doc = "scale settings for AML Compute"] @@ -10751,13 +10523,6 @@ impl Schedule { } } } -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ScheduleActionBase {} -impl ScheduleActionBase { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "actionType")] pub enum ScheduleActionBaseUnion { @@ -11052,14 +10817,6 @@ impl ScriptsToExecute { Self::default() } } -#[doc = "Forecasting seasonality."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Seasonality {} -impl Seasonality { - pub fn new() -> Self { - Self {} - } -} #[doc = "Forecasting seasonality mode."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "mode")] @@ -11200,8 +10957,6 @@ impl ServiceManagedResourcesSettings { #[doc = "Service Principal datastore credentials configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServicePrincipalDatastoreCredentials { - #[serde(flatten)] - pub datastore_credentials: DatastoreCredentials, #[doc = "Authority URL used for authentication."] #[serde(rename = "authorityUrl", default, skip_serializing_if = "Option::is_none")] pub authority_url: Option, @@ -11218,14 +10973,8 @@ pub struct ServicePrincipalDatastoreCredentials { pub tenant_id: String, } impl ServicePrincipalDatastoreCredentials { - pub fn new( - datastore_credentials: DatastoreCredentials, - client_id: String, - secrets: ServicePrincipalDatastoreSecrets, - tenant_id: String, - ) -> Self { + pub fn new(client_id: String, secrets: ServicePrincipalDatastoreSecrets, tenant_id: String) -> Self { Self { - datastore_credentials, authority_url: None, client_id, resource_url: None, @@ -11237,18 +10986,13 @@ impl ServicePrincipalDatastoreCredentials { #[doc = "Datastore Service Principal secrets."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServicePrincipalDatastoreSecrets { - #[serde(flatten)] - pub datastore_secrets: DatastoreSecrets, #[doc = "Service principal secret."] #[serde(rename = "clientSecret", default, skip_serializing_if = "Option::is_none")] pub client_secret: Option, } impl ServicePrincipalDatastoreSecrets { - pub fn new(datastore_secrets: DatastoreSecrets) -> Self { - Self { - datastore_secrets, - client_secret: None, - } + pub fn new() -> Self { + Self { client_secret: None } } } #[doc = "Details of customized scripts to execute for setting up the cluster."] @@ -12016,14 +11760,6 @@ impl Serialize for TargetAggregationFunction { } } } -#[doc = "The number of past periods to lag from the target column."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TargetLags {} -impl TargetLags { - pub fn new() -> Self { - Self {} - } -} #[doc = "Target lags selection modes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "mode")] @@ -12068,14 +11804,6 @@ impl Serialize for TargetLagsMode { } } } -#[doc = "Forecasting target rolling window size."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TargetRollingWindowSize {} -impl TargetRollingWindowSize { - pub fn new() -> Self { - Self {} - } -} #[doc = "Target rolling windows size mode."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "mode")] @@ -12122,8 +11850,6 @@ impl Serialize for TargetRollingWindowSizeMode { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TargetUtilizationScaleSettings { - #[serde(flatten)] - pub online_scale_settings: OnlineScaleSettings, #[doc = "The maximum number of instances that the deployment can scale to. The quota will be reserved for max_instances."] #[serde(rename = "maxInstances", default, skip_serializing_if = "Option::is_none")] pub max_instances: Option, @@ -12138,9 +11864,8 @@ pub struct TargetUtilizationScaleSettings { pub target_utilization_percentage: Option, } impl TargetUtilizationScaleSettings { - pub fn new(online_scale_settings: OnlineScaleSettings) -> Self { + pub fn new() -> Self { Self { - online_scale_settings, max_instances: None, min_instances: None, polling_interval: None, @@ -12205,8 +11930,6 @@ impl Serialize for TaskType { #[doc = "TensorFlow distribution configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TensorFlow { - #[serde(flatten)] - pub distribution_configuration: DistributionConfiguration, #[doc = "Number of parameter server tasks."] #[serde(rename = "parameterServerCount", default, skip_serializing_if = "Option::is_none")] pub parameter_server_count: Option, @@ -12215,9 +11938,8 @@ pub struct TensorFlow { pub worker_count: Option, } impl TensorFlow { - pub fn new(distribution_configuration: DistributionConfiguration) -> Self { + pub fn new() -> Self { Self { - distribution_configuration, parameter_server_count: None, worker_count: None, } @@ -12895,13 +12617,10 @@ impl UserCreatedStorageAccount { } #[doc = "User identity configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UserIdentity { - #[serde(flatten)] - pub identity_configuration: IdentityConfiguration, -} +pub struct UserIdentity {} impl UserIdentity { - pub fn new(identity_configuration: IdentityConfiguration) -> Self { - Self { identity_configuration } + pub fn new() -> Self { + Self {} } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] @@ -13029,15 +12748,12 @@ pub mod virtual_machine_schema { #[doc = "Secrets related to a Machine Learning compute based on AKS."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineSecrets { - #[serde(flatten)] - pub compute_secrets: ComputeSecrets, #[serde(flatten)] pub virtual_machine_secrets_schema: VirtualMachineSecretsSchema, } impl VirtualMachineSecrets { - pub fn new(compute_secrets: ComputeSecrets) -> Self { + pub fn new() -> Self { Self { - compute_secrets, virtual_machine_secrets_schema: VirtualMachineSecretsSchema::default(), } } diff --git a/services/mgmt/managednetwork/src/package_2019_06_01_preview/models.rs b/services/mgmt/managednetwork/src/package_2019_06_01_preview/models.rs index 38a1625582..b43de1cb9f 100644 --- a/services/mgmt/managednetwork/src/package_2019_06_01_preview/models.rs +++ b/services/mgmt/managednetwork/src/package_2019_06_01_preview/models.rs @@ -92,8 +92,6 @@ impl ManagedNetwork { #[doc = "The Managed Network Group resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ManagedNetworkGroup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a Managed Network Group"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -238,8 +236,6 @@ impl ManagedNetworkListResult { #[doc = "The Managed Network Peering Policy resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ManagedNetworkPeeringPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a Managed Network Peering Policy"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -607,8 +603,6 @@ impl Scope { #[doc = "The Managed Network resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScopeAssignment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of Managed Network"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/managednetworkfabric/src/package_2023_02_01_preview/models.rs b/services/mgmt/managednetworkfabric/src/package_2023_02_01_preview/models.rs index f0545bb47d..541fba3cda 100644 --- a/services/mgmt/managednetworkfabric/src/package_2023_02_01_preview/models.rs +++ b/services/mgmt/managednetworkfabric/src/package_2023_02_01_preview/models.rs @@ -872,17 +872,12 @@ impl ExtendedLocation { #[doc = "Defines the ExternalNetwork item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExternalNetwork { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "External Network Properties."] pub properties: ExternalNetworkProperties, } impl ExternalNetwork { pub fn new(properties: ExternalNetworkProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The ExternalNetwork patch resource definition."] @@ -1219,17 +1214,12 @@ impl InterfaceStatus { #[doc = "Defines the InternalNetwork item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InternalNetwork { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Internal Network Properties"] pub properties: InternalNetworkProperties, } impl InternalNetwork { pub fn new(properties: InternalNetworkProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The InternalNetwork patch resource definition."] @@ -2407,17 +2397,12 @@ impl Serialize for NetworkDeviceRoleTypes { #[doc = "The NetworkDeviceSku resource definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NetworkDeviceSku { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "NetworkDeviceSkuProperties define the resource properties."] pub properties: NetworkDeviceSkuProperties, } impl NetworkDeviceSku { pub fn new(properties: NetworkDeviceSkuProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "NetworkDeviceSkuProperties define the resource properties."] @@ -2870,17 +2855,12 @@ impl NetworkFabricProperties { #[doc = "The NetworkFabricSku resource definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NetworkFabricSku { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "NetworkFabricSkuProperties define the resource properties."] pub properties: NetworkFabricSkuProperties, } impl NetworkFabricSku { pub fn new(properties: NetworkFabricSkuProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "NetworkFabricSkuProperties define the resource properties."] @@ -2963,17 +2943,12 @@ impl NetworkFabricsListResult { #[doc = "Defines the NetworkInterface resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NetworkInterface { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "NetworkInterfaceProperties define the resource properties."] pub properties: NetworkInterfaceProperties, } impl NetworkInterface { pub fn new(properties: NetworkInterfaceProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The NetworkInterfacePatch resource definition."] @@ -3161,17 +3136,12 @@ impl NetworkRackProperties { #[doc = "The NetworkRackSku resource definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NetworkRackSku { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "NetworkRackSkuProperties define the resource properties."] pub properties: NetworkRackSkuProperties, } impl NetworkRackSku { pub fn new(properties: NetworkRackSkuProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "NetworkRackSkuProperties define the resource properties."] @@ -3306,8 +3276,6 @@ impl NetworkRacksListResult { #[doc = "The NetworkToNetworkInterconnect resource definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct NetworkToNetworkInterconnect { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Configuration used to setup CE-PE connectivity."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/mariadb/src/package_2018_06_01/models.rs b/services/mgmt/mariadb/src/package_2018_06_01/models.rs index d1b5dadd6e..87b77087d2 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01/models.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Represents a recommendation action advisor."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Advisor { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a recommendation action advisor."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -71,8 +69,6 @@ impl CloudError { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -134,8 +130,6 @@ impl ConfigurationProperties { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -233,17 +227,12 @@ impl ErrorResponse { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, } impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A list of firewall rules."] @@ -289,8 +278,6 @@ impl FirewallRuleProperties { #[doc = "Represents a log file."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LogFile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The name of the log file."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -624,8 +611,6 @@ impl PerformanceTierServiceLevelObjectives { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -690,8 +675,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -871,8 +854,6 @@ pub mod query_performance_insight_reset_data_result { #[doc = "Represents a Query Statistic."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct QueryStatistic { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a query statistic."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -929,8 +910,6 @@ impl QueryStatisticProperties { #[doc = "Represents a Query Text."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct QueryText { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a query text."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -983,8 +962,6 @@ impl QueryTextsResultList { #[doc = "Represents a Recommendation Action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecommendationAction { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a recommendation action."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1100,8 +1077,6 @@ impl RecoverableServerProperties { #[doc = "A recoverable server resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoverableServerResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The recoverable server's properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1648,8 +1623,6 @@ impl ServerPropertiesForRestore { #[doc = "A server security alert policy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerSecurityAlertPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a security alert policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2061,8 +2034,6 @@ impl TrackedResource { #[doc = "A virtual network rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VirtualNetworkRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a virtual network rule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2168,8 +2139,6 @@ pub mod virtual_network_rule_properties { #[doc = "Represents a Wait Statistic."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WaitStatistic { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a wait statistic."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs b/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs index 3676a280c9..1471044b59 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01_preview/models.rs @@ -49,8 +49,6 @@ impl CloudErrorBody { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -112,8 +110,6 @@ impl ConfigurationProperties { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -163,17 +159,12 @@ impl DatabaseProperties { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, } impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A list of firewall rules."] @@ -219,8 +210,6 @@ impl FirewallRuleProperties { #[doc = "Represents a log file."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LogFile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The name of the log file."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -592,8 +581,6 @@ impl RecoverableServerProperties { #[doc = "A recoverable server resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoverableServerResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The recoverable server's properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1010,8 +997,6 @@ impl ServerPropertiesForRestore { #[doc = "A server security alert policy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerSecurityAlertPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a security alert policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1331,8 +1316,6 @@ impl TrackedResource { #[doc = "A virtual network rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VirtualNetworkRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a virtual network rule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs b/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs index c2b18d11d0..fd06d39052 100644 --- a/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs +++ b/services/mgmt/mariadb/src/package_2018_06_01_privatepreview/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Represents a recommendation action advisor."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Advisor { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a recommendation action advisor."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -96,8 +94,6 @@ impl CloudErrorBody { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -159,8 +155,6 @@ impl ConfigurationProperties { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -210,17 +204,12 @@ impl DatabaseProperties { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, } impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A list of firewall rules."] @@ -266,8 +255,6 @@ impl FirewallRuleProperties { #[doc = "Represents a log file."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LogFile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The name of the log file."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -583,8 +570,6 @@ impl PerformanceTierServiceLevelObjectives { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -649,8 +634,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -738,8 +721,6 @@ impl ProxyResource { #[doc = "Represents a Query Statistic."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct QueryStatistic { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a query statistic."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -796,8 +777,6 @@ impl QueryStatisticProperties { #[doc = "Represents a Query Text."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct QueryText { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a query text."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -850,8 +829,6 @@ impl QueryTextsResultList { #[doc = "Represents a Recommendation Action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecommendationAction { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a recommendation action."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1344,8 +1321,6 @@ impl ServerPropertiesForRestore { #[doc = "A server security alert policy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerSecurityAlertPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a security alert policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1729,8 +1704,6 @@ impl TrackedResource { #[doc = "A virtual network rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VirtualNetworkRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a virtual network rule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1836,8 +1809,6 @@ pub mod virtual_network_rule_properties { #[doc = "Represents a Wait Statistic."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WaitStatistic { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a wait statistic."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/mariadb/src/package_2020_01_01/models.rs b/services/mgmt/mariadb/src/package_2020_01_01/models.rs index d1b5dadd6e..87b77087d2 100644 --- a/services/mgmt/mariadb/src/package_2020_01_01/models.rs +++ b/services/mgmt/mariadb/src/package_2020_01_01/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Represents a recommendation action advisor."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Advisor { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a recommendation action advisor."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -71,8 +69,6 @@ impl CloudError { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -134,8 +130,6 @@ impl ConfigurationProperties { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -233,17 +227,12 @@ impl ErrorResponse { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, } impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A list of firewall rules."] @@ -289,8 +278,6 @@ impl FirewallRuleProperties { #[doc = "Represents a log file."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LogFile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The name of the log file."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -624,8 +611,6 @@ impl PerformanceTierServiceLevelObjectives { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private endpoint connection."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -690,8 +675,6 @@ impl PrivateEndpointProperty { #[doc = "A private link resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -871,8 +854,6 @@ pub mod query_performance_insight_reset_data_result { #[doc = "Represents a Query Statistic."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct QueryStatistic { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a query statistic."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -929,8 +910,6 @@ impl QueryStatisticProperties { #[doc = "Represents a Query Text."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct QueryText { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a query text."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -983,8 +962,6 @@ impl QueryTextsResultList { #[doc = "Represents a Recommendation Action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecommendationAction { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a recommendation action."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1100,8 +1077,6 @@ impl RecoverableServerProperties { #[doc = "A recoverable server resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecoverableServerResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The recoverable server's properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1648,8 +1623,6 @@ impl ServerPropertiesForRestore { #[doc = "A server security alert policy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerSecurityAlertPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a security alert policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2061,8 +2034,6 @@ impl TrackedResource { #[doc = "A virtual network rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct VirtualNetworkRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a virtual network rule."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2168,8 +2139,6 @@ pub mod virtual_network_rule_properties { #[doc = "Represents a Wait Statistic."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct WaitStatistic { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a wait statistic."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs b/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs index ce460b5427..f10b7e37c5 100644 --- a/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs +++ b/services/mgmt/mariadb/src/package_2020_01_01_privatepreview/models.rs @@ -78,8 +78,6 @@ impl Resource { #[doc = "A MariaDB Server key."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerKey { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Kind of encryption protector. This is metadata used for the Azure portal experience."] #[serde(default, skip_serializing_if = "Option::is_none")] pub kind: Option, diff --git a/services/mgmt/mediaservices/src/package_encoding_2022_05_preview/models.rs b/services/mgmt/mediaservices/src/package_encoding_2022_05_preview/models.rs index 27cdddbe04..b708f331bc 100644 --- a/services/mgmt/mediaservices/src/package_encoding_2022_05_preview/models.rs +++ b/services/mgmt/mediaservices/src/package_encoding_2022_05_preview/models.rs @@ -62,14 +62,12 @@ pub mod aac_audio { #[doc = "Specifies the clip time as an absolute time position in the media file. The absolute time can point to a different position depending on whether the media file starts from a timestamp of zero or not."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AbsoluteClipTime { - #[serde(flatten)] - pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S for 30 seconds."] pub time: String, } impl AbsoluteClipTime { - pub fn new(clip_time: ClipTime, time: String) -> Self { - Self { clip_time, time } + pub fn new(time: String) -> Self { + Self { time } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -197,8 +195,6 @@ pub mod account_encryption { #[doc = "An Account Filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountFilter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Media Filter properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -337,8 +333,6 @@ impl ArmStreamingEndpointSkuInfo { #[doc = "An Asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Asset { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Asset properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -418,8 +412,6 @@ impl AssetFileEncryptionMetadata { #[doc = "An Asset Filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssetFilter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Media Filter properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -568,8 +560,6 @@ impl AssetStreamingLocator { #[doc = "An Asset Track resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssetTrack { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a video, audio or text track in the asset."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -778,8 +768,6 @@ impl Audio { #[doc = "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioAnalyzerPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463"] #[serde(rename = "audioLanguage", default, skip_serializing_if = "Option::is_none")] pub audio_language: Option, @@ -791,9 +779,8 @@ pub struct AudioAnalyzerPreset { pub experimental_options: Option, } impl AudioAnalyzerPreset { - pub fn new(preset: Preset) -> Self { + pub fn new() -> Self { Self { - preset, audio_language: None, mode: None, experimental_options: None, @@ -854,8 +841,6 @@ impl AudioOverlay { #[doc = "Represents an audio track in the asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioTrack { - #[serde(flatten)] - pub track_base: TrackBase, #[doc = "The file name to the source file. This file is located in the storage container of the asset."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -879,9 +864,8 @@ pub struct AudioTrack { pub bit_rate: Option, } impl AudioTrack { - pub fn new(track_base: TrackBase) -> Self { + pub fn new() -> Self { Self { - track_base, file_name: None, display_name: None, language_code: None, @@ -895,18 +879,13 @@ impl AudioTrack { #[doc = "A TrackSelection to select audio tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioTrackDescriptor { - #[serde(flatten)] - pub track_descriptor: TrackDescriptor, #[doc = "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks."] #[serde(rename = "channelMapping", default, skip_serializing_if = "Option::is_none")] pub channel_mapping: Option, } impl AudioTrackDescriptor { - pub fn new(track_descriptor: TrackDescriptor) -> Self { - Self { - track_descriptor, - channel_mapping: None, - } + pub fn new() -> Self { + Self { channel_mapping: None } } } pub mod audio_track_descriptor { @@ -964,8 +943,6 @@ pub mod audio_track_descriptor { #[doc = "Describes a built-in preset for encoding the input video with the Standard Encoder."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BuiltInStandardEncoderPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "An object of optional configuration settings for encoder."] #[serde(default, skip_serializing_if = "Option::is_none")] pub configurations: Option, @@ -974,9 +951,8 @@ pub struct BuiltInStandardEncoderPreset { pub preset_name: built_in_standard_encoder_preset::PresetName, } impl BuiltInStandardEncoderPreset { - pub fn new(preset: Preset, preset_name: built_in_standard_encoder_preset::PresetName) -> Self { + pub fn new(preset_name: built_in_standard_encoder_preset::PresetName) -> Self { Self { - preset, configurations: None, preset_name, } @@ -1118,14 +1094,6 @@ impl ClearKeyEncryptionConfiguration { Self::default() } } -#[doc = "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ClipTime {} -impl ClipTime { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1278,8 +1246,6 @@ impl CommonEncryptionCenc { #[doc = "A Content Key Policy resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContentKeyPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of the Content Key Policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1294,15 +1260,10 @@ impl ContentKeyPolicy { } #[doc = "Represents a configuration for non-DRM keys."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyClearKeyConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, -} +pub struct ContentKeyPolicyClearKeyConfiguration {} impl ContentKeyPolicyClearKeyConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration) -> Self { - Self { - content_key_policy_configuration, - } + pub fn new() -> Self { + Self {} } } #[doc = "A collection of ContentKeyPolicy items."] @@ -1330,14 +1291,6 @@ impl ContentKeyPolicyCollection { Self::default() } } -#[doc = "Base class for Content Key Policy configuration. A derived class must be used to create a configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyConfiguration {} -impl ContentKeyPolicyConfiguration { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1356,8 +1309,6 @@ pub enum ContentKeyPolicyConfigurationUnion { #[doc = "Specifies a configuration for FairPlay licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyFairPlayConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded."] pub ask: String, #[doc = "The password encrypting FairPlay certificate in PKCS 12 (pfx) format."] @@ -1377,7 +1328,6 @@ pub struct ContentKeyPolicyFairPlayConfiguration { } impl ContentKeyPolicyFairPlayConfiguration { pub fn new( - content_key_policy_configuration: ContentKeyPolicyConfiguration, ask: String, fair_play_pfx_password: String, fair_play_pfx: String, @@ -1385,7 +1335,6 @@ impl ContentKeyPolicyFairPlayConfiguration { rental_duration: i64, ) -> Self { Self { - content_key_policy_configuration, ask, fair_play_pfx_password, fair_play_pfx, @@ -1460,15 +1409,10 @@ impl ContentKeyPolicyFairPlayOfflineRentalConfiguration { } #[doc = "Represents an open restriction. License or key will be delivered on every request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyOpenRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, -} +pub struct ContentKeyPolicyOpenRestriction {} impl ContentKeyPolicyOpenRestriction { - pub fn new(content_key_policy_restriction: ContentKeyPolicyRestriction) -> Self { - Self { - content_key_policy_restriction, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents a policy option."] @@ -1498,8 +1442,6 @@ impl ContentKeyPolicyOption { #[doc = "Specifies a configuration for PlayReady licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyPlayReadyConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The PlayReady licenses."] pub licenses: Vec, #[doc = "The custom response data."] @@ -1507,9 +1449,8 @@ pub struct ContentKeyPolicyPlayReadyConfiguration { pub response_custom_data: Option, } impl ContentKeyPolicyPlayReadyConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration, licenses: Vec) -> Self { + pub fn new(licenses: Vec) -> Self { Self { - content_key_policy_configuration, licenses, response_custom_data: None, } @@ -1517,40 +1458,22 @@ impl ContentKeyPolicyPlayReadyConfiguration { } #[doc = "Specifies that the content key ID is in the PlayReady header."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader { - #[serde(flatten)] - pub content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, -} +pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader {} impl ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader { - pub fn new(content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation) -> Self { - Self { - content_key_policy_play_ready_content_key_location, - } + pub fn new() -> Self { + Self {} } } #[doc = "Specifies that the content key ID is specified in the PlayReady configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier { - #[serde(flatten)] - pub content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, #[doc = "The content key ID."] #[serde(rename = "keyId")] pub key_id: String, } impl ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier { - pub fn new(content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, key_id: String) -> Self { - Self { - content_key_policy_play_ready_content_key_location, - key_id, - } - } -} -#[doc = "Base class for content key ID location. A derived class must be used to represent the location."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyPlayReadyContentKeyLocation {} -impl ContentKeyPolicyPlayReadyContentKeyLocation { - pub fn new() -> Self { - Self {} + pub fn new(key_id: String) -> Self { + Self { key_id } } } #[doc = "The discriminator for derived types."] @@ -1914,14 +1837,6 @@ impl ContentKeyPolicyProperties { } } } -#[doc = "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyRestriction {} -impl ContentKeyPolicyRestriction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1933,14 +1848,6 @@ pub enum ContentKeyPolicyRestrictionUnion { #[serde(rename = "#Microsoft.Media.ContentKeyPolicyUnknownRestriction")] MicrosoftMediaContentKeyPolicyUnknownRestriction(ContentKeyPolicyUnknownRestriction), } -#[doc = "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyRestrictionTokenKey {} -impl ContentKeyPolicyRestrictionTokenKey { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1955,37 +1862,26 @@ pub enum ContentKeyPolicyRestrictionTokenKeyUnion { #[doc = "Specifies a RSA key for token validation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyRsaTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The RSA Parameter exponent"] pub exponent: String, #[doc = "The RSA Parameter modulus"] pub modulus: String, } impl ContentKeyPolicyRsaTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, exponent: String, modulus: String) -> Self { - Self { - content_key_policy_restriction_token_key, - exponent, - modulus, - } + pub fn new(exponent: String, modulus: String) -> Self { + Self { exponent, modulus } } } #[doc = "Specifies a symmetric key for token validation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicySymmetricTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The key value of the key"] #[serde(rename = "keyValue")] pub key_value: String, } impl ContentKeyPolicySymmetricTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, key_value: String) -> Self { - Self { - content_key_policy_restriction_token_key, - key_value, - } + pub fn new(key_value: String) -> Self { + Self { key_value } } } #[doc = "Represents a token claim."] @@ -2006,8 +1902,6 @@ impl ContentKeyPolicyTokenClaim { #[doc = "Represents a token restriction. Provided token must match these requirements for successful license or key delivery."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyTokenRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, #[doc = "The token issuer."] pub issuer: String, #[doc = "The audience for the token."] @@ -2040,14 +1934,12 @@ pub struct ContentKeyPolicyTokenRestriction { } impl ContentKeyPolicyTokenRestriction { pub fn new( - content_key_policy_restriction: ContentKeyPolicyRestriction, issuer: String, audience: String, primary_verification_key: ContentKeyPolicyRestrictionTokenKeyUnion, restriction_token_type: content_key_policy_token_restriction::RestrictionTokenType, ) -> Self { Self { - content_key_policy_restriction, issuer, audience, primary_verification_key, @@ -2102,62 +1994,42 @@ pub mod content_key_policy_token_restriction { } #[doc = "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyUnknownConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, -} +pub struct ContentKeyPolicyUnknownConfiguration {} impl ContentKeyPolicyUnknownConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration) -> Self { - Self { - content_key_policy_configuration, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyUnknownRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, -} +pub struct ContentKeyPolicyUnknownRestriction {} impl ContentKeyPolicyUnknownRestriction { - pub fn new(content_key_policy_restriction: ContentKeyPolicyRestriction) -> Self { - Self { - content_key_policy_restriction, - } + pub fn new() -> Self { + Self {} } } #[doc = "Specifies a configuration for Widevine licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyWidevineConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The Widevine template."] #[serde(rename = "widevineTemplate")] pub widevine_template: String, } impl ContentKeyPolicyWidevineConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration, widevine_template: String) -> Self { - Self { - content_key_policy_configuration, - widevine_template, - } + pub fn new(widevine_template: String) -> Self { + Self { widevine_template } } } #[doc = "Specifies a certificate for token validation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyX509CertificateTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)"] #[serde(rename = "rawBody")] pub raw_body: String, } impl ContentKeyPolicyX509CertificateTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, raw_body: String) -> Self { - Self { - content_key_policy_restriction_token_key, - raw_body, - } + pub fn new(raw_body: String) -> Self { + Self { raw_body } } } #[doc = "A codec flag, which tells the encoder to copy the input audio bitstream."] @@ -2515,8 +2387,6 @@ impl ErrorResponse { #[doc = "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FaceDetectorPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected."] #[serde(default, skip_serializing_if = "Option::is_none")] pub resolution: Option, @@ -2531,9 +2401,8 @@ pub struct FaceDetectorPreset { pub experimental_options: Option, } impl FaceDetectorPreset { - pub fn new(preset: Preset) -> Self { + pub fn new() -> Self { Self { - preset, resolution: None, mode: None, blur_type: None, @@ -3481,8 +3350,6 @@ impl InputFile { #[doc = "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Job { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3701,14 +3568,6 @@ impl JobErrorDetail { Self::default() } } -#[doc = "Base class for inputs to a Job."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct JobInput {} -impl JobInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -3740,8 +3599,6 @@ impl JobInputAsset { #[doc = "Represents input files for a Job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputClip { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings will not be returned in service responses to prevent sensitive data exposure."] #[serde( default, @@ -3768,9 +3625,8 @@ pub struct JobInputClip { pub input_definitions: Vec, } impl JobInputClip { - pub fn new(job_input: JobInput) -> Self { + pub fn new() -> Self { Self { - job_input, files: Vec::new(), start: None, end: None, @@ -3799,8 +3655,6 @@ impl JobInputHttp { #[doc = "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputSequence { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "JobInputs that make up the timeline."] #[serde( default, @@ -3810,18 +3664,13 @@ pub struct JobInputSequence { pub inputs: Vec, } impl JobInputSequence { - pub fn new(job_input: JobInput) -> Self { - Self { - job_input, - inputs: Vec::new(), - } + pub fn new() -> Self { + Self { inputs: Vec::new() } } } #[doc = "Describes a list of inputs to a Job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputs { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "List of inputs to a Job."] #[serde( default, @@ -3831,11 +3680,8 @@ pub struct JobInputs { pub inputs: Vec, } impl JobInputs { - pub fn new(job_input: JobInput) -> Self { - Self { - job_input, - inputs: Vec::new(), - } + pub fn new() -> Self { + Self { inputs: Vec::new() } } } #[doc = "Describes all the properties of a JobOutput."] @@ -4086,13 +3932,10 @@ pub mod job_properties { } #[doc = "Describes the settings for producing JPEG thumbnails."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct JpgFormat { - #[serde(flatten)] - pub image_format: ImageFormat, -} +pub struct JpgFormat {} impl JpgFormat { - pub fn new(image_format: ImageFormat) -> Self { - Self { image_format } + pub fn new() -> Self { + Self {} } } #[doc = "Describes the properties for producing a series of JPEG images from the input video."] @@ -4789,8 +4632,6 @@ impl LiveEventTranscription { #[doc = "The Live Output."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LiveOutput { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties required to create a live output."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5651,13 +5492,10 @@ pub enum OverlayUnion { } #[doc = "Describes the settings for producing PNG thumbnails."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PngFormat { - #[serde(flatten)] - pub image_format: ImageFormat, -} +pub struct PngFormat {} impl PngFormat { - pub fn new(image_format: ImageFormat) -> Self { - Self { image_format } + pub fn new() -> Self { + Self {} } } #[doc = "Describes the properties for producing a series of PNG images from the input video."] @@ -5716,14 +5554,6 @@ impl PresentationTimeRange { Self::default() } } -#[doc = "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Preset {} -impl Preset { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -6279,8 +6109,6 @@ impl SelectAudioTrackById { #[doc = "Select video tracks from the input by specifying an attribute and an attribute filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SelectVideoTrackByAttribute { - #[serde(flatten)] - pub video_track_descriptor: VideoTrackDescriptor, #[doc = "The TrackAttribute to filter the tracks by."] pub attribute: select_video_track_by_attribute::Attribute, #[doc = "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks."] @@ -6290,13 +6118,8 @@ pub struct SelectVideoTrackByAttribute { pub filter_value: Option, } impl SelectVideoTrackByAttribute { - pub fn new( - video_track_descriptor: VideoTrackDescriptor, - attribute: select_video_track_by_attribute::Attribute, - filter: select_video_track_by_attribute::Filter, - ) -> Self { + pub fn new(attribute: select_video_track_by_attribute::Attribute, filter: select_video_track_by_attribute::Filter) -> Self { Self { - video_track_descriptor, attribute, filter, filter_value: None, @@ -6387,18 +6210,13 @@ pub mod select_video_track_by_attribute { #[doc = "Select video tracks from the input by specifying a track identifier."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SelectVideoTrackById { - #[serde(flatten)] - pub video_track_descriptor: VideoTrackDescriptor, #[doc = "Track identifier to select"] #[serde(rename = "trackId")] pub track_id: i64, } impl SelectVideoTrackById { - pub fn new(video_track_descriptor: VideoTrackDescriptor, track_id: i64) -> Self { - Self { - video_track_descriptor, - track_id, - } + pub fn new(track_id: i64) -> Self { + Self { track_id } } } #[doc = "The service metric specifications."] @@ -6429,8 +6247,6 @@ impl ServiceSpecification { #[doc = "Describes all the settings to be used when encoding the input video with the Standard Encoder."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StandardEncoderPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding."] #[serde(default, skip_serializing_if = "Option::is_none")] pub filters: Option, @@ -6440,9 +6256,8 @@ pub struct StandardEncoderPreset { pub formats: Vec, } impl StandardEncoderPreset { - pub fn new(preset: Preset, codecs: Vec, formats: Vec) -> Self { + pub fn new(codecs: Vec, formats: Vec) -> Self { Self { - preset, filters: None, codecs, formats, @@ -6759,8 +6574,6 @@ impl StreamingEntityScaleUnit { #[doc = "A Streaming Locator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingLocator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Streaming Locator."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7050,8 +6863,6 @@ pub mod streaming_path { #[doc = "A Streaming Policy resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Class to specify properties of Streaming Policy"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7218,8 +7029,6 @@ impl SyncStorageKeysInput { #[doc = "Represents a text track in an asset. A text track is usually used for sparse data related to the audio or video tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TextTrack { - #[serde(flatten)] - pub track_base: TrackBase, #[doc = "The file name to the source file. This file is located in the storage container of the asset."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -7237,9 +7046,8 @@ pub struct TextTrack { pub hls_settings: Option, } impl TextTrack { - pub fn new(track_base: TrackBase) -> Self { + pub fn new() -> Self { Self { - track_base, file_name: None, display_name: None, language_code: None, @@ -7288,14 +7096,6 @@ pub mod text_track { } } } -#[doc = "Base type for concrete track types. A derived type must be used to represent the Track."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TrackBase {} -impl TrackBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -7307,14 +7107,6 @@ pub enum TrackBaseUnion { #[serde(rename = "#Microsoft.Media.VideoTrack")] MicrosoftMediaVideoTrack(VideoTrack), } -#[doc = "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TrackDescriptor {} -impl TrackDescriptor { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -7462,8 +7254,6 @@ impl TrackedResource { #[doc = "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Transform { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "A Transform."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7662,15 +7452,13 @@ impl UserAssignedManagedIdentity { #[doc = "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UtcClipTime { - #[serde(flatten)] - pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media based on Utc time."] #[serde(with = "azure_core::date::rfc3339")] pub time: time::OffsetDateTime, } impl UtcClipTime { - pub fn new(clip_time: ClipTime, time: time::OffsetDateTime) -> Self { - Self { clip_time, time } + pub fn new(time: time::OffsetDateTime) -> Self { + Self { time } } } #[doc = "Describes the basic properties for encoding the input video."] @@ -7903,24 +7691,18 @@ impl VideoOverlay { } #[doc = "Represents a video track in the asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VideoTrack { - #[serde(flatten)] - pub track_base: TrackBase, -} +pub struct VideoTrack {} impl VideoTrack { - pub fn new(track_base: TrackBase) -> Self { - Self { track_base } + pub fn new() -> Self { + Self {} } } #[doc = "A TrackSelection to select video tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VideoTrackDescriptor { - #[serde(flatten)] - pub track_descriptor: TrackDescriptor, -} +pub struct VideoTrackDescriptor {} impl VideoTrackDescriptor { - pub fn new(track_descriptor: TrackDescriptor) -> Self { - Self { track_descriptor } + pub fn new() -> Self { + Self {} } } #[doc = "Metadata pertaining to creation and last modification of the resource."] diff --git a/services/mgmt/mediaservices/src/package_encoding_2022_07/models.rs b/services/mgmt/mediaservices/src/package_encoding_2022_07/models.rs index 38394757e9..e15976ab06 100644 --- a/services/mgmt/mediaservices/src/package_encoding_2022_07/models.rs +++ b/services/mgmt/mediaservices/src/package_encoding_2022_07/models.rs @@ -62,14 +62,12 @@ pub mod aac_audio { #[doc = "Specifies the clip time as an absolute time position in the media file. The absolute time can point to a different position depending on whether the media file starts from a timestamp of zero or not."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AbsoluteClipTime { - #[serde(flatten)] - pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S for 30 seconds."] pub time: String, } impl AbsoluteClipTime { - pub fn new(clip_time: ClipTime, time: String) -> Self { - Self { clip_time, time } + pub fn new(time: String) -> Self { + Self { time } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -197,8 +195,6 @@ pub mod account_encryption { #[doc = "An Account Filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountFilter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Media Filter properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -337,8 +333,6 @@ impl ArmStreamingEndpointSkuInfo { #[doc = "An Asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Asset { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Asset properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -418,8 +412,6 @@ impl AssetFileEncryptionMetadata { #[doc = "An Asset Filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssetFilter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Media Filter properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -568,8 +560,6 @@ impl AssetStreamingLocator { #[doc = "An Asset Track resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssetTrack { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a video, audio or text track in the asset."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -778,8 +768,6 @@ impl Audio { #[doc = "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioAnalyzerPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463"] #[serde(rename = "audioLanguage", default, skip_serializing_if = "Option::is_none")] pub audio_language: Option, @@ -791,9 +779,8 @@ pub struct AudioAnalyzerPreset { pub experimental_options: Option, } impl AudioAnalyzerPreset { - pub fn new(preset: Preset) -> Self { + pub fn new() -> Self { Self { - preset, audio_language: None, mode: None, experimental_options: None, @@ -854,8 +841,6 @@ impl AudioOverlay { #[doc = "Represents an audio track in the asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioTrack { - #[serde(flatten)] - pub track_base: TrackBase, #[doc = "The file name to the source file. This file is located in the storage container of the asset."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -879,9 +864,8 @@ pub struct AudioTrack { pub bit_rate: Option, } impl AudioTrack { - pub fn new(track_base: TrackBase) -> Self { + pub fn new() -> Self { Self { - track_base, file_name: None, display_name: None, language_code: None, @@ -895,18 +879,13 @@ impl AudioTrack { #[doc = "A TrackSelection to select audio tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioTrackDescriptor { - #[serde(flatten)] - pub track_descriptor: TrackDescriptor, #[doc = "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks."] #[serde(rename = "channelMapping", default, skip_serializing_if = "Option::is_none")] pub channel_mapping: Option, } impl AudioTrackDescriptor { - pub fn new(track_descriptor: TrackDescriptor) -> Self { - Self { - track_descriptor, - channel_mapping: None, - } + pub fn new() -> Self { + Self { channel_mapping: None } } } pub mod audio_track_descriptor { @@ -964,8 +943,6 @@ pub mod audio_track_descriptor { #[doc = "Describes a built-in preset for encoding the input video with the Standard Encoder."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BuiltInStandardEncoderPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "An object of optional configuration settings for encoder."] #[serde(default, skip_serializing_if = "Option::is_none")] pub configurations: Option, @@ -974,9 +951,8 @@ pub struct BuiltInStandardEncoderPreset { pub preset_name: built_in_standard_encoder_preset::PresetName, } impl BuiltInStandardEncoderPreset { - pub fn new(preset: Preset, preset_name: built_in_standard_encoder_preset::PresetName) -> Self { + pub fn new(preset_name: built_in_standard_encoder_preset::PresetName) -> Self { Self { - preset, configurations: None, preset_name, } @@ -1118,14 +1094,6 @@ impl ClearKeyEncryptionConfiguration { Self::default() } } -#[doc = "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ClipTime {} -impl ClipTime { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1221,8 +1189,6 @@ impl CommonEncryptionCenc { #[doc = "A Content Key Policy resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContentKeyPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of the Content Key Policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1237,15 +1203,10 @@ impl ContentKeyPolicy { } #[doc = "Represents a configuration for non-DRM keys."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyClearKeyConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, -} +pub struct ContentKeyPolicyClearKeyConfiguration {} impl ContentKeyPolicyClearKeyConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration) -> Self { - Self { - content_key_policy_configuration, - } + pub fn new() -> Self { + Self {} } } #[doc = "A collection of ContentKeyPolicy items."] @@ -1273,14 +1234,6 @@ impl ContentKeyPolicyCollection { Self::default() } } -#[doc = "Base class for Content Key Policy configuration. A derived class must be used to create a configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyConfiguration {} -impl ContentKeyPolicyConfiguration { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1299,8 +1252,6 @@ pub enum ContentKeyPolicyConfigurationUnion { #[doc = "Specifies a configuration for FairPlay licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyFairPlayConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded."] pub ask: String, #[doc = "The password encrypting FairPlay certificate in PKCS 12 (pfx) format."] @@ -1320,7 +1271,6 @@ pub struct ContentKeyPolicyFairPlayConfiguration { } impl ContentKeyPolicyFairPlayConfiguration { pub fn new( - content_key_policy_configuration: ContentKeyPolicyConfiguration, ask: String, fair_play_pfx_password: String, fair_play_pfx: String, @@ -1328,7 +1278,6 @@ impl ContentKeyPolicyFairPlayConfiguration { rental_duration: i64, ) -> Self { Self { - content_key_policy_configuration, ask, fair_play_pfx_password, fair_play_pfx, @@ -1403,15 +1352,10 @@ impl ContentKeyPolicyFairPlayOfflineRentalConfiguration { } #[doc = "Represents an open restriction. License or key will be delivered on every request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyOpenRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, -} +pub struct ContentKeyPolicyOpenRestriction {} impl ContentKeyPolicyOpenRestriction { - pub fn new(content_key_policy_restriction: ContentKeyPolicyRestriction) -> Self { - Self { - content_key_policy_restriction, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents a policy option."] @@ -1441,8 +1385,6 @@ impl ContentKeyPolicyOption { #[doc = "Specifies a configuration for PlayReady licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyPlayReadyConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The PlayReady licenses."] pub licenses: Vec, #[doc = "The custom response data."] @@ -1450,9 +1392,8 @@ pub struct ContentKeyPolicyPlayReadyConfiguration { pub response_custom_data: Option, } impl ContentKeyPolicyPlayReadyConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration, licenses: Vec) -> Self { + pub fn new(licenses: Vec) -> Self { Self { - content_key_policy_configuration, licenses, response_custom_data: None, } @@ -1460,40 +1401,22 @@ impl ContentKeyPolicyPlayReadyConfiguration { } #[doc = "Specifies that the content key ID is in the PlayReady header."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader { - #[serde(flatten)] - pub content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, -} +pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader {} impl ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader { - pub fn new(content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation) -> Self { - Self { - content_key_policy_play_ready_content_key_location, - } + pub fn new() -> Self { + Self {} } } #[doc = "Specifies that the content key ID is specified in the PlayReady configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier { - #[serde(flatten)] - pub content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, #[doc = "The content key ID."] #[serde(rename = "keyId")] pub key_id: String, } impl ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier { - pub fn new(content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, key_id: String) -> Self { - Self { - content_key_policy_play_ready_content_key_location, - key_id, - } - } -} -#[doc = "Base class for content key ID location. A derived class must be used to represent the location."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyPlayReadyContentKeyLocation {} -impl ContentKeyPolicyPlayReadyContentKeyLocation { - pub fn new() -> Self { - Self {} + pub fn new(key_id: String) -> Self { + Self { key_id } } } #[doc = "The discriminator for derived types."] @@ -1857,14 +1780,6 @@ impl ContentKeyPolicyProperties { } } } -#[doc = "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyRestriction {} -impl ContentKeyPolicyRestriction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1876,14 +1791,6 @@ pub enum ContentKeyPolicyRestrictionUnion { #[serde(rename = "#Microsoft.Media.ContentKeyPolicyUnknownRestriction")] MicrosoftMediaContentKeyPolicyUnknownRestriction(ContentKeyPolicyUnknownRestriction), } -#[doc = "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyRestrictionTokenKey {} -impl ContentKeyPolicyRestrictionTokenKey { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1898,37 +1805,26 @@ pub enum ContentKeyPolicyRestrictionTokenKeyUnion { #[doc = "Specifies a RSA key for token validation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyRsaTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The RSA Parameter exponent"] pub exponent: String, #[doc = "The RSA Parameter modulus"] pub modulus: String, } impl ContentKeyPolicyRsaTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, exponent: String, modulus: String) -> Self { - Self { - content_key_policy_restriction_token_key, - exponent, - modulus, - } + pub fn new(exponent: String, modulus: String) -> Self { + Self { exponent, modulus } } } #[doc = "Specifies a symmetric key for token validation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicySymmetricTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The key value of the key"] #[serde(rename = "keyValue")] pub key_value: String, } impl ContentKeyPolicySymmetricTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, key_value: String) -> Self { - Self { - content_key_policy_restriction_token_key, - key_value, - } + pub fn new(key_value: String) -> Self { + Self { key_value } } } #[doc = "Represents a token claim."] @@ -1949,8 +1845,6 @@ impl ContentKeyPolicyTokenClaim { #[doc = "Represents a token restriction. Provided token must match these requirements for successful license or key delivery."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyTokenRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, #[doc = "The token issuer."] pub issuer: String, #[doc = "The audience for the token."] @@ -1983,14 +1877,12 @@ pub struct ContentKeyPolicyTokenRestriction { } impl ContentKeyPolicyTokenRestriction { pub fn new( - content_key_policy_restriction: ContentKeyPolicyRestriction, issuer: String, audience: String, primary_verification_key: ContentKeyPolicyRestrictionTokenKeyUnion, restriction_token_type: content_key_policy_token_restriction::RestrictionTokenType, ) -> Self { Self { - content_key_policy_restriction, issuer, audience, primary_verification_key, @@ -2045,62 +1937,42 @@ pub mod content_key_policy_token_restriction { } #[doc = "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyUnknownConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, -} +pub struct ContentKeyPolicyUnknownConfiguration {} impl ContentKeyPolicyUnknownConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration) -> Self { - Self { - content_key_policy_configuration, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyUnknownRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, -} +pub struct ContentKeyPolicyUnknownRestriction {} impl ContentKeyPolicyUnknownRestriction { - pub fn new(content_key_policy_restriction: ContentKeyPolicyRestriction) -> Self { - Self { - content_key_policy_restriction, - } + pub fn new() -> Self { + Self {} } } #[doc = "Specifies a configuration for Widevine licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyWidevineConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The Widevine template."] #[serde(rename = "widevineTemplate")] pub widevine_template: String, } impl ContentKeyPolicyWidevineConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration, widevine_template: String) -> Self { - Self { - content_key_policy_configuration, - widevine_template, - } + pub fn new(widevine_template: String) -> Self { + Self { widevine_template } } } #[doc = "Specifies a certificate for token validation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyX509CertificateTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)"] #[serde(rename = "rawBody")] pub raw_body: String, } impl ContentKeyPolicyX509CertificateTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, raw_body: String) -> Self { - Self { - content_key_policy_restriction_token_key, - raw_body, - } + pub fn new(raw_body: String) -> Self { + Self { raw_body } } } #[doc = "A codec flag, which tells the encoder to copy the input audio bitstream."] @@ -2458,8 +2330,6 @@ impl ErrorResponse { #[doc = "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FaceDetectorPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected."] #[serde(default, skip_serializing_if = "Option::is_none")] pub resolution: Option, @@ -2474,9 +2344,8 @@ pub struct FaceDetectorPreset { pub experimental_options: Option, } impl FaceDetectorPreset { - pub fn new(preset: Preset) -> Self { + pub fn new() -> Self { Self { - preset, resolution: None, mode: None, blur_type: None, @@ -3451,8 +3320,6 @@ impl InputFile { #[doc = "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Job { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3671,14 +3538,6 @@ impl JobErrorDetail { Self::default() } } -#[doc = "Base class for inputs to a Job."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct JobInput {} -impl JobInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -3710,8 +3569,6 @@ impl JobInputAsset { #[doc = "Represents input files for a Job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputClip { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings will not be returned in service responses to prevent sensitive data exposure."] #[serde( default, @@ -3738,9 +3595,8 @@ pub struct JobInputClip { pub input_definitions: Vec, } impl JobInputClip { - pub fn new(job_input: JobInput) -> Self { + pub fn new() -> Self { Self { - job_input, files: Vec::new(), start: None, end: None, @@ -3769,8 +3625,6 @@ impl JobInputHttp { #[doc = "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputSequence { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "JobInputs that make up the timeline."] #[serde( default, @@ -3780,18 +3634,13 @@ pub struct JobInputSequence { pub inputs: Vec, } impl JobInputSequence { - pub fn new(job_input: JobInput) -> Self { - Self { - job_input, - inputs: Vec::new(), - } + pub fn new() -> Self { + Self { inputs: Vec::new() } } } #[doc = "Describes a list of inputs to a Job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputs { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "List of inputs to a Job."] #[serde( default, @@ -3801,11 +3650,8 @@ pub struct JobInputs { pub inputs: Vec, } impl JobInputs { - pub fn new(job_input: JobInput) -> Self { - Self { - job_input, - inputs: Vec::new(), - } + pub fn new() -> Self { + Self { inputs: Vec::new() } } } #[doc = "Describes all the properties of a JobOutput."] @@ -4056,13 +3902,10 @@ pub mod job_properties { } #[doc = "Describes the settings for producing JPEG thumbnails."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct JpgFormat { - #[serde(flatten)] - pub image_format: ImageFormat, -} +pub struct JpgFormat {} impl JpgFormat { - pub fn new(image_format: ImageFormat) -> Self { - Self { image_format } + pub fn new() -> Self { + Self {} } } #[doc = "Describes the properties for producing a series of JPEG images from the input video."] @@ -4759,8 +4602,6 @@ impl LiveEventTranscription { #[doc = "The Live Output."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LiveOutput { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties required to create a live output."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5621,13 +5462,10 @@ pub enum OverlayUnion { } #[doc = "Describes the settings for producing PNG thumbnails."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PngFormat { - #[serde(flatten)] - pub image_format: ImageFormat, -} +pub struct PngFormat {} impl PngFormat { - pub fn new(image_format: ImageFormat) -> Self { - Self { image_format } + pub fn new() -> Self { + Self {} } } #[doc = "Describes the properties for producing a series of PNG images from the input video."] @@ -5686,14 +5524,6 @@ impl PresentationTimeRange { Self::default() } } -#[doc = "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Preset {} -impl Preset { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -6246,8 +6076,6 @@ impl SelectAudioTrackById { #[doc = "Select video tracks from the input by specifying an attribute and an attribute filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SelectVideoTrackByAttribute { - #[serde(flatten)] - pub video_track_descriptor: VideoTrackDescriptor, #[doc = "The TrackAttribute to filter the tracks by."] pub attribute: select_video_track_by_attribute::Attribute, #[doc = "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks."] @@ -6257,13 +6085,8 @@ pub struct SelectVideoTrackByAttribute { pub filter_value: Option, } impl SelectVideoTrackByAttribute { - pub fn new( - video_track_descriptor: VideoTrackDescriptor, - attribute: select_video_track_by_attribute::Attribute, - filter: select_video_track_by_attribute::Filter, - ) -> Self { + pub fn new(attribute: select_video_track_by_attribute::Attribute, filter: select_video_track_by_attribute::Filter) -> Self { Self { - video_track_descriptor, attribute, filter, filter_value: None, @@ -6354,18 +6177,13 @@ pub mod select_video_track_by_attribute { #[doc = "Select video tracks from the input by specifying a track identifier."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SelectVideoTrackById { - #[serde(flatten)] - pub video_track_descriptor: VideoTrackDescriptor, #[doc = "Track identifier to select"] #[serde(rename = "trackId")] pub track_id: i64, } impl SelectVideoTrackById { - pub fn new(video_track_descriptor: VideoTrackDescriptor, track_id: i64) -> Self { - Self { - video_track_descriptor, - track_id, - } + pub fn new(track_id: i64) -> Self { + Self { track_id } } } #[doc = "The service metric specifications."] @@ -6396,8 +6214,6 @@ impl ServiceSpecification { #[doc = "Describes all the settings to be used when encoding the input video with the Standard Encoder."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StandardEncoderPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "Dictionary containing key value pairs for parameters not exposed in the preset itself"] #[serde(rename = "experimentalOptions", default, skip_serializing_if = "Option::is_none")] pub experimental_options: Option, @@ -6410,9 +6226,8 @@ pub struct StandardEncoderPreset { pub formats: Vec, } impl StandardEncoderPreset { - pub fn new(preset: Preset, codecs: Vec, formats: Vec) -> Self { + pub fn new(codecs: Vec, formats: Vec) -> Self { Self { - preset, experimental_options: None, filters: None, codecs, @@ -6730,8 +6545,6 @@ impl StreamingEntityScaleUnit { #[doc = "A Streaming Locator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingLocator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Streaming Locator."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7021,8 +6834,6 @@ pub mod streaming_path { #[doc = "A Streaming Policy resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Class to specify properties of Streaming Policy"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7189,8 +7000,6 @@ impl SyncStorageKeysInput { #[doc = "Represents a text track in an asset. A text track is usually used for sparse data related to the audio or video tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TextTrack { - #[serde(flatten)] - pub track_base: TrackBase, #[doc = "The file name to the source file. This file is located in the storage container of the asset."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -7208,9 +7017,8 @@ pub struct TextTrack { pub hls_settings: Option, } impl TextTrack { - pub fn new(track_base: TrackBase) -> Self { + pub fn new() -> Self { Self { - track_base, file_name: None, display_name: None, language_code: None, @@ -7259,14 +7067,6 @@ pub mod text_track { } } } -#[doc = "Base type for concrete track types. A derived type must be used to represent the Track."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TrackBase {} -impl TrackBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -7278,14 +7078,6 @@ pub enum TrackBaseUnion { #[serde(rename = "#Microsoft.Media.VideoTrack")] MicrosoftMediaVideoTrack(VideoTrack), } -#[doc = "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TrackDescriptor {} -impl TrackDescriptor { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -7433,8 +7225,6 @@ impl TrackedResource { #[doc = "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Transform { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "A Transform."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7633,15 +7423,13 @@ impl UserAssignedManagedIdentity { #[doc = "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UtcClipTime { - #[serde(flatten)] - pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media based on Utc time."] #[serde(with = "azure_core::date::rfc3339")] pub time: time::OffsetDateTime, } impl UtcClipTime { - pub fn new(clip_time: ClipTime, time: time::OffsetDateTime) -> Self { - Self { clip_time, time } + pub fn new(time: time::OffsetDateTime) -> Self { + Self { time } } } #[doc = "Describes the basic properties for encoding the input video."] @@ -7874,24 +7662,18 @@ impl VideoOverlay { } #[doc = "Represents a video track in the asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VideoTrack { - #[serde(flatten)] - pub track_base: TrackBase, -} +pub struct VideoTrack {} impl VideoTrack { - pub fn new(track_base: TrackBase) -> Self { - Self { track_base } + pub fn new() -> Self { + Self {} } } #[doc = "A TrackSelection to select video tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VideoTrackDescriptor { - #[serde(flatten)] - pub track_descriptor: TrackDescriptor, -} +pub struct VideoTrackDescriptor {} impl VideoTrackDescriptor { - pub fn new(track_descriptor: TrackDescriptor) -> Self { - Self { track_descriptor } + pub fn new() -> Self { + Self {} } } #[doc = "Metadata pertaining to creation and last modification of the resource."] diff --git a/services/mgmt/mediaservices/src/package_metadata_2022_08/models.rs b/services/mgmt/mediaservices/src/package_metadata_2022_08/models.rs index ad101c7d14..cb2acedcf5 100644 --- a/services/mgmt/mediaservices/src/package_metadata_2022_08/models.rs +++ b/services/mgmt/mediaservices/src/package_metadata_2022_08/models.rs @@ -62,14 +62,12 @@ pub mod aac_audio { #[doc = "Specifies the clip time as an absolute time position in the media file. The absolute time can point to a different position depending on whether the media file starts from a timestamp of zero or not."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AbsoluteClipTime { - #[serde(flatten)] - pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S for 30 seconds."] pub time: String, } impl AbsoluteClipTime { - pub fn new(clip_time: ClipTime, time: String) -> Self { - Self { clip_time, time } + pub fn new(time: String) -> Self { + Self { time } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -197,8 +195,6 @@ pub mod account_encryption { #[doc = "An Account Filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountFilter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Media Filter properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -337,8 +333,6 @@ impl ArmStreamingEndpointSkuInfo { #[doc = "An Asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Asset { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Asset properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -418,8 +412,6 @@ impl AssetFileEncryptionMetadata { #[doc = "An Asset Filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssetFilter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Media Filter properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -568,8 +560,6 @@ impl AssetStreamingLocator { #[doc = "An Asset Track resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssetTrack { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a video, audio or text track in the asset."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -778,8 +768,6 @@ impl Audio { #[doc = "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioAnalyzerPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463"] #[serde(rename = "audioLanguage", default, skip_serializing_if = "Option::is_none")] pub audio_language: Option, @@ -791,9 +779,8 @@ pub struct AudioAnalyzerPreset { pub experimental_options: Option, } impl AudioAnalyzerPreset { - pub fn new(preset: Preset) -> Self { + pub fn new() -> Self { Self { - preset, audio_language: None, mode: None, experimental_options: None, @@ -854,8 +841,6 @@ impl AudioOverlay { #[doc = "Represents an audio track in the asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioTrack { - #[serde(flatten)] - pub track_base: TrackBase, #[doc = "The file name to the source file. This file is located in the storage container of the asset."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -879,9 +864,8 @@ pub struct AudioTrack { pub bit_rate: Option, } impl AudioTrack { - pub fn new(track_base: TrackBase) -> Self { + pub fn new() -> Self { Self { - track_base, file_name: None, display_name: None, language_code: None, @@ -895,18 +879,13 @@ impl AudioTrack { #[doc = "A TrackSelection to select audio tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioTrackDescriptor { - #[serde(flatten)] - pub track_descriptor: TrackDescriptor, #[doc = "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks."] #[serde(rename = "channelMapping", default, skip_serializing_if = "Option::is_none")] pub channel_mapping: Option, } impl AudioTrackDescriptor { - pub fn new(track_descriptor: TrackDescriptor) -> Self { - Self { - track_descriptor, - channel_mapping: None, - } + pub fn new() -> Self { + Self { channel_mapping: None } } } pub mod audio_track_descriptor { @@ -964,8 +943,6 @@ pub mod audio_track_descriptor { #[doc = "Describes a built-in preset for encoding the input video with the Standard Encoder."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BuiltInStandardEncoderPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "An object of optional configuration settings for encoder."] #[serde(default, skip_serializing_if = "Option::is_none")] pub configurations: Option, @@ -974,9 +951,8 @@ pub struct BuiltInStandardEncoderPreset { pub preset_name: built_in_standard_encoder_preset::PresetName, } impl BuiltInStandardEncoderPreset { - pub fn new(preset: Preset, preset_name: built_in_standard_encoder_preset::PresetName) -> Self { + pub fn new(preset_name: built_in_standard_encoder_preset::PresetName) -> Self { Self { - preset, configurations: None, preset_name, } @@ -1115,14 +1091,6 @@ impl ClearKeyEncryptionConfiguration { Self::default() } } -#[doc = "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ClipTime {} -impl ClipTime { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1218,8 +1186,6 @@ impl CommonEncryptionCenc { #[doc = "A Content Key Policy resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContentKeyPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of the Content Key Policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1234,15 +1200,10 @@ impl ContentKeyPolicy { } #[doc = "Represents a configuration for non-DRM keys."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyClearKeyConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, -} +pub struct ContentKeyPolicyClearKeyConfiguration {} impl ContentKeyPolicyClearKeyConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration) -> Self { - Self { - content_key_policy_configuration, - } + pub fn new() -> Self { + Self {} } } #[doc = "A collection of ContentKeyPolicy items."] @@ -1270,14 +1231,6 @@ impl ContentKeyPolicyCollection { Self::default() } } -#[doc = "Base class for Content Key Policy configuration. A derived class must be used to create a configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyConfiguration {} -impl ContentKeyPolicyConfiguration { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1296,8 +1249,6 @@ pub enum ContentKeyPolicyConfigurationUnion { #[doc = "Specifies a configuration for FairPlay licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyFairPlayConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded."] pub ask: String, #[doc = "The password encrypting FairPlay certificate in PKCS 12 (pfx) format."] @@ -1317,7 +1268,6 @@ pub struct ContentKeyPolicyFairPlayConfiguration { } impl ContentKeyPolicyFairPlayConfiguration { pub fn new( - content_key_policy_configuration: ContentKeyPolicyConfiguration, ask: String, fair_play_pfx_password: String, fair_play_pfx: String, @@ -1325,7 +1275,6 @@ impl ContentKeyPolicyFairPlayConfiguration { rental_duration: i64, ) -> Self { Self { - content_key_policy_configuration, ask, fair_play_pfx_password, fair_play_pfx, @@ -1400,15 +1349,10 @@ impl ContentKeyPolicyFairPlayOfflineRentalConfiguration { } #[doc = "Represents an open restriction. License or key will be delivered on every request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyOpenRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, -} +pub struct ContentKeyPolicyOpenRestriction {} impl ContentKeyPolicyOpenRestriction { - pub fn new(content_key_policy_restriction: ContentKeyPolicyRestriction) -> Self { - Self { - content_key_policy_restriction, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents a policy option."] @@ -1438,8 +1382,6 @@ impl ContentKeyPolicyOption { #[doc = "Specifies a configuration for PlayReady licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyPlayReadyConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The PlayReady licenses."] pub licenses: Vec, #[doc = "The custom response data."] @@ -1447,9 +1389,8 @@ pub struct ContentKeyPolicyPlayReadyConfiguration { pub response_custom_data: Option, } impl ContentKeyPolicyPlayReadyConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration, licenses: Vec) -> Self { + pub fn new(licenses: Vec) -> Self { Self { - content_key_policy_configuration, licenses, response_custom_data: None, } @@ -1457,40 +1398,22 @@ impl ContentKeyPolicyPlayReadyConfiguration { } #[doc = "Specifies that the content key ID is in the PlayReady header."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader { - #[serde(flatten)] - pub content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, -} +pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader {} impl ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader { - pub fn new(content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation) -> Self { - Self { - content_key_policy_play_ready_content_key_location, - } + pub fn new() -> Self { + Self {} } } #[doc = "Specifies that the content key ID is specified in the PlayReady configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier { - #[serde(flatten)] - pub content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, #[doc = "The content key ID."] #[serde(rename = "keyId")] pub key_id: String, } impl ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier { - pub fn new(content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, key_id: String) -> Self { - Self { - content_key_policy_play_ready_content_key_location, - key_id, - } - } -} -#[doc = "Base class for content key ID location. A derived class must be used to represent the location."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyPlayReadyContentKeyLocation {} -impl ContentKeyPolicyPlayReadyContentKeyLocation { - pub fn new() -> Self { - Self {} + pub fn new(key_id: String) -> Self { + Self { key_id } } } #[doc = "The discriminator for derived types."] @@ -1854,14 +1777,6 @@ impl ContentKeyPolicyProperties { } } } -#[doc = "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyRestriction {} -impl ContentKeyPolicyRestriction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1873,14 +1788,6 @@ pub enum ContentKeyPolicyRestrictionUnion { #[serde(rename = "#Microsoft.Media.ContentKeyPolicyUnknownRestriction")] MicrosoftMediaContentKeyPolicyUnknownRestriction(ContentKeyPolicyUnknownRestriction), } -#[doc = "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyRestrictionTokenKey {} -impl ContentKeyPolicyRestrictionTokenKey { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1895,37 +1802,26 @@ pub enum ContentKeyPolicyRestrictionTokenKeyUnion { #[doc = "Specifies a RSA key for token validation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyRsaTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The RSA Parameter exponent"] pub exponent: String, #[doc = "The RSA Parameter modulus"] pub modulus: String, } impl ContentKeyPolicyRsaTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, exponent: String, modulus: String) -> Self { - Self { - content_key_policy_restriction_token_key, - exponent, - modulus, - } + pub fn new(exponent: String, modulus: String) -> Self { + Self { exponent, modulus } } } #[doc = "Specifies a symmetric key for token validation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicySymmetricTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The key value of the key"] #[serde(rename = "keyValue")] pub key_value: String, } impl ContentKeyPolicySymmetricTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, key_value: String) -> Self { - Self { - content_key_policy_restriction_token_key, - key_value, - } + pub fn new(key_value: String) -> Self { + Self { key_value } } } #[doc = "Represents a token claim."] @@ -1946,8 +1842,6 @@ impl ContentKeyPolicyTokenClaim { #[doc = "Represents a token restriction. Provided token must match these requirements for successful license or key delivery."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyTokenRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, #[doc = "The token issuer."] pub issuer: String, #[doc = "The audience for the token."] @@ -1980,14 +1874,12 @@ pub struct ContentKeyPolicyTokenRestriction { } impl ContentKeyPolicyTokenRestriction { pub fn new( - content_key_policy_restriction: ContentKeyPolicyRestriction, issuer: String, audience: String, primary_verification_key: ContentKeyPolicyRestrictionTokenKeyUnion, restriction_token_type: content_key_policy_token_restriction::RestrictionTokenType, ) -> Self { Self { - content_key_policy_restriction, issuer, audience, primary_verification_key, @@ -2042,62 +1934,42 @@ pub mod content_key_policy_token_restriction { } #[doc = "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyUnknownConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, -} +pub struct ContentKeyPolicyUnknownConfiguration {} impl ContentKeyPolicyUnknownConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration) -> Self { - Self { - content_key_policy_configuration, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyUnknownRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, -} +pub struct ContentKeyPolicyUnknownRestriction {} impl ContentKeyPolicyUnknownRestriction { - pub fn new(content_key_policy_restriction: ContentKeyPolicyRestriction) -> Self { - Self { - content_key_policy_restriction, - } + pub fn new() -> Self { + Self {} } } #[doc = "Specifies a configuration for Widevine licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyWidevineConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The Widevine template."] #[serde(rename = "widevineTemplate")] pub widevine_template: String, } impl ContentKeyPolicyWidevineConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration, widevine_template: String) -> Self { - Self { - content_key_policy_configuration, - widevine_template, - } + pub fn new(widevine_template: String) -> Self { + Self { widevine_template } } } #[doc = "Specifies a certificate for token validation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyX509CertificateTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)"] #[serde(rename = "rawBody")] pub raw_body: String, } impl ContentKeyPolicyX509CertificateTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, raw_body: String) -> Self { - Self { - content_key_policy_restriction_token_key, - raw_body, - } + pub fn new(raw_body: String) -> Self { + Self { raw_body } } } #[doc = "A codec flag, which tells the encoder to copy the input audio bitstream."] @@ -2444,8 +2316,6 @@ impl ErrorResponse { #[doc = "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FaceDetectorPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected."] #[serde(default, skip_serializing_if = "Option::is_none")] pub resolution: Option, @@ -2460,9 +2330,8 @@ pub struct FaceDetectorPreset { pub experimental_options: Option, } impl FaceDetectorPreset { - pub fn new(preset: Preset) -> Self { + pub fn new() -> Self { Self { - preset, resolution: None, mode: None, blur_type: None, @@ -3410,8 +3279,6 @@ impl InputFile { #[doc = "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Job { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3626,14 +3493,6 @@ impl JobErrorDetail { Self::default() } } -#[doc = "Base class for inputs to a Job."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct JobInput {} -impl JobInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -3665,8 +3524,6 @@ impl JobInputAsset { #[doc = "Represents input files for a Job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputClip { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings will not be returned in service responses to prevent sensitive data exposure."] #[serde( default, @@ -3693,9 +3550,8 @@ pub struct JobInputClip { pub input_definitions: Vec, } impl JobInputClip { - pub fn new(job_input: JobInput) -> Self { + pub fn new() -> Self { Self { - job_input, files: Vec::new(), start: None, end: None, @@ -3724,8 +3580,6 @@ impl JobInputHttp { #[doc = "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputSequence { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "JobInputs that make up the timeline."] #[serde( default, @@ -3735,18 +3589,13 @@ pub struct JobInputSequence { pub inputs: Vec, } impl JobInputSequence { - pub fn new(job_input: JobInput) -> Self { - Self { - job_input, - inputs: Vec::new(), - } + pub fn new() -> Self { + Self { inputs: Vec::new() } } } #[doc = "Describes a list of inputs to a Job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputs { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "List of inputs to a Job."] #[serde( default, @@ -3756,11 +3605,8 @@ pub struct JobInputs { pub inputs: Vec, } impl JobInputs { - pub fn new(job_input: JobInput) -> Self { - Self { - job_input, - inputs: Vec::new(), - } + pub fn new() -> Self { + Self { inputs: Vec::new() } } } #[doc = "Describes all the properties of a JobOutput."] @@ -4011,13 +3857,10 @@ pub mod job_properties { } #[doc = "Describes the settings for producing JPEG thumbnails."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct JpgFormat { - #[serde(flatten)] - pub image_format: ImageFormat, -} +pub struct JpgFormat {} impl JpgFormat { - pub fn new(image_format: ImageFormat) -> Self { - Self { image_format } + pub fn new() -> Self { + Self {} } } #[doc = "Describes the properties for producing a series of JPEG images from the input video."] @@ -4714,8 +4557,6 @@ impl LiveEventTranscription { #[doc = "The Live Output."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LiveOutput { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties required to create a live output."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -5576,13 +5417,10 @@ pub enum OverlayUnion { } #[doc = "Describes the settings for producing PNG thumbnails."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PngFormat { - #[serde(flatten)] - pub image_format: ImageFormat, -} +pub struct PngFormat {} impl PngFormat { - pub fn new(image_format: ImageFormat) -> Self { - Self { image_format } + pub fn new() -> Self { + Self {} } } #[doc = "Describes the properties for producing a series of PNG images from the input video."] @@ -5641,14 +5479,6 @@ impl PresentationTimeRange { Self::default() } } -#[doc = "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Preset {} -impl Preset { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -6201,8 +6031,6 @@ impl SelectAudioTrackById { #[doc = "Select video tracks from the input by specifying an attribute and an attribute filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SelectVideoTrackByAttribute { - #[serde(flatten)] - pub video_track_descriptor: VideoTrackDescriptor, #[doc = "The TrackAttribute to filter the tracks by."] pub attribute: select_video_track_by_attribute::Attribute, #[doc = "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks."] @@ -6212,13 +6040,8 @@ pub struct SelectVideoTrackByAttribute { pub filter_value: Option, } impl SelectVideoTrackByAttribute { - pub fn new( - video_track_descriptor: VideoTrackDescriptor, - attribute: select_video_track_by_attribute::Attribute, - filter: select_video_track_by_attribute::Filter, - ) -> Self { + pub fn new(attribute: select_video_track_by_attribute::Attribute, filter: select_video_track_by_attribute::Filter) -> Self { Self { - video_track_descriptor, attribute, filter, filter_value: None, @@ -6309,18 +6132,13 @@ pub mod select_video_track_by_attribute { #[doc = "Select video tracks from the input by specifying a track identifier."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SelectVideoTrackById { - #[serde(flatten)] - pub video_track_descriptor: VideoTrackDescriptor, #[doc = "Track identifier to select"] #[serde(rename = "trackId")] pub track_id: i64, } impl SelectVideoTrackById { - pub fn new(video_track_descriptor: VideoTrackDescriptor, track_id: i64) -> Self { - Self { - video_track_descriptor, - track_id, - } + pub fn new(track_id: i64) -> Self { + Self { track_id } } } #[doc = "The service metric specifications."] @@ -6351,8 +6169,6 @@ impl ServiceSpecification { #[doc = "Describes all the settings to be used when encoding the input video with the Standard Encoder."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StandardEncoderPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "Describes all the filtering operations, such as de-interlacing, rotation etc. that are to be applied to the input media before encoding."] #[serde(default, skip_serializing_if = "Option::is_none")] pub filters: Option, @@ -6362,9 +6178,8 @@ pub struct StandardEncoderPreset { pub formats: Vec, } impl StandardEncoderPreset { - pub fn new(preset: Preset, codecs: Vec, formats: Vec) -> Self { + pub fn new(codecs: Vec, formats: Vec) -> Self { Self { - preset, filters: None, codecs, formats, @@ -6681,8 +6496,6 @@ impl StreamingEntityScaleUnit { #[doc = "A Streaming Locator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingLocator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Streaming Locator."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6972,8 +6785,6 @@ pub mod streaming_path { #[doc = "A Streaming Policy resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Class to specify properties of Streaming Policy"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7140,8 +6951,6 @@ impl SyncStorageKeysInput { #[doc = "Represents a text track in an asset. A text track is usually used for sparse data related to the audio or video tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TextTrack { - #[serde(flatten)] - pub track_base: TrackBase, #[doc = "The file name to the source file. This file is located in the storage container of the asset."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -7159,9 +6968,8 @@ pub struct TextTrack { pub hls_settings: Option, } impl TextTrack { - pub fn new(track_base: TrackBase) -> Self { + pub fn new() -> Self { Self { - track_base, file_name: None, display_name: None, language_code: None, @@ -7210,14 +7018,6 @@ pub mod text_track { } } } -#[doc = "Base type for concrete track types. A derived type must be used to represent the Track."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TrackBase {} -impl TrackBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -7229,14 +7029,6 @@ pub enum TrackBaseUnion { #[serde(rename = "#Microsoft.Media.VideoTrack")] MicrosoftMediaVideoTrack(VideoTrack), } -#[doc = "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TrackDescriptor {} -impl TrackDescriptor { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -7384,8 +7176,6 @@ impl TrackedResource { #[doc = "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Transform { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "A Transform."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7584,15 +7374,13 @@ impl UserAssignedManagedIdentity { #[doc = "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UtcClipTime { - #[serde(flatten)] - pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media based on Utc time."] #[serde(with = "azure_core::date::rfc3339")] pub time: time::OffsetDateTime, } impl UtcClipTime { - pub fn new(clip_time: ClipTime, time: time::OffsetDateTime) -> Self { - Self { clip_time, time } + pub fn new(time: time::OffsetDateTime) -> Self { + Self { time } } } #[doc = "Describes the basic properties for encoding the input video."] @@ -7825,24 +7613,18 @@ impl VideoOverlay { } #[doc = "Represents a video track in the asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VideoTrack { - #[serde(flatten)] - pub track_base: TrackBase, -} +pub struct VideoTrack {} impl VideoTrack { - pub fn new(track_base: TrackBase) -> Self { - Self { track_base } + pub fn new() -> Self { + Self {} } } #[doc = "A TrackSelection to select video tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VideoTrackDescriptor { - #[serde(flatten)] - pub track_descriptor: TrackDescriptor, -} +pub struct VideoTrackDescriptor {} impl VideoTrackDescriptor { - pub fn new(track_descriptor: TrackDescriptor) -> Self { - Self { track_descriptor } + pub fn new() -> Self { + Self {} } } #[doc = "Metadata pertaining to creation and last modification of the resource."] diff --git a/services/mgmt/mediaservices/src/package_metadata_2023_01/models.rs b/services/mgmt/mediaservices/src/package_metadata_2023_01/models.rs index d367df3773..6bd8e48cbf 100644 --- a/services/mgmt/mediaservices/src/package_metadata_2023_01/models.rs +++ b/services/mgmt/mediaservices/src/package_metadata_2023_01/models.rs @@ -62,14 +62,12 @@ pub mod aac_audio { #[doc = "Specifies the clip time as an absolute time position in the media file. The absolute time can point to a different position depending on whether the media file starts from a timestamp of zero or not."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AbsoluteClipTime { - #[serde(flatten)] - pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S for 30 seconds."] pub time: String, } impl AbsoluteClipTime { - pub fn new(clip_time: ClipTime, time: String) -> Self { - Self { clip_time, time } + pub fn new(time: String) -> Self { + Self { time } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -197,8 +195,6 @@ pub mod account_encryption { #[doc = "An Account Filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountFilter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Media Filter properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -337,8 +333,6 @@ impl ArmStreamingEndpointSkuInfo { #[doc = "An Asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Asset { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Asset properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -418,8 +412,6 @@ impl AssetFileEncryptionMetadata { #[doc = "An Asset Filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssetFilter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Media Filter properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -571,8 +563,6 @@ impl AssetStreamingLocator { #[doc = "An Asset Track resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssetTrack { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a video, audio or text track in the asset."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -781,8 +771,6 @@ impl Audio { #[doc = "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioAnalyzerPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463"] #[serde(rename = "audioLanguage", default, skip_serializing_if = "Option::is_none")] pub audio_language: Option, @@ -794,9 +782,8 @@ pub struct AudioAnalyzerPreset { pub experimental_options: Option, } impl AudioAnalyzerPreset { - pub fn new(preset: Preset) -> Self { + pub fn new() -> Self { Self { - preset, audio_language: None, mode: None, experimental_options: None, @@ -857,8 +844,6 @@ impl AudioOverlay { #[doc = "Represents an audio track in the asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioTrack { - #[serde(flatten)] - pub track_base: TrackBase, #[doc = "The file name to the source file. This file is located in the storage container of the asset."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -882,9 +867,8 @@ pub struct AudioTrack { pub bit_rate: Option, } impl AudioTrack { - pub fn new(track_base: TrackBase) -> Self { + pub fn new() -> Self { Self { - track_base, file_name: None, display_name: None, language_code: None, @@ -898,18 +882,13 @@ impl AudioTrack { #[doc = "A TrackSelection to select audio tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioTrackDescriptor { - #[serde(flatten)] - pub track_descriptor: TrackDescriptor, #[doc = "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks."] #[serde(rename = "channelMapping", default, skip_serializing_if = "Option::is_none")] pub channel_mapping: Option, } impl AudioTrackDescriptor { - pub fn new(track_descriptor: TrackDescriptor) -> Self { - Self { - track_descriptor, - channel_mapping: None, - } + pub fn new() -> Self { + Self { channel_mapping: None } } } pub mod audio_track_descriptor { @@ -967,8 +946,6 @@ pub mod audio_track_descriptor { #[doc = "Describes a built-in preset for encoding the input video with the Standard Encoder."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BuiltInStandardEncoderPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "An object of optional configuration settings for encoder."] #[serde(default, skip_serializing_if = "Option::is_none")] pub configurations: Option, @@ -977,9 +954,8 @@ pub struct BuiltInStandardEncoderPreset { pub preset_name: built_in_standard_encoder_preset::PresetName, } impl BuiltInStandardEncoderPreset { - pub fn new(preset: Preset, preset_name: built_in_standard_encoder_preset::PresetName) -> Self { + pub fn new(preset_name: built_in_standard_encoder_preset::PresetName) -> Self { Self { - preset, configurations: None, preset_name, } @@ -1121,14 +1097,6 @@ impl ClearKeyEncryptionConfiguration { Self::default() } } -#[doc = "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ClipTime {} -impl ClipTime { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1224,8 +1192,6 @@ impl CommonEncryptionCenc { #[doc = "A Content Key Policy resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContentKeyPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of the Content Key Policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1240,15 +1206,10 @@ impl ContentKeyPolicy { } #[doc = "Represents a configuration for non-DRM keys."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyClearKeyConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, -} +pub struct ContentKeyPolicyClearKeyConfiguration {} impl ContentKeyPolicyClearKeyConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration) -> Self { - Self { - content_key_policy_configuration, - } + pub fn new() -> Self { + Self {} } } #[doc = "A collection of ContentKeyPolicy items."] @@ -1276,14 +1237,6 @@ impl ContentKeyPolicyCollection { Self::default() } } -#[doc = "Base class for Content Key Policy configuration. A derived class must be used to create a configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyConfiguration {} -impl ContentKeyPolicyConfiguration { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1302,8 +1255,6 @@ pub enum ContentKeyPolicyConfigurationUnion { #[doc = "Specifies a configuration for FairPlay licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyFairPlayConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded."] pub ask: String, #[doc = "The password encrypting FairPlay certificate in PKCS 12 (pfx) format."] @@ -1323,7 +1274,6 @@ pub struct ContentKeyPolicyFairPlayConfiguration { } impl ContentKeyPolicyFairPlayConfiguration { pub fn new( - content_key_policy_configuration: ContentKeyPolicyConfiguration, ask: String, fair_play_pfx_password: String, fair_play_pfx: String, @@ -1331,7 +1281,6 @@ impl ContentKeyPolicyFairPlayConfiguration { rental_duration: i64, ) -> Self { Self { - content_key_policy_configuration, ask, fair_play_pfx_password, fair_play_pfx, @@ -1406,15 +1355,10 @@ impl ContentKeyPolicyFairPlayOfflineRentalConfiguration { } #[doc = "Represents an open restriction. License or key will be delivered on every request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyOpenRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, -} +pub struct ContentKeyPolicyOpenRestriction {} impl ContentKeyPolicyOpenRestriction { - pub fn new(content_key_policy_restriction: ContentKeyPolicyRestriction) -> Self { - Self { - content_key_policy_restriction, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents a policy option."] @@ -1444,8 +1388,6 @@ impl ContentKeyPolicyOption { #[doc = "Specifies a configuration for PlayReady licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyPlayReadyConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The PlayReady licenses."] pub licenses: Vec, #[doc = "The custom response data."] @@ -1453,9 +1395,8 @@ pub struct ContentKeyPolicyPlayReadyConfiguration { pub response_custom_data: Option, } impl ContentKeyPolicyPlayReadyConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration, licenses: Vec) -> Self { + pub fn new(licenses: Vec) -> Self { Self { - content_key_policy_configuration, licenses, response_custom_data: None, } @@ -1463,40 +1404,22 @@ impl ContentKeyPolicyPlayReadyConfiguration { } #[doc = "Specifies that the content key ID is in the PlayReady header."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader { - #[serde(flatten)] - pub content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, -} +pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader {} impl ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader { - pub fn new(content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation) -> Self { - Self { - content_key_policy_play_ready_content_key_location, - } + pub fn new() -> Self { + Self {} } } #[doc = "Specifies that the content key ID is specified in the PlayReady configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier { - #[serde(flatten)] - pub content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, #[doc = "The content key ID."] #[serde(rename = "keyId")] pub key_id: String, } impl ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier { - pub fn new(content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, key_id: String) -> Self { - Self { - content_key_policy_play_ready_content_key_location, - key_id, - } - } -} -#[doc = "Base class for content key ID location. A derived class must be used to represent the location."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyPlayReadyContentKeyLocation {} -impl ContentKeyPolicyPlayReadyContentKeyLocation { - pub fn new() -> Self { - Self {} + pub fn new(key_id: String) -> Self { + Self { key_id } } } #[doc = "The discriminator for derived types."] @@ -1860,14 +1783,6 @@ impl ContentKeyPolicyProperties { } } } -#[doc = "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyRestriction {} -impl ContentKeyPolicyRestriction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1879,14 +1794,6 @@ pub enum ContentKeyPolicyRestrictionUnion { #[serde(rename = "#Microsoft.Media.ContentKeyPolicyUnknownRestriction")] MicrosoftMediaContentKeyPolicyUnknownRestriction(ContentKeyPolicyUnknownRestriction), } -#[doc = "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyRestrictionTokenKey {} -impl ContentKeyPolicyRestrictionTokenKey { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1901,37 +1808,26 @@ pub enum ContentKeyPolicyRestrictionTokenKeyUnion { #[doc = "Specifies a RSA key for token validation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyRsaTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The RSA Parameter exponent"] pub exponent: String, #[doc = "The RSA Parameter modulus"] pub modulus: String, } impl ContentKeyPolicyRsaTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, exponent: String, modulus: String) -> Self { - Self { - content_key_policy_restriction_token_key, - exponent, - modulus, - } + pub fn new(exponent: String, modulus: String) -> Self { + Self { exponent, modulus } } } #[doc = "Specifies a symmetric key for token validation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicySymmetricTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The key value of the key"] #[serde(rename = "keyValue")] pub key_value: String, } impl ContentKeyPolicySymmetricTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, key_value: String) -> Self { - Self { - content_key_policy_restriction_token_key, - key_value, - } + pub fn new(key_value: String) -> Self { + Self { key_value } } } #[doc = "Represents a token claim."] @@ -1952,8 +1848,6 @@ impl ContentKeyPolicyTokenClaim { #[doc = "Represents a token restriction. Provided token must match these requirements for successful license or key delivery."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyTokenRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, #[doc = "The token issuer."] pub issuer: String, #[doc = "The audience for the token."] @@ -1986,14 +1880,12 @@ pub struct ContentKeyPolicyTokenRestriction { } impl ContentKeyPolicyTokenRestriction { pub fn new( - content_key_policy_restriction: ContentKeyPolicyRestriction, issuer: String, audience: String, primary_verification_key: ContentKeyPolicyRestrictionTokenKeyUnion, restriction_token_type: content_key_policy_token_restriction::RestrictionTokenType, ) -> Self { Self { - content_key_policy_restriction, issuer, audience, primary_verification_key, @@ -2048,62 +1940,42 @@ pub mod content_key_policy_token_restriction { } #[doc = "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyUnknownConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, -} +pub struct ContentKeyPolicyUnknownConfiguration {} impl ContentKeyPolicyUnknownConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration) -> Self { - Self { - content_key_policy_configuration, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyUnknownRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, -} +pub struct ContentKeyPolicyUnknownRestriction {} impl ContentKeyPolicyUnknownRestriction { - pub fn new(content_key_policy_restriction: ContentKeyPolicyRestriction) -> Self { - Self { - content_key_policy_restriction, - } + pub fn new() -> Self { + Self {} } } #[doc = "Specifies a configuration for Widevine licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyWidevineConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The Widevine template."] #[serde(rename = "widevineTemplate")] pub widevine_template: String, } impl ContentKeyPolicyWidevineConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration, widevine_template: String) -> Self { - Self { - content_key_policy_configuration, - widevine_template, - } + pub fn new(widevine_template: String) -> Self { + Self { widevine_template } } } #[doc = "Specifies a certificate for token validation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyX509CertificateTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)"] #[serde(rename = "rawBody")] pub raw_body: String, } impl ContentKeyPolicyX509CertificateTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, raw_body: String) -> Self { - Self { - content_key_policy_restriction_token_key, - raw_body, - } + pub fn new(raw_body: String) -> Self { + Self { raw_body } } } #[doc = "A codec flag, which tells the encoder to copy the input audio bitstream."] @@ -2461,8 +2333,6 @@ impl ErrorResponse { #[doc = "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FaceDetectorPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected."] #[serde(default, skip_serializing_if = "Option::is_none")] pub resolution: Option, @@ -2477,9 +2347,8 @@ pub struct FaceDetectorPreset { pub experimental_options: Option, } impl FaceDetectorPreset { - pub fn new(preset: Preset) -> Self { + pub fn new() -> Self { Self { - preset, resolution: None, mode: None, blur_type: None, @@ -3454,8 +3323,6 @@ impl InputFile { #[doc = "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Job { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3674,14 +3541,6 @@ impl JobErrorDetail { Self::default() } } -#[doc = "Base class for inputs to a Job."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct JobInput {} -impl JobInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -3713,8 +3572,6 @@ impl JobInputAsset { #[doc = "Represents input files for a Job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputClip { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings will not be returned in service responses to prevent sensitive data exposure."] #[serde( default, @@ -3741,9 +3598,8 @@ pub struct JobInputClip { pub input_definitions: Vec, } impl JobInputClip { - pub fn new(job_input: JobInput) -> Self { + pub fn new() -> Self { Self { - job_input, files: Vec::new(), start: None, end: None, @@ -3772,8 +3628,6 @@ impl JobInputHttp { #[doc = "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputSequence { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "JobInputs that make up the timeline."] #[serde( default, @@ -3783,18 +3637,13 @@ pub struct JobInputSequence { pub inputs: Vec, } impl JobInputSequence { - pub fn new(job_input: JobInput) -> Self { - Self { - job_input, - inputs: Vec::new(), - } + pub fn new() -> Self { + Self { inputs: Vec::new() } } } #[doc = "Describes a list of inputs to a Job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputs { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "List of inputs to a Job."] #[serde( default, @@ -3804,11 +3653,8 @@ pub struct JobInputs { pub inputs: Vec, } impl JobInputs { - pub fn new(job_input: JobInput) -> Self { - Self { - job_input, - inputs: Vec::new(), - } + pub fn new() -> Self { + Self { inputs: Vec::new() } } } #[doc = "Describes all the properties of a JobOutput."] @@ -4059,13 +3905,10 @@ pub mod job_properties { } #[doc = "Describes the settings for producing JPEG thumbnails."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct JpgFormat { - #[serde(flatten)] - pub image_format: ImageFormat, -} +pub struct JpgFormat {} impl JpgFormat { - pub fn new(image_format: ImageFormat) -> Self { - Self { image_format } + pub fn new() -> Self { + Self {} } } #[doc = "Describes the properties for producing a series of JPEG images from the input video."] @@ -5538,8 +5381,6 @@ impl LiveEventTranscription { #[doc = "The Live Output."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LiveOutput { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties required to create a live output."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6449,13 +6290,10 @@ pub enum OverlayUnion { } #[doc = "Describes the settings for producing PNG thumbnails."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PngFormat { - #[serde(flatten)] - pub image_format: ImageFormat, -} +pub struct PngFormat {} impl PngFormat { - pub fn new(image_format: ImageFormat) -> Self { - Self { image_format } + pub fn new() -> Self { + Self {} } } #[doc = "Describes the properties for producing a series of PNG images from the input video."] @@ -6514,14 +6352,6 @@ impl PresentationTimeRange { Self::default() } } -#[doc = "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Preset {} -impl Preset { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -7074,8 +6904,6 @@ impl SelectAudioTrackById { #[doc = "Select video tracks from the input by specifying an attribute and an attribute filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SelectVideoTrackByAttribute { - #[serde(flatten)] - pub video_track_descriptor: VideoTrackDescriptor, #[doc = "The TrackAttribute to filter the tracks by."] pub attribute: select_video_track_by_attribute::Attribute, #[doc = "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks."] @@ -7085,13 +6913,8 @@ pub struct SelectVideoTrackByAttribute { pub filter_value: Option, } impl SelectVideoTrackByAttribute { - pub fn new( - video_track_descriptor: VideoTrackDescriptor, - attribute: select_video_track_by_attribute::Attribute, - filter: select_video_track_by_attribute::Filter, - ) -> Self { + pub fn new(attribute: select_video_track_by_attribute::Attribute, filter: select_video_track_by_attribute::Filter) -> Self { Self { - video_track_descriptor, attribute, filter, filter_value: None, @@ -7182,18 +7005,13 @@ pub mod select_video_track_by_attribute { #[doc = "Select video tracks from the input by specifying a track identifier."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SelectVideoTrackById { - #[serde(flatten)] - pub video_track_descriptor: VideoTrackDescriptor, #[doc = "Track identifier to select"] #[serde(rename = "trackId")] pub track_id: i64, } impl SelectVideoTrackById { - pub fn new(video_track_descriptor: VideoTrackDescriptor, track_id: i64) -> Self { - Self { - video_track_descriptor, - track_id, - } + pub fn new(track_id: i64) -> Self { + Self { track_id } } } #[doc = "The service metric specifications."] @@ -7224,8 +7042,6 @@ impl ServiceSpecification { #[doc = "Describes all the settings to be used when encoding the input video with the Standard Encoder."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StandardEncoderPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "Dictionary containing key value pairs for parameters not exposed in the preset itself"] #[serde(rename = "experimentalOptions", default, skip_serializing_if = "Option::is_none")] pub experimental_options: Option, @@ -7238,9 +7054,8 @@ pub struct StandardEncoderPreset { pub formats: Vec, } impl StandardEncoderPreset { - pub fn new(preset: Preset, codecs: Vec, formats: Vec) -> Self { + pub fn new(codecs: Vec, formats: Vec) -> Self { Self { - preset, experimental_options: None, filters: None, codecs, @@ -7558,8 +7373,6 @@ impl StreamingEntityScaleUnit { #[doc = "A Streaming Locator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingLocator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Streaming Locator."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7849,8 +7662,6 @@ pub mod streaming_path { #[doc = "A Streaming Policy resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Class to specify properties of Streaming Policy"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8017,8 +7828,6 @@ impl SyncStorageKeysInput { #[doc = "Represents a text track in an asset. A text track is usually used for sparse data related to the audio or video tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TextTrack { - #[serde(flatten)] - pub track_base: TrackBase, #[doc = "The file name to the source file. This file is located in the storage container of the asset."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -8036,9 +7845,8 @@ pub struct TextTrack { pub hls_settings: Option, } impl TextTrack { - pub fn new(track_base: TrackBase) -> Self { + pub fn new() -> Self { Self { - track_base, file_name: None, display_name: None, language_code: None, @@ -8087,14 +7895,6 @@ pub mod text_track { } } } -#[doc = "Base type for concrete track types. A derived type must be used to represent the Track."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TrackBase {} -impl TrackBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -8106,14 +7906,6 @@ pub enum TrackBaseUnion { #[serde(rename = "#Microsoft.Media.VideoTrack")] MicrosoftMediaVideoTrack(VideoTrack), } -#[doc = "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TrackDescriptor {} -impl TrackDescriptor { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -8261,8 +8053,6 @@ impl TrackedResource { #[doc = "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Transform { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "A Transform."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8461,15 +8251,13 @@ impl UserAssignedManagedIdentity { #[doc = "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UtcClipTime { - #[serde(flatten)] - pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media based on Utc time."] #[serde(with = "azure_core::date::rfc3339")] pub time: time::OffsetDateTime, } impl UtcClipTime { - pub fn new(clip_time: ClipTime, time: time::OffsetDateTime) -> Self { - Self { clip_time, time } + pub fn new(time: time::OffsetDateTime) -> Self { + Self { time } } } #[doc = "Describes the basic properties for encoding the input video."] @@ -8702,24 +8490,18 @@ impl VideoOverlay { } #[doc = "Represents a video track in the asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VideoTrack { - #[serde(flatten)] - pub track_base: TrackBase, -} +pub struct VideoTrack {} impl VideoTrack { - pub fn new(track_base: TrackBase) -> Self { - Self { track_base } + pub fn new() -> Self { + Self {} } } #[doc = "A TrackSelection to select video tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VideoTrackDescriptor { - #[serde(flatten)] - pub track_descriptor: TrackDescriptor, -} +pub struct VideoTrackDescriptor {} impl VideoTrackDescriptor { - pub fn new(track_descriptor: TrackDescriptor) -> Self { - Self { track_descriptor } + pub fn new() -> Self { + Self {} } } #[doc = "Metadata pertaining to creation and last modification of the resource."] diff --git a/services/mgmt/mediaservices/src/package_streaming_2022_11/models.rs b/services/mgmt/mediaservices/src/package_streaming_2022_11/models.rs index 7cbe083559..448dcc95f5 100644 --- a/services/mgmt/mediaservices/src/package_streaming_2022_11/models.rs +++ b/services/mgmt/mediaservices/src/package_streaming_2022_11/models.rs @@ -62,14 +62,12 @@ pub mod aac_audio { #[doc = "Specifies the clip time as an absolute time position in the media file. The absolute time can point to a different position depending on whether the media file starts from a timestamp of zero or not."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AbsoluteClipTime { - #[serde(flatten)] - pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media. It is usually specified as an ISO8601 period. e.g PT30S for 30 seconds."] pub time: String, } impl AbsoluteClipTime { - pub fn new(clip_time: ClipTime, time: String) -> Self { - Self { clip_time, time } + pub fn new(time: String) -> Self { + Self { time } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -197,8 +195,6 @@ pub mod account_encryption { #[doc = "An Account Filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountFilter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Media Filter properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -337,8 +333,6 @@ impl ArmStreamingEndpointSkuInfo { #[doc = "An Asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Asset { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Asset properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -418,8 +412,6 @@ impl AssetFileEncryptionMetadata { #[doc = "An Asset Filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssetFilter { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Media Filter properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -568,8 +560,6 @@ impl AssetStreamingLocator { #[doc = "An Asset Track resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AssetTrack { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a video, audio or text track in the asset."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -778,8 +768,6 @@ impl Audio { #[doc = "The Audio Analyzer preset applies a pre-defined set of AI-based analysis operations, including speech transcription. Currently, the preset supports processing of content with a single audio track."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioAnalyzerPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "The language for the audio payload in the input using the BCP-47 format of 'language tag-region' (e.g: 'en-US'). If you know the language of your content, it is recommended that you specify it. The language must be specified explicitly for AudioAnalysisMode::Basic, since automatic language detection is not included in basic mode. If the language isn't specified or set to null, automatic language detection will choose the first language detected and process with the selected language for the duration of the file. It does not currently support dynamically switching between languages after the first language is detected. The automatic detection works best with audio recordings with clearly discernable speech. If automatic detection fails to find the language, transcription would fallback to 'en-US'.\" The list of supported languages is available here: https://go.microsoft.com/fwlink/?linkid=2109463"] #[serde(rename = "audioLanguage", default, skip_serializing_if = "Option::is_none")] pub audio_language: Option, @@ -791,9 +779,8 @@ pub struct AudioAnalyzerPreset { pub experimental_options: Option, } impl AudioAnalyzerPreset { - pub fn new(preset: Preset) -> Self { + pub fn new() -> Self { Self { - preset, audio_language: None, mode: None, experimental_options: None, @@ -854,8 +841,6 @@ impl AudioOverlay { #[doc = "Represents an audio track in the asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioTrack { - #[serde(flatten)] - pub track_base: TrackBase, #[doc = "The file name to the source file. This file is located in the storage container of the asset."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -879,9 +864,8 @@ pub struct AudioTrack { pub bit_rate: Option, } impl AudioTrack { - pub fn new(track_base: TrackBase) -> Self { + pub fn new() -> Self { Self { - track_base, file_name: None, display_name: None, language_code: None, @@ -895,18 +879,13 @@ impl AudioTrack { #[doc = "A TrackSelection to select audio tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AudioTrackDescriptor { - #[serde(flatten)] - pub track_descriptor: TrackDescriptor, #[doc = "Optional designation for single channel audio tracks. Can be used to combine the tracks into stereo or multi-channel audio tracks."] #[serde(rename = "channelMapping", default, skip_serializing_if = "Option::is_none")] pub channel_mapping: Option, } impl AudioTrackDescriptor { - pub fn new(track_descriptor: TrackDescriptor) -> Self { - Self { - track_descriptor, - channel_mapping: None, - } + pub fn new() -> Self { + Self { channel_mapping: None } } } pub mod audio_track_descriptor { @@ -964,8 +943,6 @@ pub mod audio_track_descriptor { #[doc = "Describes a built-in preset for encoding the input video with the Standard Encoder."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BuiltInStandardEncoderPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "An object of optional configuration settings for encoder."] #[serde(default, skip_serializing_if = "Option::is_none")] pub configurations: Option, @@ -974,9 +951,8 @@ pub struct BuiltInStandardEncoderPreset { pub preset_name: built_in_standard_encoder_preset::PresetName, } impl BuiltInStandardEncoderPreset { - pub fn new(preset: Preset, preset_name: built_in_standard_encoder_preset::PresetName) -> Self { + pub fn new(preset_name: built_in_standard_encoder_preset::PresetName) -> Self { Self { - preset, configurations: None, preset_name, } @@ -1118,14 +1094,6 @@ impl ClearKeyEncryptionConfiguration { Self::default() } } -#[doc = "Base class for specifying a clip time. Use sub classes of this class to specify the time position in the media."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ClipTime {} -impl ClipTime { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1221,8 +1189,6 @@ impl CommonEncryptionCenc { #[doc = "A Content Key Policy resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ContentKeyPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of the Content Key Policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1237,15 +1203,10 @@ impl ContentKeyPolicy { } #[doc = "Represents a configuration for non-DRM keys."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyClearKeyConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, -} +pub struct ContentKeyPolicyClearKeyConfiguration {} impl ContentKeyPolicyClearKeyConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration) -> Self { - Self { - content_key_policy_configuration, - } + pub fn new() -> Self { + Self {} } } #[doc = "A collection of ContentKeyPolicy items."] @@ -1273,14 +1234,6 @@ impl ContentKeyPolicyCollection { Self::default() } } -#[doc = "Base class for Content Key Policy configuration. A derived class must be used to create a configuration."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyConfiguration {} -impl ContentKeyPolicyConfiguration { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1299,8 +1252,6 @@ pub enum ContentKeyPolicyConfigurationUnion { #[doc = "Specifies a configuration for FairPlay licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyFairPlayConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The key that must be used as FairPlay Application Secret key. This needs to be base64 encoded."] pub ask: String, #[doc = "The password encrypting FairPlay certificate in PKCS 12 (pfx) format."] @@ -1320,7 +1271,6 @@ pub struct ContentKeyPolicyFairPlayConfiguration { } impl ContentKeyPolicyFairPlayConfiguration { pub fn new( - content_key_policy_configuration: ContentKeyPolicyConfiguration, ask: String, fair_play_pfx_password: String, fair_play_pfx: String, @@ -1328,7 +1278,6 @@ impl ContentKeyPolicyFairPlayConfiguration { rental_duration: i64, ) -> Self { Self { - content_key_policy_configuration, ask, fair_play_pfx_password, fair_play_pfx, @@ -1403,15 +1352,10 @@ impl ContentKeyPolicyFairPlayOfflineRentalConfiguration { } #[doc = "Represents an open restriction. License or key will be delivered on every request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyOpenRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, -} +pub struct ContentKeyPolicyOpenRestriction {} impl ContentKeyPolicyOpenRestriction { - pub fn new(content_key_policy_restriction: ContentKeyPolicyRestriction) -> Self { - Self { - content_key_policy_restriction, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents a policy option."] @@ -1441,8 +1385,6 @@ impl ContentKeyPolicyOption { #[doc = "Specifies a configuration for PlayReady licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyPlayReadyConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The PlayReady licenses."] pub licenses: Vec, #[doc = "The custom response data."] @@ -1450,9 +1392,8 @@ pub struct ContentKeyPolicyPlayReadyConfiguration { pub response_custom_data: Option, } impl ContentKeyPolicyPlayReadyConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration, licenses: Vec) -> Self { + pub fn new(licenses: Vec) -> Self { Self { - content_key_policy_configuration, licenses, response_custom_data: None, } @@ -1460,40 +1401,22 @@ impl ContentKeyPolicyPlayReadyConfiguration { } #[doc = "Specifies that the content key ID is in the PlayReady header."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader { - #[serde(flatten)] - pub content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, -} +pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader {} impl ContentKeyPolicyPlayReadyContentEncryptionKeyFromHeader { - pub fn new(content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation) -> Self { - Self { - content_key_policy_play_ready_content_key_location, - } + pub fn new() -> Self { + Self {} } } #[doc = "Specifies that the content key ID is specified in the PlayReady configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier { - #[serde(flatten)] - pub content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, #[doc = "The content key ID."] #[serde(rename = "keyId")] pub key_id: String, } impl ContentKeyPolicyPlayReadyContentEncryptionKeyFromKeyIdentifier { - pub fn new(content_key_policy_play_ready_content_key_location: ContentKeyPolicyPlayReadyContentKeyLocation, key_id: String) -> Self { - Self { - content_key_policy_play_ready_content_key_location, - key_id, - } - } -} -#[doc = "Base class for content key ID location. A derived class must be used to represent the location."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyPlayReadyContentKeyLocation {} -impl ContentKeyPolicyPlayReadyContentKeyLocation { - pub fn new() -> Self { - Self {} + pub fn new(key_id: String) -> Self { + Self { key_id } } } #[doc = "The discriminator for derived types."] @@ -1857,14 +1780,6 @@ impl ContentKeyPolicyProperties { } } } -#[doc = "Base class for Content Key Policy restrictions. A derived class must be used to create a restriction."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyRestriction {} -impl ContentKeyPolicyRestriction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1876,14 +1791,6 @@ pub enum ContentKeyPolicyRestrictionUnion { #[serde(rename = "#Microsoft.Media.ContentKeyPolicyUnknownRestriction")] MicrosoftMediaContentKeyPolicyUnknownRestriction(ContentKeyPolicyUnknownRestriction), } -#[doc = "Base class for Content Key Policy key for token validation. A derived class must be used to create a token key."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyRestrictionTokenKey {} -impl ContentKeyPolicyRestrictionTokenKey { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -1898,37 +1805,26 @@ pub enum ContentKeyPolicyRestrictionTokenKeyUnion { #[doc = "Specifies a RSA key for token validation"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyRsaTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The RSA Parameter exponent"] pub exponent: String, #[doc = "The RSA Parameter modulus"] pub modulus: String, } impl ContentKeyPolicyRsaTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, exponent: String, modulus: String) -> Self { - Self { - content_key_policy_restriction_token_key, - exponent, - modulus, - } + pub fn new(exponent: String, modulus: String) -> Self { + Self { exponent, modulus } } } #[doc = "Specifies a symmetric key for token validation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicySymmetricTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The key value of the key"] #[serde(rename = "keyValue")] pub key_value: String, } impl ContentKeyPolicySymmetricTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, key_value: String) -> Self { - Self { - content_key_policy_restriction_token_key, - key_value, - } + pub fn new(key_value: String) -> Self { + Self { key_value } } } #[doc = "Represents a token claim."] @@ -1949,8 +1845,6 @@ impl ContentKeyPolicyTokenClaim { #[doc = "Represents a token restriction. Provided token must match these requirements for successful license or key delivery."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyTokenRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, #[doc = "The token issuer."] pub issuer: String, #[doc = "The audience for the token."] @@ -1983,14 +1877,12 @@ pub struct ContentKeyPolicyTokenRestriction { } impl ContentKeyPolicyTokenRestriction { pub fn new( - content_key_policy_restriction: ContentKeyPolicyRestriction, issuer: String, audience: String, primary_verification_key: ContentKeyPolicyRestrictionTokenKeyUnion, restriction_token_type: content_key_policy_token_restriction::RestrictionTokenType, ) -> Self { Self { - content_key_policy_restriction, issuer, audience, primary_verification_key, @@ -2045,62 +1937,42 @@ pub mod content_key_policy_token_restriction { } #[doc = "Represents a ContentKeyPolicyConfiguration that is unavailable in the current API version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyUnknownConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, -} +pub struct ContentKeyPolicyUnknownConfiguration {} impl ContentKeyPolicyUnknownConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration) -> Self { - Self { - content_key_policy_configuration, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents a ContentKeyPolicyRestriction that is unavailable in the current API version."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ContentKeyPolicyUnknownRestriction { - #[serde(flatten)] - pub content_key_policy_restriction: ContentKeyPolicyRestriction, -} +pub struct ContentKeyPolicyUnknownRestriction {} impl ContentKeyPolicyUnknownRestriction { - pub fn new(content_key_policy_restriction: ContentKeyPolicyRestriction) -> Self { - Self { - content_key_policy_restriction, - } + pub fn new() -> Self { + Self {} } } #[doc = "Specifies a configuration for Widevine licenses."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyWidevineConfiguration { - #[serde(flatten)] - pub content_key_policy_configuration: ContentKeyPolicyConfiguration, #[doc = "The Widevine template."] #[serde(rename = "widevineTemplate")] pub widevine_template: String, } impl ContentKeyPolicyWidevineConfiguration { - pub fn new(content_key_policy_configuration: ContentKeyPolicyConfiguration, widevine_template: String) -> Self { - Self { - content_key_policy_configuration, - widevine_template, - } + pub fn new(widevine_template: String) -> Self { + Self { widevine_template } } } #[doc = "Specifies a certificate for token validation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContentKeyPolicyX509CertificateTokenKey { - #[serde(flatten)] - pub content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, #[doc = "The raw data field of a certificate in PKCS 12 format (X509Certificate2 in .NET)"] #[serde(rename = "rawBody")] pub raw_body: String, } impl ContentKeyPolicyX509CertificateTokenKey { - pub fn new(content_key_policy_restriction_token_key: ContentKeyPolicyRestrictionTokenKey, raw_body: String) -> Self { - Self { - content_key_policy_restriction_token_key, - raw_body, - } + pub fn new(raw_body: String) -> Self { + Self { raw_body } } } #[doc = "A codec flag, which tells the encoder to copy the input audio bitstream."] @@ -2458,8 +2330,6 @@ impl ErrorResponse { #[doc = "Describes all the settings to be used when analyzing a video in order to detect (and optionally redact) all the faces present."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FaceDetectorPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "Specifies the maximum resolution at which your video is analyzed. The default behavior is \"SourceResolution,\" which will keep the input video at its original resolution when analyzed. Using \"StandardDefinition\" will resize input videos to standard definition while preserving the appropriate aspect ratio. It will only resize if the video is of higher resolution. For example, a 1920x1080 input would be scaled to 640x360 before processing. Switching to \"StandardDefinition\" will reduce the time it takes to process high resolution video. It may also reduce the cost of using this component (see https://azure.microsoft.com/en-us/pricing/details/media-services/#analytics for details). However, faces that end up being too small in the resized video may not be detected."] #[serde(default, skip_serializing_if = "Option::is_none")] pub resolution: Option, @@ -2474,9 +2344,8 @@ pub struct FaceDetectorPreset { pub experimental_options: Option, } impl FaceDetectorPreset { - pub fn new(preset: Preset) -> Self { + pub fn new() -> Self { Self { - preset, resolution: None, mode: None, blur_type: None, @@ -3451,8 +3320,6 @@ impl InputFile { #[doc = "A Job resource type. The progress and state can be obtained by polling a Job or subscribing to events using EventGrid."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Job { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Job."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -3671,14 +3538,6 @@ impl JobErrorDetail { Self::default() } } -#[doc = "Base class for inputs to a Job."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct JobInput {} -impl JobInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -3710,8 +3569,6 @@ impl JobInputAsset { #[doc = "Represents input files for a Job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputClip { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "List of files. Required for JobInputHttp. Maximum of 4000 characters each. Query strings will not be returned in service responses to prevent sensitive data exposure."] #[serde( default, @@ -3738,9 +3595,8 @@ pub struct JobInputClip { pub input_definitions: Vec, } impl JobInputClip { - pub fn new(job_input: JobInput) -> Self { + pub fn new() -> Self { Self { - job_input, files: Vec::new(), start: None, end: None, @@ -3769,8 +3625,6 @@ impl JobInputHttp { #[doc = "A Sequence contains an ordered list of Clips where each clip is a JobInput. The Sequence will be treated as a single input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputSequence { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "JobInputs that make up the timeline."] #[serde( default, @@ -3780,18 +3634,13 @@ pub struct JobInputSequence { pub inputs: Vec, } impl JobInputSequence { - pub fn new(job_input: JobInput) -> Self { - Self { - job_input, - inputs: Vec::new(), - } + pub fn new() -> Self { + Self { inputs: Vec::new() } } } #[doc = "Describes a list of inputs to a Job."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobInputs { - #[serde(flatten)] - pub job_input: JobInput, #[doc = "List of inputs to a Job."] #[serde( default, @@ -3801,11 +3650,8 @@ pub struct JobInputs { pub inputs: Vec, } impl JobInputs { - pub fn new(job_input: JobInput) -> Self { - Self { - job_input, - inputs: Vec::new(), - } + pub fn new() -> Self { + Self { inputs: Vec::new() } } } #[doc = "Describes all the properties of a JobOutput."] @@ -4056,13 +3902,10 @@ pub mod job_properties { } #[doc = "Describes the settings for producing JPEG thumbnails."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct JpgFormat { - #[serde(flatten)] - pub image_format: ImageFormat, -} +pub struct JpgFormat {} impl JpgFormat { - pub fn new(image_format: ImageFormat) -> Self { - Self { image_format } + pub fn new() -> Self { + Self {} } } #[doc = "Describes the properties for producing a series of JPEG images from the input video."] @@ -5535,8 +5378,6 @@ impl LiveEventTranscription { #[doc = "The Live Output."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LiveOutput { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The JSON object that contains the properties required to create a live output."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6397,13 +6238,10 @@ pub enum OverlayUnion { } #[doc = "Describes the settings for producing PNG thumbnails."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PngFormat { - #[serde(flatten)] - pub image_format: ImageFormat, -} +pub struct PngFormat {} impl PngFormat { - pub fn new(image_format: ImageFormat) -> Self { - Self { image_format } + pub fn new() -> Self { + Self {} } } #[doc = "Describes the properties for producing a series of PNG images from the input video."] @@ -6462,14 +6300,6 @@ impl PresentationTimeRange { Self::default() } } -#[doc = "Base type for all Presets, which define the recipe or instructions on how the input media files should be processed."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Preset {} -impl Preset { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -7022,8 +6852,6 @@ impl SelectAudioTrackById { #[doc = "Select video tracks from the input by specifying an attribute and an attribute filter."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SelectVideoTrackByAttribute { - #[serde(flatten)] - pub video_track_descriptor: VideoTrackDescriptor, #[doc = "The TrackAttribute to filter the tracks by."] pub attribute: select_video_track_by_attribute::Attribute, #[doc = "The type of AttributeFilter to apply to the TrackAttribute in order to select the tracks."] @@ -7033,13 +6861,8 @@ pub struct SelectVideoTrackByAttribute { pub filter_value: Option, } impl SelectVideoTrackByAttribute { - pub fn new( - video_track_descriptor: VideoTrackDescriptor, - attribute: select_video_track_by_attribute::Attribute, - filter: select_video_track_by_attribute::Filter, - ) -> Self { + pub fn new(attribute: select_video_track_by_attribute::Attribute, filter: select_video_track_by_attribute::Filter) -> Self { Self { - video_track_descriptor, attribute, filter, filter_value: None, @@ -7130,18 +6953,13 @@ pub mod select_video_track_by_attribute { #[doc = "Select video tracks from the input by specifying a track identifier."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SelectVideoTrackById { - #[serde(flatten)] - pub video_track_descriptor: VideoTrackDescriptor, #[doc = "Track identifier to select"] #[serde(rename = "trackId")] pub track_id: i64, } impl SelectVideoTrackById { - pub fn new(video_track_descriptor: VideoTrackDescriptor, track_id: i64) -> Self { - Self { - video_track_descriptor, - track_id, - } + pub fn new(track_id: i64) -> Self { + Self { track_id } } } #[doc = "The service metric specifications."] @@ -7172,8 +6990,6 @@ impl ServiceSpecification { #[doc = "Describes all the settings to be used when encoding the input video with the Standard Encoder."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct StandardEncoderPreset { - #[serde(flatten)] - pub preset: Preset, #[doc = "Dictionary containing key value pairs for parameters not exposed in the preset itself"] #[serde(rename = "experimentalOptions", default, skip_serializing_if = "Option::is_none")] pub experimental_options: Option, @@ -7186,9 +7002,8 @@ pub struct StandardEncoderPreset { pub formats: Vec, } impl StandardEncoderPreset { - pub fn new(preset: Preset, codecs: Vec, formats: Vec) -> Self { + pub fn new(codecs: Vec, formats: Vec) -> Self { Self { - preset, experimental_options: None, filters: None, codecs, @@ -7506,8 +7321,6 @@ impl StreamingEntityScaleUnit { #[doc = "A Streaming Locator resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingLocator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Streaming Locator."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7797,8 +7610,6 @@ pub mod streaming_path { #[doc = "A Streaming Policy resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StreamingPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Class to specify properties of Streaming Policy"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7965,8 +7776,6 @@ impl SyncStorageKeysInput { #[doc = "Represents a text track in an asset. A text track is usually used for sparse data related to the audio or video tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TextTrack { - #[serde(flatten)] - pub track_base: TrackBase, #[doc = "The file name to the source file. This file is located in the storage container of the asset."] #[serde(rename = "fileName", default, skip_serializing_if = "Option::is_none")] pub file_name: Option, @@ -7984,9 +7793,8 @@ pub struct TextTrack { pub hls_settings: Option, } impl TextTrack { - pub fn new(track_base: TrackBase) -> Self { + pub fn new() -> Self { Self { - track_base, file_name: None, display_name: None, language_code: None, @@ -8035,14 +7843,6 @@ pub mod text_track { } } } -#[doc = "Base type for concrete track types. A derived type must be used to represent the Track."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TrackBase {} -impl TrackBase { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -8054,14 +7854,6 @@ pub enum TrackBaseUnion { #[serde(rename = "#Microsoft.Media.VideoTrack")] MicrosoftMediaVideoTrack(VideoTrack), } -#[doc = "Base type for all TrackDescriptor types, which define the metadata and selection for tracks that should be processed by a Job"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TrackDescriptor {} -impl TrackDescriptor { - pub fn new() -> Self { - Self {} - } -} #[doc = "The discriminator for derived types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "@odata.type")] @@ -8209,8 +8001,6 @@ impl TrackedResource { #[doc = "A Transform encapsulates the rules or instructions for generating desired outputs from input media, such as by transcoding or by extracting insights. After the Transform is created, it can be applied to input media by creating Jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Transform { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "A Transform."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -8409,15 +8199,13 @@ impl UserAssignedManagedIdentity { #[doc = "Specifies the clip time as a Utc time position in the media file. The Utc time can point to a different position depending on whether the media file starts from a timestamp of zero or not."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct UtcClipTime { - #[serde(flatten)] - pub clip_time: ClipTime, #[doc = "The time position on the timeline of the input media based on Utc time."] #[serde(with = "azure_core::date::rfc3339")] pub time: time::OffsetDateTime, } impl UtcClipTime { - pub fn new(clip_time: ClipTime, time: time::OffsetDateTime) -> Self { - Self { clip_time, time } + pub fn new(time: time::OffsetDateTime) -> Self { + Self { time } } } #[doc = "Describes the basic properties for encoding the input video."] @@ -8650,24 +8438,18 @@ impl VideoOverlay { } #[doc = "Represents a video track in the asset."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VideoTrack { - #[serde(flatten)] - pub track_base: TrackBase, -} +pub struct VideoTrack {} impl VideoTrack { - pub fn new(track_base: TrackBase) -> Self { - Self { track_base } + pub fn new() -> Self { + Self {} } } #[doc = "A TrackSelection to select video tracks."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VideoTrackDescriptor { - #[serde(flatten)] - pub track_descriptor: TrackDescriptor, -} +pub struct VideoTrackDescriptor {} impl VideoTrackDescriptor { - pub fn new(track_descriptor: TrackDescriptor) -> Self { - Self { track_descriptor } + pub fn new() -> Self { + Self {} } } #[doc = "Metadata pertaining to creation and last modification of the resource."] diff --git a/services/mgmt/migrateprojects/src/package_2018_09/models.rs b/services/mgmt/migrateprojects/src/package_2018_09/models.rs index 68565939e9..ebb86f4702 100644 --- a/services/mgmt/migrateprojects/src/package_2018_09/models.rs +++ b/services/mgmt/migrateprojects/src/package_2018_09/models.rs @@ -346,8 +346,6 @@ impl DatabaseProperties { #[doc = "Class representing the databases solution summary."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DatabasesSolutionSummary { - #[serde(flatten)] - pub solution_summary: SolutionSummary, #[doc = "Gets or sets the count of databases assessed."] #[serde(rename = "databasesAssessedCount", default, skip_serializing_if = "Option::is_none")] pub databases_assessed_count: Option, @@ -1700,8 +1698,6 @@ impl ServersProjectSummary { #[doc = "Class representing the servers solution summary."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServersSolutionSummary { - #[serde(flatten)] - pub solution_summary: SolutionSummary, #[doc = "Gets or sets the count of servers discovered."] #[serde(rename = "discoveredCount", default, skip_serializing_if = "Option::is_none")] pub discovered_count: Option, @@ -1907,14 +1903,6 @@ pub mod solution_properties { Failed, } } -#[doc = "The solution summary class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] -pub struct SolutionSummary {} -impl SolutionSummary { - pub fn new() -> Self { - Self::default() - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] diff --git a/services/mgmt/mobilenetwork/src/package_2022_04_01_preview/models.rs b/services/mgmt/mobilenetwork/src/package_2022_04_01_preview/models.rs index ec6fad4b04..7a7cca2cce 100644 --- a/services/mgmt/mobilenetwork/src/package_2022_04_01_preview/models.rs +++ b/services/mgmt/mobilenetwork/src/package_2022_04_01_preview/models.rs @@ -957,17 +957,12 @@ impl PacketCoreControlPlanePropertiesFormat { #[doc = "Packet core control plane version resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PacketCoreControlPlaneVersion { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Packet core control plane version properties."] pub properties: PacketCoreControlPlaneVersionPropertiesFormat, } impl PacketCoreControlPlaneVersion { pub fn new(properties: PacketCoreControlPlaneVersionPropertiesFormat) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Response for packet core control plane version API service call."] @@ -1762,8 +1757,6 @@ impl ServiceResourceId { #[doc = "SIM resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Sim { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SIM properties."] pub properties: SimPropertiesFormat, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1773,7 +1766,6 @@ pub struct Sim { impl Sim { pub fn new(properties: SimPropertiesFormat) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/mobilenetwork/src/package_2022_11_01/models.rs b/services/mgmt/mobilenetwork/src/package_2022_11_01/models.rs index 0abafd671d..0dc4fb1929 100644 --- a/services/mgmt/mobilenetwork/src/package_2022_11_01/models.rs +++ b/services/mgmt/mobilenetwork/src/package_2022_11_01/models.rs @@ -1300,17 +1300,12 @@ impl PacketCoreControlPlanePropertiesFormat { #[doc = "Packet core control plane version resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PacketCoreControlPlaneVersion { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Packet core control plane version properties."] pub properties: PacketCoreControlPlaneVersionPropertiesFormat, } impl PacketCoreControlPlaneVersion { pub fn new(properties: PacketCoreControlPlaneVersionPropertiesFormat) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Response for packet core control plane version API service call."] @@ -2090,17 +2085,12 @@ impl ServiceResourceId { #[doc = "SIM resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Sim { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SIM properties."] pub properties: SimPropertiesFormat, } impl Sim { pub fn new(properties: SimPropertiesFormat) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The SIMs to delete."] diff --git a/services/mgmt/mobilenetwork/src/package_2023_06/models.rs b/services/mgmt/mobilenetwork/src/package_2023_06/models.rs index 17c06028c8..3a287c8f6a 100644 --- a/services/mgmt/mobilenetwork/src/package_2023_06/models.rs +++ b/services/mgmt/mobilenetwork/src/package_2023_06/models.rs @@ -603,17 +603,12 @@ impl Serialize for DesiredInstallationState { #[doc = "Diagnostics package resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DiagnosticsPackage { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Diagnostics package properties."] pub properties: DiagnosticsPackagePropertiesFormat, } impl DiagnosticsPackage { pub fn new(properties: DiagnosticsPackagePropertiesFormat) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Response for diagnostics package API service call."] @@ -1392,17 +1387,12 @@ impl OperationList { #[doc = "Packet capture session resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PacketCapture { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Packet capture session properties."] pub properties: PacketCapturePropertiesFormat, } impl PacketCapture { pub fn new(properties: PacketCapturePropertiesFormat) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Response for packet capture API service call."] @@ -1652,17 +1642,12 @@ impl PacketCoreControlPlaneResourceId { #[doc = "Packet core control plane version resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PacketCoreControlPlaneVersion { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Packet core control plane version properties."] pub properties: PacketCoreControlPlaneVersionPropertiesFormat, } impl PacketCoreControlPlaneVersion { pub fn new(properties: PacketCoreControlPlaneVersionPropertiesFormat) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Response for packet core control plane version API service call."] @@ -2479,17 +2464,12 @@ impl ServiceResourceId { #[doc = "SIM resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Sim { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SIM properties."] pub properties: SimPropertiesFormat, } impl Sim { pub fn new(properties: SimPropertiesFormat) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The SIMs to delete."] diff --git a/services/mgmt/monitor/src/package_preview_2022_08/models.rs b/services/mgmt/monitor/src/package_preview_2022_08/models.rs index bff035cb54..7f19c4df63 100644 --- a/services/mgmt/monitor/src/package_preview_2022_08/models.rs +++ b/services/mgmt/monitor/src/package_preview_2022_08/models.rs @@ -3471,14 +3471,6 @@ impl MetricAlertAction { Self::default() } } -#[doc = "The rule criteria that defines the conditions of the alert rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MetricAlertCriteria {} -impl MetricAlertCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "specifies the type of the alert criteria."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "odata.type")] @@ -3493,8 +3485,6 @@ pub enum MetricAlertCriteriaUnion { #[doc = "Specifies the metric alert criteria for multiple resource that has multiple metric criteria."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MetricAlertMultipleResourceMultipleMetricCriteria { - #[serde(flatten)] - pub metric_alert_criteria: MetricAlertCriteria, #[doc = "the list of multiple metric criteria for this 'all of' operation. "] #[serde( rename = "allOf", @@ -3505,11 +3495,8 @@ pub struct MetricAlertMultipleResourceMultipleMetricCriteria { pub all_of: Vec, } impl MetricAlertMultipleResourceMultipleMetricCriteria { - pub fn new(metric_alert_criteria: MetricAlertCriteria) -> Self { - Self { - metric_alert_criteria, - all_of: Vec::new(), - } + pub fn new() -> Self { + Self { all_of: Vec::new() } } } #[doc = "An alert rule."] @@ -3690,8 +3677,6 @@ impl MetricAlertResourcePatch { #[doc = "Specifies the metric alert criteria for a single resource that has multiple metric criteria."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MetricAlertSingleResourceMultipleMetricCriteria { - #[serde(flatten)] - pub metric_alert_criteria: MetricAlertCriteria, #[doc = "The list of metric criteria for this 'all of' operation. "] #[serde( rename = "allOf", @@ -3702,11 +3687,8 @@ pub struct MetricAlertSingleResourceMultipleMetricCriteria { pub all_of: Vec, } impl MetricAlertSingleResourceMultipleMetricCriteria { - pub fn new(metric_alert_criteria: MetricAlertCriteria) -> Self { - Self { - metric_alert_criteria, - all_of: Vec::new(), - } + pub fn new() -> Self { + Self { all_of: Vec::new() } } } #[doc = "An alert status."] @@ -5204,14 +5186,6 @@ impl RetentionPolicy { Self { enabled, days } } } -#[doc = "The action that is performed when the alert rule becomes active, and when an alert condition is resolved."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RuleAction {} -impl RuleAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "odata.type")] @@ -5282,8 +5256,6 @@ pub enum RuleDataSourceUnion { #[doc = "Specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuleEmailAction { - #[serde(flatten)] - pub rule_action: RuleAction, #[doc = "Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated."] #[serde(rename = "sendToServiceOwners", default, skip_serializing_if = "Option::is_none")] pub send_to_service_owners: Option, @@ -5297,9 +5269,8 @@ pub struct RuleEmailAction { pub custom_emails: Vec, } impl RuleEmailAction { - pub fn new(rule_action: RuleAction) -> Self { + pub fn new() -> Self { Self { - rule_action, send_to_service_owners: None, custom_emails: Vec::new(), } @@ -5401,8 +5372,6 @@ impl RuleResolveConfiguration { #[doc = "Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuleWebhookAction { - #[serde(flatten)] - pub rule_action: RuleAction, #[doc = "the service uri to Post the notification when the alert activates or resolves."] #[serde(rename = "serviceUri", default, skip_serializing_if = "Option::is_none")] pub service_uri: Option, @@ -5411,9 +5380,8 @@ pub struct RuleWebhookAction { pub properties: Option, } impl RuleWebhookAction { - pub fn new(rule_action: RuleAction) -> Self { + pub fn new() -> Self { Self { - rule_action, service_uri: None, properties: None, } @@ -5865,8 +5833,6 @@ impl ScheduledQueryRuleResourcePatch { #[doc = "A private link scoped resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScopedResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link scoped resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6755,8 +6721,6 @@ impl WebhookReceiver { #[doc = "Specifies the metric alert rule criteria for a web test resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebtestLocationAvailabilityCriteria { - #[serde(flatten)] - pub metric_alert_criteria: MetricAlertCriteria, #[doc = "The Application Insights web test Id."] #[serde(rename = "webTestId")] pub web_test_id: String, @@ -6768,9 +6732,8 @@ pub struct WebtestLocationAvailabilityCriteria { pub failed_location_count: f64, } impl WebtestLocationAvailabilityCriteria { - pub fn new(metric_alert_criteria: MetricAlertCriteria, web_test_id: String, component_id: String, failed_location_count: f64) -> Self { + pub fn new(web_test_id: String, component_id: String, failed_location_count: f64) -> Self { Self { - metric_alert_criteria, web_test_id, component_id, failed_location_count, diff --git a/services/mgmt/monitor/src/package_preview_2023_03/models.rs b/services/mgmt/monitor/src/package_preview_2023_03/models.rs index c0e9a884d3..0ad09da5ec 100644 --- a/services/mgmt/monitor/src/package_preview_2023_03/models.rs +++ b/services/mgmt/monitor/src/package_preview_2023_03/models.rs @@ -3474,14 +3474,6 @@ impl MetricAlertAction { Self::default() } } -#[doc = "The rule criteria that defines the conditions of the alert rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MetricAlertCriteria {} -impl MetricAlertCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "specifies the type of the alert criteria."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "odata.type")] @@ -3496,8 +3488,6 @@ pub enum MetricAlertCriteriaUnion { #[doc = "Specifies the metric alert criteria for multiple resource that has multiple metric criteria."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MetricAlertMultipleResourceMultipleMetricCriteria { - #[serde(flatten)] - pub metric_alert_criteria: MetricAlertCriteria, #[doc = "the list of multiple metric criteria for this 'all of' operation. "] #[serde( rename = "allOf", @@ -3508,11 +3498,8 @@ pub struct MetricAlertMultipleResourceMultipleMetricCriteria { pub all_of: Vec, } impl MetricAlertMultipleResourceMultipleMetricCriteria { - pub fn new(metric_alert_criteria: MetricAlertCriteria) -> Self { - Self { - metric_alert_criteria, - all_of: Vec::new(), - } + pub fn new() -> Self { + Self { all_of: Vec::new() } } } #[doc = "An alert rule."] @@ -3693,8 +3680,6 @@ impl MetricAlertResourcePatch { #[doc = "Specifies the metric alert criteria for a single resource that has multiple metric criteria."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MetricAlertSingleResourceMultipleMetricCriteria { - #[serde(flatten)] - pub metric_alert_criteria: MetricAlertCriteria, #[doc = "The list of metric criteria for this 'all of' operation. "] #[serde( rename = "allOf", @@ -3705,11 +3690,8 @@ pub struct MetricAlertSingleResourceMultipleMetricCriteria { pub all_of: Vec, } impl MetricAlertSingleResourceMultipleMetricCriteria { - pub fn new(metric_alert_criteria: MetricAlertCriteria) -> Self { - Self { - metric_alert_criteria, - all_of: Vec::new(), - } + pub fn new() -> Self { + Self { all_of: Vec::new() } } } #[doc = "An alert status."] @@ -5207,14 +5189,6 @@ impl RetentionPolicy { Self { enabled, days } } } -#[doc = "The action that is performed when the alert rule becomes active, and when an alert condition is resolved."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RuleAction {} -impl RuleAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "odata.type")] @@ -5285,8 +5259,6 @@ pub enum RuleDataSourceUnion { #[doc = "Specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuleEmailAction { - #[serde(flatten)] - pub rule_action: RuleAction, #[doc = "Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated."] #[serde(rename = "sendToServiceOwners", default, skip_serializing_if = "Option::is_none")] pub send_to_service_owners: Option, @@ -5300,9 +5272,8 @@ pub struct RuleEmailAction { pub custom_emails: Vec, } impl RuleEmailAction { - pub fn new(rule_action: RuleAction) -> Self { + pub fn new() -> Self { Self { - rule_action, send_to_service_owners: None, custom_emails: Vec::new(), } @@ -5404,8 +5375,6 @@ impl RuleResolveConfiguration { #[doc = "Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuleWebhookAction { - #[serde(flatten)] - pub rule_action: RuleAction, #[doc = "the service uri to Post the notification when the alert activates or resolves."] #[serde(rename = "serviceUri", default, skip_serializing_if = "Option::is_none")] pub service_uri: Option, @@ -5414,9 +5383,8 @@ pub struct RuleWebhookAction { pub properties: Option, } impl RuleWebhookAction { - pub fn new(rule_action: RuleAction) -> Self { + pub fn new() -> Self { Self { - rule_action, service_uri: None, properties: None, } @@ -5821,8 +5789,6 @@ impl ScheduledQueryRuleResourcePatch { #[doc = "A private link scoped resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScopedResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link scoped resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -6815,8 +6781,6 @@ impl WebhookReceiver { #[doc = "Specifies the metric alert rule criteria for a web test resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebtestLocationAvailabilityCriteria { - #[serde(flatten)] - pub metric_alert_criteria: MetricAlertCriteria, #[doc = "The Application Insights web test Id."] #[serde(rename = "webTestId")] pub web_test_id: String, @@ -6828,9 +6792,8 @@ pub struct WebtestLocationAvailabilityCriteria { pub failed_location_count: f64, } impl WebtestLocationAvailabilityCriteria { - pub fn new(metric_alert_criteria: MetricAlertCriteria, web_test_id: String, component_id: String, failed_location_count: f64) -> Self { + pub fn new(web_test_id: String, component_id: String, failed_location_count: f64) -> Self { Self { - metric_alert_criteria, web_test_id, component_id, failed_location_count, diff --git a/services/mgmt/monitor/src/package_preview_2023_04/models.rs b/services/mgmt/monitor/src/package_preview_2023_04/models.rs index c667068df4..793ff55e64 100644 --- a/services/mgmt/monitor/src/package_preview_2023_04/models.rs +++ b/services/mgmt/monitor/src/package_preview_2023_04/models.rs @@ -3792,14 +3792,6 @@ impl MetricAlertAction { Self::default() } } -#[doc = "The rule criteria that defines the conditions of the alert rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MetricAlertCriteria {} -impl MetricAlertCriteria { - pub fn new() -> Self { - Self {} - } -} #[doc = "specifies the type of the alert criteria."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "odata.type")] @@ -3814,8 +3806,6 @@ pub enum MetricAlertCriteriaUnion { #[doc = "Specifies the metric alert criteria for multiple resource that has multiple metric criteria."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MetricAlertMultipleResourceMultipleMetricCriteria { - #[serde(flatten)] - pub metric_alert_criteria: MetricAlertCriteria, #[doc = "the list of multiple metric criteria for this 'all of' operation. "] #[serde( rename = "allOf", @@ -3826,11 +3816,8 @@ pub struct MetricAlertMultipleResourceMultipleMetricCriteria { pub all_of: Vec, } impl MetricAlertMultipleResourceMultipleMetricCriteria { - pub fn new(metric_alert_criteria: MetricAlertCriteria) -> Self { - Self { - metric_alert_criteria, - all_of: Vec::new(), - } + pub fn new() -> Self { + Self { all_of: Vec::new() } } } #[doc = "An alert rule."] @@ -4011,8 +3998,6 @@ impl MetricAlertResourcePatch { #[doc = "Specifies the metric alert criteria for a single resource that has multiple metric criteria."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MetricAlertSingleResourceMultipleMetricCriteria { - #[serde(flatten)] - pub metric_alert_criteria: MetricAlertCriteria, #[doc = "The list of metric criteria for this 'all of' operation. "] #[serde( rename = "allOf", @@ -4023,11 +4008,8 @@ pub struct MetricAlertSingleResourceMultipleMetricCriteria { pub all_of: Vec, } impl MetricAlertSingleResourceMultipleMetricCriteria { - pub fn new(metric_alert_criteria: MetricAlertCriteria) -> Self { - Self { - metric_alert_criteria, - all_of: Vec::new(), - } + pub fn new() -> Self { + Self { all_of: Vec::new() } } } #[doc = "An alert status."] @@ -5610,14 +5592,6 @@ impl RetentionPolicy { Self { enabled, days } } } -#[doc = "The action that is performed when the alert rule becomes active, and when an alert condition is resolved."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RuleAction {} -impl RuleAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "specifies the type of the action. There are two types of actions: RuleEmailAction and RuleWebhookAction."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "odata.type")] @@ -5688,8 +5662,6 @@ pub enum RuleDataSourceUnion { #[doc = "Specifies the action to send email when the rule condition is evaluated. The discriminator is always RuleEmailAction in this case."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuleEmailAction { - #[serde(flatten)] - pub rule_action: RuleAction, #[doc = "Whether the administrators (service and co-administrators) of the service should be notified when the alert is activated."] #[serde(rename = "sendToServiceOwners", default, skip_serializing_if = "Option::is_none")] pub send_to_service_owners: Option, @@ -5703,9 +5675,8 @@ pub struct RuleEmailAction { pub custom_emails: Vec, } impl RuleEmailAction { - pub fn new(rule_action: RuleAction) -> Self { + pub fn new() -> Self { Self { - rule_action, send_to_service_owners: None, custom_emails: Vec::new(), } @@ -5807,8 +5778,6 @@ impl RuleResolveConfiguration { #[doc = "Specifies the action to post to service when the rule condition is evaluated. The discriminator is always RuleWebhookAction in this case."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RuleWebhookAction { - #[serde(flatten)] - pub rule_action: RuleAction, #[doc = "the service uri to Post the notification when the alert activates or resolves."] #[serde(rename = "serviceUri", default, skip_serializing_if = "Option::is_none")] pub service_uri: Option, @@ -5817,9 +5786,8 @@ pub struct RuleWebhookAction { pub properties: Option, } impl RuleWebhookAction { - pub fn new(rule_action: RuleAction) -> Self { + pub fn new() -> Self { Self { - rule_action, service_uri: None, properties: None, } @@ -6224,8 +6192,6 @@ impl ScheduledQueryRuleResourcePatch { #[doc = "A private link scoped resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ScopedResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a private link scoped resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -7275,8 +7241,6 @@ impl WebhookReceiver { #[doc = "Specifies the metric alert rule criteria for a web test resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct WebtestLocationAvailabilityCriteria { - #[serde(flatten)] - pub metric_alert_criteria: MetricAlertCriteria, #[doc = "The Application Insights web test Id."] #[serde(rename = "webTestId")] pub web_test_id: String, @@ -7288,9 +7252,8 @@ pub struct WebtestLocationAvailabilityCriteria { pub failed_location_count: f64, } impl WebtestLocationAvailabilityCriteria { - pub fn new(metric_alert_criteria: MetricAlertCriteria, web_test_id: String, component_id: String, failed_location_count: f64) -> Self { + pub fn new(web_test_id: String, component_id: String, failed_location_count: f64) -> Self { Self { - metric_alert_criteria, web_test_id, component_id, failed_location_count, diff --git a/services/mgmt/msi/src/package_2015_08_31_preview/models.rs b/services/mgmt/msi/src/package_2015_08_31_preview/models.rs index dbfd5a8da0..77ff9c4811 100644 --- a/services/mgmt/msi/src/package_2015_08_31_preview/models.rs +++ b/services/mgmt/msi/src/package_2015_08_31_preview/models.rs @@ -177,8 +177,6 @@ impl Resource { #[doc = "Describes a system assigned identity resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SystemAssignedIdentity { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The geo-location where the resource lives"] pub location: String, #[doc = "Resource tags"] @@ -191,7 +189,6 @@ pub struct SystemAssignedIdentity { impl SystemAssignedIdentity { pub fn new(location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), location, tags: None, properties: None, diff --git a/services/mgmt/msi/src/package_2018_11_30/models.rs b/services/mgmt/msi/src/package_2018_11_30/models.rs index 4676975741..0ff2232bc1 100644 --- a/services/mgmt/msi/src/package_2018_11_30/models.rs +++ b/services/mgmt/msi/src/package_2018_11_30/models.rs @@ -176,8 +176,6 @@ impl Resource { #[doc = "Describes a system assigned identity resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SystemAssignedIdentity { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The geo-location where the resource lives"] pub location: String, #[doc = "Resource tags"] @@ -190,7 +188,6 @@ pub struct SystemAssignedIdentity { impl SystemAssignedIdentity { pub fn new(location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), location, tags: None, properties: None, diff --git a/services/mgmt/msi/src/package_2023_01_31/models.rs b/services/mgmt/msi/src/package_2023_01_31/models.rs index e3bfdc6587..7b8e0e17a1 100644 --- a/services/mgmt/msi/src/package_2023_01_31/models.rs +++ b/services/mgmt/msi/src/package_2023_01_31/models.rs @@ -49,8 +49,6 @@ impl CloudErrorBody { #[doc = "Describes a federated identity credential."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FederatedIdentityCredential { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties associated with a federated identity credential."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -237,8 +235,6 @@ impl Resource { #[doc = "Describes a system assigned identity resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SystemAssignedIdentity { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The geo-location where the resource lives"] pub location: String, #[doc = "Resource tags"] @@ -251,7 +247,6 @@ pub struct SystemAssignedIdentity { impl SystemAssignedIdentity { pub fn new(location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), location, tags: None, properties: None, diff --git a/services/mgmt/msi/src/package_preview_2021_09_30/models.rs b/services/mgmt/msi/src/package_preview_2021_09_30/models.rs index 50559efcff..d05f83e584 100644 --- a/services/mgmt/msi/src/package_preview_2021_09_30/models.rs +++ b/services/mgmt/msi/src/package_preview_2021_09_30/models.rs @@ -231,8 +231,6 @@ impl Resource { #[doc = "Describes a system assigned identity resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SystemAssignedIdentity { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The geo-location where the resource lives"] pub location: String, #[doc = "Resource tags"] @@ -245,7 +243,6 @@ pub struct SystemAssignedIdentity { impl SystemAssignedIdentity { pub fn new(location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), location, tags: None, properties: None, diff --git a/services/mgmt/msi/src/package_preview_2022_01/models.rs b/services/mgmt/msi/src/package_preview_2022_01/models.rs index bc4c75872c..13f98b7376 100644 --- a/services/mgmt/msi/src/package_preview_2022_01/models.rs +++ b/services/mgmt/msi/src/package_preview_2022_01/models.rs @@ -104,8 +104,6 @@ impl CloudErrorBody { #[doc = "Describes a federated identity credential."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct FederatedIdentityCredential { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties associated with a federated identity credential."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -289,8 +287,6 @@ impl Resource { #[doc = "Describes a system assigned identity resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SystemAssignedIdentity { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The geo-location where the resource lives"] pub location: String, #[doc = "Resource tags"] @@ -303,7 +299,6 @@ pub struct SystemAssignedIdentity { impl SystemAssignedIdentity { pub fn new(location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), location, tags: None, properties: None, diff --git a/services/mgmt/mysql/src/package_flexibleserver_2022_09_30_preview/models.rs b/services/mgmt/mysql/src/package_flexibleserver_2022_09_30_preview/models.rs index dbe829aa6f..c47eba3ee1 100644 --- a/services/mgmt/mysql/src/package_flexibleserver_2022_09_30_preview/models.rs +++ b/services/mgmt/mysql/src/package_flexibleserver_2022_09_30_preview/models.rs @@ -93,8 +93,6 @@ pub mod administrator_properties { #[doc = "Represents a Administrator."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureAdAdministrator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of an administrator."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -145,8 +143,6 @@ impl BackupAndExportRequest { #[doc = "Represents BackupAndExport API Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BackupAndExportResponse { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The operation status"] #[serde(default, skip_serializing_if = "Option::is_none")] pub status: Option, @@ -273,14 +269,6 @@ pub mod backup_settings { } } } -#[doc = "Details about the target where the backup content will be stored."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupStoreDetails {} -impl BackupStoreDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -367,8 +355,6 @@ impl CloudError { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -729,8 +715,6 @@ pub mod data_encryption { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -919,8 +903,6 @@ impl ErrorResponse { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -930,7 +912,6 @@ pub struct FirewallRule { impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -982,18 +963,13 @@ impl FirewallRuleProperties { #[doc = "FullBackupStoreDetails is used for scenarios where backup data is streamed/copied over to a storage destination."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FullBackupStoreDetails { - #[serde(flatten)] - pub backup_store_details: BackupStoreDetails, #[doc = "SASUriList of storage containers where backup data is to be streamed/copied."] #[serde(rename = "sasUriList")] pub sas_uri_list: Vec, } impl FullBackupStoreDetails { - pub fn new(backup_store_details: BackupStoreDetails, sas_uri_list: Vec) -> Self { - Self { - backup_store_details, - sas_uri_list, - } + pub fn new(sas_uri_list: Vec) -> Self { + Self { sas_uri_list } } } #[doc = "The response of get private dns zone suffix."] @@ -1173,8 +1149,6 @@ pub mod identity { #[doc = "Represents a logFile."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LogFile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a logFile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1540,8 +1514,6 @@ impl Server { #[doc = "Server backup properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerBackup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server backup."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/mysql/src/package_flexibleserver_2022_09_30_preview_privatelink/models.rs b/services/mgmt/mysql/src/package_flexibleserver_2022_09_30_preview_privatelink/models.rs index a900f27c8d..9a47703cca 100644 --- a/services/mgmt/mysql/src/package_flexibleserver_2022_09_30_preview_privatelink/models.rs +++ b/services/mgmt/mysql/src/package_flexibleserver_2022_09_30_preview_privatelink/models.rs @@ -93,8 +93,6 @@ pub mod administrator_properties { #[doc = "Represents a Administrator."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureAdAdministrator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of an administrator."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -207,8 +205,6 @@ impl CloudError { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -569,8 +565,6 @@ pub mod data_encryption { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -759,8 +753,6 @@ impl ErrorResponse { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -770,7 +762,6 @@ pub struct FirewallRule { impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -966,8 +957,6 @@ pub mod identity { #[doc = "Represents a logFile."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LogFile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a logFile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1496,8 +1485,6 @@ impl Server { #[doc = "Server backup properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerBackup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server backup."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/mysql/src/package_flexibleserver_2023_06_01_preview/models.rs b/services/mgmt/mysql/src/package_flexibleserver_2023_06_01_preview/models.rs index 344a3527a3..4cc937b21b 100644 --- a/services/mgmt/mysql/src/package_flexibleserver_2023_06_01_preview/models.rs +++ b/services/mgmt/mysql/src/package_flexibleserver_2023_06_01_preview/models.rs @@ -93,8 +93,6 @@ pub mod administrator_properties { #[doc = "Represents a Administrator."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureAdAdministrator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of an administrator."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -142,8 +140,6 @@ impl BackupAndExportRequest { #[doc = "Represents BackupAndExport API Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BackupAndExportResponse { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(flatten)] pub error_response: ErrorResponse, #[doc = "The operation status"] @@ -269,14 +265,6 @@ pub mod backup_settings { } } } -#[doc = "Details about the target where the backup content will be stored."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupStoreDetails {} -impl BackupStoreDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -309,8 +297,6 @@ impl CapabilitiesListResult { #[doc = "Represents a location capability set."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Capability { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Location capability."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -417,8 +403,6 @@ impl CapabilitySetsList { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -776,8 +760,6 @@ pub mod data_encryption { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -948,17 +930,12 @@ impl ErrorResponse { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, } impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A list of firewall rules."] @@ -1007,18 +984,13 @@ impl FirewallRuleProperties { #[doc = "FullBackupStoreDetails is used for scenarios where backup data is streamed/copied over to a storage destination."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FullBackupStoreDetails { - #[serde(flatten)] - pub backup_store_details: BackupStoreDetails, #[doc = "SASUriList of storage containers where backup data is to be streamed/copied."] #[serde(rename = "sasUriList")] pub sas_uri_list: Vec, } impl FullBackupStoreDetails { - pub fn new(backup_store_details: BackupStoreDetails, sas_uri_list: Vec) -> Self { - Self { - backup_store_details, - sas_uri_list, - } + pub fn new(sas_uri_list: Vec) -> Self { + Self { sas_uri_list } } } #[doc = "The response of get private dns zone suffix."] @@ -1198,8 +1170,6 @@ pub mod import_source_properties { #[doc = "Represents a logFile."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LogFile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a logFile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1830,8 +1800,6 @@ impl Server { #[doc = "Server backup properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerBackup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server backup."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/mysql/src/package_flexibleserver_2023_06_01_preview_new/models.rs b/services/mgmt/mysql/src/package_flexibleserver_2023_06_01_preview_new/models.rs index 1bd1d033ce..d477623441 100644 --- a/services/mgmt/mysql/src/package_flexibleserver_2023_06_01_preview_new/models.rs +++ b/services/mgmt/mysql/src/package_flexibleserver_2023_06_01_preview_new/models.rs @@ -93,8 +93,6 @@ pub mod administrator_properties { #[doc = "Represents a Administrator."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureAdAdministrator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of an administrator."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -142,8 +140,6 @@ impl BackupAndExportRequest { #[doc = "Represents BackupAndExport API Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct BackupAndExportResponse { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(flatten)] pub error_response: ErrorResponse, #[doc = "The operation status"] @@ -269,14 +265,6 @@ pub mod backup_settings { } } } -#[doc = "Details about the target where the backup content will be stored."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupStoreDetails {} -impl BackupStoreDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Type of the specific object - used for deserializing"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -363,8 +351,6 @@ impl CloudError { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -722,8 +708,6 @@ pub mod data_encryption { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -915,17 +899,12 @@ impl ErrorResponse { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, } impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A list of firewall rules."] @@ -974,18 +953,13 @@ impl FirewallRuleProperties { #[doc = "FullBackupStoreDetails is used for scenarios where backup data is streamed/copied over to a storage destination."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FullBackupStoreDetails { - #[serde(flatten)] - pub backup_store_details: BackupStoreDetails, #[doc = "SASUriList of storage containers where backup data is to be streamed/copied."] #[serde(rename = "sasUriList")] pub sas_uri_list: Vec, } impl FullBackupStoreDetails { - pub fn new(backup_store_details: BackupStoreDetails, sas_uri_list: Vec) -> Self { - Self { - backup_store_details, - sas_uri_list, - } + pub fn new(sas_uri_list: Vec) -> Self { + Self { sas_uri_list } } } #[doc = "The response of get private dns zone suffix."] @@ -1165,8 +1139,6 @@ pub mod import_source_properties { #[doc = "Represents a logFile."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LogFile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a logFile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1797,8 +1769,6 @@ impl Server { #[doc = "Server backup properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerBackup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server backup."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/netapp/src/package_netapp_2022_05_01/models.rs b/services/mgmt/netapp/src/package_netapp_2022_05_01/models.rs index bc351ad615..fa61b194ea 100644 --- a/services/mgmt/netapp/src/package_netapp_2022_05_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2022_05_01/models.rs @@ -627,8 +627,6 @@ impl ServiceSpecification { #[doc = "Information regarding Subscription Quota Item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubscriptionQuotaItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SubscriptionQuotaItem Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2845,8 +2843,6 @@ impl SnapshotsList { #[doc = "Subvolume Information properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubvolumeInfo { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "This represents path associated with the subvolume"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/netapp/src/package_netapp_2022_09_01/models.rs b/services/mgmt/netapp/src/package_netapp_2022_09_01/models.rs index b06a21536a..bea6c68834 100644 --- a/services/mgmt/netapp/src/package_netapp_2022_09_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2022_09_01/models.rs @@ -626,8 +626,6 @@ impl ServiceSpecification { #[doc = "Information regarding Subscription Quota Item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubscriptionQuotaItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SubscriptionQuotaItem Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -961,8 +959,6 @@ impl AuthorizeRequest { #[doc = "Backup of a Volume"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Backup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location"] pub location: String, #[doc = "Backup properties"] @@ -970,11 +966,7 @@ pub struct Backup { } impl Backup { pub fn new(location: String, properties: BackupProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - location, - properties, - } + Self { location, properties } } } #[doc = "Backup patch"] @@ -2622,8 +2614,6 @@ impl Default for ServiceLevel { #[doc = "Snapshot of a Volume"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Snapshot { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location"] pub location: String, #[doc = "Snapshot properties"] @@ -2633,7 +2623,6 @@ pub struct Snapshot { impl Snapshot { pub fn new(location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), location, properties: None, } @@ -2847,8 +2836,6 @@ impl SnapshotsList { #[doc = "Subvolume Information properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubvolumeInfo { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "This represents path associated with the subvolume"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/netapp/src/package_netapp_2022_11_01/models.rs b/services/mgmt/netapp/src/package_netapp_2022_11_01/models.rs index 7e6154c3e6..82b6429039 100644 --- a/services/mgmt/netapp/src/package_netapp_2022_11_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2022_11_01/models.rs @@ -686,8 +686,6 @@ impl ServiceSpecification { #[doc = "Information regarding Subscription Quota Item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubscriptionQuotaItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SubscriptionQuotaItem Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1021,8 +1019,6 @@ impl AuthorizeRequest { #[doc = "Backup of a Volume"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Backup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location"] pub location: String, #[doc = "Backup properties"] @@ -1030,11 +1026,7 @@ pub struct Backup { } impl Backup { pub fn new(location: String, properties: BackupProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - location, - properties, - } + Self { location, properties } } } #[doc = "Backup patch"] @@ -2721,8 +2713,6 @@ impl Default for ServiceLevel { #[doc = "Snapshot of a Volume"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Snapshot { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location"] pub location: String, #[doc = "Snapshot properties"] @@ -2732,7 +2722,6 @@ pub struct Snapshot { impl Snapshot { pub fn new(location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), location, properties: None, } @@ -2946,8 +2935,6 @@ impl SnapshotsList { #[doc = "Subvolume Information properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubvolumeInfo { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "This represents path associated with the subvolume"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/netapp/src/package_netapp_2022_11_01_preview/models.rs b/services/mgmt/netapp/src/package_netapp_2022_11_01_preview/models.rs index 76e5062946..3cc13be406 100644 --- a/services/mgmt/netapp/src/package_netapp_2022_11_01_preview/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2022_11_01_preview/models.rs @@ -692,8 +692,6 @@ impl ServiceSpecification { #[doc = "Information regarding Subscription Quota Item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubscriptionQuotaItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SubscriptionQuotaItem Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1027,17 +1025,12 @@ impl AuthorizeRequest { #[doc = "Backup under a Backup Vault"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Backup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Backup properties"] pub properties: BackupProperties, } impl Backup { pub fn new(properties: BackupProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Backup patch"] @@ -2831,8 +2824,6 @@ impl Default for ServiceLevel { #[doc = "Snapshot of a Volume"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Snapshot { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location"] pub location: String, #[doc = "Snapshot properties"] @@ -2842,7 +2833,6 @@ pub struct Snapshot { impl Snapshot { pub fn new(location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), location, properties: None, } @@ -3056,8 +3046,6 @@ impl SnapshotsList { #[doc = "Subvolume Information properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubvolumeInfo { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "This represents path associated with the subvolume"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/netapp/src/package_netapp_2023_05_01/models.rs b/services/mgmt/netapp/src/package_netapp_2023_05_01/models.rs index 0eb2d894a5..13e6d0b87c 100644 --- a/services/mgmt/netapp/src/package_netapp_2023_05_01/models.rs +++ b/services/mgmt/netapp/src/package_netapp_2023_05_01/models.rs @@ -704,8 +704,6 @@ impl ServiceSpecification { #[doc = "Information regarding Subscription Quota Item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubscriptionQuotaItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SubscriptionQuotaItem Properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2754,8 +2752,6 @@ impl Serialize for SmbNonBrowsable { #[doc = "Snapshot of a Volume"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Snapshot { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Resource location"] pub location: String, #[doc = "Snapshot properties"] @@ -2765,7 +2761,6 @@ pub struct Snapshot { impl Snapshot { pub fn new(location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), location, properties: None, } @@ -2980,8 +2975,6 @@ pub type SubnetId = String; #[doc = "Subvolume Information properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SubvolumeInfo { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "This represents path associated with the subvolume"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/newrelic/src/package_2022_07_01/models.rs b/services/mgmt/newrelic/src/package_2022_07_01/models.rs index 7db3fc8121..0d91db1d85 100644 --- a/services/mgmt/newrelic/src/package_2022_07_01/models.rs +++ b/services/mgmt/newrelic/src/package_2022_07_01/models.rs @@ -92,8 +92,6 @@ impl AccountProperties { #[doc = "The details of a account resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "List of all the New relic accounts for the given user"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1164,8 +1162,6 @@ impl OrganizationProperties { #[doc = "The details of a Organization resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OrganizationResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Details of Organizations"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1257,8 +1253,6 @@ impl PlanDataProperties { #[doc = "The details of a PlanData resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PlanDataResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Plan details"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1692,17 +1686,12 @@ impl Serialize for TagAction { #[doc = "A tag rule belonging to NewRelic account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TagRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The resource-specific properties for this resource."] pub properties: MonitoringTagRulesProperties, } impl TagRule { pub fn new(properties: MonitoringTagRulesProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The response of a TagRule list operation."] diff --git a/services/mgmt/newrelic/src/package_2022_07_01_preview/models.rs b/services/mgmt/newrelic/src/package_2022_07_01_preview/models.rs index 7db3fc8121..0d91db1d85 100644 --- a/services/mgmt/newrelic/src/package_2022_07_01_preview/models.rs +++ b/services/mgmt/newrelic/src/package_2022_07_01_preview/models.rs @@ -92,8 +92,6 @@ impl AccountProperties { #[doc = "The details of a account resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AccountResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "List of all the New relic accounts for the given user"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1164,8 +1162,6 @@ impl OrganizationProperties { #[doc = "The details of a Organization resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OrganizationResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Details of Organizations"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1257,8 +1253,6 @@ impl PlanDataProperties { #[doc = "The details of a PlanData resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PlanDataResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Plan details"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1692,17 +1686,12 @@ impl Serialize for TagAction { #[doc = "A tag rule belonging to NewRelic account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct TagRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The resource-specific properties for this resource."] pub properties: MonitoringTagRulesProperties, } impl TagRule { pub fn new(properties: MonitoringTagRulesProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "The response of a TagRule list operation."] diff --git a/services/mgmt/notificationhubs/src/package_2023_09/models.rs b/services/mgmt/notificationhubs/src/package_2023_09/models.rs index 69a9fd6ad0..6602b7e66a 100644 --- a/services/mgmt/notificationhubs/src/package_2023_09/models.rs +++ b/services/mgmt/notificationhubs/src/package_2023_09/models.rs @@ -247,8 +247,6 @@ impl CheckAvailabilityParameters { #[doc = "Description of a CheckAvailability resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CheckAvailabilityResult { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Gets or sets true if the name is available and can be used to\r\ncreate new Namespace/NotificationHub. Otherwise false."] #[serde(rename = "isAvailiable", default, skip_serializing_if = "Option::is_none")] pub is_availiable: Option, @@ -294,8 +292,6 @@ impl ConnectionDetails { #[doc = "Description of a NotificationHub Resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DebugSendResponse { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Result of DebugSend operations."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1069,8 +1065,6 @@ impl PnsCredentials { #[doc = "Description of a NotificationHub PNS Credentials. This is a response of the POST requests that return namespace or hubs\r\nPNS credentials."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PnsCredentialsResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Collection of Notification Hub or Notification Hub Namespace PNS credentials."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1217,8 +1211,6 @@ impl Serialize for PrivateEndpointConnectionProvisioningState { #[doc = "Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnectionResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Private Endpoint Connection properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1297,8 +1289,6 @@ impl Serialize for PrivateLinkConnectionStatus { #[doc = "A Private Link Arm Resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Represents properties of Private Link Resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1691,8 +1681,6 @@ impl SharedAccessAuthorizationRuleProperties { #[doc = "Response for POST requests that return single SharedAccessAuthorizationRule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SharedAccessAuthorizationRuleResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SharedAccessAuthorizationRule properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/notificationhubs/src/package_preview_2023_01/models.rs b/services/mgmt/notificationhubs/src/package_preview_2023_01/models.rs index 09ade79ba3..3bc2dacd17 100644 --- a/services/mgmt/notificationhubs/src/package_preview_2023_01/models.rs +++ b/services/mgmt/notificationhubs/src/package_preview_2023_01/models.rs @@ -247,8 +247,6 @@ impl CheckAvailabilityParameters { #[doc = "Description of a CheckAvailability resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CheckAvailabilityResult { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Gets or sets true if the name is available and can be used to\r\ncreate new Namespace/NotificationHub. Otherwise false."] #[serde(rename = "isAvailiable", default, skip_serializing_if = "Option::is_none")] pub is_availiable: Option, @@ -294,8 +292,6 @@ impl ConnectionDetails { #[doc = "Description of a NotificationHub Resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DebugSendResponse { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Result of DebugSend operations."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1069,8 +1065,6 @@ impl PnsCredentials { #[doc = "Description of a NotificationHub PNS Credentials. This is a response of the POST requests that return namespace or hubs\r\nPNS credentials."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PnsCredentialsResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Collection of Notification Hub or Notification Hub Namespace PNS credentials."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1217,8 +1211,6 @@ impl Serialize for PrivateEndpointConnectionProvisioningState { #[doc = "Represents a Private Endpoint Connection ARM resource - a sub-resource of Notification Hubs namespace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnectionResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Private Endpoint Connection properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1297,8 +1289,6 @@ impl Serialize for PrivateLinkConnectionStatus { #[doc = "A Private Link Arm Resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateLinkResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Represents properties of Private Link Resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1691,8 +1681,6 @@ impl SharedAccessAuthorizationRuleProperties { #[doc = "Response for POST requests that return single SharedAccessAuthorizationRule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SharedAccessAuthorizationRuleResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SharedAccessAuthorizationRule properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs b/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs index 4f6403b062..e3a44a306f 100644 --- a/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs +++ b/services/mgmt/operationalinsights/src/package_2020_03_preview/models.rs @@ -341,8 +341,6 @@ impl CoreSummary { #[doc = "Data collector log top level resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DataCollectorLog { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Data collector log properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -389,8 +387,6 @@ impl DataCollectorLogsListResult { #[doc = "The top level data export resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DataExport { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Data Export properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -477,8 +473,6 @@ impl DataExportProperties { #[doc = "Datasources under OMS Workspace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataSource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "JSON object"] pub properties: Object, #[doc = "The ETag of the data source."] @@ -493,7 +487,6 @@ pub struct DataSource { impl DataSource { pub fn new(properties: Object, kind: DataSourceKind) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, etag: None, kind, @@ -844,8 +837,6 @@ impl IntelligencePack { #[doc = "The top level Linked service resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedService { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Linked service properties."] pub properties: LinkedServiceProperties, #[doc = "Resource tags."] @@ -854,11 +845,7 @@ pub struct LinkedService { } impl LinkedService { pub fn new(properties: LinkedServiceProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - tags: None, - } + Self { properties, tags: None } } } #[doc = "The list linked service operation response."] @@ -1002,17 +989,12 @@ pub mod linked_storage_accounts_properties { #[doc = "Linked storage accounts top level resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedStorageAccountsResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Linked storage accounts properties."] pub properties: LinkedStorageAccountsProperties, } impl LinkedStorageAccountsResource { pub fn new(properties: LinkedStorageAccountsProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A management group that is connected to a workspace"] @@ -1263,8 +1245,6 @@ impl Resource { #[doc = "Value object for saved search results."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SavedSearch { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ETag of the saved search."] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, @@ -1273,11 +1253,7 @@ pub struct SavedSearch { } impl SavedSearch { pub fn new(properties: SavedSearchProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - etag: None, - properties, - } + Self { etag: None, properties } } } #[doc = "Value object for saved search results."] @@ -1567,8 +1543,6 @@ impl StorageAccount { #[doc = "The top level storage insight resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageInsight { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage insight properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1702,8 +1676,6 @@ pub mod storage_insight_status { #[doc = "Workspace data table definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Table { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Table properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/operationalinsights/src/package_2020_08/models.rs b/services/mgmt/operationalinsights/src/package_2020_08/models.rs index b97f67bdfa..433d37f00e 100644 --- a/services/mgmt/operationalinsights/src/package_2020_08/models.rs +++ b/services/mgmt/operationalinsights/src/package_2020_08/models.rs @@ -323,8 +323,6 @@ impl CoreSummary { #[doc = "The top level data export resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DataExport { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Data Export properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -393,8 +391,6 @@ impl DataExportProperties { #[doc = "Datasources under OMS Workspace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataSource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "JSON object"] pub properties: Object, #[doc = "The ETag of the data source."] @@ -409,7 +405,6 @@ pub struct DataSource { impl DataSource { pub fn new(properties: Object, kind: DataSourceKind) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, etag: None, kind, @@ -760,8 +755,6 @@ impl IntelligencePack { #[doc = "The top level Linked service resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedService { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Linked service properties."] pub properties: LinkedServiceProperties, #[doc = "Resource tags."] @@ -770,11 +763,7 @@ pub struct LinkedService { } impl LinkedService { pub fn new(properties: LinkedServiceProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - tags: None, - } + Self { properties, tags: None } } } #[doc = "The list linked service operation response."] @@ -918,17 +907,12 @@ pub mod linked_storage_accounts_properties { #[doc = "Linked storage accounts top level resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedStorageAccountsResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Linked storage accounts properties."] pub properties: LinkedStorageAccountsProperties, } impl LinkedStorageAccountsResource { pub fn new(properties: LinkedStorageAccountsProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A management group that is connected to a workspace"] @@ -1179,8 +1163,6 @@ impl Resource { #[doc = "Value object for saved search results."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SavedSearch { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ETag of the saved search. To override an existing saved search, use \"*\" or specify the current Etag"] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, @@ -1189,11 +1171,7 @@ pub struct SavedSearch { } impl SavedSearch { pub fn new(properties: SavedSearchProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - etag: None, - properties, - } + Self { etag: None, properties } } } #[doc = "Value object for saved search results."] @@ -1483,8 +1461,6 @@ impl StorageAccount { #[doc = "The top level storage insight resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageInsight { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage insight properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1618,8 +1594,6 @@ pub mod storage_insight_status { #[doc = "Workspace data table definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Table { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Table properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/operationalinsights/src/package_2020_10/models.rs b/services/mgmt/operationalinsights/src/package_2020_10/models.rs index 07d9c689b7..426f2214ea 100644 --- a/services/mgmt/operationalinsights/src/package_2020_10/models.rs +++ b/services/mgmt/operationalinsights/src/package_2020_10/models.rs @@ -388,8 +388,6 @@ impl CoreSummary { #[doc = "The top level data export resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DataExport { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Data Export properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -458,8 +456,6 @@ impl DataExportProperties { #[doc = "Datasources under OMS Workspace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataSource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "JSON object"] pub properties: Object, #[doc = "The ETag of the data source."] @@ -474,7 +470,6 @@ pub struct DataSource { impl DataSource { pub fn new(properties: Object, kind: DataSourceKind) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, etag: None, kind, @@ -830,8 +825,6 @@ impl IntelligencePack { #[doc = "The top level Linked service resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedService { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Linked service properties."] pub properties: LinkedServiceProperties, #[doc = "Resource tags."] @@ -840,11 +833,7 @@ pub struct LinkedService { } impl LinkedService { pub fn new(properties: LinkedServiceProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - tags: None, - } + Self { properties, tags: None } } } #[doc = "The list linked service operation response."] @@ -988,17 +977,12 @@ pub mod linked_storage_accounts_properties { #[doc = "Linked storage accounts top level resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedStorageAccountsResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Linked storage accounts properties."] pub properties: LinkedStorageAccountsProperties, } impl LinkedStorageAccountsResource { pub fn new(properties: LinkedStorageAccountsProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A management group that is connected to a workspace"] @@ -1249,8 +1233,6 @@ impl Resource { #[doc = "Value object for saved search results."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SavedSearch { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ETag of the saved search. To override an existing saved search, use \"*\" or specify the current Etag"] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, @@ -1259,11 +1241,7 @@ pub struct SavedSearch { } impl SavedSearch { pub fn new(properties: SavedSearchProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - etag: None, - properties, - } + Self { etag: None, properties } } } #[doc = "Value object for saved search results."] @@ -1553,8 +1531,6 @@ impl StorageAccount { #[doc = "The top level storage insight resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageInsight { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage insight properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1688,8 +1664,6 @@ pub mod storage_insight_status { #[doc = "Workspace data table definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Table { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Table properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/operationalinsights/src/package_2021_06/models.rs b/services/mgmt/operationalinsights/src/package_2021_06/models.rs index c9aca1654d..d8ed9157ae 100644 --- a/services/mgmt/operationalinsights/src/package_2021_06/models.rs +++ b/services/mgmt/operationalinsights/src/package_2021_06/models.rs @@ -391,8 +391,6 @@ impl CoreSummary { #[doc = "The top level data export resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DataExport { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Data Export properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -461,8 +459,6 @@ impl DataExportProperties { #[doc = "Datasources under OMS Workspace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataSource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "JSON object"] pub properties: Object, #[doc = "The ETag of the data source."] @@ -477,7 +473,6 @@ pub struct DataSource { impl DataSource { pub fn new(properties: Object, kind: DataSourceKind) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, etag: None, kind, @@ -833,8 +828,6 @@ impl IntelligencePack { #[doc = "The top level Linked service resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedService { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Linked service properties."] pub properties: LinkedServiceProperties, #[doc = "Resource tags."] @@ -843,11 +836,7 @@ pub struct LinkedService { } impl LinkedService { pub fn new(properties: LinkedServiceProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - tags: None, - } + Self { properties, tags: None } } } #[doc = "The list linked service operation response."] @@ -991,17 +980,12 @@ pub mod linked_storage_accounts_properties { #[doc = "Linked storage accounts top level resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedStorageAccountsResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Linked storage accounts properties."] pub properties: LinkedStorageAccountsProperties, } impl LinkedStorageAccountsResource { pub fn new(properties: LinkedStorageAccountsProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A management group that is connected to a workspace"] @@ -1252,8 +1236,6 @@ impl Resource { #[doc = "Value object for saved search results."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SavedSearch { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ETag of the saved search. To override an existing saved search, use \"*\" or specify the current Etag"] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, @@ -1262,11 +1244,7 @@ pub struct SavedSearch { } impl SavedSearch { pub fn new(properties: SavedSearchProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - etag: None, - properties, - } + Self { etag: None, properties } } } #[doc = "Value object for saved search results."] @@ -1556,8 +1534,6 @@ impl StorageAccount { #[doc = "The top level storage insight resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageInsight { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage insight properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1691,8 +1667,6 @@ pub mod storage_insight_status { #[doc = "Workspace data table definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Table { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Table properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs b/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs index 41a436514c..bc3763acea 100644 --- a/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs +++ b/services/mgmt/operationalinsights/src/package_2021_12_01_preview/models.rs @@ -526,8 +526,6 @@ impl CoreSummary { #[doc = "The top level data export resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DataExport { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Data Export properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -596,8 +594,6 @@ impl DataExportProperties { #[doc = "Datasources under OMS Workspace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataSource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "JSON object"] pub properties: Object, #[doc = "The ETag of the data source."] @@ -612,7 +608,6 @@ pub struct DataSource { impl DataSource { pub fn new(properties: Object, kind: DataSourceKind) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, etag: None, kind, @@ -968,8 +963,6 @@ impl IntelligencePack { #[doc = "The top level Linked service resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedService { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Linked service properties."] pub properties: LinkedServiceProperties, #[doc = "Resource tags."] @@ -978,11 +971,7 @@ pub struct LinkedService { } impl LinkedService { pub fn new(properties: LinkedServiceProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - tags: None, - } + Self { properties, tags: None } } } #[doc = "The list linked service operation response."] @@ -1126,17 +1115,12 @@ pub mod linked_storage_accounts_properties { #[doc = "Linked storage accounts top level resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LinkedStorageAccountsResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Linked storage accounts properties."] pub properties: LinkedStorageAccountsProperties, } impl LinkedStorageAccountsResource { pub fn new(properties: LinkedStorageAccountsProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A management group that is connected to a workspace"] @@ -1420,8 +1404,6 @@ impl ResultStatistics { #[doc = "Value object for saved search results."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SavedSearch { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ETag of the saved search. To override an existing saved search, use \"*\" or specify the current Etag"] #[serde(default, skip_serializing_if = "Option::is_none")] pub etag: Option, @@ -1430,11 +1412,7 @@ pub struct SavedSearch { } impl SavedSearch { pub fn new(properties: SavedSearchProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - etag: None, - properties, - } + Self { etag: None, properties } } } #[doc = "Value object for saved search results."] @@ -1942,8 +1920,6 @@ impl StorageAccount { #[doc = "The top level storage insight resource container."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct StorageInsight { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Storage insight properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -2077,8 +2053,6 @@ pub mod storage_insight_status { #[doc = "Workspace data table definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Table { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Table properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/orbital/src/package_2022_03_01/models.rs b/services/mgmt/orbital/src/package_2022_03_01/models.rs index 52cf81708f..fde651f3f8 100644 --- a/services/mgmt/orbital/src/package_2022_03_01/models.rs +++ b/services/mgmt/orbital/src/package_2022_03_01/models.rs @@ -261,8 +261,6 @@ impl CloudErrorBody { #[doc = "Customer creates a contact resource for a spacecraft resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Contact { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Contact Resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/orbital/src/package_2022_11_01/models.rs b/services/mgmt/orbital/src/package_2022_11_01/models.rs index c9f47c92d7..02d619364a 100644 --- a/services/mgmt/orbital/src/package_2022_11_01/models.rs +++ b/services/mgmt/orbital/src/package_2022_11_01/models.rs @@ -226,17 +226,12 @@ impl Serialize for Capability { #[doc = "Customer creates a contact resource for a spacecraft resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Contact { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the Contact Resource."] pub properties: ContactsProperties, } impl Contact { pub fn new(properties: ContactsProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Contact Instance Properties."] diff --git a/services/mgmt/paloaltonetworks/src/package_2022_08_29/models.rs b/services/mgmt/paloaltonetworks/src/package_2022_08_29/models.rs index 6ce6e067e7..558ad7208a 100644 --- a/services/mgmt/paloaltonetworks/src/package_2022_08_29/models.rs +++ b/services/mgmt/paloaltonetworks/src/package_2022_08_29/models.rs @@ -365,8 +365,6 @@ impl CertificateObject { #[doc = "GlobalRulestack Certificate Object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateObjectGlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "certificate used for inbound and outbound decryption"] pub properties: CertificateObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -376,7 +374,6 @@ pub struct CertificateObjectGlobalRulestackResource { impl CertificateObjectGlobalRulestackResource { pub fn new(properties: CertificateObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -405,8 +402,6 @@ impl CertificateObjectGlobalRulestackResourceListResult { #[doc = "LocalRulestack Certificate Object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateObjectLocalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "certificate used for inbound and outbound decryption"] pub properties: CertificateObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -416,7 +411,6 @@ pub struct CertificateObjectLocalRulestackResource { impl CertificateObjectLocalRulestackResource { pub fn new(properties: CertificateObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1052,8 +1046,6 @@ impl FirewallStatusProperty { #[doc = "Firewall Status"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallStatusResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Firewall Status"] pub properties: FirewallStatusProperty, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1063,7 +1055,6 @@ pub struct FirewallStatusResource { impl FirewallStatusResource { pub fn new(properties: FirewallStatusProperty) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1092,8 +1083,6 @@ impl FirewallStatusResourceListResult { #[doc = "GlobalRulestack fqdnList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FqdnListGlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "fqdn object"] pub properties: FqdnObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1103,7 +1092,6 @@ pub struct FqdnListGlobalRulestackResource { impl FqdnListGlobalRulestackResource { pub fn new(properties: FqdnObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1132,8 +1120,6 @@ impl FqdnListGlobalRulestackResourceListResult { #[doc = "LocalRulestack fqdnList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FqdnListLocalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "fqdn object"] pub properties: FqdnObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1143,7 +1129,6 @@ pub struct FqdnListLocalRulestackResource { impl FqdnListLocalRulestackResource { pub fn new(properties: FqdnObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1243,8 +1228,6 @@ impl GlobalRulestackInfo { #[doc = "PaloAltoNetworks GlobalRulestack"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "PAN Rulestack Describe Object"] pub properties: RulestackProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1259,7 +1242,6 @@ pub struct GlobalRulestackResource { impl GlobalRulestackResource { pub fn new(properties: RulestackProperties, location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, location, @@ -1448,8 +1430,6 @@ impl ListFirewallsResponse { #[doc = "LocalRulestack rule list"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LocalRulesResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "definition of rule"] pub properties: RuleEntry, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1459,7 +1439,6 @@ pub struct LocalRulesResource { impl LocalRulesResource { pub fn new(properties: RuleEntry) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2148,8 +2127,6 @@ impl PlanData { #[doc = "PostRulestack rule list"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PostRulesResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "definition of rule"] pub properties: RuleEntry, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2159,7 +2136,6 @@ pub struct PostRulesResource { impl PostRulesResource { pub fn new(properties: RuleEntry) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2188,8 +2164,6 @@ impl PostRulesResourceListResult { #[doc = "PreRulestack rule list"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PreRulesResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "definition of rule"] pub properties: RuleEntry, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2199,7 +2173,6 @@ pub struct PreRulesResource { impl PreRulesResource { pub fn new(properties: RuleEntry) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2253,8 +2226,6 @@ impl PredefinedUrlCategory { #[doc = "GlobalRulestack prefixList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PrefixListGlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "prefix entry"] pub properties: PrefixObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2264,7 +2235,6 @@ pub struct PrefixListGlobalRulestackResource { impl PrefixListGlobalRulestackResource { pub fn new(properties: PrefixObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2293,8 +2263,6 @@ impl PrefixListGlobalRulestackResourceListResult { #[doc = "LocalRulestack prefixList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PrefixListResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "prefix entry"] pub properties: PrefixObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2304,7 +2272,6 @@ pub struct PrefixListResource { impl PrefixListResource { pub fn new(properties: PrefixObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/paloaltonetworks/src/package_2022_08_29_preview/models.rs b/services/mgmt/paloaltonetworks/src/package_2022_08_29_preview/models.rs index 6ce6e067e7..558ad7208a 100644 --- a/services/mgmt/paloaltonetworks/src/package_2022_08_29_preview/models.rs +++ b/services/mgmt/paloaltonetworks/src/package_2022_08_29_preview/models.rs @@ -365,8 +365,6 @@ impl CertificateObject { #[doc = "GlobalRulestack Certificate Object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateObjectGlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "certificate used for inbound and outbound decryption"] pub properties: CertificateObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -376,7 +374,6 @@ pub struct CertificateObjectGlobalRulestackResource { impl CertificateObjectGlobalRulestackResource { pub fn new(properties: CertificateObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -405,8 +402,6 @@ impl CertificateObjectGlobalRulestackResourceListResult { #[doc = "LocalRulestack Certificate Object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateObjectLocalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "certificate used for inbound and outbound decryption"] pub properties: CertificateObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -416,7 +411,6 @@ pub struct CertificateObjectLocalRulestackResource { impl CertificateObjectLocalRulestackResource { pub fn new(properties: CertificateObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1052,8 +1046,6 @@ impl FirewallStatusProperty { #[doc = "Firewall Status"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallStatusResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Firewall Status"] pub properties: FirewallStatusProperty, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1063,7 +1055,6 @@ pub struct FirewallStatusResource { impl FirewallStatusResource { pub fn new(properties: FirewallStatusProperty) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1092,8 +1083,6 @@ impl FirewallStatusResourceListResult { #[doc = "GlobalRulestack fqdnList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FqdnListGlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "fqdn object"] pub properties: FqdnObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1103,7 +1092,6 @@ pub struct FqdnListGlobalRulestackResource { impl FqdnListGlobalRulestackResource { pub fn new(properties: FqdnObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1132,8 +1120,6 @@ impl FqdnListGlobalRulestackResourceListResult { #[doc = "LocalRulestack fqdnList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FqdnListLocalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "fqdn object"] pub properties: FqdnObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1143,7 +1129,6 @@ pub struct FqdnListLocalRulestackResource { impl FqdnListLocalRulestackResource { pub fn new(properties: FqdnObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1243,8 +1228,6 @@ impl GlobalRulestackInfo { #[doc = "PaloAltoNetworks GlobalRulestack"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "PAN Rulestack Describe Object"] pub properties: RulestackProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1259,7 +1242,6 @@ pub struct GlobalRulestackResource { impl GlobalRulestackResource { pub fn new(properties: RulestackProperties, location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, location, @@ -1448,8 +1430,6 @@ impl ListFirewallsResponse { #[doc = "LocalRulestack rule list"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LocalRulesResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "definition of rule"] pub properties: RuleEntry, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1459,7 +1439,6 @@ pub struct LocalRulesResource { impl LocalRulesResource { pub fn new(properties: RuleEntry) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2148,8 +2127,6 @@ impl PlanData { #[doc = "PostRulestack rule list"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PostRulesResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "definition of rule"] pub properties: RuleEntry, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2159,7 +2136,6 @@ pub struct PostRulesResource { impl PostRulesResource { pub fn new(properties: RuleEntry) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2188,8 +2164,6 @@ impl PostRulesResourceListResult { #[doc = "PreRulestack rule list"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PreRulesResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "definition of rule"] pub properties: RuleEntry, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2199,7 +2173,6 @@ pub struct PreRulesResource { impl PreRulesResource { pub fn new(properties: RuleEntry) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2253,8 +2226,6 @@ impl PredefinedUrlCategory { #[doc = "GlobalRulestack prefixList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PrefixListGlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "prefix entry"] pub properties: PrefixObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2264,7 +2235,6 @@ pub struct PrefixListGlobalRulestackResource { impl PrefixListGlobalRulestackResource { pub fn new(properties: PrefixObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2293,8 +2263,6 @@ impl PrefixListGlobalRulestackResourceListResult { #[doc = "LocalRulestack prefixList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PrefixListResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "prefix entry"] pub properties: PrefixObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2304,7 +2272,6 @@ pub struct PrefixListResource { impl PrefixListResource { pub fn new(properties: PrefixObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/paloaltonetworks/src/package_2023_09_01_preview/models.rs b/services/mgmt/paloaltonetworks/src/package_2023_09_01_preview/models.rs index e552c38456..946d49c131 100644 --- a/services/mgmt/paloaltonetworks/src/package_2023_09_01_preview/models.rs +++ b/services/mgmt/paloaltonetworks/src/package_2023_09_01_preview/models.rs @@ -365,8 +365,6 @@ impl CertificateObject { #[doc = "GlobalRulestack Certificate Object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateObjectGlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "certificate used for inbound and outbound decryption"] pub properties: CertificateObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -376,7 +374,6 @@ pub struct CertificateObjectGlobalRulestackResource { impl CertificateObjectGlobalRulestackResource { pub fn new(properties: CertificateObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -405,8 +402,6 @@ impl CertificateObjectGlobalRulestackResourceListResult { #[doc = "LocalRulestack Certificate Object"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CertificateObjectLocalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "certificate used for inbound and outbound decryption"] pub properties: CertificateObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -416,7 +411,6 @@ pub struct CertificateObjectLocalRulestackResource { impl CertificateObjectLocalRulestackResource { pub fn new(properties: CertificateObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1058,8 +1052,6 @@ impl FirewallStatusProperty { #[doc = "Firewall Status"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallStatusResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Firewall Status"] pub properties: FirewallStatusProperty, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1069,7 +1061,6 @@ pub struct FirewallStatusResource { impl FirewallStatusResource { pub fn new(properties: FirewallStatusProperty) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1098,8 +1089,6 @@ impl FirewallStatusResourceListResult { #[doc = "GlobalRulestack fqdnList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FqdnListGlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "fqdn object"] pub properties: FqdnObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1109,7 +1098,6 @@ pub struct FqdnListGlobalRulestackResource { impl FqdnListGlobalRulestackResource { pub fn new(properties: FqdnObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1138,8 +1126,6 @@ impl FqdnListGlobalRulestackResourceListResult { #[doc = "LocalRulestack fqdnList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FqdnListLocalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "fqdn object"] pub properties: FqdnObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1149,7 +1135,6 @@ pub struct FqdnListLocalRulestackResource { impl FqdnListLocalRulestackResource { pub fn new(properties: FqdnObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1249,8 +1234,6 @@ impl GlobalRulestackInfo { #[doc = "PaloAltoNetworks GlobalRulestack"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "PAN Rulestack Describe Object"] pub properties: RulestackProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1265,7 +1248,6 @@ pub struct GlobalRulestackResource { impl GlobalRulestackResource { pub fn new(properties: RulestackProperties, location: String) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, location, @@ -1460,8 +1442,6 @@ impl ListFirewallsResponse { #[doc = "LocalRulestack rule list"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LocalRulesResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "definition of rule"] pub properties: RuleEntry, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1471,7 +1451,6 @@ pub struct LocalRulesResource { impl LocalRulesResource { pub fn new(properties: RuleEntry) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2169,8 +2148,6 @@ impl PlanData { #[doc = "PostRulestack rule list"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PostRulesResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "definition of rule"] pub properties: RuleEntry, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2180,7 +2157,6 @@ pub struct PostRulesResource { impl PostRulesResource { pub fn new(properties: RuleEntry) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2209,8 +2185,6 @@ impl PostRulesResourceListResult { #[doc = "PreRulestack rule list"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PreRulesResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "definition of rule"] pub properties: RuleEntry, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2220,7 +2194,6 @@ pub struct PreRulesResource { impl PreRulesResource { pub fn new(properties: RuleEntry) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2280,8 +2253,6 @@ impl PredefinedUrlCategory { #[doc = "GlobalRulestack prefixList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PrefixListGlobalRulestackResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "prefix entry"] pub properties: PrefixObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2291,7 +2262,6 @@ pub struct PrefixListGlobalRulestackResource { impl PrefixListGlobalRulestackResource { pub fn new(properties: PrefixObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -2320,8 +2290,6 @@ impl PrefixListGlobalRulestackResourceListResult { #[doc = "LocalRulestack prefixList"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PrefixListResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "prefix entry"] pub properties: PrefixObject, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2331,7 +2299,6 @@ pub struct PrefixListResource { impl PrefixListResource { pub fn new(properties: PrefixObject) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } diff --git a/services/mgmt/playwrighttesting/src/package_2023_10_01_preview/models.rs b/services/mgmt/playwrighttesting/src/package_2023_10_01_preview/models.rs index 507695c3d1..4bad090b35 100644 --- a/services/mgmt/playwrighttesting/src/package_2023_10_01_preview/models.rs +++ b/services/mgmt/playwrighttesting/src/package_2023_10_01_preview/models.rs @@ -489,8 +489,6 @@ impl ProxyResource { #[doc = "A quota resource"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Quota { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Quota properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/portal/src/package_2019_01_01_preview/models.rs b/services/mgmt/portal/src/package_2019_01_01_preview/models.rs index 43bec38356..605e3dbfd9 100644 --- a/services/mgmt/portal/src/package_2019_01_01_preview/models.rs +++ b/services/mgmt/portal/src/package_2019_01_01_preview/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Tenant configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tenant configuration properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/portal/src/package_2020_09_01_preview/models.rs b/services/mgmt/portal/src/package_2020_09_01_preview/models.rs index b1d608b3c0..211ee92d40 100644 --- a/services/mgmt/portal/src/package_2020_09_01_preview/models.rs +++ b/services/mgmt/portal/src/package_2020_09_01_preview/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Tenant configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Tenant configuration properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -132,14 +130,6 @@ impl DashboardListResult { Self::default() } } -#[doc = "A dashboard part metadata."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DashboardPartMetadata {} -impl DashboardPartMetadata { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of dashboard part."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -254,8 +244,6 @@ impl ErrorResponse { #[doc = "Markdown part metadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct MarkdownPartMetadata { - #[serde(flatten)] - pub dashboard_part_metadata: DashboardPartMetadata, #[doc = "Input to dashboard part."] #[serde( default, @@ -268,9 +256,8 @@ pub struct MarkdownPartMetadata { pub settings: Option, } impl MarkdownPartMetadata { - pub fn new(dashboard_part_metadata: DashboardPartMetadata) -> Self { + pub fn new() -> Self { Self { - dashboard_part_metadata, inputs: Vec::new(), settings: None, } diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs index 1c771457a6..9e062d1ee0 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2022_01_preview/models.rs @@ -158,8 +158,6 @@ impl CloudError { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -286,8 +284,6 @@ pub mod configuration_properties { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -406,8 +402,6 @@ impl ErrorResponse { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -417,7 +411,6 @@ pub struct FirewallRule { impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1046,8 +1039,6 @@ impl Server { #[doc = "Server backup properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerBackup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server backup."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2022_03_preview/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2022_03_preview/models.rs index 795ede8db5..5695c3a040 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2022_03_preview/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2022_03_preview/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Represents an Active Directory administrator."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ActiveDirectoryAdministrator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of an Active Directory administrator."] pub properties: AdministratorProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -17,7 +15,6 @@ pub struct ActiveDirectoryAdministrator { impl ActiveDirectoryAdministrator { pub fn new(properties: AdministratorProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -425,8 +422,6 @@ pub mod check_name_availability_response { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -623,8 +618,6 @@ pub mod data_encryption { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -775,8 +768,6 @@ impl FastProvisioningEditionCapability { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -786,7 +777,6 @@ pub struct FirewallRule { impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1402,8 +1392,6 @@ impl Server { #[doc = "Server backup properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerBackup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server backup."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2022_03_privatepreview/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2022_03_privatepreview/models.rs index 4cc425ccd3..39bb432769 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2022_03_privatepreview/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2022_03_privatepreview/models.rs @@ -185,8 +185,6 @@ impl CloudError { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -313,8 +311,6 @@ pub mod configuration_properties { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -433,8 +429,6 @@ impl ErrorResponse { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -444,7 +438,6 @@ pub struct FirewallRule { impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1073,8 +1066,6 @@ impl Server { #[doc = "Server backup properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerBackup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server backup."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2022_12_01/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2022_12_01/models.rs index 4c5a4f5e35..75610d9915 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2022_12_01/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2022_12_01/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Represents an Active Directory administrator."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ActiveDirectoryAdministrator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of an Active Directory administrator."] pub properties: AdministratorProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -17,7 +15,6 @@ pub struct ActiveDirectoryAdministrator { impl ActiveDirectoryAdministrator { pub fn new(properties: AdministratorProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -507,8 +504,6 @@ pub mod check_name_availability_response { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -705,8 +700,6 @@ pub mod data_encryption { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -857,8 +850,6 @@ impl FastProvisioningEditionCapability { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -868,7 +859,6 @@ pub struct FirewallRule { impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1484,8 +1474,6 @@ impl Server { #[doc = "Server backup properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerBackup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server backup."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/postgresql/src/package_flexibleserver_2023_03_01_preview/models.rs b/services/mgmt/postgresql/src/package_flexibleserver_2023_03_01_preview/models.rs index 3828ae1ad4..c157e2cc0d 100644 --- a/services/mgmt/postgresql/src/package_flexibleserver_2023_03_01_preview/models.rs +++ b/services/mgmt/postgresql/src/package_flexibleserver_2023_03_01_preview/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "Represents an Active Directory administrator."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ActiveDirectoryAdministrator { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of an Active Directory administrator."] pub properties: AdministratorProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -17,7 +15,6 @@ pub struct ActiveDirectoryAdministrator { impl ActiveDirectoryAdministrator { pub fn new(properties: AdministratorProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -531,8 +528,6 @@ pub mod check_name_availability_response { #[doc = "Represents a Configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -815,8 +810,6 @@ pub mod data_encryption { #[doc = "Represents a Database."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a database."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -997,8 +990,6 @@ impl FastProvisioningEditionCapability { #[doc = "Represents a server firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server firewall rule."] pub properties: FirewallRuleProperties, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -1008,7 +999,6 @@ pub struct FirewallRule { impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -1524,8 +1514,6 @@ pub mod high_availability { #[doc = "Represents a logFile."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LogFile { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a logFile."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1743,18 +1731,13 @@ impl LtrPreBackupResponseProperties { #[doc = "Response for the LTR backup Operation API call"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LtrServerBackupOperation { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Response for the backup request."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl LtrServerBackupOperation { pub fn new() -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties: None, - } + Self { properties: None } } } #[doc = "A list of long term retention backup operations for server."] @@ -3063,8 +3046,6 @@ impl Server { #[doc = "Server backup properties"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerBackup { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server backup."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs b/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs index 6339c92cde..9ac506b043 100644 --- a/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs +++ b/services/mgmt/postgresqlhsc/src/package_2020_10_05_privatepreview/models.rs @@ -103,8 +103,6 @@ impl CloudErrorBody { #[doc = "Represents a server group firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -114,7 +112,6 @@ pub struct FirewallRule { impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { Self { - proxy_resource: ProxyResource::default(), system_data: None, properties, } @@ -411,8 +408,6 @@ impl Resource { #[doc = "Represents a server group role."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Role { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -461,8 +456,6 @@ impl RoleProperties { #[doc = "Represents a configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -601,8 +594,6 @@ impl ServerGroup { #[doc = "Represents the configuration list of server role groups in a server group."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerGroupConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -984,8 +975,6 @@ impl ServerGroupPropertiesForUpdate { #[doc = "Represents a server in a server group."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerGroupServer { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, diff --git a/services/mgmt/postgresqlhsc/src/package_2022_11_08/models.rs b/services/mgmt/postgresqlhsc/src/package_2022_11_08/models.rs index d4403c1b76..c4d36d1aeb 100644 --- a/services/mgmt/postgresqlhsc/src/package_2022_11_08/models.rs +++ b/services/mgmt/postgresqlhsc/src/package_2022_11_08/models.rs @@ -247,8 +247,6 @@ impl ClusterPropertiesForUpdate { #[doc = "Represents a server in a cluster."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ClusterServer { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a server in cluster."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -315,8 +313,6 @@ impl ClusterServerProperties { #[doc = "Represents configuration details for coordinator and node."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Configuration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -473,17 +469,12 @@ impl ErrorResponse { #[doc = "Represents a cluster firewall rule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a cluster firewall rule."] pub properties: FirewallRuleProperties, } impl FirewallRule { pub fn new(properties: FirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A list of firewall rules."] @@ -1061,17 +1052,12 @@ impl Resource { #[doc = "Represents a cluster role."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Role { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a cluster role."] pub properties: RoleProperties, } impl Role { pub fn new(properties: RoleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "A list of roles."] @@ -1116,8 +1102,6 @@ impl RoleProperties { #[doc = "Represents a configuration."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ServerConfiguration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties of a configuration."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1346,8 +1330,6 @@ impl ServerRoleGroupConfiguration { #[doc = "A private endpoint connection."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SimplePrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The properties in private endpoint connection"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs b/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs index 2150626f90..0ca83ceed9 100644 --- a/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs +++ b/services/mgmt/powerplatform/src/package_2020_10_30_preview/models.rs @@ -531,8 +531,6 @@ impl PrivateEndpoint { #[doc = "A private endpoint connection"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct PrivateEndpointConnection { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the PrivateEndpointConnectProperties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/privatedns/src/package_2018_09/models.rs b/services/mgmt/privatedns/src/package_2018_09/models.rs index 44c9493df0..ffd2ec9125 100644 --- a/services/mgmt/privatedns/src/package_2018_09/models.rs +++ b/services/mgmt/privatedns/src/package_2018_09/models.rs @@ -251,8 +251,6 @@ impl PtrRecord { #[doc = "Describes a DNS record set (a collection of DNS records with the same name and type) in a Private DNS zone."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecordSet { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ID of the record set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, diff --git a/services/mgmt/privatedns/src/package_2020_01/models.rs b/services/mgmt/privatedns/src/package_2020_01/models.rs index 7743450e57..dbc1395b35 100644 --- a/services/mgmt/privatedns/src/package_2020_01/models.rs +++ b/services/mgmt/privatedns/src/package_2020_01/models.rs @@ -254,8 +254,6 @@ impl PtrRecord { #[doc = "Describes a DNS record set (a collection of DNS records with the same name and type) in a Private DNS zone."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecordSet { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ID of the record set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, diff --git a/services/mgmt/privatedns/src/package_2020_06/models.rs b/services/mgmt/privatedns/src/package_2020_06/models.rs index 7743450e57..dbc1395b35 100644 --- a/services/mgmt/privatedns/src/package_2020_06/models.rs +++ b/services/mgmt/privatedns/src/package_2020_06/models.rs @@ -254,8 +254,6 @@ impl PtrRecord { #[doc = "Describes a DNS record set (a collection of DNS records with the same name and type) in a Private DNS zone."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RecordSet { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The ID of the record set."] #[serde(default, skip_serializing_if = "Option::is_none")] pub id: Option, diff --git a/services/mgmt/providerhub/src/package_2020_11_20/models.rs b/services/mgmt/providerhub/src/package_2020_11_20/models.rs index 6b91001758..4c096d6c71 100644 --- a/services/mgmt/providerhub/src/package_2020_11_20/models.rs +++ b/services/mgmt/providerhub/src/package_2020_11_20/models.rs @@ -93,17 +93,12 @@ impl CheckinManifestParams { #[doc = "Rollout details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomRollout { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the rollout."] pub properties: serde_json::Value, } impl CustomRollout { pub fn new(properties: serde_json::Value) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -249,8 +244,6 @@ impl CustomRolloutStatus { #[doc = "Default rollout definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DefaultRollout { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the rollout."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1367,8 +1360,6 @@ impl ProviderHubMetadata { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProviderRegistration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -2301,8 +2292,6 @@ impl ResourceTypeExtensionOptions { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ResourceTypeRegistration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -2901,8 +2890,6 @@ pub mod sku_location_info { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SkuResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } diff --git a/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs b/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs index 8b13a07062..4c7eaec7c2 100644 --- a/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs +++ b/services/mgmt/providerhub/src/package_2021_05_01_preview/models.rs @@ -93,17 +93,12 @@ impl CheckinManifestParams { #[doc = "Rollout details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomRollout { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the rollout."] pub properties: serde_json::Value, } impl CustomRollout { pub fn new(properties: serde_json::Value) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -188,8 +183,6 @@ impl CustomRolloutStatus { #[doc = "Default rollout definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DefaultRollout { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the rollout."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1201,8 +1194,6 @@ impl ProviderHubMetadata { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProviderRegistration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -2185,8 +2176,6 @@ impl ResourceTypeExtensionOptions { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ResourceTypeRegistration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -2672,8 +2661,6 @@ pub mod sku_location_info { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SkuResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } diff --git a/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs b/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs index 2d7e1a5ca2..7cd3158f4b 100644 --- a/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs +++ b/services/mgmt/providerhub/src/package_2021_06_01_preview/models.rs @@ -93,8 +93,6 @@ impl CheckinManifestParams { #[doc = "Rollout details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomRollout { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the rollout."] pub properties: serde_json::Value, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -104,7 +102,6 @@ pub struct CustomRollout { impl CustomRollout { pub fn new(properties: serde_json::Value) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -192,8 +189,6 @@ impl CustomRolloutStatus { #[doc = "Default rollout definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DefaultRollout { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the rollout."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1341,8 +1336,6 @@ impl OperationsDisplayDefinition { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationsPutContent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -1372,8 +1365,6 @@ impl ProviderHubMetadata { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProviderRegistration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2497,8 +2488,6 @@ impl ResourceTypeExtensionOptions { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ResourceTypeRegistration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2989,8 +2978,6 @@ pub mod sku_location_info { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SkuResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "Metadata pertaining to creation and last modification of the resource."] diff --git a/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs b/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs index 335f84fc01..4145234ccf 100644 --- a/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs +++ b/services/mgmt/providerhub/src/package_2021_09_01_preview/models.rs @@ -93,8 +93,6 @@ impl CheckinManifestParams { #[doc = "Rollout details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CustomRollout { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the rollout."] pub properties: serde_json::Value, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -104,7 +102,6 @@ pub struct CustomRollout { impl CustomRollout { pub fn new(properties: serde_json::Value) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, } @@ -192,8 +189,6 @@ impl CustomRolloutStatus { #[doc = "Default rollout definition."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct DefaultRollout { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of the rollout."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1341,8 +1336,6 @@ impl OperationsDisplayDefinition { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OperationsPutContent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -1372,8 +1365,6 @@ impl ProviderHubMetadata { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ProviderRegistration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -2497,8 +2488,6 @@ impl ResourceTypeExtensionOptions { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ResourceTypeRegistration { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -3046,8 +3035,6 @@ pub mod sku_location_info { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SkuResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, #[doc = "Metadata pertaining to creation and last modification of the resource."] diff --git a/services/mgmt/quota/src/package_2021_03_15_preview/models.rs b/services/mgmt/quota/src/package_2021_03_15_preview/models.rs index 8cbdda082a..7bd46364e1 100644 --- a/services/mgmt/quota/src/package_2021_03_15_preview/models.rs +++ b/services/mgmt/quota/src/package_2021_03_15_preview/models.rs @@ -97,14 +97,6 @@ impl ExceptionResponse { Self::default() } } -#[doc = "LimitJson abstract class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct LimitJsonObject {} -impl LimitJsonObject { - pub fn new() -> Self { - Self {} - } -} #[doc = "The limit object type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "limitObjectType")] @@ -114,8 +106,6 @@ pub enum LimitJsonObjectUnion { #[doc = "The resource quota limit value."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LimitObject { - #[serde(flatten)] - pub limit_json_object: LimitJsonObject, #[doc = "The quota/limit value"] pub value: i32, #[doc = "The quota or usages limit types."] @@ -123,12 +113,8 @@ pub struct LimitObject { pub limit_type: Option, } impl LimitObject { - pub fn new(limit_json_object: LimitJsonObject, value: i32) -> Self { - Self { - limit_json_object, - value, - limit_type: None, - } + pub fn new(value: i32) -> Self { + Self { value, limit_type: None } } } #[doc = "The limit object type."] diff --git a/services/mgmt/quota/src/package_2023_02_01/models.rs b/services/mgmt/quota/src/package_2023_02_01/models.rs index e67a26cc43..607794da30 100644 --- a/services/mgmt/quota/src/package_2023_02_01/models.rs +++ b/services/mgmt/quota/src/package_2023_02_01/models.rs @@ -97,14 +97,6 @@ impl ExceptionResponse { Self::default() } } -#[doc = "LimitJson abstract class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct LimitJsonObject {} -impl LimitJsonObject { - pub fn new() -> Self { - Self {} - } -} #[doc = "The limit object type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "limitObjectType")] @@ -114,8 +106,6 @@ pub enum LimitJsonObjectUnion { #[doc = "The resource quota limit value."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LimitObject { - #[serde(flatten)] - pub limit_json_object: LimitJsonObject, #[doc = "The quota/limit value"] pub value: i32, #[doc = "The quota or usages limit types."] @@ -123,12 +113,8 @@ pub struct LimitObject { pub limit_type: Option, } impl LimitObject { - pub fn new(limit_json_object: LimitJsonObject, value: i32) -> Self { - Self { - limit_json_object, - value, - limit_type: None, - } + pub fn new(value: i32) -> Self { + Self { value, limit_type: None } } } #[doc = "The limit object type."] diff --git a/services/mgmt/recoveryservicesbackup/src/package_2023_01/models.rs b/services/mgmt/recoveryservicesbackup/src/package_2023_01/models.rs index 05dbdfcbfe..980febff0d 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2023_01/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2023_01/models.rs @@ -5,13 +5,10 @@ use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; #[doc = "Azure backup goal feature specific request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureBackupGoalFeatureSupportRequest { - #[serde(flatten)] - pub feature_support_request: FeatureSupportRequest, -} +pub struct AzureBackupGoalFeatureSupportRequest {} impl AzureBackupGoalFeatureSupportRequest { - pub fn new(feature_support_request: FeatureSupportRequest) -> Self { - Self { feature_support_request } + pub fn new() -> Self { + Self {} } } #[doc = "AzureBackupServer (DPMVenus) workload-specific protection container."] @@ -39,16 +36,13 @@ impl AzureBackupServerEngine { #[doc = "AzureFileShare workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] #[serde(rename = "recoveryPointExpiryTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_expiry_time_in_utc: Option, } impl AzureFileShareBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, recovery_point_expiry_time_in_utc: None, } } @@ -228,8 +222,6 @@ pub mod azure_file_share_protection_policy { #[doc = "Update snapshot Uri with the correct friendly Name of the source Azure file share."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareProvisionIlrRequest { - #[serde(flatten)] - pub ilr_request: IlrRequest, #[doc = "Recovery point ID."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -238,9 +230,8 @@ pub struct AzureFileShareProvisionIlrRequest { pub source_resource_id: Option, } impl AzureFileShareProvisionIlrRequest { - pub fn new(ilr_request: IlrRequest) -> Self { + pub fn new() -> Self { Self { - ilr_request, recovery_point_id: None, source_resource_id: None, } @@ -249,8 +240,6 @@ impl AzureFileShareProvisionIlrRequest { #[doc = "Azure File Share workload specific backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -268,9 +257,8 @@ pub struct AzureFileShareRecoveryPoint { pub recovery_point_properties: Option, } impl AzureFileShareRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_type: None, recovery_point_time: None, file_share_snapshot_uri: None, @@ -282,8 +270,6 @@ impl AzureFileShareRecoveryPoint { #[doc = "AzureFileShare Restore Request"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "Type of this recovery."] #[serde(rename = "recoveryType", default, skip_serializing_if = "Option::is_none")] pub recovery_type: Option, @@ -309,9 +295,8 @@ pub struct AzureFileShareRestoreRequest { pub target_details: Option, } impl AzureFileShareRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_type: None, source_resource_id: None, copy_options: None, @@ -1480,8 +1465,6 @@ impl AzureVmAppContainerProtectionContainer { #[doc = "AzureResource(IaaS VM) Specific feature support request"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureVmResourceFeatureSupportRequest { - #[serde(flatten)] - pub feature_support_request: FeatureSupportRequest, #[doc = "Size of the resource: VM size(A/D series etc) in case of IaasVM"] #[serde(rename = "vmSize", default, skip_serializing_if = "Option::is_none")] pub vm_size: Option, @@ -1490,9 +1473,8 @@ pub struct AzureVmResourceFeatureSupportRequest { pub vm_sku: Option, } impl AzureVmResourceFeatureSupportRequest { - pub fn new(feature_support_request: FeatureSupportRequest) -> Self { + pub fn new() -> Self { Self { - feature_support_request, vm_size: None, vm_sku: None, } @@ -2212,22 +2194,15 @@ impl AzureVmWorkloadSqlInstanceWorkloadItem { } #[doc = "Azure Recovery Services Vault specific protection intent item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureWorkloadAutoProtectionIntent { - #[serde(flatten)] - pub azure_recovery_service_vault_protection_intent: AzureRecoveryServiceVaultProtectionIntent, -} +pub struct AzureWorkloadAutoProtectionIntent {} impl AzureWorkloadAutoProtectionIntent { - pub fn new(azure_recovery_service_vault_protection_intent: AzureRecoveryServiceVaultProtectionIntent) -> Self { - Self { - azure_recovery_service_vault_protection_intent, - } + pub fn new() -> Self { + Self {} } } #[doc = "AzureWorkload workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Type of backup, viz. Full, Differential, Log or CopyOnlyFull"] #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, @@ -2239,9 +2214,8 @@ pub struct AzureWorkloadBackupRequest { pub recovery_point_expiry_time_in_utc: Option, } impl AzureWorkloadBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, backup_type: None, enable_compression: None, recovery_point_expiry_time_in_utc: None, @@ -2632,8 +2606,6 @@ impl AzureWorkloadPointInTimeRestoreRequest { #[doc = "Workload specific recovery point, specifically encapsulates full/diff recovery point"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "UTC time at which recovery point was created"] #[serde(rename = "recoveryPointTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_time_in_utc: Option, @@ -2656,9 +2628,8 @@ pub struct AzureWorkloadRecoveryPoint { pub recovery_point_properties: Option, } impl AzureWorkloadRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_time_in_utc: None, type_: None, recovery_point_tier_details: Vec::new(), @@ -2720,8 +2691,6 @@ pub mod azure_workload_recovery_point { #[doc = "AzureWorkload-specific restore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "Type of this recovery."] #[serde(rename = "recoveryType", default, skip_serializing_if = "Option::is_none")] pub recovery_type: Option, @@ -2742,9 +2711,8 @@ pub struct AzureWorkloadRestoreRequest { pub target_virtual_machine_id: Option, } impl AzureWorkloadRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_type: None, source_resource_id: None, property_bag: None, @@ -2855,18 +2823,13 @@ impl AzureWorkloadSapHanaPointInTimeRecoveryPoint { #[doc = "AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSapHanaPointInTimeRestoreRequest { - #[serde(flatten)] - pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "PointInTime value"] #[serde(rename = "pointInTime", default, with = "azure_core::date::rfc3339::option")] pub point_in_time: Option, } impl AzureWorkloadSapHanaPointInTimeRestoreRequest { - pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { - Self { - azure_workload_sap_hana_restore_request, - point_in_time: None, - } + pub fn new() -> Self { + Self { point_in_time: None } } } #[doc = "AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point."] @@ -2915,16 +2878,13 @@ impl AzureWorkloadSapHanaRestoreRequest { #[doc = "AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSapHanaRestoreWithRehydrateRequest { - #[serde(flatten)] - pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "RP Rehydration Info"] #[serde(rename = "recoveryPointRehydrationInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_rehydration_info: Option, } impl AzureWorkloadSapHanaRestoreWithRehydrateRequest { - pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { + pub fn new() -> Self { Self { - azure_workload_sap_hana_restore_request, recovery_point_rehydration_info: None, } } @@ -2932,18 +2892,13 @@ impl AzureWorkloadSapHanaRestoreWithRehydrateRequest { #[doc = "Azure Workload SQL Auto Protection intent item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSqlAutoProtectionIntent { - #[serde(flatten)] - pub azure_workload_auto_protection_intent: AzureWorkloadAutoProtectionIntent, #[doc = "Workload item type of the item for which intent is to be set"] #[serde(rename = "workloadItemType", default, skip_serializing_if = "Option::is_none")] pub workload_item_type: Option, } impl AzureWorkloadSqlAutoProtectionIntent { - pub fn new(azure_workload_auto_protection_intent: AzureWorkloadAutoProtectionIntent) -> Self { - Self { - azure_workload_auto_protection_intent, - workload_item_type: None, - } + pub fn new() -> Self { + Self { workload_item_type: None } } } pub mod azure_workload_sql_auto_protection_intent { @@ -4452,14 +4407,6 @@ impl BackupManagementUsageList { Self::default() } } -#[doc = "Base class for backup request. Workload-specific backup requests are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupRequest {} -impl BackupRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -6107,8 +6054,6 @@ impl ErrorDetail { #[doc = "This class is used to send blob details after exporting jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExportJobsOperationResultInfo { - #[serde(flatten)] - pub operation_result_info_base: OperationResultInfoBase, #[doc = "URL of the blob into which the serialized string of list of jobs is exported."] #[serde(rename = "blobUrl", default, skip_serializing_if = "Option::is_none")] pub blob_url: Option, @@ -6123,9 +6068,8 @@ pub struct ExportJobsOperationResultInfo { pub excel_file_blob_sas_key: Option, } impl ExportJobsOperationResultInfo { - pub fn new(operation_result_info_base: OperationResultInfoBase) -> Self { + pub fn new() -> Self { Self { - operation_result_info_base, blob_url: None, blob_sas_key: None, excel_file_blob_url: None, @@ -6147,14 +6091,6 @@ impl ExtendedProperties { Self::default() } } -#[doc = "Base class for feature request"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureSupportRequest {} -impl FeatureSupportRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "backup support feature type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "featureType")] @@ -6323,8 +6259,6 @@ impl GenericProtectionPolicy { #[doc = "Generic backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GenericRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Friendly name of the backup copy."] #[serde(rename = "friendlyName", default, skip_serializing_if = "Option::is_none")] pub friendly_name: Option, @@ -6342,9 +6276,8 @@ pub struct GenericRecoveryPoint { pub recovery_point_properties: Option, } impl GenericRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, friendly_name: None, recovery_point_type: None, recovery_point_time: None, @@ -6382,14 +6315,6 @@ impl HourlySchedule { Self::default() } } -#[doc = "Parameters to Provision ILR API."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct IlrRequest {} -impl IlrRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -6466,16 +6391,13 @@ impl IaaSvmProtectableItem { #[doc = "IaaS VM workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] #[serde(rename = "recoveryPointExpiryTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_expiry_time_in_utc: Option, } impl IaasVmBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, recovery_point_expiry_time_in_utc: None, } } @@ -6483,8 +6405,6 @@ impl IaasVmBackupRequest { #[doc = "Restore files/folders from a backup copy of IaaS VM."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmilrRegistrationRequest { - #[serde(flatten)] - pub ilr_request: IlrRequest, #[doc = "ID of the IaaS VM backup copy from where the files/folders have to be restored."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -6499,9 +6419,8 @@ pub struct IaasVmilrRegistrationRequest { pub renew_existing_registration: Option, } impl IaasVmilrRegistrationRequest { - pub fn new(ilr_request: IlrRequest) -> Self { + pub fn new() -> Self { Self { - ilr_request, recovery_point_id: None, virtual_machine_id: None, initiator_name: None, @@ -6512,8 +6431,6 @@ impl IaasVmilrRegistrationRequest { #[doc = "IaaS VM workload specific backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Type of the backup copy."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -6573,9 +6490,8 @@ pub struct IaasVmRecoveryPoint { pub recovery_point_properties: Option, } impl IaasVmRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_type: None, recovery_point_time: None, recovery_point_additional_info: None, @@ -6598,8 +6514,6 @@ impl IaasVmRecoveryPoint { #[doc = "IaaS VM workload-specific restore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "ID of the backup copy to be recovered."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -6671,9 +6585,8 @@ pub struct IaasVmRestoreRequest { pub identity_based_restore_details: Option, } impl IaasVmRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_point_id: None, recovery_type: None, source_resource_id: None, @@ -7320,16 +7233,13 @@ impl ListRecoveryPointsRecommendedForMoveRequest { #[doc = "Log policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LogSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the log schedule operation of this policy in minutes."] #[serde(rename = "scheduleFrequencyInMins", default, skip_serializing_if = "Option::is_none")] pub schedule_frequency_in_mins: Option, } impl LogSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_frequency_in_mins: None, } } @@ -7337,8 +7247,6 @@ impl LogSchedulePolicy { #[doc = "Long term retention policy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LongTermRetentionPolicy { - #[serde(flatten)] - pub retention_policy: RetentionPolicy, #[doc = "Daily retention schedule."] #[serde(rename = "dailySchedule", default, skip_serializing_if = "Option::is_none")] pub daily_schedule: Option, @@ -7353,9 +7261,8 @@ pub struct LongTermRetentionPolicy { pub yearly_schedule: Option, } impl LongTermRetentionPolicy { - pub fn new(retention_policy: RetentionPolicy) -> Self { + pub fn new() -> Self { Self { - retention_policy, daily_schedule: None, weekly_schedule: None, monthly_schedule: None, @@ -7365,13 +7272,10 @@ impl LongTermRetentionPolicy { } #[doc = "Long term policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct LongTermSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, -} +pub struct LongTermSchedulePolicy {} impl LongTermSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { - Self { schedule_policy } + pub fn new() -> Self { + Self {} } } #[doc = "MAB workload-specific Health Details."] @@ -8069,8 +7973,6 @@ pub mod new_error_response { #[doc = "Operation result info."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationResultInfo { - #[serde(flatten)] - pub operation_result_info_base: OperationResultInfoBase, #[doc = "List of jobs created by this operation."] #[serde( rename = "jobList", @@ -8081,19 +7983,8 @@ pub struct OperationResultInfo { pub job_list: Vec, } impl OperationResultInfo { - pub fn new(operation_result_info_base: OperationResultInfoBase) -> Self { - Self { - operation_result_info_base, - job_list: Vec::new(), - } - } -} -#[doc = "Base class for operation result info."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationResultInfoBase {} -impl OperationResultInfoBase { pub fn new() -> Self { - Self {} + Self { job_list: Vec::new() } } } #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] @@ -8208,14 +8099,6 @@ impl OperationStatusError { Self::default() } } -#[doc = "Base class for additional information of operation status."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationStatusExtendedInfo {} -impl OperationStatusExtendedInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -8229,25 +8112,18 @@ pub enum OperationStatusExtendedInfoUnion { #[doc = "Operation status job extended info."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusJobExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "ID of the job created for this protected item."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, } impl OperationStatusJobExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { - Self { - operation_status_extended_info, - job_id: None, - } + pub fn new() -> Self { + Self { job_id: None } } } #[doc = "Operation status extended info for list of jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusJobsExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "IDs of the jobs created for the protected item."] #[serde( rename = "jobIds", @@ -8261,9 +8137,8 @@ pub struct OperationStatusJobsExtendedInfo { pub failed_jobs_error: Option, } impl OperationStatusJobsExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { + pub fn new() -> Self { Self { - operation_status_extended_info, job_ids: Vec::new(), failed_jobs_error: None, } @@ -8272,33 +8147,25 @@ impl OperationStatusJobsExtendedInfo { #[doc = "Operation status extended info for ILR provision action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusProvisionIlrExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "Target details for file / folder restore."] #[serde(rename = "recoveryTarget", default, skip_serializing_if = "Option::is_none")] pub recovery_target: Option, } impl OperationStatusProvisionIlrExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { - Self { - operation_status_extended_info, - recovery_target: None, - } + pub fn new() -> Self { + Self { recovery_target: None } } } #[doc = "Operation status extended info for ValidateOperation action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusValidateOperationExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "Base class for validate operation response."] #[serde(rename = "validateOperationResponse", default, skip_serializing_if = "Option::is_none")] pub validate_operation_response: Option, } impl OperationStatusValidateOperationExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { + pub fn new() -> Self { Self { - operation_status_extended_info, validate_operation_response: None, } } @@ -8693,8 +8560,6 @@ pub mod prepare_data_move_request { #[doc = "Prepare DataMove Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PrepareDataMoveResponse { - #[serde(flatten)] - pub vault_storage_config_operation_result_response: VaultStorageConfigOperationResultResponse, #[doc = "Co-relationId for move operation"] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -8703,9 +8568,8 @@ pub struct PrepareDataMoveResponse { pub source_vault_properties: Option, } impl PrepareDataMoveResponse { - pub fn new(vault_storage_config_operation_result_response: VaultStorageConfigOperationResultResponse) -> Self { + pub fn new() -> Self { Self { - vault_storage_config_operation_result_response, correlation_id: None, source_vault_properties: None, } @@ -10163,14 +10027,6 @@ impl ProtectionPolicyResourceList { Self::default() } } -#[doc = "Base class for backup copies. Workload-specific backup copies are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPoint {} -impl RecoveryPoint { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -10631,14 +10487,6 @@ impl RestoreFileSpecs { Self::default() } } -#[doc = "Base class for restore request. Workload-specific restore requests are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RestoreRequest {} -impl RestoreRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -10723,14 +10571,6 @@ pub mod retention_duration { } } } -#[doc = "Base class for retention policy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RetentionPolicy {} -impl RetentionPolicy { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "retentionPolicyType")] @@ -10861,14 +10701,6 @@ pub mod sql_data_directory_mapping { } } } -#[doc = "Base class for backup schedule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SchedulePolicy {} -impl SchedulePolicy { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "schedulePolicyType")] @@ -10916,25 +10748,18 @@ impl Settings { #[doc = "Simple policy retention."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleRetentionPolicy { - #[serde(flatten)] - pub retention_policy: RetentionPolicy, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, } impl SimpleRetentionPolicy { - pub fn new(retention_policy: RetentionPolicy) -> Self { - Self { - retention_policy, - retention_duration: None, - } + pub fn new() -> Self { + Self { retention_duration: None } } } #[doc = "Simple policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the schedule operation of this policy."] #[serde(rename = "scheduleRunFrequency", default, skip_serializing_if = "Option::is_none")] pub schedule_run_frequency: Option, @@ -10961,9 +10786,8 @@ pub struct SimpleSchedulePolicy { pub schedule_weekly_frequency: Option, } impl SimpleSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_run_frequency: None, schedule_run_days: Vec::new(), schedule_run_times: Vec::new(), @@ -11019,8 +10843,6 @@ pub mod simple_schedule_policy { #[doc = "The V2 policy schedule for IaaS that supports hourly backups."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleSchedulePolicyV2 { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the schedule operation of this policy."] #[serde(rename = "scheduleRunFrequency", default, skip_serializing_if = "Option::is_none")] pub schedule_run_frequency: Option, @@ -11032,9 +10854,8 @@ pub struct SimpleSchedulePolicyV2 { pub weekly_schedule: Option, } impl SimpleSchedulePolicyV2 { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_run_frequency: None, hourly_schedule: None, daily_schedule: None, @@ -11489,14 +11310,6 @@ impl ValidateIaasVmRestoreOperationRequest { } } } -#[doc = "Base class for validate operation request."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ValidateOperationRequest {} -impl ValidateOperationRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -11534,18 +11347,13 @@ impl ValidateOperationsResponse { #[doc = "AzureRestoreValidation request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ValidateRestoreOperationRequest { - #[serde(flatten)] - pub validate_operation_request: ValidateOperationRequest, #[doc = "Base class for restore request. Workload-specific restore requests are derived from this class."] #[serde(rename = "restoreRequest", default, skip_serializing_if = "Option::is_none")] pub restore_request: Option, } impl ValidateRestoreOperationRequest { - pub fn new(validate_operation_request: ValidateOperationRequest) -> Self { - Self { - validate_operation_request, - restore_request: None, - } + pub fn new() -> Self { + Self { restore_request: None } } } #[doc = "Vault level Job"] @@ -11621,14 +11429,6 @@ impl VaultJobExtendedInfo { Self::default() } } -#[doc = "Operation result response for Vault Storage Config"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VaultStorageConfigOperationResultResponse {} -impl VaultStorageConfigOperationResultResponse { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] diff --git a/services/mgmt/recoveryservicesbackup/src/package_2023_02/models.rs b/services/mgmt/recoveryservicesbackup/src/package_2023_02/models.rs index 7a9e0fcc37..03c04dd7d5 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2023_02/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2023_02/models.rs @@ -5,13 +5,10 @@ use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; #[doc = "Azure backup goal feature specific request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureBackupGoalFeatureSupportRequest { - #[serde(flatten)] - pub feature_support_request: FeatureSupportRequest, -} +pub struct AzureBackupGoalFeatureSupportRequest {} impl AzureBackupGoalFeatureSupportRequest { - pub fn new(feature_support_request: FeatureSupportRequest) -> Self { - Self { feature_support_request } + pub fn new() -> Self { + Self {} } } #[doc = "AzureBackupServer (DPMVenus) workload-specific protection container."] @@ -39,16 +36,13 @@ impl AzureBackupServerEngine { #[doc = "AzureFileShare workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] #[serde(rename = "recoveryPointExpiryTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_expiry_time_in_utc: Option, } impl AzureFileShareBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, recovery_point_expiry_time_in_utc: None, } } @@ -228,8 +222,6 @@ pub mod azure_file_share_protection_policy { #[doc = "Update snapshot Uri with the correct friendly Name of the source Azure file share."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareProvisionIlrRequest { - #[serde(flatten)] - pub ilr_request: IlrRequest, #[doc = "Recovery point ID."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -238,9 +230,8 @@ pub struct AzureFileShareProvisionIlrRequest { pub source_resource_id: Option, } impl AzureFileShareProvisionIlrRequest { - pub fn new(ilr_request: IlrRequest) -> Self { + pub fn new() -> Self { Self { - ilr_request, recovery_point_id: None, source_resource_id: None, } @@ -249,8 +240,6 @@ impl AzureFileShareProvisionIlrRequest { #[doc = "Azure File Share workload specific backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -268,9 +257,8 @@ pub struct AzureFileShareRecoveryPoint { pub recovery_point_properties: Option, } impl AzureFileShareRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_type: None, recovery_point_time: None, file_share_snapshot_uri: None, @@ -282,8 +270,6 @@ impl AzureFileShareRecoveryPoint { #[doc = "AzureFileShare Restore Request"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "Type of this recovery."] #[serde(rename = "recoveryType", default, skip_serializing_if = "Option::is_none")] pub recovery_type: Option, @@ -309,9 +295,8 @@ pub struct AzureFileShareRestoreRequest { pub target_details: Option, } impl AzureFileShareRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_type: None, source_resource_id: None, copy_options: None, @@ -1480,8 +1465,6 @@ impl AzureVmAppContainerProtectionContainer { #[doc = "AzureResource(IaaS VM) Specific feature support request"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureVmResourceFeatureSupportRequest { - #[serde(flatten)] - pub feature_support_request: FeatureSupportRequest, #[doc = "Size of the resource: VM size(A/D series etc) in case of IaasVM"] #[serde(rename = "vmSize", default, skip_serializing_if = "Option::is_none")] pub vm_size: Option, @@ -1490,9 +1473,8 @@ pub struct AzureVmResourceFeatureSupportRequest { pub vm_sku: Option, } impl AzureVmResourceFeatureSupportRequest { - pub fn new(feature_support_request: FeatureSupportRequest) -> Self { + pub fn new() -> Self { Self { - feature_support_request, vm_size: None, vm_sku: None, } @@ -2212,22 +2194,15 @@ impl AzureVmWorkloadSqlInstanceWorkloadItem { } #[doc = "Azure Recovery Services Vault specific protection intent item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureWorkloadAutoProtectionIntent { - #[serde(flatten)] - pub azure_recovery_service_vault_protection_intent: AzureRecoveryServiceVaultProtectionIntent, -} +pub struct AzureWorkloadAutoProtectionIntent {} impl AzureWorkloadAutoProtectionIntent { - pub fn new(azure_recovery_service_vault_protection_intent: AzureRecoveryServiceVaultProtectionIntent) -> Self { - Self { - azure_recovery_service_vault_protection_intent, - } + pub fn new() -> Self { + Self {} } } #[doc = "AzureWorkload workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Type of backup, viz. Full, Differential, Log or CopyOnlyFull"] #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, @@ -2239,9 +2214,8 @@ pub struct AzureWorkloadBackupRequest { pub recovery_point_expiry_time_in_utc: Option, } impl AzureWorkloadBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, backup_type: None, enable_compression: None, recovery_point_expiry_time_in_utc: None, @@ -2632,8 +2606,6 @@ impl AzureWorkloadPointInTimeRestoreRequest { #[doc = "Workload specific recovery point, specifically encapsulates full/diff recovery point"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "UTC time at which recovery point was created"] #[serde(rename = "recoveryPointTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_time_in_utc: Option, @@ -2656,9 +2628,8 @@ pub struct AzureWorkloadRecoveryPoint { pub recovery_point_properties: Option, } impl AzureWorkloadRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_time_in_utc: None, type_: None, recovery_point_tier_details: Vec::new(), @@ -2720,8 +2691,6 @@ pub mod azure_workload_recovery_point { #[doc = "AzureWorkload-specific restore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "Type of this recovery."] #[serde(rename = "recoveryType", default, skip_serializing_if = "Option::is_none")] pub recovery_type: Option, @@ -2742,9 +2711,8 @@ pub struct AzureWorkloadRestoreRequest { pub target_virtual_machine_id: Option, } impl AzureWorkloadRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_type: None, source_resource_id: None, property_bag: None, @@ -2855,18 +2823,13 @@ impl AzureWorkloadSapHanaPointInTimeRecoveryPoint { #[doc = "AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSapHanaPointInTimeRestoreRequest { - #[serde(flatten)] - pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "PointInTime value"] #[serde(rename = "pointInTime", default, with = "azure_core::date::rfc3339::option")] pub point_in_time: Option, } impl AzureWorkloadSapHanaPointInTimeRestoreRequest { - pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { - Self { - azure_workload_sap_hana_restore_request, - point_in_time: None, - } + pub fn new() -> Self { + Self { point_in_time: None } } } #[doc = "AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point."] @@ -2915,16 +2878,13 @@ impl AzureWorkloadSapHanaRestoreRequest { #[doc = "AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSapHanaRestoreWithRehydrateRequest { - #[serde(flatten)] - pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "RP Rehydration Info"] #[serde(rename = "recoveryPointRehydrationInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_rehydration_info: Option, } impl AzureWorkloadSapHanaRestoreWithRehydrateRequest { - pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { + pub fn new() -> Self { Self { - azure_workload_sap_hana_restore_request, recovery_point_rehydration_info: None, } } @@ -2932,18 +2892,13 @@ impl AzureWorkloadSapHanaRestoreWithRehydrateRequest { #[doc = "Azure Workload SQL Auto Protection intent item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSqlAutoProtectionIntent { - #[serde(flatten)] - pub azure_workload_auto_protection_intent: AzureWorkloadAutoProtectionIntent, #[doc = "Workload item type of the item for which intent is to be set"] #[serde(rename = "workloadItemType", default, skip_serializing_if = "Option::is_none")] pub workload_item_type: Option, } impl AzureWorkloadSqlAutoProtectionIntent { - pub fn new(azure_workload_auto_protection_intent: AzureWorkloadAutoProtectionIntent) -> Self { - Self { - azure_workload_auto_protection_intent, - workload_item_type: None, - } + pub fn new() -> Self { + Self { workload_item_type: None } } } pub mod azure_workload_sql_auto_protection_intent { @@ -4455,14 +4410,6 @@ impl BackupManagementUsageList { Self::default() } } -#[doc = "Base class for backup request. Workload-specific backup requests are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupRequest {} -impl BackupRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -6116,8 +6063,6 @@ impl ErrorDetail { #[doc = "This class is used to send blob details after exporting jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExportJobsOperationResultInfo { - #[serde(flatten)] - pub operation_result_info_base: OperationResultInfoBase, #[doc = "URL of the blob into which the serialized string of list of jobs is exported."] #[serde(rename = "blobUrl", default, skip_serializing_if = "Option::is_none")] pub blob_url: Option, @@ -6132,9 +6077,8 @@ pub struct ExportJobsOperationResultInfo { pub excel_file_blob_sas_key: Option, } impl ExportJobsOperationResultInfo { - pub fn new(operation_result_info_base: OperationResultInfoBase) -> Self { + pub fn new() -> Self { Self { - operation_result_info_base, blob_url: None, blob_sas_key: None, excel_file_blob_url: None, @@ -6171,14 +6115,6 @@ impl ExtendedProperties { Self::default() } } -#[doc = "Base class for feature request"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureSupportRequest {} -impl FeatureSupportRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "backup support feature type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "featureType")] @@ -6347,8 +6283,6 @@ impl GenericProtectionPolicy { #[doc = "Generic backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GenericRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Friendly name of the backup copy."] #[serde(rename = "friendlyName", default, skip_serializing_if = "Option::is_none")] pub friendly_name: Option, @@ -6366,9 +6300,8 @@ pub struct GenericRecoveryPoint { pub recovery_point_properties: Option, } impl GenericRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, friendly_name: None, recovery_point_type: None, recovery_point_time: None, @@ -6406,14 +6339,6 @@ impl HourlySchedule { Self::default() } } -#[doc = "Parameters to Provision ILR API."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct IlrRequest {} -impl IlrRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -6490,16 +6415,13 @@ impl IaaSvmProtectableItem { #[doc = "IaaS VM workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] #[serde(rename = "recoveryPointExpiryTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_expiry_time_in_utc: Option, } impl IaasVmBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, recovery_point_expiry_time_in_utc: None, } } @@ -6507,8 +6429,6 @@ impl IaasVmBackupRequest { #[doc = "Restore files/folders from a backup copy of IaaS VM."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmilrRegistrationRequest { - #[serde(flatten)] - pub ilr_request: IlrRequest, #[doc = "ID of the IaaS VM backup copy from where the files/folders have to be restored."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -6523,9 +6443,8 @@ pub struct IaasVmilrRegistrationRequest { pub renew_existing_registration: Option, } impl IaasVmilrRegistrationRequest { - pub fn new(ilr_request: IlrRequest) -> Self { + pub fn new() -> Self { Self { - ilr_request, recovery_point_id: None, virtual_machine_id: None, initiator_name: None, @@ -6536,8 +6455,6 @@ impl IaasVmilrRegistrationRequest { #[doc = "IaaS VM workload specific backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Type of the backup copy."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -6603,9 +6520,8 @@ pub struct IaasVmRecoveryPoint { pub is_private_access_enabled_on_any_disk: Option, } impl IaasVmRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_type: None, recovery_point_time: None, recovery_point_additional_info: None, @@ -6630,8 +6546,6 @@ impl IaasVmRecoveryPoint { #[doc = "IaaS VM workload-specific restore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "ID of the backup copy to be recovered."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -6712,9 +6626,8 @@ pub struct IaasVmRestoreRequest { pub target_disk_network_access_settings: Option, } impl IaasVmRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_point_id: None, recovery_type: None, source_resource_id: None, @@ -7367,16 +7280,13 @@ impl ListRecoveryPointsRecommendedForMoveRequest { #[doc = "Log policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LogSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the log schedule operation of this policy in minutes."] #[serde(rename = "scheduleFrequencyInMins", default, skip_serializing_if = "Option::is_none")] pub schedule_frequency_in_mins: Option, } impl LogSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_frequency_in_mins: None, } } @@ -7384,8 +7294,6 @@ impl LogSchedulePolicy { #[doc = "Long term retention policy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LongTermRetentionPolicy { - #[serde(flatten)] - pub retention_policy: RetentionPolicy, #[doc = "Daily retention schedule."] #[serde(rename = "dailySchedule", default, skip_serializing_if = "Option::is_none")] pub daily_schedule: Option, @@ -7400,9 +7308,8 @@ pub struct LongTermRetentionPolicy { pub yearly_schedule: Option, } impl LongTermRetentionPolicy { - pub fn new(retention_policy: RetentionPolicy) -> Self { + pub fn new() -> Self { Self { - retention_policy, daily_schedule: None, weekly_schedule: None, monthly_schedule: None, @@ -7412,13 +7319,10 @@ impl LongTermRetentionPolicy { } #[doc = "Long term policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct LongTermSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, -} +pub struct LongTermSchedulePolicy {} impl LongTermSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { - Self { schedule_policy } + pub fn new() -> Self { + Self {} } } #[doc = "MAB workload-specific Health Details."] @@ -8116,8 +8020,6 @@ pub mod new_error_response { #[doc = "Operation result info."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationResultInfo { - #[serde(flatten)] - pub operation_result_info_base: OperationResultInfoBase, #[doc = "List of jobs created by this operation."] #[serde( rename = "jobList", @@ -8128,19 +8030,8 @@ pub struct OperationResultInfo { pub job_list: Vec, } impl OperationResultInfo { - pub fn new(operation_result_info_base: OperationResultInfoBase) -> Self { - Self { - operation_result_info_base, - job_list: Vec::new(), - } - } -} -#[doc = "Base class for operation result info."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationResultInfoBase {} -impl OperationResultInfoBase { pub fn new() -> Self { - Self {} + Self { job_list: Vec::new() } } } #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] @@ -8255,14 +8146,6 @@ impl OperationStatusError { Self::default() } } -#[doc = "Base class for additional information of operation status."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationStatusExtendedInfo {} -impl OperationStatusExtendedInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -8276,25 +8159,18 @@ pub enum OperationStatusExtendedInfoUnion { #[doc = "Operation status job extended info."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusJobExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "ID of the job created for this protected item."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, } impl OperationStatusJobExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { - Self { - operation_status_extended_info, - job_id: None, - } + pub fn new() -> Self { + Self { job_id: None } } } #[doc = "Operation status extended info for list of jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusJobsExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "IDs of the jobs created for the protected item."] #[serde( rename = "jobIds", @@ -8308,9 +8184,8 @@ pub struct OperationStatusJobsExtendedInfo { pub failed_jobs_error: Option, } impl OperationStatusJobsExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { + pub fn new() -> Self { Self { - operation_status_extended_info, job_ids: Vec::new(), failed_jobs_error: None, } @@ -8319,33 +8194,25 @@ impl OperationStatusJobsExtendedInfo { #[doc = "Operation status extended info for ILR provision action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusProvisionIlrExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "Target details for file / folder restore."] #[serde(rename = "recoveryTarget", default, skip_serializing_if = "Option::is_none")] pub recovery_target: Option, } impl OperationStatusProvisionIlrExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { - Self { - operation_status_extended_info, - recovery_target: None, - } + pub fn new() -> Self { + Self { recovery_target: None } } } #[doc = "Operation status extended info for ValidateOperation action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusValidateOperationExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "Base class for validate operation response."] #[serde(rename = "validateOperationResponse", default, skip_serializing_if = "Option::is_none")] pub validate_operation_response: Option, } impl OperationStatusValidateOperationExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { + pub fn new() -> Self { Self { - operation_status_extended_info, validate_operation_response: None, } } @@ -8740,8 +8607,6 @@ pub mod prepare_data_move_request { #[doc = "Prepare DataMove Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PrepareDataMoveResponse { - #[serde(flatten)] - pub vault_storage_config_operation_result_response: VaultStorageConfigOperationResultResponse, #[doc = "Co-relationId for move operation"] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -8750,9 +8615,8 @@ pub struct PrepareDataMoveResponse { pub source_vault_properties: Option, } impl PrepareDataMoveResponse { - pub fn new(vault_storage_config_operation_result_response: VaultStorageConfigOperationResultResponse) -> Self { + pub fn new() -> Self { Self { - vault_storage_config_operation_result_response, correlation_id: None, source_vault_properties: None, } @@ -10210,14 +10074,6 @@ impl ProtectionPolicyResourceList { Self::default() } } -#[doc = "Base class for backup copies. Workload-specific backup copies are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPoint {} -impl RecoveryPoint { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -10681,14 +10537,6 @@ impl RestoreFileSpecs { Self::default() } } -#[doc = "Base class for restore request. Workload-specific restore requests are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RestoreRequest {} -impl RestoreRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -10773,14 +10621,6 @@ pub mod retention_duration { } } } -#[doc = "Base class for retention policy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RetentionPolicy {} -impl RetentionPolicy { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "retentionPolicyType")] @@ -10911,14 +10751,6 @@ pub mod sql_data_directory_mapping { } } } -#[doc = "Base class for backup schedule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SchedulePolicy {} -impl SchedulePolicy { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "schedulePolicyType")] @@ -10978,25 +10810,18 @@ impl Settings { #[doc = "Simple policy retention."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleRetentionPolicy { - #[serde(flatten)] - pub retention_policy: RetentionPolicy, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, } impl SimpleRetentionPolicy { - pub fn new(retention_policy: RetentionPolicy) -> Self { - Self { - retention_policy, - retention_duration: None, - } + pub fn new() -> Self { + Self { retention_duration: None } } } #[doc = "Simple policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the schedule operation of this policy."] #[serde(rename = "scheduleRunFrequency", default, skip_serializing_if = "Option::is_none")] pub schedule_run_frequency: Option, @@ -11023,9 +10848,8 @@ pub struct SimpleSchedulePolicy { pub schedule_weekly_frequency: Option, } impl SimpleSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_run_frequency: None, schedule_run_days: Vec::new(), schedule_run_times: Vec::new(), @@ -11081,8 +10905,6 @@ pub mod simple_schedule_policy { #[doc = "The V2 policy schedule for IaaS that supports hourly backups."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleSchedulePolicyV2 { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the schedule operation of this policy."] #[serde(rename = "scheduleRunFrequency", default, skip_serializing_if = "Option::is_none")] pub schedule_run_frequency: Option, @@ -11094,9 +10916,8 @@ pub struct SimpleSchedulePolicyV2 { pub weekly_schedule: Option, } impl SimpleSchedulePolicyV2 { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_run_frequency: None, hourly_schedule: None, daily_schedule: None, @@ -11576,14 +11397,6 @@ impl ValidateIaasVmRestoreOperationRequest { } } } -#[doc = "Base class for validate operation request."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ValidateOperationRequest {} -impl ValidateOperationRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -11621,18 +11434,13 @@ impl ValidateOperationsResponse { #[doc = "AzureRestoreValidation request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ValidateRestoreOperationRequest { - #[serde(flatten)] - pub validate_operation_request: ValidateOperationRequest, #[doc = "Base class for restore request. Workload-specific restore requests are derived from this class."] #[serde(rename = "restoreRequest", default, skip_serializing_if = "Option::is_none")] pub restore_request: Option, } impl ValidateRestoreOperationRequest { - pub fn new(validate_operation_request: ValidateOperationRequest) -> Self { - Self { - validate_operation_request, - restore_request: None, - } + pub fn new() -> Self { + Self { restore_request: None } } } #[doc = "Vault level Job"] @@ -11708,14 +11516,6 @@ impl VaultJobExtendedInfo { Self::default() } } -#[doc = "Operation result response for Vault Storage Config"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VaultStorageConfigOperationResultResponse {} -impl VaultStorageConfigOperationResultResponse { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] diff --git a/services/mgmt/recoveryservicesbackup/src/package_2023_04/models.rs b/services/mgmt/recoveryservicesbackup/src/package_2023_04/models.rs index cd680629a1..ec3440ed9c 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_2023_04/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_2023_04/models.rs @@ -5,13 +5,10 @@ use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; #[doc = "Azure backup goal feature specific request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureBackupGoalFeatureSupportRequest { - #[serde(flatten)] - pub feature_support_request: FeatureSupportRequest, -} +pub struct AzureBackupGoalFeatureSupportRequest {} impl AzureBackupGoalFeatureSupportRequest { - pub fn new(feature_support_request: FeatureSupportRequest) -> Self { - Self { feature_support_request } + pub fn new() -> Self { + Self {} } } #[doc = "AzureBackupServer (DPMVenus) workload-specific protection container."] @@ -39,16 +36,13 @@ impl AzureBackupServerEngine { #[doc = "AzureFileShare workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] #[serde(rename = "recoveryPointExpiryTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_expiry_time_in_utc: Option, } impl AzureFileShareBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, recovery_point_expiry_time_in_utc: None, } } @@ -228,8 +222,6 @@ pub mod azure_file_share_protection_policy { #[doc = "Update snapshot Uri with the correct friendly Name of the source Azure file share."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareProvisionIlrRequest { - #[serde(flatten)] - pub ilr_request: IlrRequest, #[doc = "Recovery point ID."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -238,9 +230,8 @@ pub struct AzureFileShareProvisionIlrRequest { pub source_resource_id: Option, } impl AzureFileShareProvisionIlrRequest { - pub fn new(ilr_request: IlrRequest) -> Self { + pub fn new() -> Self { Self { - ilr_request, recovery_point_id: None, source_resource_id: None, } @@ -249,8 +240,6 @@ impl AzureFileShareProvisionIlrRequest { #[doc = "Azure File Share workload specific backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -268,9 +257,8 @@ pub struct AzureFileShareRecoveryPoint { pub recovery_point_properties: Option, } impl AzureFileShareRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_type: None, recovery_point_time: None, file_share_snapshot_uri: None, @@ -282,8 +270,6 @@ impl AzureFileShareRecoveryPoint { #[doc = "AzureFileShare Restore Request"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "Type of this recovery."] #[serde(rename = "recoveryType", default, skip_serializing_if = "Option::is_none")] pub recovery_type: Option, @@ -309,9 +295,8 @@ pub struct AzureFileShareRestoreRequest { pub target_details: Option, } impl AzureFileShareRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_type: None, source_resource_id: None, copy_options: None, @@ -1480,8 +1465,6 @@ impl AzureVmAppContainerProtectionContainer { #[doc = "AzureResource(IaaS VM) Specific feature support request"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureVmResourceFeatureSupportRequest { - #[serde(flatten)] - pub feature_support_request: FeatureSupportRequest, #[doc = "Size of the resource: VM size(A/D series etc) in case of IaasVM"] #[serde(rename = "vmSize", default, skip_serializing_if = "Option::is_none")] pub vm_size: Option, @@ -1490,9 +1473,8 @@ pub struct AzureVmResourceFeatureSupportRequest { pub vm_sku: Option, } impl AzureVmResourceFeatureSupportRequest { - pub fn new(feature_support_request: FeatureSupportRequest) -> Self { + pub fn new() -> Self { Self { - feature_support_request, vm_size: None, vm_sku: None, } @@ -2234,22 +2216,15 @@ impl AzureVmWorkloadSqlInstanceWorkloadItem { } #[doc = "Azure Recovery Services Vault specific protection intent item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureWorkloadAutoProtectionIntent { - #[serde(flatten)] - pub azure_recovery_service_vault_protection_intent: AzureRecoveryServiceVaultProtectionIntent, -} +pub struct AzureWorkloadAutoProtectionIntent {} impl AzureWorkloadAutoProtectionIntent { - pub fn new(azure_recovery_service_vault_protection_intent: AzureRecoveryServiceVaultProtectionIntent) -> Self { - Self { - azure_recovery_service_vault_protection_intent, - } + pub fn new() -> Self { + Self {} } } #[doc = "AzureWorkload workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Type of backup, viz. Full, Differential, Log or CopyOnlyFull"] #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, @@ -2261,9 +2236,8 @@ pub struct AzureWorkloadBackupRequest { pub recovery_point_expiry_time_in_utc: Option, } impl AzureWorkloadBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, backup_type: None, enable_compression: None, recovery_point_expiry_time_in_utc: None, @@ -2654,8 +2628,6 @@ impl AzureWorkloadPointInTimeRestoreRequest { #[doc = "Workload specific recovery point, specifically encapsulates full/diff recovery point"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "UTC time at which recovery point was created"] #[serde(rename = "recoveryPointTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_time_in_utc: Option, @@ -2678,9 +2650,8 @@ pub struct AzureWorkloadRecoveryPoint { pub recovery_point_properties: Option, } impl AzureWorkloadRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_time_in_utc: None, type_: None, recovery_point_tier_details: Vec::new(), @@ -2742,8 +2713,6 @@ pub mod azure_workload_recovery_point { #[doc = "AzureWorkload-specific restore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "Type of this recovery."] #[serde(rename = "recoveryType", default, skip_serializing_if = "Option::is_none")] pub recovery_type: Option, @@ -2764,9 +2733,8 @@ pub struct AzureWorkloadRestoreRequest { pub target_virtual_machine_id: Option, } impl AzureWorkloadRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_type: None, source_resource_id: None, property_bag: None, @@ -2877,18 +2845,13 @@ impl AzureWorkloadSapHanaPointInTimeRecoveryPoint { #[doc = "AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSapHanaPointInTimeRestoreRequest { - #[serde(flatten)] - pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "PointInTime value"] #[serde(rename = "pointInTime", default, with = "azure_core::date::rfc3339::option")] pub point_in_time: Option, } impl AzureWorkloadSapHanaPointInTimeRestoreRequest { - pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { - Self { - azure_workload_sap_hana_restore_request, - point_in_time: None, - } + pub fn new() -> Self { + Self { point_in_time: None } } } #[doc = "AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point."] @@ -2937,16 +2900,13 @@ impl AzureWorkloadSapHanaRestoreRequest { #[doc = "AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSapHanaRestoreWithRehydrateRequest { - #[serde(flatten)] - pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "RP Rehydration Info"] #[serde(rename = "recoveryPointRehydrationInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_rehydration_info: Option, } impl AzureWorkloadSapHanaRestoreWithRehydrateRequest { - pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { + pub fn new() -> Self { Self { - azure_workload_sap_hana_restore_request, recovery_point_rehydration_info: None, } } @@ -2954,18 +2914,13 @@ impl AzureWorkloadSapHanaRestoreWithRehydrateRequest { #[doc = "Azure Workload SQL Auto Protection intent item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSqlAutoProtectionIntent { - #[serde(flatten)] - pub azure_workload_auto_protection_intent: AzureWorkloadAutoProtectionIntent, #[doc = "Workload item type of the item for which intent is to be set"] #[serde(rename = "workloadItemType", default, skip_serializing_if = "Option::is_none")] pub workload_item_type: Option, } impl AzureWorkloadSqlAutoProtectionIntent { - pub fn new(azure_workload_auto_protection_intent: AzureWorkloadAutoProtectionIntent) -> Self { - Self { - azure_workload_auto_protection_intent, - workload_item_type: None, - } + pub fn new() -> Self { + Self { workload_item_type: None } } } pub mod azure_workload_sql_auto_protection_intent { @@ -4477,14 +4432,6 @@ impl BackupManagementUsageList { Self::default() } } -#[doc = "Base class for backup request. Workload-specific backup requests are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupRequest {} -impl BackupRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -6184,8 +6131,6 @@ impl ErrorDetail { #[doc = "This class is used to send blob details after exporting jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExportJobsOperationResultInfo { - #[serde(flatten)] - pub operation_result_info_base: OperationResultInfoBase, #[doc = "URL of the blob into which the serialized string of list of jobs is exported."] #[serde(rename = "blobUrl", default, skip_serializing_if = "Option::is_none")] pub blob_url: Option, @@ -6200,9 +6145,8 @@ pub struct ExportJobsOperationResultInfo { pub excel_file_blob_sas_key: Option, } impl ExportJobsOperationResultInfo { - pub fn new(operation_result_info_base: OperationResultInfoBase) -> Self { + pub fn new() -> Self { Self { - operation_result_info_base, blob_url: None, blob_sas_key: None, excel_file_blob_url: None, @@ -6239,14 +6183,6 @@ impl ExtendedProperties { Self::default() } } -#[doc = "Base class for feature request"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureSupportRequest {} -impl FeatureSupportRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "backup support feature type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "featureType")] @@ -6415,8 +6351,6 @@ impl GenericProtectionPolicy { #[doc = "Generic backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GenericRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Friendly name of the backup copy."] #[serde(rename = "friendlyName", default, skip_serializing_if = "Option::is_none")] pub friendly_name: Option, @@ -6434,9 +6368,8 @@ pub struct GenericRecoveryPoint { pub recovery_point_properties: Option, } impl GenericRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, friendly_name: None, recovery_point_type: None, recovery_point_time: None, @@ -6474,14 +6407,6 @@ impl HourlySchedule { Self::default() } } -#[doc = "Parameters to Provision ILR API."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct IlrRequest {} -impl IlrRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -6558,16 +6483,13 @@ impl IaaSvmProtectableItem { #[doc = "IaaS VM workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] #[serde(rename = "recoveryPointExpiryTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_expiry_time_in_utc: Option, } impl IaasVmBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, recovery_point_expiry_time_in_utc: None, } } @@ -6575,8 +6497,6 @@ impl IaasVmBackupRequest { #[doc = "Restore files/folders from a backup copy of IaaS VM."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmilrRegistrationRequest { - #[serde(flatten)] - pub ilr_request: IlrRequest, #[doc = "ID of the IaaS VM backup copy from where the files/folders have to be restored."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -6591,9 +6511,8 @@ pub struct IaasVmilrRegistrationRequest { pub renew_existing_registration: Option, } impl IaasVmilrRegistrationRequest { - pub fn new(ilr_request: IlrRequest) -> Self { + pub fn new() -> Self { Self { - ilr_request, recovery_point_id: None, virtual_machine_id: None, initiator_name: None, @@ -6604,8 +6523,6 @@ impl IaasVmilrRegistrationRequest { #[doc = "IaaS VM workload specific backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Type of the backup copy."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -6674,9 +6591,8 @@ pub struct IaasVmRecoveryPoint { pub extended_location: Option, } impl IaasVmRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_type: None, recovery_point_time: None, recovery_point_additional_info: None, @@ -6702,8 +6618,6 @@ impl IaasVmRecoveryPoint { #[doc = "IaaS VM workload-specific restore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "ID of the backup copy to be recovered."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -6784,9 +6698,8 @@ pub struct IaasVmRestoreRequest { pub target_disk_network_access_settings: Option, } impl IaasVmRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_point_id: None, recovery_type: None, source_resource_id: None, @@ -7439,16 +7352,13 @@ impl ListRecoveryPointsRecommendedForMoveRequest { #[doc = "Log policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LogSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the log schedule operation of this policy in minutes."] #[serde(rename = "scheduleFrequencyInMins", default, skip_serializing_if = "Option::is_none")] pub schedule_frequency_in_mins: Option, } impl LogSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_frequency_in_mins: None, } } @@ -7456,8 +7366,6 @@ impl LogSchedulePolicy { #[doc = "Long term retention policy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LongTermRetentionPolicy { - #[serde(flatten)] - pub retention_policy: RetentionPolicy, #[doc = "Daily retention schedule."] #[serde(rename = "dailySchedule", default, skip_serializing_if = "Option::is_none")] pub daily_schedule: Option, @@ -7472,9 +7380,8 @@ pub struct LongTermRetentionPolicy { pub yearly_schedule: Option, } impl LongTermRetentionPolicy { - pub fn new(retention_policy: RetentionPolicy) -> Self { + pub fn new() -> Self { Self { - retention_policy, daily_schedule: None, weekly_schedule: None, monthly_schedule: None, @@ -7484,13 +7391,10 @@ impl LongTermRetentionPolicy { } #[doc = "Long term policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct LongTermSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, -} +pub struct LongTermSchedulePolicy {} impl LongTermSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { - Self { schedule_policy } + pub fn new() -> Self { + Self {} } } #[doc = "MAB workload-specific Health Details."] @@ -8188,8 +8092,6 @@ pub mod new_error_response { #[doc = "Operation result info."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationResultInfo { - #[serde(flatten)] - pub operation_result_info_base: OperationResultInfoBase, #[doc = "List of jobs created by this operation."] #[serde( rename = "jobList", @@ -8200,19 +8102,8 @@ pub struct OperationResultInfo { pub job_list: Vec, } impl OperationResultInfo { - pub fn new(operation_result_info_base: OperationResultInfoBase) -> Self { - Self { - operation_result_info_base, - job_list: Vec::new(), - } - } -} -#[doc = "Base class for operation result info."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationResultInfoBase {} -impl OperationResultInfoBase { pub fn new() -> Self { - Self {} + Self { job_list: Vec::new() } } } #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] @@ -8327,14 +8218,6 @@ impl OperationStatusError { Self::default() } } -#[doc = "Base class for additional information of operation status."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationStatusExtendedInfo {} -impl OperationStatusExtendedInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -8348,25 +8231,18 @@ pub enum OperationStatusExtendedInfoUnion { #[doc = "Operation status job extended info."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusJobExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "ID of the job created for this protected item."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, } impl OperationStatusJobExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { - Self { - operation_status_extended_info, - job_id: None, - } + pub fn new() -> Self { + Self { job_id: None } } } #[doc = "Operation status extended info for list of jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusJobsExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "IDs of the jobs created for the protected item."] #[serde( rename = "jobIds", @@ -8380,9 +8256,8 @@ pub struct OperationStatusJobsExtendedInfo { pub failed_jobs_error: Option, } impl OperationStatusJobsExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { + pub fn new() -> Self { Self { - operation_status_extended_info, job_ids: Vec::new(), failed_jobs_error: None, } @@ -8391,33 +8266,25 @@ impl OperationStatusJobsExtendedInfo { #[doc = "Operation status extended info for ILR provision action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusProvisionIlrExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "Target details for file / folder restore."] #[serde(rename = "recoveryTarget", default, skip_serializing_if = "Option::is_none")] pub recovery_target: Option, } impl OperationStatusProvisionIlrExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { - Self { - operation_status_extended_info, - recovery_target: None, - } + pub fn new() -> Self { + Self { recovery_target: None } } } #[doc = "Operation status extended info for ValidateOperation action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusValidateOperationExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "Base class for validate operation response."] #[serde(rename = "validateOperationResponse", default, skip_serializing_if = "Option::is_none")] pub validate_operation_response: Option, } impl OperationStatusValidateOperationExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { + pub fn new() -> Self { Self { - operation_status_extended_info, validate_operation_response: None, } } @@ -8812,8 +8679,6 @@ pub mod prepare_data_move_request { #[doc = "Prepare DataMove Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PrepareDataMoveResponse { - #[serde(flatten)] - pub vault_storage_config_operation_result_response: VaultStorageConfigOperationResultResponse, #[doc = "Co-relationId for move operation"] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -8822,9 +8687,8 @@ pub struct PrepareDataMoveResponse { pub source_vault_properties: Option, } impl PrepareDataMoveResponse { - pub fn new(vault_storage_config_operation_result_response: VaultStorageConfigOperationResultResponse) -> Self { + pub fn new() -> Self { Self { - vault_storage_config_operation_result_response, correlation_id: None, source_vault_properties: None, } @@ -10282,14 +10146,6 @@ impl ProtectionPolicyResourceList { Self::default() } } -#[doc = "Base class for backup copies. Workload-specific backup copies are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPoint {} -impl RecoveryPoint { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -10753,14 +10609,6 @@ impl RestoreFileSpecs { Self::default() } } -#[doc = "Base class for restore request. Workload-specific restore requests are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RestoreRequest {} -impl RestoreRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -10845,14 +10693,6 @@ pub mod retention_duration { } } } -#[doc = "Base class for retention policy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RetentionPolicy {} -impl RetentionPolicy { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "retentionPolicyType")] @@ -10983,14 +10823,6 @@ pub mod sql_data_directory_mapping { } } } -#[doc = "Base class for backup schedule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SchedulePolicy {} -impl SchedulePolicy { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "schedulePolicyType")] @@ -11050,25 +10882,18 @@ impl Settings { #[doc = "Simple policy retention."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleRetentionPolicy { - #[serde(flatten)] - pub retention_policy: RetentionPolicy, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, } impl SimpleRetentionPolicy { - pub fn new(retention_policy: RetentionPolicy) -> Self { - Self { - retention_policy, - retention_duration: None, - } + pub fn new() -> Self { + Self { retention_duration: None } } } #[doc = "Simple policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the schedule operation of this policy."] #[serde(rename = "scheduleRunFrequency", default, skip_serializing_if = "Option::is_none")] pub schedule_run_frequency: Option, @@ -11095,9 +10920,8 @@ pub struct SimpleSchedulePolicy { pub schedule_weekly_frequency: Option, } impl SimpleSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_run_frequency: None, schedule_run_days: Vec::new(), schedule_run_times: Vec::new(), @@ -11153,8 +10977,6 @@ pub mod simple_schedule_policy { #[doc = "The V2 policy schedule for IaaS that supports hourly backups."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleSchedulePolicyV2 { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the schedule operation of this policy."] #[serde(rename = "scheduleRunFrequency", default, skip_serializing_if = "Option::is_none")] pub schedule_run_frequency: Option, @@ -11166,9 +10988,8 @@ pub struct SimpleSchedulePolicyV2 { pub weekly_schedule: Option, } impl SimpleSchedulePolicyV2 { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_run_frequency: None, hourly_schedule: None, daily_schedule: None, @@ -11648,14 +11469,6 @@ impl ValidateIaasVmRestoreOperationRequest { } } } -#[doc = "Base class for validate operation request."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ValidateOperationRequest {} -impl ValidateOperationRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -11693,18 +11506,13 @@ impl ValidateOperationsResponse { #[doc = "AzureRestoreValidation request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ValidateRestoreOperationRequest { - #[serde(flatten)] - pub validate_operation_request: ValidateOperationRequest, #[doc = "Base class for restore request. Workload-specific restore requests are derived from this class."] #[serde(rename = "restoreRequest", default, skip_serializing_if = "Option::is_none")] pub restore_request: Option, } impl ValidateRestoreOperationRequest { - pub fn new(validate_operation_request: ValidateOperationRequest) -> Self { - Self { - validate_operation_request, - restore_request: None, - } + pub fn new() -> Self { + Self { restore_request: None } } } #[doc = "Vault level Job"] @@ -11780,14 +11588,6 @@ impl VaultJobExtendedInfo { Self::default() } } -#[doc = "Operation result response for Vault Storage Config"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VaultStorageConfigOperationResultResponse {} -impl VaultStorageConfigOperationResultResponse { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] diff --git a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2023_01_15/models.rs b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2023_01_15/models.rs index 58522ea88b..a22340d6a6 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2023_01_15/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_passivestamp_2023_01_15/models.rs @@ -36,8 +36,6 @@ impl AadPropertiesResource { #[doc = "Azure File Share workload specific backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -55,9 +53,8 @@ pub struct AzureFileShareRecoveryPoint { pub recovery_point_properties: Option, } impl AzureFileShareRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_type: None, recovery_point_time: None, file_share_snapshot_uri: None, @@ -69,8 +66,6 @@ impl AzureFileShareRecoveryPoint { #[doc = "AzureFileShare Restore Request"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "Type of this recovery."] #[serde(rename = "recoveryType", default, skip_serializing_if = "Option::is_none")] pub recovery_type: Option, @@ -96,9 +91,8 @@ pub struct AzureFileShareRestoreRequest { pub target_details: Option, } impl AzureFileShareRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_type: None, source_resource_id: None, copy_options: None, @@ -1346,8 +1340,6 @@ impl AzureWorkloadPointInTimeRestoreRequest { #[doc = "Workload specific recovery point, specifically encapsulates full/diff recovery point"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "UTC time at which recovery point was created"] #[serde(rename = "recoveryPointTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_time_in_utc: Option, @@ -1370,9 +1362,8 @@ pub struct AzureWorkloadRecoveryPoint { pub recovery_point_properties: Option, } impl AzureWorkloadRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_time_in_utc: None, type_: None, recovery_point_tier_details: Vec::new(), @@ -1430,8 +1421,6 @@ pub mod azure_workload_recovery_point { #[doc = "AzureWorkload-specific restore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "Type of this recovery."] #[serde(rename = "recoveryType", default, skip_serializing_if = "Option::is_none")] pub recovery_type: Option, @@ -1452,9 +1441,8 @@ pub struct AzureWorkloadRestoreRequest { pub target_virtual_machine_id: Option, } impl AzureWorkloadRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_type: None, source_resource_id: None, property_bag: None, @@ -1565,18 +1553,13 @@ impl AzureWorkloadSapHanaPointInTimeRecoveryPoint { #[doc = "AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSapHanaPointInTimeRestoreRequest { - #[serde(flatten)] - pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "PointInTime value"] #[serde(rename = "pointInTime", default, with = "azure_core::date::rfc3339::option")] pub point_in_time: Option, } impl AzureWorkloadSapHanaPointInTimeRestoreRequest { - pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { - Self { - azure_workload_sap_hana_restore_request, - point_in_time: None, - } + pub fn new() -> Self { + Self { point_in_time: None } } } #[doc = "SAPHana specific recoverypoint, specifically encapsulates full/diff recoverypoints"] @@ -2841,8 +2824,6 @@ pub mod generic_protected_item { #[doc = "Generic backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GenericRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Friendly name of the backup copy."] #[serde(rename = "friendlyName", default, skip_serializing_if = "Option::is_none")] pub friendly_name: Option, @@ -2860,9 +2841,8 @@ pub struct GenericRecoveryPoint { pub recovery_point_properties: Option, } impl GenericRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, friendly_name: None, recovery_point_type: None, recovery_point_time: None, @@ -2874,8 +2854,6 @@ impl GenericRecoveryPoint { #[doc = "IaaS VM workload specific backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Type of the backup copy."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -2935,9 +2913,8 @@ pub struct IaasVmRecoveryPoint { pub recovery_point_properties: Option, } impl IaasVmRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_type: None, recovery_point_time: None, recovery_point_additional_info: None, @@ -2960,8 +2937,6 @@ impl IaasVmRecoveryPoint { #[doc = "IaaS VM workload-specific restore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "ID of the backup copy to be recovered."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -3033,9 +3008,8 @@ pub struct IaasVmRestoreRequest { pub identity_based_restore_details: Option, } impl IaasVmRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_point_id: None, recovery_type: None, source_resource_id: None, @@ -4063,14 +4037,6 @@ impl OperationStatusError { Self::default() } } -#[doc = "Base class for additional information of operation status."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationStatusExtendedInfo {} -impl OperationStatusExtendedInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -4084,25 +4050,18 @@ pub enum OperationStatusExtendedInfoUnion { #[doc = "Operation status job extended info."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusJobExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "ID of the job created for this protected item."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, } impl OperationStatusJobExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { - Self { - operation_status_extended_info, - job_id: None, - } + pub fn new() -> Self { + Self { job_id: None } } } #[doc = "Operation status extended info for list of jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusJobsExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "IDs of the jobs created for the protected item."] #[serde( rename = "jobIds", @@ -4116,9 +4075,8 @@ pub struct OperationStatusJobsExtendedInfo { pub failed_jobs_error: Option, } impl OperationStatusJobsExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { + pub fn new() -> Self { Self { - operation_status_extended_info, job_ids: Vec::new(), failed_jobs_error: None, } @@ -4127,25 +4085,18 @@ impl OperationStatusJobsExtendedInfo { #[doc = "Operation status extended info for ILR provision action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusProvisionIlrExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "Target details for file / folder restore."] #[serde(rename = "recoveryTarget", default, skip_serializing_if = "Option::is_none")] pub recovery_target: Option, } impl OperationStatusProvisionIlrExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { - Self { - operation_status_extended_info, - recovery_target: None, - } + pub fn new() -> Self { + Self { recovery_target: None } } } #[doc = "Operation status extended info for Updated Recovery Point."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusRecoveryPointExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "Base class for backup copies. Workload-specific backup copies are derived from this class."] #[serde(rename = "updatedRecoveryPoint", default, skip_serializing_if = "Option::is_none")] pub updated_recovery_point: Option, @@ -4154,9 +4105,8 @@ pub struct OperationStatusRecoveryPointExtendedInfo { pub deleted_backup_item_version: Option, } impl OperationStatusRecoveryPointExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { + pub fn new() -> Self { Self { - operation_status_extended_info, updated_recovery_point: None, deleted_backup_item_version: None, } @@ -4669,14 +4619,6 @@ impl ProtectedItemResourceList { Self::default() } } -#[doc = "Base class for backup copies. Workload-specific backup copies are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPoint {} -impl RecoveryPoint { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -4909,14 +4851,6 @@ impl RestoreFileSpecs { Self::default() } } -#[doc = "Base class for restore request. Workload-specific restore requests are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RestoreRequest {} -impl RestoreRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] diff --git a/services/mgmt/recoveryservicesbackup/src/package_preview_2022_09/models.rs b/services/mgmt/recoveryservicesbackup/src/package_preview_2022_09/models.rs index 8c4fe27dc7..913bc34ec9 100644 --- a/services/mgmt/recoveryservicesbackup/src/package_preview_2022_09/models.rs +++ b/services/mgmt/recoveryservicesbackup/src/package_preview_2022_09/models.rs @@ -5,13 +5,10 @@ use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; #[doc = "Azure backup goal feature specific request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureBackupGoalFeatureSupportRequest { - #[serde(flatten)] - pub feature_support_request: FeatureSupportRequest, -} +pub struct AzureBackupGoalFeatureSupportRequest {} impl AzureBackupGoalFeatureSupportRequest { - pub fn new(feature_support_request: FeatureSupportRequest) -> Self { - Self { feature_support_request } + pub fn new() -> Self { + Self {} } } #[doc = "AzureBackupServer (DPMVenus) workload-specific protection container."] @@ -39,16 +36,13 @@ impl AzureBackupServerEngine { #[doc = "AzureFileShare workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] #[serde(rename = "recoveryPointExpiryTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_expiry_time_in_utc: Option, } impl AzureFileShareBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, recovery_point_expiry_time_in_utc: None, } } @@ -228,8 +222,6 @@ pub mod azure_file_share_protection_policy { #[doc = "Update snapshot Uri with the correct friendly Name of the source Azure file share."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareProvisionIlrRequest { - #[serde(flatten)] - pub ilr_request: IlrRequest, #[doc = "Recovery point ID."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -238,9 +230,8 @@ pub struct AzureFileShareProvisionIlrRequest { pub source_resource_id: Option, } impl AzureFileShareProvisionIlrRequest { - pub fn new(ilr_request: IlrRequest) -> Self { + pub fn new() -> Self { Self { - ilr_request, recovery_point_id: None, source_resource_id: None, } @@ -249,8 +240,6 @@ impl AzureFileShareProvisionIlrRequest { #[doc = "Azure File Share workload specific backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Type of the backup copy. Specifies whether it is a crash consistent backup or app consistent."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -265,9 +254,8 @@ pub struct AzureFileShareRecoveryPoint { pub recovery_point_size_in_gb: Option, } impl AzureFileShareRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_type: None, recovery_point_time: None, file_share_snapshot_uri: None, @@ -278,8 +266,6 @@ impl AzureFileShareRecoveryPoint { #[doc = "AzureFileShare Restore Request"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFileShareRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "Type of this recovery."] #[serde(rename = "recoveryType", default, skip_serializing_if = "Option::is_none")] pub recovery_type: Option, @@ -305,9 +291,8 @@ pub struct AzureFileShareRestoreRequest { pub target_details: Option, } impl AzureFileShareRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_type: None, source_resource_id: None, copy_options: None, @@ -1470,8 +1455,6 @@ impl AzureVmAppContainerProtectionContainer { #[doc = "AzureResource(IaaS VM) Specific feature support request"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureVmResourceFeatureSupportRequest { - #[serde(flatten)] - pub feature_support_request: FeatureSupportRequest, #[doc = "Size of the resource: VM size(A/D series etc) in case of IaasVM"] #[serde(rename = "vmSize", default, skip_serializing_if = "Option::is_none")] pub vm_size: Option, @@ -1480,9 +1463,8 @@ pub struct AzureVmResourceFeatureSupportRequest { pub vm_sku: Option, } impl AzureVmResourceFeatureSupportRequest { - pub fn new(feature_support_request: FeatureSupportRequest) -> Self { + pub fn new() -> Self { Self { - feature_support_request, vm_size: None, vm_sku: None, } @@ -2200,22 +2182,15 @@ impl AzureVmWorkloadSqlInstanceWorkloadItem { } #[doc = "Azure Recovery Services Vault specific protection intent item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureWorkloadAutoProtectionIntent { - #[serde(flatten)] - pub azure_recovery_service_vault_protection_intent: AzureRecoveryServiceVaultProtectionIntent, -} +pub struct AzureWorkloadAutoProtectionIntent {} impl AzureWorkloadAutoProtectionIntent { - pub fn new(azure_recovery_service_vault_protection_intent: AzureRecoveryServiceVaultProtectionIntent) -> Self { - Self { - azure_recovery_service_vault_protection_intent, - } + pub fn new() -> Self { + Self {} } } #[doc = "AzureWorkload workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Type of backup, viz. Full, Differential, Log or CopyOnlyFull"] #[serde(rename = "backupType", default, skip_serializing_if = "Option::is_none")] pub backup_type: Option, @@ -2227,9 +2202,8 @@ pub struct AzureWorkloadBackupRequest { pub recovery_point_expiry_time_in_utc: Option, } impl AzureWorkloadBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, backup_type: None, enable_compression: None, recovery_point_expiry_time_in_utc: None, @@ -2620,8 +2594,6 @@ impl AzureWorkloadPointInTimeRestoreRequest { #[doc = "Workload specific recovery point, specifically encapsulates full/diff recovery point"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "UTC time at which recovery point was created"] #[serde(rename = "recoveryPointTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_time_in_utc: Option, @@ -2641,9 +2613,8 @@ pub struct AzureWorkloadRecoveryPoint { pub recovery_point_move_readiness_info: Option, } impl AzureWorkloadRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_time_in_utc: None, type_: None, recovery_point_tier_details: Vec::new(), @@ -2704,8 +2675,6 @@ pub mod azure_workload_recovery_point { #[doc = "AzureWorkload-specific restore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "Type of this recovery."] #[serde(rename = "recoveryType", default, skip_serializing_if = "Option::is_none")] pub recovery_type: Option, @@ -2726,9 +2695,8 @@ pub struct AzureWorkloadRestoreRequest { pub target_virtual_machine_id: Option, } impl AzureWorkloadRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_type: None, source_resource_id: None, property_bag: None, @@ -2839,18 +2807,13 @@ impl AzureWorkloadSapHanaPointInTimeRecoveryPoint { #[doc = "AzureWorkload SAP Hana -specific restore. Specifically for PointInTime/Log restore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSapHanaPointInTimeRestoreRequest { - #[serde(flatten)] - pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "PointInTime value"] #[serde(rename = "pointInTime", default, with = "azure_core::date::rfc3339::option")] pub point_in_time: Option, } impl AzureWorkloadSapHanaPointInTimeRestoreRequest { - pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { - Self { - azure_workload_sap_hana_restore_request, - point_in_time: None, - } + pub fn new() -> Self { + Self { point_in_time: None } } } #[doc = "AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point."] @@ -2899,16 +2862,13 @@ impl AzureWorkloadSapHanaRestoreRequest { #[doc = "AzureWorkload SAP Hana-specific restore with integrated rehydration of recovery point."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSapHanaRestoreWithRehydrateRequest { - #[serde(flatten)] - pub azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest, #[doc = "RP Rehydration Info"] #[serde(rename = "recoveryPointRehydrationInfo", default, skip_serializing_if = "Option::is_none")] pub recovery_point_rehydration_info: Option, } impl AzureWorkloadSapHanaRestoreWithRehydrateRequest { - pub fn new(azure_workload_sap_hana_restore_request: AzureWorkloadSapHanaRestoreRequest) -> Self { + pub fn new() -> Self { Self { - azure_workload_sap_hana_restore_request, recovery_point_rehydration_info: None, } } @@ -2916,18 +2876,13 @@ impl AzureWorkloadSapHanaRestoreWithRehydrateRequest { #[doc = "Azure Workload SQL Auto Protection intent item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureWorkloadSqlAutoProtectionIntent { - #[serde(flatten)] - pub azure_workload_auto_protection_intent: AzureWorkloadAutoProtectionIntent, #[doc = "Workload item type of the item for which intent is to be set"] #[serde(rename = "workloadItemType", default, skip_serializing_if = "Option::is_none")] pub workload_item_type: Option, } impl AzureWorkloadSqlAutoProtectionIntent { - pub fn new(azure_workload_auto_protection_intent: AzureWorkloadAutoProtectionIntent) -> Self { - Self { - azure_workload_auto_protection_intent, - workload_item_type: None, - } + pub fn new() -> Self { + Self { workload_item_type: None } } } pub mod azure_workload_sql_auto_protection_intent { @@ -4436,14 +4391,6 @@ impl BackupManagementUsageList { Self::default() } } -#[doc = "Base class for backup request. Workload-specific backup requests are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BackupRequest {} -impl BackupRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -6089,8 +6036,6 @@ impl ErrorDetail { #[doc = "This class is used to send blob details after exporting jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExportJobsOperationResultInfo { - #[serde(flatten)] - pub operation_result_info_base: OperationResultInfoBase, #[doc = "URL of the blob into which the serialized string of list of jobs is exported."] #[serde(rename = "blobUrl", default, skip_serializing_if = "Option::is_none")] pub blob_url: Option, @@ -6105,9 +6050,8 @@ pub struct ExportJobsOperationResultInfo { pub excel_file_blob_sas_key: Option, } impl ExportJobsOperationResultInfo { - pub fn new(operation_result_info_base: OperationResultInfoBase) -> Self { + pub fn new() -> Self { Self { - operation_result_info_base, blob_url: None, blob_sas_key: None, excel_file_blob_url: None, @@ -6129,14 +6073,6 @@ impl ExtendedProperties { Self::default() } } -#[doc = "Base class for feature request"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FeatureSupportRequest {} -impl FeatureSupportRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "backup support feature type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "featureType")] @@ -6303,8 +6239,6 @@ impl GenericProtectionPolicy { #[doc = "Generic backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GenericRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Friendly name of the backup copy."] #[serde(rename = "friendlyName", default, skip_serializing_if = "Option::is_none")] pub friendly_name: Option, @@ -6319,9 +6253,8 @@ pub struct GenericRecoveryPoint { pub recovery_point_additional_info: Option, } impl GenericRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, friendly_name: None, recovery_point_type: None, recovery_point_time: None, @@ -6358,14 +6291,6 @@ impl HourlySchedule { Self::default() } } -#[doc = "Parameters to Provision ILR API."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct IlrRequest {} -impl IlrRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -6442,16 +6367,13 @@ impl IaaSvmProtectableItem { #[doc = "IaaS VM workload-specific backup request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmBackupRequest { - #[serde(flatten)] - pub backup_request: BackupRequest, #[doc = "Backup copy will expire after the time specified (UTC)."] #[serde(rename = "recoveryPointExpiryTimeInUTC", default, with = "azure_core::date::rfc3339::option")] pub recovery_point_expiry_time_in_utc: Option, } impl IaasVmBackupRequest { - pub fn new(backup_request: BackupRequest) -> Self { + pub fn new() -> Self { Self { - backup_request, recovery_point_expiry_time_in_utc: None, } } @@ -6459,8 +6381,6 @@ impl IaasVmBackupRequest { #[doc = "Restore files/folders from a backup copy of IaaS VM."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmilrRegistrationRequest { - #[serde(flatten)] - pub ilr_request: IlrRequest, #[doc = "ID of the IaaS VM backup copy from where the files/folders have to be restored."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -6475,9 +6395,8 @@ pub struct IaasVmilrRegistrationRequest { pub renew_existing_registration: Option, } impl IaasVmilrRegistrationRequest { - pub fn new(ilr_request: IlrRequest) -> Self { + pub fn new() -> Self { Self { - ilr_request, recovery_point_id: None, virtual_machine_id: None, initiator_name: None, @@ -6488,8 +6407,6 @@ impl IaasVmilrRegistrationRequest { #[doc = "IaaS VM workload specific backup copy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmRecoveryPoint { - #[serde(flatten)] - pub recovery_point: RecoveryPoint, #[doc = "Type of the backup copy."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -6546,9 +6463,8 @@ pub struct IaasVmRecoveryPoint { pub recovery_point_move_readiness_info: Option, } impl IaasVmRecoveryPoint { - pub fn new(recovery_point: RecoveryPoint) -> Self { + pub fn new() -> Self { Self { - recovery_point, recovery_point_type: None, recovery_point_time: None, recovery_point_additional_info: None, @@ -6570,8 +6486,6 @@ impl IaasVmRecoveryPoint { #[doc = "IaaS VM workload-specific restore."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct IaasVmRestoreRequest { - #[serde(flatten)] - pub restore_request: RestoreRequest, #[doc = "Recovery Point ID Name of the backup copy to be recovered."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -6643,9 +6557,8 @@ pub struct IaasVmRestoreRequest { pub identity_based_restore_details: Option, } impl IaasVmRestoreRequest { - pub fn new(restore_request: RestoreRequest) -> Self { + pub fn new() -> Self { Self { - restore_request, recovery_point_id: None, recovery_type: None, source_resource_id: None, @@ -7292,16 +7205,13 @@ impl ListRecoveryPointsRecommendedForMoveRequest { #[doc = "Log policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LogSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the log schedule operation of this policy in minutes."] #[serde(rename = "scheduleFrequencyInMins", default, skip_serializing_if = "Option::is_none")] pub schedule_frequency_in_mins: Option, } impl LogSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_frequency_in_mins: None, } } @@ -7309,8 +7219,6 @@ impl LogSchedulePolicy { #[doc = "Long term retention policy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LongTermRetentionPolicy { - #[serde(flatten)] - pub retention_policy: RetentionPolicy, #[doc = "Daily retention schedule."] #[serde(rename = "dailySchedule", default, skip_serializing_if = "Option::is_none")] pub daily_schedule: Option, @@ -7325,9 +7233,8 @@ pub struct LongTermRetentionPolicy { pub yearly_schedule: Option, } impl LongTermRetentionPolicy { - pub fn new(retention_policy: RetentionPolicy) -> Self { + pub fn new() -> Self { Self { - retention_policy, daily_schedule: None, weekly_schedule: None, monthly_schedule: None, @@ -7337,13 +7244,10 @@ impl LongTermRetentionPolicy { } #[doc = "Long term policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct LongTermSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, -} +pub struct LongTermSchedulePolicy {} impl LongTermSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { - Self { schedule_policy } + pub fn new() -> Self { + Self {} } } #[doc = "MAB workload-specific Health Details."] @@ -8041,8 +7945,6 @@ pub mod new_error_response { #[doc = "Operation result info."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationResultInfo { - #[serde(flatten)] - pub operation_result_info_base: OperationResultInfoBase, #[doc = "List of jobs created by this operation."] #[serde( rename = "jobList", @@ -8053,19 +7955,8 @@ pub struct OperationResultInfo { pub job_list: Vec, } impl OperationResultInfo { - pub fn new(operation_result_info_base: OperationResultInfoBase) -> Self { - Self { - operation_result_info_base, - job_list: Vec::new(), - } - } -} -#[doc = "Base class for operation result info."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationResultInfoBase {} -impl OperationResultInfoBase { pub fn new() -> Self { - Self {} + Self { job_list: Vec::new() } } } #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] @@ -8180,14 +8071,6 @@ impl OperationStatusError { Self::default() } } -#[doc = "Base class for additional information of operation status."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct OperationStatusExtendedInfo {} -impl OperationStatusExtendedInfo { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -8201,25 +8084,18 @@ pub enum OperationStatusExtendedInfoUnion { #[doc = "Operation status job extended info."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusJobExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "ID of the job created for this protected item."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, } impl OperationStatusJobExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { - Self { - operation_status_extended_info, - job_id: None, - } + pub fn new() -> Self { + Self { job_id: None } } } #[doc = "Operation status extended info for list of jobs."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusJobsExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "IDs of the jobs created for the protected item."] #[serde( rename = "jobIds", @@ -8233,9 +8109,8 @@ pub struct OperationStatusJobsExtendedInfo { pub failed_jobs_error: Option, } impl OperationStatusJobsExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { + pub fn new() -> Self { Self { - operation_status_extended_info, job_ids: Vec::new(), failed_jobs_error: None, } @@ -8244,33 +8119,25 @@ impl OperationStatusJobsExtendedInfo { #[doc = "Operation status extended info for ILR provision action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusProvisionIlrExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "Target details for file / folder restore."] #[serde(rename = "recoveryTarget", default, skip_serializing_if = "Option::is_none")] pub recovery_target: Option, } impl OperationStatusProvisionIlrExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { - Self { - operation_status_extended_info, - recovery_target: None, - } + pub fn new() -> Self { + Self { recovery_target: None } } } #[doc = "Operation status extended info for ValidateOperation action."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OperationStatusValidateOperationExtendedInfo { - #[serde(flatten)] - pub operation_status_extended_info: OperationStatusExtendedInfo, #[doc = "Base class for validate operation response."] #[serde(rename = "validateOperationResponse", default, skip_serializing_if = "Option::is_none")] pub validate_operation_response: Option, } impl OperationStatusValidateOperationExtendedInfo { - pub fn new(operation_status_extended_info: OperationStatusExtendedInfo) -> Self { + pub fn new() -> Self { Self { - operation_status_extended_info, validate_operation_response: None, } } @@ -8665,8 +8532,6 @@ pub mod prepare_data_move_request { #[doc = "Prepare DataMove Response"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct PrepareDataMoveResponse { - #[serde(flatten)] - pub vault_storage_config_operation_result_response: VaultStorageConfigOperationResultResponse, #[doc = "Co-relationId for move operation"] #[serde(rename = "correlationId", default, skip_serializing_if = "Option::is_none")] pub correlation_id: Option, @@ -8675,9 +8540,8 @@ pub struct PrepareDataMoveResponse { pub source_vault_properties: Option, } impl PrepareDataMoveResponse { - pub fn new(vault_storage_config_operation_result_response: VaultStorageConfigOperationResultResponse) -> Self { + pub fn new() -> Self { Self { - vault_storage_config_operation_result_response, correlation_id: None, source_vault_properties: None, } @@ -10127,14 +9991,6 @@ impl ProtectionPolicyResourceList { Self::default() } } -#[doc = "Base class for backup copies. Workload-specific backup copies are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPoint {} -impl RecoveryPoint { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -10580,14 +10436,6 @@ impl RestoreFileSpecs { Self::default() } } -#[doc = "Base class for restore request. Workload-specific restore requests are derived from this class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RestoreRequest {} -impl RestoreRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -10672,14 +10520,6 @@ pub mod retention_duration { } } } -#[doc = "Base class for retention policy."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RetentionPolicy {} -impl RetentionPolicy { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "retentionPolicyType")] @@ -10810,14 +10650,6 @@ pub mod sql_data_directory_mapping { } } } -#[doc = "Base class for backup schedule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SchedulePolicy {} -impl SchedulePolicy { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "schedulePolicyType")] @@ -10865,25 +10697,18 @@ impl Settings { #[doc = "Simple policy retention."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleRetentionPolicy { - #[serde(flatten)] - pub retention_policy: RetentionPolicy, #[doc = "Retention duration."] #[serde(rename = "retentionDuration", default, skip_serializing_if = "Option::is_none")] pub retention_duration: Option, } impl SimpleRetentionPolicy { - pub fn new(retention_policy: RetentionPolicy) -> Self { - Self { - retention_policy, - retention_duration: None, - } + pub fn new() -> Self { + Self { retention_duration: None } } } #[doc = "Simple policy schedule."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleSchedulePolicy { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the schedule operation of this policy."] #[serde(rename = "scheduleRunFrequency", default, skip_serializing_if = "Option::is_none")] pub schedule_run_frequency: Option, @@ -10910,9 +10735,8 @@ pub struct SimpleSchedulePolicy { pub schedule_weekly_frequency: Option, } impl SimpleSchedulePolicy { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_run_frequency: None, schedule_run_days: Vec::new(), schedule_run_times: Vec::new(), @@ -10968,8 +10792,6 @@ pub mod simple_schedule_policy { #[doc = "The V2 policy schedule for IaaS that supports hourly backups."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SimpleSchedulePolicyV2 { - #[serde(flatten)] - pub schedule_policy: SchedulePolicy, #[doc = "Frequency of the schedule operation of this policy."] #[serde(rename = "scheduleRunFrequency", default, skip_serializing_if = "Option::is_none")] pub schedule_run_frequency: Option, @@ -10981,9 +10803,8 @@ pub struct SimpleSchedulePolicyV2 { pub weekly_schedule: Option, } impl SimpleSchedulePolicyV2 { - pub fn new(schedule_policy: SchedulePolicy) -> Self { + pub fn new() -> Self { Self { - schedule_policy, schedule_run_frequency: None, hourly_schedule: None, daily_schedule: None, @@ -11438,14 +11259,6 @@ impl ValidateIaasVmRestoreOperationRequest { } } } -#[doc = "Base class for validate operation request."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ValidateOperationRequest {} -impl ValidateOperationRequest { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] @@ -11483,18 +11296,13 @@ impl ValidateOperationsResponse { #[doc = "AzureRestoreValidation request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ValidateRestoreOperationRequest { - #[serde(flatten)] - pub validate_operation_request: ValidateOperationRequest, #[doc = "Base class for restore request. Workload-specific restore requests are derived from this class."] #[serde(rename = "restoreRequest", default, skip_serializing_if = "Option::is_none")] pub restore_request: Option, } impl ValidateRestoreOperationRequest { - pub fn new(validate_operation_request: ValidateOperationRequest) -> Self { - Self { - validate_operation_request, - restore_request: None, - } + pub fn new() -> Self { + Self { restore_request: None } } } #[doc = "Vault level Job"] @@ -11570,14 +11378,6 @@ impl VaultJobExtendedInfo { Self::default() } } -#[doc = "Operation result response for Vault Storage Config"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VaultStorageConfigOperationResultResponse {} -impl VaultStorageConfigOperationResultResponse { - pub fn new() -> Self { - Self {} - } -} #[doc = "This property will be used as the discriminator for deciding the specific types in the polymorphic chain of types."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "objectType")] diff --git a/services/mgmt/recoveryservicesdatareplication/src/package_2021_02_16_preview/models.rs b/services/mgmt/recoveryservicesdatareplication/src/package_2021_02_16_preview/models.rs index 518c648570..341fb01f79 100644 --- a/services/mgmt/recoveryservicesdatareplication/src/package_2021_02_16_preview/models.rs +++ b/services/mgmt/recoveryservicesdatareplication/src/package_2021_02_16_preview/models.rs @@ -37,8 +37,6 @@ impl AzStackHciClusterProperties { #[doc = "AzStackHCI fabric model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzStackHciFabricModelCustomProperties { - #[serde(flatten)] - pub fabric_model_custom_properties: FabricModelCustomProperties, #[doc = "Gets or sets the ARM Id of the AzStackHCI site."] #[serde(rename = "azStackHciSiteId")] pub az_stack_hci_site_id: String, @@ -66,14 +64,8 @@ pub struct AzStackHciFabricModelCustomProperties { pub migration_hub_uri: Option, } impl AzStackHciFabricModelCustomProperties { - pub fn new( - fabric_model_custom_properties: FabricModelCustomProperties, - az_stack_hci_site_id: String, - cluster: AzStackHciClusterProperties, - migration_solution_id: String, - ) -> Self { + pub fn new(az_stack_hci_site_id: String, cluster: AzStackHciClusterProperties, migration_solution_id: String) -> Self { Self { - fabric_model_custom_properties, az_stack_hci_site_id, appliance_name: Vec::new(), cluster, @@ -207,14 +199,6 @@ impl DraModelCollection { Self::default() } } -#[doc = "Dra model custom properties."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DraModelCustomProperties {} -impl DraModelCustomProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets or sets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -565,14 +549,6 @@ impl EventModelCollection { Self::default() } } -#[doc = "Event model custom properties."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventModelCustomProperties {} -impl EventModelCustomProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets or sets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -695,14 +671,6 @@ impl FabricModelCollection { Self::default() } } -#[doc = "Fabric model custom properties."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricModelCustomProperties {} -impl FabricModelCustomProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets or sets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -982,8 +950,6 @@ impl HealthErrorModel { #[doc = "HyperV migrate fabric model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVMigrateFabricModelCustomProperties { - #[serde(flatten)] - pub fabric_model_custom_properties: FabricModelCustomProperties, #[doc = "Gets or sets the ARM Id of the HyperV site."] #[serde(rename = "hyperVSiteId")] pub hyper_v_site_id: String, @@ -1001,13 +967,8 @@ pub struct HyperVMigrateFabricModelCustomProperties { pub migration_hub_uri: Option, } impl HyperVMigrateFabricModelCustomProperties { - pub fn new( - fabric_model_custom_properties: FabricModelCustomProperties, - hyper_v_site_id: String, - migration_solution_id: String, - ) -> Self { + pub fn new(hyper_v_site_id: String, migration_solution_id: String) -> Self { Self { - fabric_model_custom_properties, hyper_v_site_id, fabric_resource_id: None, fabric_container_id: None, @@ -1053,8 +1014,6 @@ impl HyperVToAzStackHciDiskInput { #[doc = "HyperV to AzStackHCI event model custom properties. This class provides provider specific\r\ndetails for events of type DataContract.HealthEvents.HealthEventType.ProtectedItemHealth and\r\nDataContract.HealthEvents.HealthEventType.AgentHealth."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVToAzStackHciEventModelCustomProperties { - #[serde(flatten)] - pub event_model_custom_properties: EventModelCustomProperties, #[doc = "Gets or sets the friendly name of the source which has raised this health event."] #[serde(rename = "eventSourceFriendlyName", default, skip_serializing_if = "Option::is_none")] pub event_source_friendly_name: Option, @@ -1072,9 +1031,8 @@ pub struct HyperVToAzStackHciEventModelCustomProperties { pub server_type: Option, } impl HyperVToAzStackHciEventModelCustomProperties { - pub fn new(event_model_custom_properties: EventModelCustomProperties) -> Self { + pub fn new() -> Self { Self { - event_model_custom_properties, event_source_friendly_name: None, protected_item_friendly_name: None, source_appliance_name: None, @@ -1167,25 +1125,18 @@ pub mod hyper_v_to_az_stack_hci_nic_input { #[doc = "HyperV to AzStackHCI planned failover model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVToAzStackHciPlannedFailoverModelCustomProperties { - #[serde(flatten)] - pub planned_failover_model_custom_properties: PlannedFailoverModelCustomProperties, #[doc = "Gets or sets a value indicating whether VM needs to be shut down."] #[serde(rename = "shutdownSourceVM")] pub shutdown_source_vm: bool, } impl HyperVToAzStackHciPlannedFailoverModelCustomProperties { - pub fn new(planned_failover_model_custom_properties: PlannedFailoverModelCustomProperties, shutdown_source_vm: bool) -> Self { - Self { - planned_failover_model_custom_properties, - shutdown_source_vm, - } + pub fn new(shutdown_source_vm: bool) -> Self { + Self { shutdown_source_vm } } } #[doc = "HyperV To AzStackHCI Policy model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVToAzStackHciPolicyModelCustomProperties { - #[serde(flatten)] - pub policy_model_custom_properties: PolicyModelCustomProperties, #[doc = "Gets or sets the duration in minutes until which the recovery points need to be\r\nstored."] #[serde(rename = "recoveryPointHistoryInMinutes")] pub recovery_point_history_in_minutes: i32, @@ -1198,13 +1149,11 @@ pub struct HyperVToAzStackHciPolicyModelCustomProperties { } impl HyperVToAzStackHciPolicyModelCustomProperties { pub fn new( - policy_model_custom_properties: PolicyModelCustomProperties, recovery_point_history_in_minutes: i32, crash_consistent_frequency_in_minutes: i32, app_consistent_frequency_in_minutes: i32, ) -> Self { Self { - policy_model_custom_properties, recovery_point_history_in_minutes, crash_consistent_frequency_in_minutes, app_consistent_frequency_in_minutes, @@ -1256,8 +1205,6 @@ impl HyperVToAzStackHciProtectedDiskProperties { #[doc = "HyperV to AzStackHCI Protected item model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVToAzStackHciProtectedItemModelCustomProperties { - #[serde(flatten)] - pub protected_item_model_custom_properties: ProtectedItemModelCustomProperties, #[doc = "Gets or sets the location of the protected item."] #[serde(rename = "activeLocation", default, skip_serializing_if = "Option::is_none")] pub active_location: Option, @@ -1388,7 +1335,6 @@ pub struct HyperVToAzStackHciProtectedItemModelCustomProperties { } impl HyperVToAzStackHciProtectedItemModelCustomProperties { pub fn new( - protected_item_model_custom_properties: ProtectedItemModelCustomProperties, target_hci_cluster_id: String, target_arc_cluster_custom_location_id: String, fabric_discovery_machine_id: String, @@ -1403,7 +1349,6 @@ impl HyperVToAzStackHciProtectedItemModelCustomProperties { custom_location_region: String, ) -> Self { Self { - protected_item_model_custom_properties, active_location: None, target_hci_cluster_id, target_arc_cluster_custom_location_id, @@ -1562,8 +1507,6 @@ pub mod hyper_v_to_az_stack_hci_protected_nic_properties { #[doc = "HyperV to AzStackHCI recovery point model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVToAzStackHciRecoveryPointModelCustomProperties { - #[serde(flatten)] - pub recovery_point_model_custom_properties: RecoveryPointModelCustomProperties, #[doc = "Gets or sets the list of the disk Ids."] #[serde( rename = "diskIds", @@ -1574,18 +1517,13 @@ pub struct HyperVToAzStackHciRecoveryPointModelCustomProperties { pub disk_ids: Vec, } impl HyperVToAzStackHciRecoveryPointModelCustomProperties { - pub fn new(recovery_point_model_custom_properties: RecoveryPointModelCustomProperties) -> Self { - Self { - recovery_point_model_custom_properties, - disk_ids: Vec::new(), - } + pub fn new() -> Self { + Self { disk_ids: Vec::new() } } } #[doc = "HyperV to AzStackHCI Replication extension model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVToAzStackHciReplicationExtensionModelCustomProperties { - #[serde(flatten)] - pub replication_extension_model_custom_properties: ReplicationExtensionModelCustomProperties, #[doc = "Gets or sets the ARM Id of the source HyperV fabric."] #[serde(rename = "hyperVFabricArmId")] pub hyper_v_fabric_arm_id: String, @@ -1636,13 +1574,8 @@ pub struct HyperVToAzStackHciReplicationExtensionModelCustomProperties { pub resource_group: Option, } impl HyperVToAzStackHciReplicationExtensionModelCustomProperties { - pub fn new( - replication_extension_model_custom_properties: ReplicationExtensionModelCustomProperties, - hyper_v_fabric_arm_id: String, - az_stack_hci_fabric_arm_id: String, - ) -> Self { + pub fn new(hyper_v_fabric_arm_id: String, az_stack_hci_fabric_arm_id: String) -> Self { Self { - replication_extension_model_custom_properties, hyper_v_fabric_arm_id, hyper_v_site_id: None, az_stack_hci_fabric_arm_id, @@ -1979,14 +1912,6 @@ impl PlannedFailoverModel { Self { properties } } } -#[doc = "Planned failover model custom properties."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PlannedFailoverModelCustomProperties {} -impl PlannedFailoverModelCustomProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets or sets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2061,14 +1986,6 @@ impl PolicyModelCollection { Self::default() } } -#[doc = "Policy model custom properties."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PolicyModelCustomProperties {} -impl PolicyModelCustomProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets or sets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2251,14 +2168,6 @@ impl ProtectedItemModelCollection { Self::default() } } -#[doc = "Protected item model custom properties."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProtectedItemModelCustomProperties {} -impl ProtectedItemModelCustomProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets or sets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2843,14 +2752,6 @@ impl RecoveryPointModelCollection { Self::default() } } -#[doc = "Recovery point model custom properties."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPointModelCustomProperties {} -impl RecoveryPointModelCustomProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets or sets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2977,14 +2878,6 @@ impl ReplicationExtensionModelCollection { Self::default() } } -#[doc = "Replication extension model custom properties."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationExtensionModelCustomProperties {} -impl ReplicationExtensionModelCustomProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets or sets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3240,8 +3133,6 @@ impl TestFailoverWorkflowModelCustomProperties { #[doc = "VMware DRA model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareDraModelCustomProperties { - #[serde(flatten)] - pub dra_model_custom_properties: DraModelCustomProperties, #[doc = "Gets or sets the BIOS Id of the DRA machine."] #[serde(rename = "biosId")] pub bios_id: String, @@ -3250,13 +3141,8 @@ pub struct VMwareDraModelCustomProperties { pub mars_authentication_identity: IdentityModel, } impl VMwareDraModelCustomProperties { - pub fn new( - dra_model_custom_properties: DraModelCustomProperties, - bios_id: String, - mars_authentication_identity: IdentityModel, - ) -> Self { + pub fn new(bios_id: String, mars_authentication_identity: IdentityModel) -> Self { Self { - dra_model_custom_properties, bios_id, mars_authentication_identity, } @@ -3265,8 +3151,6 @@ impl VMwareDraModelCustomProperties { #[doc = "VMware migrate fabric model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareMigrateFabricModelCustomProperties { - #[serde(flatten)] - pub fabric_model_custom_properties: FabricModelCustomProperties, #[doc = "Gets or sets the ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId")] pub vmware_site_id: String, @@ -3275,9 +3159,8 @@ pub struct VMwareMigrateFabricModelCustomProperties { pub migration_solution_id: String, } impl VMwareMigrateFabricModelCustomProperties { - pub fn new(fabric_model_custom_properties: FabricModelCustomProperties, vmware_site_id: String, migration_solution_id: String) -> Self { + pub fn new(vmware_site_id: String, migration_solution_id: String) -> Self { Self { - fabric_model_custom_properties, vmware_site_id, migration_solution_id, } @@ -3405,25 +3288,18 @@ pub mod v_mware_to_az_stack_hci_nic_input { #[doc = "VMware to AzStackHCI planned failover model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareToAzStackHciPlannedFailoverModelCustomProperties { - #[serde(flatten)] - pub planned_failover_model_custom_properties: PlannedFailoverModelCustomProperties, #[doc = "Gets or sets a value indicating whether VM needs to be shut down."] #[serde(rename = "shutdownSourceVM")] pub shutdown_source_vm: bool, } impl VMwareToAzStackHciPlannedFailoverModelCustomProperties { - pub fn new(planned_failover_model_custom_properties: PlannedFailoverModelCustomProperties, shutdown_source_vm: bool) -> Self { - Self { - planned_failover_model_custom_properties, - shutdown_source_vm, - } + pub fn new(shutdown_source_vm: bool) -> Self { + Self { shutdown_source_vm } } } #[doc = "VMware To AzStackHCI Policy model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareToAzStackHciPolicyModelCustomProperties { - #[serde(flatten)] - pub policy_model_custom_properties: PolicyModelCustomProperties, #[doc = "Gets or sets the duration in minutes until which the recovery points need to be\r\nstored."] #[serde(rename = "recoveryPointHistoryInMinutes")] pub recovery_point_history_in_minutes: i32, @@ -3436,13 +3312,11 @@ pub struct VMwareToAzStackHciPolicyModelCustomProperties { } impl VMwareToAzStackHciPolicyModelCustomProperties { pub fn new( - policy_model_custom_properties: PolicyModelCustomProperties, recovery_point_history_in_minutes: i32, crash_consistent_frequency_in_minutes: i32, app_consistent_frequency_in_minutes: i32, ) -> Self { Self { - policy_model_custom_properties, recovery_point_history_in_minutes, crash_consistent_frequency_in_minutes, app_consistent_frequency_in_minutes, @@ -3494,8 +3368,6 @@ impl VMwareToAzStackHciProtectedDiskProperties { #[doc = "VMware to AzStackHCI Protected item model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareToAzStackHciProtectedItemModelCustomProperties { - #[serde(flatten)] - pub protected_item_model_custom_properties: ProtectedItemModelCustomProperties, #[doc = "Gets or sets the location of the protected item."] #[serde(rename = "activeLocation", default, skip_serializing_if = "Option::is_none")] pub active_location: Option, @@ -3647,7 +3519,6 @@ pub struct VMwareToAzStackHciProtectedItemModelCustomProperties { } impl VMwareToAzStackHciProtectedItemModelCustomProperties { pub fn new( - protected_item_model_custom_properties: ProtectedItemModelCustomProperties, target_hci_cluster_id: String, target_arc_cluster_custom_location_id: String, storage_container_id: String, @@ -3662,7 +3533,6 @@ impl VMwareToAzStackHciProtectedItemModelCustomProperties { target_dra_name: String, ) -> Self { Self { - protected_item_model_custom_properties, active_location: None, target_hci_cluster_id, target_arc_cluster_custom_location_id, @@ -3875,8 +3745,6 @@ pub mod v_mware_to_az_stack_hci_protected_nic_properties { #[doc = "VMware to AzStackHCI Replication extension model custom properties."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareToAzStackHciReplicationExtensionModelCustomProperties { - #[serde(flatten)] - pub replication_extension_model_custom_properties: ReplicationExtensionModelCustomProperties, #[doc = "Gets or sets the ARM Id of the source VMware fabric."] #[serde(rename = "vmwareFabricArmId")] pub vmware_fabric_arm_id: String, @@ -3927,13 +3795,8 @@ pub struct VMwareToAzStackHciReplicationExtensionModelCustomProperties { pub resource_group: Option, } impl VMwareToAzStackHciReplicationExtensionModelCustomProperties { - pub fn new( - replication_extension_model_custom_properties: ReplicationExtensionModelCustomProperties, - vmware_fabric_arm_id: String, - az_stack_hci_fabric_arm_id: String, - ) -> Self { + pub fn new(vmware_fabric_arm_id: String, az_stack_hci_fabric_arm_id: String) -> Self { Self { - replication_extension_model_custom_properties, vmware_fabric_arm_id, vmware_site_id: None, az_stack_hci_fabric_arm_id, diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2022_10/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2022_10/models.rs index 61d691470c..b543ec1170 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2022_10/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2022_10/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "A2A add disk(s) input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aAddDisksInput { - #[serde(flatten)] - pub add_disks_provider_specific_input: AddDisksProviderSpecificInput, #[doc = "The list of vm disk details."] #[serde( rename = "vmDisks", @@ -26,9 +24,8 @@ pub struct A2aAddDisksInput { pub vm_managed_disks: Vec, } impl A2aAddDisksInput { - pub fn new(add_disks_provider_specific_input: AddDisksProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - add_disks_provider_specific_input, vm_disks: Vec::new(), vm_managed_disks: Vec::new(), } @@ -36,35 +33,23 @@ impl A2aAddDisksInput { } #[doc = "ApplyRecoveryPoint input specific to A2A provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct A2aApplyRecoveryPointInput {} impl A2aApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A cloud creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct A2aContainerCreationInput {} impl A2aContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A container mapping input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -76,9 +61,8 @@ pub struct A2aContainerMappingInput { pub automation_account_authentication_type: Option, } impl A2aContainerMappingInput { - pub fn new(replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_container_mapping_input, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -172,8 +156,6 @@ pub mod a2a_container_mapping_input { #[doc = "A2A create protection intent input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCreateProtectionIntentInput { - #[serde(flatten)] - pub create_protection_intent_provider_specific_details: CreateProtectionIntentProviderSpecificDetails, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId")] pub fabric_object_id: String, @@ -261,7 +243,6 @@ pub struct A2aCreateProtectionIntentInput { } impl A2aCreateProtectionIntentInput { pub fn new( - create_protection_intent_provider_specific_details: CreateProtectionIntentProviderSpecificDetails, fabric_object_id: String, primary_location: String, recovery_location: String, @@ -270,7 +251,6 @@ impl A2aCreateProtectionIntentInput { recovery_resource_group_id: String, ) -> Self { Self { - create_protection_intent_provider_specific_details, fabric_object_id, primary_location, recovery_location, @@ -458,35 +438,23 @@ pub mod a2a_create_protection_intent_input { } #[doc = "ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct A2aCrossClusterMigrationApplyRecoveryPointInput {} impl A2aCrossClusterMigrationApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2ACrossClusterMigration cloud creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct A2aCrossClusterMigrationContainerCreationInput {} impl A2aCrossClusterMigrationContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A Cross-Cluster Migration enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCrossClusterMigrationEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -495,9 +463,8 @@ pub struct A2aCrossClusterMigrationEnableProtectionInput { pub recovery_container_id: Option, } impl A2aCrossClusterMigrationEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, fabric_object_id: None, recovery_container_id: None, } @@ -505,22 +472,15 @@ impl A2aCrossClusterMigrationEnableProtectionInput { } #[doc = "A2A Cross-Cluster Migration Policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, -} +pub struct A2aCrossClusterMigrationPolicyCreationInput {} impl A2aCrossClusterMigrationPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { - Self { - policy_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCrossClusterMigrationReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -541,9 +501,8 @@ pub struct A2aCrossClusterMigrationReplicationDetails { pub lifecycle_id: Option, } impl A2aCrossClusterMigrationReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, fabric_object_id: None, primary_fabric_location: None, os_type: None, @@ -556,8 +515,6 @@ impl A2aCrossClusterMigrationReplicationDetails { #[doc = "A2A enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId")] pub fabric_object_id: String, @@ -624,9 +581,8 @@ pub struct A2aEnableProtectionInput { pub recovery_capacity_reservation_group_id: Option, } impl A2aEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, fabric_object_id: String) -> Self { + pub fn new(fabric_object_id: String) -> Self { Self { - enable_protection_provider_specific_input, fabric_object_id, recovery_container_id: None, recovery_resource_group_id: None, @@ -651,8 +607,6 @@ impl A2aEnableProtectionInput { #[doc = "Model class for event details of a A2A event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item arm name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -673,9 +627,8 @@ pub struct A2aEventDetails { pub remote_fabric_location: Option, } impl A2aEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, fabric_object_id: None, fabric_name: None, @@ -703,8 +656,6 @@ impl A2aExtendedLocationDetails { #[doc = "A2A Policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistory", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history: Option, @@ -719,12 +670,8 @@ pub struct A2aPolicyCreationInput { pub multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus, } impl A2aPolicyCreationInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -775,8 +722,6 @@ pub mod a2a_policy_creation_input { #[doc = "A2A specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -794,9 +739,8 @@ pub struct A2aPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl A2aPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -997,8 +941,6 @@ impl A2aProtectedManagedDiskDetails { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -1016,9 +958,8 @@ pub struct A2aProtectionContainerMappingDetails { pub job_schedule_name: Option, } impl A2aProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -1186,8 +1127,6 @@ impl A2aProtectionIntentManagedDiskInputDetails { #[doc = "A2A provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aRecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "recoveryPointSyncType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_sync_type: Option, @@ -1200,9 +1139,8 @@ pub struct A2aRecoveryPointDetails { pub disks: Vec, } impl A2aRecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, recovery_point_sync_type: None, disks: Vec::new(), } @@ -1253,8 +1191,6 @@ pub mod a2a_recovery_point_details { #[doc = "A2A remove disk(s) input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aRemoveDisksInput { - #[serde(flatten)] - pub remove_disks_provider_specific_input: RemoveDisksProviderSpecificInput, #[doc = "The list of vm disk vhd URIs."] #[serde( rename = "vmDisksUris", @@ -1273,9 +1209,8 @@ pub struct A2aRemoveDisksInput { pub vm_managed_disks_ids: Vec, } impl A2aRemoveDisksInput { - pub fn new(remove_disks_provider_specific_input: RemoveDisksProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - remove_disks_provider_specific_input, vm_disks_uris: Vec::new(), vm_managed_disks_ids: Vec::new(), } @@ -1284,8 +1219,6 @@ impl A2aRemoveDisksInput { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -1471,9 +1404,8 @@ pub struct A2aReplicationDetails { pub recovery_capacity_reservation_group_id: Option, } impl A2aReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, fabric_object_id: None, initial_primary_zone: None, initial_primary_fabric_location: None, @@ -1649,8 +1581,6 @@ pub mod a2a_replication_details { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReplicationIntentDetails { - #[serde(flatten)] - pub replication_protection_intent_provider_specific_settings: ReplicationProtectionIntentProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -1729,12 +1659,8 @@ pub struct A2aReplicationIntentDetails { pub automation_account_authentication_type: Option, } impl A2aReplicationIntentDetails { - pub fn new( - replication_protection_intent_provider_specific_settings: ReplicationProtectionIntentProviderSpecificSettings, - recovery_availability_type: String, - ) -> Self { + pub fn new(recovery_availability_type: String) -> Self { Self { - replication_protection_intent_provider_specific_settings, fabric_object_id: None, primary_location: None, recovery_location: None, @@ -1884,8 +1810,6 @@ pub mod a2a_replication_intent_details { #[doc = "Azure specific reprotect input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The recovery container Id."] #[serde(rename = "recoveryContainerId", default, skip_serializing_if = "Option::is_none")] pub recovery_container_id: Option, @@ -1911,9 +1835,8 @@ pub struct A2aReprotectInput { pub policy_id: Option, } impl A2aReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, recovery_container_id: None, vm_disks: Vec::new(), recovery_resource_group_id: None, @@ -1926,8 +1849,6 @@ impl A2aReprotectInput { #[doc = "A2A specific switch protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aSwitchProtectionInput { - #[serde(flatten)] - pub switch_protection_provider_specific_input: SwitchProtectionProviderSpecificInput, #[doc = "The recovery container Id."] #[serde(rename = "recoveryContainerId", default, skip_serializing_if = "Option::is_none")] pub recovery_container_id: Option, @@ -1979,9 +1900,8 @@ pub struct A2aSwitchProtectionInput { pub disk_encryption_info: Option, } impl A2aSwitchProtectionInput { - pub fn new(switch_protection_provider_specific_input: SwitchProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - switch_protection_provider_specific_input, recovery_container_id: None, vm_disks: Vec::new(), vm_managed_disks: Vec::new(), @@ -2001,8 +1921,6 @@ impl A2aSwitchProtectionInput { #[doc = "A2A provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -2011,9 +1929,8 @@ pub struct A2aTestFailoverInput { pub cloud_service_creation_option: Option, } impl A2aTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, recovery_point_id: None, cloud_service_creation_option: None, } @@ -2022,8 +1939,6 @@ impl A2aTestFailoverInput { #[doc = "A2A provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -2032,9 +1947,8 @@ pub struct A2aUnplannedFailoverInput { pub cloud_service_creation_option: Option, } impl A2aUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, recovery_point_id: None, cloud_service_creation_option: None, } @@ -2098,8 +2012,6 @@ pub mod a2a_unprotected_disk_details { #[doc = "A2A update protection container mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUpdateContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -2111,11 +2023,8 @@ pub struct A2aUpdateContainerMappingInput { pub automation_account_authentication_type: Option, } impl A2aUpdateContainerMappingInput { - pub fn new( - replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, - ) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_update_container_mapping_input, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -2209,8 +2118,6 @@ pub mod a2a_update_container_mapping_input { #[doc = "InMage Azure V2 input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The target cloud service ARM Id (for V1)."] #[serde(rename = "recoveryCloudServiceId", default, skip_serializing_if = "Option::is_none")] pub recovery_cloud_service_id: Option, @@ -2245,9 +2152,8 @@ pub struct A2aUpdateReplicationProtectedItemInput { pub recovery_capacity_reservation_group_id: Option, } impl A2aUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_cloud_service_id: None, recovery_resource_group_id: None, managed_disk_update_details: Vec::new(), @@ -2440,14 +2346,6 @@ impl AddDisksInputProperties { Self { provider_specific_details } } } -#[doc = "Add Disks provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddDisksProviderSpecificInput {} -impl AddDisksProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2691,14 +2589,6 @@ impl ApplianceQueryParameter { Self::default() } } -#[doc = "Appliance specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ApplianceSpecificDetails {} -impl ApplianceSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2734,14 +2624,6 @@ impl ApplyRecoveryPointInputProperties { } } } -#[doc = "Provider specific input for apply recovery point."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ApplyRecoveryPointProviderSpecificInput {} -impl ApplyRecoveryPointProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2768,8 +2650,6 @@ impl AsrJobDetails { #[doc = "This class represents the task details for an automation runbook."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationRunbookTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The recovery plan task name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2799,9 +2679,8 @@ pub struct AutomationRunbookTaskDetails { pub is_primary_side_script: Option, } impl AutomationRunbookTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, cloud_service_name: None, subscription_id: None, @@ -2817,25 +2696,18 @@ impl AutomationRunbookTaskDetails { #[doc = "Fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The Location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, } impl AzureFabricCreationInput { - pub fn new(fabric_specific_creation_input: FabricSpecificCreationInput) -> Self { - Self { - fabric_specific_creation_input, - location: None, - } + pub fn new() -> Self { + Self { location: None } } } #[doc = "Azure Fabric Specific Details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The Location for the Azure fabric."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -2864,9 +2736,8 @@ pub struct AzureFabricSpecificDetails { pub extended_locations: Vec, } impl AzureFabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, location: None, container_ids: Vec::new(), zones: Vec::new(), @@ -2877,25 +2748,18 @@ impl AzureFabricSpecificDetails { #[doc = "Create network mappings input properties/behavior specific to Azure to Azure Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, #[doc = "The primary azure vnet Id."] #[serde(rename = "primaryNetworkId")] pub primary_network_id: String, } impl AzureToAzureCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, primary_network_id: String) -> Self { - Self { - fabric_specific_create_network_mapping_input, - primary_network_id, - } + pub fn new(primary_network_id: String) -> Self { + Self { primary_network_id } } } #[doc = "A2A Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, #[doc = "The primary fabric location."] #[serde(rename = "primaryFabricLocation", default, skip_serializing_if = "Option::is_none")] pub primary_fabric_location: Option, @@ -2904,9 +2768,8 @@ pub struct AzureToAzureNetworkMappingSettings { pub recovery_fabric_location: Option, } impl AzureToAzureNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { + pub fn new() -> Self { Self { - network_mapping_fabric_specific_settings, primary_fabric_location: None, recovery_fabric_location: None, } @@ -2915,18 +2778,13 @@ impl AzureToAzureNetworkMappingSettings { #[doc = "Updates network mappings input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, #[doc = "The primary azure vnet Id."] #[serde(rename = "primaryNetworkId", default, skip_serializing_if = "Option::is_none")] pub primary_network_id: Option, } impl AzureToAzureUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - primary_network_id: None, - } + pub fn new() -> Self { + Self { primary_network_id: None } } } #[doc = "Azure to Azure VM synced configuration details."] @@ -3003,14 +2861,6 @@ impl ComputeSizeErrorDetails { Self::default() } } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ConfigurationSettings {} -impl ConfigurationSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3057,8 +2907,6 @@ impl ConfigureAlertRequestProperties { #[doc = "This class contains monitoring details of all the inconsistent Protected Entities in Vmm."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ConsistencyCheckTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The list of inconsistent Vm details."] #[serde( rename = "vmDetails", @@ -3069,11 +2917,8 @@ pub struct ConsistencyCheckTaskDetails { pub vm_details: Vec, } impl ConsistencyCheckTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { - Self { - task_type_details, - vm_details: Vec::new(), - } + pub fn new() -> Self { + Self { vm_details: Vec::new() } } } #[doc = "Create network mappings input."] @@ -3216,14 +3061,6 @@ impl CreateProtectionIntentProperties { Self::default() } } -#[doc = "Create protection intent provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateProtectionIntentProviderSpecificDetails {} -impl CreateProtectionIntentProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3465,14 +3302,6 @@ pub mod disable_protection_input_properties { } } } -#[doc = "Disable protection provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DisableProtectionProviderSpecificInput {} -impl DisableProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3710,14 +3539,6 @@ impl EnableMigrationInputProperties { } } } -#[doc = "Enable migration provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnableMigrationProviderSpecificInput {} -impl EnableMigrationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3754,14 +3575,6 @@ impl EnableProtectionInputProperties { Self::default() } } -#[doc = "Enable protection provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnableProtectionProviderSpecificInput {} -impl EnableProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3879,14 +3692,6 @@ impl EventProperties { Self::default() } } -#[doc = "Model class for provider specific details for an event."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventProviderSpecificDetails {} -impl EventProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3935,14 +3740,6 @@ impl EventQueryParameter { Self::default() } } -#[doc = "Model class for event specific details for an event."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventSpecificDetails {} -impl EventSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3952,33 +3749,25 @@ pub enum EventSpecificDetailsUnion { #[doc = "Existing storage account input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingProtectionProfile { - #[serde(flatten)] - pub protection_profile_custom_details: ProtectionProfileCustomDetails, #[doc = "The protection profile Arm Id. Throw error, if resource does not exists."] #[serde(rename = "protectionProfileId")] pub protection_profile_id: String, } impl ExistingProtectionProfile { - pub fn new(protection_profile_custom_details: ProtectionProfileCustomDetails, protection_profile_id: String) -> Self { - Self { - protection_profile_custom_details, - protection_profile_id, - } + pub fn new(protection_profile_id: String) -> Self { + Self { protection_profile_id } } } #[doc = "Existing recovery availability set input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryAvailabilitySet { - #[serde(flatten)] - pub recovery_availability_set_custom_details: RecoveryAvailabilitySetCustomDetails, #[doc = "The recovery availability set Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryAvailabilitySetId", default, skip_serializing_if = "Option::is_none")] pub recovery_availability_set_id: Option, } impl ExistingRecoveryAvailabilitySet { - pub fn new(recovery_availability_set_custom_details: RecoveryAvailabilitySetCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_availability_set_custom_details, recovery_availability_set_id: None, } } @@ -3986,16 +3775,13 @@ impl ExistingRecoveryAvailabilitySet { #[doc = "Existing recovery proximity placement group input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryProximityPlacementGroup { - #[serde(flatten)] - pub recovery_proximity_placement_group_custom_details: RecoveryProximityPlacementGroupCustomDetails, #[doc = "The recovery proximity placement group Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryProximityPlacementGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_proximity_placement_group_id: Option, } impl ExistingRecoveryProximityPlacementGroup { - pub fn new(recovery_proximity_placement_group_custom_details: RecoveryProximityPlacementGroupCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_proximity_placement_group_custom_details, recovery_proximity_placement_group_id: None, } } @@ -4003,16 +3789,13 @@ impl ExistingRecoveryProximityPlacementGroup { #[doc = "Existing recovery resource group input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryRecoveryResourceGroup { - #[serde(flatten)] - pub recovery_resource_group_custom_details: RecoveryResourceGroupCustomDetails, #[doc = "The recovery resource group Id. Valid for V2 scenarios."] #[serde(rename = "recoveryResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_resource_group_id: Option, } impl ExistingRecoveryRecoveryResourceGroup { - pub fn new(recovery_resource_group_custom_details: RecoveryResourceGroupCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_resource_group_custom_details, recovery_resource_group_id: None, } } @@ -4020,8 +3803,6 @@ impl ExistingRecoveryRecoveryResourceGroup { #[doc = "Existing recovery virtual network input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryVirtualNetwork { - #[serde(flatten)] - pub recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, #[doc = "The recovery virtual network Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryVirtualNetworkId")] pub recovery_virtual_network_id: String, @@ -4030,9 +3811,8 @@ pub struct ExistingRecoveryVirtualNetwork { pub recovery_subnet_name: Option, } impl ExistingRecoveryVirtualNetwork { - pub fn new(recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, recovery_virtual_network_id: String) -> Self { + pub fn new(recovery_virtual_network_id: String) -> Self { Self { - recovery_virtual_network_custom_details, recovery_virtual_network_id, recovery_subnet_name: None, } @@ -4041,18 +3821,13 @@ impl ExistingRecoveryVirtualNetwork { #[doc = "Existing storage account input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingStorageAccount { - #[serde(flatten)] - pub storage_account_custom_details: StorageAccountCustomDetails, #[doc = "The storage account Arm Id. Throw error, if resource does not exists."] #[serde(rename = "azureStorageAccountId")] pub azure_storage_account_id: String, } impl ExistingStorageAccount { - pub fn new(storage_account_custom_details: StorageAccountCustomDetails, azure_storage_account_id: String) -> Self { - Self { - storage_account_custom_details, - azure_storage_account_id, - } + pub fn new(azure_storage_account_id: String) -> Self { + Self { azure_storage_account_id } } } #[doc = "This class represents details for export jobs workflow."] @@ -4259,8 +4034,6 @@ impl FabricQueryParameter { #[doc = "This class represents the fabric replication group task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FabricReplicationGroupTaskDetails { - #[serde(flatten)] - pub job_task_details: JobTaskDetails, #[doc = "The skipped reason."] #[serde(rename = "skippedReason", default, skip_serializing_if = "Option::is_none")] pub skipped_reason: Option, @@ -4269,22 +4042,13 @@ pub struct FabricReplicationGroupTaskDetails { pub skipped_reason_string: Option, } impl FabricReplicationGroupTaskDetails { - pub fn new(job_task_details: JobTaskDetails) -> Self { + pub fn new() -> Self { Self { - job_task_details, skipped_reason: None, skipped_reason_string: None, } } } -#[doc = "Input details specific to fabrics during Network Mapping."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificCreateNetworkMappingInput {} -impl FabricSpecificCreateNetworkMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4293,14 +4057,6 @@ pub enum FabricSpecificCreateNetworkMappingInputUnion { VmmToAzure(VmmToAzureCreateNetworkMappingInput), VmmToVmm(VmmToVmmCreateNetworkMappingInput), } -#[doc = "Fabric provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificCreationInput {} -impl FabricSpecificCreationInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4309,14 +4065,6 @@ pub enum FabricSpecificCreationInputUnion { InMageRcm(InMageRcmFabricCreationInput), VMwareV2(VMwareV2FabricCreationInput), } -#[doc = "Fabric specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificDetails {} -impl FabricSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4329,14 +4077,6 @@ pub enum FabricSpecificDetailsUnion { #[serde(rename = "VMM")] Vmm(VmmDetails), } -#[doc = "Input details specific to fabrics during Network Mapping."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificUpdateNetworkMappingInput {} -impl FabricSpecificUpdateNetworkMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4729,8 +4469,6 @@ impl HyperVHostDetails { #[doc = "Model class for event details of a HyperVReplica E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplica2012EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -4745,9 +4483,8 @@ pub struct HyperVReplica2012EventDetails { pub remote_fabric_name: Option, } impl HyperVReplica2012EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -4758,8 +4495,6 @@ impl HyperVReplica2012EventDetails { #[doc = "Model class for event details of a HyperVReplica blue E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplica2012R2EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -4774,9 +4509,8 @@ pub struct HyperVReplica2012R2EventDetails { pub remote_fabric_name: Option, } impl HyperVReplica2012R2EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -4787,8 +4521,6 @@ impl HyperVReplica2012R2EventDetails { #[doc = "ApplyRecoveryPoint input specific to HyperVReplicaAzure provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, #[doc = "The primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -4797,9 +4529,8 @@ pub struct HyperVReplicaAzureApplyRecoveryPointInput { pub secondary_kek_certificate_pfx: Option, } impl HyperVReplicaAzureApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - apply_recovery_point_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, } @@ -4874,8 +4605,6 @@ pub mod hyper_v_replica_azure_disk_input_details { #[doc = "HyperVReplicaAzure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The Hyper-V host VM Id."] #[serde(rename = "hvHostVmId", default, skip_serializing_if = "Option::is_none")] pub hv_host_vm_id: Option, @@ -4972,9 +4701,8 @@ pub struct HyperVReplicaAzureEnableProtectionInput { pub target_nic_tags: Option, } impl HyperVReplicaAzureEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, hv_host_vm_id: None, vm_name: None, os_type: None, @@ -5136,8 +4864,6 @@ pub mod hyper_v_replica_azure_enable_protection_input { #[doc = "Model class for event details of a HyperVReplica E2A event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -5149,9 +4875,8 @@ pub struct HyperVReplicaAzureEventDetails { pub remote_container_name: Option, } impl HyperVReplicaAzureEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -5161,8 +4886,6 @@ impl HyperVReplicaAzureEventDetails { #[doc = "HyperVReplicaAzureFailback specific planned failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureFailbackProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "Data sync option."] #[serde(rename = "dataSyncOption", default, skip_serializing_if = "Option::is_none")] pub data_sync_option: Option, @@ -5174,9 +4897,8 @@ pub struct HyperVReplicaAzureFailbackProviderInput { pub provider_id_for_alternate_recovery: Option, } impl HyperVReplicaAzureFailbackProviderInput { - pub fn new(planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - planned_failover_provider_specific_failover_input, data_sync_option: None, recovery_vm_creation_option: None, provider_id_for_alternate_recovery: None, @@ -5207,8 +4929,6 @@ impl HyperVReplicaAzureManagedDiskDetails { #[doc = "HyperVReplicaAzure specific planned failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePlannedFailoverProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5220,9 +4940,8 @@ pub struct HyperVReplicaAzurePlannedFailoverProviderInput { pub recovery_point_id: Option, } impl HyperVReplicaAzurePlannedFailoverProviderInput { - pub fn new(planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - planned_failover_provider_specific_failover_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5232,8 +4951,6 @@ impl HyperVReplicaAzurePlannedFailoverProviderInput { #[doc = "Hyper-V Replica Azure specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration (in hours) to which point the recovery history needs to be maintained."] #[serde(rename = "recoveryPointHistoryDurationInHours", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_duration_in_hours: Option, @@ -5258,9 +4975,8 @@ pub struct HyperVReplicaAzurePolicyDetails { pub active_storage_account_id: Option, } impl HyperVReplicaAzurePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_duration_in_hours: None, application_consistent_snapshot_frequency_in_hours: None, replication_interval: None, @@ -5273,8 +4989,6 @@ impl HyperVReplicaAzurePolicyDetails { #[doc = "Hyper-V Replica Azure specific input for creating a protection profile."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration (in hours) to which point the recovery history needs to be maintained."] #[serde(rename = "recoveryPointHistoryDuration", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_duration: Option, @@ -5301,9 +5015,8 @@ pub struct HyperVReplicaAzurePolicyInput { pub storage_accounts: Vec, } impl HyperVReplicaAzurePolicyInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_duration: None, application_consistent_snapshot_frequency_in_hours: None, replication_interval: None, @@ -5315,8 +5028,6 @@ impl HyperVReplicaAzurePolicyInput { #[doc = "Hyper V Replica Azure provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "Azure VM Disk details."] #[serde( rename = "azureVmDiskDetails", @@ -5433,9 +5144,8 @@ pub struct HyperVReplicaAzureReplicationDetails { pub protected_managed_disks: Vec, } impl HyperVReplicaAzureReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, azure_vm_disk_details: Vec::new(), recovery_azure_vm_name: None, recovery_azure_vm_size: None, @@ -5475,8 +5185,6 @@ impl HyperVReplicaAzureReplicationDetails { #[doc = "Azure specific reprotect input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Hyper-V host Vm Id."] #[serde(rename = "hvHostVmId", default, skip_serializing_if = "Option::is_none")] pub hv_host_vm_id: Option, @@ -5497,9 +5205,8 @@ pub struct HyperVReplicaAzureReprotectInput { pub log_storage_account_id: Option, } impl HyperVReplicaAzureReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, hv_host_vm_id: None, vm_name: None, os_type: None, @@ -5512,8 +5219,6 @@ impl HyperVReplicaAzureReprotectInput { #[doc = "HvrA provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5525,9 +5230,8 @@ pub struct HyperVReplicaAzureTestFailoverInput { pub recovery_point_id: Option, } impl HyperVReplicaAzureTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5537,8 +5241,6 @@ impl HyperVReplicaAzureTestFailoverInput { #[doc = "HvrA provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5550,9 +5252,8 @@ pub struct HyperVReplicaAzureUnplannedFailoverInput { pub recovery_point_id: Option, } impl HyperVReplicaAzureUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5562,8 +5263,6 @@ impl HyperVReplicaAzureUnplannedFailoverInput { #[doc = "HyperV replica Azure input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The recovery Azure resource group Id for classic deployment."] #[serde(rename = "recoveryAzureV1ResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_v1_resource_group_id: Option, @@ -5604,9 +5303,8 @@ pub struct HyperVReplicaAzureUpdateReplicationProtectedItemInput { pub vm_disks: Vec, } impl HyperVReplicaAzureUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_azure_v1_resource_group_id: None, recovery_azure_v2_resource_group_id: None, use_managed_disks: None, @@ -5670,8 +5368,6 @@ pub mod hyper_v_replica_azure_update_replication_protected_item_input { #[doc = "Abstract model class for event details of a HyperVReplica E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBaseEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -5686,9 +5382,8 @@ pub struct HyperVReplicaBaseEventDetails { pub remote_fabric_name: Option, } impl HyperVReplicaBaseEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -5699,8 +5394,6 @@ impl HyperVReplicaBaseEventDetails { #[doc = "Base class for HyperVReplica policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBasePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -5737,9 +5430,8 @@ pub struct HyperVReplicaBasePolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaBasePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -5756,8 +5448,6 @@ impl HyperVReplicaBasePolicyDetails { #[doc = "Hyper V replica provider specific settings base class."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBaseReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -5791,9 +5481,8 @@ pub struct HyperVReplicaBaseReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaBaseReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -5807,8 +5496,6 @@ impl HyperVReplicaBaseReplicationDetails { #[doc = "Hyper-V Replica Blue specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBluePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the replication interval."] #[serde(rename = "replicationFrequencyInSeconds", default, skip_serializing_if = "Option::is_none")] pub replication_frequency_in_seconds: Option, @@ -5848,9 +5535,8 @@ pub struct HyperVReplicaBluePolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaBluePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, replication_frequency_in_seconds: None, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, @@ -5885,8 +5571,6 @@ impl HyperVReplicaBluePolicyInput { #[doc = "HyperV replica 2012 R2 (Blue) replication details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBlueReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -5920,9 +5604,8 @@ pub struct HyperVReplicaBlueReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaBlueReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -5936,8 +5619,6 @@ impl HyperVReplicaBlueReplicationDetails { #[doc = "Hyper-V Replica Blue specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -5974,9 +5655,8 @@ pub struct HyperVReplicaPolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -5993,8 +5673,6 @@ impl HyperVReplicaPolicyDetails { #[doc = "Hyper-V Replica specific policy Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaPolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -6031,9 +5709,8 @@ pub struct HyperVReplicaPolicyInput { pub replica_deletion: Option, } impl HyperVReplicaPolicyInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -6055,8 +5732,6 @@ pub enum HyperVReplicaPolicyInputUnion { #[doc = "HyperV replica 2012 replication details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -6090,9 +5765,8 @@ pub struct HyperVReplicaReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -6106,8 +5780,6 @@ impl HyperVReplicaReplicationDetails { #[doc = "HyperVSite fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVSiteDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The list of Hyper-V hosts associated with the fabric."] #[serde( rename = "hyperVHosts", @@ -6118,18 +5790,13 @@ pub struct HyperVSiteDetails { pub hyper_v_hosts: Vec, } impl HyperVSiteDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { - Self { - fabric_specific_details, - hyper_v_hosts: Vec::new(), - } + pub fn new() -> Self { + Self { hyper_v_hosts: Vec::new() } } } #[doc = "Single Host fabric provider specific VM settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVVirtualMachineDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, #[doc = "The source id of the object."] #[serde(rename = "sourceItemId", default, skip_serializing_if = "Option::is_none")] pub source_item_id: Option, @@ -6161,9 +5828,8 @@ pub struct HyperVVirtualMachineDetails { pub hyper_v_host_id: Option, } impl HyperVVirtualMachineDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { + pub fn new() -> Self { Self { - configuration_settings, source_item_id: None, generation: None, os_details: None, @@ -6464,15 +6130,10 @@ impl InMageAgentDetails { } #[doc = "ApplyRecoveryPoint input specific to InMageAzureV2 provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct InMageAzureV2ApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct InMageAzureV2ApplyRecoveryPointInput {} impl InMageAzureV2ApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "Disk input details."] @@ -6544,8 +6205,6 @@ pub mod in_mage_azure_v2_disk_input_details { #[doc = "VMware Azure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2EnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The Master target Id."] #[serde(rename = "masterTargetId", default, skip_serializing_if = "Option::is_none")] pub master_target_id: Option, @@ -6631,9 +6290,8 @@ pub struct InMageAzureV2EnableProtectionInput { pub target_nic_tags: Option, } impl InMageAzureV2EnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, master_target_id: None, process_server_id: None, storage_account_id: None, @@ -6793,8 +6451,6 @@ pub mod in_mage_azure_v2_enable_protection_input { #[doc = "Model class for event details of a VMwareAzureV2 event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "InMage Event type. Takes one of the values of InMageDataContract.InMageMonitoringEventType."] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, @@ -6818,9 +6474,8 @@ pub struct InMageAzureV2EventDetails { pub site_name: Option, } impl InMageAzureV2EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, event_type: None, category: None, component: None, @@ -6858,8 +6513,6 @@ impl InMageAzureV2ManagedDiskDetails { #[doc = "InMage Azure v2 specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2PolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The crash consistent snapshot frequency in minutes."] #[serde(rename = "crashConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub crash_consistent_frequency_in_minutes: Option, @@ -6877,9 +6530,8 @@ pub struct InMageAzureV2PolicyDetails { pub multi_vm_sync_status: Option, } impl InMageAzureV2PolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, crash_consistent_frequency_in_minutes: None, recovery_point_threshold_in_minutes: None, recovery_point_history: None, @@ -6891,8 +6543,6 @@ impl InMageAzureV2PolicyDetails { #[doc = "VMWare Azure specific policy Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2PolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -6910,12 +6560,8 @@ pub struct InMageAzureV2PolicyInput { pub multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus, } impl InMageAzureV2PolicyInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_threshold_in_minutes: None, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, @@ -7045,16 +6691,13 @@ impl InMageAzureV2ProtectedDiskDetails { #[doc = "InMage Azure V2 provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2RecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "isMultiVmSyncPoint", default, skip_serializing_if = "Option::is_none")] pub is_multi_vm_sync_point: Option, } impl InMageAzureV2RecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, is_multi_vm_sync_point: None, } } @@ -7062,8 +6705,6 @@ impl InMageAzureV2RecoveryPointDetails { #[doc = "InMageAzureV2 provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2ReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The infrastructure VM Id."] #[serde(rename = "infrastructureVmId", default, skip_serializing_if = "Option::is_none")] pub infrastructure_vm_id: Option, @@ -7301,9 +6942,8 @@ pub struct InMageAzureV2ReplicationDetails { pub switch_provider_details: Option, } impl InMageAzureV2ReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, infrastructure_vm_id: None, v_center_infrastructure_id: None, protection_stage: None, @@ -7377,8 +7017,6 @@ impl InMageAzureV2ReplicationDetails { #[doc = "InMageAzureV2 specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2ReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Master target Id."] #[serde(rename = "masterTargetId", default, skip_serializing_if = "Option::is_none")] pub master_target_id: Option, @@ -7407,9 +7045,8 @@ pub struct InMageAzureV2ReprotectInput { pub disks_to_include: Vec, } impl InMageAzureV2ReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, master_target_id: None, process_server_id: None, storage_account_id: None, @@ -7471,8 +7108,6 @@ impl InMageAzureV2SwitchProviderDetails { #[doc = "Provider specific input for InMageAzureV2 switch provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2SwitchProviderProviderInput { - #[serde(flatten)] - pub switch_provider_provider_specific_input: SwitchProviderProviderSpecificInput, #[doc = "The target vault Id."] #[serde(rename = "targetVaultID")] pub target_vault_id: String, @@ -7484,14 +7119,8 @@ pub struct InMageAzureV2SwitchProviderProviderInput { pub target_appliance_id: String, } impl InMageAzureV2SwitchProviderProviderInput { - pub fn new( - switch_provider_provider_specific_input: SwitchProviderProviderSpecificInput, - target_vault_id: String, - target_fabric_id: String, - target_appliance_id: String, - ) -> Self { + pub fn new(target_vault_id: String, target_fabric_id: String, target_appliance_id: String) -> Self { Self { - switch_provider_provider_specific_input, target_vault_id, target_fabric_id, target_appliance_id, @@ -7501,42 +7130,30 @@ impl InMageAzureV2SwitchProviderProviderInput { #[doc = "InMageAzureV2 provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2TestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, } impl InMageAzureV2TestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { - Self { - test_failover_provider_specific_input, - recovery_point_id: None, - } + pub fn new() -> Self { + Self { recovery_point_id: None } } } #[doc = "InMageAzureV2 provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2UnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, } impl InMageAzureV2UnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { - Self { - unplanned_failover_provider_specific_input, - recovery_point_id: None, - } + pub fn new() -> Self { + Self { recovery_point_id: None } } } #[doc = "InMage Azure V2 input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2UpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The recovery Azure resource group Id for classic deployment."] #[serde(rename = "recoveryAzureV1ResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_v1_resource_group_id: Option, @@ -7574,9 +7191,8 @@ pub struct InMageAzureV2UpdateReplicationProtectedItemInput { pub vm_disks: Vec, } impl InMageAzureV2UpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_azure_v1_resource_group_id: None, recovery_azure_v2_resource_group_id: None, use_managed_disks: None, @@ -7639,8 +7255,6 @@ pub mod in_mage_azure_v2_update_replication_protected_item_input { #[doc = "Base class for the policies of providers using InMage replication."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageBasePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7655,9 +7269,8 @@ pub struct InMageBasePolicyDetails { pub multi_vm_sync_status: Option, } impl InMageBasePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -7668,16 +7281,13 @@ impl InMageBasePolicyDetails { #[doc = "InMage disable protection provider specific input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageDisableProtectionProviderSpecificInput { - #[serde(flatten)] - pub disable_protection_provider_specific_input: DisableProtectionProviderSpecificInput, #[doc = "A value indicating whether the replica VM should be destroyed or retained. Values from Delete and Retain."] #[serde(rename = "replicaVmDeletionStatus", default, skip_serializing_if = "Option::is_none")] pub replica_vm_deletion_status: Option, } impl InMageDisableProtectionProviderSpecificInput { - pub fn new(disable_protection_provider_specific_input: DisableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - disable_protection_provider_specific_input, replica_vm_deletion_status: None, } } @@ -7754,8 +7364,6 @@ impl InMageDiskSignatureExclusionOptions { #[doc = "VMware Azure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The VM Name."] #[serde(rename = "vmFriendlyName", default, skip_serializing_if = "Option::is_none")] pub vm_friendly_name: Option, @@ -7794,7 +7402,6 @@ pub struct InMageEnableProtectionInput { } impl InMageEnableProtectionInput { pub fn new( - enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, master_target_id: String, process_server_id: String, retention_drive: String, @@ -7802,7 +7409,6 @@ impl InMageEnableProtectionInput { multi_vm_group_name: String, ) -> Self { Self { - enable_protection_provider_specific_input, vm_friendly_name: None, master_target_id, process_server_id, @@ -7846,8 +7452,6 @@ impl InMageFabricSwitchProviderBlockingErrorDetails { #[doc = "InMage specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMagePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7862,9 +7466,8 @@ pub struct InMagePolicyDetails { pub multi_vm_sync_status: Option, } impl InMagePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -7875,8 +7478,6 @@ impl InMagePolicyDetails { #[doc = "VMWare Azure specific protection profile Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMagePolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7891,12 +7492,8 @@ pub struct InMagePolicyInput { pub multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus, } impl InMagePolicyInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -8096,8 +7693,6 @@ impl InMageRcmApplianceDetails { #[doc = "InMageRcm appliance specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmApplianceSpecificDetails { - #[serde(flatten)] - pub appliance_specific_details: ApplianceSpecificDetails, #[doc = "The list of appliances."] #[serde( default, @@ -8107,28 +7702,20 @@ pub struct InMageRcmApplianceSpecificDetails { pub appliances: Vec, } impl InMageRcmApplianceSpecificDetails { - pub fn new(appliance_specific_details: ApplianceSpecificDetails) -> Self { - Self { - appliance_specific_details, - appliances: Vec::new(), - } + pub fn new() -> Self { + Self { appliances: Vec::new() } } } #[doc = "ApplyRecoveryPoint input specific to InMageRcm provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, #[doc = "The recovery point Id."] #[serde(rename = "recoveryPointId")] pub recovery_point_id: String, } impl InMageRcmApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, recovery_point_id: String) -> Self { - Self { - apply_recovery_point_provider_specific_input, - recovery_point_id, - } + pub fn new(recovery_point_id: String) -> Self { + Self { recovery_point_id } } } #[doc = "InMageRcm discovered protected VM details."] @@ -8326,8 +7913,6 @@ pub mod in_mage_rcm_disks_default_input { #[doc = "InMageRcm specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The ARM Id of discovered machine."] #[serde(rename = "fabricDiscoveryMachineId")] pub fabric_discovery_machine_id: String, @@ -8389,14 +7974,8 @@ pub struct InMageRcmEnableProtectionInput { pub multi_vm_group_name: Option, } impl InMageRcmEnableProtectionInput { - pub fn new( - enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, - fabric_discovery_machine_id: String, - target_resource_group_id: String, - process_server_id: String, - ) -> Self { + pub fn new(fabric_discovery_machine_id: String, target_resource_group_id: String, process_server_id: String) -> Self { Self { - enable_protection_provider_specific_input, fabric_discovery_machine_id, disks_to_include: Vec::new(), disks_default: None, @@ -8463,8 +8042,6 @@ pub mod in_mage_rcm_enable_protection_input { #[doc = "Event details for InMageRcm provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -8491,9 +8068,8 @@ pub struct InMageRcmEventDetails { pub component_display_name: Option, } impl InMageRcmEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, vm_name: None, latest_agent_version: None, @@ -8508,8 +8084,6 @@ impl InMageRcmEventDetails { #[doc = "InMageRcm fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId")] pub vmware_site_id: String, @@ -8521,14 +8095,8 @@ pub struct InMageRcmFabricCreationInput { pub source_agent_identity: IdentityProviderInput, } impl InMageRcmFabricCreationInput { - pub fn new( - fabric_specific_creation_input: FabricSpecificCreationInput, - vmware_site_id: String, - physical_site_id: String, - source_agent_identity: IdentityProviderInput, - ) -> Self { + pub fn new(vmware_site_id: String, physical_site_id: String, source_agent_identity: IdentityProviderInput) -> Self { Self { - fabric_specific_creation_input, vmware_site_id, physical_site_id, source_agent_identity, @@ -8538,8 +8106,6 @@ impl InMageRcmFabricCreationInput { #[doc = "InMageRcm fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -8629,9 +8195,8 @@ pub struct InMageRcmFabricSpecificDetails { pub agent_details: Vec, } impl InMageRcmFabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, vmware_site_id: None, physical_site_id: None, service_endpoint: None, @@ -8735,8 +8300,6 @@ impl InMageRcmFailbackDiscoveredProtectedVmDetails { #[doc = "Event details for InMageRcmFailback provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -8754,9 +8317,8 @@ pub struct InMageRcmFailbackEventDetails { pub component_display_name: Option, } impl InMageRcmFailbackEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, vm_name: None, appliance_name: None, @@ -8830,21 +8392,13 @@ impl InMageRcmFailbackNicDetails { #[doc = "Provider specific input for InMageRcmFailback failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPlannedFailoverProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType, } impl InMageRcmFailbackPlannedFailoverProviderInput { - pub fn new( - planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, - recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType, - ) -> Self { - Self { - planned_failover_provider_specific_failover_input, - recovery_point_type, - } + pub fn new(recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType) -> Self { + Self { recovery_point_type } } } pub mod in_mage_rcm_failback_planned_failover_provider_input { @@ -8890,8 +8444,6 @@ pub mod in_mage_rcm_failback_planned_failover_provider_input { #[doc = "InMageRcmFailback policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The crash consistent snapshot frequency (in minutes)."] #[serde(rename = "crashConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub crash_consistent_frequency_in_minutes: Option, @@ -8900,9 +8452,8 @@ pub struct InMageRcmFailbackPolicyCreationInput { pub app_consistent_frequency_in_minutes: Option, } impl InMageRcmFailbackPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, } @@ -8911,8 +8462,6 @@ impl InMageRcmFailbackPolicyCreationInput { #[doc = "InMageRcm failback specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The app consistent snapshot frequency in minutes."] #[serde(rename = "appConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub app_consistent_frequency_in_minutes: Option, @@ -8921,9 +8470,8 @@ pub struct InMageRcmFailbackPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl InMageRcmFailbackPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, } @@ -8974,8 +8522,6 @@ impl InMageRcmFailbackProtectedDiskDetails { #[doc = "InMageRcmFailback provider specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The virtual machine internal identifier."] #[serde(rename = "internalIdentifier", default, skip_serializing_if = "Option::is_none")] pub internal_identifier: Option, @@ -9079,9 +8625,8 @@ pub struct InMageRcmFailbackReplicationDetails { pub is_agent_registration_successful_after_failover: Option, } impl InMageRcmFailbackReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, internal_identifier: None, azure_virtual_machine_id: None, multi_vm_group_name: None, @@ -9284,8 +8829,6 @@ pub mod in_mage_rcm_failback_replication_details { #[doc = "InMageRcmFailback specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The process server Id."] #[serde(rename = "processServerId")] pub process_server_id: String, @@ -9297,13 +8840,8 @@ pub struct InMageRcmFailbackReprotectInput { pub policy_id: String, } impl InMageRcmFailbackReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - process_server_id: String, - policy_id: String, - ) -> Self { + pub fn new(process_server_id: String, policy_id: String) -> Self { Self { - reverse_replication_provider_specific_input, process_server_id, run_as_account_id: None, policy_id, @@ -9663,8 +9201,6 @@ impl InMageRcmNicInput { #[doc = "InMageRcm policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -9679,9 +9215,8 @@ pub struct InMageRcmPolicyCreationInput { pub enable_multi_vm_sync: Option, } impl InMageRcmPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_in_minutes: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -9692,8 +9227,6 @@ impl InMageRcmPolicyCreationInput { #[doc = "InMageRcm specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -9708,9 +9241,8 @@ pub struct InMageRcmPolicyDetails { pub enable_multi_vm_sync: Option, } impl InMageRcmPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_in_minutes: None, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, @@ -9820,16 +9352,13 @@ pub mod in_mage_rcm_protected_disk_details { #[doc = "InMageRcm provider specific container mapping details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "A value indicating whether the flag for enable agent auto upgrade."] #[serde(rename = "enableAgentAutoUpgrade", default, skip_serializing_if = "Option::is_none")] pub enable_agent_auto_upgrade: Option, } impl InMageRcmProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, enable_agent_auto_upgrade: None, } } @@ -9837,16 +9366,13 @@ impl InMageRcmProtectionContainerMappingDetails { #[doc = "InMageRcm provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmRecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "isMultiVmSyncPoint", default, skip_serializing_if = "Option::is_none")] pub is_multi_vm_sync_point: Option, } impl InMageRcmRecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, is_multi_vm_sync_point: None, } } @@ -9854,8 +9380,6 @@ impl InMageRcmRecoveryPointDetails { #[doc = "InMageRcm provider specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The virtual machine internal identifier."] #[serde(rename = "internalIdentifier", default, skip_serializing_if = "Option::is_none")] pub internal_identifier: Option, @@ -10038,9 +9562,8 @@ pub struct InMageRcmReplicationDetails { pub discovered_vm_details: Option, } impl InMageRcmReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, internal_identifier: None, fabric_discovery_machine_id: None, multi_vm_group_name: None, @@ -10266,8 +9789,6 @@ pub mod in_mage_rcm_replication_details { #[doc = "InMageRcm specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The reprotect agent Id."] #[serde(rename = "reprotectAgentId")] pub reprotect_agent_id: String, @@ -10282,14 +9803,8 @@ pub struct InMageRcmReprotectInput { pub policy_id: Option, } impl InMageRcmReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - reprotect_agent_id: String, - datastore_name: String, - log_storage_account_id: String, - ) -> Self { + pub fn new(reprotect_agent_id: String, datastore_name: String, log_storage_account_id: String) -> Self { Self { - reverse_replication_provider_specific_input, reprotect_agent_id, datastore_name, log_storage_account_id, @@ -10379,8 +9894,6 @@ pub mod in_mage_rcm_sync_details { #[doc = "InMageRcm provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The test network Id."] #[serde(rename = "networkId", default, skip_serializing_if = "Option::is_none")] pub network_id: Option, @@ -10389,9 +9902,8 @@ pub struct InMageRcmTestFailoverInput { pub recovery_point_id: Option, } impl InMageRcmTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, network_id: None, recovery_point_id: None, } @@ -10400,8 +9912,6 @@ impl InMageRcmTestFailoverInput { #[doc = "InMageRcm provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "A value indicating whether VM is to be shutdown."] #[serde(rename = "performShutdown")] pub perform_shutdown: String, @@ -10410,9 +9920,8 @@ pub struct InMageRcmUnplannedFailoverInput { pub recovery_point_id: Option, } impl InMageRcmUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, perform_shutdown: String) -> Self { + pub fn new(perform_shutdown: String) -> Self { Self { - unplanned_failover_provider_specific_input, perform_shutdown, recovery_point_id: None, } @@ -10421,48 +9930,30 @@ impl InMageRcmUnplannedFailoverInput { #[doc = "InMageRcm provider specific input to update appliance for replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateApplianceForReplicationProtectedItemInput { - #[serde(flatten)] - pub update_appliance_for_replication_protected_item_provider_specific_input: - UpdateApplianceForReplicationProtectedItemProviderSpecificInput, #[doc = "The run as account Id."] #[serde(rename = "runAsAccountId", default, skip_serializing_if = "Option::is_none")] pub run_as_account_id: Option, } impl InMageRcmUpdateApplianceForReplicationProtectedItemInput { - pub fn new( - update_appliance_for_replication_protected_item_provider_specific_input : UpdateApplianceForReplicationProtectedItemProviderSpecificInput, - ) -> Self { - Self { - update_appliance_for_replication_protected_item_provider_specific_input, - run_as_account_id: None, - } + pub fn new() -> Self { + Self { run_as_account_id: None } } } #[doc = "InMageRcm update protection container mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, #[doc = "A value indicating whether agent auto upgrade has to be enabled."] #[serde(rename = "enableAgentAutoUpgrade")] pub enable_agent_auto_upgrade: String, } impl InMageRcmUpdateContainerMappingInput { - pub fn new( - replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, - enable_agent_auto_upgrade: String, - ) -> Self { - Self { - replication_provider_specific_update_container_mapping_input, - enable_agent_auto_upgrade, - } + pub fn new(enable_agent_auto_upgrade: String) -> Self { + Self { enable_agent_auto_upgrade } } } #[doc = "InMageRcm provider specific input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The target VM name."] #[serde(rename = "targetVmName", default, skip_serializing_if = "Option::is_none")] pub target_vm_name: Option, @@ -10503,9 +9994,8 @@ pub struct InMageRcmUpdateReplicationProtectedItemInput { pub license_type: Option, } impl InMageRcmUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, target_vm_name: None, target_vm_size: None, target_resource_group_id: None, @@ -10565,8 +10055,6 @@ pub mod in_mage_rcm_update_replication_protected_item_input { #[doc = "InMage provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The active location of the VM. If the VM is being protected from Azure, this field will take values from { Azure, OnPrem }. If the VM is being protected between two data-centers, this field will be OnPrem always."] #[serde(rename = "activeSiteType", default, skip_serializing_if = "Option::is_none")] pub active_site_type: Option, @@ -10708,9 +10196,8 @@ pub struct InMageReplicationDetails { pub total_progress_health: Option, } impl InMageReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, active_site_type: None, source_vm_cpu_count: None, source_vm_ram_size_in_mb: None, @@ -10757,8 +10244,6 @@ impl InMageReplicationDetails { #[doc = "InMageAzureV2 specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Master Target Id."] #[serde(rename = "masterTargetId")] pub master_target_id: String, @@ -10790,15 +10275,8 @@ pub struct InMageReprotectInput { pub disks_to_include: Vec, } impl InMageReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - master_target_id: String, - process_server_id: String, - retention_drive: String, - profile_id: String, - ) -> Self { + pub fn new(master_target_id: String, process_server_id: String, retention_drive: String, profile_id: String) -> Self { Self { - reverse_replication_provider_specific_input, master_target_id, process_server_id, retention_drive, @@ -10813,8 +10291,6 @@ impl InMageReprotectInput { #[doc = "Provider specific input for InMage test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -10823,9 +10299,8 @@ pub struct InMageTestFailoverInput { pub recovery_point_id: Option, } impl InMageTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, recovery_point_type: None, recovery_point_id: None, } @@ -10876,8 +10351,6 @@ pub mod in_mage_test_failover_input { #[doc = "Provider specific input for InMage unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -10886,9 +10359,8 @@ pub struct InMageUnplannedFailoverInput { pub recovery_point_id: Option, } impl InMageUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, recovery_point_type: None, recovery_point_id: None, } @@ -11381,8 +10853,6 @@ pub mod job_query_parameter { #[doc = "Model class for event details of a job status event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobStatusEventDetails { - #[serde(flatten)] - pub event_specific_details: EventSpecificDetails, #[doc = "Job arm id for the event."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -11397,9 +10867,8 @@ pub struct JobStatusEventDetails { pub affected_object_type: Option, } impl JobStatusEventDetails { - pub fn new(event_specific_details: EventSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_specific_details, job_id: None, job_friendly_name: None, job_status: None, @@ -11410,18 +10879,13 @@ impl JobStatusEventDetails { #[doc = "This class represents a task which is actually a workflow so that one can navigate to its individual drill down."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "This class contains the minimal job details required to navigate to the desired drill down."] #[serde(rename = "jobTask", default, skip_serializing_if = "Option::is_none")] pub job_task: Option, } impl JobTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { - Self { - task_type_details, - job_task: None, - } + pub fn new() -> Self { + Self { job_task: None } } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -11508,8 +10972,6 @@ impl LogicalNetworkProperties { #[doc = "This class represents the manual action task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManualActionTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -11521,9 +10983,8 @@ pub struct ManualActionTaskDetails { pub observation: Option, } impl ManualActionTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, instructions: None, observation: None, @@ -11721,14 +11182,6 @@ impl MigrateInputProperties { Self { provider_specific_details } } } -#[doc = "Migrate provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MigrateProviderSpecificInput {} -impl MigrateProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12044,14 +11497,6 @@ impl MigrationItemsQueryParameter { Self::default() } } -#[doc = "Migration provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MigrationProviderSpecificSettings {} -impl MigrationProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12250,14 +11695,6 @@ impl NetworkMappingCollection { Self::default() } } -#[doc = "Network Mapping fabric specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct NetworkMappingFabricSpecificSettings {} -impl NetworkMappingFabricSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12330,8 +11767,6 @@ impl NetworkProperties { #[doc = "New Protection profile input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NewProtectionProfile { - #[serde(flatten)] - pub protection_profile_custom_details: ProtectionProfileCustomDetails, #[doc = "The protection profile input."] #[serde(rename = "policyName")] pub policy_name: String, @@ -12349,13 +11784,8 @@ pub struct NewProtectionProfile { pub multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus, } impl NewProtectionProfile { - pub fn new( - protection_profile_custom_details: ProtectionProfileCustomDetails, - policy_name: String, - multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus, - ) -> Self { + pub fn new(policy_name: String, multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus) -> Self { Self { - protection_profile_custom_details, policy_name, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, @@ -12407,8 +11837,6 @@ pub mod new_protection_profile { #[doc = "Recovery virtual network input to create new virtual network from given source network."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NewRecoveryVirtualNetwork { - #[serde(flatten)] - pub recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, #[doc = "The name of the resource group to be used to create the recovery virtual network. If absent, target network would be created in the same resource group as target VM."] #[serde( rename = "recoveryVirtualNetworkResourceGroupName", @@ -12421,9 +11849,8 @@ pub struct NewRecoveryVirtualNetwork { pub recovery_virtual_network_name: Option, } impl NewRecoveryVirtualNetwork { - pub fn new(recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_virtual_network_custom_details, recovery_virtual_network_resource_group_name: None, recovery_virtual_network_name: None, } @@ -12593,14 +12020,6 @@ impl PlannedFailoverInputProperties { Self::default() } } -#[doc = "Provider specific failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PlannedFailoverProviderSpecificFailoverInput {} -impl PlannedFailoverProviderSpecificFailoverInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12663,14 +12082,6 @@ impl PolicyProperties { Self::default() } } -#[doc = "Base class for Provider specific details for policies."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PolicyProviderSpecificDetails {} -impl PolicyProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12688,14 +12099,6 @@ pub enum PolicyProviderSpecificDetailsUnion { InMageRcm(InMageRcmPolicyDetails), VMwareCbt(VmwareCbtPolicyDetails), } -#[doc = "Base class for provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PolicyProviderSpecificInput {} -impl PolicyProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13580,14 +12983,6 @@ impl ProtectionContainerMappingProperties { Self::default() } } -#[doc = "Container mapping provider specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProtectionContainerMappingProviderSpecificDetails {} -impl ProtectionContainerMappingProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13627,14 +13022,6 @@ impl ProtectionContainerProperties { Self::default() } } -#[doc = "Protection Profile custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProtectionProfileCustomDetails {} -impl ProtectionProfileCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -13666,14 +13053,6 @@ impl ProviderError { Self::default() } } -#[doc = "Replication provider specific recovery point details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProviderSpecificRecoveryPointDetails {} -impl ProviderSpecificRecoveryPointDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the provider type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13856,14 +13235,6 @@ pub mod rcm_proxy_details { } } } -#[doc = "Recovery Availability Set custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryAvailabilitySetCustomDetails {} -impl RecoveryAvailabilitySetCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -13887,8 +13258,6 @@ impl RecoveryPlan { #[doc = "Recovery plan A2A specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aDetails { - #[serde(flatten)] - pub recovery_plan_provider_specific_details: RecoveryPlanProviderSpecificDetails, #[doc = "The primary zone."] #[serde(rename = "primaryZone", default, skip_serializing_if = "Option::is_none")] pub primary_zone: Option, @@ -13903,9 +13272,8 @@ pub struct RecoveryPlanA2aDetails { pub recovery_extended_location: Option, } impl RecoveryPlanA2aDetails { - pub fn new(recovery_plan_provider_specific_details: RecoveryPlanProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_details, primary_zone: None, recovery_zone: None, primary_extended_location: None, @@ -13916,8 +13284,6 @@ impl RecoveryPlanA2aDetails { #[doc = "Recovery plan A2A failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType, @@ -13929,12 +13295,8 @@ pub struct RecoveryPlanA2aFailoverInput { pub multi_vm_sync_point_option: Option, } impl RecoveryPlanA2aFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, cloud_service_creation_option: None, multi_vm_sync_point_option: None, @@ -14029,8 +13391,6 @@ pub mod recovery_plan_a2a_failover_input { #[doc = "Recovery plan A2A input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_input: RecoveryPlanProviderSpecificInput, #[doc = "The primary zone."] #[serde(rename = "primaryZone", default, skip_serializing_if = "Option::is_none")] pub primary_zone: Option, @@ -14045,9 +13405,8 @@ pub struct RecoveryPlanA2aInput { pub recovery_extended_location: Option, } impl RecoveryPlanA2aInput { - pub fn new(recovery_plan_provider_specific_input: RecoveryPlanProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_input, primary_zone: None, recovery_zone: None, primary_extended_location: None, @@ -14086,14 +13445,6 @@ impl RecoveryPlanAction { } } } -#[doc = "Recovery plan action custom details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanActionDetails {} -impl RecoveryPlanActionDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values)."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14105,8 +13456,6 @@ pub enum RecoveryPlanActionDetailsUnion { #[doc = "Recovery plan Automation runbook action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanAutomationRunbookActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The runbook ARM Id."] #[serde(rename = "runbookId", default, skip_serializing_if = "Option::is_none")] pub runbook_id: Option, @@ -14118,12 +13467,8 @@ pub struct RecoveryPlanAutomationRunbookActionDetails { pub fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation, } impl RecoveryPlanAutomationRunbookActionDetails { - pub fn new( - recovery_plan_action_details: RecoveryPlanActionDetails, - fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation, - ) -> Self { + pub fn new(fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation) -> Self { Self { - recovery_plan_action_details, runbook_id: None, timeout: None, fabric_location, @@ -14311,8 +13656,6 @@ pub enum RecoveryPlanGroupTaskDetailsUnion { #[doc = "Recovery plan HVR Azure failback input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanHyperVReplicaAzureFailbackInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The data sync option."] #[serde(rename = "dataSyncOption")] pub data_sync_option: recovery_plan_hyper_v_replica_azure_failback_input::DataSyncOption, @@ -14322,12 +13665,10 @@ pub struct RecoveryPlanHyperVReplicaAzureFailbackInput { } impl RecoveryPlanHyperVReplicaAzureFailbackInput { pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, data_sync_option: recovery_plan_hyper_v_replica_azure_failback_input::DataSyncOption, recovery_vm_creation_option: recovery_plan_hyper_v_replica_azure_failback_input::RecoveryVmCreationOption, ) -> Self { Self { - recovery_plan_provider_specific_failover_input, data_sync_option, recovery_vm_creation_option, } @@ -14413,8 +13754,6 @@ pub mod recovery_plan_hyper_v_replica_azure_failback_input { #[doc = "Recovery plan HVR Azure failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanHyperVReplicaAzureFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The primary KEK certificate PFX."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -14426,9 +13765,8 @@ pub struct RecoveryPlanHyperVReplicaAzureFailoverInput { pub recovery_point_type: Option, } impl RecoveryPlanHyperVReplicaAzureFailoverInput { - pub fn new(recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_failover_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_type: None, @@ -14482,8 +13820,6 @@ pub mod recovery_plan_hyper_v_replica_azure_failover_input { #[doc = "Recovery plan InMageAzureV2 failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageAzureV2FailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType, @@ -14492,12 +13828,8 @@ pub struct RecoveryPlanInMageAzureV2FailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageAzureV2FailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14552,21 +13884,13 @@ pub mod recovery_plan_in_mage_azure_v2_failover_input { #[doc = "Recovery plan InMage failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType, } impl RecoveryPlanInMageFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType, - ) -> Self { - Self { - recovery_plan_provider_specific_failover_input, - recovery_point_type, - } + pub fn new(recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType) -> Self { + Self { recovery_point_type } } } pub mod recovery_plan_in_mage_failover_input { @@ -14614,8 +13938,6 @@ pub mod recovery_plan_in_mage_failover_input { #[doc = "Recovery plan InMageRcmFailback failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageRcmFailbackFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType, @@ -14624,12 +13946,8 @@ pub struct RecoveryPlanInMageRcmFailbackFailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageRcmFailbackFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14678,8 +13996,6 @@ pub mod recovery_plan_in_mage_rcm_failback_failover_input { #[doc = "Recovery plan InMageRcm failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageRcmFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType, @@ -14688,12 +14004,8 @@ pub struct RecoveryPlanInMageRcmFailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageRcmFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14748,18 +14060,13 @@ pub mod recovery_plan_in_mage_rcm_failover_input { #[doc = "Recovery plan manual action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanManualActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The manual action description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, } impl RecoveryPlanManualActionDetails { - pub fn new(recovery_plan_action_details: RecoveryPlanActionDetails) -> Self { - Self { - recovery_plan_action_details, - description: None, - } + pub fn new() -> Self { + Self { description: None } } } #[doc = "Recovery plan planned failover input."] @@ -14927,14 +14234,6 @@ impl RecoveryPlanProtectedItem { Self::default() } } -#[doc = "Recovery plan provider specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificDetails {} -impl RecoveryPlanProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14942,14 +14241,6 @@ pub enum RecoveryPlanProviderSpecificDetailsUnion { #[serde(rename = "A2A")] A2a(RecoveryPlanA2aDetails), } -#[doc = "Recovery plan provider specific failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificFailoverInput {} -impl RecoveryPlanProviderSpecificFailoverInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14963,14 +14254,6 @@ pub enum RecoveryPlanProviderSpecificFailoverInputUnion { InMageRcmFailback(RecoveryPlanInMageRcmFailbackFailoverInput), InMageRcm(RecoveryPlanInMageRcmFailoverInput), } -#[doc = "Recovery plan provider specific input base class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificInput {} -impl RecoveryPlanProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14981,8 +14264,6 @@ pub enum RecoveryPlanProviderSpecificInputUnion { #[doc = "Recovery plan script action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanScriptActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The script path."] pub path: String, #[doc = "The script timeout."] @@ -14993,13 +14274,8 @@ pub struct RecoveryPlanScriptActionDetails { pub fabric_location: recovery_plan_script_action_details::FabricLocation, } impl RecoveryPlanScriptActionDetails { - pub fn new( - recovery_plan_action_details: RecoveryPlanActionDetails, - path: String, - fabric_location: recovery_plan_script_action_details::FabricLocation, - ) -> Self { + pub fn new(path: String, fabric_location: recovery_plan_script_action_details::FabricLocation) -> Self { Self { - recovery_plan_action_details, path, timeout: None, fabric_location, @@ -15339,28 +14615,12 @@ impl RecoveryPointProperties { Self::default() } } -#[doc = "Recovery Proximity placement group custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryProximityPlacementGroupCustomDetails {} -impl RecoveryProximityPlacementGroupCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] pub enum RecoveryProximityPlacementGroupCustomDetailsUnion { Existing(ExistingRecoveryProximityPlacementGroup), } -#[doc = "Recovery Resource Group custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryResourceGroupCustomDetails {} -impl RecoveryResourceGroupCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -15489,14 +14749,6 @@ impl RecoveryServicesProviderProperties { Self::default() } } -#[doc = "Recovery Virtual network custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryVirtualNetworkCustomDetails {} -impl RecoveryVirtualNetworkCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -15528,14 +14780,6 @@ impl RemoveDisksInputProperties { Self::default() } } -#[doc = "Remove Disk provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RemoveDisksProviderSpecificInput {} -impl RemoveDisksProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15782,13 +15026,10 @@ impl ReplicationEligibilityResultsProperties { } #[doc = "Replication group details. This will be used in case of San."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationGroupDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, -} +pub struct ReplicationGroupDetails {} impl ReplicationGroupDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { - Self { configuration_settings } + pub fn new() -> Self { + Self {} } } #[doc = "Replication protected item."] @@ -16013,14 +15254,6 @@ impl ReplicationProtectionIntentProperties { Self::default() } } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProtectionIntentProviderSpecificSettings {} -impl ReplicationProtectionIntentProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16040,14 +15273,6 @@ impl ReplicationProviderContainerUnmappingInput { Self::default() } } -#[doc = "Provider specific input for container creation operation."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificContainerCreationInput {} -impl ReplicationProviderSpecificContainerCreationInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16058,14 +15283,6 @@ pub enum ReplicationProviderSpecificContainerCreationInputUnion { A2aCrossClusterMigration(A2aCrossClusterMigrationContainerCreationInput), VMwareCbt(VMwareCbtContainerCreationInput), } -#[doc = "Provider specific input for pairing operations."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificContainerMappingInput {} -impl ReplicationProviderSpecificContainerMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16074,14 +15291,6 @@ pub enum ReplicationProviderSpecificContainerMappingInputUnion { A2a(A2aContainerMappingInput), VMwareCbt(VMwareCbtContainerMappingInput), } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificSettings {} -impl ReplicationProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16099,14 +15308,6 @@ pub enum ReplicationProviderSpecificSettingsUnion { InMageRcm(InMageRcmReplicationDetails), InMage(InMageReplicationDetails), } -#[doc = "Provider specific input for update pairing operations."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificUpdateContainerMappingInput {} -impl ReplicationProviderSpecificUpdateContainerMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16348,14 +15549,6 @@ impl ResumeReplicationInputProperties { Self { provider_specific_details } } } -#[doc = "Resume replication provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResumeReplicationProviderSpecificInput {} -impl ResumeReplicationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16385,14 +15578,6 @@ impl ResyncInputProperties { Self { provider_specific_details } } } -#[doc = "Resync provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResyncProviderSpecificInput {} -impl ResyncProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16447,14 +15632,6 @@ impl ReverseReplicationInputProperties { Self::default() } } -#[doc = "Provider specific reverse replication input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReverseReplicationProviderSpecificInput {} -impl ReverseReplicationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16509,8 +15686,6 @@ impl RunAsAccount { #[doc = "This class represents the script action task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScriptActionTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -16525,9 +15700,8 @@ pub struct ScriptActionTaskDetails { pub is_primary_side_script: Option, } impl ScriptActionTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, path: None, output: None, @@ -16559,14 +15733,6 @@ impl ServiceError { Self::default() } } -#[doc = "Storage account custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StorageAccountCustomDetails {} -impl StorageAccountCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -16840,14 +16006,6 @@ impl SwitchProtectionJobDetails { } } } -#[doc = "Provider specific switch protection input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SwitchProtectionProviderSpecificInput {} -impl SwitchProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16882,14 +16040,6 @@ impl SwitchProviderInputProperties { Self::default() } } -#[doc = "Provider specific switch provider input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SwitchProviderProviderSpecificInput {} -impl SwitchProviderProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16990,14 +16140,6 @@ impl TargetComputeSizeProperties { Self::default() } } -#[doc = "Task details based on specific task type."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TaskTypeDetails {} -impl TaskTypeDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of task details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17106,14 +16248,6 @@ impl TestFailoverJobDetails { } } } -#[doc = "Provider specific test failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TestFailoverProviderSpecificInput {} -impl TestFailoverProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17171,14 +16305,6 @@ impl TestMigrateInputProperties { Self { provider_specific_details } } } -#[doc = "Test migrate provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TestMigrateProviderSpecificInput {} -impl TestMigrateProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17214,14 +16340,6 @@ impl UnplannedFailoverInputProperties { Self::default() } } -#[doc = "Provider specific unplanned failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UnplannedFailoverProviderSpecificInput {} -impl UnplannedFailoverProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17265,14 +16383,6 @@ impl UpdateApplianceForReplicationProtectedItemInputProperties { } } } -#[doc = "Update replication protected item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateApplianceForReplicationProtectedItemProviderSpecificInput {} -impl UpdateApplianceForReplicationProtectedItemProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17321,14 +16431,6 @@ impl UpdateMigrationItemInputProperties { Self { provider_specific_details } } } -#[doc = "Update migration item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateMigrationItemProviderSpecificInput {} -impl UpdateMigrationItemProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17563,14 +16665,6 @@ pub mod update_replication_protected_item_input_properties { } } } -#[doc = "Update replication protected item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateReplicationProtectedItemProviderInput {} -impl UpdateReplicationProtectedItemProviderInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17832,22 +16926,15 @@ impl VmNicInputDetails { } #[doc = "VMwareCbt container creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VMwareCbtContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct VMwareCbtContainerCreationInput {} impl VMwareCbtContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "VMwareCbt container mapping input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, #[doc = "The target key vault ARM Id."] #[serde(rename = "keyVaultId", default, skip_serializing_if = "Option::is_none")] pub key_vault_id: Option, @@ -17868,13 +16955,8 @@ pub struct VMwareCbtContainerMappingInput { pub target_location: String, } impl VMwareCbtContainerMappingInput { - pub fn new( - replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, - storage_account_id: String, - target_location: String, - ) -> Self { + pub fn new(storage_account_id: String, target_location: String) -> Self { Self { - replication_provider_specific_container_mapping_input, key_vault_id: None, key_vault_uri: None, storage_account_id, @@ -17966,8 +17048,6 @@ pub mod v_mware_cbt_disk_input { #[doc = "VMwareCbt specific enable migration input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtEnableMigrationInput { - #[serde(flatten)] - pub enable_migration_provider_specific_input: EnableMigrationProviderSpecificInput, #[doc = "The ARM Id of the VM discovered in VMware."] #[serde(rename = "vmwareMachineId")] pub vmware_machine_id: String, @@ -18040,7 +17120,6 @@ pub struct VMwareCbtEnableMigrationInput { } impl VMwareCbtEnableMigrationInput { pub fn new( - enable_migration_provider_specific_input: EnableMigrationProviderSpecificInput, vmware_machine_id: String, disks_to_include: Vec, data_mover_run_as_account_id: String, @@ -18049,7 +17128,6 @@ impl VMwareCbtEnableMigrationInput { target_network_id: String, ) -> Self { Self { - enable_migration_provider_specific_input, vmware_machine_id, disks_to_include, license_type: None, @@ -18164,42 +17242,30 @@ pub mod v_mware_cbt_enable_migration_input { #[doc = "Event details for VMwareCbt provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The migration item name."] #[serde(rename = "migrationItemName", default, skip_serializing_if = "Option::is_none")] pub migration_item_name: Option, } impl VMwareCbtEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { - Self { - event_provider_specific_details, - migration_item_name: None, - } + pub fn new() -> Self { + Self { migration_item_name: None } } } #[doc = "VMwareCbt specific migrate input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtMigrateInput { - #[serde(flatten)] - pub migrate_provider_specific_input: MigrateProviderSpecificInput, #[doc = "A value indicating whether VM is to be shutdown."] #[serde(rename = "performShutdown")] pub perform_shutdown: String, } impl VMwareCbtMigrateInput { - pub fn new(migrate_provider_specific_input: MigrateProviderSpecificInput, perform_shutdown: String) -> Self { - Self { - migrate_provider_specific_input, - perform_shutdown, - } + pub fn new(perform_shutdown: String) -> Self { + Self { perform_shutdown } } } #[doc = "VMwareCbt provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtMigrationDetails { - #[serde(flatten)] - pub migration_provider_specific_settings: MigrationProviderSpecificSettings, #[doc = "The ARM Id of the VM discovered in VMware."] #[serde(rename = "vmwareMachineId", default, skip_serializing_if = "Option::is_none")] pub vmware_machine_id: Option, @@ -18326,9 +17392,8 @@ pub struct VMwareCbtMigrationDetails { pub target_disk_tags: Option, } impl VMwareCbtMigrationDetails { - pub fn new(migration_provider_specific_settings: MigrationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - migration_provider_specific_settings, vmware_machine_id: None, os_type: None, firmware_type: None, @@ -18624,8 +17689,6 @@ impl VMwareCbtNicInput { #[doc = "VMware Cbt policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -18637,9 +17700,8 @@ pub struct VMwareCbtPolicyCreationInput { pub app_consistent_frequency_in_minutes: Option, } impl VMwareCbtPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_in_minutes: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -18745,8 +17807,6 @@ pub mod v_mware_cbt_protected_disk_details { #[doc = "VMwareCbt provider specific container mapping details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "The target key vault ARM Id."] #[serde(rename = "keyVaultId", default, skip_serializing_if = "Option::is_none")] pub key_vault_id: Option, @@ -18770,9 +17830,8 @@ pub struct VMwareCbtProtectionContainerMappingDetails { pub role_size_to_nic_count_map: Option, } impl VMwareCbtProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, key_vault_id: None, key_vault_uri: None, storage_account_id: None, @@ -18786,16 +17845,13 @@ impl VMwareCbtProtectionContainerMappingDetails { #[doc = "VMwareCbt specific resume replication input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtResumeReplicationInput { - #[serde(flatten)] - pub resume_replication_provider_specific_input: ResumeReplicationProviderSpecificInput, #[doc = "A value indicating whether Migration resources to be deleted."] #[serde(rename = "deleteMigrationResources", default, skip_serializing_if = "Option::is_none")] pub delete_migration_resources: Option, } impl VMwareCbtResumeReplicationInput { - pub fn new(resume_replication_provider_specific_input: ResumeReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - resume_replication_provider_specific_input, delete_migration_resources: None, } } @@ -18803,25 +17859,18 @@ impl VMwareCbtResumeReplicationInput { #[doc = "VMwareCbt specific resync input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtResyncInput { - #[serde(flatten)] - pub resync_provider_specific_input: ResyncProviderSpecificInput, #[doc = "A value indicating whether CBT is to be reset."] #[serde(rename = "skipCbtReset")] pub skip_cbt_reset: String, } impl VMwareCbtResyncInput { - pub fn new(resync_provider_specific_input: ResyncProviderSpecificInput, skip_cbt_reset: String) -> Self { - Self { - resync_provider_specific_input, - skip_cbt_reset, - } + pub fn new(skip_cbt_reset: String) -> Self { + Self { skip_cbt_reset } } } #[doc = "VMwareCbt specific test migrate input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtTestMigrateInput { - #[serde(flatten)] - pub test_migrate_provider_specific_input: TestMigrateProviderSpecificInput, #[doc = "The recovery point Id."] #[serde(rename = "recoveryPointId")] pub recovery_point_id: String, @@ -18838,13 +17887,8 @@ pub struct VMwareCbtTestMigrateInput { pub vm_nics: Vec, } impl VMwareCbtTestMigrateInput { - pub fn new( - test_migrate_provider_specific_input: TestMigrateProviderSpecificInput, - recovery_point_id: String, - network_id: String, - ) -> Self { + pub fn new(recovery_point_id: String, network_id: String) -> Self { Self { - test_migrate_provider_specific_input, recovery_point_id, network_id, vm_nics: Vec::new(), @@ -18876,8 +17920,6 @@ impl VMwareCbtUpdateDiskInput { #[doc = "VMwareCbt specific update migration item input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtUpdateMigrationItemInput { - #[serde(flatten)] - pub update_migration_item_provider_specific_input: UpdateMigrationItemProviderSpecificInput, #[doc = "The target VM name."] #[serde(rename = "targetVmName", default, skip_serializing_if = "Option::is_none")] pub target_vm_name: Option, @@ -18941,9 +17983,8 @@ pub struct VMwareCbtUpdateMigrationItemInput { pub target_nic_tags: Option, } impl VMwareCbtUpdateMigrationItemInput { - pub fn new(update_migration_item_provider_specific_input: UpdateMigrationItemProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - update_migration_item_provider_specific_input, target_vm_name: None, target_vm_size: None, target_resource_group_id: None, @@ -19052,8 +18093,6 @@ pub mod v_mware_cbt_update_migration_item_input { #[doc = "Store the fabric details specific to the VMware fabric."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The list of Process Servers associated with the fabric."] #[serde( rename = "processServers", @@ -19175,9 +18214,8 @@ pub struct VMwareDetails { pub switch_provider_blocking_error_details: Vec, } impl VMwareDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, process_servers: Vec::new(), master_target_servers: Vec::new(), run_as_accounts: Vec::new(), @@ -19217,8 +18255,6 @@ impl VMwareDetails { #[doc = "VMwareV2 fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareV2FabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -19230,9 +18266,8 @@ pub struct VMwareV2FabricCreationInput { pub migration_solution_id: String, } impl VMwareV2FabricCreationInput { - pub fn new(fabric_specific_creation_input: FabricSpecificCreationInput, migration_solution_id: String) -> Self { + pub fn new(migration_solution_id: String) -> Self { Self { - fabric_specific_creation_input, vmware_site_id: None, physical_site_id: None, migration_solution_id, @@ -19242,8 +18277,6 @@ impl VMwareV2FabricCreationInput { #[doc = "VMwareV2 fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareV2FabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -19272,9 +18305,8 @@ pub struct VMwareV2FabricSpecificDetails { pub process_servers: Vec, } impl VMwareV2FabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, vmware_site_id: None, physical_site_id: None, migration_solution_id: None, @@ -19288,8 +18320,6 @@ impl VMwareV2FabricSpecificDetails { #[doc = "VMware provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareVirtualMachineDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, #[doc = "The ID generated by the InMage agent after it gets installed on guest. This is the ID to be used during InMage CreateProtection."] #[serde(rename = "agentGeneratedId", default, skip_serializing_if = "Option::is_none")] pub agent_generated_id: Option, @@ -19332,9 +18362,8 @@ pub struct VMwareVirtualMachineDetails { pub validation_errors: Vec, } impl VMwareVirtualMachineDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { + pub fn new() -> Self { Self { - configuration_settings, agent_generated_id: None, agent_installed: None, os_type: None, @@ -19535,8 +18564,6 @@ pub mod version_details { #[doc = "This class represents the virtual machine task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineTaskDetails { - #[serde(flatten)] - pub job_task_details: JobTaskDetails, #[doc = "The skipped reason."] #[serde(rename = "skippedReason", default, skip_serializing_if = "Option::is_none")] pub skipped_reason: Option, @@ -19545,9 +18572,8 @@ pub struct VirtualMachineTaskDetails { pub skipped_reason_string: Option, } impl VirtualMachineTaskDetails { - pub fn new(job_task_details: JobTaskDetails) -> Self { + pub fn new() -> Self { Self { - job_task_details, skipped_reason: None, skipped_reason_string: None, } @@ -19556,8 +18582,6 @@ impl VirtualMachineTaskDetails { #[doc = "This class represents the vm NicUpdates task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmNicUpdatesTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "Virtual machine Id."] #[serde(rename = "vmId", default, skip_serializing_if = "Option::is_none")] pub vm_id: Option, @@ -19569,9 +18593,8 @@ pub struct VmNicUpdatesTaskDetails { pub name: Option, } impl VmNicUpdatesTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, vm_id: None, nic_id: None, name: None, @@ -19580,91 +18603,58 @@ impl VmNicUpdatesTaskDetails { } #[doc = "VMM fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, -} +pub struct VmmDetails {} impl VmmDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { - Self { fabric_specific_details } + pub fn new() -> Self { + Self {} } } #[doc = "Create network mappings input properties/behavior specific to Vmm to Azure Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, -} +pub struct VmmToAzureCreateNetworkMappingInput {} impl VmmToAzureCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput) -> Self { - Self { - fabric_specific_create_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "E2A Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, -} +pub struct VmmToAzureNetworkMappingSettings {} impl VmmToAzureNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { - Self { - network_mapping_fabric_specific_settings, - } + pub fn new() -> Self { + Self {} } } #[doc = "Update network mappings input properties/behavior specific to vmm to azure."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, -} +pub struct VmmToAzureUpdateNetworkMappingInput {} impl VmmToAzureUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "Create network mappings input properties/behavior specific to vmm to vmm Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, -} +pub struct VmmToVmmCreateNetworkMappingInput {} impl VmmToVmmCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput) -> Self { - Self { - fabric_specific_create_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "E2E Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, -} +pub struct VmmToVmmNetworkMappingSettings {} impl VmmToVmmNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { - Self { - network_mapping_fabric_specific_settings, - } + pub fn new() -> Self { + Self {} } } #[doc = "Update network mappings input properties/behavior specific to vmm to vmm."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, -} +pub struct VmmToVmmUpdateNetworkMappingInput {} impl VmmToVmmUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "VMM fabric provider specific VM settings."] @@ -19683,8 +18673,6 @@ impl VmmVirtualMachineDetails { #[doc = "VMware Cbt specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmwareCbtPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -19696,9 +18684,8 @@ pub struct VmwareCbtPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl VmwareCbtPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_in_minutes: None, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2023_01/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2023_01/models.rs index df12376f3a..e6da1b769b 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2023_01/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2023_01/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "A2A add disk(s) input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aAddDisksInput { - #[serde(flatten)] - pub add_disks_provider_specific_input: AddDisksProviderSpecificInput, #[doc = "The list of vm disk details."] #[serde( rename = "vmDisks", @@ -26,9 +24,8 @@ pub struct A2aAddDisksInput { pub vm_managed_disks: Vec, } impl A2aAddDisksInput { - pub fn new(add_disks_provider_specific_input: AddDisksProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - add_disks_provider_specific_input, vm_disks: Vec::new(), vm_managed_disks: Vec::new(), } @@ -36,35 +33,23 @@ impl A2aAddDisksInput { } #[doc = "ApplyRecoveryPoint input specific to A2A provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct A2aApplyRecoveryPointInput {} impl A2aApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A cloud creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct A2aContainerCreationInput {} impl A2aContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A container mapping input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -76,9 +61,8 @@ pub struct A2aContainerMappingInput { pub automation_account_authentication_type: Option, } impl A2aContainerMappingInput { - pub fn new(replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_container_mapping_input, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -172,8 +156,6 @@ pub mod a2a_container_mapping_input { #[doc = "A2A create protection intent input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCreateProtectionIntentInput { - #[serde(flatten)] - pub create_protection_intent_provider_specific_details: CreateProtectionIntentProviderSpecificDetails, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId")] pub fabric_object_id: String, @@ -261,7 +243,6 @@ pub struct A2aCreateProtectionIntentInput { } impl A2aCreateProtectionIntentInput { pub fn new( - create_protection_intent_provider_specific_details: CreateProtectionIntentProviderSpecificDetails, fabric_object_id: String, primary_location: String, recovery_location: String, @@ -270,7 +251,6 @@ impl A2aCreateProtectionIntentInput { recovery_resource_group_id: String, ) -> Self { Self { - create_protection_intent_provider_specific_details, fabric_object_id, primary_location, recovery_location, @@ -458,35 +438,23 @@ pub mod a2a_create_protection_intent_input { } #[doc = "ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct A2aCrossClusterMigrationApplyRecoveryPointInput {} impl A2aCrossClusterMigrationApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2ACrossClusterMigration cloud creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct A2aCrossClusterMigrationContainerCreationInput {} impl A2aCrossClusterMigrationContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A Cross-Cluster Migration enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCrossClusterMigrationEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -495,9 +463,8 @@ pub struct A2aCrossClusterMigrationEnableProtectionInput { pub recovery_container_id: Option, } impl A2aCrossClusterMigrationEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, fabric_object_id: None, recovery_container_id: None, } @@ -505,22 +472,15 @@ impl A2aCrossClusterMigrationEnableProtectionInput { } #[doc = "A2A Cross-Cluster Migration Policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, -} +pub struct A2aCrossClusterMigrationPolicyCreationInput {} impl A2aCrossClusterMigrationPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { - Self { - policy_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCrossClusterMigrationReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -541,9 +501,8 @@ pub struct A2aCrossClusterMigrationReplicationDetails { pub lifecycle_id: Option, } impl A2aCrossClusterMigrationReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, fabric_object_id: None, primary_fabric_location: None, os_type: None, @@ -556,8 +515,6 @@ impl A2aCrossClusterMigrationReplicationDetails { #[doc = "A2A enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId")] pub fabric_object_id: String, @@ -624,9 +581,8 @@ pub struct A2aEnableProtectionInput { pub recovery_capacity_reservation_group_id: Option, } impl A2aEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, fabric_object_id: String) -> Self { + pub fn new(fabric_object_id: String) -> Self { Self { - enable_protection_provider_specific_input, fabric_object_id, recovery_container_id: None, recovery_resource_group_id: None, @@ -651,8 +607,6 @@ impl A2aEnableProtectionInput { #[doc = "Model class for event details of a A2A event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item arm name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -673,9 +627,8 @@ pub struct A2aEventDetails { pub remote_fabric_location: Option, } impl A2aEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, fabric_object_id: None, fabric_name: None, @@ -703,8 +656,6 @@ impl A2aExtendedLocationDetails { #[doc = "A2A Policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistory", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history: Option, @@ -719,12 +670,8 @@ pub struct A2aPolicyCreationInput { pub multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus, } impl A2aPolicyCreationInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -775,8 +722,6 @@ pub mod a2a_policy_creation_input { #[doc = "A2A specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -794,9 +739,8 @@ pub struct A2aPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl A2aPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -997,8 +941,6 @@ impl A2aProtectedManagedDiskDetails { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -1016,9 +958,8 @@ pub struct A2aProtectionContainerMappingDetails { pub job_schedule_name: Option, } impl A2aProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -1186,8 +1127,6 @@ impl A2aProtectionIntentManagedDiskInputDetails { #[doc = "A2A provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aRecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "recoveryPointSyncType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_sync_type: Option, @@ -1200,9 +1139,8 @@ pub struct A2aRecoveryPointDetails { pub disks: Vec, } impl A2aRecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, recovery_point_sync_type: None, disks: Vec::new(), } @@ -1253,8 +1191,6 @@ pub mod a2a_recovery_point_details { #[doc = "A2A remove disk(s) input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aRemoveDisksInput { - #[serde(flatten)] - pub remove_disks_provider_specific_input: RemoveDisksProviderSpecificInput, #[doc = "The list of vm disk vhd URIs."] #[serde( rename = "vmDisksUris", @@ -1273,9 +1209,8 @@ pub struct A2aRemoveDisksInput { pub vm_managed_disks_ids: Vec, } impl A2aRemoveDisksInput { - pub fn new(remove_disks_provider_specific_input: RemoveDisksProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - remove_disks_provider_specific_input, vm_disks_uris: Vec::new(), vm_managed_disks_ids: Vec::new(), } @@ -1284,8 +1219,6 @@ impl A2aRemoveDisksInput { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -1471,9 +1404,8 @@ pub struct A2aReplicationDetails { pub recovery_capacity_reservation_group_id: Option, } impl A2aReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, fabric_object_id: None, initial_primary_zone: None, initial_primary_fabric_location: None, @@ -1649,8 +1581,6 @@ pub mod a2a_replication_details { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReplicationIntentDetails { - #[serde(flatten)] - pub replication_protection_intent_provider_specific_settings: ReplicationProtectionIntentProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -1729,12 +1659,8 @@ pub struct A2aReplicationIntentDetails { pub automation_account_authentication_type: Option, } impl A2aReplicationIntentDetails { - pub fn new( - replication_protection_intent_provider_specific_settings: ReplicationProtectionIntentProviderSpecificSettings, - recovery_availability_type: String, - ) -> Self { + pub fn new(recovery_availability_type: String) -> Self { Self { - replication_protection_intent_provider_specific_settings, fabric_object_id: None, primary_location: None, recovery_location: None, @@ -1884,8 +1810,6 @@ pub mod a2a_replication_intent_details { #[doc = "Azure specific reprotect input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The recovery container Id."] #[serde(rename = "recoveryContainerId", default, skip_serializing_if = "Option::is_none")] pub recovery_container_id: Option, @@ -1911,9 +1835,8 @@ pub struct A2aReprotectInput { pub policy_id: Option, } impl A2aReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, recovery_container_id: None, vm_disks: Vec::new(), recovery_resource_group_id: None, @@ -1926,8 +1849,6 @@ impl A2aReprotectInput { #[doc = "A2A specific switch protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aSwitchProtectionInput { - #[serde(flatten)] - pub switch_protection_provider_specific_input: SwitchProtectionProviderSpecificInput, #[doc = "The recovery container Id."] #[serde(rename = "recoveryContainerId", default, skip_serializing_if = "Option::is_none")] pub recovery_container_id: Option, @@ -1979,9 +1900,8 @@ pub struct A2aSwitchProtectionInput { pub disk_encryption_info: Option, } impl A2aSwitchProtectionInput { - pub fn new(switch_protection_provider_specific_input: SwitchProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - switch_protection_provider_specific_input, recovery_container_id: None, vm_disks: Vec::new(), vm_managed_disks: Vec::new(), @@ -2001,8 +1921,6 @@ impl A2aSwitchProtectionInput { #[doc = "A2A provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -2011,9 +1929,8 @@ pub struct A2aTestFailoverInput { pub cloud_service_creation_option: Option, } impl A2aTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, recovery_point_id: None, cloud_service_creation_option: None, } @@ -2022,8 +1939,6 @@ impl A2aTestFailoverInput { #[doc = "A2A provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -2032,9 +1947,8 @@ pub struct A2aUnplannedFailoverInput { pub cloud_service_creation_option: Option, } impl A2aUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, recovery_point_id: None, cloud_service_creation_option: None, } @@ -2098,8 +2012,6 @@ pub mod a2a_unprotected_disk_details { #[doc = "A2A update protection container mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUpdateContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -2111,11 +2023,8 @@ pub struct A2aUpdateContainerMappingInput { pub automation_account_authentication_type: Option, } impl A2aUpdateContainerMappingInput { - pub fn new( - replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, - ) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_update_container_mapping_input, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -2209,8 +2118,6 @@ pub mod a2a_update_container_mapping_input { #[doc = "InMage Azure V2 input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The target cloud service ARM Id (for V1)."] #[serde(rename = "recoveryCloudServiceId", default, skip_serializing_if = "Option::is_none")] pub recovery_cloud_service_id: Option, @@ -2245,9 +2152,8 @@ pub struct A2aUpdateReplicationProtectedItemInput { pub recovery_capacity_reservation_group_id: Option, } impl A2aUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_cloud_service_id: None, recovery_resource_group_id: None, managed_disk_update_details: Vec::new(), @@ -2440,14 +2346,6 @@ impl AddDisksInputProperties { Self { provider_specific_details } } } -#[doc = "Add Disks provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddDisksProviderSpecificInput {} -impl AddDisksProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2691,14 +2589,6 @@ impl ApplianceQueryParameter { Self::default() } } -#[doc = "Appliance specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ApplianceSpecificDetails {} -impl ApplianceSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2734,14 +2624,6 @@ impl ApplyRecoveryPointInputProperties { } } } -#[doc = "Provider specific input for apply recovery point."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ApplyRecoveryPointProviderSpecificInput {} -impl ApplyRecoveryPointProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2768,8 +2650,6 @@ impl AsrJobDetails { #[doc = "This class represents the task details for an automation runbook."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationRunbookTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The recovery plan task name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2799,9 +2679,8 @@ pub struct AutomationRunbookTaskDetails { pub is_primary_side_script: Option, } impl AutomationRunbookTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, cloud_service_name: None, subscription_id: None, @@ -2817,25 +2696,18 @@ impl AutomationRunbookTaskDetails { #[doc = "Fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The Location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, } impl AzureFabricCreationInput { - pub fn new(fabric_specific_creation_input: FabricSpecificCreationInput) -> Self { - Self { - fabric_specific_creation_input, - location: None, - } + pub fn new() -> Self { + Self { location: None } } } #[doc = "Azure Fabric Specific Details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The Location for the Azure fabric."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -2864,9 +2736,8 @@ pub struct AzureFabricSpecificDetails { pub extended_locations: Vec, } impl AzureFabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, location: None, container_ids: Vec::new(), zones: Vec::new(), @@ -2877,25 +2748,18 @@ impl AzureFabricSpecificDetails { #[doc = "Create network mappings input properties/behavior specific to Azure to Azure Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, #[doc = "The primary azure vnet Id."] #[serde(rename = "primaryNetworkId")] pub primary_network_id: String, } impl AzureToAzureCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, primary_network_id: String) -> Self { - Self { - fabric_specific_create_network_mapping_input, - primary_network_id, - } + pub fn new(primary_network_id: String) -> Self { + Self { primary_network_id } } } #[doc = "A2A Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, #[doc = "The primary fabric location."] #[serde(rename = "primaryFabricLocation", default, skip_serializing_if = "Option::is_none")] pub primary_fabric_location: Option, @@ -2904,9 +2768,8 @@ pub struct AzureToAzureNetworkMappingSettings { pub recovery_fabric_location: Option, } impl AzureToAzureNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { + pub fn new() -> Self { Self { - network_mapping_fabric_specific_settings, primary_fabric_location: None, recovery_fabric_location: None, } @@ -2915,18 +2778,13 @@ impl AzureToAzureNetworkMappingSettings { #[doc = "Updates network mappings input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, #[doc = "The primary azure vnet Id."] #[serde(rename = "primaryNetworkId", default, skip_serializing_if = "Option::is_none")] pub primary_network_id: Option, } impl AzureToAzureUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - primary_network_id: None, - } + pub fn new() -> Self { + Self { primary_network_id: None } } } #[doc = "Azure to Azure VM synced configuration details."] @@ -3003,14 +2861,6 @@ impl ComputeSizeErrorDetails { Self::default() } } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ConfigurationSettings {} -impl ConfigurationSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3057,8 +2907,6 @@ impl ConfigureAlertRequestProperties { #[doc = "This class contains monitoring details of all the inconsistent Protected Entities in Vmm."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ConsistencyCheckTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The list of inconsistent Vm details."] #[serde( rename = "vmDetails", @@ -3069,11 +2917,8 @@ pub struct ConsistencyCheckTaskDetails { pub vm_details: Vec, } impl ConsistencyCheckTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { - Self { - task_type_details, - vm_details: Vec::new(), - } + pub fn new() -> Self { + Self { vm_details: Vec::new() } } } #[doc = "Create network mappings input."] @@ -3216,14 +3061,6 @@ impl CreateProtectionIntentProperties { Self::default() } } -#[doc = "Create protection intent provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateProtectionIntentProviderSpecificDetails {} -impl CreateProtectionIntentProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3465,14 +3302,6 @@ pub mod disable_protection_input_properties { } } } -#[doc = "Disable protection provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DisableProtectionProviderSpecificInput {} -impl DisableProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3710,14 +3539,6 @@ impl EnableMigrationInputProperties { } } } -#[doc = "Enable migration provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnableMigrationProviderSpecificInput {} -impl EnableMigrationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3754,14 +3575,6 @@ impl EnableProtectionInputProperties { Self::default() } } -#[doc = "Enable protection provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnableProtectionProviderSpecificInput {} -impl EnableProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3879,14 +3692,6 @@ impl EventProperties { Self::default() } } -#[doc = "Model class for provider specific details for an event."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventProviderSpecificDetails {} -impl EventProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3935,14 +3740,6 @@ impl EventQueryParameter { Self::default() } } -#[doc = "Model class for event specific details for an event."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventSpecificDetails {} -impl EventSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3952,33 +3749,25 @@ pub enum EventSpecificDetailsUnion { #[doc = "Existing storage account input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingProtectionProfile { - #[serde(flatten)] - pub protection_profile_custom_details: ProtectionProfileCustomDetails, #[doc = "The protection profile Arm Id. Throw error, if resource does not exists."] #[serde(rename = "protectionProfileId")] pub protection_profile_id: String, } impl ExistingProtectionProfile { - pub fn new(protection_profile_custom_details: ProtectionProfileCustomDetails, protection_profile_id: String) -> Self { - Self { - protection_profile_custom_details, - protection_profile_id, - } + pub fn new(protection_profile_id: String) -> Self { + Self { protection_profile_id } } } #[doc = "Existing recovery availability set input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryAvailabilitySet { - #[serde(flatten)] - pub recovery_availability_set_custom_details: RecoveryAvailabilitySetCustomDetails, #[doc = "The recovery availability set Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryAvailabilitySetId", default, skip_serializing_if = "Option::is_none")] pub recovery_availability_set_id: Option, } impl ExistingRecoveryAvailabilitySet { - pub fn new(recovery_availability_set_custom_details: RecoveryAvailabilitySetCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_availability_set_custom_details, recovery_availability_set_id: None, } } @@ -3986,16 +3775,13 @@ impl ExistingRecoveryAvailabilitySet { #[doc = "Existing recovery proximity placement group input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryProximityPlacementGroup { - #[serde(flatten)] - pub recovery_proximity_placement_group_custom_details: RecoveryProximityPlacementGroupCustomDetails, #[doc = "The recovery proximity placement group Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryProximityPlacementGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_proximity_placement_group_id: Option, } impl ExistingRecoveryProximityPlacementGroup { - pub fn new(recovery_proximity_placement_group_custom_details: RecoveryProximityPlacementGroupCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_proximity_placement_group_custom_details, recovery_proximity_placement_group_id: None, } } @@ -4003,16 +3789,13 @@ impl ExistingRecoveryProximityPlacementGroup { #[doc = "Existing recovery resource group input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryRecoveryResourceGroup { - #[serde(flatten)] - pub recovery_resource_group_custom_details: RecoveryResourceGroupCustomDetails, #[doc = "The recovery resource group Id. Valid for V2 scenarios."] #[serde(rename = "recoveryResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_resource_group_id: Option, } impl ExistingRecoveryRecoveryResourceGroup { - pub fn new(recovery_resource_group_custom_details: RecoveryResourceGroupCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_resource_group_custom_details, recovery_resource_group_id: None, } } @@ -4020,8 +3803,6 @@ impl ExistingRecoveryRecoveryResourceGroup { #[doc = "Existing recovery virtual network input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryVirtualNetwork { - #[serde(flatten)] - pub recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, #[doc = "The recovery virtual network Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryVirtualNetworkId")] pub recovery_virtual_network_id: String, @@ -4030,9 +3811,8 @@ pub struct ExistingRecoveryVirtualNetwork { pub recovery_subnet_name: Option, } impl ExistingRecoveryVirtualNetwork { - pub fn new(recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, recovery_virtual_network_id: String) -> Self { + pub fn new(recovery_virtual_network_id: String) -> Self { Self { - recovery_virtual_network_custom_details, recovery_virtual_network_id, recovery_subnet_name: None, } @@ -4041,18 +3821,13 @@ impl ExistingRecoveryVirtualNetwork { #[doc = "Existing storage account input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingStorageAccount { - #[serde(flatten)] - pub storage_account_custom_details: StorageAccountCustomDetails, #[doc = "The storage account Arm Id. Throw error, if resource does not exists."] #[serde(rename = "azureStorageAccountId")] pub azure_storage_account_id: String, } impl ExistingStorageAccount { - pub fn new(storage_account_custom_details: StorageAccountCustomDetails, azure_storage_account_id: String) -> Self { - Self { - storage_account_custom_details, - azure_storage_account_id, - } + pub fn new(azure_storage_account_id: String) -> Self { + Self { azure_storage_account_id } } } #[doc = "This class represents details for export jobs workflow."] @@ -4259,8 +4034,6 @@ impl FabricQueryParameter { #[doc = "This class represents the fabric replication group task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FabricReplicationGroupTaskDetails { - #[serde(flatten)] - pub job_task_details: JobTaskDetails, #[doc = "The skipped reason."] #[serde(rename = "skippedReason", default, skip_serializing_if = "Option::is_none")] pub skipped_reason: Option, @@ -4269,22 +4042,13 @@ pub struct FabricReplicationGroupTaskDetails { pub skipped_reason_string: Option, } impl FabricReplicationGroupTaskDetails { - pub fn new(job_task_details: JobTaskDetails) -> Self { + pub fn new() -> Self { Self { - job_task_details, skipped_reason: None, skipped_reason_string: None, } } } -#[doc = "Input details specific to fabrics during Network Mapping."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificCreateNetworkMappingInput {} -impl FabricSpecificCreateNetworkMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4293,14 +4057,6 @@ pub enum FabricSpecificCreateNetworkMappingInputUnion { VmmToAzure(VmmToAzureCreateNetworkMappingInput), VmmToVmm(VmmToVmmCreateNetworkMappingInput), } -#[doc = "Fabric provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificCreationInput {} -impl FabricSpecificCreationInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4309,14 +4065,6 @@ pub enum FabricSpecificCreationInputUnion { InMageRcm(InMageRcmFabricCreationInput), VMwareV2(VMwareV2FabricCreationInput), } -#[doc = "Fabric specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificDetails {} -impl FabricSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4329,14 +4077,6 @@ pub enum FabricSpecificDetailsUnion { #[serde(rename = "VMM")] Vmm(VmmDetails), } -#[doc = "Input details specific to fabrics during Network Mapping."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificUpdateNetworkMappingInput {} -impl FabricSpecificUpdateNetworkMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4729,8 +4469,6 @@ impl HyperVHostDetails { #[doc = "Model class for event details of a HyperVReplica E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplica2012EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -4745,9 +4483,8 @@ pub struct HyperVReplica2012EventDetails { pub remote_fabric_name: Option, } impl HyperVReplica2012EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -4758,8 +4495,6 @@ impl HyperVReplica2012EventDetails { #[doc = "Model class for event details of a HyperVReplica blue E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplica2012R2EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -4774,9 +4509,8 @@ pub struct HyperVReplica2012R2EventDetails { pub remote_fabric_name: Option, } impl HyperVReplica2012R2EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -4787,8 +4521,6 @@ impl HyperVReplica2012R2EventDetails { #[doc = "ApplyRecoveryPoint input specific to HyperVReplicaAzure provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, #[doc = "The primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -4797,9 +4529,8 @@ pub struct HyperVReplicaAzureApplyRecoveryPointInput { pub secondary_kek_certificate_pfx: Option, } impl HyperVReplicaAzureApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - apply_recovery_point_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, } @@ -4874,8 +4605,6 @@ pub mod hyper_v_replica_azure_disk_input_details { #[doc = "HyperVReplicaAzure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The Hyper-V host VM Id."] #[serde(rename = "hvHostVmId", default, skip_serializing_if = "Option::is_none")] pub hv_host_vm_id: Option, @@ -4972,9 +4701,8 @@ pub struct HyperVReplicaAzureEnableProtectionInput { pub target_nic_tags: Option, } impl HyperVReplicaAzureEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, hv_host_vm_id: None, vm_name: None, os_type: None, @@ -5136,8 +4864,6 @@ pub mod hyper_v_replica_azure_enable_protection_input { #[doc = "Model class for event details of a HyperVReplica E2A event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -5149,9 +4875,8 @@ pub struct HyperVReplicaAzureEventDetails { pub remote_container_name: Option, } impl HyperVReplicaAzureEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -5161,8 +4886,6 @@ impl HyperVReplicaAzureEventDetails { #[doc = "HyperVReplicaAzureFailback specific planned failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureFailbackProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "Data sync option."] #[serde(rename = "dataSyncOption", default, skip_serializing_if = "Option::is_none")] pub data_sync_option: Option, @@ -5174,9 +4897,8 @@ pub struct HyperVReplicaAzureFailbackProviderInput { pub provider_id_for_alternate_recovery: Option, } impl HyperVReplicaAzureFailbackProviderInput { - pub fn new(planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - planned_failover_provider_specific_failover_input, data_sync_option: None, recovery_vm_creation_option: None, provider_id_for_alternate_recovery: None, @@ -5207,8 +4929,6 @@ impl HyperVReplicaAzureManagedDiskDetails { #[doc = "HyperVReplicaAzure specific planned failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePlannedFailoverProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5220,9 +4940,8 @@ pub struct HyperVReplicaAzurePlannedFailoverProviderInput { pub recovery_point_id: Option, } impl HyperVReplicaAzurePlannedFailoverProviderInput { - pub fn new(planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - planned_failover_provider_specific_failover_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5232,8 +4951,6 @@ impl HyperVReplicaAzurePlannedFailoverProviderInput { #[doc = "Hyper-V Replica Azure specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration (in hours) to which point the recovery history needs to be maintained."] #[serde(rename = "recoveryPointHistoryDurationInHours", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_duration_in_hours: Option, @@ -5258,9 +4975,8 @@ pub struct HyperVReplicaAzurePolicyDetails { pub active_storage_account_id: Option, } impl HyperVReplicaAzurePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_duration_in_hours: None, application_consistent_snapshot_frequency_in_hours: None, replication_interval: None, @@ -5273,8 +4989,6 @@ impl HyperVReplicaAzurePolicyDetails { #[doc = "Hyper-V Replica Azure specific input for creating a protection profile."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration (in hours) to which point the recovery history needs to be maintained."] #[serde(rename = "recoveryPointHistoryDuration", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_duration: Option, @@ -5301,9 +5015,8 @@ pub struct HyperVReplicaAzurePolicyInput { pub storage_accounts: Vec, } impl HyperVReplicaAzurePolicyInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_duration: None, application_consistent_snapshot_frequency_in_hours: None, replication_interval: None, @@ -5315,8 +5028,6 @@ impl HyperVReplicaAzurePolicyInput { #[doc = "Hyper V Replica Azure provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "Azure VM Disk details."] #[serde( rename = "azureVmDiskDetails", @@ -5433,9 +5144,8 @@ pub struct HyperVReplicaAzureReplicationDetails { pub protected_managed_disks: Vec, } impl HyperVReplicaAzureReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, azure_vm_disk_details: Vec::new(), recovery_azure_vm_name: None, recovery_azure_vm_size: None, @@ -5475,8 +5185,6 @@ impl HyperVReplicaAzureReplicationDetails { #[doc = "Azure specific reprotect input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Hyper-V host Vm Id."] #[serde(rename = "hvHostVmId", default, skip_serializing_if = "Option::is_none")] pub hv_host_vm_id: Option, @@ -5497,9 +5205,8 @@ pub struct HyperVReplicaAzureReprotectInput { pub log_storage_account_id: Option, } impl HyperVReplicaAzureReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, hv_host_vm_id: None, vm_name: None, os_type: None, @@ -5512,8 +5219,6 @@ impl HyperVReplicaAzureReprotectInput { #[doc = "HvrA provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5525,9 +5230,8 @@ pub struct HyperVReplicaAzureTestFailoverInput { pub recovery_point_id: Option, } impl HyperVReplicaAzureTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5537,8 +5241,6 @@ impl HyperVReplicaAzureTestFailoverInput { #[doc = "HvrA provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5550,9 +5252,8 @@ pub struct HyperVReplicaAzureUnplannedFailoverInput { pub recovery_point_id: Option, } impl HyperVReplicaAzureUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5562,8 +5263,6 @@ impl HyperVReplicaAzureUnplannedFailoverInput { #[doc = "HyperV replica Azure input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The recovery Azure resource group Id for classic deployment."] #[serde(rename = "recoveryAzureV1ResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_v1_resource_group_id: Option, @@ -5604,9 +5303,8 @@ pub struct HyperVReplicaAzureUpdateReplicationProtectedItemInput { pub vm_disks: Vec, } impl HyperVReplicaAzureUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_azure_v1_resource_group_id: None, recovery_azure_v2_resource_group_id: None, use_managed_disks: None, @@ -5670,8 +5368,6 @@ pub mod hyper_v_replica_azure_update_replication_protected_item_input { #[doc = "Abstract model class for event details of a HyperVReplica E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBaseEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -5686,9 +5382,8 @@ pub struct HyperVReplicaBaseEventDetails { pub remote_fabric_name: Option, } impl HyperVReplicaBaseEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -5699,8 +5394,6 @@ impl HyperVReplicaBaseEventDetails { #[doc = "Base class for HyperVReplica policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBasePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -5737,9 +5430,8 @@ pub struct HyperVReplicaBasePolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaBasePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -5756,8 +5448,6 @@ impl HyperVReplicaBasePolicyDetails { #[doc = "Hyper V replica provider specific settings base class."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBaseReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -5791,9 +5481,8 @@ pub struct HyperVReplicaBaseReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaBaseReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -5807,8 +5496,6 @@ impl HyperVReplicaBaseReplicationDetails { #[doc = "Hyper-V Replica Blue specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBluePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the replication interval."] #[serde(rename = "replicationFrequencyInSeconds", default, skip_serializing_if = "Option::is_none")] pub replication_frequency_in_seconds: Option, @@ -5848,9 +5535,8 @@ pub struct HyperVReplicaBluePolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaBluePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, replication_frequency_in_seconds: None, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, @@ -5885,8 +5571,6 @@ impl HyperVReplicaBluePolicyInput { #[doc = "HyperV replica 2012 R2 (Blue) replication details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBlueReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -5920,9 +5604,8 @@ pub struct HyperVReplicaBlueReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaBlueReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -5936,8 +5619,6 @@ impl HyperVReplicaBlueReplicationDetails { #[doc = "Hyper-V Replica Blue specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -5974,9 +5655,8 @@ pub struct HyperVReplicaPolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -5993,8 +5673,6 @@ impl HyperVReplicaPolicyDetails { #[doc = "Hyper-V Replica specific policy Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaPolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -6031,9 +5709,8 @@ pub struct HyperVReplicaPolicyInput { pub replica_deletion: Option, } impl HyperVReplicaPolicyInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -6055,8 +5732,6 @@ pub enum HyperVReplicaPolicyInputUnion { #[doc = "HyperV replica 2012 replication details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -6090,9 +5765,8 @@ pub struct HyperVReplicaReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -6106,8 +5780,6 @@ impl HyperVReplicaReplicationDetails { #[doc = "HyperVSite fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVSiteDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The list of Hyper-V hosts associated with the fabric."] #[serde( rename = "hyperVHosts", @@ -6118,18 +5790,13 @@ pub struct HyperVSiteDetails { pub hyper_v_hosts: Vec, } impl HyperVSiteDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { - Self { - fabric_specific_details, - hyper_v_hosts: Vec::new(), - } + pub fn new() -> Self { + Self { hyper_v_hosts: Vec::new() } } } #[doc = "Single Host fabric provider specific VM settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVVirtualMachineDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, #[doc = "The source id of the object."] #[serde(rename = "sourceItemId", default, skip_serializing_if = "Option::is_none")] pub source_item_id: Option, @@ -6161,9 +5828,8 @@ pub struct HyperVVirtualMachineDetails { pub hyper_v_host_id: Option, } impl HyperVVirtualMachineDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { + pub fn new() -> Self { Self { - configuration_settings, source_item_id: None, generation: None, os_details: None, @@ -6464,15 +6130,10 @@ impl InMageAgentDetails { } #[doc = "ApplyRecoveryPoint input specific to InMageAzureV2 provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct InMageAzureV2ApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct InMageAzureV2ApplyRecoveryPointInput {} impl InMageAzureV2ApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "Disk input details."] @@ -6544,8 +6205,6 @@ pub mod in_mage_azure_v2_disk_input_details { #[doc = "VMware Azure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2EnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The Master target Id."] #[serde(rename = "masterTargetId", default, skip_serializing_if = "Option::is_none")] pub master_target_id: Option, @@ -6631,9 +6290,8 @@ pub struct InMageAzureV2EnableProtectionInput { pub target_nic_tags: Option, } impl InMageAzureV2EnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, master_target_id: None, process_server_id: None, storage_account_id: None, @@ -6793,8 +6451,6 @@ pub mod in_mage_azure_v2_enable_protection_input { #[doc = "Model class for event details of a VMwareAzureV2 event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "InMage Event type. Takes one of the values of InMageDataContract.InMageMonitoringEventType."] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, @@ -6818,9 +6474,8 @@ pub struct InMageAzureV2EventDetails { pub site_name: Option, } impl InMageAzureV2EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, event_type: None, category: None, component: None, @@ -6858,8 +6513,6 @@ impl InMageAzureV2ManagedDiskDetails { #[doc = "InMage Azure v2 specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2PolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The crash consistent snapshot frequency in minutes."] #[serde(rename = "crashConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub crash_consistent_frequency_in_minutes: Option, @@ -6877,9 +6530,8 @@ pub struct InMageAzureV2PolicyDetails { pub multi_vm_sync_status: Option, } impl InMageAzureV2PolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, crash_consistent_frequency_in_minutes: None, recovery_point_threshold_in_minutes: None, recovery_point_history: None, @@ -6891,8 +6543,6 @@ impl InMageAzureV2PolicyDetails { #[doc = "VMWare Azure specific policy Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2PolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -6910,12 +6560,8 @@ pub struct InMageAzureV2PolicyInput { pub multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus, } impl InMageAzureV2PolicyInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_threshold_in_minutes: None, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, @@ -7045,16 +6691,13 @@ impl InMageAzureV2ProtectedDiskDetails { #[doc = "InMage Azure V2 provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2RecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "isMultiVmSyncPoint", default, skip_serializing_if = "Option::is_none")] pub is_multi_vm_sync_point: Option, } impl InMageAzureV2RecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, is_multi_vm_sync_point: None, } } @@ -7062,8 +6705,6 @@ impl InMageAzureV2RecoveryPointDetails { #[doc = "InMageAzureV2 provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2ReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The infrastructure VM Id."] #[serde(rename = "infrastructureVmId", default, skip_serializing_if = "Option::is_none")] pub infrastructure_vm_id: Option, @@ -7301,9 +6942,8 @@ pub struct InMageAzureV2ReplicationDetails { pub switch_provider_details: Option, } impl InMageAzureV2ReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, infrastructure_vm_id: None, v_center_infrastructure_id: None, protection_stage: None, @@ -7377,8 +7017,6 @@ impl InMageAzureV2ReplicationDetails { #[doc = "InMageAzureV2 specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2ReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Master target Id."] #[serde(rename = "masterTargetId", default, skip_serializing_if = "Option::is_none")] pub master_target_id: Option, @@ -7407,9 +7045,8 @@ pub struct InMageAzureV2ReprotectInput { pub disks_to_include: Vec, } impl InMageAzureV2ReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, master_target_id: None, process_server_id: None, storage_account_id: None, @@ -7471,8 +7108,6 @@ impl InMageAzureV2SwitchProviderDetails { #[doc = "Provider specific input for InMageAzureV2 switch provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2SwitchProviderProviderInput { - #[serde(flatten)] - pub switch_provider_provider_specific_input: SwitchProviderProviderSpecificInput, #[doc = "The target vault Id."] #[serde(rename = "targetVaultID")] pub target_vault_id: String, @@ -7484,14 +7119,8 @@ pub struct InMageAzureV2SwitchProviderProviderInput { pub target_appliance_id: String, } impl InMageAzureV2SwitchProviderProviderInput { - pub fn new( - switch_provider_provider_specific_input: SwitchProviderProviderSpecificInput, - target_vault_id: String, - target_fabric_id: String, - target_appliance_id: String, - ) -> Self { + pub fn new(target_vault_id: String, target_fabric_id: String, target_appliance_id: String) -> Self { Self { - switch_provider_provider_specific_input, target_vault_id, target_fabric_id, target_appliance_id, @@ -7501,42 +7130,30 @@ impl InMageAzureV2SwitchProviderProviderInput { #[doc = "InMageAzureV2 provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2TestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, } impl InMageAzureV2TestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { - Self { - test_failover_provider_specific_input, - recovery_point_id: None, - } + pub fn new() -> Self { + Self { recovery_point_id: None } } } #[doc = "InMageAzureV2 provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2UnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, } impl InMageAzureV2UnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { - Self { - unplanned_failover_provider_specific_input, - recovery_point_id: None, - } + pub fn new() -> Self { + Self { recovery_point_id: None } } } #[doc = "InMage Azure V2 input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2UpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The recovery Azure resource group Id for classic deployment."] #[serde(rename = "recoveryAzureV1ResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_v1_resource_group_id: Option, @@ -7574,9 +7191,8 @@ pub struct InMageAzureV2UpdateReplicationProtectedItemInput { pub vm_disks: Vec, } impl InMageAzureV2UpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_azure_v1_resource_group_id: None, recovery_azure_v2_resource_group_id: None, use_managed_disks: None, @@ -7639,8 +7255,6 @@ pub mod in_mage_azure_v2_update_replication_protected_item_input { #[doc = "Base class for the policies of providers using InMage replication."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageBasePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7655,9 +7269,8 @@ pub struct InMageBasePolicyDetails { pub multi_vm_sync_status: Option, } impl InMageBasePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -7668,16 +7281,13 @@ impl InMageBasePolicyDetails { #[doc = "InMage disable protection provider specific input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageDisableProtectionProviderSpecificInput { - #[serde(flatten)] - pub disable_protection_provider_specific_input: DisableProtectionProviderSpecificInput, #[doc = "A value indicating whether the replica VM should be destroyed or retained. Values from Delete and Retain."] #[serde(rename = "replicaVmDeletionStatus", default, skip_serializing_if = "Option::is_none")] pub replica_vm_deletion_status: Option, } impl InMageDisableProtectionProviderSpecificInput { - pub fn new(disable_protection_provider_specific_input: DisableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - disable_protection_provider_specific_input, replica_vm_deletion_status: None, } } @@ -7754,8 +7364,6 @@ impl InMageDiskSignatureExclusionOptions { #[doc = "VMware Azure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The VM Name."] #[serde(rename = "vmFriendlyName", default, skip_serializing_if = "Option::is_none")] pub vm_friendly_name: Option, @@ -7794,7 +7402,6 @@ pub struct InMageEnableProtectionInput { } impl InMageEnableProtectionInput { pub fn new( - enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, master_target_id: String, process_server_id: String, retention_drive: String, @@ -7802,7 +7409,6 @@ impl InMageEnableProtectionInput { multi_vm_group_name: String, ) -> Self { Self { - enable_protection_provider_specific_input, vm_friendly_name: None, master_target_id, process_server_id, @@ -7846,8 +7452,6 @@ impl InMageFabricSwitchProviderBlockingErrorDetails { #[doc = "InMage specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMagePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7862,9 +7466,8 @@ pub struct InMagePolicyDetails { pub multi_vm_sync_status: Option, } impl InMagePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -7875,8 +7478,6 @@ impl InMagePolicyDetails { #[doc = "VMWare Azure specific protection profile Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMagePolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7891,12 +7492,8 @@ pub struct InMagePolicyInput { pub multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus, } impl InMagePolicyInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -8096,8 +7693,6 @@ impl InMageRcmApplianceDetails { #[doc = "InMageRcm appliance specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmApplianceSpecificDetails { - #[serde(flatten)] - pub appliance_specific_details: ApplianceSpecificDetails, #[doc = "The list of appliances."] #[serde( default, @@ -8107,28 +7702,20 @@ pub struct InMageRcmApplianceSpecificDetails { pub appliances: Vec, } impl InMageRcmApplianceSpecificDetails { - pub fn new(appliance_specific_details: ApplianceSpecificDetails) -> Self { - Self { - appliance_specific_details, - appliances: Vec::new(), - } + pub fn new() -> Self { + Self { appliances: Vec::new() } } } #[doc = "ApplyRecoveryPoint input specific to InMageRcm provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, #[doc = "The recovery point Id."] #[serde(rename = "recoveryPointId")] pub recovery_point_id: String, } impl InMageRcmApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, recovery_point_id: String) -> Self { - Self { - apply_recovery_point_provider_specific_input, - recovery_point_id, - } + pub fn new(recovery_point_id: String) -> Self { + Self { recovery_point_id } } } #[doc = "InMageRcm discovered protected VM details."] @@ -8326,8 +7913,6 @@ pub mod in_mage_rcm_disks_default_input { #[doc = "InMageRcm specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The ARM Id of discovered machine."] #[serde(rename = "fabricDiscoveryMachineId")] pub fabric_discovery_machine_id: String, @@ -8389,14 +7974,8 @@ pub struct InMageRcmEnableProtectionInput { pub multi_vm_group_name: Option, } impl InMageRcmEnableProtectionInput { - pub fn new( - enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, - fabric_discovery_machine_id: String, - target_resource_group_id: String, - process_server_id: String, - ) -> Self { + pub fn new(fabric_discovery_machine_id: String, target_resource_group_id: String, process_server_id: String) -> Self { Self { - enable_protection_provider_specific_input, fabric_discovery_machine_id, disks_to_include: Vec::new(), disks_default: None, @@ -8463,8 +8042,6 @@ pub mod in_mage_rcm_enable_protection_input { #[doc = "Event details for InMageRcm provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -8491,9 +8068,8 @@ pub struct InMageRcmEventDetails { pub component_display_name: Option, } impl InMageRcmEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, vm_name: None, latest_agent_version: None, @@ -8508,8 +8084,6 @@ impl InMageRcmEventDetails { #[doc = "InMageRcm fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId")] pub vmware_site_id: String, @@ -8521,14 +8095,8 @@ pub struct InMageRcmFabricCreationInput { pub source_agent_identity: IdentityProviderInput, } impl InMageRcmFabricCreationInput { - pub fn new( - fabric_specific_creation_input: FabricSpecificCreationInput, - vmware_site_id: String, - physical_site_id: String, - source_agent_identity: IdentityProviderInput, - ) -> Self { + pub fn new(vmware_site_id: String, physical_site_id: String, source_agent_identity: IdentityProviderInput) -> Self { Self { - fabric_specific_creation_input, vmware_site_id, physical_site_id, source_agent_identity, @@ -8538,8 +8106,6 @@ impl InMageRcmFabricCreationInput { #[doc = "InMageRcm fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -8629,9 +8195,8 @@ pub struct InMageRcmFabricSpecificDetails { pub agent_details: Vec, } impl InMageRcmFabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, vmware_site_id: None, physical_site_id: None, service_endpoint: None, @@ -8735,8 +8300,6 @@ impl InMageRcmFailbackDiscoveredProtectedVmDetails { #[doc = "Event details for InMageRcmFailback provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -8754,9 +8317,8 @@ pub struct InMageRcmFailbackEventDetails { pub component_display_name: Option, } impl InMageRcmFailbackEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, vm_name: None, appliance_name: None, @@ -8830,21 +8392,13 @@ impl InMageRcmFailbackNicDetails { #[doc = "Provider specific input for InMageRcmFailback failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPlannedFailoverProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType, } impl InMageRcmFailbackPlannedFailoverProviderInput { - pub fn new( - planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, - recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType, - ) -> Self { - Self { - planned_failover_provider_specific_failover_input, - recovery_point_type, - } + pub fn new(recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType) -> Self { + Self { recovery_point_type } } } pub mod in_mage_rcm_failback_planned_failover_provider_input { @@ -8890,8 +8444,6 @@ pub mod in_mage_rcm_failback_planned_failover_provider_input { #[doc = "InMageRcmFailback policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The crash consistent snapshot frequency (in minutes)."] #[serde(rename = "crashConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub crash_consistent_frequency_in_minutes: Option, @@ -8900,9 +8452,8 @@ pub struct InMageRcmFailbackPolicyCreationInput { pub app_consistent_frequency_in_minutes: Option, } impl InMageRcmFailbackPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, } @@ -8911,8 +8462,6 @@ impl InMageRcmFailbackPolicyCreationInput { #[doc = "InMageRcm failback specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The app consistent snapshot frequency in minutes."] #[serde(rename = "appConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub app_consistent_frequency_in_minutes: Option, @@ -8921,9 +8470,8 @@ pub struct InMageRcmFailbackPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl InMageRcmFailbackPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, } @@ -8974,8 +8522,6 @@ impl InMageRcmFailbackProtectedDiskDetails { #[doc = "InMageRcmFailback provider specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The virtual machine internal identifier."] #[serde(rename = "internalIdentifier", default, skip_serializing_if = "Option::is_none")] pub internal_identifier: Option, @@ -9079,9 +8625,8 @@ pub struct InMageRcmFailbackReplicationDetails { pub is_agent_registration_successful_after_failover: Option, } impl InMageRcmFailbackReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, internal_identifier: None, azure_virtual_machine_id: None, multi_vm_group_name: None, @@ -9284,8 +8829,6 @@ pub mod in_mage_rcm_failback_replication_details { #[doc = "InMageRcmFailback specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The process server Id."] #[serde(rename = "processServerId")] pub process_server_id: String, @@ -9297,13 +8840,8 @@ pub struct InMageRcmFailbackReprotectInput { pub policy_id: String, } impl InMageRcmFailbackReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - process_server_id: String, - policy_id: String, - ) -> Self { + pub fn new(process_server_id: String, policy_id: String) -> Self { Self { - reverse_replication_provider_specific_input, process_server_id, run_as_account_id: None, policy_id, @@ -9663,8 +9201,6 @@ impl InMageRcmNicInput { #[doc = "InMageRcm policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -9679,9 +9215,8 @@ pub struct InMageRcmPolicyCreationInput { pub enable_multi_vm_sync: Option, } impl InMageRcmPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_in_minutes: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -9692,8 +9227,6 @@ impl InMageRcmPolicyCreationInput { #[doc = "InMageRcm specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -9708,9 +9241,8 @@ pub struct InMageRcmPolicyDetails { pub enable_multi_vm_sync: Option, } impl InMageRcmPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_in_minutes: None, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, @@ -9820,16 +9352,13 @@ pub mod in_mage_rcm_protected_disk_details { #[doc = "InMageRcm provider specific container mapping details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "A value indicating whether the flag for enable agent auto upgrade."] #[serde(rename = "enableAgentAutoUpgrade", default, skip_serializing_if = "Option::is_none")] pub enable_agent_auto_upgrade: Option, } impl InMageRcmProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, enable_agent_auto_upgrade: None, } } @@ -9837,16 +9366,13 @@ impl InMageRcmProtectionContainerMappingDetails { #[doc = "InMageRcm provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmRecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "isMultiVmSyncPoint", default, skip_serializing_if = "Option::is_none")] pub is_multi_vm_sync_point: Option, } impl InMageRcmRecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, is_multi_vm_sync_point: None, } } @@ -9854,8 +9380,6 @@ impl InMageRcmRecoveryPointDetails { #[doc = "InMageRcm provider specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The virtual machine internal identifier."] #[serde(rename = "internalIdentifier", default, skip_serializing_if = "Option::is_none")] pub internal_identifier: Option, @@ -10038,9 +9562,8 @@ pub struct InMageRcmReplicationDetails { pub discovered_vm_details: Option, } impl InMageRcmReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, internal_identifier: None, fabric_discovery_machine_id: None, multi_vm_group_name: None, @@ -10266,8 +9789,6 @@ pub mod in_mage_rcm_replication_details { #[doc = "InMageRcm specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The reprotect agent Id."] #[serde(rename = "reprotectAgentId")] pub reprotect_agent_id: String, @@ -10282,14 +9803,8 @@ pub struct InMageRcmReprotectInput { pub policy_id: Option, } impl InMageRcmReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - reprotect_agent_id: String, - datastore_name: String, - log_storage_account_id: String, - ) -> Self { + pub fn new(reprotect_agent_id: String, datastore_name: String, log_storage_account_id: String) -> Self { Self { - reverse_replication_provider_specific_input, reprotect_agent_id, datastore_name, log_storage_account_id, @@ -10379,8 +9894,6 @@ pub mod in_mage_rcm_sync_details { #[doc = "InMageRcm provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The test network Id."] #[serde(rename = "networkId", default, skip_serializing_if = "Option::is_none")] pub network_id: Option, @@ -10389,9 +9902,8 @@ pub struct InMageRcmTestFailoverInput { pub recovery_point_id: Option, } impl InMageRcmTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, network_id: None, recovery_point_id: None, } @@ -10400,8 +9912,6 @@ impl InMageRcmTestFailoverInput { #[doc = "InMageRcm provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "A value indicating whether VM is to be shutdown."] #[serde(rename = "performShutdown")] pub perform_shutdown: String, @@ -10410,9 +9920,8 @@ pub struct InMageRcmUnplannedFailoverInput { pub recovery_point_id: Option, } impl InMageRcmUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, perform_shutdown: String) -> Self { + pub fn new(perform_shutdown: String) -> Self { Self { - unplanned_failover_provider_specific_input, perform_shutdown, recovery_point_id: None, } @@ -10421,48 +9930,30 @@ impl InMageRcmUnplannedFailoverInput { #[doc = "InMageRcm provider specific input to update appliance for replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateApplianceForReplicationProtectedItemInput { - #[serde(flatten)] - pub update_appliance_for_replication_protected_item_provider_specific_input: - UpdateApplianceForReplicationProtectedItemProviderSpecificInput, #[doc = "The run as account Id."] #[serde(rename = "runAsAccountId", default, skip_serializing_if = "Option::is_none")] pub run_as_account_id: Option, } impl InMageRcmUpdateApplianceForReplicationProtectedItemInput { - pub fn new( - update_appliance_for_replication_protected_item_provider_specific_input : UpdateApplianceForReplicationProtectedItemProviderSpecificInput, - ) -> Self { - Self { - update_appliance_for_replication_protected_item_provider_specific_input, - run_as_account_id: None, - } + pub fn new() -> Self { + Self { run_as_account_id: None } } } #[doc = "InMageRcm update protection container mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, #[doc = "A value indicating whether agent auto upgrade has to be enabled."] #[serde(rename = "enableAgentAutoUpgrade")] pub enable_agent_auto_upgrade: String, } impl InMageRcmUpdateContainerMappingInput { - pub fn new( - replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, - enable_agent_auto_upgrade: String, - ) -> Self { - Self { - replication_provider_specific_update_container_mapping_input, - enable_agent_auto_upgrade, - } + pub fn new(enable_agent_auto_upgrade: String) -> Self { + Self { enable_agent_auto_upgrade } } } #[doc = "InMageRcm provider specific input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The target VM name."] #[serde(rename = "targetVmName", default, skip_serializing_if = "Option::is_none")] pub target_vm_name: Option, @@ -10503,9 +9994,8 @@ pub struct InMageRcmUpdateReplicationProtectedItemInput { pub license_type: Option, } impl InMageRcmUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, target_vm_name: None, target_vm_size: None, target_resource_group_id: None, @@ -10565,8 +10055,6 @@ pub mod in_mage_rcm_update_replication_protected_item_input { #[doc = "InMage provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The active location of the VM. If the VM is being protected from Azure, this field will take values from { Azure, OnPrem }. If the VM is being protected between two data-centers, this field will be OnPrem always."] #[serde(rename = "activeSiteType", default, skip_serializing_if = "Option::is_none")] pub active_site_type: Option, @@ -10708,9 +10196,8 @@ pub struct InMageReplicationDetails { pub total_progress_health: Option, } impl InMageReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, active_site_type: None, source_vm_cpu_count: None, source_vm_ram_size_in_mb: None, @@ -10757,8 +10244,6 @@ impl InMageReplicationDetails { #[doc = "InMageAzureV2 specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Master Target Id."] #[serde(rename = "masterTargetId")] pub master_target_id: String, @@ -10790,15 +10275,8 @@ pub struct InMageReprotectInput { pub disks_to_include: Vec, } impl InMageReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - master_target_id: String, - process_server_id: String, - retention_drive: String, - profile_id: String, - ) -> Self { + pub fn new(master_target_id: String, process_server_id: String, retention_drive: String, profile_id: String) -> Self { Self { - reverse_replication_provider_specific_input, master_target_id, process_server_id, retention_drive, @@ -10813,8 +10291,6 @@ impl InMageReprotectInput { #[doc = "Provider specific input for InMage test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -10823,9 +10299,8 @@ pub struct InMageTestFailoverInput { pub recovery_point_id: Option, } impl InMageTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, recovery_point_type: None, recovery_point_id: None, } @@ -10876,8 +10351,6 @@ pub mod in_mage_test_failover_input { #[doc = "Provider specific input for InMage unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -10886,9 +10359,8 @@ pub struct InMageUnplannedFailoverInput { pub recovery_point_id: Option, } impl InMageUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, recovery_point_type: None, recovery_point_id: None, } @@ -11381,8 +10853,6 @@ pub mod job_query_parameter { #[doc = "Model class for event details of a job status event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobStatusEventDetails { - #[serde(flatten)] - pub event_specific_details: EventSpecificDetails, #[doc = "Job arm id for the event."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -11397,9 +10867,8 @@ pub struct JobStatusEventDetails { pub affected_object_type: Option, } impl JobStatusEventDetails { - pub fn new(event_specific_details: EventSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_specific_details, job_id: None, job_friendly_name: None, job_status: None, @@ -11410,18 +10879,13 @@ impl JobStatusEventDetails { #[doc = "This class represents a task which is actually a workflow so that one can navigate to its individual drill down."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "This class contains the minimal job details required to navigate to the desired drill down."] #[serde(rename = "jobTask", default, skip_serializing_if = "Option::is_none")] pub job_task: Option, } impl JobTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { - Self { - task_type_details, - job_task: None, - } + pub fn new() -> Self { + Self { job_task: None } } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -11508,8 +10972,6 @@ impl LogicalNetworkProperties { #[doc = "This class represents the manual action task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManualActionTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -11521,9 +10983,8 @@ pub struct ManualActionTaskDetails { pub observation: Option, } impl ManualActionTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, instructions: None, observation: None, @@ -11721,14 +11182,6 @@ impl MigrateInputProperties { Self { provider_specific_details } } } -#[doc = "Migrate provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MigrateProviderSpecificInput {} -impl MigrateProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12044,14 +11497,6 @@ impl MigrationItemsQueryParameter { Self::default() } } -#[doc = "Migration provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MigrationProviderSpecificSettings {} -impl MigrationProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12250,14 +11695,6 @@ impl NetworkMappingCollection { Self::default() } } -#[doc = "Network Mapping fabric specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct NetworkMappingFabricSpecificSettings {} -impl NetworkMappingFabricSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12330,8 +11767,6 @@ impl NetworkProperties { #[doc = "New Protection profile input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NewProtectionProfile { - #[serde(flatten)] - pub protection_profile_custom_details: ProtectionProfileCustomDetails, #[doc = "The protection profile input."] #[serde(rename = "policyName")] pub policy_name: String, @@ -12349,13 +11784,8 @@ pub struct NewProtectionProfile { pub multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus, } impl NewProtectionProfile { - pub fn new( - protection_profile_custom_details: ProtectionProfileCustomDetails, - policy_name: String, - multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus, - ) -> Self { + pub fn new(policy_name: String, multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus) -> Self { Self { - protection_profile_custom_details, policy_name, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, @@ -12407,8 +11837,6 @@ pub mod new_protection_profile { #[doc = "Recovery virtual network input to create new virtual network from given source network."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NewRecoveryVirtualNetwork { - #[serde(flatten)] - pub recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, #[doc = "The name of the resource group to be used to create the recovery virtual network. If absent, target network would be created in the same resource group as target VM."] #[serde( rename = "recoveryVirtualNetworkResourceGroupName", @@ -12421,9 +11849,8 @@ pub struct NewRecoveryVirtualNetwork { pub recovery_virtual_network_name: Option, } impl NewRecoveryVirtualNetwork { - pub fn new(recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_virtual_network_custom_details, recovery_virtual_network_resource_group_name: None, recovery_virtual_network_name: None, } @@ -12593,14 +12020,6 @@ impl PlannedFailoverInputProperties { Self::default() } } -#[doc = "Provider specific failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PlannedFailoverProviderSpecificFailoverInput {} -impl PlannedFailoverProviderSpecificFailoverInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12663,14 +12082,6 @@ impl PolicyProperties { Self::default() } } -#[doc = "Base class for Provider specific details for policies."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PolicyProviderSpecificDetails {} -impl PolicyProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12688,14 +12099,6 @@ pub enum PolicyProviderSpecificDetailsUnion { InMageRcm(InMageRcmPolicyDetails), VMwareCbt(VmwareCbtPolicyDetails), } -#[doc = "Base class for provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PolicyProviderSpecificInput {} -impl PolicyProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13580,14 +12983,6 @@ impl ProtectionContainerMappingProperties { Self::default() } } -#[doc = "Container mapping provider specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProtectionContainerMappingProviderSpecificDetails {} -impl ProtectionContainerMappingProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13627,14 +13022,6 @@ impl ProtectionContainerProperties { Self::default() } } -#[doc = "Protection Profile custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProtectionProfileCustomDetails {} -impl ProtectionProfileCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -13666,14 +13053,6 @@ impl ProviderError { Self::default() } } -#[doc = "Replication provider specific recovery point details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProviderSpecificRecoveryPointDetails {} -impl ProviderSpecificRecoveryPointDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the provider type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13856,14 +13235,6 @@ pub mod rcm_proxy_details { } } } -#[doc = "Recovery Availability Set custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryAvailabilitySetCustomDetails {} -impl RecoveryAvailabilitySetCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -13887,8 +13258,6 @@ impl RecoveryPlan { #[doc = "Recovery plan A2A specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aDetails { - #[serde(flatten)] - pub recovery_plan_provider_specific_details: RecoveryPlanProviderSpecificDetails, #[doc = "The primary zone."] #[serde(rename = "primaryZone", default, skip_serializing_if = "Option::is_none")] pub primary_zone: Option, @@ -13903,9 +13272,8 @@ pub struct RecoveryPlanA2aDetails { pub recovery_extended_location: Option, } impl RecoveryPlanA2aDetails { - pub fn new(recovery_plan_provider_specific_details: RecoveryPlanProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_details, primary_zone: None, recovery_zone: None, primary_extended_location: None, @@ -13916,8 +13284,6 @@ impl RecoveryPlanA2aDetails { #[doc = "Recovery plan A2A failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType, @@ -13929,12 +13295,8 @@ pub struct RecoveryPlanA2aFailoverInput { pub multi_vm_sync_point_option: Option, } impl RecoveryPlanA2aFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, cloud_service_creation_option: None, multi_vm_sync_point_option: None, @@ -14029,8 +13391,6 @@ pub mod recovery_plan_a2a_failover_input { #[doc = "Recovery plan A2A input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_input: RecoveryPlanProviderSpecificInput, #[doc = "The primary zone."] #[serde(rename = "primaryZone", default, skip_serializing_if = "Option::is_none")] pub primary_zone: Option, @@ -14045,9 +13405,8 @@ pub struct RecoveryPlanA2aInput { pub recovery_extended_location: Option, } impl RecoveryPlanA2aInput { - pub fn new(recovery_plan_provider_specific_input: RecoveryPlanProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_input, primary_zone: None, recovery_zone: None, primary_extended_location: None, @@ -14086,14 +13445,6 @@ impl RecoveryPlanAction { } } } -#[doc = "Recovery plan action custom details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanActionDetails {} -impl RecoveryPlanActionDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values)."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14105,8 +13456,6 @@ pub enum RecoveryPlanActionDetailsUnion { #[doc = "Recovery plan Automation runbook action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanAutomationRunbookActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The runbook ARM Id."] #[serde(rename = "runbookId", default, skip_serializing_if = "Option::is_none")] pub runbook_id: Option, @@ -14118,12 +13467,8 @@ pub struct RecoveryPlanAutomationRunbookActionDetails { pub fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation, } impl RecoveryPlanAutomationRunbookActionDetails { - pub fn new( - recovery_plan_action_details: RecoveryPlanActionDetails, - fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation, - ) -> Self { + pub fn new(fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation) -> Self { Self { - recovery_plan_action_details, runbook_id: None, timeout: None, fabric_location, @@ -14311,8 +13656,6 @@ pub enum RecoveryPlanGroupTaskDetailsUnion { #[doc = "Recovery plan HVR Azure failback input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanHyperVReplicaAzureFailbackInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The data sync option."] #[serde(rename = "dataSyncOption")] pub data_sync_option: recovery_plan_hyper_v_replica_azure_failback_input::DataSyncOption, @@ -14322,12 +13665,10 @@ pub struct RecoveryPlanHyperVReplicaAzureFailbackInput { } impl RecoveryPlanHyperVReplicaAzureFailbackInput { pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, data_sync_option: recovery_plan_hyper_v_replica_azure_failback_input::DataSyncOption, recovery_vm_creation_option: recovery_plan_hyper_v_replica_azure_failback_input::RecoveryVmCreationOption, ) -> Self { Self { - recovery_plan_provider_specific_failover_input, data_sync_option, recovery_vm_creation_option, } @@ -14413,8 +13754,6 @@ pub mod recovery_plan_hyper_v_replica_azure_failback_input { #[doc = "Recovery plan HVR Azure failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanHyperVReplicaAzureFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The primary KEK certificate PFX."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -14426,9 +13765,8 @@ pub struct RecoveryPlanHyperVReplicaAzureFailoverInput { pub recovery_point_type: Option, } impl RecoveryPlanHyperVReplicaAzureFailoverInput { - pub fn new(recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_failover_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_type: None, @@ -14482,8 +13820,6 @@ pub mod recovery_plan_hyper_v_replica_azure_failover_input { #[doc = "Recovery plan InMageAzureV2 failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageAzureV2FailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType, @@ -14492,12 +13828,8 @@ pub struct RecoveryPlanInMageAzureV2FailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageAzureV2FailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14552,21 +13884,13 @@ pub mod recovery_plan_in_mage_azure_v2_failover_input { #[doc = "Recovery plan InMage failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType, } impl RecoveryPlanInMageFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType, - ) -> Self { - Self { - recovery_plan_provider_specific_failover_input, - recovery_point_type, - } + pub fn new(recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType) -> Self { + Self { recovery_point_type } } } pub mod recovery_plan_in_mage_failover_input { @@ -14614,8 +13938,6 @@ pub mod recovery_plan_in_mage_failover_input { #[doc = "Recovery plan InMageRcmFailback failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageRcmFailbackFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType, @@ -14624,12 +13946,8 @@ pub struct RecoveryPlanInMageRcmFailbackFailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageRcmFailbackFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14678,8 +13996,6 @@ pub mod recovery_plan_in_mage_rcm_failback_failover_input { #[doc = "Recovery plan InMageRcm failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageRcmFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType, @@ -14688,12 +14004,8 @@ pub struct RecoveryPlanInMageRcmFailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageRcmFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14748,18 +14060,13 @@ pub mod recovery_plan_in_mage_rcm_failover_input { #[doc = "Recovery plan manual action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanManualActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The manual action description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, } impl RecoveryPlanManualActionDetails { - pub fn new(recovery_plan_action_details: RecoveryPlanActionDetails) -> Self { - Self { - recovery_plan_action_details, - description: None, - } + pub fn new() -> Self { + Self { description: None } } } #[doc = "Recovery plan planned failover input."] @@ -14927,14 +14234,6 @@ impl RecoveryPlanProtectedItem { Self::default() } } -#[doc = "Recovery plan provider specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificDetails {} -impl RecoveryPlanProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14942,14 +14241,6 @@ pub enum RecoveryPlanProviderSpecificDetailsUnion { #[serde(rename = "A2A")] A2a(RecoveryPlanA2aDetails), } -#[doc = "Recovery plan provider specific failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificFailoverInput {} -impl RecoveryPlanProviderSpecificFailoverInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14963,14 +14254,6 @@ pub enum RecoveryPlanProviderSpecificFailoverInputUnion { InMageRcmFailback(RecoveryPlanInMageRcmFailbackFailoverInput), InMageRcm(RecoveryPlanInMageRcmFailoverInput), } -#[doc = "Recovery plan provider specific input base class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificInput {} -impl RecoveryPlanProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14981,8 +14264,6 @@ pub enum RecoveryPlanProviderSpecificInputUnion { #[doc = "Recovery plan script action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanScriptActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The script path."] pub path: String, #[doc = "The script timeout."] @@ -14993,13 +14274,8 @@ pub struct RecoveryPlanScriptActionDetails { pub fabric_location: recovery_plan_script_action_details::FabricLocation, } impl RecoveryPlanScriptActionDetails { - pub fn new( - recovery_plan_action_details: RecoveryPlanActionDetails, - path: String, - fabric_location: recovery_plan_script_action_details::FabricLocation, - ) -> Self { + pub fn new(path: String, fabric_location: recovery_plan_script_action_details::FabricLocation) -> Self { Self { - recovery_plan_action_details, path, timeout: None, fabric_location, @@ -15339,28 +14615,12 @@ impl RecoveryPointProperties { Self::default() } } -#[doc = "Recovery Proximity placement group custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryProximityPlacementGroupCustomDetails {} -impl RecoveryProximityPlacementGroupCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] pub enum RecoveryProximityPlacementGroupCustomDetailsUnion { Existing(ExistingRecoveryProximityPlacementGroup), } -#[doc = "Recovery Resource Group custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryResourceGroupCustomDetails {} -impl RecoveryResourceGroupCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -15489,14 +14749,6 @@ impl RecoveryServicesProviderProperties { Self::default() } } -#[doc = "Recovery Virtual network custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryVirtualNetworkCustomDetails {} -impl RecoveryVirtualNetworkCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -15528,14 +14780,6 @@ impl RemoveDisksInputProperties { Self::default() } } -#[doc = "Remove Disk provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RemoveDisksProviderSpecificInput {} -impl RemoveDisksProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15782,13 +15026,10 @@ impl ReplicationEligibilityResultsProperties { } #[doc = "Replication group details. This will be used in case of San."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationGroupDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, -} +pub struct ReplicationGroupDetails {} impl ReplicationGroupDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { - Self { configuration_settings } + pub fn new() -> Self { + Self {} } } #[doc = "Replication protected item."] @@ -16013,14 +15254,6 @@ impl ReplicationProtectionIntentProperties { Self::default() } } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProtectionIntentProviderSpecificSettings {} -impl ReplicationProtectionIntentProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16040,14 +15273,6 @@ impl ReplicationProviderContainerUnmappingInput { Self::default() } } -#[doc = "Provider specific input for container creation operation."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificContainerCreationInput {} -impl ReplicationProviderSpecificContainerCreationInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16058,14 +15283,6 @@ pub enum ReplicationProviderSpecificContainerCreationInputUnion { A2aCrossClusterMigration(A2aCrossClusterMigrationContainerCreationInput), VMwareCbt(VMwareCbtContainerCreationInput), } -#[doc = "Provider specific input for pairing operations."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificContainerMappingInput {} -impl ReplicationProviderSpecificContainerMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16074,14 +15291,6 @@ pub enum ReplicationProviderSpecificContainerMappingInputUnion { A2a(A2aContainerMappingInput), VMwareCbt(VMwareCbtContainerMappingInput), } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificSettings {} -impl ReplicationProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16099,14 +15308,6 @@ pub enum ReplicationProviderSpecificSettingsUnion { InMageRcm(InMageRcmReplicationDetails), InMage(InMageReplicationDetails), } -#[doc = "Provider specific input for update pairing operations."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificUpdateContainerMappingInput {} -impl ReplicationProviderSpecificUpdateContainerMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16348,14 +15549,6 @@ impl ResumeReplicationInputProperties { Self { provider_specific_details } } } -#[doc = "Resume replication provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResumeReplicationProviderSpecificInput {} -impl ResumeReplicationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16385,14 +15578,6 @@ impl ResyncInputProperties { Self { provider_specific_details } } } -#[doc = "Resync provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResyncProviderSpecificInput {} -impl ResyncProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16447,14 +15632,6 @@ impl ReverseReplicationInputProperties { Self::default() } } -#[doc = "Provider specific reverse replication input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReverseReplicationProviderSpecificInput {} -impl ReverseReplicationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16509,8 +15686,6 @@ impl RunAsAccount { #[doc = "This class represents the script action task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScriptActionTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -16525,9 +15700,8 @@ pub struct ScriptActionTaskDetails { pub is_primary_side_script: Option, } impl ScriptActionTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, path: None, output: None, @@ -16559,14 +15733,6 @@ impl ServiceError { Self::default() } } -#[doc = "Storage account custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StorageAccountCustomDetails {} -impl StorageAccountCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -16840,14 +16006,6 @@ impl SwitchProtectionJobDetails { } } } -#[doc = "Provider specific switch protection input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SwitchProtectionProviderSpecificInput {} -impl SwitchProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16882,14 +16040,6 @@ impl SwitchProviderInputProperties { Self::default() } } -#[doc = "Provider specific switch provider input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SwitchProviderProviderSpecificInput {} -impl SwitchProviderProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16990,14 +16140,6 @@ impl TargetComputeSizeProperties { Self::default() } } -#[doc = "Task details based on specific task type."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TaskTypeDetails {} -impl TaskTypeDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of task details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17106,14 +16248,6 @@ impl TestFailoverJobDetails { } } } -#[doc = "Provider specific test failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TestFailoverProviderSpecificInput {} -impl TestFailoverProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17171,14 +16305,6 @@ impl TestMigrateInputProperties { Self { provider_specific_details } } } -#[doc = "Test migrate provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TestMigrateProviderSpecificInput {} -impl TestMigrateProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17214,14 +16340,6 @@ impl UnplannedFailoverInputProperties { Self::default() } } -#[doc = "Provider specific unplanned failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UnplannedFailoverProviderSpecificInput {} -impl UnplannedFailoverProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17265,14 +16383,6 @@ impl UpdateApplianceForReplicationProtectedItemInputProperties { } } } -#[doc = "Update replication protected item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateApplianceForReplicationProtectedItemProviderSpecificInput {} -impl UpdateApplianceForReplicationProtectedItemProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17321,14 +16431,6 @@ impl UpdateMigrationItemInputProperties { Self { provider_specific_details } } } -#[doc = "Update migration item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateMigrationItemProviderSpecificInput {} -impl UpdateMigrationItemProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17563,14 +16665,6 @@ pub mod update_replication_protected_item_input_properties { } } } -#[doc = "Update replication protected item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateReplicationProtectedItemProviderInput {} -impl UpdateReplicationProtectedItemProviderInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17832,22 +16926,15 @@ impl VmNicInputDetails { } #[doc = "VMwareCbt container creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VMwareCbtContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct VMwareCbtContainerCreationInput {} impl VMwareCbtContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "VMwareCbt container mapping input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, #[doc = "The target key vault ARM Id."] #[serde(rename = "keyVaultId", default, skip_serializing_if = "Option::is_none")] pub key_vault_id: Option, @@ -17868,13 +16955,8 @@ pub struct VMwareCbtContainerMappingInput { pub target_location: String, } impl VMwareCbtContainerMappingInput { - pub fn new( - replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, - storage_account_id: String, - target_location: String, - ) -> Self { + pub fn new(storage_account_id: String, target_location: String) -> Self { Self { - replication_provider_specific_container_mapping_input, key_vault_id: None, key_vault_uri: None, storage_account_id, @@ -17966,8 +17048,6 @@ pub mod v_mware_cbt_disk_input { #[doc = "VMwareCbt specific enable migration input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtEnableMigrationInput { - #[serde(flatten)] - pub enable_migration_provider_specific_input: EnableMigrationProviderSpecificInput, #[doc = "The ARM Id of the VM discovered in VMware."] #[serde(rename = "vmwareMachineId")] pub vmware_machine_id: String, @@ -18046,7 +17126,6 @@ pub struct VMwareCbtEnableMigrationInput { } impl VMwareCbtEnableMigrationInput { pub fn new( - enable_migration_provider_specific_input: EnableMigrationProviderSpecificInput, vmware_machine_id: String, disks_to_include: Vec, data_mover_run_as_account_id: String, @@ -18055,7 +17134,6 @@ impl VMwareCbtEnableMigrationInput { target_network_id: String, ) -> Self { Self { - enable_migration_provider_specific_input, vmware_machine_id, disks_to_include, license_type: None, @@ -18172,25 +17250,18 @@ pub mod v_mware_cbt_enable_migration_input { #[doc = "Event details for VMwareCbt provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The migration item name."] #[serde(rename = "migrationItemName", default, skip_serializing_if = "Option::is_none")] pub migration_item_name: Option, } impl VMwareCbtEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { - Self { - event_provider_specific_details, - migration_item_name: None, - } + pub fn new() -> Self { + Self { migration_item_name: None } } } #[doc = "VMwareCbt specific migrate input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtMigrateInput { - #[serde(flatten)] - pub migrate_provider_specific_input: MigrateProviderSpecificInput, #[doc = "A value indicating whether VM is to be shutdown."] #[serde(rename = "performShutdown")] pub perform_shutdown: String, @@ -18199,9 +17270,8 @@ pub struct VMwareCbtMigrateInput { pub os_upgrade_version: Option, } impl VMwareCbtMigrateInput { - pub fn new(migrate_provider_specific_input: MigrateProviderSpecificInput, perform_shutdown: String) -> Self { + pub fn new(perform_shutdown: String) -> Self { Self { - migrate_provider_specific_input, perform_shutdown, os_upgrade_version: None, } @@ -18210,8 +17280,6 @@ impl VMwareCbtMigrateInput { #[doc = "VMwareCbt provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtMigrationDetails { - #[serde(flatten)] - pub migration_provider_specific_settings: MigrationProviderSpecificSettings, #[doc = "The ARM Id of the VM discovered in VMware."] #[serde(rename = "vmwareMachineId", default, skip_serializing_if = "Option::is_none")] pub vmware_machine_id: Option, @@ -18355,9 +17423,8 @@ pub struct VMwareCbtMigrationDetails { pub supported_os_versions: Vec, } impl VMwareCbtMigrationDetails { - pub fn new(migration_provider_specific_settings: MigrationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - migration_provider_specific_settings, vmware_machine_id: None, os_type: None, os_name: None, @@ -18657,8 +17724,6 @@ impl VMwareCbtNicInput { #[doc = "VMware Cbt policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -18670,9 +17735,8 @@ pub struct VMwareCbtPolicyCreationInput { pub app_consistent_frequency_in_minutes: Option, } impl VMwareCbtPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_in_minutes: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -18778,8 +17842,6 @@ pub mod v_mware_cbt_protected_disk_details { #[doc = "VMwareCbt provider specific container mapping details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "The target key vault ARM Id."] #[serde(rename = "keyVaultId", default, skip_serializing_if = "Option::is_none")] pub key_vault_id: Option, @@ -18811,9 +17873,8 @@ pub struct VMwareCbtProtectionContainerMappingDetails { pub excluded_skus: Vec, } impl VMwareCbtProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, key_vault_id: None, key_vault_uri: None, storage_account_id: None, @@ -18828,16 +17889,13 @@ impl VMwareCbtProtectionContainerMappingDetails { #[doc = "VMwareCbt specific resume replication input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtResumeReplicationInput { - #[serde(flatten)] - pub resume_replication_provider_specific_input: ResumeReplicationProviderSpecificInput, #[doc = "A value indicating whether Migration resources to be deleted."] #[serde(rename = "deleteMigrationResources", default, skip_serializing_if = "Option::is_none")] pub delete_migration_resources: Option, } impl VMwareCbtResumeReplicationInput { - pub fn new(resume_replication_provider_specific_input: ResumeReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - resume_replication_provider_specific_input, delete_migration_resources: None, } } @@ -18845,18 +17903,13 @@ impl VMwareCbtResumeReplicationInput { #[doc = "VMwareCbt specific resync input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtResyncInput { - #[serde(flatten)] - pub resync_provider_specific_input: ResyncProviderSpecificInput, #[doc = "A value indicating whether CBT is to be reset."] #[serde(rename = "skipCbtReset")] pub skip_cbt_reset: String, } impl VMwareCbtResyncInput { - pub fn new(resync_provider_specific_input: ResyncProviderSpecificInput, skip_cbt_reset: String) -> Self { - Self { - resync_provider_specific_input, - skip_cbt_reset, - } + pub fn new(skip_cbt_reset: String) -> Self { + Self { skip_cbt_reset } } } #[doc = "VMwareCbt security profile input."] @@ -18933,8 +17986,6 @@ pub mod v_mware_cbt_security_profile_properties { #[doc = "VMwareCbt specific test migrate input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtTestMigrateInput { - #[serde(flatten)] - pub test_migrate_provider_specific_input: TestMigrateProviderSpecificInput, #[doc = "The recovery point Id."] #[serde(rename = "recoveryPointId")] pub recovery_point_id: String, @@ -18954,13 +18005,8 @@ pub struct VMwareCbtTestMigrateInput { pub os_upgrade_version: Option, } impl VMwareCbtTestMigrateInput { - pub fn new( - test_migrate_provider_specific_input: TestMigrateProviderSpecificInput, - recovery_point_id: String, - network_id: String, - ) -> Self { + pub fn new(recovery_point_id: String, network_id: String) -> Self { Self { - test_migrate_provider_specific_input, recovery_point_id, network_id, vm_nics: Vec::new(), @@ -18993,8 +18039,6 @@ impl VMwareCbtUpdateDiskInput { #[doc = "VMwareCbt specific update migration item input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtUpdateMigrationItemInput { - #[serde(flatten)] - pub update_migration_item_provider_specific_input: UpdateMigrationItemProviderSpecificInput, #[doc = "The target VM name."] #[serde(rename = "targetVmName", default, skip_serializing_if = "Option::is_none")] pub target_vm_name: Option, @@ -19058,9 +18102,8 @@ pub struct VMwareCbtUpdateMigrationItemInput { pub target_nic_tags: Option, } impl VMwareCbtUpdateMigrationItemInput { - pub fn new(update_migration_item_provider_specific_input: UpdateMigrationItemProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - update_migration_item_provider_specific_input, target_vm_name: None, target_vm_size: None, target_resource_group_id: None, @@ -19169,8 +18212,6 @@ pub mod v_mware_cbt_update_migration_item_input { #[doc = "Store the fabric details specific to the VMware fabric."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The list of Process Servers associated with the fabric."] #[serde( rename = "processServers", @@ -19292,9 +18333,8 @@ pub struct VMwareDetails { pub switch_provider_blocking_error_details: Vec, } impl VMwareDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, process_servers: Vec::new(), master_target_servers: Vec::new(), run_as_accounts: Vec::new(), @@ -19334,8 +18374,6 @@ impl VMwareDetails { #[doc = "VMwareV2 fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareV2FabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -19347,9 +18385,8 @@ pub struct VMwareV2FabricCreationInput { pub migration_solution_id: String, } impl VMwareV2FabricCreationInput { - pub fn new(fabric_specific_creation_input: FabricSpecificCreationInput, migration_solution_id: String) -> Self { + pub fn new(migration_solution_id: String) -> Self { Self { - fabric_specific_creation_input, vmware_site_id: None, physical_site_id: None, migration_solution_id, @@ -19359,8 +18396,6 @@ impl VMwareV2FabricCreationInput { #[doc = "VMwareV2 fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareV2FabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -19389,9 +18424,8 @@ pub struct VMwareV2FabricSpecificDetails { pub process_servers: Vec, } impl VMwareV2FabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, vmware_site_id: None, physical_site_id: None, migration_solution_id: None, @@ -19405,8 +18439,6 @@ impl VMwareV2FabricSpecificDetails { #[doc = "VMware provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareVirtualMachineDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, #[doc = "The ID generated by the InMage agent after it gets installed on guest. This is the ID to be used during InMage CreateProtection."] #[serde(rename = "agentGeneratedId", default, skip_serializing_if = "Option::is_none")] pub agent_generated_id: Option, @@ -19449,9 +18481,8 @@ pub struct VMwareVirtualMachineDetails { pub validation_errors: Vec, } impl VMwareVirtualMachineDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { + pub fn new() -> Self { Self { - configuration_settings, agent_generated_id: None, agent_installed: None, os_type: None, @@ -19652,8 +18683,6 @@ pub mod version_details { #[doc = "This class represents the virtual machine task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineTaskDetails { - #[serde(flatten)] - pub job_task_details: JobTaskDetails, #[doc = "The skipped reason."] #[serde(rename = "skippedReason", default, skip_serializing_if = "Option::is_none")] pub skipped_reason: Option, @@ -19662,9 +18691,8 @@ pub struct VirtualMachineTaskDetails { pub skipped_reason_string: Option, } impl VirtualMachineTaskDetails { - pub fn new(job_task_details: JobTaskDetails) -> Self { + pub fn new() -> Self { Self { - job_task_details, skipped_reason: None, skipped_reason_string: None, } @@ -19673,8 +18701,6 @@ impl VirtualMachineTaskDetails { #[doc = "This class represents the vm NicUpdates task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmNicUpdatesTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "Virtual machine Id."] #[serde(rename = "vmId", default, skip_serializing_if = "Option::is_none")] pub vm_id: Option, @@ -19686,9 +18712,8 @@ pub struct VmNicUpdatesTaskDetails { pub name: Option, } impl VmNicUpdatesTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, vm_id: None, nic_id: None, name: None, @@ -19697,91 +18722,58 @@ impl VmNicUpdatesTaskDetails { } #[doc = "VMM fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, -} +pub struct VmmDetails {} impl VmmDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { - Self { fabric_specific_details } + pub fn new() -> Self { + Self {} } } #[doc = "Create network mappings input properties/behavior specific to Vmm to Azure Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, -} +pub struct VmmToAzureCreateNetworkMappingInput {} impl VmmToAzureCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput) -> Self { - Self { - fabric_specific_create_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "E2A Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, -} +pub struct VmmToAzureNetworkMappingSettings {} impl VmmToAzureNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { - Self { - network_mapping_fabric_specific_settings, - } + pub fn new() -> Self { + Self {} } } #[doc = "Update network mappings input properties/behavior specific to vmm to azure."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, -} +pub struct VmmToAzureUpdateNetworkMappingInput {} impl VmmToAzureUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "Create network mappings input properties/behavior specific to vmm to vmm Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, -} +pub struct VmmToVmmCreateNetworkMappingInput {} impl VmmToVmmCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput) -> Self { - Self { - fabric_specific_create_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "E2E Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, -} +pub struct VmmToVmmNetworkMappingSettings {} impl VmmToVmmNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { - Self { - network_mapping_fabric_specific_settings, - } + pub fn new() -> Self { + Self {} } } #[doc = "Update network mappings input properties/behavior specific to vmm to vmm."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, -} +pub struct VmmToVmmUpdateNetworkMappingInput {} impl VmmToVmmUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "VMM fabric provider specific VM settings."] @@ -19800,8 +18792,6 @@ impl VmmVirtualMachineDetails { #[doc = "VMware Cbt specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmwareCbtPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -19813,9 +18803,8 @@ pub struct VmwareCbtPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl VmwareCbtPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_in_minutes: None, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2023_02/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2023_02/models.rs index bb2be0e28a..165ce3e025 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2023_02/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2023_02/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "A2A add disk(s) input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aAddDisksInput { - #[serde(flatten)] - pub add_disks_provider_specific_input: AddDisksProviderSpecificInput, #[doc = "The list of vm disk details."] #[serde( rename = "vmDisks", @@ -26,9 +24,8 @@ pub struct A2aAddDisksInput { pub vm_managed_disks: Vec, } impl A2aAddDisksInput { - pub fn new(add_disks_provider_specific_input: AddDisksProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - add_disks_provider_specific_input, vm_disks: Vec::new(), vm_managed_disks: Vec::new(), } @@ -36,35 +33,23 @@ impl A2aAddDisksInput { } #[doc = "ApplyRecoveryPoint input specific to A2A provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct A2aApplyRecoveryPointInput {} impl A2aApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A cloud creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct A2aContainerCreationInput {} impl A2aContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A container mapping input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -76,9 +61,8 @@ pub struct A2aContainerMappingInput { pub automation_account_authentication_type: Option, } impl A2aContainerMappingInput { - pub fn new(replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_container_mapping_input, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -172,8 +156,6 @@ pub mod a2a_container_mapping_input { #[doc = "A2A create protection intent input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCreateProtectionIntentInput { - #[serde(flatten)] - pub create_protection_intent_provider_specific_details: CreateProtectionIntentProviderSpecificDetails, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId")] pub fabric_object_id: String, @@ -261,7 +243,6 @@ pub struct A2aCreateProtectionIntentInput { } impl A2aCreateProtectionIntentInput { pub fn new( - create_protection_intent_provider_specific_details: CreateProtectionIntentProviderSpecificDetails, fabric_object_id: String, primary_location: String, recovery_location: String, @@ -270,7 +251,6 @@ impl A2aCreateProtectionIntentInput { recovery_resource_group_id: String, ) -> Self { Self { - create_protection_intent_provider_specific_details, fabric_object_id, primary_location, recovery_location, @@ -458,35 +438,23 @@ pub mod a2a_create_protection_intent_input { } #[doc = "ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct A2aCrossClusterMigrationApplyRecoveryPointInput {} impl A2aCrossClusterMigrationApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2ACrossClusterMigration cloud creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct A2aCrossClusterMigrationContainerCreationInput {} impl A2aCrossClusterMigrationContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A Cross-Cluster Migration enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCrossClusterMigrationEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -495,9 +463,8 @@ pub struct A2aCrossClusterMigrationEnableProtectionInput { pub recovery_container_id: Option, } impl A2aCrossClusterMigrationEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, fabric_object_id: None, recovery_container_id: None, } @@ -505,22 +472,15 @@ impl A2aCrossClusterMigrationEnableProtectionInput { } #[doc = "A2A Cross-Cluster Migration Policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, -} +pub struct A2aCrossClusterMigrationPolicyCreationInput {} impl A2aCrossClusterMigrationPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { - Self { - policy_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCrossClusterMigrationReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -541,9 +501,8 @@ pub struct A2aCrossClusterMigrationReplicationDetails { pub lifecycle_id: Option, } impl A2aCrossClusterMigrationReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, fabric_object_id: None, primary_fabric_location: None, os_type: None, @@ -556,8 +515,6 @@ impl A2aCrossClusterMigrationReplicationDetails { #[doc = "A2A enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId")] pub fabric_object_id: String, @@ -624,9 +581,8 @@ pub struct A2aEnableProtectionInput { pub recovery_capacity_reservation_group_id: Option, } impl A2aEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, fabric_object_id: String) -> Self { + pub fn new(fabric_object_id: String) -> Self { Self { - enable_protection_provider_specific_input, fabric_object_id, recovery_container_id: None, recovery_resource_group_id: None, @@ -651,8 +607,6 @@ impl A2aEnableProtectionInput { #[doc = "Model class for event details of a A2A event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item arm name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -673,9 +627,8 @@ pub struct A2aEventDetails { pub remote_fabric_location: Option, } impl A2aEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, fabric_object_id: None, fabric_name: None, @@ -748,8 +701,6 @@ impl A2aFabricSpecificLocationDetails { #[doc = "A2A Policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistory", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history: Option, @@ -764,12 +715,8 @@ pub struct A2aPolicyCreationInput { pub multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus, } impl A2aPolicyCreationInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -820,8 +767,6 @@ pub mod a2a_policy_creation_input { #[doc = "A2A specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -839,9 +784,8 @@ pub struct A2aPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl A2aPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -1042,8 +986,6 @@ impl A2aProtectedManagedDiskDetails { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -1061,9 +1003,8 @@ pub struct A2aProtectionContainerMappingDetails { pub job_schedule_name: Option, } impl A2aProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -1231,8 +1172,6 @@ impl A2aProtectionIntentManagedDiskInputDetails { #[doc = "A2A provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aRecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "recoveryPointSyncType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_sync_type: Option, @@ -1245,9 +1184,8 @@ pub struct A2aRecoveryPointDetails { pub disks: Vec, } impl A2aRecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, recovery_point_sync_type: None, disks: Vec::new(), } @@ -1298,8 +1236,6 @@ pub mod a2a_recovery_point_details { #[doc = "A2A remove disk(s) input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aRemoveDisksInput { - #[serde(flatten)] - pub remove_disks_provider_specific_input: RemoveDisksProviderSpecificInput, #[doc = "The list of vm disk vhd URIs."] #[serde( rename = "vmDisksUris", @@ -1318,9 +1254,8 @@ pub struct A2aRemoveDisksInput { pub vm_managed_disks_ids: Vec, } impl A2aRemoveDisksInput { - pub fn new(remove_disks_provider_specific_input: RemoveDisksProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - remove_disks_provider_specific_input, vm_disks_uris: Vec::new(), vm_managed_disks_ids: Vec::new(), } @@ -1329,8 +1264,6 @@ impl A2aRemoveDisksInput { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -1516,9 +1449,8 @@ pub struct A2aReplicationDetails { pub recovery_capacity_reservation_group_id: Option, } impl A2aReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, fabric_object_id: None, initial_primary_zone: None, initial_primary_fabric_location: None, @@ -1694,8 +1626,6 @@ pub mod a2a_replication_details { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReplicationIntentDetails { - #[serde(flatten)] - pub replication_protection_intent_provider_specific_settings: ReplicationProtectionIntentProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -1774,12 +1704,8 @@ pub struct A2aReplicationIntentDetails { pub automation_account_authentication_type: Option, } impl A2aReplicationIntentDetails { - pub fn new( - replication_protection_intent_provider_specific_settings: ReplicationProtectionIntentProviderSpecificSettings, - recovery_availability_type: String, - ) -> Self { + pub fn new(recovery_availability_type: String) -> Self { Self { - replication_protection_intent_provider_specific_settings, fabric_object_id: None, primary_location: None, recovery_location: None, @@ -1929,8 +1855,6 @@ pub mod a2a_replication_intent_details { #[doc = "Azure specific reprotect input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The recovery container Id."] #[serde(rename = "recoveryContainerId", default, skip_serializing_if = "Option::is_none")] pub recovery_container_id: Option, @@ -1956,9 +1880,8 @@ pub struct A2aReprotectInput { pub policy_id: Option, } impl A2aReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, recovery_container_id: None, vm_disks: Vec::new(), recovery_resource_group_id: None, @@ -1971,8 +1894,6 @@ impl A2aReprotectInput { #[doc = "A2A specific switch protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aSwitchProtectionInput { - #[serde(flatten)] - pub switch_protection_provider_specific_input: SwitchProtectionProviderSpecificInput, #[doc = "The recovery container Id."] #[serde(rename = "recoveryContainerId", default, skip_serializing_if = "Option::is_none")] pub recovery_container_id: Option, @@ -2024,9 +1945,8 @@ pub struct A2aSwitchProtectionInput { pub disk_encryption_info: Option, } impl A2aSwitchProtectionInput { - pub fn new(switch_protection_provider_specific_input: SwitchProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - switch_protection_provider_specific_input, recovery_container_id: None, vm_disks: Vec::new(), vm_managed_disks: Vec::new(), @@ -2046,8 +1966,6 @@ impl A2aSwitchProtectionInput { #[doc = "A2A provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -2056,9 +1974,8 @@ pub struct A2aTestFailoverInput { pub cloud_service_creation_option: Option, } impl A2aTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, recovery_point_id: None, cloud_service_creation_option: None, } @@ -2067,8 +1984,6 @@ impl A2aTestFailoverInput { #[doc = "A2A provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -2077,9 +1992,8 @@ pub struct A2aUnplannedFailoverInput { pub cloud_service_creation_option: Option, } impl A2aUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, recovery_point_id: None, cloud_service_creation_option: None, } @@ -2143,8 +2057,6 @@ pub mod a2a_unprotected_disk_details { #[doc = "A2A update protection container mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUpdateContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -2156,11 +2068,8 @@ pub struct A2aUpdateContainerMappingInput { pub automation_account_authentication_type: Option, } impl A2aUpdateContainerMappingInput { - pub fn new( - replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, - ) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_update_container_mapping_input, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -2254,8 +2163,6 @@ pub mod a2a_update_container_mapping_input { #[doc = "InMage Azure V2 input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The target cloud service ARM Id (for V1)."] #[serde(rename = "recoveryCloudServiceId", default, skip_serializing_if = "Option::is_none")] pub recovery_cloud_service_id: Option, @@ -2290,9 +2197,8 @@ pub struct A2aUpdateReplicationProtectedItemInput { pub recovery_capacity_reservation_group_id: Option, } impl A2aUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_cloud_service_id: None, recovery_resource_group_id: None, managed_disk_update_details: Vec::new(), @@ -2485,14 +2391,6 @@ impl AddDisksInputProperties { Self { provider_specific_details } } } -#[doc = "Add Disks provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddDisksProviderSpecificInput {} -impl AddDisksProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2736,14 +2634,6 @@ impl ApplianceQueryParameter { Self::default() } } -#[doc = "Appliance specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ApplianceSpecificDetails {} -impl ApplianceSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2779,14 +2669,6 @@ impl ApplyRecoveryPointInputProperties { } } } -#[doc = "Provider specific input for apply recovery point."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ApplyRecoveryPointProviderSpecificInput {} -impl ApplyRecoveryPointProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2813,8 +2695,6 @@ impl AsrJobDetails { #[doc = "This class represents the task details for an automation runbook."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationRunbookTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The recovery plan task name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2844,9 +2724,8 @@ pub struct AutomationRunbookTaskDetails { pub is_primary_side_script: Option, } impl AutomationRunbookTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, cloud_service_name: None, subscription_id: None, @@ -2862,25 +2741,18 @@ impl AutomationRunbookTaskDetails { #[doc = "Fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The Location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, } impl AzureFabricCreationInput { - pub fn new(fabric_specific_creation_input: FabricSpecificCreationInput) -> Self { - Self { - fabric_specific_creation_input, - location: None, - } + pub fn new() -> Self { + Self { location: None } } } #[doc = "Azure Fabric Specific Details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The Location for the Azure fabric."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -2917,9 +2789,8 @@ pub struct AzureFabricSpecificDetails { pub location_details: Vec, } impl AzureFabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, location: None, container_ids: Vec::new(), zones: Vec::new(), @@ -2931,25 +2802,18 @@ impl AzureFabricSpecificDetails { #[doc = "Create network mappings input properties/behavior specific to Azure to Azure Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, #[doc = "The primary azure vnet Id."] #[serde(rename = "primaryNetworkId")] pub primary_network_id: String, } impl AzureToAzureCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, primary_network_id: String) -> Self { - Self { - fabric_specific_create_network_mapping_input, - primary_network_id, - } + pub fn new(primary_network_id: String) -> Self { + Self { primary_network_id } } } #[doc = "A2A Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, #[doc = "The primary fabric location."] #[serde(rename = "primaryFabricLocation", default, skip_serializing_if = "Option::is_none")] pub primary_fabric_location: Option, @@ -2958,9 +2822,8 @@ pub struct AzureToAzureNetworkMappingSettings { pub recovery_fabric_location: Option, } impl AzureToAzureNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { + pub fn new() -> Self { Self { - network_mapping_fabric_specific_settings, primary_fabric_location: None, recovery_fabric_location: None, } @@ -2969,18 +2832,13 @@ impl AzureToAzureNetworkMappingSettings { #[doc = "Updates network mappings input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, #[doc = "The primary azure vnet Id."] #[serde(rename = "primaryNetworkId", default, skip_serializing_if = "Option::is_none")] pub primary_network_id: Option, } impl AzureToAzureUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - primary_network_id: None, - } + pub fn new() -> Self { + Self { primary_network_id: None } } } #[doc = "Azure to Azure VM synced configuration details."] @@ -3057,14 +2915,6 @@ impl ComputeSizeErrorDetails { Self::default() } } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ConfigurationSettings {} -impl ConfigurationSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3111,8 +2961,6 @@ impl ConfigureAlertRequestProperties { #[doc = "This class contains monitoring details of all the inconsistent Protected Entities in Vmm."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ConsistencyCheckTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The list of inconsistent Vm details."] #[serde( rename = "vmDetails", @@ -3123,11 +2971,8 @@ pub struct ConsistencyCheckTaskDetails { pub vm_details: Vec, } impl ConsistencyCheckTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { - Self { - task_type_details, - vm_details: Vec::new(), - } + pub fn new() -> Self { + Self { vm_details: Vec::new() } } } #[doc = "Create network mappings input."] @@ -3270,14 +3115,6 @@ impl CreateProtectionIntentProperties { Self::default() } } -#[doc = "Create protection intent provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateProtectionIntentProviderSpecificDetails {} -impl CreateProtectionIntentProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3519,14 +3356,6 @@ pub mod disable_protection_input_properties { } } } -#[doc = "Disable protection provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DisableProtectionProviderSpecificInput {} -impl DisableProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3764,14 +3593,6 @@ impl EnableMigrationInputProperties { } } } -#[doc = "Enable migration provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnableMigrationProviderSpecificInput {} -impl EnableMigrationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3808,14 +3629,6 @@ impl EnableProtectionInputProperties { Self::default() } } -#[doc = "Enable protection provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnableProtectionProviderSpecificInput {} -impl EnableProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3933,14 +3746,6 @@ impl EventProperties { Self::default() } } -#[doc = "Model class for provider specific details for an event."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventProviderSpecificDetails {} -impl EventProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3989,14 +3794,6 @@ impl EventQueryParameter { Self::default() } } -#[doc = "Model class for event specific details for an event."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventSpecificDetails {} -impl EventSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4006,33 +3803,25 @@ pub enum EventSpecificDetailsUnion { #[doc = "Existing storage account input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingProtectionProfile { - #[serde(flatten)] - pub protection_profile_custom_details: ProtectionProfileCustomDetails, #[doc = "The protection profile Arm Id. Throw error, if resource does not exists."] #[serde(rename = "protectionProfileId")] pub protection_profile_id: String, } impl ExistingProtectionProfile { - pub fn new(protection_profile_custom_details: ProtectionProfileCustomDetails, protection_profile_id: String) -> Self { - Self { - protection_profile_custom_details, - protection_profile_id, - } + pub fn new(protection_profile_id: String) -> Self { + Self { protection_profile_id } } } #[doc = "Existing recovery availability set input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryAvailabilitySet { - #[serde(flatten)] - pub recovery_availability_set_custom_details: RecoveryAvailabilitySetCustomDetails, #[doc = "The recovery availability set Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryAvailabilitySetId", default, skip_serializing_if = "Option::is_none")] pub recovery_availability_set_id: Option, } impl ExistingRecoveryAvailabilitySet { - pub fn new(recovery_availability_set_custom_details: RecoveryAvailabilitySetCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_availability_set_custom_details, recovery_availability_set_id: None, } } @@ -4040,16 +3829,13 @@ impl ExistingRecoveryAvailabilitySet { #[doc = "Existing recovery proximity placement group input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryProximityPlacementGroup { - #[serde(flatten)] - pub recovery_proximity_placement_group_custom_details: RecoveryProximityPlacementGroupCustomDetails, #[doc = "The recovery proximity placement group Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryProximityPlacementGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_proximity_placement_group_id: Option, } impl ExistingRecoveryProximityPlacementGroup { - pub fn new(recovery_proximity_placement_group_custom_details: RecoveryProximityPlacementGroupCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_proximity_placement_group_custom_details, recovery_proximity_placement_group_id: None, } } @@ -4057,16 +3843,13 @@ impl ExistingRecoveryProximityPlacementGroup { #[doc = "Existing recovery resource group input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryRecoveryResourceGroup { - #[serde(flatten)] - pub recovery_resource_group_custom_details: RecoveryResourceGroupCustomDetails, #[doc = "The recovery resource group Id. Valid for V2 scenarios."] #[serde(rename = "recoveryResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_resource_group_id: Option, } impl ExistingRecoveryRecoveryResourceGroup { - pub fn new(recovery_resource_group_custom_details: RecoveryResourceGroupCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_resource_group_custom_details, recovery_resource_group_id: None, } } @@ -4074,8 +3857,6 @@ impl ExistingRecoveryRecoveryResourceGroup { #[doc = "Existing recovery virtual network input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryVirtualNetwork { - #[serde(flatten)] - pub recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, #[doc = "The recovery virtual network Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryVirtualNetworkId")] pub recovery_virtual_network_id: String, @@ -4084,9 +3865,8 @@ pub struct ExistingRecoveryVirtualNetwork { pub recovery_subnet_name: Option, } impl ExistingRecoveryVirtualNetwork { - pub fn new(recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, recovery_virtual_network_id: String) -> Self { + pub fn new(recovery_virtual_network_id: String) -> Self { Self { - recovery_virtual_network_custom_details, recovery_virtual_network_id, recovery_subnet_name: None, } @@ -4095,18 +3875,13 @@ impl ExistingRecoveryVirtualNetwork { #[doc = "Existing storage account input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingStorageAccount { - #[serde(flatten)] - pub storage_account_custom_details: StorageAccountCustomDetails, #[doc = "The storage account Arm Id. Throw error, if resource does not exists."] #[serde(rename = "azureStorageAccountId")] pub azure_storage_account_id: String, } impl ExistingStorageAccount { - pub fn new(storage_account_custom_details: StorageAccountCustomDetails, azure_storage_account_id: String) -> Self { - Self { - storage_account_custom_details, - azure_storage_account_id, - } + pub fn new(azure_storage_account_id: String) -> Self { + Self { azure_storage_account_id } } } #[doc = "This class represents details for export jobs workflow."] @@ -4319,8 +4094,6 @@ impl FabricQueryParameter { #[doc = "This class represents the fabric replication group task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FabricReplicationGroupTaskDetails { - #[serde(flatten)] - pub job_task_details: JobTaskDetails, #[doc = "The skipped reason."] #[serde(rename = "skippedReason", default, skip_serializing_if = "Option::is_none")] pub skipped_reason: Option, @@ -4329,22 +4102,13 @@ pub struct FabricReplicationGroupTaskDetails { pub skipped_reason_string: Option, } impl FabricReplicationGroupTaskDetails { - pub fn new(job_task_details: JobTaskDetails) -> Self { + pub fn new() -> Self { Self { - job_task_details, skipped_reason: None, skipped_reason_string: None, } } } -#[doc = "Input details specific to fabrics during Network Mapping."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificCreateNetworkMappingInput {} -impl FabricSpecificCreateNetworkMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4353,14 +4117,6 @@ pub enum FabricSpecificCreateNetworkMappingInputUnion { VmmToAzure(VmmToAzureCreateNetworkMappingInput), VmmToVmm(VmmToVmmCreateNetworkMappingInput), } -#[doc = "Fabric provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificCreationInput {} -impl FabricSpecificCreationInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4369,14 +4125,6 @@ pub enum FabricSpecificCreationInputUnion { InMageRcm(InMageRcmFabricCreationInput), VMwareV2(VMwareV2FabricCreationInput), } -#[doc = "Fabric specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificDetails {} -impl FabricSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4389,14 +4137,6 @@ pub enum FabricSpecificDetailsUnion { #[serde(rename = "VMM")] Vmm(VmmDetails), } -#[doc = "Input details specific to fabrics during Network Mapping."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificUpdateNetworkMappingInput {} -impl FabricSpecificUpdateNetworkMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4789,8 +4529,6 @@ impl HyperVHostDetails { #[doc = "Model class for event details of a HyperVReplica E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplica2012EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -4805,9 +4543,8 @@ pub struct HyperVReplica2012EventDetails { pub remote_fabric_name: Option, } impl HyperVReplica2012EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -4818,8 +4555,6 @@ impl HyperVReplica2012EventDetails { #[doc = "Model class for event details of a HyperVReplica blue E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplica2012R2EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -4834,9 +4569,8 @@ pub struct HyperVReplica2012R2EventDetails { pub remote_fabric_name: Option, } impl HyperVReplica2012R2EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -4847,8 +4581,6 @@ impl HyperVReplica2012R2EventDetails { #[doc = "ApplyRecoveryPoint input specific to HyperVReplicaAzure provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, #[doc = "The primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -4857,9 +4589,8 @@ pub struct HyperVReplicaAzureApplyRecoveryPointInput { pub secondary_kek_certificate_pfx: Option, } impl HyperVReplicaAzureApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - apply_recovery_point_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, } @@ -4934,8 +4665,6 @@ pub mod hyper_v_replica_azure_disk_input_details { #[doc = "HyperVReplicaAzure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The Hyper-V host VM Id."] #[serde(rename = "hvHostVmId", default, skip_serializing_if = "Option::is_none")] pub hv_host_vm_id: Option, @@ -5032,9 +4761,8 @@ pub struct HyperVReplicaAzureEnableProtectionInput { pub target_nic_tags: Option, } impl HyperVReplicaAzureEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, hv_host_vm_id: None, vm_name: None, os_type: None, @@ -5196,8 +4924,6 @@ pub mod hyper_v_replica_azure_enable_protection_input { #[doc = "Model class for event details of a HyperVReplica E2A event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -5209,9 +4935,8 @@ pub struct HyperVReplicaAzureEventDetails { pub remote_container_name: Option, } impl HyperVReplicaAzureEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -5221,8 +4946,6 @@ impl HyperVReplicaAzureEventDetails { #[doc = "HyperVReplicaAzureFailback specific planned failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureFailbackProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "Data sync option."] #[serde(rename = "dataSyncOption", default, skip_serializing_if = "Option::is_none")] pub data_sync_option: Option, @@ -5234,9 +4957,8 @@ pub struct HyperVReplicaAzureFailbackProviderInput { pub provider_id_for_alternate_recovery: Option, } impl HyperVReplicaAzureFailbackProviderInput { - pub fn new(planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - planned_failover_provider_specific_failover_input, data_sync_option: None, recovery_vm_creation_option: None, provider_id_for_alternate_recovery: None, @@ -5267,8 +4989,6 @@ impl HyperVReplicaAzureManagedDiskDetails { #[doc = "HyperVReplicaAzure specific planned failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePlannedFailoverProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5280,9 +5000,8 @@ pub struct HyperVReplicaAzurePlannedFailoverProviderInput { pub recovery_point_id: Option, } impl HyperVReplicaAzurePlannedFailoverProviderInput { - pub fn new(planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - planned_failover_provider_specific_failover_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5292,8 +5011,6 @@ impl HyperVReplicaAzurePlannedFailoverProviderInput { #[doc = "Hyper-V Replica Azure specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration (in hours) to which point the recovery history needs to be maintained."] #[serde(rename = "recoveryPointHistoryDurationInHours", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_duration_in_hours: Option, @@ -5318,9 +5035,8 @@ pub struct HyperVReplicaAzurePolicyDetails { pub active_storage_account_id: Option, } impl HyperVReplicaAzurePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_duration_in_hours: None, application_consistent_snapshot_frequency_in_hours: None, replication_interval: None, @@ -5333,8 +5049,6 @@ impl HyperVReplicaAzurePolicyDetails { #[doc = "Hyper-V Replica Azure specific input for creating a protection profile."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration (in hours) to which point the recovery history needs to be maintained."] #[serde(rename = "recoveryPointHistoryDuration", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_duration: Option, @@ -5361,9 +5075,8 @@ pub struct HyperVReplicaAzurePolicyInput { pub storage_accounts: Vec, } impl HyperVReplicaAzurePolicyInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_duration: None, application_consistent_snapshot_frequency_in_hours: None, replication_interval: None, @@ -5375,8 +5088,6 @@ impl HyperVReplicaAzurePolicyInput { #[doc = "Hyper V Replica Azure provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "Azure VM Disk details."] #[serde( rename = "azureVmDiskDetails", @@ -5493,9 +5204,8 @@ pub struct HyperVReplicaAzureReplicationDetails { pub protected_managed_disks: Vec, } impl HyperVReplicaAzureReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, azure_vm_disk_details: Vec::new(), recovery_azure_vm_name: None, recovery_azure_vm_size: None, @@ -5535,8 +5245,6 @@ impl HyperVReplicaAzureReplicationDetails { #[doc = "Azure specific reprotect input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Hyper-V host Vm Id."] #[serde(rename = "hvHostVmId", default, skip_serializing_if = "Option::is_none")] pub hv_host_vm_id: Option, @@ -5557,9 +5265,8 @@ pub struct HyperVReplicaAzureReprotectInput { pub log_storage_account_id: Option, } impl HyperVReplicaAzureReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, hv_host_vm_id: None, vm_name: None, os_type: None, @@ -5572,8 +5279,6 @@ impl HyperVReplicaAzureReprotectInput { #[doc = "HvrA provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5585,9 +5290,8 @@ pub struct HyperVReplicaAzureTestFailoverInput { pub recovery_point_id: Option, } impl HyperVReplicaAzureTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5597,8 +5301,6 @@ impl HyperVReplicaAzureTestFailoverInput { #[doc = "HvrA provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5610,9 +5312,8 @@ pub struct HyperVReplicaAzureUnplannedFailoverInput { pub recovery_point_id: Option, } impl HyperVReplicaAzureUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5622,8 +5323,6 @@ impl HyperVReplicaAzureUnplannedFailoverInput { #[doc = "HyperV replica Azure input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The recovery Azure resource group Id for classic deployment."] #[serde(rename = "recoveryAzureV1ResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_v1_resource_group_id: Option, @@ -5664,9 +5363,8 @@ pub struct HyperVReplicaAzureUpdateReplicationProtectedItemInput { pub vm_disks: Vec, } impl HyperVReplicaAzureUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_azure_v1_resource_group_id: None, recovery_azure_v2_resource_group_id: None, use_managed_disks: None, @@ -5730,8 +5428,6 @@ pub mod hyper_v_replica_azure_update_replication_protected_item_input { #[doc = "Abstract model class for event details of a HyperVReplica E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBaseEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -5746,9 +5442,8 @@ pub struct HyperVReplicaBaseEventDetails { pub remote_fabric_name: Option, } impl HyperVReplicaBaseEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -5759,8 +5454,6 @@ impl HyperVReplicaBaseEventDetails { #[doc = "Base class for HyperVReplica policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBasePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -5797,9 +5490,8 @@ pub struct HyperVReplicaBasePolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaBasePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -5816,8 +5508,6 @@ impl HyperVReplicaBasePolicyDetails { #[doc = "Hyper V replica provider specific settings base class."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBaseReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -5851,9 +5541,8 @@ pub struct HyperVReplicaBaseReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaBaseReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -5867,8 +5556,6 @@ impl HyperVReplicaBaseReplicationDetails { #[doc = "Hyper-V Replica Blue specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBluePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the replication interval."] #[serde(rename = "replicationFrequencyInSeconds", default, skip_serializing_if = "Option::is_none")] pub replication_frequency_in_seconds: Option, @@ -5908,9 +5595,8 @@ pub struct HyperVReplicaBluePolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaBluePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, replication_frequency_in_seconds: None, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, @@ -5945,8 +5631,6 @@ impl HyperVReplicaBluePolicyInput { #[doc = "HyperV replica 2012 R2 (Blue) replication details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBlueReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -5980,9 +5664,8 @@ pub struct HyperVReplicaBlueReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaBlueReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -5996,8 +5679,6 @@ impl HyperVReplicaBlueReplicationDetails { #[doc = "Hyper-V Replica Blue specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -6034,9 +5715,8 @@ pub struct HyperVReplicaPolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -6053,8 +5733,6 @@ impl HyperVReplicaPolicyDetails { #[doc = "Hyper-V Replica specific policy Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaPolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -6091,9 +5769,8 @@ pub struct HyperVReplicaPolicyInput { pub replica_deletion: Option, } impl HyperVReplicaPolicyInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -6115,8 +5792,6 @@ pub enum HyperVReplicaPolicyInputUnion { #[doc = "HyperV replica 2012 replication details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -6150,9 +5825,8 @@ pub struct HyperVReplicaReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -6166,8 +5840,6 @@ impl HyperVReplicaReplicationDetails { #[doc = "HyperVSite fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVSiteDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The list of Hyper-V hosts associated with the fabric."] #[serde( rename = "hyperVHosts", @@ -6178,18 +5850,13 @@ pub struct HyperVSiteDetails { pub hyper_v_hosts: Vec, } impl HyperVSiteDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { - Self { - fabric_specific_details, - hyper_v_hosts: Vec::new(), - } + pub fn new() -> Self { + Self { hyper_v_hosts: Vec::new() } } } #[doc = "Single Host fabric provider specific VM settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVVirtualMachineDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, #[doc = "The source id of the object."] #[serde(rename = "sourceItemId", default, skip_serializing_if = "Option::is_none")] pub source_item_id: Option, @@ -6221,9 +5888,8 @@ pub struct HyperVVirtualMachineDetails { pub hyper_v_host_id: Option, } impl HyperVVirtualMachineDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { + pub fn new() -> Self { Self { - configuration_settings, source_item_id: None, generation: None, os_details: None, @@ -6524,15 +6190,10 @@ impl InMageAgentDetails { } #[doc = "ApplyRecoveryPoint input specific to InMageAzureV2 provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct InMageAzureV2ApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct InMageAzureV2ApplyRecoveryPointInput {} impl InMageAzureV2ApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "Disk input details."] @@ -6604,8 +6265,6 @@ pub mod in_mage_azure_v2_disk_input_details { #[doc = "VMware Azure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2EnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The Master target Id."] #[serde(rename = "masterTargetId", default, skip_serializing_if = "Option::is_none")] pub master_target_id: Option, @@ -6691,9 +6350,8 @@ pub struct InMageAzureV2EnableProtectionInput { pub target_nic_tags: Option, } impl InMageAzureV2EnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, master_target_id: None, process_server_id: None, storage_account_id: None, @@ -6853,8 +6511,6 @@ pub mod in_mage_azure_v2_enable_protection_input { #[doc = "Model class for event details of a VMwareAzureV2 event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "InMage Event type. Takes one of the values of InMageDataContract.InMageMonitoringEventType."] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, @@ -6878,9 +6534,8 @@ pub struct InMageAzureV2EventDetails { pub site_name: Option, } impl InMageAzureV2EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, event_type: None, category: None, component: None, @@ -6918,8 +6573,6 @@ impl InMageAzureV2ManagedDiskDetails { #[doc = "InMage Azure v2 specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2PolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The crash consistent snapshot frequency in minutes."] #[serde(rename = "crashConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub crash_consistent_frequency_in_minutes: Option, @@ -6937,9 +6590,8 @@ pub struct InMageAzureV2PolicyDetails { pub multi_vm_sync_status: Option, } impl InMageAzureV2PolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, crash_consistent_frequency_in_minutes: None, recovery_point_threshold_in_minutes: None, recovery_point_history: None, @@ -6951,8 +6603,6 @@ impl InMageAzureV2PolicyDetails { #[doc = "VMWare Azure specific policy Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2PolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -6970,12 +6620,8 @@ pub struct InMageAzureV2PolicyInput { pub multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus, } impl InMageAzureV2PolicyInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_threshold_in_minutes: None, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, @@ -7105,16 +6751,13 @@ impl InMageAzureV2ProtectedDiskDetails { #[doc = "InMage Azure V2 provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2RecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "isMultiVmSyncPoint", default, skip_serializing_if = "Option::is_none")] pub is_multi_vm_sync_point: Option, } impl InMageAzureV2RecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, is_multi_vm_sync_point: None, } } @@ -7122,8 +6765,6 @@ impl InMageAzureV2RecoveryPointDetails { #[doc = "InMageAzureV2 provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2ReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The infrastructure VM Id."] #[serde(rename = "infrastructureVmId", default, skip_serializing_if = "Option::is_none")] pub infrastructure_vm_id: Option, @@ -7361,9 +7002,8 @@ pub struct InMageAzureV2ReplicationDetails { pub switch_provider_details: Option, } impl InMageAzureV2ReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, infrastructure_vm_id: None, v_center_infrastructure_id: None, protection_stage: None, @@ -7437,8 +7077,6 @@ impl InMageAzureV2ReplicationDetails { #[doc = "InMageAzureV2 specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2ReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Master target Id."] #[serde(rename = "masterTargetId", default, skip_serializing_if = "Option::is_none")] pub master_target_id: Option, @@ -7467,9 +7105,8 @@ pub struct InMageAzureV2ReprotectInput { pub disks_to_include: Vec, } impl InMageAzureV2ReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, master_target_id: None, process_server_id: None, storage_account_id: None, @@ -7531,8 +7168,6 @@ impl InMageAzureV2SwitchProviderDetails { #[doc = "Provider specific input for InMageAzureV2 switch provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2SwitchProviderProviderInput { - #[serde(flatten)] - pub switch_provider_provider_specific_input: SwitchProviderProviderSpecificInput, #[doc = "The target vault Id."] #[serde(rename = "targetVaultID")] pub target_vault_id: String, @@ -7544,14 +7179,8 @@ pub struct InMageAzureV2SwitchProviderProviderInput { pub target_appliance_id: String, } impl InMageAzureV2SwitchProviderProviderInput { - pub fn new( - switch_provider_provider_specific_input: SwitchProviderProviderSpecificInput, - target_vault_id: String, - target_fabric_id: String, - target_appliance_id: String, - ) -> Self { + pub fn new(target_vault_id: String, target_fabric_id: String, target_appliance_id: String) -> Self { Self { - switch_provider_provider_specific_input, target_vault_id, target_fabric_id, target_appliance_id, @@ -7561,42 +7190,30 @@ impl InMageAzureV2SwitchProviderProviderInput { #[doc = "InMageAzureV2 provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2TestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, } impl InMageAzureV2TestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { - Self { - test_failover_provider_specific_input, - recovery_point_id: None, - } + pub fn new() -> Self { + Self { recovery_point_id: None } } } #[doc = "InMageAzureV2 provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2UnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, } impl InMageAzureV2UnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { - Self { - unplanned_failover_provider_specific_input, - recovery_point_id: None, - } + pub fn new() -> Self { + Self { recovery_point_id: None } } } #[doc = "InMage Azure V2 input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2UpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The recovery Azure resource group Id for classic deployment."] #[serde(rename = "recoveryAzureV1ResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_v1_resource_group_id: Option, @@ -7634,9 +7251,8 @@ pub struct InMageAzureV2UpdateReplicationProtectedItemInput { pub vm_disks: Vec, } impl InMageAzureV2UpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_azure_v1_resource_group_id: None, recovery_azure_v2_resource_group_id: None, use_managed_disks: None, @@ -7699,8 +7315,6 @@ pub mod in_mage_azure_v2_update_replication_protected_item_input { #[doc = "Base class for the policies of providers using InMage replication."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageBasePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7715,9 +7329,8 @@ pub struct InMageBasePolicyDetails { pub multi_vm_sync_status: Option, } impl InMageBasePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -7728,16 +7341,13 @@ impl InMageBasePolicyDetails { #[doc = "InMage disable protection provider specific input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageDisableProtectionProviderSpecificInput { - #[serde(flatten)] - pub disable_protection_provider_specific_input: DisableProtectionProviderSpecificInput, #[doc = "A value indicating whether the replica VM should be destroyed or retained. Values from Delete and Retain."] #[serde(rename = "replicaVmDeletionStatus", default, skip_serializing_if = "Option::is_none")] pub replica_vm_deletion_status: Option, } impl InMageDisableProtectionProviderSpecificInput { - pub fn new(disable_protection_provider_specific_input: DisableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - disable_protection_provider_specific_input, replica_vm_deletion_status: None, } } @@ -7814,8 +7424,6 @@ impl InMageDiskSignatureExclusionOptions { #[doc = "VMware Azure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The VM Name."] #[serde(rename = "vmFriendlyName", default, skip_serializing_if = "Option::is_none")] pub vm_friendly_name: Option, @@ -7854,7 +7462,6 @@ pub struct InMageEnableProtectionInput { } impl InMageEnableProtectionInput { pub fn new( - enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, master_target_id: String, process_server_id: String, retention_drive: String, @@ -7862,7 +7469,6 @@ impl InMageEnableProtectionInput { multi_vm_group_name: String, ) -> Self { Self { - enable_protection_provider_specific_input, vm_friendly_name: None, master_target_id, process_server_id, @@ -7906,8 +7512,6 @@ impl InMageFabricSwitchProviderBlockingErrorDetails { #[doc = "InMage specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMagePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7922,9 +7526,8 @@ pub struct InMagePolicyDetails { pub multi_vm_sync_status: Option, } impl InMagePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -7935,8 +7538,6 @@ impl InMagePolicyDetails { #[doc = "VMWare Azure specific protection profile Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMagePolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7951,12 +7552,8 @@ pub struct InMagePolicyInput { pub multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus, } impl InMagePolicyInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -8156,8 +7753,6 @@ impl InMageRcmApplianceDetails { #[doc = "InMageRcm appliance specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmApplianceSpecificDetails { - #[serde(flatten)] - pub appliance_specific_details: ApplianceSpecificDetails, #[doc = "The list of appliances."] #[serde( default, @@ -8167,28 +7762,20 @@ pub struct InMageRcmApplianceSpecificDetails { pub appliances: Vec, } impl InMageRcmApplianceSpecificDetails { - pub fn new(appliance_specific_details: ApplianceSpecificDetails) -> Self { - Self { - appliance_specific_details, - appliances: Vec::new(), - } + pub fn new() -> Self { + Self { appliances: Vec::new() } } } #[doc = "ApplyRecoveryPoint input specific to InMageRcm provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, #[doc = "The recovery point Id."] #[serde(rename = "recoveryPointId")] pub recovery_point_id: String, } impl InMageRcmApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, recovery_point_id: String) -> Self { - Self { - apply_recovery_point_provider_specific_input, - recovery_point_id, - } + pub fn new(recovery_point_id: String) -> Self { + Self { recovery_point_id } } } #[doc = "InMageRcm discovered protected VM details."] @@ -8386,8 +7973,6 @@ pub mod in_mage_rcm_disks_default_input { #[doc = "InMageRcm specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The ARM Id of discovered machine."] #[serde(rename = "fabricDiscoveryMachineId")] pub fabric_discovery_machine_id: String, @@ -8449,14 +8034,8 @@ pub struct InMageRcmEnableProtectionInput { pub multi_vm_group_name: Option, } impl InMageRcmEnableProtectionInput { - pub fn new( - enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, - fabric_discovery_machine_id: String, - target_resource_group_id: String, - process_server_id: String, - ) -> Self { + pub fn new(fabric_discovery_machine_id: String, target_resource_group_id: String, process_server_id: String) -> Self { Self { - enable_protection_provider_specific_input, fabric_discovery_machine_id, disks_to_include: Vec::new(), disks_default: None, @@ -8523,8 +8102,6 @@ pub mod in_mage_rcm_enable_protection_input { #[doc = "Event details for InMageRcm provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -8551,9 +8128,8 @@ pub struct InMageRcmEventDetails { pub component_display_name: Option, } impl InMageRcmEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, vm_name: None, latest_agent_version: None, @@ -8568,8 +8144,6 @@ impl InMageRcmEventDetails { #[doc = "InMageRcm fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId")] pub vmware_site_id: String, @@ -8581,14 +8155,8 @@ pub struct InMageRcmFabricCreationInput { pub source_agent_identity: IdentityProviderInput, } impl InMageRcmFabricCreationInput { - pub fn new( - fabric_specific_creation_input: FabricSpecificCreationInput, - vmware_site_id: String, - physical_site_id: String, - source_agent_identity: IdentityProviderInput, - ) -> Self { + pub fn new(vmware_site_id: String, physical_site_id: String, source_agent_identity: IdentityProviderInput) -> Self { Self { - fabric_specific_creation_input, vmware_site_id, physical_site_id, source_agent_identity, @@ -8598,8 +8166,6 @@ impl InMageRcmFabricCreationInput { #[doc = "InMageRcm fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -8689,9 +8255,8 @@ pub struct InMageRcmFabricSpecificDetails { pub agent_details: Vec, } impl InMageRcmFabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, vmware_site_id: None, physical_site_id: None, service_endpoint: None, @@ -8795,8 +8360,6 @@ impl InMageRcmFailbackDiscoveredProtectedVmDetails { #[doc = "Event details for InMageRcmFailback provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -8814,9 +8377,8 @@ pub struct InMageRcmFailbackEventDetails { pub component_display_name: Option, } impl InMageRcmFailbackEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, vm_name: None, appliance_name: None, @@ -8890,21 +8452,13 @@ impl InMageRcmFailbackNicDetails { #[doc = "Provider specific input for InMageRcmFailback failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPlannedFailoverProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType, } impl InMageRcmFailbackPlannedFailoverProviderInput { - pub fn new( - planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, - recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType, - ) -> Self { - Self { - planned_failover_provider_specific_failover_input, - recovery_point_type, - } + pub fn new(recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType) -> Self { + Self { recovery_point_type } } } pub mod in_mage_rcm_failback_planned_failover_provider_input { @@ -8950,8 +8504,6 @@ pub mod in_mage_rcm_failback_planned_failover_provider_input { #[doc = "InMageRcmFailback policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The crash consistent snapshot frequency (in minutes)."] #[serde(rename = "crashConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub crash_consistent_frequency_in_minutes: Option, @@ -8960,9 +8512,8 @@ pub struct InMageRcmFailbackPolicyCreationInput { pub app_consistent_frequency_in_minutes: Option, } impl InMageRcmFailbackPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, } @@ -8971,8 +8522,6 @@ impl InMageRcmFailbackPolicyCreationInput { #[doc = "InMageRcm failback specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The app consistent snapshot frequency in minutes."] #[serde(rename = "appConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub app_consistent_frequency_in_minutes: Option, @@ -8981,9 +8530,8 @@ pub struct InMageRcmFailbackPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl InMageRcmFailbackPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, } @@ -9034,8 +8582,6 @@ impl InMageRcmFailbackProtectedDiskDetails { #[doc = "InMageRcmFailback provider specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The virtual machine internal identifier."] #[serde(rename = "internalIdentifier", default, skip_serializing_if = "Option::is_none")] pub internal_identifier: Option, @@ -9139,9 +8685,8 @@ pub struct InMageRcmFailbackReplicationDetails { pub is_agent_registration_successful_after_failover: Option, } impl InMageRcmFailbackReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, internal_identifier: None, azure_virtual_machine_id: None, multi_vm_group_name: None, @@ -9344,8 +8889,6 @@ pub mod in_mage_rcm_failback_replication_details { #[doc = "InMageRcmFailback specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The process server Id."] #[serde(rename = "processServerId")] pub process_server_id: String, @@ -9357,13 +8900,8 @@ pub struct InMageRcmFailbackReprotectInput { pub policy_id: String, } impl InMageRcmFailbackReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - process_server_id: String, - policy_id: String, - ) -> Self { + pub fn new(process_server_id: String, policy_id: String) -> Self { Self { - reverse_replication_provider_specific_input, process_server_id, run_as_account_id: None, policy_id, @@ -9723,8 +9261,6 @@ impl InMageRcmNicInput { #[doc = "InMageRcm policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -9739,9 +9275,8 @@ pub struct InMageRcmPolicyCreationInput { pub enable_multi_vm_sync: Option, } impl InMageRcmPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_in_minutes: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -9752,8 +9287,6 @@ impl InMageRcmPolicyCreationInput { #[doc = "InMageRcm specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -9768,9 +9301,8 @@ pub struct InMageRcmPolicyDetails { pub enable_multi_vm_sync: Option, } impl InMageRcmPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_in_minutes: None, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, @@ -9880,16 +9412,13 @@ pub mod in_mage_rcm_protected_disk_details { #[doc = "InMageRcm provider specific container mapping details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "A value indicating whether the flag for enable agent auto upgrade."] #[serde(rename = "enableAgentAutoUpgrade", default, skip_serializing_if = "Option::is_none")] pub enable_agent_auto_upgrade: Option, } impl InMageRcmProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, enable_agent_auto_upgrade: None, } } @@ -9897,16 +9426,13 @@ impl InMageRcmProtectionContainerMappingDetails { #[doc = "InMageRcm provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmRecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "isMultiVmSyncPoint", default, skip_serializing_if = "Option::is_none")] pub is_multi_vm_sync_point: Option, } impl InMageRcmRecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, is_multi_vm_sync_point: None, } } @@ -9914,8 +9440,6 @@ impl InMageRcmRecoveryPointDetails { #[doc = "InMageRcm provider specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The virtual machine internal identifier."] #[serde(rename = "internalIdentifier", default, skip_serializing_if = "Option::is_none")] pub internal_identifier: Option, @@ -10098,9 +9622,8 @@ pub struct InMageRcmReplicationDetails { pub discovered_vm_details: Option, } impl InMageRcmReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, internal_identifier: None, fabric_discovery_machine_id: None, multi_vm_group_name: None, @@ -10326,8 +9849,6 @@ pub mod in_mage_rcm_replication_details { #[doc = "InMageRcm specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The reprotect agent Id."] #[serde(rename = "reprotectAgentId")] pub reprotect_agent_id: String, @@ -10342,14 +9863,8 @@ pub struct InMageRcmReprotectInput { pub policy_id: Option, } impl InMageRcmReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - reprotect_agent_id: String, - datastore_name: String, - log_storage_account_id: String, - ) -> Self { + pub fn new(reprotect_agent_id: String, datastore_name: String, log_storage_account_id: String) -> Self { Self { - reverse_replication_provider_specific_input, reprotect_agent_id, datastore_name, log_storage_account_id, @@ -10439,8 +9954,6 @@ pub mod in_mage_rcm_sync_details { #[doc = "InMageRcm provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The test network Id."] #[serde(rename = "networkId", default, skip_serializing_if = "Option::is_none")] pub network_id: Option, @@ -10449,9 +9962,8 @@ pub struct InMageRcmTestFailoverInput { pub recovery_point_id: Option, } impl InMageRcmTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, network_id: None, recovery_point_id: None, } @@ -10460,8 +9972,6 @@ impl InMageRcmTestFailoverInput { #[doc = "InMageRcm provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "A value indicating whether VM is to be shutdown."] #[serde(rename = "performShutdown")] pub perform_shutdown: String, @@ -10470,9 +9980,8 @@ pub struct InMageRcmUnplannedFailoverInput { pub recovery_point_id: Option, } impl InMageRcmUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, perform_shutdown: String) -> Self { + pub fn new(perform_shutdown: String) -> Self { Self { - unplanned_failover_provider_specific_input, perform_shutdown, recovery_point_id: None, } @@ -10481,48 +9990,30 @@ impl InMageRcmUnplannedFailoverInput { #[doc = "InMageRcm provider specific input to update appliance for replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateApplianceForReplicationProtectedItemInput { - #[serde(flatten)] - pub update_appliance_for_replication_protected_item_provider_specific_input: - UpdateApplianceForReplicationProtectedItemProviderSpecificInput, #[doc = "The run as account Id."] #[serde(rename = "runAsAccountId", default, skip_serializing_if = "Option::is_none")] pub run_as_account_id: Option, } impl InMageRcmUpdateApplianceForReplicationProtectedItemInput { - pub fn new( - update_appliance_for_replication_protected_item_provider_specific_input : UpdateApplianceForReplicationProtectedItemProviderSpecificInput, - ) -> Self { - Self { - update_appliance_for_replication_protected_item_provider_specific_input, - run_as_account_id: None, - } + pub fn new() -> Self { + Self { run_as_account_id: None } } } #[doc = "InMageRcm update protection container mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, #[doc = "A value indicating whether agent auto upgrade has to be enabled."] #[serde(rename = "enableAgentAutoUpgrade")] pub enable_agent_auto_upgrade: String, } impl InMageRcmUpdateContainerMappingInput { - pub fn new( - replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, - enable_agent_auto_upgrade: String, - ) -> Self { - Self { - replication_provider_specific_update_container_mapping_input, - enable_agent_auto_upgrade, - } + pub fn new(enable_agent_auto_upgrade: String) -> Self { + Self { enable_agent_auto_upgrade } } } #[doc = "InMageRcm provider specific input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The target VM name."] #[serde(rename = "targetVmName", default, skip_serializing_if = "Option::is_none")] pub target_vm_name: Option, @@ -10563,9 +10054,8 @@ pub struct InMageRcmUpdateReplicationProtectedItemInput { pub license_type: Option, } impl InMageRcmUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, target_vm_name: None, target_vm_size: None, target_resource_group_id: None, @@ -10625,8 +10115,6 @@ pub mod in_mage_rcm_update_replication_protected_item_input { #[doc = "InMage provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The active location of the VM. If the VM is being protected from Azure, this field will take values from { Azure, OnPrem }. If the VM is being protected between two data-centers, this field will be OnPrem always."] #[serde(rename = "activeSiteType", default, skip_serializing_if = "Option::is_none")] pub active_site_type: Option, @@ -10768,9 +10256,8 @@ pub struct InMageReplicationDetails { pub total_progress_health: Option, } impl InMageReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, active_site_type: None, source_vm_cpu_count: None, source_vm_ram_size_in_mb: None, @@ -10817,8 +10304,6 @@ impl InMageReplicationDetails { #[doc = "InMageAzureV2 specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Master Target Id."] #[serde(rename = "masterTargetId")] pub master_target_id: String, @@ -10850,15 +10335,8 @@ pub struct InMageReprotectInput { pub disks_to_include: Vec, } impl InMageReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - master_target_id: String, - process_server_id: String, - retention_drive: String, - profile_id: String, - ) -> Self { + pub fn new(master_target_id: String, process_server_id: String, retention_drive: String, profile_id: String) -> Self { Self { - reverse_replication_provider_specific_input, master_target_id, process_server_id, retention_drive, @@ -10873,8 +10351,6 @@ impl InMageReprotectInput { #[doc = "Provider specific input for InMage test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -10883,9 +10359,8 @@ pub struct InMageTestFailoverInput { pub recovery_point_id: Option, } impl InMageTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, recovery_point_type: None, recovery_point_id: None, } @@ -10936,8 +10411,6 @@ pub mod in_mage_test_failover_input { #[doc = "Provider specific input for InMage unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -10946,9 +10419,8 @@ pub struct InMageUnplannedFailoverInput { pub recovery_point_id: Option, } impl InMageUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, recovery_point_type: None, recovery_point_id: None, } @@ -11441,8 +10913,6 @@ pub mod job_query_parameter { #[doc = "Model class for event details of a job status event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobStatusEventDetails { - #[serde(flatten)] - pub event_specific_details: EventSpecificDetails, #[doc = "Job arm id for the event."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -11457,9 +10927,8 @@ pub struct JobStatusEventDetails { pub affected_object_type: Option, } impl JobStatusEventDetails { - pub fn new(event_specific_details: EventSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_specific_details, job_id: None, job_friendly_name: None, job_status: None, @@ -11470,18 +10939,13 @@ impl JobStatusEventDetails { #[doc = "This class represents a task which is actually a workflow so that one can navigate to its individual drill down."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "This class contains the minimal job details required to navigate to the desired drill down."] #[serde(rename = "jobTask", default, skip_serializing_if = "Option::is_none")] pub job_task: Option, } impl JobTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { - Self { - task_type_details, - job_task: None, - } + pub fn new() -> Self { + Self { job_task: None } } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -11568,8 +11032,6 @@ impl LogicalNetworkProperties { #[doc = "This class represents the manual action task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManualActionTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -11581,9 +11043,8 @@ pub struct ManualActionTaskDetails { pub observation: Option, } impl ManualActionTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, instructions: None, observation: None, @@ -11781,14 +11242,6 @@ impl MigrateInputProperties { Self { provider_specific_details } } } -#[doc = "Migrate provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MigrateProviderSpecificInput {} -impl MigrateProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12104,14 +11557,6 @@ impl MigrationItemsQueryParameter { Self::default() } } -#[doc = "Migration provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MigrationProviderSpecificSettings {} -impl MigrationProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12310,14 +11755,6 @@ impl NetworkMappingCollection { Self::default() } } -#[doc = "Network Mapping fabric specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct NetworkMappingFabricSpecificSettings {} -impl NetworkMappingFabricSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12390,8 +11827,6 @@ impl NetworkProperties { #[doc = "New Protection profile input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NewProtectionProfile { - #[serde(flatten)] - pub protection_profile_custom_details: ProtectionProfileCustomDetails, #[doc = "The protection profile input."] #[serde(rename = "policyName")] pub policy_name: String, @@ -12409,13 +11844,8 @@ pub struct NewProtectionProfile { pub multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus, } impl NewProtectionProfile { - pub fn new( - protection_profile_custom_details: ProtectionProfileCustomDetails, - policy_name: String, - multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus, - ) -> Self { + pub fn new(policy_name: String, multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus) -> Self { Self { - protection_profile_custom_details, policy_name, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, @@ -12467,8 +11897,6 @@ pub mod new_protection_profile { #[doc = "Recovery virtual network input to create new virtual network from given source network."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NewRecoveryVirtualNetwork { - #[serde(flatten)] - pub recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, #[doc = "The name of the resource group to be used to create the recovery virtual network. If absent, target network would be created in the same resource group as target VM."] #[serde( rename = "recoveryVirtualNetworkResourceGroupName", @@ -12481,9 +11909,8 @@ pub struct NewRecoveryVirtualNetwork { pub recovery_virtual_network_name: Option, } impl NewRecoveryVirtualNetwork { - pub fn new(recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_virtual_network_custom_details, recovery_virtual_network_resource_group_name: None, recovery_virtual_network_name: None, } @@ -12653,14 +12080,6 @@ impl PlannedFailoverInputProperties { Self::default() } } -#[doc = "Provider specific failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PlannedFailoverProviderSpecificFailoverInput {} -impl PlannedFailoverProviderSpecificFailoverInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12723,14 +12142,6 @@ impl PolicyProperties { Self::default() } } -#[doc = "Base class for Provider specific details for policies."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PolicyProviderSpecificDetails {} -impl PolicyProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12748,14 +12159,6 @@ pub enum PolicyProviderSpecificDetailsUnion { InMageRcm(InMageRcmPolicyDetails), VMwareCbt(VmwareCbtPolicyDetails), } -#[doc = "Base class for provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PolicyProviderSpecificInput {} -impl PolicyProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13640,14 +13043,6 @@ impl ProtectionContainerMappingProperties { Self::default() } } -#[doc = "Container mapping provider specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProtectionContainerMappingProviderSpecificDetails {} -impl ProtectionContainerMappingProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13687,14 +13082,6 @@ impl ProtectionContainerProperties { Self::default() } } -#[doc = "Protection Profile custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProtectionProfileCustomDetails {} -impl ProtectionProfileCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -13726,14 +13113,6 @@ impl ProviderError { Self::default() } } -#[doc = "Replication provider specific recovery point details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProviderSpecificRecoveryPointDetails {} -impl ProviderSpecificRecoveryPointDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the provider type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13916,14 +13295,6 @@ pub mod rcm_proxy_details { } } } -#[doc = "Recovery Availability Set custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryAvailabilitySetCustomDetails {} -impl RecoveryAvailabilitySetCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -13947,8 +13318,6 @@ impl RecoveryPlan { #[doc = "Recovery plan A2A specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aDetails { - #[serde(flatten)] - pub recovery_plan_provider_specific_details: RecoveryPlanProviderSpecificDetails, #[doc = "The primary zone."] #[serde(rename = "primaryZone", default, skip_serializing_if = "Option::is_none")] pub primary_zone: Option, @@ -13963,9 +13332,8 @@ pub struct RecoveryPlanA2aDetails { pub recovery_extended_location: Option, } impl RecoveryPlanA2aDetails { - pub fn new(recovery_plan_provider_specific_details: RecoveryPlanProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_details, primary_zone: None, recovery_zone: None, primary_extended_location: None, @@ -13976,8 +13344,6 @@ impl RecoveryPlanA2aDetails { #[doc = "Recovery plan A2A failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType, @@ -13989,12 +13355,8 @@ pub struct RecoveryPlanA2aFailoverInput { pub multi_vm_sync_point_option: Option, } impl RecoveryPlanA2aFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, cloud_service_creation_option: None, multi_vm_sync_point_option: None, @@ -14089,8 +13451,6 @@ pub mod recovery_plan_a2a_failover_input { #[doc = "Recovery plan A2A input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_input: RecoveryPlanProviderSpecificInput, #[doc = "The primary zone."] #[serde(rename = "primaryZone", default, skip_serializing_if = "Option::is_none")] pub primary_zone: Option, @@ -14105,9 +13465,8 @@ pub struct RecoveryPlanA2aInput { pub recovery_extended_location: Option, } impl RecoveryPlanA2aInput { - pub fn new(recovery_plan_provider_specific_input: RecoveryPlanProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_input, primary_zone: None, recovery_zone: None, primary_extended_location: None, @@ -14146,14 +13505,6 @@ impl RecoveryPlanAction { } } } -#[doc = "Recovery plan action custom details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanActionDetails {} -impl RecoveryPlanActionDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values)."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14165,8 +13516,6 @@ pub enum RecoveryPlanActionDetailsUnion { #[doc = "Recovery plan Automation runbook action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanAutomationRunbookActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The runbook ARM Id."] #[serde(rename = "runbookId", default, skip_serializing_if = "Option::is_none")] pub runbook_id: Option, @@ -14178,12 +13527,8 @@ pub struct RecoveryPlanAutomationRunbookActionDetails { pub fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation, } impl RecoveryPlanAutomationRunbookActionDetails { - pub fn new( - recovery_plan_action_details: RecoveryPlanActionDetails, - fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation, - ) -> Self { + pub fn new(fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation) -> Self { Self { - recovery_plan_action_details, runbook_id: None, timeout: None, fabric_location, @@ -14371,8 +13716,6 @@ pub enum RecoveryPlanGroupTaskDetailsUnion { #[doc = "Recovery plan HVR Azure failback input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanHyperVReplicaAzureFailbackInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The data sync option."] #[serde(rename = "dataSyncOption")] pub data_sync_option: recovery_plan_hyper_v_replica_azure_failback_input::DataSyncOption, @@ -14382,12 +13725,10 @@ pub struct RecoveryPlanHyperVReplicaAzureFailbackInput { } impl RecoveryPlanHyperVReplicaAzureFailbackInput { pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, data_sync_option: recovery_plan_hyper_v_replica_azure_failback_input::DataSyncOption, recovery_vm_creation_option: recovery_plan_hyper_v_replica_azure_failback_input::RecoveryVmCreationOption, ) -> Self { Self { - recovery_plan_provider_specific_failover_input, data_sync_option, recovery_vm_creation_option, } @@ -14473,8 +13814,6 @@ pub mod recovery_plan_hyper_v_replica_azure_failback_input { #[doc = "Recovery plan HVR Azure failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanHyperVReplicaAzureFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The primary KEK certificate PFX."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -14486,9 +13825,8 @@ pub struct RecoveryPlanHyperVReplicaAzureFailoverInput { pub recovery_point_type: Option, } impl RecoveryPlanHyperVReplicaAzureFailoverInput { - pub fn new(recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_failover_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_type: None, @@ -14542,8 +13880,6 @@ pub mod recovery_plan_hyper_v_replica_azure_failover_input { #[doc = "Recovery plan InMageAzureV2 failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageAzureV2FailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType, @@ -14552,12 +13888,8 @@ pub struct RecoveryPlanInMageAzureV2FailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageAzureV2FailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14612,21 +13944,13 @@ pub mod recovery_plan_in_mage_azure_v2_failover_input { #[doc = "Recovery plan InMage failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType, } impl RecoveryPlanInMageFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType, - ) -> Self { - Self { - recovery_plan_provider_specific_failover_input, - recovery_point_type, - } + pub fn new(recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType) -> Self { + Self { recovery_point_type } } } pub mod recovery_plan_in_mage_failover_input { @@ -14674,8 +13998,6 @@ pub mod recovery_plan_in_mage_failover_input { #[doc = "Recovery plan InMageRcmFailback failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageRcmFailbackFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType, @@ -14684,12 +14006,8 @@ pub struct RecoveryPlanInMageRcmFailbackFailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageRcmFailbackFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14738,8 +14056,6 @@ pub mod recovery_plan_in_mage_rcm_failback_failover_input { #[doc = "Recovery plan InMageRcm failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageRcmFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType, @@ -14748,12 +14064,8 @@ pub struct RecoveryPlanInMageRcmFailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageRcmFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14808,18 +14120,13 @@ pub mod recovery_plan_in_mage_rcm_failover_input { #[doc = "Recovery plan manual action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanManualActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The manual action description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, } impl RecoveryPlanManualActionDetails { - pub fn new(recovery_plan_action_details: RecoveryPlanActionDetails) -> Self { - Self { - recovery_plan_action_details, - description: None, - } + pub fn new() -> Self { + Self { description: None } } } #[doc = "Recovery plan planned failover input."] @@ -14987,14 +14294,6 @@ impl RecoveryPlanProtectedItem { Self::default() } } -#[doc = "Recovery plan provider specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificDetails {} -impl RecoveryPlanProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15002,14 +14301,6 @@ pub enum RecoveryPlanProviderSpecificDetailsUnion { #[serde(rename = "A2A")] A2a(RecoveryPlanA2aDetails), } -#[doc = "Recovery plan provider specific failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificFailoverInput {} -impl RecoveryPlanProviderSpecificFailoverInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15023,14 +14314,6 @@ pub enum RecoveryPlanProviderSpecificFailoverInputUnion { InMageRcmFailback(RecoveryPlanInMageRcmFailbackFailoverInput), InMageRcm(RecoveryPlanInMageRcmFailoverInput), } -#[doc = "Recovery plan provider specific input base class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificInput {} -impl RecoveryPlanProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15041,8 +14324,6 @@ pub enum RecoveryPlanProviderSpecificInputUnion { #[doc = "Recovery plan script action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanScriptActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The script path."] pub path: String, #[doc = "The script timeout."] @@ -15053,13 +14334,8 @@ pub struct RecoveryPlanScriptActionDetails { pub fabric_location: recovery_plan_script_action_details::FabricLocation, } impl RecoveryPlanScriptActionDetails { - pub fn new( - recovery_plan_action_details: RecoveryPlanActionDetails, - path: String, - fabric_location: recovery_plan_script_action_details::FabricLocation, - ) -> Self { + pub fn new(path: String, fabric_location: recovery_plan_script_action_details::FabricLocation) -> Self { Self { - recovery_plan_action_details, path, timeout: None, fabric_location, @@ -15399,28 +14675,12 @@ impl RecoveryPointProperties { Self::default() } } -#[doc = "Recovery Proximity placement group custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryProximityPlacementGroupCustomDetails {} -impl RecoveryProximityPlacementGroupCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] pub enum RecoveryProximityPlacementGroupCustomDetailsUnion { Existing(ExistingRecoveryProximityPlacementGroup), } -#[doc = "Recovery Resource Group custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryResourceGroupCustomDetails {} -impl RecoveryResourceGroupCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -15549,14 +14809,6 @@ impl RecoveryServicesProviderProperties { Self::default() } } -#[doc = "Recovery Virtual network custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryVirtualNetworkCustomDetails {} -impl RecoveryVirtualNetworkCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -15588,14 +14840,6 @@ impl RemoveDisksInputProperties { Self::default() } } -#[doc = "Remove Disk provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RemoveDisksProviderSpecificInput {} -impl RemoveDisksProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15842,13 +15086,10 @@ impl ReplicationEligibilityResultsProperties { } #[doc = "Replication group details. This will be used in case of San."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationGroupDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, -} +pub struct ReplicationGroupDetails {} impl ReplicationGroupDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { - Self { configuration_settings } + pub fn new() -> Self { + Self {} } } #[doc = "Replication protected item."] @@ -16073,14 +15314,6 @@ impl ReplicationProtectionIntentProperties { Self::default() } } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProtectionIntentProviderSpecificSettings {} -impl ReplicationProtectionIntentProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16100,14 +15333,6 @@ impl ReplicationProviderContainerUnmappingInput { Self::default() } } -#[doc = "Provider specific input for container creation operation."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificContainerCreationInput {} -impl ReplicationProviderSpecificContainerCreationInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16118,14 +15343,6 @@ pub enum ReplicationProviderSpecificContainerCreationInputUnion { A2aCrossClusterMigration(A2aCrossClusterMigrationContainerCreationInput), VMwareCbt(VMwareCbtContainerCreationInput), } -#[doc = "Provider specific input for pairing operations."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificContainerMappingInput {} -impl ReplicationProviderSpecificContainerMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16134,14 +15351,6 @@ pub enum ReplicationProviderSpecificContainerMappingInputUnion { A2a(A2aContainerMappingInput), VMwareCbt(VMwareCbtContainerMappingInput), } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificSettings {} -impl ReplicationProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16159,14 +15368,6 @@ pub enum ReplicationProviderSpecificSettingsUnion { InMageRcm(InMageRcmReplicationDetails), InMage(InMageReplicationDetails), } -#[doc = "Provider specific input for update pairing operations."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificUpdateContainerMappingInput {} -impl ReplicationProviderSpecificUpdateContainerMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16408,14 +15609,6 @@ impl ResumeReplicationInputProperties { Self { provider_specific_details } } } -#[doc = "Resume replication provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResumeReplicationProviderSpecificInput {} -impl ResumeReplicationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16445,14 +15638,6 @@ impl ResyncInputProperties { Self { provider_specific_details } } } -#[doc = "Resync provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResyncProviderSpecificInput {} -impl ResyncProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16507,14 +15692,6 @@ impl ReverseReplicationInputProperties { Self::default() } } -#[doc = "Provider specific reverse replication input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReverseReplicationProviderSpecificInput {} -impl ReverseReplicationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16569,8 +15746,6 @@ impl RunAsAccount { #[doc = "This class represents the script action task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScriptActionTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -16585,9 +15760,8 @@ pub struct ScriptActionTaskDetails { pub is_primary_side_script: Option, } impl ScriptActionTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, path: None, output: None, @@ -16619,14 +15793,6 @@ impl ServiceError { Self::default() } } -#[doc = "Storage account custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StorageAccountCustomDetails {} -impl StorageAccountCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -16900,14 +16066,6 @@ impl SwitchProtectionJobDetails { } } } -#[doc = "Provider specific switch protection input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SwitchProtectionProviderSpecificInput {} -impl SwitchProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16942,14 +16100,6 @@ impl SwitchProviderInputProperties { Self::default() } } -#[doc = "Provider specific switch provider input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SwitchProviderProviderSpecificInput {} -impl SwitchProviderProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17050,14 +16200,6 @@ impl TargetComputeSizeProperties { Self::default() } } -#[doc = "Task details based on specific task type."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TaskTypeDetails {} -impl TaskTypeDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of task details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17166,14 +16308,6 @@ impl TestFailoverJobDetails { } } } -#[doc = "Provider specific test failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TestFailoverProviderSpecificInput {} -impl TestFailoverProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17231,14 +16365,6 @@ impl TestMigrateInputProperties { Self { provider_specific_details } } } -#[doc = "Test migrate provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TestMigrateProviderSpecificInput {} -impl TestMigrateProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17274,14 +16400,6 @@ impl UnplannedFailoverInputProperties { Self::default() } } -#[doc = "Provider specific unplanned failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UnplannedFailoverProviderSpecificInput {} -impl UnplannedFailoverProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17325,14 +16443,6 @@ impl UpdateApplianceForReplicationProtectedItemInputProperties { } } } -#[doc = "Update replication protected item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateApplianceForReplicationProtectedItemProviderSpecificInput {} -impl UpdateApplianceForReplicationProtectedItemProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17381,14 +16491,6 @@ impl UpdateMigrationItemInputProperties { Self { provider_specific_details } } } -#[doc = "Update migration item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateMigrationItemProviderSpecificInput {} -impl UpdateMigrationItemProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17623,14 +16725,6 @@ pub mod update_replication_protected_item_input_properties { } } } -#[doc = "Update replication protected item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateReplicationProtectedItemProviderInput {} -impl UpdateReplicationProtectedItemProviderInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17892,22 +16986,15 @@ impl VmNicInputDetails { } #[doc = "VMwareCbt container creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VMwareCbtContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct VMwareCbtContainerCreationInput {} impl VMwareCbtContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "VMwareCbt container mapping input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, #[doc = "The target key vault ARM Id."] #[serde(rename = "keyVaultId", default, skip_serializing_if = "Option::is_none")] pub key_vault_id: Option, @@ -17928,13 +17015,8 @@ pub struct VMwareCbtContainerMappingInput { pub target_location: String, } impl VMwareCbtContainerMappingInput { - pub fn new( - replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, - storage_account_id: String, - target_location: String, - ) -> Self { + pub fn new(storage_account_id: String, target_location: String) -> Self { Self { - replication_provider_specific_container_mapping_input, key_vault_id: None, key_vault_uri: None, storage_account_id, @@ -18026,8 +17108,6 @@ pub mod v_mware_cbt_disk_input { #[doc = "VMwareCbt specific enable migration input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtEnableMigrationInput { - #[serde(flatten)] - pub enable_migration_provider_specific_input: EnableMigrationProviderSpecificInput, #[doc = "The ARM Id of the VM discovered in VMware."] #[serde(rename = "vmwareMachineId")] pub vmware_machine_id: String, @@ -18106,7 +17186,6 @@ pub struct VMwareCbtEnableMigrationInput { } impl VMwareCbtEnableMigrationInput { pub fn new( - enable_migration_provider_specific_input: EnableMigrationProviderSpecificInput, vmware_machine_id: String, disks_to_include: Vec, data_mover_run_as_account_id: String, @@ -18115,7 +17194,6 @@ impl VMwareCbtEnableMigrationInput { target_network_id: String, ) -> Self { Self { - enable_migration_provider_specific_input, vmware_machine_id, disks_to_include, license_type: None, @@ -18232,25 +17310,18 @@ pub mod v_mware_cbt_enable_migration_input { #[doc = "Event details for VMwareCbt provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The migration item name."] #[serde(rename = "migrationItemName", default, skip_serializing_if = "Option::is_none")] pub migration_item_name: Option, } impl VMwareCbtEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { - Self { - event_provider_specific_details, - migration_item_name: None, - } + pub fn new() -> Self { + Self { migration_item_name: None } } } #[doc = "VMwareCbt specific migrate input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtMigrateInput { - #[serde(flatten)] - pub migrate_provider_specific_input: MigrateProviderSpecificInput, #[doc = "A value indicating whether VM is to be shutdown."] #[serde(rename = "performShutdown")] pub perform_shutdown: String, @@ -18259,9 +17330,8 @@ pub struct VMwareCbtMigrateInput { pub os_upgrade_version: Option, } impl VMwareCbtMigrateInput { - pub fn new(migrate_provider_specific_input: MigrateProviderSpecificInput, perform_shutdown: String) -> Self { + pub fn new(perform_shutdown: String) -> Self { Self { - migrate_provider_specific_input, perform_shutdown, os_upgrade_version: None, } @@ -18270,8 +17340,6 @@ impl VMwareCbtMigrateInput { #[doc = "VMwareCbt provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtMigrationDetails { - #[serde(flatten)] - pub migration_provider_specific_settings: MigrationProviderSpecificSettings, #[doc = "The ARM Id of the VM discovered in VMware."] #[serde(rename = "vmwareMachineId", default, skip_serializing_if = "Option::is_none")] pub vmware_machine_id: Option, @@ -18415,9 +17483,8 @@ pub struct VMwareCbtMigrationDetails { pub supported_os_versions: Vec, } impl VMwareCbtMigrationDetails { - pub fn new(migration_provider_specific_settings: MigrationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - migration_provider_specific_settings, vmware_machine_id: None, os_type: None, os_name: None, @@ -18717,8 +17784,6 @@ impl VMwareCbtNicInput { #[doc = "VMware Cbt policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -18730,9 +17795,8 @@ pub struct VMwareCbtPolicyCreationInput { pub app_consistent_frequency_in_minutes: Option, } impl VMwareCbtPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_in_minutes: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -18838,8 +17902,6 @@ pub mod v_mware_cbt_protected_disk_details { #[doc = "VMwareCbt provider specific container mapping details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "The target key vault ARM Id."] #[serde(rename = "keyVaultId", default, skip_serializing_if = "Option::is_none")] pub key_vault_id: Option, @@ -18871,9 +17933,8 @@ pub struct VMwareCbtProtectionContainerMappingDetails { pub excluded_skus: Vec, } impl VMwareCbtProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, key_vault_id: None, key_vault_uri: None, storage_account_id: None, @@ -18888,16 +17949,13 @@ impl VMwareCbtProtectionContainerMappingDetails { #[doc = "VMwareCbt specific resume replication input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtResumeReplicationInput { - #[serde(flatten)] - pub resume_replication_provider_specific_input: ResumeReplicationProviderSpecificInput, #[doc = "A value indicating whether Migration resources to be deleted."] #[serde(rename = "deleteMigrationResources", default, skip_serializing_if = "Option::is_none")] pub delete_migration_resources: Option, } impl VMwareCbtResumeReplicationInput { - pub fn new(resume_replication_provider_specific_input: ResumeReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - resume_replication_provider_specific_input, delete_migration_resources: None, } } @@ -18905,18 +17963,13 @@ impl VMwareCbtResumeReplicationInput { #[doc = "VMwareCbt specific resync input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtResyncInput { - #[serde(flatten)] - pub resync_provider_specific_input: ResyncProviderSpecificInput, #[doc = "A value indicating whether CBT is to be reset."] #[serde(rename = "skipCbtReset")] pub skip_cbt_reset: String, } impl VMwareCbtResyncInput { - pub fn new(resync_provider_specific_input: ResyncProviderSpecificInput, skip_cbt_reset: String) -> Self { - Self { - resync_provider_specific_input, - skip_cbt_reset, - } + pub fn new(skip_cbt_reset: String) -> Self { + Self { skip_cbt_reset } } } #[doc = "VMwareCbt security profile input."] @@ -18993,8 +18046,6 @@ pub mod v_mware_cbt_security_profile_properties { #[doc = "VMwareCbt specific test migrate input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtTestMigrateInput { - #[serde(flatten)] - pub test_migrate_provider_specific_input: TestMigrateProviderSpecificInput, #[doc = "The recovery point Id."] #[serde(rename = "recoveryPointId")] pub recovery_point_id: String, @@ -19014,13 +18065,8 @@ pub struct VMwareCbtTestMigrateInput { pub os_upgrade_version: Option, } impl VMwareCbtTestMigrateInput { - pub fn new( - test_migrate_provider_specific_input: TestMigrateProviderSpecificInput, - recovery_point_id: String, - network_id: String, - ) -> Self { + pub fn new(recovery_point_id: String, network_id: String) -> Self { Self { - test_migrate_provider_specific_input, recovery_point_id, network_id, vm_nics: Vec::new(), @@ -19053,8 +18099,6 @@ impl VMwareCbtUpdateDiskInput { #[doc = "VMwareCbt specific update migration item input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtUpdateMigrationItemInput { - #[serde(flatten)] - pub update_migration_item_provider_specific_input: UpdateMigrationItemProviderSpecificInput, #[doc = "The target VM name."] #[serde(rename = "targetVmName", default, skip_serializing_if = "Option::is_none")] pub target_vm_name: Option, @@ -19118,9 +18162,8 @@ pub struct VMwareCbtUpdateMigrationItemInput { pub target_nic_tags: Option, } impl VMwareCbtUpdateMigrationItemInput { - pub fn new(update_migration_item_provider_specific_input: UpdateMigrationItemProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - update_migration_item_provider_specific_input, target_vm_name: None, target_vm_size: None, target_resource_group_id: None, @@ -19229,8 +18272,6 @@ pub mod v_mware_cbt_update_migration_item_input { #[doc = "Store the fabric details specific to the VMware fabric."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The list of Process Servers associated with the fabric."] #[serde( rename = "processServers", @@ -19352,9 +18393,8 @@ pub struct VMwareDetails { pub switch_provider_blocking_error_details: Vec, } impl VMwareDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, process_servers: Vec::new(), master_target_servers: Vec::new(), run_as_accounts: Vec::new(), @@ -19394,8 +18434,6 @@ impl VMwareDetails { #[doc = "VMwareV2 fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareV2FabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -19407,9 +18445,8 @@ pub struct VMwareV2FabricCreationInput { pub migration_solution_id: String, } impl VMwareV2FabricCreationInput { - pub fn new(fabric_specific_creation_input: FabricSpecificCreationInput, migration_solution_id: String) -> Self { + pub fn new(migration_solution_id: String) -> Self { Self { - fabric_specific_creation_input, vmware_site_id: None, physical_site_id: None, migration_solution_id, @@ -19419,8 +18456,6 @@ impl VMwareV2FabricCreationInput { #[doc = "VMwareV2 fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareV2FabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -19449,9 +18484,8 @@ pub struct VMwareV2FabricSpecificDetails { pub process_servers: Vec, } impl VMwareV2FabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, vmware_site_id: None, physical_site_id: None, migration_solution_id: None, @@ -19465,8 +18499,6 @@ impl VMwareV2FabricSpecificDetails { #[doc = "VMware provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareVirtualMachineDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, #[doc = "The ID generated by the InMage agent after it gets installed on guest. This is the ID to be used during InMage CreateProtection."] #[serde(rename = "agentGeneratedId", default, skip_serializing_if = "Option::is_none")] pub agent_generated_id: Option, @@ -19509,9 +18541,8 @@ pub struct VMwareVirtualMachineDetails { pub validation_errors: Vec, } impl VMwareVirtualMachineDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { + pub fn new() -> Self { Self { - configuration_settings, agent_generated_id: None, agent_installed: None, os_type: None, @@ -19712,8 +18743,6 @@ pub mod version_details { #[doc = "This class represents the virtual machine task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineTaskDetails { - #[serde(flatten)] - pub job_task_details: JobTaskDetails, #[doc = "The skipped reason."] #[serde(rename = "skippedReason", default, skip_serializing_if = "Option::is_none")] pub skipped_reason: Option, @@ -19722,9 +18751,8 @@ pub struct VirtualMachineTaskDetails { pub skipped_reason_string: Option, } impl VirtualMachineTaskDetails { - pub fn new(job_task_details: JobTaskDetails) -> Self { + pub fn new() -> Self { Self { - job_task_details, skipped_reason: None, skipped_reason_string: None, } @@ -19733,8 +18761,6 @@ impl VirtualMachineTaskDetails { #[doc = "This class represents the vm NicUpdates task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmNicUpdatesTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "Virtual machine Id."] #[serde(rename = "vmId", default, skip_serializing_if = "Option::is_none")] pub vm_id: Option, @@ -19746,9 +18772,8 @@ pub struct VmNicUpdatesTaskDetails { pub name: Option, } impl VmNicUpdatesTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, vm_id: None, nic_id: None, name: None, @@ -19757,91 +18782,58 @@ impl VmNicUpdatesTaskDetails { } #[doc = "VMM fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, -} +pub struct VmmDetails {} impl VmmDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { - Self { fabric_specific_details } + pub fn new() -> Self { + Self {} } } #[doc = "Create network mappings input properties/behavior specific to Vmm to Azure Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, -} +pub struct VmmToAzureCreateNetworkMappingInput {} impl VmmToAzureCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput) -> Self { - Self { - fabric_specific_create_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "E2A Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, -} +pub struct VmmToAzureNetworkMappingSettings {} impl VmmToAzureNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { - Self { - network_mapping_fabric_specific_settings, - } + pub fn new() -> Self { + Self {} } } #[doc = "Update network mappings input properties/behavior specific to vmm to azure."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, -} +pub struct VmmToAzureUpdateNetworkMappingInput {} impl VmmToAzureUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "Create network mappings input properties/behavior specific to vmm to vmm Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, -} +pub struct VmmToVmmCreateNetworkMappingInput {} impl VmmToVmmCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput) -> Self { - Self { - fabric_specific_create_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "E2E Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, -} +pub struct VmmToVmmNetworkMappingSettings {} impl VmmToVmmNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { - Self { - network_mapping_fabric_specific_settings, - } + pub fn new() -> Self { + Self {} } } #[doc = "Update network mappings input properties/behavior specific to vmm to vmm."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, -} +pub struct VmmToVmmUpdateNetworkMappingInput {} impl VmmToVmmUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "VMM fabric provider specific VM settings."] @@ -19860,8 +18852,6 @@ impl VmmVirtualMachineDetails { #[doc = "VMware Cbt specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmwareCbtPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -19873,9 +18863,8 @@ pub struct VmwareCbtPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl VmwareCbtPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_in_minutes: None, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2023_04/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2023_04/models.rs index bb2be0e28a..165ce3e025 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2023_04/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2023_04/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "A2A add disk(s) input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aAddDisksInput { - #[serde(flatten)] - pub add_disks_provider_specific_input: AddDisksProviderSpecificInput, #[doc = "The list of vm disk details."] #[serde( rename = "vmDisks", @@ -26,9 +24,8 @@ pub struct A2aAddDisksInput { pub vm_managed_disks: Vec, } impl A2aAddDisksInput { - pub fn new(add_disks_provider_specific_input: AddDisksProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - add_disks_provider_specific_input, vm_disks: Vec::new(), vm_managed_disks: Vec::new(), } @@ -36,35 +33,23 @@ impl A2aAddDisksInput { } #[doc = "ApplyRecoveryPoint input specific to A2A provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct A2aApplyRecoveryPointInput {} impl A2aApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A cloud creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct A2aContainerCreationInput {} impl A2aContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A container mapping input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -76,9 +61,8 @@ pub struct A2aContainerMappingInput { pub automation_account_authentication_type: Option, } impl A2aContainerMappingInput { - pub fn new(replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_container_mapping_input, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -172,8 +156,6 @@ pub mod a2a_container_mapping_input { #[doc = "A2A create protection intent input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCreateProtectionIntentInput { - #[serde(flatten)] - pub create_protection_intent_provider_specific_details: CreateProtectionIntentProviderSpecificDetails, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId")] pub fabric_object_id: String, @@ -261,7 +243,6 @@ pub struct A2aCreateProtectionIntentInput { } impl A2aCreateProtectionIntentInput { pub fn new( - create_protection_intent_provider_specific_details: CreateProtectionIntentProviderSpecificDetails, fabric_object_id: String, primary_location: String, recovery_location: String, @@ -270,7 +251,6 @@ impl A2aCreateProtectionIntentInput { recovery_resource_group_id: String, ) -> Self { Self { - create_protection_intent_provider_specific_details, fabric_object_id, primary_location, recovery_location, @@ -458,35 +438,23 @@ pub mod a2a_create_protection_intent_input { } #[doc = "ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct A2aCrossClusterMigrationApplyRecoveryPointInput {} impl A2aCrossClusterMigrationApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2ACrossClusterMigration cloud creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct A2aCrossClusterMigrationContainerCreationInput {} impl A2aCrossClusterMigrationContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A Cross-Cluster Migration enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCrossClusterMigrationEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -495,9 +463,8 @@ pub struct A2aCrossClusterMigrationEnableProtectionInput { pub recovery_container_id: Option, } impl A2aCrossClusterMigrationEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, fabric_object_id: None, recovery_container_id: None, } @@ -505,22 +472,15 @@ impl A2aCrossClusterMigrationEnableProtectionInput { } #[doc = "A2A Cross-Cluster Migration Policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, -} +pub struct A2aCrossClusterMigrationPolicyCreationInput {} impl A2aCrossClusterMigrationPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { - Self { - policy_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCrossClusterMigrationReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -541,9 +501,8 @@ pub struct A2aCrossClusterMigrationReplicationDetails { pub lifecycle_id: Option, } impl A2aCrossClusterMigrationReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, fabric_object_id: None, primary_fabric_location: None, os_type: None, @@ -556,8 +515,6 @@ impl A2aCrossClusterMigrationReplicationDetails { #[doc = "A2A enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId")] pub fabric_object_id: String, @@ -624,9 +581,8 @@ pub struct A2aEnableProtectionInput { pub recovery_capacity_reservation_group_id: Option, } impl A2aEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, fabric_object_id: String) -> Self { + pub fn new(fabric_object_id: String) -> Self { Self { - enable_protection_provider_specific_input, fabric_object_id, recovery_container_id: None, recovery_resource_group_id: None, @@ -651,8 +607,6 @@ impl A2aEnableProtectionInput { #[doc = "Model class for event details of a A2A event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item arm name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -673,9 +627,8 @@ pub struct A2aEventDetails { pub remote_fabric_location: Option, } impl A2aEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, fabric_object_id: None, fabric_name: None, @@ -748,8 +701,6 @@ impl A2aFabricSpecificLocationDetails { #[doc = "A2A Policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistory", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history: Option, @@ -764,12 +715,8 @@ pub struct A2aPolicyCreationInput { pub multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus, } impl A2aPolicyCreationInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -820,8 +767,6 @@ pub mod a2a_policy_creation_input { #[doc = "A2A specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -839,9 +784,8 @@ pub struct A2aPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl A2aPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -1042,8 +986,6 @@ impl A2aProtectedManagedDiskDetails { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -1061,9 +1003,8 @@ pub struct A2aProtectionContainerMappingDetails { pub job_schedule_name: Option, } impl A2aProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -1231,8 +1172,6 @@ impl A2aProtectionIntentManagedDiskInputDetails { #[doc = "A2A provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aRecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "recoveryPointSyncType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_sync_type: Option, @@ -1245,9 +1184,8 @@ pub struct A2aRecoveryPointDetails { pub disks: Vec, } impl A2aRecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, recovery_point_sync_type: None, disks: Vec::new(), } @@ -1298,8 +1236,6 @@ pub mod a2a_recovery_point_details { #[doc = "A2A remove disk(s) input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aRemoveDisksInput { - #[serde(flatten)] - pub remove_disks_provider_specific_input: RemoveDisksProviderSpecificInput, #[doc = "The list of vm disk vhd URIs."] #[serde( rename = "vmDisksUris", @@ -1318,9 +1254,8 @@ pub struct A2aRemoveDisksInput { pub vm_managed_disks_ids: Vec, } impl A2aRemoveDisksInput { - pub fn new(remove_disks_provider_specific_input: RemoveDisksProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - remove_disks_provider_specific_input, vm_disks_uris: Vec::new(), vm_managed_disks_ids: Vec::new(), } @@ -1329,8 +1264,6 @@ impl A2aRemoveDisksInput { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -1516,9 +1449,8 @@ pub struct A2aReplicationDetails { pub recovery_capacity_reservation_group_id: Option, } impl A2aReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, fabric_object_id: None, initial_primary_zone: None, initial_primary_fabric_location: None, @@ -1694,8 +1626,6 @@ pub mod a2a_replication_details { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReplicationIntentDetails { - #[serde(flatten)] - pub replication_protection_intent_provider_specific_settings: ReplicationProtectionIntentProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -1774,12 +1704,8 @@ pub struct A2aReplicationIntentDetails { pub automation_account_authentication_type: Option, } impl A2aReplicationIntentDetails { - pub fn new( - replication_protection_intent_provider_specific_settings: ReplicationProtectionIntentProviderSpecificSettings, - recovery_availability_type: String, - ) -> Self { + pub fn new(recovery_availability_type: String) -> Self { Self { - replication_protection_intent_provider_specific_settings, fabric_object_id: None, primary_location: None, recovery_location: None, @@ -1929,8 +1855,6 @@ pub mod a2a_replication_intent_details { #[doc = "Azure specific reprotect input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The recovery container Id."] #[serde(rename = "recoveryContainerId", default, skip_serializing_if = "Option::is_none")] pub recovery_container_id: Option, @@ -1956,9 +1880,8 @@ pub struct A2aReprotectInput { pub policy_id: Option, } impl A2aReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, recovery_container_id: None, vm_disks: Vec::new(), recovery_resource_group_id: None, @@ -1971,8 +1894,6 @@ impl A2aReprotectInput { #[doc = "A2A specific switch protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aSwitchProtectionInput { - #[serde(flatten)] - pub switch_protection_provider_specific_input: SwitchProtectionProviderSpecificInput, #[doc = "The recovery container Id."] #[serde(rename = "recoveryContainerId", default, skip_serializing_if = "Option::is_none")] pub recovery_container_id: Option, @@ -2024,9 +1945,8 @@ pub struct A2aSwitchProtectionInput { pub disk_encryption_info: Option, } impl A2aSwitchProtectionInput { - pub fn new(switch_protection_provider_specific_input: SwitchProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - switch_protection_provider_specific_input, recovery_container_id: None, vm_disks: Vec::new(), vm_managed_disks: Vec::new(), @@ -2046,8 +1966,6 @@ impl A2aSwitchProtectionInput { #[doc = "A2A provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -2056,9 +1974,8 @@ pub struct A2aTestFailoverInput { pub cloud_service_creation_option: Option, } impl A2aTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, recovery_point_id: None, cloud_service_creation_option: None, } @@ -2067,8 +1984,6 @@ impl A2aTestFailoverInput { #[doc = "A2A provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -2077,9 +1992,8 @@ pub struct A2aUnplannedFailoverInput { pub cloud_service_creation_option: Option, } impl A2aUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, recovery_point_id: None, cloud_service_creation_option: None, } @@ -2143,8 +2057,6 @@ pub mod a2a_unprotected_disk_details { #[doc = "A2A update protection container mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUpdateContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -2156,11 +2068,8 @@ pub struct A2aUpdateContainerMappingInput { pub automation_account_authentication_type: Option, } impl A2aUpdateContainerMappingInput { - pub fn new( - replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, - ) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_update_container_mapping_input, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -2254,8 +2163,6 @@ pub mod a2a_update_container_mapping_input { #[doc = "InMage Azure V2 input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The target cloud service ARM Id (for V1)."] #[serde(rename = "recoveryCloudServiceId", default, skip_serializing_if = "Option::is_none")] pub recovery_cloud_service_id: Option, @@ -2290,9 +2197,8 @@ pub struct A2aUpdateReplicationProtectedItemInput { pub recovery_capacity_reservation_group_id: Option, } impl A2aUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_cloud_service_id: None, recovery_resource_group_id: None, managed_disk_update_details: Vec::new(), @@ -2485,14 +2391,6 @@ impl AddDisksInputProperties { Self { provider_specific_details } } } -#[doc = "Add Disks provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddDisksProviderSpecificInput {} -impl AddDisksProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2736,14 +2634,6 @@ impl ApplianceQueryParameter { Self::default() } } -#[doc = "Appliance specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ApplianceSpecificDetails {} -impl ApplianceSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2779,14 +2669,6 @@ impl ApplyRecoveryPointInputProperties { } } } -#[doc = "Provider specific input for apply recovery point."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ApplyRecoveryPointProviderSpecificInput {} -impl ApplyRecoveryPointProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2813,8 +2695,6 @@ impl AsrJobDetails { #[doc = "This class represents the task details for an automation runbook."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationRunbookTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The recovery plan task name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2844,9 +2724,8 @@ pub struct AutomationRunbookTaskDetails { pub is_primary_side_script: Option, } impl AutomationRunbookTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, cloud_service_name: None, subscription_id: None, @@ -2862,25 +2741,18 @@ impl AutomationRunbookTaskDetails { #[doc = "Fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The Location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, } impl AzureFabricCreationInput { - pub fn new(fabric_specific_creation_input: FabricSpecificCreationInput) -> Self { - Self { - fabric_specific_creation_input, - location: None, - } + pub fn new() -> Self { + Self { location: None } } } #[doc = "Azure Fabric Specific Details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The Location for the Azure fabric."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -2917,9 +2789,8 @@ pub struct AzureFabricSpecificDetails { pub location_details: Vec, } impl AzureFabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, location: None, container_ids: Vec::new(), zones: Vec::new(), @@ -2931,25 +2802,18 @@ impl AzureFabricSpecificDetails { #[doc = "Create network mappings input properties/behavior specific to Azure to Azure Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, #[doc = "The primary azure vnet Id."] #[serde(rename = "primaryNetworkId")] pub primary_network_id: String, } impl AzureToAzureCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, primary_network_id: String) -> Self { - Self { - fabric_specific_create_network_mapping_input, - primary_network_id, - } + pub fn new(primary_network_id: String) -> Self { + Self { primary_network_id } } } #[doc = "A2A Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, #[doc = "The primary fabric location."] #[serde(rename = "primaryFabricLocation", default, skip_serializing_if = "Option::is_none")] pub primary_fabric_location: Option, @@ -2958,9 +2822,8 @@ pub struct AzureToAzureNetworkMappingSettings { pub recovery_fabric_location: Option, } impl AzureToAzureNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { + pub fn new() -> Self { Self { - network_mapping_fabric_specific_settings, primary_fabric_location: None, recovery_fabric_location: None, } @@ -2969,18 +2832,13 @@ impl AzureToAzureNetworkMappingSettings { #[doc = "Updates network mappings input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, #[doc = "The primary azure vnet Id."] #[serde(rename = "primaryNetworkId", default, skip_serializing_if = "Option::is_none")] pub primary_network_id: Option, } impl AzureToAzureUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - primary_network_id: None, - } + pub fn new() -> Self { + Self { primary_network_id: None } } } #[doc = "Azure to Azure VM synced configuration details."] @@ -3057,14 +2915,6 @@ impl ComputeSizeErrorDetails { Self::default() } } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ConfigurationSettings {} -impl ConfigurationSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3111,8 +2961,6 @@ impl ConfigureAlertRequestProperties { #[doc = "This class contains monitoring details of all the inconsistent Protected Entities in Vmm."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ConsistencyCheckTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The list of inconsistent Vm details."] #[serde( rename = "vmDetails", @@ -3123,11 +2971,8 @@ pub struct ConsistencyCheckTaskDetails { pub vm_details: Vec, } impl ConsistencyCheckTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { - Self { - task_type_details, - vm_details: Vec::new(), - } + pub fn new() -> Self { + Self { vm_details: Vec::new() } } } #[doc = "Create network mappings input."] @@ -3270,14 +3115,6 @@ impl CreateProtectionIntentProperties { Self::default() } } -#[doc = "Create protection intent provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateProtectionIntentProviderSpecificDetails {} -impl CreateProtectionIntentProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3519,14 +3356,6 @@ pub mod disable_protection_input_properties { } } } -#[doc = "Disable protection provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DisableProtectionProviderSpecificInput {} -impl DisableProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3764,14 +3593,6 @@ impl EnableMigrationInputProperties { } } } -#[doc = "Enable migration provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnableMigrationProviderSpecificInput {} -impl EnableMigrationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3808,14 +3629,6 @@ impl EnableProtectionInputProperties { Self::default() } } -#[doc = "Enable protection provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnableProtectionProviderSpecificInput {} -impl EnableProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3933,14 +3746,6 @@ impl EventProperties { Self::default() } } -#[doc = "Model class for provider specific details for an event."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventProviderSpecificDetails {} -impl EventProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3989,14 +3794,6 @@ impl EventQueryParameter { Self::default() } } -#[doc = "Model class for event specific details for an event."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventSpecificDetails {} -impl EventSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4006,33 +3803,25 @@ pub enum EventSpecificDetailsUnion { #[doc = "Existing storage account input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingProtectionProfile { - #[serde(flatten)] - pub protection_profile_custom_details: ProtectionProfileCustomDetails, #[doc = "The protection profile Arm Id. Throw error, if resource does not exists."] #[serde(rename = "protectionProfileId")] pub protection_profile_id: String, } impl ExistingProtectionProfile { - pub fn new(protection_profile_custom_details: ProtectionProfileCustomDetails, protection_profile_id: String) -> Self { - Self { - protection_profile_custom_details, - protection_profile_id, - } + pub fn new(protection_profile_id: String) -> Self { + Self { protection_profile_id } } } #[doc = "Existing recovery availability set input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryAvailabilitySet { - #[serde(flatten)] - pub recovery_availability_set_custom_details: RecoveryAvailabilitySetCustomDetails, #[doc = "The recovery availability set Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryAvailabilitySetId", default, skip_serializing_if = "Option::is_none")] pub recovery_availability_set_id: Option, } impl ExistingRecoveryAvailabilitySet { - pub fn new(recovery_availability_set_custom_details: RecoveryAvailabilitySetCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_availability_set_custom_details, recovery_availability_set_id: None, } } @@ -4040,16 +3829,13 @@ impl ExistingRecoveryAvailabilitySet { #[doc = "Existing recovery proximity placement group input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryProximityPlacementGroup { - #[serde(flatten)] - pub recovery_proximity_placement_group_custom_details: RecoveryProximityPlacementGroupCustomDetails, #[doc = "The recovery proximity placement group Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryProximityPlacementGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_proximity_placement_group_id: Option, } impl ExistingRecoveryProximityPlacementGroup { - pub fn new(recovery_proximity_placement_group_custom_details: RecoveryProximityPlacementGroupCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_proximity_placement_group_custom_details, recovery_proximity_placement_group_id: None, } } @@ -4057,16 +3843,13 @@ impl ExistingRecoveryProximityPlacementGroup { #[doc = "Existing recovery resource group input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryRecoveryResourceGroup { - #[serde(flatten)] - pub recovery_resource_group_custom_details: RecoveryResourceGroupCustomDetails, #[doc = "The recovery resource group Id. Valid for V2 scenarios."] #[serde(rename = "recoveryResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_resource_group_id: Option, } impl ExistingRecoveryRecoveryResourceGroup { - pub fn new(recovery_resource_group_custom_details: RecoveryResourceGroupCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_resource_group_custom_details, recovery_resource_group_id: None, } } @@ -4074,8 +3857,6 @@ impl ExistingRecoveryRecoveryResourceGroup { #[doc = "Existing recovery virtual network input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryVirtualNetwork { - #[serde(flatten)] - pub recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, #[doc = "The recovery virtual network Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryVirtualNetworkId")] pub recovery_virtual_network_id: String, @@ -4084,9 +3865,8 @@ pub struct ExistingRecoveryVirtualNetwork { pub recovery_subnet_name: Option, } impl ExistingRecoveryVirtualNetwork { - pub fn new(recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, recovery_virtual_network_id: String) -> Self { + pub fn new(recovery_virtual_network_id: String) -> Self { Self { - recovery_virtual_network_custom_details, recovery_virtual_network_id, recovery_subnet_name: None, } @@ -4095,18 +3875,13 @@ impl ExistingRecoveryVirtualNetwork { #[doc = "Existing storage account input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingStorageAccount { - #[serde(flatten)] - pub storage_account_custom_details: StorageAccountCustomDetails, #[doc = "The storage account Arm Id. Throw error, if resource does not exists."] #[serde(rename = "azureStorageAccountId")] pub azure_storage_account_id: String, } impl ExistingStorageAccount { - pub fn new(storage_account_custom_details: StorageAccountCustomDetails, azure_storage_account_id: String) -> Self { - Self { - storage_account_custom_details, - azure_storage_account_id, - } + pub fn new(azure_storage_account_id: String) -> Self { + Self { azure_storage_account_id } } } #[doc = "This class represents details for export jobs workflow."] @@ -4319,8 +4094,6 @@ impl FabricQueryParameter { #[doc = "This class represents the fabric replication group task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FabricReplicationGroupTaskDetails { - #[serde(flatten)] - pub job_task_details: JobTaskDetails, #[doc = "The skipped reason."] #[serde(rename = "skippedReason", default, skip_serializing_if = "Option::is_none")] pub skipped_reason: Option, @@ -4329,22 +4102,13 @@ pub struct FabricReplicationGroupTaskDetails { pub skipped_reason_string: Option, } impl FabricReplicationGroupTaskDetails { - pub fn new(job_task_details: JobTaskDetails) -> Self { + pub fn new() -> Self { Self { - job_task_details, skipped_reason: None, skipped_reason_string: None, } } } -#[doc = "Input details specific to fabrics during Network Mapping."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificCreateNetworkMappingInput {} -impl FabricSpecificCreateNetworkMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4353,14 +4117,6 @@ pub enum FabricSpecificCreateNetworkMappingInputUnion { VmmToAzure(VmmToAzureCreateNetworkMappingInput), VmmToVmm(VmmToVmmCreateNetworkMappingInput), } -#[doc = "Fabric provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificCreationInput {} -impl FabricSpecificCreationInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4369,14 +4125,6 @@ pub enum FabricSpecificCreationInputUnion { InMageRcm(InMageRcmFabricCreationInput), VMwareV2(VMwareV2FabricCreationInput), } -#[doc = "Fabric specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificDetails {} -impl FabricSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4389,14 +4137,6 @@ pub enum FabricSpecificDetailsUnion { #[serde(rename = "VMM")] Vmm(VmmDetails), } -#[doc = "Input details specific to fabrics during Network Mapping."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificUpdateNetworkMappingInput {} -impl FabricSpecificUpdateNetworkMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4789,8 +4529,6 @@ impl HyperVHostDetails { #[doc = "Model class for event details of a HyperVReplica E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplica2012EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -4805,9 +4543,8 @@ pub struct HyperVReplica2012EventDetails { pub remote_fabric_name: Option, } impl HyperVReplica2012EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -4818,8 +4555,6 @@ impl HyperVReplica2012EventDetails { #[doc = "Model class for event details of a HyperVReplica blue E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplica2012R2EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -4834,9 +4569,8 @@ pub struct HyperVReplica2012R2EventDetails { pub remote_fabric_name: Option, } impl HyperVReplica2012R2EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -4847,8 +4581,6 @@ impl HyperVReplica2012R2EventDetails { #[doc = "ApplyRecoveryPoint input specific to HyperVReplicaAzure provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, #[doc = "The primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -4857,9 +4589,8 @@ pub struct HyperVReplicaAzureApplyRecoveryPointInput { pub secondary_kek_certificate_pfx: Option, } impl HyperVReplicaAzureApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - apply_recovery_point_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, } @@ -4934,8 +4665,6 @@ pub mod hyper_v_replica_azure_disk_input_details { #[doc = "HyperVReplicaAzure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The Hyper-V host VM Id."] #[serde(rename = "hvHostVmId", default, skip_serializing_if = "Option::is_none")] pub hv_host_vm_id: Option, @@ -5032,9 +4761,8 @@ pub struct HyperVReplicaAzureEnableProtectionInput { pub target_nic_tags: Option, } impl HyperVReplicaAzureEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, hv_host_vm_id: None, vm_name: None, os_type: None, @@ -5196,8 +4924,6 @@ pub mod hyper_v_replica_azure_enable_protection_input { #[doc = "Model class for event details of a HyperVReplica E2A event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -5209,9 +4935,8 @@ pub struct HyperVReplicaAzureEventDetails { pub remote_container_name: Option, } impl HyperVReplicaAzureEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -5221,8 +4946,6 @@ impl HyperVReplicaAzureEventDetails { #[doc = "HyperVReplicaAzureFailback specific planned failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureFailbackProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "Data sync option."] #[serde(rename = "dataSyncOption", default, skip_serializing_if = "Option::is_none")] pub data_sync_option: Option, @@ -5234,9 +4957,8 @@ pub struct HyperVReplicaAzureFailbackProviderInput { pub provider_id_for_alternate_recovery: Option, } impl HyperVReplicaAzureFailbackProviderInput { - pub fn new(planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - planned_failover_provider_specific_failover_input, data_sync_option: None, recovery_vm_creation_option: None, provider_id_for_alternate_recovery: None, @@ -5267,8 +4989,6 @@ impl HyperVReplicaAzureManagedDiskDetails { #[doc = "HyperVReplicaAzure specific planned failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePlannedFailoverProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5280,9 +5000,8 @@ pub struct HyperVReplicaAzurePlannedFailoverProviderInput { pub recovery_point_id: Option, } impl HyperVReplicaAzurePlannedFailoverProviderInput { - pub fn new(planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - planned_failover_provider_specific_failover_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5292,8 +5011,6 @@ impl HyperVReplicaAzurePlannedFailoverProviderInput { #[doc = "Hyper-V Replica Azure specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration (in hours) to which point the recovery history needs to be maintained."] #[serde(rename = "recoveryPointHistoryDurationInHours", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_duration_in_hours: Option, @@ -5318,9 +5035,8 @@ pub struct HyperVReplicaAzurePolicyDetails { pub active_storage_account_id: Option, } impl HyperVReplicaAzurePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_duration_in_hours: None, application_consistent_snapshot_frequency_in_hours: None, replication_interval: None, @@ -5333,8 +5049,6 @@ impl HyperVReplicaAzurePolicyDetails { #[doc = "Hyper-V Replica Azure specific input for creating a protection profile."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration (in hours) to which point the recovery history needs to be maintained."] #[serde(rename = "recoveryPointHistoryDuration", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_duration: Option, @@ -5361,9 +5075,8 @@ pub struct HyperVReplicaAzurePolicyInput { pub storage_accounts: Vec, } impl HyperVReplicaAzurePolicyInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_duration: None, application_consistent_snapshot_frequency_in_hours: None, replication_interval: None, @@ -5375,8 +5088,6 @@ impl HyperVReplicaAzurePolicyInput { #[doc = "Hyper V Replica Azure provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "Azure VM Disk details."] #[serde( rename = "azureVmDiskDetails", @@ -5493,9 +5204,8 @@ pub struct HyperVReplicaAzureReplicationDetails { pub protected_managed_disks: Vec, } impl HyperVReplicaAzureReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, azure_vm_disk_details: Vec::new(), recovery_azure_vm_name: None, recovery_azure_vm_size: None, @@ -5535,8 +5245,6 @@ impl HyperVReplicaAzureReplicationDetails { #[doc = "Azure specific reprotect input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Hyper-V host Vm Id."] #[serde(rename = "hvHostVmId", default, skip_serializing_if = "Option::is_none")] pub hv_host_vm_id: Option, @@ -5557,9 +5265,8 @@ pub struct HyperVReplicaAzureReprotectInput { pub log_storage_account_id: Option, } impl HyperVReplicaAzureReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, hv_host_vm_id: None, vm_name: None, os_type: None, @@ -5572,8 +5279,6 @@ impl HyperVReplicaAzureReprotectInput { #[doc = "HvrA provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5585,9 +5290,8 @@ pub struct HyperVReplicaAzureTestFailoverInput { pub recovery_point_id: Option, } impl HyperVReplicaAzureTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5597,8 +5301,6 @@ impl HyperVReplicaAzureTestFailoverInput { #[doc = "HvrA provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5610,9 +5312,8 @@ pub struct HyperVReplicaAzureUnplannedFailoverInput { pub recovery_point_id: Option, } impl HyperVReplicaAzureUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5622,8 +5323,6 @@ impl HyperVReplicaAzureUnplannedFailoverInput { #[doc = "HyperV replica Azure input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The recovery Azure resource group Id for classic deployment."] #[serde(rename = "recoveryAzureV1ResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_v1_resource_group_id: Option, @@ -5664,9 +5363,8 @@ pub struct HyperVReplicaAzureUpdateReplicationProtectedItemInput { pub vm_disks: Vec, } impl HyperVReplicaAzureUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_azure_v1_resource_group_id: None, recovery_azure_v2_resource_group_id: None, use_managed_disks: None, @@ -5730,8 +5428,6 @@ pub mod hyper_v_replica_azure_update_replication_protected_item_input { #[doc = "Abstract model class for event details of a HyperVReplica E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBaseEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -5746,9 +5442,8 @@ pub struct HyperVReplicaBaseEventDetails { pub remote_fabric_name: Option, } impl HyperVReplicaBaseEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -5759,8 +5454,6 @@ impl HyperVReplicaBaseEventDetails { #[doc = "Base class for HyperVReplica policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBasePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -5797,9 +5490,8 @@ pub struct HyperVReplicaBasePolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaBasePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -5816,8 +5508,6 @@ impl HyperVReplicaBasePolicyDetails { #[doc = "Hyper V replica provider specific settings base class."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBaseReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -5851,9 +5541,8 @@ pub struct HyperVReplicaBaseReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaBaseReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -5867,8 +5556,6 @@ impl HyperVReplicaBaseReplicationDetails { #[doc = "Hyper-V Replica Blue specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBluePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the replication interval."] #[serde(rename = "replicationFrequencyInSeconds", default, skip_serializing_if = "Option::is_none")] pub replication_frequency_in_seconds: Option, @@ -5908,9 +5595,8 @@ pub struct HyperVReplicaBluePolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaBluePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, replication_frequency_in_seconds: None, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, @@ -5945,8 +5631,6 @@ impl HyperVReplicaBluePolicyInput { #[doc = "HyperV replica 2012 R2 (Blue) replication details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBlueReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -5980,9 +5664,8 @@ pub struct HyperVReplicaBlueReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaBlueReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -5996,8 +5679,6 @@ impl HyperVReplicaBlueReplicationDetails { #[doc = "Hyper-V Replica Blue specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -6034,9 +5715,8 @@ pub struct HyperVReplicaPolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -6053,8 +5733,6 @@ impl HyperVReplicaPolicyDetails { #[doc = "Hyper-V Replica specific policy Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaPolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -6091,9 +5769,8 @@ pub struct HyperVReplicaPolicyInput { pub replica_deletion: Option, } impl HyperVReplicaPolicyInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -6115,8 +5792,6 @@ pub enum HyperVReplicaPolicyInputUnion { #[doc = "HyperV replica 2012 replication details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -6150,9 +5825,8 @@ pub struct HyperVReplicaReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -6166,8 +5840,6 @@ impl HyperVReplicaReplicationDetails { #[doc = "HyperVSite fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVSiteDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The list of Hyper-V hosts associated with the fabric."] #[serde( rename = "hyperVHosts", @@ -6178,18 +5850,13 @@ pub struct HyperVSiteDetails { pub hyper_v_hosts: Vec, } impl HyperVSiteDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { - Self { - fabric_specific_details, - hyper_v_hosts: Vec::new(), - } + pub fn new() -> Self { + Self { hyper_v_hosts: Vec::new() } } } #[doc = "Single Host fabric provider specific VM settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVVirtualMachineDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, #[doc = "The source id of the object."] #[serde(rename = "sourceItemId", default, skip_serializing_if = "Option::is_none")] pub source_item_id: Option, @@ -6221,9 +5888,8 @@ pub struct HyperVVirtualMachineDetails { pub hyper_v_host_id: Option, } impl HyperVVirtualMachineDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { + pub fn new() -> Self { Self { - configuration_settings, source_item_id: None, generation: None, os_details: None, @@ -6524,15 +6190,10 @@ impl InMageAgentDetails { } #[doc = "ApplyRecoveryPoint input specific to InMageAzureV2 provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct InMageAzureV2ApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct InMageAzureV2ApplyRecoveryPointInput {} impl InMageAzureV2ApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "Disk input details."] @@ -6604,8 +6265,6 @@ pub mod in_mage_azure_v2_disk_input_details { #[doc = "VMware Azure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2EnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The Master target Id."] #[serde(rename = "masterTargetId", default, skip_serializing_if = "Option::is_none")] pub master_target_id: Option, @@ -6691,9 +6350,8 @@ pub struct InMageAzureV2EnableProtectionInput { pub target_nic_tags: Option, } impl InMageAzureV2EnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, master_target_id: None, process_server_id: None, storage_account_id: None, @@ -6853,8 +6511,6 @@ pub mod in_mage_azure_v2_enable_protection_input { #[doc = "Model class for event details of a VMwareAzureV2 event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "InMage Event type. Takes one of the values of InMageDataContract.InMageMonitoringEventType."] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, @@ -6878,9 +6534,8 @@ pub struct InMageAzureV2EventDetails { pub site_name: Option, } impl InMageAzureV2EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, event_type: None, category: None, component: None, @@ -6918,8 +6573,6 @@ impl InMageAzureV2ManagedDiskDetails { #[doc = "InMage Azure v2 specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2PolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The crash consistent snapshot frequency in minutes."] #[serde(rename = "crashConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub crash_consistent_frequency_in_minutes: Option, @@ -6937,9 +6590,8 @@ pub struct InMageAzureV2PolicyDetails { pub multi_vm_sync_status: Option, } impl InMageAzureV2PolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, crash_consistent_frequency_in_minutes: None, recovery_point_threshold_in_minutes: None, recovery_point_history: None, @@ -6951,8 +6603,6 @@ impl InMageAzureV2PolicyDetails { #[doc = "VMWare Azure specific policy Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2PolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -6970,12 +6620,8 @@ pub struct InMageAzureV2PolicyInput { pub multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus, } impl InMageAzureV2PolicyInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_threshold_in_minutes: None, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, @@ -7105,16 +6751,13 @@ impl InMageAzureV2ProtectedDiskDetails { #[doc = "InMage Azure V2 provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2RecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "isMultiVmSyncPoint", default, skip_serializing_if = "Option::is_none")] pub is_multi_vm_sync_point: Option, } impl InMageAzureV2RecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, is_multi_vm_sync_point: None, } } @@ -7122,8 +6765,6 @@ impl InMageAzureV2RecoveryPointDetails { #[doc = "InMageAzureV2 provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2ReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The infrastructure VM Id."] #[serde(rename = "infrastructureVmId", default, skip_serializing_if = "Option::is_none")] pub infrastructure_vm_id: Option, @@ -7361,9 +7002,8 @@ pub struct InMageAzureV2ReplicationDetails { pub switch_provider_details: Option, } impl InMageAzureV2ReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, infrastructure_vm_id: None, v_center_infrastructure_id: None, protection_stage: None, @@ -7437,8 +7077,6 @@ impl InMageAzureV2ReplicationDetails { #[doc = "InMageAzureV2 specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2ReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Master target Id."] #[serde(rename = "masterTargetId", default, skip_serializing_if = "Option::is_none")] pub master_target_id: Option, @@ -7467,9 +7105,8 @@ pub struct InMageAzureV2ReprotectInput { pub disks_to_include: Vec, } impl InMageAzureV2ReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, master_target_id: None, process_server_id: None, storage_account_id: None, @@ -7531,8 +7168,6 @@ impl InMageAzureV2SwitchProviderDetails { #[doc = "Provider specific input for InMageAzureV2 switch provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2SwitchProviderProviderInput { - #[serde(flatten)] - pub switch_provider_provider_specific_input: SwitchProviderProviderSpecificInput, #[doc = "The target vault Id."] #[serde(rename = "targetVaultID")] pub target_vault_id: String, @@ -7544,14 +7179,8 @@ pub struct InMageAzureV2SwitchProviderProviderInput { pub target_appliance_id: String, } impl InMageAzureV2SwitchProviderProviderInput { - pub fn new( - switch_provider_provider_specific_input: SwitchProviderProviderSpecificInput, - target_vault_id: String, - target_fabric_id: String, - target_appliance_id: String, - ) -> Self { + pub fn new(target_vault_id: String, target_fabric_id: String, target_appliance_id: String) -> Self { Self { - switch_provider_provider_specific_input, target_vault_id, target_fabric_id, target_appliance_id, @@ -7561,42 +7190,30 @@ impl InMageAzureV2SwitchProviderProviderInput { #[doc = "InMageAzureV2 provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2TestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, } impl InMageAzureV2TestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { - Self { - test_failover_provider_specific_input, - recovery_point_id: None, - } + pub fn new() -> Self { + Self { recovery_point_id: None } } } #[doc = "InMageAzureV2 provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2UnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, } impl InMageAzureV2UnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { - Self { - unplanned_failover_provider_specific_input, - recovery_point_id: None, - } + pub fn new() -> Self { + Self { recovery_point_id: None } } } #[doc = "InMage Azure V2 input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2UpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The recovery Azure resource group Id for classic deployment."] #[serde(rename = "recoveryAzureV1ResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_v1_resource_group_id: Option, @@ -7634,9 +7251,8 @@ pub struct InMageAzureV2UpdateReplicationProtectedItemInput { pub vm_disks: Vec, } impl InMageAzureV2UpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_azure_v1_resource_group_id: None, recovery_azure_v2_resource_group_id: None, use_managed_disks: None, @@ -7699,8 +7315,6 @@ pub mod in_mage_azure_v2_update_replication_protected_item_input { #[doc = "Base class for the policies of providers using InMage replication."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageBasePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7715,9 +7329,8 @@ pub struct InMageBasePolicyDetails { pub multi_vm_sync_status: Option, } impl InMageBasePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -7728,16 +7341,13 @@ impl InMageBasePolicyDetails { #[doc = "InMage disable protection provider specific input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageDisableProtectionProviderSpecificInput { - #[serde(flatten)] - pub disable_protection_provider_specific_input: DisableProtectionProviderSpecificInput, #[doc = "A value indicating whether the replica VM should be destroyed or retained. Values from Delete and Retain."] #[serde(rename = "replicaVmDeletionStatus", default, skip_serializing_if = "Option::is_none")] pub replica_vm_deletion_status: Option, } impl InMageDisableProtectionProviderSpecificInput { - pub fn new(disable_protection_provider_specific_input: DisableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - disable_protection_provider_specific_input, replica_vm_deletion_status: None, } } @@ -7814,8 +7424,6 @@ impl InMageDiskSignatureExclusionOptions { #[doc = "VMware Azure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The VM Name."] #[serde(rename = "vmFriendlyName", default, skip_serializing_if = "Option::is_none")] pub vm_friendly_name: Option, @@ -7854,7 +7462,6 @@ pub struct InMageEnableProtectionInput { } impl InMageEnableProtectionInput { pub fn new( - enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, master_target_id: String, process_server_id: String, retention_drive: String, @@ -7862,7 +7469,6 @@ impl InMageEnableProtectionInput { multi_vm_group_name: String, ) -> Self { Self { - enable_protection_provider_specific_input, vm_friendly_name: None, master_target_id, process_server_id, @@ -7906,8 +7512,6 @@ impl InMageFabricSwitchProviderBlockingErrorDetails { #[doc = "InMage specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMagePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7922,9 +7526,8 @@ pub struct InMagePolicyDetails { pub multi_vm_sync_status: Option, } impl InMagePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -7935,8 +7538,6 @@ impl InMagePolicyDetails { #[doc = "VMWare Azure specific protection profile Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMagePolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7951,12 +7552,8 @@ pub struct InMagePolicyInput { pub multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus, } impl InMagePolicyInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -8156,8 +7753,6 @@ impl InMageRcmApplianceDetails { #[doc = "InMageRcm appliance specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmApplianceSpecificDetails { - #[serde(flatten)] - pub appliance_specific_details: ApplianceSpecificDetails, #[doc = "The list of appliances."] #[serde( default, @@ -8167,28 +7762,20 @@ pub struct InMageRcmApplianceSpecificDetails { pub appliances: Vec, } impl InMageRcmApplianceSpecificDetails { - pub fn new(appliance_specific_details: ApplianceSpecificDetails) -> Self { - Self { - appliance_specific_details, - appliances: Vec::new(), - } + pub fn new() -> Self { + Self { appliances: Vec::new() } } } #[doc = "ApplyRecoveryPoint input specific to InMageRcm provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, #[doc = "The recovery point Id."] #[serde(rename = "recoveryPointId")] pub recovery_point_id: String, } impl InMageRcmApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, recovery_point_id: String) -> Self { - Self { - apply_recovery_point_provider_specific_input, - recovery_point_id, - } + pub fn new(recovery_point_id: String) -> Self { + Self { recovery_point_id } } } #[doc = "InMageRcm discovered protected VM details."] @@ -8386,8 +7973,6 @@ pub mod in_mage_rcm_disks_default_input { #[doc = "InMageRcm specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The ARM Id of discovered machine."] #[serde(rename = "fabricDiscoveryMachineId")] pub fabric_discovery_machine_id: String, @@ -8449,14 +8034,8 @@ pub struct InMageRcmEnableProtectionInput { pub multi_vm_group_name: Option, } impl InMageRcmEnableProtectionInput { - pub fn new( - enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, - fabric_discovery_machine_id: String, - target_resource_group_id: String, - process_server_id: String, - ) -> Self { + pub fn new(fabric_discovery_machine_id: String, target_resource_group_id: String, process_server_id: String) -> Self { Self { - enable_protection_provider_specific_input, fabric_discovery_machine_id, disks_to_include: Vec::new(), disks_default: None, @@ -8523,8 +8102,6 @@ pub mod in_mage_rcm_enable_protection_input { #[doc = "Event details for InMageRcm provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -8551,9 +8128,8 @@ pub struct InMageRcmEventDetails { pub component_display_name: Option, } impl InMageRcmEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, vm_name: None, latest_agent_version: None, @@ -8568,8 +8144,6 @@ impl InMageRcmEventDetails { #[doc = "InMageRcm fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId")] pub vmware_site_id: String, @@ -8581,14 +8155,8 @@ pub struct InMageRcmFabricCreationInput { pub source_agent_identity: IdentityProviderInput, } impl InMageRcmFabricCreationInput { - pub fn new( - fabric_specific_creation_input: FabricSpecificCreationInput, - vmware_site_id: String, - physical_site_id: String, - source_agent_identity: IdentityProviderInput, - ) -> Self { + pub fn new(vmware_site_id: String, physical_site_id: String, source_agent_identity: IdentityProviderInput) -> Self { Self { - fabric_specific_creation_input, vmware_site_id, physical_site_id, source_agent_identity, @@ -8598,8 +8166,6 @@ impl InMageRcmFabricCreationInput { #[doc = "InMageRcm fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -8689,9 +8255,8 @@ pub struct InMageRcmFabricSpecificDetails { pub agent_details: Vec, } impl InMageRcmFabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, vmware_site_id: None, physical_site_id: None, service_endpoint: None, @@ -8795,8 +8360,6 @@ impl InMageRcmFailbackDiscoveredProtectedVmDetails { #[doc = "Event details for InMageRcmFailback provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -8814,9 +8377,8 @@ pub struct InMageRcmFailbackEventDetails { pub component_display_name: Option, } impl InMageRcmFailbackEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, vm_name: None, appliance_name: None, @@ -8890,21 +8452,13 @@ impl InMageRcmFailbackNicDetails { #[doc = "Provider specific input for InMageRcmFailback failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPlannedFailoverProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType, } impl InMageRcmFailbackPlannedFailoverProviderInput { - pub fn new( - planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, - recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType, - ) -> Self { - Self { - planned_failover_provider_specific_failover_input, - recovery_point_type, - } + pub fn new(recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType) -> Self { + Self { recovery_point_type } } } pub mod in_mage_rcm_failback_planned_failover_provider_input { @@ -8950,8 +8504,6 @@ pub mod in_mage_rcm_failback_planned_failover_provider_input { #[doc = "InMageRcmFailback policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The crash consistent snapshot frequency (in minutes)."] #[serde(rename = "crashConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub crash_consistent_frequency_in_minutes: Option, @@ -8960,9 +8512,8 @@ pub struct InMageRcmFailbackPolicyCreationInput { pub app_consistent_frequency_in_minutes: Option, } impl InMageRcmFailbackPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, } @@ -8971,8 +8522,6 @@ impl InMageRcmFailbackPolicyCreationInput { #[doc = "InMageRcm failback specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The app consistent snapshot frequency in minutes."] #[serde(rename = "appConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub app_consistent_frequency_in_minutes: Option, @@ -8981,9 +8530,8 @@ pub struct InMageRcmFailbackPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl InMageRcmFailbackPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, } @@ -9034,8 +8582,6 @@ impl InMageRcmFailbackProtectedDiskDetails { #[doc = "InMageRcmFailback provider specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The virtual machine internal identifier."] #[serde(rename = "internalIdentifier", default, skip_serializing_if = "Option::is_none")] pub internal_identifier: Option, @@ -9139,9 +8685,8 @@ pub struct InMageRcmFailbackReplicationDetails { pub is_agent_registration_successful_after_failover: Option, } impl InMageRcmFailbackReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, internal_identifier: None, azure_virtual_machine_id: None, multi_vm_group_name: None, @@ -9344,8 +8889,6 @@ pub mod in_mage_rcm_failback_replication_details { #[doc = "InMageRcmFailback specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The process server Id."] #[serde(rename = "processServerId")] pub process_server_id: String, @@ -9357,13 +8900,8 @@ pub struct InMageRcmFailbackReprotectInput { pub policy_id: String, } impl InMageRcmFailbackReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - process_server_id: String, - policy_id: String, - ) -> Self { + pub fn new(process_server_id: String, policy_id: String) -> Self { Self { - reverse_replication_provider_specific_input, process_server_id, run_as_account_id: None, policy_id, @@ -9723,8 +9261,6 @@ impl InMageRcmNicInput { #[doc = "InMageRcm policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -9739,9 +9275,8 @@ pub struct InMageRcmPolicyCreationInput { pub enable_multi_vm_sync: Option, } impl InMageRcmPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_in_minutes: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -9752,8 +9287,6 @@ impl InMageRcmPolicyCreationInput { #[doc = "InMageRcm specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -9768,9 +9301,8 @@ pub struct InMageRcmPolicyDetails { pub enable_multi_vm_sync: Option, } impl InMageRcmPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_in_minutes: None, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, @@ -9880,16 +9412,13 @@ pub mod in_mage_rcm_protected_disk_details { #[doc = "InMageRcm provider specific container mapping details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "A value indicating whether the flag for enable agent auto upgrade."] #[serde(rename = "enableAgentAutoUpgrade", default, skip_serializing_if = "Option::is_none")] pub enable_agent_auto_upgrade: Option, } impl InMageRcmProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, enable_agent_auto_upgrade: None, } } @@ -9897,16 +9426,13 @@ impl InMageRcmProtectionContainerMappingDetails { #[doc = "InMageRcm provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmRecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "isMultiVmSyncPoint", default, skip_serializing_if = "Option::is_none")] pub is_multi_vm_sync_point: Option, } impl InMageRcmRecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, is_multi_vm_sync_point: None, } } @@ -9914,8 +9440,6 @@ impl InMageRcmRecoveryPointDetails { #[doc = "InMageRcm provider specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The virtual machine internal identifier."] #[serde(rename = "internalIdentifier", default, skip_serializing_if = "Option::is_none")] pub internal_identifier: Option, @@ -10098,9 +9622,8 @@ pub struct InMageRcmReplicationDetails { pub discovered_vm_details: Option, } impl InMageRcmReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, internal_identifier: None, fabric_discovery_machine_id: None, multi_vm_group_name: None, @@ -10326,8 +9849,6 @@ pub mod in_mage_rcm_replication_details { #[doc = "InMageRcm specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The reprotect agent Id."] #[serde(rename = "reprotectAgentId")] pub reprotect_agent_id: String, @@ -10342,14 +9863,8 @@ pub struct InMageRcmReprotectInput { pub policy_id: Option, } impl InMageRcmReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - reprotect_agent_id: String, - datastore_name: String, - log_storage_account_id: String, - ) -> Self { + pub fn new(reprotect_agent_id: String, datastore_name: String, log_storage_account_id: String) -> Self { Self { - reverse_replication_provider_specific_input, reprotect_agent_id, datastore_name, log_storage_account_id, @@ -10439,8 +9954,6 @@ pub mod in_mage_rcm_sync_details { #[doc = "InMageRcm provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The test network Id."] #[serde(rename = "networkId", default, skip_serializing_if = "Option::is_none")] pub network_id: Option, @@ -10449,9 +9962,8 @@ pub struct InMageRcmTestFailoverInput { pub recovery_point_id: Option, } impl InMageRcmTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, network_id: None, recovery_point_id: None, } @@ -10460,8 +9972,6 @@ impl InMageRcmTestFailoverInput { #[doc = "InMageRcm provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "A value indicating whether VM is to be shutdown."] #[serde(rename = "performShutdown")] pub perform_shutdown: String, @@ -10470,9 +9980,8 @@ pub struct InMageRcmUnplannedFailoverInput { pub recovery_point_id: Option, } impl InMageRcmUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, perform_shutdown: String) -> Self { + pub fn new(perform_shutdown: String) -> Self { Self { - unplanned_failover_provider_specific_input, perform_shutdown, recovery_point_id: None, } @@ -10481,48 +9990,30 @@ impl InMageRcmUnplannedFailoverInput { #[doc = "InMageRcm provider specific input to update appliance for replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateApplianceForReplicationProtectedItemInput { - #[serde(flatten)] - pub update_appliance_for_replication_protected_item_provider_specific_input: - UpdateApplianceForReplicationProtectedItemProviderSpecificInput, #[doc = "The run as account Id."] #[serde(rename = "runAsAccountId", default, skip_serializing_if = "Option::is_none")] pub run_as_account_id: Option, } impl InMageRcmUpdateApplianceForReplicationProtectedItemInput { - pub fn new( - update_appliance_for_replication_protected_item_provider_specific_input : UpdateApplianceForReplicationProtectedItemProviderSpecificInput, - ) -> Self { - Self { - update_appliance_for_replication_protected_item_provider_specific_input, - run_as_account_id: None, - } + pub fn new() -> Self { + Self { run_as_account_id: None } } } #[doc = "InMageRcm update protection container mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, #[doc = "A value indicating whether agent auto upgrade has to be enabled."] #[serde(rename = "enableAgentAutoUpgrade")] pub enable_agent_auto_upgrade: String, } impl InMageRcmUpdateContainerMappingInput { - pub fn new( - replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, - enable_agent_auto_upgrade: String, - ) -> Self { - Self { - replication_provider_specific_update_container_mapping_input, - enable_agent_auto_upgrade, - } + pub fn new(enable_agent_auto_upgrade: String) -> Self { + Self { enable_agent_auto_upgrade } } } #[doc = "InMageRcm provider specific input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The target VM name."] #[serde(rename = "targetVmName", default, skip_serializing_if = "Option::is_none")] pub target_vm_name: Option, @@ -10563,9 +10054,8 @@ pub struct InMageRcmUpdateReplicationProtectedItemInput { pub license_type: Option, } impl InMageRcmUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, target_vm_name: None, target_vm_size: None, target_resource_group_id: None, @@ -10625,8 +10115,6 @@ pub mod in_mage_rcm_update_replication_protected_item_input { #[doc = "InMage provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The active location of the VM. If the VM is being protected from Azure, this field will take values from { Azure, OnPrem }. If the VM is being protected between two data-centers, this field will be OnPrem always."] #[serde(rename = "activeSiteType", default, skip_serializing_if = "Option::is_none")] pub active_site_type: Option, @@ -10768,9 +10256,8 @@ pub struct InMageReplicationDetails { pub total_progress_health: Option, } impl InMageReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, active_site_type: None, source_vm_cpu_count: None, source_vm_ram_size_in_mb: None, @@ -10817,8 +10304,6 @@ impl InMageReplicationDetails { #[doc = "InMageAzureV2 specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Master Target Id."] #[serde(rename = "masterTargetId")] pub master_target_id: String, @@ -10850,15 +10335,8 @@ pub struct InMageReprotectInput { pub disks_to_include: Vec, } impl InMageReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - master_target_id: String, - process_server_id: String, - retention_drive: String, - profile_id: String, - ) -> Self { + pub fn new(master_target_id: String, process_server_id: String, retention_drive: String, profile_id: String) -> Self { Self { - reverse_replication_provider_specific_input, master_target_id, process_server_id, retention_drive, @@ -10873,8 +10351,6 @@ impl InMageReprotectInput { #[doc = "Provider specific input for InMage test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -10883,9 +10359,8 @@ pub struct InMageTestFailoverInput { pub recovery_point_id: Option, } impl InMageTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, recovery_point_type: None, recovery_point_id: None, } @@ -10936,8 +10411,6 @@ pub mod in_mage_test_failover_input { #[doc = "Provider specific input for InMage unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -10946,9 +10419,8 @@ pub struct InMageUnplannedFailoverInput { pub recovery_point_id: Option, } impl InMageUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, recovery_point_type: None, recovery_point_id: None, } @@ -11441,8 +10913,6 @@ pub mod job_query_parameter { #[doc = "Model class for event details of a job status event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobStatusEventDetails { - #[serde(flatten)] - pub event_specific_details: EventSpecificDetails, #[doc = "Job arm id for the event."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -11457,9 +10927,8 @@ pub struct JobStatusEventDetails { pub affected_object_type: Option, } impl JobStatusEventDetails { - pub fn new(event_specific_details: EventSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_specific_details, job_id: None, job_friendly_name: None, job_status: None, @@ -11470,18 +10939,13 @@ impl JobStatusEventDetails { #[doc = "This class represents a task which is actually a workflow so that one can navigate to its individual drill down."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "This class contains the minimal job details required to navigate to the desired drill down."] #[serde(rename = "jobTask", default, skip_serializing_if = "Option::is_none")] pub job_task: Option, } impl JobTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { - Self { - task_type_details, - job_task: None, - } + pub fn new() -> Self { + Self { job_task: None } } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -11568,8 +11032,6 @@ impl LogicalNetworkProperties { #[doc = "This class represents the manual action task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManualActionTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -11581,9 +11043,8 @@ pub struct ManualActionTaskDetails { pub observation: Option, } impl ManualActionTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, instructions: None, observation: None, @@ -11781,14 +11242,6 @@ impl MigrateInputProperties { Self { provider_specific_details } } } -#[doc = "Migrate provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MigrateProviderSpecificInput {} -impl MigrateProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12104,14 +11557,6 @@ impl MigrationItemsQueryParameter { Self::default() } } -#[doc = "Migration provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MigrationProviderSpecificSettings {} -impl MigrationProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12310,14 +11755,6 @@ impl NetworkMappingCollection { Self::default() } } -#[doc = "Network Mapping fabric specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct NetworkMappingFabricSpecificSettings {} -impl NetworkMappingFabricSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12390,8 +11827,6 @@ impl NetworkProperties { #[doc = "New Protection profile input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NewProtectionProfile { - #[serde(flatten)] - pub protection_profile_custom_details: ProtectionProfileCustomDetails, #[doc = "The protection profile input."] #[serde(rename = "policyName")] pub policy_name: String, @@ -12409,13 +11844,8 @@ pub struct NewProtectionProfile { pub multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus, } impl NewProtectionProfile { - pub fn new( - protection_profile_custom_details: ProtectionProfileCustomDetails, - policy_name: String, - multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus, - ) -> Self { + pub fn new(policy_name: String, multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus) -> Self { Self { - protection_profile_custom_details, policy_name, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, @@ -12467,8 +11897,6 @@ pub mod new_protection_profile { #[doc = "Recovery virtual network input to create new virtual network from given source network."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NewRecoveryVirtualNetwork { - #[serde(flatten)] - pub recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, #[doc = "The name of the resource group to be used to create the recovery virtual network. If absent, target network would be created in the same resource group as target VM."] #[serde( rename = "recoveryVirtualNetworkResourceGroupName", @@ -12481,9 +11909,8 @@ pub struct NewRecoveryVirtualNetwork { pub recovery_virtual_network_name: Option, } impl NewRecoveryVirtualNetwork { - pub fn new(recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_virtual_network_custom_details, recovery_virtual_network_resource_group_name: None, recovery_virtual_network_name: None, } @@ -12653,14 +12080,6 @@ impl PlannedFailoverInputProperties { Self::default() } } -#[doc = "Provider specific failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PlannedFailoverProviderSpecificFailoverInput {} -impl PlannedFailoverProviderSpecificFailoverInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12723,14 +12142,6 @@ impl PolicyProperties { Self::default() } } -#[doc = "Base class for Provider specific details for policies."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PolicyProviderSpecificDetails {} -impl PolicyProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12748,14 +12159,6 @@ pub enum PolicyProviderSpecificDetailsUnion { InMageRcm(InMageRcmPolicyDetails), VMwareCbt(VmwareCbtPolicyDetails), } -#[doc = "Base class for provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PolicyProviderSpecificInput {} -impl PolicyProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13640,14 +13043,6 @@ impl ProtectionContainerMappingProperties { Self::default() } } -#[doc = "Container mapping provider specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProtectionContainerMappingProviderSpecificDetails {} -impl ProtectionContainerMappingProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13687,14 +13082,6 @@ impl ProtectionContainerProperties { Self::default() } } -#[doc = "Protection Profile custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProtectionProfileCustomDetails {} -impl ProtectionProfileCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -13726,14 +13113,6 @@ impl ProviderError { Self::default() } } -#[doc = "Replication provider specific recovery point details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProviderSpecificRecoveryPointDetails {} -impl ProviderSpecificRecoveryPointDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the provider type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13916,14 +13295,6 @@ pub mod rcm_proxy_details { } } } -#[doc = "Recovery Availability Set custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryAvailabilitySetCustomDetails {} -impl RecoveryAvailabilitySetCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -13947,8 +13318,6 @@ impl RecoveryPlan { #[doc = "Recovery plan A2A specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aDetails { - #[serde(flatten)] - pub recovery_plan_provider_specific_details: RecoveryPlanProviderSpecificDetails, #[doc = "The primary zone."] #[serde(rename = "primaryZone", default, skip_serializing_if = "Option::is_none")] pub primary_zone: Option, @@ -13963,9 +13332,8 @@ pub struct RecoveryPlanA2aDetails { pub recovery_extended_location: Option, } impl RecoveryPlanA2aDetails { - pub fn new(recovery_plan_provider_specific_details: RecoveryPlanProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_details, primary_zone: None, recovery_zone: None, primary_extended_location: None, @@ -13976,8 +13344,6 @@ impl RecoveryPlanA2aDetails { #[doc = "Recovery plan A2A failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType, @@ -13989,12 +13355,8 @@ pub struct RecoveryPlanA2aFailoverInput { pub multi_vm_sync_point_option: Option, } impl RecoveryPlanA2aFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, cloud_service_creation_option: None, multi_vm_sync_point_option: None, @@ -14089,8 +13451,6 @@ pub mod recovery_plan_a2a_failover_input { #[doc = "Recovery plan A2A input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_input: RecoveryPlanProviderSpecificInput, #[doc = "The primary zone."] #[serde(rename = "primaryZone", default, skip_serializing_if = "Option::is_none")] pub primary_zone: Option, @@ -14105,9 +13465,8 @@ pub struct RecoveryPlanA2aInput { pub recovery_extended_location: Option, } impl RecoveryPlanA2aInput { - pub fn new(recovery_plan_provider_specific_input: RecoveryPlanProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_input, primary_zone: None, recovery_zone: None, primary_extended_location: None, @@ -14146,14 +13505,6 @@ impl RecoveryPlanAction { } } } -#[doc = "Recovery plan action custom details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanActionDetails {} -impl RecoveryPlanActionDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values)."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14165,8 +13516,6 @@ pub enum RecoveryPlanActionDetailsUnion { #[doc = "Recovery plan Automation runbook action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanAutomationRunbookActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The runbook ARM Id."] #[serde(rename = "runbookId", default, skip_serializing_if = "Option::is_none")] pub runbook_id: Option, @@ -14178,12 +13527,8 @@ pub struct RecoveryPlanAutomationRunbookActionDetails { pub fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation, } impl RecoveryPlanAutomationRunbookActionDetails { - pub fn new( - recovery_plan_action_details: RecoveryPlanActionDetails, - fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation, - ) -> Self { + pub fn new(fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation) -> Self { Self { - recovery_plan_action_details, runbook_id: None, timeout: None, fabric_location, @@ -14371,8 +13716,6 @@ pub enum RecoveryPlanGroupTaskDetailsUnion { #[doc = "Recovery plan HVR Azure failback input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanHyperVReplicaAzureFailbackInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The data sync option."] #[serde(rename = "dataSyncOption")] pub data_sync_option: recovery_plan_hyper_v_replica_azure_failback_input::DataSyncOption, @@ -14382,12 +13725,10 @@ pub struct RecoveryPlanHyperVReplicaAzureFailbackInput { } impl RecoveryPlanHyperVReplicaAzureFailbackInput { pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, data_sync_option: recovery_plan_hyper_v_replica_azure_failback_input::DataSyncOption, recovery_vm_creation_option: recovery_plan_hyper_v_replica_azure_failback_input::RecoveryVmCreationOption, ) -> Self { Self { - recovery_plan_provider_specific_failover_input, data_sync_option, recovery_vm_creation_option, } @@ -14473,8 +13814,6 @@ pub mod recovery_plan_hyper_v_replica_azure_failback_input { #[doc = "Recovery plan HVR Azure failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanHyperVReplicaAzureFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The primary KEK certificate PFX."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -14486,9 +13825,8 @@ pub struct RecoveryPlanHyperVReplicaAzureFailoverInput { pub recovery_point_type: Option, } impl RecoveryPlanHyperVReplicaAzureFailoverInput { - pub fn new(recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_failover_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_type: None, @@ -14542,8 +13880,6 @@ pub mod recovery_plan_hyper_v_replica_azure_failover_input { #[doc = "Recovery plan InMageAzureV2 failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageAzureV2FailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType, @@ -14552,12 +13888,8 @@ pub struct RecoveryPlanInMageAzureV2FailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageAzureV2FailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14612,21 +13944,13 @@ pub mod recovery_plan_in_mage_azure_v2_failover_input { #[doc = "Recovery plan InMage failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType, } impl RecoveryPlanInMageFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType, - ) -> Self { - Self { - recovery_plan_provider_specific_failover_input, - recovery_point_type, - } + pub fn new(recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType) -> Self { + Self { recovery_point_type } } } pub mod recovery_plan_in_mage_failover_input { @@ -14674,8 +13998,6 @@ pub mod recovery_plan_in_mage_failover_input { #[doc = "Recovery plan InMageRcmFailback failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageRcmFailbackFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType, @@ -14684,12 +14006,8 @@ pub struct RecoveryPlanInMageRcmFailbackFailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageRcmFailbackFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14738,8 +14056,6 @@ pub mod recovery_plan_in_mage_rcm_failback_failover_input { #[doc = "Recovery plan InMageRcm failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageRcmFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType, @@ -14748,12 +14064,8 @@ pub struct RecoveryPlanInMageRcmFailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageRcmFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14808,18 +14120,13 @@ pub mod recovery_plan_in_mage_rcm_failover_input { #[doc = "Recovery plan manual action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanManualActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The manual action description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, } impl RecoveryPlanManualActionDetails { - pub fn new(recovery_plan_action_details: RecoveryPlanActionDetails) -> Self { - Self { - recovery_plan_action_details, - description: None, - } + pub fn new() -> Self { + Self { description: None } } } #[doc = "Recovery plan planned failover input."] @@ -14987,14 +14294,6 @@ impl RecoveryPlanProtectedItem { Self::default() } } -#[doc = "Recovery plan provider specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificDetails {} -impl RecoveryPlanProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15002,14 +14301,6 @@ pub enum RecoveryPlanProviderSpecificDetailsUnion { #[serde(rename = "A2A")] A2a(RecoveryPlanA2aDetails), } -#[doc = "Recovery plan provider specific failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificFailoverInput {} -impl RecoveryPlanProviderSpecificFailoverInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15023,14 +14314,6 @@ pub enum RecoveryPlanProviderSpecificFailoverInputUnion { InMageRcmFailback(RecoveryPlanInMageRcmFailbackFailoverInput), InMageRcm(RecoveryPlanInMageRcmFailoverInput), } -#[doc = "Recovery plan provider specific input base class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificInput {} -impl RecoveryPlanProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15041,8 +14324,6 @@ pub enum RecoveryPlanProviderSpecificInputUnion { #[doc = "Recovery plan script action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanScriptActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The script path."] pub path: String, #[doc = "The script timeout."] @@ -15053,13 +14334,8 @@ pub struct RecoveryPlanScriptActionDetails { pub fabric_location: recovery_plan_script_action_details::FabricLocation, } impl RecoveryPlanScriptActionDetails { - pub fn new( - recovery_plan_action_details: RecoveryPlanActionDetails, - path: String, - fabric_location: recovery_plan_script_action_details::FabricLocation, - ) -> Self { + pub fn new(path: String, fabric_location: recovery_plan_script_action_details::FabricLocation) -> Self { Self { - recovery_plan_action_details, path, timeout: None, fabric_location, @@ -15399,28 +14675,12 @@ impl RecoveryPointProperties { Self::default() } } -#[doc = "Recovery Proximity placement group custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryProximityPlacementGroupCustomDetails {} -impl RecoveryProximityPlacementGroupCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] pub enum RecoveryProximityPlacementGroupCustomDetailsUnion { Existing(ExistingRecoveryProximityPlacementGroup), } -#[doc = "Recovery Resource Group custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryResourceGroupCustomDetails {} -impl RecoveryResourceGroupCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -15549,14 +14809,6 @@ impl RecoveryServicesProviderProperties { Self::default() } } -#[doc = "Recovery Virtual network custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryVirtualNetworkCustomDetails {} -impl RecoveryVirtualNetworkCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -15588,14 +14840,6 @@ impl RemoveDisksInputProperties { Self::default() } } -#[doc = "Remove Disk provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RemoveDisksProviderSpecificInput {} -impl RemoveDisksProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15842,13 +15086,10 @@ impl ReplicationEligibilityResultsProperties { } #[doc = "Replication group details. This will be used in case of San."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationGroupDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, -} +pub struct ReplicationGroupDetails {} impl ReplicationGroupDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { - Self { configuration_settings } + pub fn new() -> Self { + Self {} } } #[doc = "Replication protected item."] @@ -16073,14 +15314,6 @@ impl ReplicationProtectionIntentProperties { Self::default() } } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProtectionIntentProviderSpecificSettings {} -impl ReplicationProtectionIntentProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16100,14 +15333,6 @@ impl ReplicationProviderContainerUnmappingInput { Self::default() } } -#[doc = "Provider specific input for container creation operation."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificContainerCreationInput {} -impl ReplicationProviderSpecificContainerCreationInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16118,14 +15343,6 @@ pub enum ReplicationProviderSpecificContainerCreationInputUnion { A2aCrossClusterMigration(A2aCrossClusterMigrationContainerCreationInput), VMwareCbt(VMwareCbtContainerCreationInput), } -#[doc = "Provider specific input for pairing operations."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificContainerMappingInput {} -impl ReplicationProviderSpecificContainerMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16134,14 +15351,6 @@ pub enum ReplicationProviderSpecificContainerMappingInputUnion { A2a(A2aContainerMappingInput), VMwareCbt(VMwareCbtContainerMappingInput), } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificSettings {} -impl ReplicationProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16159,14 +15368,6 @@ pub enum ReplicationProviderSpecificSettingsUnion { InMageRcm(InMageRcmReplicationDetails), InMage(InMageReplicationDetails), } -#[doc = "Provider specific input for update pairing operations."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificUpdateContainerMappingInput {} -impl ReplicationProviderSpecificUpdateContainerMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16408,14 +15609,6 @@ impl ResumeReplicationInputProperties { Self { provider_specific_details } } } -#[doc = "Resume replication provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResumeReplicationProviderSpecificInput {} -impl ResumeReplicationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16445,14 +15638,6 @@ impl ResyncInputProperties { Self { provider_specific_details } } } -#[doc = "Resync provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResyncProviderSpecificInput {} -impl ResyncProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16507,14 +15692,6 @@ impl ReverseReplicationInputProperties { Self::default() } } -#[doc = "Provider specific reverse replication input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReverseReplicationProviderSpecificInput {} -impl ReverseReplicationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16569,8 +15746,6 @@ impl RunAsAccount { #[doc = "This class represents the script action task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScriptActionTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -16585,9 +15760,8 @@ pub struct ScriptActionTaskDetails { pub is_primary_side_script: Option, } impl ScriptActionTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, path: None, output: None, @@ -16619,14 +15793,6 @@ impl ServiceError { Self::default() } } -#[doc = "Storage account custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StorageAccountCustomDetails {} -impl StorageAccountCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -16900,14 +16066,6 @@ impl SwitchProtectionJobDetails { } } } -#[doc = "Provider specific switch protection input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SwitchProtectionProviderSpecificInput {} -impl SwitchProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16942,14 +16100,6 @@ impl SwitchProviderInputProperties { Self::default() } } -#[doc = "Provider specific switch provider input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SwitchProviderProviderSpecificInput {} -impl SwitchProviderProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17050,14 +16200,6 @@ impl TargetComputeSizeProperties { Self::default() } } -#[doc = "Task details based on specific task type."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TaskTypeDetails {} -impl TaskTypeDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of task details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17166,14 +16308,6 @@ impl TestFailoverJobDetails { } } } -#[doc = "Provider specific test failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TestFailoverProviderSpecificInput {} -impl TestFailoverProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17231,14 +16365,6 @@ impl TestMigrateInputProperties { Self { provider_specific_details } } } -#[doc = "Test migrate provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TestMigrateProviderSpecificInput {} -impl TestMigrateProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17274,14 +16400,6 @@ impl UnplannedFailoverInputProperties { Self::default() } } -#[doc = "Provider specific unplanned failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UnplannedFailoverProviderSpecificInput {} -impl UnplannedFailoverProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17325,14 +16443,6 @@ impl UpdateApplianceForReplicationProtectedItemInputProperties { } } } -#[doc = "Update replication protected item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateApplianceForReplicationProtectedItemProviderSpecificInput {} -impl UpdateApplianceForReplicationProtectedItemProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17381,14 +16491,6 @@ impl UpdateMigrationItemInputProperties { Self { provider_specific_details } } } -#[doc = "Update migration item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateMigrationItemProviderSpecificInput {} -impl UpdateMigrationItemProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17623,14 +16725,6 @@ pub mod update_replication_protected_item_input_properties { } } } -#[doc = "Update replication protected item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateReplicationProtectedItemProviderInput {} -impl UpdateReplicationProtectedItemProviderInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17892,22 +16986,15 @@ impl VmNicInputDetails { } #[doc = "VMwareCbt container creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VMwareCbtContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct VMwareCbtContainerCreationInput {} impl VMwareCbtContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "VMwareCbt container mapping input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, #[doc = "The target key vault ARM Id."] #[serde(rename = "keyVaultId", default, skip_serializing_if = "Option::is_none")] pub key_vault_id: Option, @@ -17928,13 +17015,8 @@ pub struct VMwareCbtContainerMappingInput { pub target_location: String, } impl VMwareCbtContainerMappingInput { - pub fn new( - replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, - storage_account_id: String, - target_location: String, - ) -> Self { + pub fn new(storage_account_id: String, target_location: String) -> Self { Self { - replication_provider_specific_container_mapping_input, key_vault_id: None, key_vault_uri: None, storage_account_id, @@ -18026,8 +17108,6 @@ pub mod v_mware_cbt_disk_input { #[doc = "VMwareCbt specific enable migration input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtEnableMigrationInput { - #[serde(flatten)] - pub enable_migration_provider_specific_input: EnableMigrationProviderSpecificInput, #[doc = "The ARM Id of the VM discovered in VMware."] #[serde(rename = "vmwareMachineId")] pub vmware_machine_id: String, @@ -18106,7 +17186,6 @@ pub struct VMwareCbtEnableMigrationInput { } impl VMwareCbtEnableMigrationInput { pub fn new( - enable_migration_provider_specific_input: EnableMigrationProviderSpecificInput, vmware_machine_id: String, disks_to_include: Vec, data_mover_run_as_account_id: String, @@ -18115,7 +17194,6 @@ impl VMwareCbtEnableMigrationInput { target_network_id: String, ) -> Self { Self { - enable_migration_provider_specific_input, vmware_machine_id, disks_to_include, license_type: None, @@ -18232,25 +17310,18 @@ pub mod v_mware_cbt_enable_migration_input { #[doc = "Event details for VMwareCbt provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The migration item name."] #[serde(rename = "migrationItemName", default, skip_serializing_if = "Option::is_none")] pub migration_item_name: Option, } impl VMwareCbtEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { - Self { - event_provider_specific_details, - migration_item_name: None, - } + pub fn new() -> Self { + Self { migration_item_name: None } } } #[doc = "VMwareCbt specific migrate input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtMigrateInput { - #[serde(flatten)] - pub migrate_provider_specific_input: MigrateProviderSpecificInput, #[doc = "A value indicating whether VM is to be shutdown."] #[serde(rename = "performShutdown")] pub perform_shutdown: String, @@ -18259,9 +17330,8 @@ pub struct VMwareCbtMigrateInput { pub os_upgrade_version: Option, } impl VMwareCbtMigrateInput { - pub fn new(migrate_provider_specific_input: MigrateProviderSpecificInput, perform_shutdown: String) -> Self { + pub fn new(perform_shutdown: String) -> Self { Self { - migrate_provider_specific_input, perform_shutdown, os_upgrade_version: None, } @@ -18270,8 +17340,6 @@ impl VMwareCbtMigrateInput { #[doc = "VMwareCbt provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtMigrationDetails { - #[serde(flatten)] - pub migration_provider_specific_settings: MigrationProviderSpecificSettings, #[doc = "The ARM Id of the VM discovered in VMware."] #[serde(rename = "vmwareMachineId", default, skip_serializing_if = "Option::is_none")] pub vmware_machine_id: Option, @@ -18415,9 +17483,8 @@ pub struct VMwareCbtMigrationDetails { pub supported_os_versions: Vec, } impl VMwareCbtMigrationDetails { - pub fn new(migration_provider_specific_settings: MigrationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - migration_provider_specific_settings, vmware_machine_id: None, os_type: None, os_name: None, @@ -18717,8 +17784,6 @@ impl VMwareCbtNicInput { #[doc = "VMware Cbt policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -18730,9 +17795,8 @@ pub struct VMwareCbtPolicyCreationInput { pub app_consistent_frequency_in_minutes: Option, } impl VMwareCbtPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_in_minutes: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -18838,8 +17902,6 @@ pub mod v_mware_cbt_protected_disk_details { #[doc = "VMwareCbt provider specific container mapping details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "The target key vault ARM Id."] #[serde(rename = "keyVaultId", default, skip_serializing_if = "Option::is_none")] pub key_vault_id: Option, @@ -18871,9 +17933,8 @@ pub struct VMwareCbtProtectionContainerMappingDetails { pub excluded_skus: Vec, } impl VMwareCbtProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, key_vault_id: None, key_vault_uri: None, storage_account_id: None, @@ -18888,16 +17949,13 @@ impl VMwareCbtProtectionContainerMappingDetails { #[doc = "VMwareCbt specific resume replication input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtResumeReplicationInput { - #[serde(flatten)] - pub resume_replication_provider_specific_input: ResumeReplicationProviderSpecificInput, #[doc = "A value indicating whether Migration resources to be deleted."] #[serde(rename = "deleteMigrationResources", default, skip_serializing_if = "Option::is_none")] pub delete_migration_resources: Option, } impl VMwareCbtResumeReplicationInput { - pub fn new(resume_replication_provider_specific_input: ResumeReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - resume_replication_provider_specific_input, delete_migration_resources: None, } } @@ -18905,18 +17963,13 @@ impl VMwareCbtResumeReplicationInput { #[doc = "VMwareCbt specific resync input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtResyncInput { - #[serde(flatten)] - pub resync_provider_specific_input: ResyncProviderSpecificInput, #[doc = "A value indicating whether CBT is to be reset."] #[serde(rename = "skipCbtReset")] pub skip_cbt_reset: String, } impl VMwareCbtResyncInput { - pub fn new(resync_provider_specific_input: ResyncProviderSpecificInput, skip_cbt_reset: String) -> Self { - Self { - resync_provider_specific_input, - skip_cbt_reset, - } + pub fn new(skip_cbt_reset: String) -> Self { + Self { skip_cbt_reset } } } #[doc = "VMwareCbt security profile input."] @@ -18993,8 +18046,6 @@ pub mod v_mware_cbt_security_profile_properties { #[doc = "VMwareCbt specific test migrate input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtTestMigrateInput { - #[serde(flatten)] - pub test_migrate_provider_specific_input: TestMigrateProviderSpecificInput, #[doc = "The recovery point Id."] #[serde(rename = "recoveryPointId")] pub recovery_point_id: String, @@ -19014,13 +18065,8 @@ pub struct VMwareCbtTestMigrateInput { pub os_upgrade_version: Option, } impl VMwareCbtTestMigrateInput { - pub fn new( - test_migrate_provider_specific_input: TestMigrateProviderSpecificInput, - recovery_point_id: String, - network_id: String, - ) -> Self { + pub fn new(recovery_point_id: String, network_id: String) -> Self { Self { - test_migrate_provider_specific_input, recovery_point_id, network_id, vm_nics: Vec::new(), @@ -19053,8 +18099,6 @@ impl VMwareCbtUpdateDiskInput { #[doc = "VMwareCbt specific update migration item input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtUpdateMigrationItemInput { - #[serde(flatten)] - pub update_migration_item_provider_specific_input: UpdateMigrationItemProviderSpecificInput, #[doc = "The target VM name."] #[serde(rename = "targetVmName", default, skip_serializing_if = "Option::is_none")] pub target_vm_name: Option, @@ -19118,9 +18162,8 @@ pub struct VMwareCbtUpdateMigrationItemInput { pub target_nic_tags: Option, } impl VMwareCbtUpdateMigrationItemInput { - pub fn new(update_migration_item_provider_specific_input: UpdateMigrationItemProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - update_migration_item_provider_specific_input, target_vm_name: None, target_vm_size: None, target_resource_group_id: None, @@ -19229,8 +18272,6 @@ pub mod v_mware_cbt_update_migration_item_input { #[doc = "Store the fabric details specific to the VMware fabric."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The list of Process Servers associated with the fabric."] #[serde( rename = "processServers", @@ -19352,9 +18393,8 @@ pub struct VMwareDetails { pub switch_provider_blocking_error_details: Vec, } impl VMwareDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, process_servers: Vec::new(), master_target_servers: Vec::new(), run_as_accounts: Vec::new(), @@ -19394,8 +18434,6 @@ impl VMwareDetails { #[doc = "VMwareV2 fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareV2FabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -19407,9 +18445,8 @@ pub struct VMwareV2FabricCreationInput { pub migration_solution_id: String, } impl VMwareV2FabricCreationInput { - pub fn new(fabric_specific_creation_input: FabricSpecificCreationInput, migration_solution_id: String) -> Self { + pub fn new(migration_solution_id: String) -> Self { Self { - fabric_specific_creation_input, vmware_site_id: None, physical_site_id: None, migration_solution_id, @@ -19419,8 +18456,6 @@ impl VMwareV2FabricCreationInput { #[doc = "VMwareV2 fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareV2FabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -19449,9 +18484,8 @@ pub struct VMwareV2FabricSpecificDetails { pub process_servers: Vec, } impl VMwareV2FabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, vmware_site_id: None, physical_site_id: None, migration_solution_id: None, @@ -19465,8 +18499,6 @@ impl VMwareV2FabricSpecificDetails { #[doc = "VMware provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareVirtualMachineDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, #[doc = "The ID generated by the InMage agent after it gets installed on guest. This is the ID to be used during InMage CreateProtection."] #[serde(rename = "agentGeneratedId", default, skip_serializing_if = "Option::is_none")] pub agent_generated_id: Option, @@ -19509,9 +18541,8 @@ pub struct VMwareVirtualMachineDetails { pub validation_errors: Vec, } impl VMwareVirtualMachineDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { + pub fn new() -> Self { Self { - configuration_settings, agent_generated_id: None, agent_installed: None, os_type: None, @@ -19712,8 +18743,6 @@ pub mod version_details { #[doc = "This class represents the virtual machine task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineTaskDetails { - #[serde(flatten)] - pub job_task_details: JobTaskDetails, #[doc = "The skipped reason."] #[serde(rename = "skippedReason", default, skip_serializing_if = "Option::is_none")] pub skipped_reason: Option, @@ -19722,9 +18751,8 @@ pub struct VirtualMachineTaskDetails { pub skipped_reason_string: Option, } impl VirtualMachineTaskDetails { - pub fn new(job_task_details: JobTaskDetails) -> Self { + pub fn new() -> Self { Self { - job_task_details, skipped_reason: None, skipped_reason_string: None, } @@ -19733,8 +18761,6 @@ impl VirtualMachineTaskDetails { #[doc = "This class represents the vm NicUpdates task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmNicUpdatesTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "Virtual machine Id."] #[serde(rename = "vmId", default, skip_serializing_if = "Option::is_none")] pub vm_id: Option, @@ -19746,9 +18772,8 @@ pub struct VmNicUpdatesTaskDetails { pub name: Option, } impl VmNicUpdatesTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, vm_id: None, nic_id: None, name: None, @@ -19757,91 +18782,58 @@ impl VmNicUpdatesTaskDetails { } #[doc = "VMM fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, -} +pub struct VmmDetails {} impl VmmDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { - Self { fabric_specific_details } + pub fn new() -> Self { + Self {} } } #[doc = "Create network mappings input properties/behavior specific to Vmm to Azure Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, -} +pub struct VmmToAzureCreateNetworkMappingInput {} impl VmmToAzureCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput) -> Self { - Self { - fabric_specific_create_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "E2A Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, -} +pub struct VmmToAzureNetworkMappingSettings {} impl VmmToAzureNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { - Self { - network_mapping_fabric_specific_settings, - } + pub fn new() -> Self { + Self {} } } #[doc = "Update network mappings input properties/behavior specific to vmm to azure."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, -} +pub struct VmmToAzureUpdateNetworkMappingInput {} impl VmmToAzureUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "Create network mappings input properties/behavior specific to vmm to vmm Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, -} +pub struct VmmToVmmCreateNetworkMappingInput {} impl VmmToVmmCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput) -> Self { - Self { - fabric_specific_create_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "E2E Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, -} +pub struct VmmToVmmNetworkMappingSettings {} impl VmmToVmmNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { - Self { - network_mapping_fabric_specific_settings, - } + pub fn new() -> Self { + Self {} } } #[doc = "Update network mappings input properties/behavior specific to vmm to vmm."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, -} +pub struct VmmToVmmUpdateNetworkMappingInput {} impl VmmToVmmUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "VMM fabric provider specific VM settings."] @@ -19860,8 +18852,6 @@ impl VmmVirtualMachineDetails { #[doc = "VMware Cbt specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmwareCbtPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -19873,9 +18863,8 @@ pub struct VmwareCbtPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl VmwareCbtPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_in_minutes: None, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, diff --git a/services/mgmt/recoveryservicessiterecovery/src/package_2023_06/models.rs b/services/mgmt/recoveryservicessiterecovery/src/package_2023_06/models.rs index f3e8a6566a..9db8c5a60c 100644 --- a/services/mgmt/recoveryservicessiterecovery/src/package_2023_06/models.rs +++ b/services/mgmt/recoveryservicessiterecovery/src/package_2023_06/models.rs @@ -6,8 +6,6 @@ use std::str::FromStr; #[doc = "A2A add disk(s) input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aAddDisksInput { - #[serde(flatten)] - pub add_disks_provider_specific_input: AddDisksProviderSpecificInput, #[doc = "The list of vm disk details."] #[serde( rename = "vmDisks", @@ -26,9 +24,8 @@ pub struct A2aAddDisksInput { pub vm_managed_disks: Vec, } impl A2aAddDisksInput { - pub fn new(add_disks_provider_specific_input: AddDisksProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - add_disks_provider_specific_input, vm_disks: Vec::new(), vm_managed_disks: Vec::new(), } @@ -36,35 +33,23 @@ impl A2aAddDisksInput { } #[doc = "ApplyRecoveryPoint input specific to A2A provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct A2aApplyRecoveryPointInput {} impl A2aApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A cloud creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct A2aContainerCreationInput {} impl A2aContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A container mapping input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -76,9 +61,8 @@ pub struct A2aContainerMappingInput { pub automation_account_authentication_type: Option, } impl A2aContainerMappingInput { - pub fn new(replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_container_mapping_input, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -172,8 +156,6 @@ pub mod a2a_container_mapping_input { #[doc = "A2A create protection intent input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCreateProtectionIntentInput { - #[serde(flatten)] - pub create_protection_intent_provider_specific_details: CreateProtectionIntentProviderSpecificDetails, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId")] pub fabric_object_id: String, @@ -261,7 +243,6 @@ pub struct A2aCreateProtectionIntentInput { } impl A2aCreateProtectionIntentInput { pub fn new( - create_protection_intent_provider_specific_details: CreateProtectionIntentProviderSpecificDetails, fabric_object_id: String, primary_location: String, recovery_location: String, @@ -270,7 +251,6 @@ impl A2aCreateProtectionIntentInput { recovery_resource_group_id: String, ) -> Self { Self { - create_protection_intent_provider_specific_details, fabric_object_id, primary_location, recovery_location, @@ -458,35 +438,23 @@ pub mod a2a_create_protection_intent_input { } #[doc = "ApplyRecoveryPoint input specific to A2ACrossClusterMigration provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct A2aCrossClusterMigrationApplyRecoveryPointInput {} impl A2aCrossClusterMigrationApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2ACrossClusterMigration cloud creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct A2aCrossClusterMigrationContainerCreationInput {} impl A2aCrossClusterMigrationContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A Cross-Cluster Migration enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCrossClusterMigrationEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -495,9 +463,8 @@ pub struct A2aCrossClusterMigrationEnableProtectionInput { pub recovery_container_id: Option, } impl A2aCrossClusterMigrationEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, fabric_object_id: None, recovery_container_id: None, } @@ -505,22 +472,15 @@ impl A2aCrossClusterMigrationEnableProtectionInput { } #[doc = "A2A Cross-Cluster Migration Policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct A2aCrossClusterMigrationPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, -} +pub struct A2aCrossClusterMigrationPolicyCreationInput {} impl A2aCrossClusterMigrationPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { - Self { - policy_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aCrossClusterMigrationReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -541,9 +501,8 @@ pub struct A2aCrossClusterMigrationReplicationDetails { pub lifecycle_id: Option, } impl A2aCrossClusterMigrationReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, fabric_object_id: None, primary_fabric_location: None, os_type: None, @@ -556,8 +515,6 @@ impl A2aCrossClusterMigrationReplicationDetails { #[doc = "A2A enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId")] pub fabric_object_id: String, @@ -624,9 +581,8 @@ pub struct A2aEnableProtectionInput { pub recovery_capacity_reservation_group_id: Option, } impl A2aEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, fabric_object_id: String) -> Self { + pub fn new(fabric_object_id: String) -> Self { Self { - enable_protection_provider_specific_input, fabric_object_id, recovery_container_id: None, recovery_resource_group_id: None, @@ -651,8 +607,6 @@ impl A2aEnableProtectionInput { #[doc = "Model class for event details of a A2A event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item arm name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -673,9 +627,8 @@ pub struct A2aEventDetails { pub remote_fabric_location: Option, } impl A2aEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, fabric_object_id: None, fabric_name: None, @@ -748,8 +701,6 @@ impl A2aFabricSpecificLocationDetails { #[doc = "A2A Policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistory", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history: Option, @@ -764,12 +715,8 @@ pub struct A2aPolicyCreationInput { pub multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus, } impl A2aPolicyCreationInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: a2a_policy_creation_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -820,8 +767,6 @@ pub mod a2a_policy_creation_input { #[doc = "A2A specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -839,9 +784,8 @@ pub struct A2aPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl A2aPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -1042,8 +986,6 @@ impl A2aProtectedManagedDiskDetails { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -1061,9 +1003,8 @@ pub struct A2aProtectionContainerMappingDetails { pub job_schedule_name: Option, } impl A2aProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -1231,8 +1172,6 @@ impl A2aProtectionIntentManagedDiskInputDetails { #[doc = "A2A provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aRecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "recoveryPointSyncType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_sync_type: Option, @@ -1245,9 +1184,8 @@ pub struct A2aRecoveryPointDetails { pub disks: Vec, } impl A2aRecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, recovery_point_sync_type: None, disks: Vec::new(), } @@ -1298,8 +1236,6 @@ pub mod a2a_recovery_point_details { #[doc = "A2A remove disk(s) input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aRemoveDisksInput { - #[serde(flatten)] - pub remove_disks_provider_specific_input: RemoveDisksProviderSpecificInput, #[doc = "The list of vm disk vhd URIs."] #[serde( rename = "vmDisksUris", @@ -1318,9 +1254,8 @@ pub struct A2aRemoveDisksInput { pub vm_managed_disks_ids: Vec, } impl A2aRemoveDisksInput { - pub fn new(remove_disks_provider_specific_input: RemoveDisksProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - remove_disks_provider_specific_input, vm_disks_uris: Vec::new(), vm_managed_disks_ids: Vec::new(), } @@ -1329,8 +1264,6 @@ impl A2aRemoveDisksInput { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -1519,9 +1452,8 @@ pub struct A2aReplicationDetails { pub churn_option_selected: Option, } impl A2aReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, fabric_object_id: None, initial_primary_zone: None, initial_primary_fabric_location: None, @@ -1735,8 +1667,6 @@ pub mod a2a_replication_details { #[doc = "A2A provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReplicationIntentDetails { - #[serde(flatten)] - pub replication_protection_intent_provider_specific_settings: ReplicationProtectionIntentProviderSpecificSettings, #[doc = "The fabric specific object Id of the virtual machine."] #[serde(rename = "fabricObjectId", default, skip_serializing_if = "Option::is_none")] pub fabric_object_id: Option, @@ -1815,12 +1745,8 @@ pub struct A2aReplicationIntentDetails { pub automation_account_authentication_type: Option, } impl A2aReplicationIntentDetails { - pub fn new( - replication_protection_intent_provider_specific_settings: ReplicationProtectionIntentProviderSpecificSettings, - recovery_availability_type: String, - ) -> Self { + pub fn new(recovery_availability_type: String) -> Self { Self { - replication_protection_intent_provider_specific_settings, fabric_object_id: None, primary_location: None, recovery_location: None, @@ -1970,8 +1896,6 @@ pub mod a2a_replication_intent_details { #[doc = "Azure specific reprotect input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The recovery container Id."] #[serde(rename = "recoveryContainerId", default, skip_serializing_if = "Option::is_none")] pub recovery_container_id: Option, @@ -1997,9 +1921,8 @@ pub struct A2aReprotectInput { pub policy_id: Option, } impl A2aReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, recovery_container_id: None, vm_disks: Vec::new(), recovery_resource_group_id: None, @@ -2012,8 +1935,6 @@ impl A2aReprotectInput { #[doc = "A2A specific switch protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aSwitchProtectionInput { - #[serde(flatten)] - pub switch_protection_provider_specific_input: SwitchProtectionProviderSpecificInput, #[doc = "The recovery container Id."] #[serde(rename = "recoveryContainerId", default, skip_serializing_if = "Option::is_none")] pub recovery_container_id: Option, @@ -2065,9 +1986,8 @@ pub struct A2aSwitchProtectionInput { pub disk_encryption_info: Option, } impl A2aSwitchProtectionInput { - pub fn new(switch_protection_provider_specific_input: SwitchProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - switch_protection_provider_specific_input, recovery_container_id: None, vm_disks: Vec::new(), vm_managed_disks: Vec::new(), @@ -2087,8 +2007,6 @@ impl A2aSwitchProtectionInput { #[doc = "A2A provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -2097,9 +2015,8 @@ pub struct A2aTestFailoverInput { pub cloud_service_creation_option: Option, } impl A2aTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, recovery_point_id: None, cloud_service_creation_option: None, } @@ -2108,8 +2025,6 @@ impl A2aTestFailoverInput { #[doc = "A2A provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -2118,9 +2033,8 @@ pub struct A2aUnplannedFailoverInput { pub cloud_service_creation_option: Option, } impl A2aUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, recovery_point_id: None, cloud_service_creation_option: None, } @@ -2184,8 +2098,6 @@ pub mod a2a_unprotected_disk_details { #[doc = "A2A update protection container mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUpdateContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, #[doc = "A value indicating whether the auto update is enabled."] #[serde(rename = "agentAutoUpdateStatus", default, skip_serializing_if = "Option::is_none")] pub agent_auto_update_status: Option, @@ -2197,11 +2109,8 @@ pub struct A2aUpdateContainerMappingInput { pub automation_account_authentication_type: Option, } impl A2aUpdateContainerMappingInput { - pub fn new( - replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, - ) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_update_container_mapping_input, agent_auto_update_status: None, automation_account_arm_id: None, automation_account_authentication_type: None, @@ -2295,8 +2204,6 @@ pub mod a2a_update_container_mapping_input { #[doc = "InMage Azure V2 input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct A2aUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The target cloud service ARM Id (for V1)."] #[serde(rename = "recoveryCloudServiceId", default, skip_serializing_if = "Option::is_none")] pub recovery_cloud_service_id: Option, @@ -2331,9 +2238,8 @@ pub struct A2aUpdateReplicationProtectedItemInput { pub recovery_capacity_reservation_group_id: Option, } impl A2aUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_cloud_service_id: None, recovery_resource_group_id: None, managed_disk_update_details: Vec::new(), @@ -2526,14 +2432,6 @@ impl AddDisksInputProperties { Self { provider_specific_details } } } -#[doc = "Add Disks provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AddDisksProviderSpecificInput {} -impl AddDisksProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2830,14 +2728,6 @@ impl ApplianceResourceDetails { Self::default() } } -#[doc = "Appliance specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ApplianceSpecificDetails {} -impl ApplianceSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2873,14 +2763,6 @@ impl ApplyRecoveryPointInputProperties { } } } -#[doc = "Provider specific input for apply recovery point."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ApplyRecoveryPointProviderSpecificInput {} -impl ApplyRecoveryPointProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -2907,8 +2789,6 @@ impl AsrJobDetails { #[doc = "This class represents the task details for an automation runbook."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationRunbookTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The recovery plan task name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -2938,9 +2818,8 @@ pub struct AutomationRunbookTaskDetails { pub is_primary_side_script: Option, } impl AutomationRunbookTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, cloud_service_name: None, subscription_id: None, @@ -2956,25 +2835,18 @@ impl AutomationRunbookTaskDetails { #[doc = "Fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The Location."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, } impl AzureFabricCreationInput { - pub fn new(fabric_specific_creation_input: FabricSpecificCreationInput) -> Self { - Self { - fabric_specific_creation_input, - location: None, - } + pub fn new() -> Self { + Self { location: None } } } #[doc = "Azure Fabric Specific Details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureFabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The Location for the Azure fabric."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, @@ -3011,9 +2883,8 @@ pub struct AzureFabricSpecificDetails { pub location_details: Vec, } impl AzureFabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, location: None, container_ids: Vec::new(), zones: Vec::new(), @@ -3025,25 +2896,18 @@ impl AzureFabricSpecificDetails { #[doc = "Create network mappings input properties/behavior specific to Azure to Azure Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, #[doc = "The primary azure vnet Id."] #[serde(rename = "primaryNetworkId")] pub primary_network_id: String, } impl AzureToAzureCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, primary_network_id: String) -> Self { - Self { - fabric_specific_create_network_mapping_input, - primary_network_id, - } + pub fn new(primary_network_id: String) -> Self { + Self { primary_network_id } } } #[doc = "A2A Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, #[doc = "The primary fabric location."] #[serde(rename = "primaryFabricLocation", default, skip_serializing_if = "Option::is_none")] pub primary_fabric_location: Option, @@ -3052,9 +2916,8 @@ pub struct AzureToAzureNetworkMappingSettings { pub recovery_fabric_location: Option, } impl AzureToAzureNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { + pub fn new() -> Self { Self { - network_mapping_fabric_specific_settings, primary_fabric_location: None, recovery_fabric_location: None, } @@ -3063,18 +2926,13 @@ impl AzureToAzureNetworkMappingSettings { #[doc = "Updates network mappings input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureToAzureUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, #[doc = "The primary azure vnet Id."] #[serde(rename = "primaryNetworkId", default, skip_serializing_if = "Option::is_none")] pub primary_network_id: Option, } impl AzureToAzureUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - primary_network_id: None, - } + pub fn new() -> Self { + Self { primary_network_id: None } } } #[doc = "Azure to Azure VM synced configuration details."] @@ -3151,14 +3009,6 @@ impl ComputeSizeErrorDetails { Self::default() } } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ConfigurationSettings {} -impl ConfigurationSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3205,8 +3055,6 @@ impl ConfigureAlertRequestProperties { #[doc = "This class contains monitoring details of all the inconsistent Protected Entities in Vmm."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ConsistencyCheckTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The list of inconsistent Vm details."] #[serde( rename = "vmDetails", @@ -3217,11 +3065,8 @@ pub struct ConsistencyCheckTaskDetails { pub vm_details: Vec, } impl ConsistencyCheckTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { - Self { - task_type_details, - vm_details: Vec::new(), - } + pub fn new() -> Self { + Self { vm_details: Vec::new() } } } #[doc = "Create network mappings input."] @@ -3364,14 +3209,6 @@ impl CreateProtectionIntentProperties { Self::default() } } -#[doc = "Create protection intent provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct CreateProtectionIntentProviderSpecificDetails {} -impl CreateProtectionIntentProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3631,14 +3468,6 @@ pub mod disable_protection_input_properties { } } } -#[doc = "Disable protection provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct DisableProtectionProviderSpecificInput {} -impl DisableProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3876,14 +3705,6 @@ impl EnableMigrationInputProperties { } } } -#[doc = "Enable migration provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnableMigrationProviderSpecificInput {} -impl EnableMigrationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -3920,14 +3741,6 @@ impl EnableProtectionInputProperties { Self::default() } } -#[doc = "Enable protection provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnableProtectionProviderSpecificInput {} -impl EnableProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4045,14 +3858,6 @@ impl EventProperties { Self::default() } } -#[doc = "Model class for provider specific details for an event."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventProviderSpecificDetails {} -impl EventProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4101,14 +3906,6 @@ impl EventQueryParameter { Self::default() } } -#[doc = "Model class for event specific details for an event."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EventSpecificDetails {} -impl EventSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4118,33 +3915,25 @@ pub enum EventSpecificDetailsUnion { #[doc = "Existing storage account input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingProtectionProfile { - #[serde(flatten)] - pub protection_profile_custom_details: ProtectionProfileCustomDetails, #[doc = "The protection profile Arm Id. Throw error, if resource does not exists."] #[serde(rename = "protectionProfileId")] pub protection_profile_id: String, } impl ExistingProtectionProfile { - pub fn new(protection_profile_custom_details: ProtectionProfileCustomDetails, protection_profile_id: String) -> Self { - Self { - protection_profile_custom_details, - protection_profile_id, - } + pub fn new(protection_profile_id: String) -> Self { + Self { protection_profile_id } } } #[doc = "Existing recovery availability set input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryAvailabilitySet { - #[serde(flatten)] - pub recovery_availability_set_custom_details: RecoveryAvailabilitySetCustomDetails, #[doc = "The recovery availability set Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryAvailabilitySetId", default, skip_serializing_if = "Option::is_none")] pub recovery_availability_set_id: Option, } impl ExistingRecoveryAvailabilitySet { - pub fn new(recovery_availability_set_custom_details: RecoveryAvailabilitySetCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_availability_set_custom_details, recovery_availability_set_id: None, } } @@ -4152,16 +3941,13 @@ impl ExistingRecoveryAvailabilitySet { #[doc = "Existing recovery proximity placement group input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryProximityPlacementGroup { - #[serde(flatten)] - pub recovery_proximity_placement_group_custom_details: RecoveryProximityPlacementGroupCustomDetails, #[doc = "The recovery proximity placement group Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryProximityPlacementGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_proximity_placement_group_id: Option, } impl ExistingRecoveryProximityPlacementGroup { - pub fn new(recovery_proximity_placement_group_custom_details: RecoveryProximityPlacementGroupCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_proximity_placement_group_custom_details, recovery_proximity_placement_group_id: None, } } @@ -4169,16 +3955,13 @@ impl ExistingRecoveryProximityPlacementGroup { #[doc = "Existing recovery resource group input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryRecoveryResourceGroup { - #[serde(flatten)] - pub recovery_resource_group_custom_details: RecoveryResourceGroupCustomDetails, #[doc = "The recovery resource group Id. Valid for V2 scenarios."] #[serde(rename = "recoveryResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_resource_group_id: Option, } impl ExistingRecoveryRecoveryResourceGroup { - pub fn new(recovery_resource_group_custom_details: RecoveryResourceGroupCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_resource_group_custom_details, recovery_resource_group_id: None, } } @@ -4186,8 +3969,6 @@ impl ExistingRecoveryRecoveryResourceGroup { #[doc = "Existing recovery virtual network input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingRecoveryVirtualNetwork { - #[serde(flatten)] - pub recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, #[doc = "The recovery virtual network Id. Will throw error, if resource does not exist."] #[serde(rename = "recoveryVirtualNetworkId")] pub recovery_virtual_network_id: String, @@ -4196,9 +3977,8 @@ pub struct ExistingRecoveryVirtualNetwork { pub recovery_subnet_name: Option, } impl ExistingRecoveryVirtualNetwork { - pub fn new(recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, recovery_virtual_network_id: String) -> Self { + pub fn new(recovery_virtual_network_id: String) -> Self { Self { - recovery_virtual_network_custom_details, recovery_virtual_network_id, recovery_subnet_name: None, } @@ -4207,18 +3987,13 @@ impl ExistingRecoveryVirtualNetwork { #[doc = "Existing storage account input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ExistingStorageAccount { - #[serde(flatten)] - pub storage_account_custom_details: StorageAccountCustomDetails, #[doc = "The storage account Arm Id. Throw error, if resource does not exists."] #[serde(rename = "azureStorageAccountId")] pub azure_storage_account_id: String, } impl ExistingStorageAccount { - pub fn new(storage_account_custom_details: StorageAccountCustomDetails, azure_storage_account_id: String) -> Self { - Self { - storage_account_custom_details, - azure_storage_account_id, - } + pub fn new(azure_storage_account_id: String) -> Self { + Self { azure_storage_account_id } } } #[doc = "This class represents details for export jobs workflow."] @@ -4431,8 +4206,6 @@ impl FabricQueryParameter { #[doc = "This class represents the fabric replication group task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct FabricReplicationGroupTaskDetails { - #[serde(flatten)] - pub job_task_details: JobTaskDetails, #[doc = "The skipped reason."] #[serde(rename = "skippedReason", default, skip_serializing_if = "Option::is_none")] pub skipped_reason: Option, @@ -4441,22 +4214,13 @@ pub struct FabricReplicationGroupTaskDetails { pub skipped_reason_string: Option, } impl FabricReplicationGroupTaskDetails { - pub fn new(job_task_details: JobTaskDetails) -> Self { + pub fn new() -> Self { Self { - job_task_details, skipped_reason: None, skipped_reason_string: None, } } } -#[doc = "Input details specific to fabrics during Network Mapping."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificCreateNetworkMappingInput {} -impl FabricSpecificCreateNetworkMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4465,14 +4229,6 @@ pub enum FabricSpecificCreateNetworkMappingInputUnion { VmmToAzure(VmmToAzureCreateNetworkMappingInput), VmmToVmm(VmmToVmmCreateNetworkMappingInput), } -#[doc = "Fabric provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificCreationInput {} -impl FabricSpecificCreationInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4481,14 +4237,6 @@ pub enum FabricSpecificCreationInputUnion { InMageRcm(InMageRcmFabricCreationInput), VMwareV2(VMwareV2FabricCreationInput), } -#[doc = "Fabric specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificDetails {} -impl FabricSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4501,14 +4249,6 @@ pub enum FabricSpecificDetailsUnion { #[serde(rename = "VMM")] Vmm(VmmDetails), } -#[doc = "Input details specific to fabrics during Network Mapping."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct FabricSpecificUpdateNetworkMappingInput {} -impl FabricSpecificUpdateNetworkMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -4939,8 +4679,6 @@ impl HyperVHostDetails { #[doc = "Model class for event details of a HyperVReplica E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplica2012EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -4955,9 +4693,8 @@ pub struct HyperVReplica2012EventDetails { pub remote_fabric_name: Option, } impl HyperVReplica2012EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -4968,8 +4705,6 @@ impl HyperVReplica2012EventDetails { #[doc = "Model class for event details of a HyperVReplica blue E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplica2012R2EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -4984,9 +4719,8 @@ pub struct HyperVReplica2012R2EventDetails { pub remote_fabric_name: Option, } impl HyperVReplica2012R2EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -4997,8 +4731,6 @@ impl HyperVReplica2012R2EventDetails { #[doc = "ApplyRecoveryPoint input specific to HyperVReplicaAzure provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, #[doc = "The primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5007,9 +4739,8 @@ pub struct HyperVReplicaAzureApplyRecoveryPointInput { pub secondary_kek_certificate_pfx: Option, } impl HyperVReplicaAzureApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - apply_recovery_point_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, } @@ -5084,8 +4815,6 @@ pub mod hyper_v_replica_azure_disk_input_details { #[doc = "HyperVReplicaAzure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The Hyper-V host VM Id."] #[serde(rename = "hvHostVmId", default, skip_serializing_if = "Option::is_none")] pub hv_host_vm_id: Option, @@ -5182,9 +4911,8 @@ pub struct HyperVReplicaAzureEnableProtectionInput { pub target_nic_tags: Option, } impl HyperVReplicaAzureEnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, hv_host_vm_id: None, vm_name: None, os_type: None, @@ -5346,8 +5074,6 @@ pub mod hyper_v_replica_azure_enable_protection_input { #[doc = "Model class for event details of a HyperVReplica E2A event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -5359,9 +5085,8 @@ pub struct HyperVReplicaAzureEventDetails { pub remote_container_name: Option, } impl HyperVReplicaAzureEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -5371,8 +5096,6 @@ impl HyperVReplicaAzureEventDetails { #[doc = "HyperVReplicaAzureFailback specific planned failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureFailbackProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "Data sync option."] #[serde(rename = "dataSyncOption", default, skip_serializing_if = "Option::is_none")] pub data_sync_option: Option, @@ -5384,9 +5107,8 @@ pub struct HyperVReplicaAzureFailbackProviderInput { pub provider_id_for_alternate_recovery: Option, } impl HyperVReplicaAzureFailbackProviderInput { - pub fn new(planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - planned_failover_provider_specific_failover_input, data_sync_option: None, recovery_vm_creation_option: None, provider_id_for_alternate_recovery: None, @@ -5417,8 +5139,6 @@ impl HyperVReplicaAzureManagedDiskDetails { #[doc = "HyperVReplicaAzure specific planned failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePlannedFailoverProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5433,9 +5153,8 @@ pub struct HyperVReplicaAzurePlannedFailoverProviderInput { pub os_upgrade_version: Option, } impl HyperVReplicaAzurePlannedFailoverProviderInput { - pub fn new(planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - planned_failover_provider_specific_failover_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5446,8 +5165,6 @@ impl HyperVReplicaAzurePlannedFailoverProviderInput { #[doc = "Hyper-V Replica Azure specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration (in hours) to which point the recovery history needs to be maintained."] #[serde(rename = "recoveryPointHistoryDurationInHours", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_duration_in_hours: Option, @@ -5472,9 +5189,8 @@ pub struct HyperVReplicaAzurePolicyDetails { pub active_storage_account_id: Option, } impl HyperVReplicaAzurePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_duration_in_hours: None, application_consistent_snapshot_frequency_in_hours: None, replication_interval: None, @@ -5487,8 +5203,6 @@ impl HyperVReplicaAzurePolicyDetails { #[doc = "Hyper-V Replica Azure specific input for creating a protection profile."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzurePolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration (in hours) to which point the recovery history needs to be maintained."] #[serde(rename = "recoveryPointHistoryDuration", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_duration: Option, @@ -5515,9 +5229,8 @@ pub struct HyperVReplicaAzurePolicyInput { pub storage_accounts: Vec, } impl HyperVReplicaAzurePolicyInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_duration: None, application_consistent_snapshot_frequency_in_hours: None, replication_interval: None, @@ -5529,8 +5242,6 @@ impl HyperVReplicaAzurePolicyInput { #[doc = "Hyper V Replica Azure provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "Azure VM Disk details."] #[serde( rename = "azureVmDiskDetails", @@ -5655,9 +5366,8 @@ pub struct HyperVReplicaAzureReplicationDetails { pub all_available_os_upgrade_configurations: Vec, } impl HyperVReplicaAzureReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, azure_vm_disk_details: Vec::new(), recovery_azure_vm_name: None, recovery_azure_vm_size: None, @@ -5698,8 +5408,6 @@ impl HyperVReplicaAzureReplicationDetails { #[doc = "Azure specific reprotect input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Hyper-V host Vm Id."] #[serde(rename = "hvHostVmId", default, skip_serializing_if = "Option::is_none")] pub hv_host_vm_id: Option, @@ -5720,9 +5428,8 @@ pub struct HyperVReplicaAzureReprotectInput { pub log_storage_account_id: Option, } impl HyperVReplicaAzureReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, hv_host_vm_id: None, vm_name: None, os_type: None, @@ -5735,8 +5442,6 @@ impl HyperVReplicaAzureReprotectInput { #[doc = "HvrA provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5751,9 +5456,8 @@ pub struct HyperVReplicaAzureTestFailoverInput { pub os_upgrade_version: Option, } impl HyperVReplicaAzureTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5764,8 +5468,6 @@ impl HyperVReplicaAzureTestFailoverInput { #[doc = "HvrA provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "Primary kek certificate pfx."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -5777,9 +5479,8 @@ pub struct HyperVReplicaAzureUnplannedFailoverInput { pub recovery_point_id: Option, } impl HyperVReplicaAzureUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_id: None, @@ -5789,8 +5490,6 @@ impl HyperVReplicaAzureUnplannedFailoverInput { #[doc = "HyperV replica Azure input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaAzureUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The recovery Azure resource group Id for classic deployment."] #[serde(rename = "recoveryAzureV1ResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_v1_resource_group_id: Option, @@ -5831,9 +5530,8 @@ pub struct HyperVReplicaAzureUpdateReplicationProtectedItemInput { pub vm_disks: Vec, } impl HyperVReplicaAzureUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_azure_v1_resource_group_id: None, recovery_azure_v2_resource_group_id: None, use_managed_disks: None, @@ -5897,8 +5595,6 @@ pub mod hyper_v_replica_azure_update_replication_protected_item_input { #[doc = "Abstract model class for event details of a HyperVReplica E2E event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBaseEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The container friendly name."] #[serde(rename = "containerName", default, skip_serializing_if = "Option::is_none")] pub container_name: Option, @@ -5913,9 +5609,8 @@ pub struct HyperVReplicaBaseEventDetails { pub remote_fabric_name: Option, } impl HyperVReplicaBaseEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, container_name: None, fabric_name: None, remote_container_name: None, @@ -5926,8 +5621,6 @@ impl HyperVReplicaBaseEventDetails { #[doc = "Base class for HyperVReplica policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBasePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -5964,9 +5657,8 @@ pub struct HyperVReplicaBasePolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaBasePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -5983,8 +5675,6 @@ impl HyperVReplicaBasePolicyDetails { #[doc = "Hyper V replica provider specific settings base class."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBaseReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -6018,9 +5708,8 @@ pub struct HyperVReplicaBaseReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaBaseReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -6034,8 +5723,6 @@ impl HyperVReplicaBaseReplicationDetails { #[doc = "Hyper-V Replica Blue specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBluePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the replication interval."] #[serde(rename = "replicationFrequencyInSeconds", default, skip_serializing_if = "Option::is_none")] pub replication_frequency_in_seconds: Option, @@ -6075,9 +5762,8 @@ pub struct HyperVReplicaBluePolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaBluePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, replication_frequency_in_seconds: None, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, @@ -6112,8 +5798,6 @@ impl HyperVReplicaBluePolicyInput { #[doc = "HyperV replica 2012 R2 (Blue) replication details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaBlueReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -6147,9 +5831,8 @@ pub struct HyperVReplicaBlueReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaBlueReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -6163,8 +5846,6 @@ impl HyperVReplicaBlueReplicationDetails { #[doc = "Hyper-V Replica Blue specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -6201,9 +5882,8 @@ pub struct HyperVReplicaPolicyDetails { pub replica_deletion_option: Option, } impl HyperVReplicaPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -6220,8 +5900,6 @@ impl HyperVReplicaPolicyDetails { #[doc = "Hyper-V Replica specific policy Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaPolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "A value indicating the number of recovery points."] #[serde(rename = "recoveryPoints", default, skip_serializing_if = "Option::is_none")] pub recovery_points: Option, @@ -6258,9 +5936,8 @@ pub struct HyperVReplicaPolicyInput { pub replica_deletion: Option, } impl HyperVReplicaPolicyInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_points: None, application_consistent_snapshot_frequency_in_hours: None, compression: None, @@ -6282,8 +5959,6 @@ pub enum HyperVReplicaPolicyInputUnion { #[doc = "HyperV replica 2012 replication details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVReplicaReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The Last replication time."] #[serde(rename = "lastReplicatedTime", default, with = "azure_core::date::rfc3339::option")] pub last_replicated_time: Option, @@ -6317,9 +5992,8 @@ pub struct HyperVReplicaReplicationDetails { pub v_m_disk_details: Vec, } impl HyperVReplicaReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, last_replicated_time: None, vm_nics: Vec::new(), vm_id: None, @@ -6333,8 +6007,6 @@ impl HyperVReplicaReplicationDetails { #[doc = "HyperVSite fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVSiteDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The list of Hyper-V hosts associated with the fabric."] #[serde( rename = "hyperVHosts", @@ -6345,18 +6017,13 @@ pub struct HyperVSiteDetails { pub hyper_v_hosts: Vec, } impl HyperVSiteDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { - Self { - fabric_specific_details, - hyper_v_hosts: Vec::new(), - } + pub fn new() -> Self { + Self { hyper_v_hosts: Vec::new() } } } #[doc = "Single Host fabric provider specific VM settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HyperVVirtualMachineDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, #[doc = "The source id of the object."] #[serde(rename = "sourceItemId", default, skip_serializing_if = "Option::is_none")] pub source_item_id: Option, @@ -6388,9 +6055,8 @@ pub struct HyperVVirtualMachineDetails { pub hyper_v_host_id: Option, } impl HyperVVirtualMachineDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { + pub fn new() -> Self { Self { - configuration_settings, source_item_id: None, generation: None, os_details: None, @@ -6691,15 +6357,10 @@ impl InMageAgentDetails { } #[doc = "ApplyRecoveryPoint input specific to InMageAzureV2 provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct InMageAzureV2ApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, -} +pub struct InMageAzureV2ApplyRecoveryPointInput {} impl InMageAzureV2ApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput) -> Self { - Self { - apply_recovery_point_provider_specific_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "Disk input details."] @@ -6771,8 +6432,6 @@ pub mod in_mage_azure_v2_disk_input_details { #[doc = "VMware Azure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2EnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The Master target Id."] #[serde(rename = "masterTargetId", default, skip_serializing_if = "Option::is_none")] pub master_target_id: Option, @@ -6858,9 +6517,8 @@ pub struct InMageAzureV2EnableProtectionInput { pub target_nic_tags: Option, } impl InMageAzureV2EnableProtectionInput { - pub fn new(enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - enable_protection_provider_specific_input, master_target_id: None, process_server_id: None, storage_account_id: None, @@ -7020,8 +6678,6 @@ pub mod in_mage_azure_v2_enable_protection_input { #[doc = "Model class for event details of a VMwareAzureV2 event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2EventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "InMage Event type. Takes one of the values of InMageDataContract.InMageMonitoringEventType."] #[serde(rename = "eventType", default, skip_serializing_if = "Option::is_none")] pub event_type: Option, @@ -7045,9 +6701,8 @@ pub struct InMageAzureV2EventDetails { pub site_name: Option, } impl InMageAzureV2EventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, event_type: None, category: None, component: None, @@ -7085,8 +6740,6 @@ impl InMageAzureV2ManagedDiskDetails { #[doc = "InMage Azure v2 specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2PolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The crash consistent snapshot frequency in minutes."] #[serde(rename = "crashConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub crash_consistent_frequency_in_minutes: Option, @@ -7104,9 +6757,8 @@ pub struct InMageAzureV2PolicyDetails { pub multi_vm_sync_status: Option, } impl InMageAzureV2PolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, crash_consistent_frequency_in_minutes: None, recovery_point_threshold_in_minutes: None, recovery_point_history: None, @@ -7118,8 +6770,6 @@ impl InMageAzureV2PolicyDetails { #[doc = "VMWare Azure specific policy Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2PolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7137,12 +6787,8 @@ pub struct InMageAzureV2PolicyInput { pub multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus, } impl InMageAzureV2PolicyInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: in_mage_azure_v2_policy_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_threshold_in_minutes: None, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, @@ -7272,16 +6918,13 @@ impl InMageAzureV2ProtectedDiskDetails { #[doc = "InMage Azure V2 provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2RecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "isMultiVmSyncPoint", default, skip_serializing_if = "Option::is_none")] pub is_multi_vm_sync_point: Option, } impl InMageAzureV2RecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, is_multi_vm_sync_point: None, } } @@ -7289,8 +6932,6 @@ impl InMageAzureV2RecoveryPointDetails { #[doc = "InMageAzureV2 provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2ReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The infrastructure VM Id."] #[serde(rename = "infrastructureVmId", default, skip_serializing_if = "Option::is_none")] pub infrastructure_vm_id: Option, @@ -7547,9 +7188,8 @@ pub struct InMageAzureV2ReplicationDetails { pub os_name: Option, } impl InMageAzureV2ReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, infrastructure_vm_id: None, v_center_infrastructure_id: None, protection_stage: None, @@ -7626,8 +7266,6 @@ impl InMageAzureV2ReplicationDetails { #[doc = "InMageAzureV2 specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2ReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Master target Id."] #[serde(rename = "masterTargetId", default, skip_serializing_if = "Option::is_none")] pub master_target_id: Option, @@ -7656,9 +7294,8 @@ pub struct InMageAzureV2ReprotectInput { pub disks_to_include: Vec, } impl InMageAzureV2ReprotectInput { - pub fn new(reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - reverse_replication_provider_specific_input, master_target_id: None, process_server_id: None, storage_account_id: None, @@ -7720,8 +7357,6 @@ impl InMageAzureV2SwitchProviderDetails { #[doc = "Provider specific input for InMageAzureV2 switch provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2SwitchProviderProviderInput { - #[serde(flatten)] - pub switch_provider_provider_specific_input: SwitchProviderProviderSpecificInput, #[doc = "The target vault Id."] #[serde(rename = "targetVaultID")] pub target_vault_id: String, @@ -7733,14 +7368,8 @@ pub struct InMageAzureV2SwitchProviderProviderInput { pub target_appliance_id: String, } impl InMageAzureV2SwitchProviderProviderInput { - pub fn new( - switch_provider_provider_specific_input: SwitchProviderProviderSpecificInput, - target_vault_id: String, - target_fabric_id: String, - target_appliance_id: String, - ) -> Self { + pub fn new(target_vault_id: String, target_fabric_id: String, target_appliance_id: String) -> Self { Self { - switch_provider_provider_specific_input, target_vault_id, target_fabric_id, target_appliance_id, @@ -7750,8 +7379,6 @@ impl InMageAzureV2SwitchProviderProviderInput { #[doc = "InMageAzureV2 provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2TestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to test failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -7760,9 +7387,8 @@ pub struct InMageAzureV2TestFailoverInput { pub os_upgrade_version: Option, } impl InMageAzureV2TestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, recovery_point_id: None, os_upgrade_version: None, } @@ -7771,8 +7397,6 @@ impl InMageAzureV2TestFailoverInput { #[doc = "InMageAzureV2 provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2UnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point id to be passed to failover to a particular recovery point. In case of latest recovery point, null should be passed."] #[serde(rename = "recoveryPointId", default, skip_serializing_if = "Option::is_none")] pub recovery_point_id: Option, @@ -7781,9 +7405,8 @@ pub struct InMageAzureV2UnplannedFailoverInput { pub os_upgrade_version: Option, } impl InMageAzureV2UnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, recovery_point_id: None, os_upgrade_version: None, } @@ -7792,8 +7415,6 @@ impl InMageAzureV2UnplannedFailoverInput { #[doc = "InMage Azure V2 input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageAzureV2UpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The recovery Azure resource group Id for classic deployment."] #[serde(rename = "recoveryAzureV1ResourceGroupId", default, skip_serializing_if = "Option::is_none")] pub recovery_azure_v1_resource_group_id: Option, @@ -7831,9 +7452,8 @@ pub struct InMageAzureV2UpdateReplicationProtectedItemInput { pub vm_disks: Vec, } impl InMageAzureV2UpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, recovery_azure_v1_resource_group_id: None, recovery_azure_v2_resource_group_id: None, use_managed_disks: None, @@ -7896,8 +7516,6 @@ pub mod in_mage_azure_v2_update_replication_protected_item_input { #[doc = "Base class for the policies of providers using InMage replication."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageBasePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -7912,9 +7530,8 @@ pub struct InMageBasePolicyDetails { pub multi_vm_sync_status: Option, } impl InMageBasePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -7925,16 +7542,13 @@ impl InMageBasePolicyDetails { #[doc = "InMage disable protection provider specific input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageDisableProtectionProviderSpecificInput { - #[serde(flatten)] - pub disable_protection_provider_specific_input: DisableProtectionProviderSpecificInput, #[doc = "A value indicating whether the replica VM should be destroyed or retained. Values from Delete and Retain."] #[serde(rename = "replicaVmDeletionStatus", default, skip_serializing_if = "Option::is_none")] pub replica_vm_deletion_status: Option, } impl InMageDisableProtectionProviderSpecificInput { - pub fn new(disable_protection_provider_specific_input: DisableProtectionProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - disable_protection_provider_specific_input, replica_vm_deletion_status: None, } } @@ -8011,8 +7625,6 @@ impl InMageDiskSignatureExclusionOptions { #[doc = "VMware Azure specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The VM Name."] #[serde(rename = "vmFriendlyName", default, skip_serializing_if = "Option::is_none")] pub vm_friendly_name: Option, @@ -8051,7 +7663,6 @@ pub struct InMageEnableProtectionInput { } impl InMageEnableProtectionInput { pub fn new( - enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, master_target_id: String, process_server_id: String, retention_drive: String, @@ -8059,7 +7670,6 @@ impl InMageEnableProtectionInput { multi_vm_group_name: String, ) -> Self { Self { - enable_protection_provider_specific_input, vm_friendly_name: None, master_target_id, process_server_id, @@ -8103,8 +7713,6 @@ impl InMageFabricSwitchProviderBlockingErrorDetails { #[doc = "InMage specific protection profile details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMagePolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -8119,9 +7727,8 @@ pub struct InMagePolicyDetails { pub multi_vm_sync_status: Option, } impl InMagePolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -8132,8 +7739,6 @@ impl InMagePolicyDetails { #[doc = "VMWare Azure specific protection profile Input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMagePolicyInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The recovery point threshold in minutes."] #[serde(rename = "recoveryPointThresholdInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_threshold_in_minutes: Option, @@ -8148,12 +7753,8 @@ pub struct InMagePolicyInput { pub multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus, } impl InMagePolicyInput { - pub fn new( - policy_provider_specific_input: PolicyProviderSpecificInput, - multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus, - ) -> Self { + pub fn new(multi_vm_sync_status: in_mage_policy_input::MultiVmSyncStatus) -> Self { Self { - policy_provider_specific_input, recovery_point_threshold_in_minutes: None, recovery_point_history: None, app_consistent_frequency_in_minutes: None, @@ -8353,8 +7954,6 @@ impl InMageRcmApplianceDetails { #[doc = "InMageRcm appliance specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmApplianceSpecificDetails { - #[serde(flatten)] - pub appliance_specific_details: ApplianceSpecificDetails, #[doc = "The list of appliances."] #[serde( default, @@ -8364,28 +7963,20 @@ pub struct InMageRcmApplianceSpecificDetails { pub appliances: Vec, } impl InMageRcmApplianceSpecificDetails { - pub fn new(appliance_specific_details: ApplianceSpecificDetails) -> Self { - Self { - appliance_specific_details, - appliances: Vec::new(), - } + pub fn new() -> Self { + Self { appliances: Vec::new() } } } #[doc = "ApplyRecoveryPoint input specific to InMageRcm provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmApplyRecoveryPointInput { - #[serde(flatten)] - pub apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, #[doc = "The recovery point Id."] #[serde(rename = "recoveryPointId")] pub recovery_point_id: String, } impl InMageRcmApplyRecoveryPointInput { - pub fn new(apply_recovery_point_provider_specific_input: ApplyRecoveryPointProviderSpecificInput, recovery_point_id: String) -> Self { - Self { - apply_recovery_point_provider_specific_input, - recovery_point_id, - } + pub fn new(recovery_point_id: String) -> Self { + Self { recovery_point_id } } } #[doc = "InMageRcm discovered protected VM details."] @@ -8583,8 +8174,6 @@ pub mod in_mage_rcm_disks_default_input { #[doc = "InMageRcm specific enable protection input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmEnableProtectionInput { - #[serde(flatten)] - pub enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, #[doc = "The ARM Id of discovered machine."] #[serde(rename = "fabricDiscoveryMachineId")] pub fabric_discovery_machine_id: String, @@ -8646,14 +8235,8 @@ pub struct InMageRcmEnableProtectionInput { pub multi_vm_group_name: Option, } impl InMageRcmEnableProtectionInput { - pub fn new( - enable_protection_provider_specific_input: EnableProtectionProviderSpecificInput, - fabric_discovery_machine_id: String, - target_resource_group_id: String, - process_server_id: String, - ) -> Self { + pub fn new(fabric_discovery_machine_id: String, target_resource_group_id: String, process_server_id: String) -> Self { Self { - enable_protection_provider_specific_input, fabric_discovery_machine_id, disks_to_include: Vec::new(), disks_default: None, @@ -8720,8 +8303,6 @@ pub mod in_mage_rcm_enable_protection_input { #[doc = "Event details for InMageRcm provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -8748,9 +8329,8 @@ pub struct InMageRcmEventDetails { pub component_display_name: Option, } impl InMageRcmEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, vm_name: None, latest_agent_version: None, @@ -8765,8 +8345,6 @@ impl InMageRcmEventDetails { #[doc = "InMageRcm fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId")] pub vmware_site_id: String, @@ -8778,14 +8356,8 @@ pub struct InMageRcmFabricCreationInput { pub source_agent_identity: IdentityProviderInput, } impl InMageRcmFabricCreationInput { - pub fn new( - fabric_specific_creation_input: FabricSpecificCreationInput, - vmware_site_id: String, - physical_site_id: String, - source_agent_identity: IdentityProviderInput, - ) -> Self { + pub fn new(vmware_site_id: String, physical_site_id: String, source_agent_identity: IdentityProviderInput) -> Self { Self { - fabric_specific_creation_input, vmware_site_id, physical_site_id, source_agent_identity, @@ -8795,8 +8367,6 @@ impl InMageRcmFabricCreationInput { #[doc = "InMageRcm fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -8886,9 +8456,8 @@ pub struct InMageRcmFabricSpecificDetails { pub agent_details: Vec, } impl InMageRcmFabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, vmware_site_id: None, physical_site_id: None, service_endpoint: None, @@ -8992,8 +8561,6 @@ impl InMageRcmFailbackDiscoveredProtectedVmDetails { #[doc = "Event details for InMageRcmFailback provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The protected item name."] #[serde(rename = "protectedItemName", default, skip_serializing_if = "Option::is_none")] pub protected_item_name: Option, @@ -9011,9 +8578,8 @@ pub struct InMageRcmFailbackEventDetails { pub component_display_name: Option, } impl InMageRcmFailbackEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_provider_specific_details, protected_item_name: None, vm_name: None, appliance_name: None, @@ -9087,21 +8653,13 @@ impl InMageRcmFailbackNicDetails { #[doc = "Provider specific input for InMageRcmFailback failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPlannedFailoverProviderInput { - #[serde(flatten)] - pub planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType, } impl InMageRcmFailbackPlannedFailoverProviderInput { - pub fn new( - planned_failover_provider_specific_failover_input: PlannedFailoverProviderSpecificFailoverInput, - recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType, - ) -> Self { - Self { - planned_failover_provider_specific_failover_input, - recovery_point_type, - } + pub fn new(recovery_point_type: in_mage_rcm_failback_planned_failover_provider_input::RecoveryPointType) -> Self { + Self { recovery_point_type } } } pub mod in_mage_rcm_failback_planned_failover_provider_input { @@ -9147,8 +8705,6 @@ pub mod in_mage_rcm_failback_planned_failover_provider_input { #[doc = "InMageRcmFailback policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The crash consistent snapshot frequency (in minutes)."] #[serde(rename = "crashConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub crash_consistent_frequency_in_minutes: Option, @@ -9157,9 +8713,8 @@ pub struct InMageRcmFailbackPolicyCreationInput { pub app_consistent_frequency_in_minutes: Option, } impl InMageRcmFailbackPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, } @@ -9168,8 +8723,6 @@ impl InMageRcmFailbackPolicyCreationInput { #[doc = "InMageRcm failback specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The app consistent snapshot frequency in minutes."] #[serde(rename = "appConsistentFrequencyInMinutes", default, skip_serializing_if = "Option::is_none")] pub app_consistent_frequency_in_minutes: Option, @@ -9178,9 +8731,8 @@ pub struct InMageRcmFailbackPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl InMageRcmFailbackPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, } @@ -9231,8 +8783,6 @@ impl InMageRcmFailbackProtectedDiskDetails { #[doc = "InMageRcmFailback provider specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The virtual machine internal identifier."] #[serde(rename = "internalIdentifier", default, skip_serializing_if = "Option::is_none")] pub internal_identifier: Option, @@ -9336,9 +8886,8 @@ pub struct InMageRcmFailbackReplicationDetails { pub is_agent_registration_successful_after_failover: Option, } impl InMageRcmFailbackReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, internal_identifier: None, azure_virtual_machine_id: None, multi_vm_group_name: None, @@ -9541,8 +9090,6 @@ pub mod in_mage_rcm_failback_replication_details { #[doc = "InMageRcmFailback specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmFailbackReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The process server Id."] #[serde(rename = "processServerId")] pub process_server_id: String, @@ -9554,13 +9101,8 @@ pub struct InMageRcmFailbackReprotectInput { pub policy_id: String, } impl InMageRcmFailbackReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - process_server_id: String, - policy_id: String, - ) -> Self { + pub fn new(process_server_id: String, policy_id: String) -> Self { Self { - reverse_replication_provider_specific_input, process_server_id, run_as_account_id: None, policy_id, @@ -9920,8 +9462,6 @@ impl InMageRcmNicInput { #[doc = "InMageRcm policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -9936,9 +9476,8 @@ pub struct InMageRcmPolicyCreationInput { pub enable_multi_vm_sync: Option, } impl InMageRcmPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_in_minutes: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -9949,8 +9488,6 @@ impl InMageRcmPolicyCreationInput { #[doc = "InMageRcm specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -9965,9 +9502,8 @@ pub struct InMageRcmPolicyDetails { pub enable_multi_vm_sync: Option, } impl InMageRcmPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_in_minutes: None, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, @@ -10077,16 +9613,13 @@ pub mod in_mage_rcm_protected_disk_details { #[doc = "InMageRcm provider specific container mapping details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "A value indicating whether the flag for enable agent auto upgrade."] #[serde(rename = "enableAgentAutoUpgrade", default, skip_serializing_if = "Option::is_none")] pub enable_agent_auto_upgrade: Option, } impl InMageRcmProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, enable_agent_auto_upgrade: None, } } @@ -10094,16 +9627,13 @@ impl InMageRcmProtectionContainerMappingDetails { #[doc = "InMageRcm provider specific recovery point details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmRecoveryPointDetails { - #[serde(flatten)] - pub provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails, #[doc = "A value indicating whether the recovery point is multi VM consistent."] #[serde(rename = "isMultiVmSyncPoint", default, skip_serializing_if = "Option::is_none")] pub is_multi_vm_sync_point: Option, } impl InMageRcmRecoveryPointDetails { - pub fn new(provider_specific_recovery_point_details: ProviderSpecificRecoveryPointDetails) -> Self { + pub fn new() -> Self { Self { - provider_specific_recovery_point_details, is_multi_vm_sync_point: None, } } @@ -10111,8 +9641,6 @@ impl InMageRcmRecoveryPointDetails { #[doc = "InMageRcm provider specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The virtual machine internal identifier."] #[serde(rename = "internalIdentifier", default, skip_serializing_if = "Option::is_none")] pub internal_identifier: Option, @@ -10295,9 +9823,8 @@ pub struct InMageRcmReplicationDetails { pub discovered_vm_details: Option, } impl InMageRcmReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, internal_identifier: None, fabric_discovery_machine_id: None, multi_vm_group_name: None, @@ -10523,8 +10050,6 @@ pub mod in_mage_rcm_replication_details { #[doc = "InMageRcm specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The reprotect agent Id."] #[serde(rename = "reprotectAgentId")] pub reprotect_agent_id: String, @@ -10539,14 +10064,8 @@ pub struct InMageRcmReprotectInput { pub policy_id: Option, } impl InMageRcmReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - reprotect_agent_id: String, - datastore_name: String, - log_storage_account_id: String, - ) -> Self { + pub fn new(reprotect_agent_id: String, datastore_name: String, log_storage_account_id: String) -> Self { Self { - reverse_replication_provider_specific_input, reprotect_agent_id, datastore_name, log_storage_account_id, @@ -10636,8 +10155,6 @@ pub mod in_mage_rcm_sync_details { #[doc = "InMageRcm provider specific input for test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The test network Id."] #[serde(rename = "networkId", default, skip_serializing_if = "Option::is_none")] pub network_id: Option, @@ -10646,9 +10163,8 @@ pub struct InMageRcmTestFailoverInput { pub recovery_point_id: Option, } impl InMageRcmTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, network_id: None, recovery_point_id: None, } @@ -10657,8 +10173,6 @@ impl InMageRcmTestFailoverInput { #[doc = "InMageRcm provider specific input for unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "A value indicating whether VM is to be shutdown."] #[serde(rename = "performShutdown")] pub perform_shutdown: String, @@ -10667,9 +10181,8 @@ pub struct InMageRcmUnplannedFailoverInput { pub recovery_point_id: Option, } impl InMageRcmUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, perform_shutdown: String) -> Self { + pub fn new(perform_shutdown: String) -> Self { Self { - unplanned_failover_provider_specific_input, perform_shutdown, recovery_point_id: None, } @@ -10678,48 +10191,30 @@ impl InMageRcmUnplannedFailoverInput { #[doc = "InMageRcm provider specific input to update appliance for replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateApplianceForReplicationProtectedItemInput { - #[serde(flatten)] - pub update_appliance_for_replication_protected_item_provider_specific_input: - UpdateApplianceForReplicationProtectedItemProviderSpecificInput, #[doc = "The run as account Id."] #[serde(rename = "runAsAccountId", default, skip_serializing_if = "Option::is_none")] pub run_as_account_id: Option, } impl InMageRcmUpdateApplianceForReplicationProtectedItemInput { - pub fn new( - update_appliance_for_replication_protected_item_provider_specific_input : UpdateApplianceForReplicationProtectedItemProviderSpecificInput, - ) -> Self { - Self { - update_appliance_for_replication_protected_item_provider_specific_input, - run_as_account_id: None, - } + pub fn new() -> Self { + Self { run_as_account_id: None } } } #[doc = "InMageRcm update protection container mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, #[doc = "A value indicating whether agent auto upgrade has to be enabled."] #[serde(rename = "enableAgentAutoUpgrade")] pub enable_agent_auto_upgrade: String, } impl InMageRcmUpdateContainerMappingInput { - pub fn new( - replication_provider_specific_update_container_mapping_input: ReplicationProviderSpecificUpdateContainerMappingInput, - enable_agent_auto_upgrade: String, - ) -> Self { - Self { - replication_provider_specific_update_container_mapping_input, - enable_agent_auto_upgrade, - } + pub fn new(enable_agent_auto_upgrade: String) -> Self { + Self { enable_agent_auto_upgrade } } } #[doc = "InMageRcm provider specific input to update replication protected item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageRcmUpdateReplicationProtectedItemInput { - #[serde(flatten)] - pub update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput, #[doc = "The target VM name."] #[serde(rename = "targetVmName", default, skip_serializing_if = "Option::is_none")] pub target_vm_name: Option, @@ -10760,9 +10255,8 @@ pub struct InMageRcmUpdateReplicationProtectedItemInput { pub license_type: Option, } impl InMageRcmUpdateReplicationProtectedItemInput { - pub fn new(update_replication_protected_item_provider_input: UpdateReplicationProtectedItemProviderInput) -> Self { + pub fn new() -> Self { Self { - update_replication_protected_item_provider_input, target_vm_name: None, target_vm_size: None, target_resource_group_id: None, @@ -10822,8 +10316,6 @@ pub mod in_mage_rcm_update_replication_protected_item_input { #[doc = "InMage provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageReplicationDetails { - #[serde(flatten)] - pub replication_provider_specific_settings: ReplicationProviderSpecificSettings, #[doc = "The active location of the VM. If the VM is being protected from Azure, this field will take values from { Azure, OnPrem }. If the VM is being protected between two data-centers, this field will be OnPrem always."] #[serde(rename = "activeSiteType", default, skip_serializing_if = "Option::is_none")] pub active_site_type: Option, @@ -10965,9 +10457,8 @@ pub struct InMageReplicationDetails { pub total_progress_health: Option, } impl InMageReplicationDetails { - pub fn new(replication_provider_specific_settings: ReplicationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - replication_provider_specific_settings, active_site_type: None, source_vm_cpu_count: None, source_vm_ram_size_in_mb: None, @@ -11014,8 +10505,6 @@ impl InMageReplicationDetails { #[doc = "InMageAzureV2 specific provider input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageReprotectInput { - #[serde(flatten)] - pub reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, #[doc = "The Master Target Id."] #[serde(rename = "masterTargetId")] pub master_target_id: String, @@ -11047,15 +10536,8 @@ pub struct InMageReprotectInput { pub disks_to_include: Vec, } impl InMageReprotectInput { - pub fn new( - reverse_replication_provider_specific_input: ReverseReplicationProviderSpecificInput, - master_target_id: String, - process_server_id: String, - retention_drive: String, - profile_id: String, - ) -> Self { + pub fn new(master_target_id: String, process_server_id: String, retention_drive: String, profile_id: String) -> Self { Self { - reverse_replication_provider_specific_input, master_target_id, process_server_id, retention_drive, @@ -11070,8 +10552,6 @@ impl InMageReprotectInput { #[doc = "Provider specific input for InMage test failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageTestFailoverInput { - #[serde(flatten)] - pub test_failover_provider_specific_input: TestFailoverProviderSpecificInput, #[doc = "The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -11080,9 +10560,8 @@ pub struct InMageTestFailoverInput { pub recovery_point_id: Option, } impl InMageTestFailoverInput { - pub fn new(test_failover_provider_specific_input: TestFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - test_failover_provider_specific_input, recovery_point_type: None, recovery_point_id: None, } @@ -11133,8 +10612,6 @@ pub mod in_mage_test_failover_input { #[doc = "Provider specific input for InMage unplanned failover."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InMageUnplannedFailoverInput { - #[serde(flatten)] - pub unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput, #[doc = "The recovery point type. Values from LatestTime, LatestTag or Custom. In the case of custom, the recovery point provided by RecoveryPointId will be used. In the other two cases, recovery point id will be ignored."] #[serde(rename = "recoveryPointType", default, skip_serializing_if = "Option::is_none")] pub recovery_point_type: Option, @@ -11143,9 +10620,8 @@ pub struct InMageUnplannedFailoverInput { pub recovery_point_id: Option, } impl InMageUnplannedFailoverInput { - pub fn new(unplanned_failover_provider_specific_input: UnplannedFailoverProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - unplanned_failover_provider_specific_input, recovery_point_type: None, recovery_point_id: None, } @@ -11638,8 +11114,6 @@ pub mod job_query_parameter { #[doc = "Model class for event details of a job status event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobStatusEventDetails { - #[serde(flatten)] - pub event_specific_details: EventSpecificDetails, #[doc = "Job arm id for the event."] #[serde(rename = "jobId", default, skip_serializing_if = "Option::is_none")] pub job_id: Option, @@ -11654,9 +11128,8 @@ pub struct JobStatusEventDetails { pub affected_object_type: Option, } impl JobStatusEventDetails { - pub fn new(event_specific_details: EventSpecificDetails) -> Self { + pub fn new() -> Self { Self { - event_specific_details, job_id: None, job_friendly_name: None, job_status: None, @@ -11667,18 +11140,13 @@ impl JobStatusEventDetails { #[doc = "This class represents a task which is actually a workflow so that one can navigate to its individual drill down."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct JobTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "This class contains the minimal job details required to navigate to the desired drill down."] #[serde(rename = "jobTask", default, skip_serializing_if = "Option::is_none")] pub job_task: Option, } impl JobTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { - Self { - task_type_details, - job_task: None, - } + pub fn new() -> Self { + Self { job_task: None } } } #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] @@ -11765,8 +11233,6 @@ impl LogicalNetworkProperties { #[doc = "This class represents the manual action task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ManualActionTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -11778,9 +11244,8 @@ pub struct ManualActionTaskDetails { pub observation: Option, } impl ManualActionTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, instructions: None, observation: None, @@ -11978,14 +11443,6 @@ impl MigrateInputProperties { Self { provider_specific_details } } } -#[doc = "Migrate provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MigrateProviderSpecificInput {} -impl MigrateProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12301,14 +11758,6 @@ impl MigrationItemsQueryParameter { Self::default() } } -#[doc = "Migration provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct MigrationProviderSpecificSettings {} -impl MigrationProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12507,14 +11956,6 @@ impl NetworkMappingCollection { Self::default() } } -#[doc = "Network Mapping fabric specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct NetworkMappingFabricSpecificSettings {} -impl NetworkMappingFabricSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12587,8 +12028,6 @@ impl NetworkProperties { #[doc = "New Protection profile input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NewProtectionProfile { - #[serde(flatten)] - pub protection_profile_custom_details: ProtectionProfileCustomDetails, #[doc = "The protection profile input."] #[serde(rename = "policyName")] pub policy_name: String, @@ -12606,13 +12045,8 @@ pub struct NewProtectionProfile { pub multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus, } impl NewProtectionProfile { - pub fn new( - protection_profile_custom_details: ProtectionProfileCustomDetails, - policy_name: String, - multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus, - ) -> Self { + pub fn new(policy_name: String, multi_vm_sync_status: new_protection_profile::MultiVmSyncStatus) -> Self { Self { - protection_profile_custom_details, policy_name, recovery_point_history: None, crash_consistent_frequency_in_minutes: None, @@ -12664,8 +12098,6 @@ pub mod new_protection_profile { #[doc = "Recovery virtual network input to create new virtual network from given source network."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct NewRecoveryVirtualNetwork { - #[serde(flatten)] - pub recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails, #[doc = "The name of the resource group to be used to create the recovery virtual network. If absent, target network would be created in the same resource group as target VM."] #[serde( rename = "recoveryVirtualNetworkResourceGroupName", @@ -12678,9 +12110,8 @@ pub struct NewRecoveryVirtualNetwork { pub recovery_virtual_network_name: Option, } impl NewRecoveryVirtualNetwork { - pub fn new(recovery_virtual_network_custom_details: RecoveryVirtualNetworkCustomDetails) -> Self { + pub fn new() -> Self { Self { - recovery_virtual_network_custom_details, recovery_virtual_network_resource_group_name: None, recovery_virtual_network_name: None, } @@ -12870,14 +12301,6 @@ impl PlannedFailoverInputProperties { Self::default() } } -#[doc = "Provider specific failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PlannedFailoverProviderSpecificFailoverInput {} -impl PlannedFailoverProviderSpecificFailoverInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12940,14 +12363,6 @@ impl PolicyProperties { Self::default() } } -#[doc = "Base class for Provider specific details for policies."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PolicyProviderSpecificDetails {} -impl PolicyProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -12965,14 +12380,6 @@ pub enum PolicyProviderSpecificDetailsUnion { InMageRcm(InMageRcmPolicyDetails), VMwareCbt(VmwareCbtPolicyDetails), } -#[doc = "Base class for provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct PolicyProviderSpecificInput {} -impl PolicyProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13857,14 +13264,6 @@ impl ProtectionContainerMappingProperties { Self::default() } } -#[doc = "Container mapping provider specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProtectionContainerMappingProviderSpecificDetails {} -impl ProtectionContainerMappingProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the class type. Overridden in derived classes."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -13904,14 +13303,6 @@ impl ProtectionContainerProperties { Self::default() } } -#[doc = "Protection Profile custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProtectionProfileCustomDetails {} -impl ProtectionProfileCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -13943,14 +13334,6 @@ impl ProviderError { Self::default() } } -#[doc = "Replication provider specific recovery point details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ProviderSpecificRecoveryPointDetails {} -impl ProviderSpecificRecoveryPointDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the provider type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14133,14 +13516,6 @@ pub mod rcm_proxy_details { } } } -#[doc = "Recovery Availability Set custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryAvailabilitySetCustomDetails {} -impl RecoveryAvailabilitySetCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -14164,8 +13539,6 @@ impl RecoveryPlan { #[doc = "Recovery plan A2A specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aDetails { - #[serde(flatten)] - pub recovery_plan_provider_specific_details: RecoveryPlanProviderSpecificDetails, #[doc = "The primary zone."] #[serde(rename = "primaryZone", default, skip_serializing_if = "Option::is_none")] pub primary_zone: Option, @@ -14180,9 +13553,8 @@ pub struct RecoveryPlanA2aDetails { pub recovery_extended_location: Option, } impl RecoveryPlanA2aDetails { - pub fn new(recovery_plan_provider_specific_details: RecoveryPlanProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_details, primary_zone: None, recovery_zone: None, primary_extended_location: None, @@ -14193,8 +13565,6 @@ impl RecoveryPlanA2aDetails { #[doc = "Recovery plan A2A failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType, @@ -14206,12 +13576,8 @@ pub struct RecoveryPlanA2aFailoverInput { pub multi_vm_sync_point_option: Option, } impl RecoveryPlanA2aFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_a2a_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, cloud_service_creation_option: None, multi_vm_sync_point_option: None, @@ -14306,8 +13672,6 @@ pub mod recovery_plan_a2a_failover_input { #[doc = "Recovery plan A2A input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanA2aInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_input: RecoveryPlanProviderSpecificInput, #[doc = "The primary zone."] #[serde(rename = "primaryZone", default, skip_serializing_if = "Option::is_none")] pub primary_zone: Option, @@ -14322,9 +13686,8 @@ pub struct RecoveryPlanA2aInput { pub recovery_extended_location: Option, } impl RecoveryPlanA2aInput { - pub fn new(recovery_plan_provider_specific_input: RecoveryPlanProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_input, primary_zone: None, recovery_zone: None, primary_extended_location: None, @@ -14363,14 +13726,6 @@ impl RecoveryPlanAction { } } } -#[doc = "Recovery plan action custom details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanActionDetails {} -impl RecoveryPlanActionDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the type of action details (see RecoveryPlanActionDetailsTypes enum for possible values)."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -14382,8 +13737,6 @@ pub enum RecoveryPlanActionDetailsUnion { #[doc = "Recovery plan Automation runbook action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanAutomationRunbookActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The runbook ARM Id."] #[serde(rename = "runbookId", default, skip_serializing_if = "Option::is_none")] pub runbook_id: Option, @@ -14395,12 +13748,8 @@ pub struct RecoveryPlanAutomationRunbookActionDetails { pub fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation, } impl RecoveryPlanAutomationRunbookActionDetails { - pub fn new( - recovery_plan_action_details: RecoveryPlanActionDetails, - fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation, - ) -> Self { + pub fn new(fabric_location: recovery_plan_automation_runbook_action_details::FabricLocation) -> Self { Self { - recovery_plan_action_details, runbook_id: None, timeout: None, fabric_location, @@ -14588,8 +13937,6 @@ pub enum RecoveryPlanGroupTaskDetailsUnion { #[doc = "Recovery plan HVR Azure failback input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanHyperVReplicaAzureFailbackInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The data sync option."] #[serde(rename = "dataSyncOption")] pub data_sync_option: recovery_plan_hyper_v_replica_azure_failback_input::DataSyncOption, @@ -14599,12 +13946,10 @@ pub struct RecoveryPlanHyperVReplicaAzureFailbackInput { } impl RecoveryPlanHyperVReplicaAzureFailbackInput { pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, data_sync_option: recovery_plan_hyper_v_replica_azure_failback_input::DataSyncOption, recovery_vm_creation_option: recovery_plan_hyper_v_replica_azure_failback_input::RecoveryVmCreationOption, ) -> Self { Self { - recovery_plan_provider_specific_failover_input, data_sync_option, recovery_vm_creation_option, } @@ -14690,8 +14035,6 @@ pub mod recovery_plan_hyper_v_replica_azure_failback_input { #[doc = "Recovery plan HVR Azure failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanHyperVReplicaAzureFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The primary KEK certificate PFX."] #[serde(rename = "primaryKekCertificatePfx", default, skip_serializing_if = "Option::is_none")] pub primary_kek_certificate_pfx: Option, @@ -14703,9 +14046,8 @@ pub struct RecoveryPlanHyperVReplicaAzureFailoverInput { pub recovery_point_type: Option, } impl RecoveryPlanHyperVReplicaAzureFailoverInput { - pub fn new(recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput) -> Self { + pub fn new() -> Self { Self { - recovery_plan_provider_specific_failover_input, primary_kek_certificate_pfx: None, secondary_kek_certificate_pfx: None, recovery_point_type: None, @@ -14759,8 +14101,6 @@ pub mod recovery_plan_hyper_v_replica_azure_failover_input { #[doc = "Recovery plan InMageAzureV2 failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageAzureV2FailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType, @@ -14769,12 +14109,8 @@ pub struct RecoveryPlanInMageAzureV2FailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageAzureV2FailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_azure_v2_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14829,21 +14165,13 @@ pub mod recovery_plan_in_mage_azure_v2_failover_input { #[doc = "Recovery plan InMage failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType, } impl RecoveryPlanInMageFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType, - ) -> Self { - Self { - recovery_plan_provider_specific_failover_input, - recovery_point_type, - } + pub fn new(recovery_point_type: recovery_plan_in_mage_failover_input::RecoveryPointType) -> Self { + Self { recovery_point_type } } } pub mod recovery_plan_in_mage_failover_input { @@ -14891,8 +14219,6 @@ pub mod recovery_plan_in_mage_failover_input { #[doc = "Recovery plan InMageRcmFailback failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageRcmFailbackFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType, @@ -14901,12 +14227,8 @@ pub struct RecoveryPlanInMageRcmFailbackFailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageRcmFailbackFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_rcm_failback_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -14955,8 +14277,6 @@ pub mod recovery_plan_in_mage_rcm_failback_failover_input { #[doc = "Recovery plan InMageRcm failover input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanInMageRcmFailoverInput { - #[serde(flatten)] - pub recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, #[doc = "The recovery point type."] #[serde(rename = "recoveryPointType")] pub recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType, @@ -14965,12 +14285,8 @@ pub struct RecoveryPlanInMageRcmFailoverInput { pub use_multi_vm_sync_point: Option, } impl RecoveryPlanInMageRcmFailoverInput { - pub fn new( - recovery_plan_provider_specific_failover_input: RecoveryPlanProviderSpecificFailoverInput, - recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType, - ) -> Self { + pub fn new(recovery_point_type: recovery_plan_in_mage_rcm_failover_input::RecoveryPointType) -> Self { Self { - recovery_plan_provider_specific_failover_input, recovery_point_type, use_multi_vm_sync_point: None, } @@ -15025,18 +14341,13 @@ pub mod recovery_plan_in_mage_rcm_failover_input { #[doc = "Recovery plan manual action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanManualActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The manual action description."] #[serde(default, skip_serializing_if = "Option::is_none")] pub description: Option, } impl RecoveryPlanManualActionDetails { - pub fn new(recovery_plan_action_details: RecoveryPlanActionDetails) -> Self { - Self { - recovery_plan_action_details, - description: None, - } + pub fn new() -> Self { + Self { description: None } } } #[doc = "Recovery plan planned failover input."] @@ -15204,14 +14515,6 @@ impl RecoveryPlanProtectedItem { Self::default() } } -#[doc = "Recovery plan provider specific details."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificDetails {} -impl RecoveryPlanProviderSpecificDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15219,14 +14522,6 @@ pub enum RecoveryPlanProviderSpecificDetailsUnion { #[serde(rename = "A2A")] A2a(RecoveryPlanA2aDetails), } -#[doc = "Recovery plan provider specific failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificFailoverInput {} -impl RecoveryPlanProviderSpecificFailoverInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15240,14 +14535,6 @@ pub enum RecoveryPlanProviderSpecificFailoverInputUnion { InMageRcmFailback(RecoveryPlanInMageRcmFailbackFailoverInput), InMageRcm(RecoveryPlanInMageRcmFailoverInput), } -#[doc = "Recovery plan provider specific input base class."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryPlanProviderSpecificInput {} -impl RecoveryPlanProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -15258,8 +14545,6 @@ pub enum RecoveryPlanProviderSpecificInputUnion { #[doc = "Recovery plan script action details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RecoveryPlanScriptActionDetails { - #[serde(flatten)] - pub recovery_plan_action_details: RecoveryPlanActionDetails, #[doc = "The script path."] pub path: String, #[doc = "The script timeout."] @@ -15270,13 +14555,8 @@ pub struct RecoveryPlanScriptActionDetails { pub fabric_location: recovery_plan_script_action_details::FabricLocation, } impl RecoveryPlanScriptActionDetails { - pub fn new( - recovery_plan_action_details: RecoveryPlanActionDetails, - path: String, - fabric_location: recovery_plan_script_action_details::FabricLocation, - ) -> Self { + pub fn new(path: String, fabric_location: recovery_plan_script_action_details::FabricLocation) -> Self { Self { - recovery_plan_action_details, path, timeout: None, fabric_location, @@ -15616,28 +14896,12 @@ impl RecoveryPointProperties { Self::default() } } -#[doc = "Recovery Proximity placement group custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryProximityPlacementGroupCustomDetails {} -impl RecoveryProximityPlacementGroupCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] pub enum RecoveryProximityPlacementGroupCustomDetailsUnion { Existing(ExistingRecoveryProximityPlacementGroup), } -#[doc = "Recovery Resource Group custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryResourceGroupCustomDetails {} -impl RecoveryResourceGroupCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -15766,14 +15030,6 @@ impl RecoveryServicesProviderProperties { Self::default() } } -#[doc = "Recovery Virtual network custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RecoveryVirtualNetworkCustomDetails {} -impl RecoveryVirtualNetworkCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -15805,14 +15061,6 @@ impl RemoveDisksInputProperties { Self::default() } } -#[doc = "Remove Disk provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct RemoveDisksProviderSpecificInput {} -impl RemoveDisksProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16059,13 +15307,10 @@ impl ReplicationEligibilityResultsProperties { } #[doc = "Replication group details. This will be used in case of San."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationGroupDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, -} +pub struct ReplicationGroupDetails {} impl ReplicationGroupDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { - Self { configuration_settings } + pub fn new() -> Self { + Self {} } } #[doc = "Replication protected item."] @@ -16290,14 +15535,6 @@ impl ReplicationProtectionIntentProperties { Self::default() } } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProtectionIntentProviderSpecificSettings {} -impl ReplicationProtectionIntentProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16317,14 +15554,6 @@ impl ReplicationProviderContainerUnmappingInput { Self::default() } } -#[doc = "Provider specific input for container creation operation."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificContainerCreationInput {} -impl ReplicationProviderSpecificContainerCreationInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16335,14 +15564,6 @@ pub enum ReplicationProviderSpecificContainerCreationInputUnion { A2aCrossClusterMigration(A2aCrossClusterMigrationContainerCreationInput), VMwareCbt(VMwareCbtContainerCreationInput), } -#[doc = "Provider specific input for pairing operations."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificContainerMappingInput {} -impl ReplicationProviderSpecificContainerMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16351,14 +15572,6 @@ pub enum ReplicationProviderSpecificContainerMappingInputUnion { A2a(A2aContainerMappingInput), VMwareCbt(VMwareCbtContainerMappingInput), } -#[doc = "Replication provider specific settings."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificSettings {} -impl ReplicationProviderSpecificSettings { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16376,14 +15589,6 @@ pub enum ReplicationProviderSpecificSettingsUnion { InMageRcm(InMageRcmReplicationDetails), InMage(InMageReplicationDetails), } -#[doc = "Provider specific input for update pairing operations."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReplicationProviderSpecificUpdateContainerMappingInput {} -impl ReplicationProviderSpecificUpdateContainerMappingInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16625,14 +15830,6 @@ impl ResumeReplicationInputProperties { Self { provider_specific_details } } } -#[doc = "Resume replication provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResumeReplicationProviderSpecificInput {} -impl ResumeReplicationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16662,14 +15859,6 @@ impl ResyncInputProperties { Self { provider_specific_details } } } -#[doc = "Resync provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResyncProviderSpecificInput {} -impl ResyncProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16724,14 +15913,6 @@ impl ReverseReplicationInputProperties { Self::default() } } -#[doc = "Provider specific reverse replication input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ReverseReplicationProviderSpecificInput {} -impl ReverseReplicationProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -16786,8 +15967,6 @@ impl RunAsAccount { #[doc = "This class represents the script action task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ScriptActionTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "The name."] #[serde(default, skip_serializing_if = "Option::is_none")] pub name: Option, @@ -16802,9 +15981,8 @@ pub struct ScriptActionTaskDetails { pub is_primary_side_script: Option, } impl ScriptActionTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, name: None, path: None, output: None, @@ -16836,14 +16014,6 @@ impl ServiceError { Self::default() } } -#[doc = "Storage account custom input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct StorageAccountCustomDetails {} -impl StorageAccountCustomDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "resourceType")] @@ -17117,14 +16287,6 @@ impl SwitchProtectionJobDetails { } } } -#[doc = "Provider specific switch protection input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SwitchProtectionProviderSpecificInput {} -impl SwitchProtectionProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets the Instance type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17159,14 +16321,6 @@ impl SwitchProviderInputProperties { Self::default() } } -#[doc = "Provider specific switch provider input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct SwitchProviderProviderSpecificInput {} -impl SwitchProviderProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17267,14 +16421,6 @@ impl TargetComputeSizeProperties { Self::default() } } -#[doc = "Task details based on specific task type."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TaskTypeDetails {} -impl TaskTypeDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of task details."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17383,14 +16529,6 @@ impl TestFailoverJobDetails { } } } -#[doc = "Provider specific test failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TestFailoverProviderSpecificInput {} -impl TestFailoverProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17448,14 +16586,6 @@ impl TestMigrateInputProperties { Self { provider_specific_details } } } -#[doc = "Test migrate provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct TestMigrateProviderSpecificInput {} -impl TestMigrateProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17491,14 +16621,6 @@ impl UnplannedFailoverInputProperties { Self::default() } } -#[doc = "Provider specific unplanned failover input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UnplannedFailoverProviderSpecificInput {} -impl UnplannedFailoverProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17542,14 +16664,6 @@ impl UpdateApplianceForReplicationProtectedItemInputProperties { } } } -#[doc = "Update replication protected item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateApplianceForReplicationProtectedItemProviderSpecificInput {} -impl UpdateApplianceForReplicationProtectedItemProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17598,14 +16712,6 @@ impl UpdateMigrationItemInputProperties { Self { provider_specific_details } } } -#[doc = "Update migration item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateMigrationItemProviderSpecificInput {} -impl UpdateMigrationItemProviderSpecificInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -17840,14 +16946,6 @@ pub mod update_replication_protected_item_input_properties { } } } -#[doc = "Update replication protected item provider specific input."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct UpdateReplicationProtectedItemProviderInput {} -impl UpdateReplicationProtectedItemProviderInput { - pub fn new() -> Self { - Self {} - } -} #[doc = "The class type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "instanceType")] @@ -18109,22 +17207,15 @@ impl VmNicInputDetails { } #[doc = "VMwareCbt container creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VMwareCbtContainerCreationInput { - #[serde(flatten)] - pub replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput, -} +pub struct VMwareCbtContainerCreationInput {} impl VMwareCbtContainerCreationInput { - pub fn new(replication_provider_specific_container_creation_input: ReplicationProviderSpecificContainerCreationInput) -> Self { - Self { - replication_provider_specific_container_creation_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "VMwareCbt container mapping input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtContainerMappingInput { - #[serde(flatten)] - pub replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, #[doc = "The target key vault ARM Id."] #[serde(rename = "keyVaultId", default, skip_serializing_if = "Option::is_none")] pub key_vault_id: Option, @@ -18145,13 +17236,8 @@ pub struct VMwareCbtContainerMappingInput { pub target_location: String, } impl VMwareCbtContainerMappingInput { - pub fn new( - replication_provider_specific_container_mapping_input: ReplicationProviderSpecificContainerMappingInput, - storage_account_id: String, - target_location: String, - ) -> Self { + pub fn new(storage_account_id: String, target_location: String) -> Self { Self { - replication_provider_specific_container_mapping_input, key_vault_id: None, key_vault_uri: None, storage_account_id, @@ -18243,8 +17329,6 @@ pub mod v_mware_cbt_disk_input { #[doc = "VMwareCbt specific enable migration input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtEnableMigrationInput { - #[serde(flatten)] - pub enable_migration_provider_specific_input: EnableMigrationProviderSpecificInput, #[doc = "The ARM Id of the VM discovered in VMware."] #[serde(rename = "vmwareMachineId")] pub vmware_machine_id: String, @@ -18323,7 +17407,6 @@ pub struct VMwareCbtEnableMigrationInput { } impl VMwareCbtEnableMigrationInput { pub fn new( - enable_migration_provider_specific_input: EnableMigrationProviderSpecificInput, vmware_machine_id: String, disks_to_include: Vec, data_mover_run_as_account_id: String, @@ -18332,7 +17415,6 @@ impl VMwareCbtEnableMigrationInput { target_network_id: String, ) -> Self { Self { - enable_migration_provider_specific_input, vmware_machine_id, disks_to_include, license_type: None, @@ -18449,25 +17531,18 @@ pub mod v_mware_cbt_enable_migration_input { #[doc = "Event details for VMwareCbt provider."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtEventDetails { - #[serde(flatten)] - pub event_provider_specific_details: EventProviderSpecificDetails, #[doc = "The migration item name."] #[serde(rename = "migrationItemName", default, skip_serializing_if = "Option::is_none")] pub migration_item_name: Option, } impl VMwareCbtEventDetails { - pub fn new(event_provider_specific_details: EventProviderSpecificDetails) -> Self { - Self { - event_provider_specific_details, - migration_item_name: None, - } + pub fn new() -> Self { + Self { migration_item_name: None } } } #[doc = "VMwareCbt specific migrate input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtMigrateInput { - #[serde(flatten)] - pub migrate_provider_specific_input: MigrateProviderSpecificInput, #[doc = "A value indicating whether VM is to be shutdown."] #[serde(rename = "performShutdown")] pub perform_shutdown: String, @@ -18476,9 +17551,8 @@ pub struct VMwareCbtMigrateInput { pub os_upgrade_version: Option, } impl VMwareCbtMigrateInput { - pub fn new(migrate_provider_specific_input: MigrateProviderSpecificInput, perform_shutdown: String) -> Self { + pub fn new(perform_shutdown: String) -> Self { Self { - migrate_provider_specific_input, perform_shutdown, os_upgrade_version: None, } @@ -18487,8 +17561,6 @@ impl VMwareCbtMigrateInput { #[doc = "VMwareCbt provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtMigrationDetails { - #[serde(flatten)] - pub migration_provider_specific_settings: MigrationProviderSpecificSettings, #[doc = "The ARM Id of the VM discovered in VMware."] #[serde(rename = "vmwareMachineId", default, skip_serializing_if = "Option::is_none")] pub vmware_machine_id: Option, @@ -18650,9 +17722,8 @@ pub struct VMwareCbtMigrationDetails { pub operation_name: Option, } impl VMwareCbtMigrationDetails { - pub fn new(migration_provider_specific_settings: MigrationProviderSpecificSettings) -> Self { + pub fn new() -> Self { Self { - migration_provider_specific_settings, vmware_machine_id: None, os_type: None, os_name: None, @@ -18958,8 +18029,6 @@ impl VMwareCbtNicInput { #[doc = "VMware Cbt policy creation input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtPolicyCreationInput { - #[serde(flatten)] - pub policy_provider_specific_input: PolicyProviderSpecificInput, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -18971,9 +18040,8 @@ pub struct VMwareCbtPolicyCreationInput { pub app_consistent_frequency_in_minutes: Option, } impl VMwareCbtPolicyCreationInput { - pub fn new(policy_provider_specific_input: PolicyProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_input, recovery_point_history_in_minutes: None, crash_consistent_frequency_in_minutes: None, app_consistent_frequency_in_minutes: None, @@ -19082,8 +18150,6 @@ pub mod v_mware_cbt_protected_disk_details { #[doc = "VMwareCbt provider specific container mapping details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtProtectionContainerMappingDetails { - #[serde(flatten)] - pub protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails, #[doc = "The target key vault ARM Id."] #[serde(rename = "keyVaultId", default, skip_serializing_if = "Option::is_none")] pub key_vault_id: Option, @@ -19115,9 +18181,8 @@ pub struct VMwareCbtProtectionContainerMappingDetails { pub excluded_skus: Vec, } impl VMwareCbtProtectionContainerMappingDetails { - pub fn new(protection_container_mapping_provider_specific_details: ProtectionContainerMappingProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - protection_container_mapping_provider_specific_details, key_vault_id: None, key_vault_uri: None, storage_account_id: None, @@ -19132,16 +18197,13 @@ impl VMwareCbtProtectionContainerMappingDetails { #[doc = "VMwareCbt specific resume replication input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtResumeReplicationInput { - #[serde(flatten)] - pub resume_replication_provider_specific_input: ResumeReplicationProviderSpecificInput, #[doc = "A value indicating whether Migration resources to be deleted."] #[serde(rename = "deleteMigrationResources", default, skip_serializing_if = "Option::is_none")] pub delete_migration_resources: Option, } impl VMwareCbtResumeReplicationInput { - pub fn new(resume_replication_provider_specific_input: ResumeReplicationProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - resume_replication_provider_specific_input, delete_migration_resources: None, } } @@ -19149,18 +18211,13 @@ impl VMwareCbtResumeReplicationInput { #[doc = "VMwareCbt specific resync input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtResyncInput { - #[serde(flatten)] - pub resync_provider_specific_input: ResyncProviderSpecificInput, #[doc = "A value indicating whether CBT is to be reset."] #[serde(rename = "skipCbtReset")] pub skip_cbt_reset: String, } impl VMwareCbtResyncInput { - pub fn new(resync_provider_specific_input: ResyncProviderSpecificInput, skip_cbt_reset: String) -> Self { - Self { - resync_provider_specific_input, - skip_cbt_reset, - } + pub fn new(skip_cbt_reset: String) -> Self { + Self { skip_cbt_reset } } } #[doc = "VMwareCbt security profile input."] @@ -19237,8 +18294,6 @@ pub mod v_mware_cbt_security_profile_properties { #[doc = "VMwareCbt specific test migrate input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtTestMigrateInput { - #[serde(flatten)] - pub test_migrate_provider_specific_input: TestMigrateProviderSpecificInput, #[doc = "The recovery point Id."] #[serde(rename = "recoveryPointId")] pub recovery_point_id: String, @@ -19258,13 +18313,8 @@ pub struct VMwareCbtTestMigrateInput { pub os_upgrade_version: Option, } impl VMwareCbtTestMigrateInput { - pub fn new( - test_migrate_provider_specific_input: TestMigrateProviderSpecificInput, - recovery_point_id: String, - network_id: String, - ) -> Self { + pub fn new(recovery_point_id: String, network_id: String) -> Self { Self { - test_migrate_provider_specific_input, recovery_point_id, network_id, vm_nics: Vec::new(), @@ -19297,8 +18347,6 @@ impl VMwareCbtUpdateDiskInput { #[doc = "VMwareCbt specific update migration item input."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareCbtUpdateMigrationItemInput { - #[serde(flatten)] - pub update_migration_item_provider_specific_input: UpdateMigrationItemProviderSpecificInput, #[doc = "The target VM name."] #[serde(rename = "targetVmName", default, skip_serializing_if = "Option::is_none")] pub target_vm_name: Option, @@ -19362,9 +18410,8 @@ pub struct VMwareCbtUpdateMigrationItemInput { pub target_nic_tags: Option, } impl VMwareCbtUpdateMigrationItemInput { - pub fn new(update_migration_item_provider_specific_input: UpdateMigrationItemProviderSpecificInput) -> Self { + pub fn new() -> Self { Self { - update_migration_item_provider_specific_input, target_vm_name: None, target_vm_size: None, target_resource_group_id: None, @@ -19473,8 +18520,6 @@ pub mod v_mware_cbt_update_migration_item_input { #[doc = "Store the fabric details specific to the VMware fabric."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The list of Process Servers associated with the fabric."] #[serde( rename = "processServers", @@ -19596,9 +18641,8 @@ pub struct VMwareDetails { pub switch_provider_blocking_error_details: Vec, } impl VMwareDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, process_servers: Vec::new(), master_target_servers: Vec::new(), run_as_accounts: Vec::new(), @@ -19638,8 +18682,6 @@ impl VMwareDetails { #[doc = "VMwareV2 fabric provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareV2FabricCreationInput { - #[serde(flatten)] - pub fabric_specific_creation_input: FabricSpecificCreationInput, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -19651,9 +18693,8 @@ pub struct VMwareV2FabricCreationInput { pub migration_solution_id: String, } impl VMwareV2FabricCreationInput { - pub fn new(fabric_specific_creation_input: FabricSpecificCreationInput, migration_solution_id: String) -> Self { + pub fn new(migration_solution_id: String) -> Self { Self { - fabric_specific_creation_input, vmware_site_id: None, physical_site_id: None, migration_solution_id, @@ -19663,8 +18704,6 @@ impl VMwareV2FabricCreationInput { #[doc = "VMwareV2 fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareV2FabricSpecificDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, #[doc = "The ARM Id of the VMware site."] #[serde(rename = "vmwareSiteId", default, skip_serializing_if = "Option::is_none")] pub vmware_site_id: Option, @@ -19693,9 +18732,8 @@ pub struct VMwareV2FabricSpecificDetails { pub process_servers: Vec, } impl VMwareV2FabricSpecificDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { + pub fn new() -> Self { Self { - fabric_specific_details, vmware_site_id: None, physical_site_id: None, migration_solution_id: None, @@ -19709,8 +18747,6 @@ impl VMwareV2FabricSpecificDetails { #[doc = "VMware provider specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VMwareVirtualMachineDetails { - #[serde(flatten)] - pub configuration_settings: ConfigurationSettings, #[doc = "The ID generated by the InMage agent after it gets installed on guest. This is the ID to be used during InMage CreateProtection."] #[serde(rename = "agentGeneratedId", default, skip_serializing_if = "Option::is_none")] pub agent_generated_id: Option, @@ -19753,9 +18789,8 @@ pub struct VMwareVirtualMachineDetails { pub validation_errors: Vec, } impl VMwareVirtualMachineDetails { - pub fn new(configuration_settings: ConfigurationSettings) -> Self { + pub fn new() -> Self { Self { - configuration_settings, agent_generated_id: None, agent_installed: None, os_type: None, @@ -19956,8 +18991,6 @@ pub mod version_details { #[doc = "This class represents the virtual machine task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineTaskDetails { - #[serde(flatten)] - pub job_task_details: JobTaskDetails, #[doc = "The skipped reason."] #[serde(rename = "skippedReason", default, skip_serializing_if = "Option::is_none")] pub skipped_reason: Option, @@ -19966,9 +18999,8 @@ pub struct VirtualMachineTaskDetails { pub skipped_reason_string: Option, } impl VirtualMachineTaskDetails { - pub fn new(job_task_details: JobTaskDetails) -> Self { + pub fn new() -> Self { Self { - job_task_details, skipped_reason: None, skipped_reason_string: None, } @@ -19977,8 +19009,6 @@ impl VirtualMachineTaskDetails { #[doc = "This class represents the vm NicUpdates task details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmNicUpdatesTaskDetails { - #[serde(flatten)] - pub task_type_details: TaskTypeDetails, #[doc = "Virtual machine Id."] #[serde(rename = "vmId", default, skip_serializing_if = "Option::is_none")] pub vm_id: Option, @@ -19990,9 +19020,8 @@ pub struct VmNicUpdatesTaskDetails { pub name: Option, } impl VmNicUpdatesTaskDetails { - pub fn new(task_type_details: TaskTypeDetails) -> Self { + pub fn new() -> Self { Self { - task_type_details, vm_id: None, nic_id: None, name: None, @@ -20001,91 +19030,58 @@ impl VmNicUpdatesTaskDetails { } #[doc = "VMM fabric specific details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmDetails { - #[serde(flatten)] - pub fabric_specific_details: FabricSpecificDetails, -} +pub struct VmmDetails {} impl VmmDetails { - pub fn new(fabric_specific_details: FabricSpecificDetails) -> Self { - Self { fabric_specific_details } + pub fn new() -> Self { + Self {} } } #[doc = "Create network mappings input properties/behavior specific to Vmm to Azure Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, -} +pub struct VmmToAzureCreateNetworkMappingInput {} impl VmmToAzureCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput) -> Self { - Self { - fabric_specific_create_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "E2A Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, -} +pub struct VmmToAzureNetworkMappingSettings {} impl VmmToAzureNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { - Self { - network_mapping_fabric_specific_settings, - } + pub fn new() -> Self { + Self {} } } #[doc = "Update network mappings input properties/behavior specific to vmm to azure."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToAzureUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, -} +pub struct VmmToAzureUpdateNetworkMappingInput {} impl VmmToAzureUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "Create network mappings input properties/behavior specific to vmm to vmm Network mapping."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmCreateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput, -} +pub struct VmmToVmmCreateNetworkMappingInput {} impl VmmToVmmCreateNetworkMappingInput { - pub fn new(fabric_specific_create_network_mapping_input: FabricSpecificCreateNetworkMappingInput) -> Self { - Self { - fabric_specific_create_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "E2E Network Mapping fabric specific settings."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmNetworkMappingSettings { - #[serde(flatten)] - pub network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings, -} +pub struct VmmToVmmNetworkMappingSettings {} impl VmmToVmmNetworkMappingSettings { - pub fn new(network_mapping_fabric_specific_settings: NetworkMappingFabricSpecificSettings) -> Self { - Self { - network_mapping_fabric_specific_settings, - } + pub fn new() -> Self { + Self {} } } #[doc = "Update network mappings input properties/behavior specific to vmm to vmm."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct VmmToVmmUpdateNetworkMappingInput { - #[serde(flatten)] - pub fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput, -} +pub struct VmmToVmmUpdateNetworkMappingInput {} impl VmmToVmmUpdateNetworkMappingInput { - pub fn new(fabric_specific_update_network_mapping_input: FabricSpecificUpdateNetworkMappingInput) -> Self { - Self { - fabric_specific_update_network_mapping_input, - } + pub fn new() -> Self { + Self {} } } #[doc = "VMM fabric provider specific VM settings."] @@ -20104,8 +19100,6 @@ impl VmmVirtualMachineDetails { #[doc = "VMware Cbt specific policy details."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmwareCbtPolicyDetails { - #[serde(flatten)] - pub policy_provider_specific_details: PolicyProviderSpecificDetails, #[doc = "The duration in minutes until which the recovery points need to be stored."] #[serde(rename = "recoveryPointHistoryInMinutes", default, skip_serializing_if = "Option::is_none")] pub recovery_point_history_in_minutes: Option, @@ -20117,9 +19111,8 @@ pub struct VmwareCbtPolicyDetails { pub crash_consistent_frequency_in_minutes: Option, } impl VmwareCbtPolicyDetails { - pub fn new(policy_provider_specific_details: PolicyProviderSpecificDetails) -> Self { + pub fn new() -> Self { Self { - policy_provider_specific_details, recovery_point_history_in_minutes: None, app_consistent_frequency_in_minutes: None, crash_consistent_frequency_in_minutes: None, diff --git a/services/mgmt/redhatopenshift/src/package_2022_09_04/models.rs b/services/mgmt/redhatopenshift/src/package_2022_09_04/models.rs index 9085a28ec2..5ca88ee5dd 100644 --- a/services/mgmt/redhatopenshift/src/package_2022_09_04/models.rs +++ b/services/mgmt/redhatopenshift/src/package_2022_09_04/models.rs @@ -216,8 +216,6 @@ impl IngressProfile { #[doc = "MachinePool represents a MachinePool"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MachinePool { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "MachinePoolProperties represents the properties of a MachinePool"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -457,8 +455,6 @@ impl OpenShiftClusterUpdate { #[doc = "OpenShiftVersion represents an OpenShift version that can be installed."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OpenShiftVersion { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "OpenShiftVersionProperties represents the properties of an OpenShiftVersion."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -596,8 +592,6 @@ impl Resource { #[doc = "Secret represents a secret."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Secret { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SecretProperties represents the properties of a Secret"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -680,8 +674,6 @@ impl ServicePrincipalProfile { #[doc = "SyncIdentityProvider represents a SyncIdentityProvider"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SyncIdentityProvider { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SyncSetProperties represents the properties of a SyncSet"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -748,8 +740,6 @@ impl SyncIdentityProviderUpdate { #[doc = "SyncSet represents a SyncSet for an Azure Red Hat OpenShift Cluster."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SyncSet { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SyncSetProperties represents the properties of a SyncSet"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/redhatopenshift/src/package_2023_04_01/models.rs b/services/mgmt/redhatopenshift/src/package_2023_04_01/models.rs index ea6d7a4585..60b90ef7a3 100644 --- a/services/mgmt/redhatopenshift/src/package_2023_04_01/models.rs +++ b/services/mgmt/redhatopenshift/src/package_2023_04_01/models.rs @@ -216,8 +216,6 @@ impl IngressProfile { #[doc = "MachinePool represents a MachinePool"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MachinePool { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "MachinePoolProperties represents the properties of a MachinePool"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -460,8 +458,6 @@ impl OpenShiftClusterUpdate { #[doc = "OpenShiftVersion represents an OpenShift version that can be installed."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OpenShiftVersion { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "OpenShiftVersionProperties represents the properties of an OpenShiftVersion."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -636,8 +632,6 @@ impl Resource { #[doc = "Secret represents a secret."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Secret { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SecretProperties represents the properties of a Secret"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -720,8 +714,6 @@ impl ServicePrincipalProfile { #[doc = "SyncIdentityProvider represents a SyncIdentityProvider"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SyncIdentityProvider { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SyncSetProperties represents the properties of a SyncSet"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -788,8 +780,6 @@ impl SyncIdentityProviderUpdate { #[doc = "SyncSet represents a SyncSet for an Azure Red Hat OpenShift Cluster."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SyncSet { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SyncSetProperties represents the properties of a SyncSet"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/redhatopenshift/src/package_preview_2023_07/models.rs b/services/mgmt/redhatopenshift/src/package_preview_2023_07/models.rs index c9ebb8802d..583f61a18e 100644 --- a/services/mgmt/redhatopenshift/src/package_preview_2023_07/models.rs +++ b/services/mgmt/redhatopenshift/src/package_preview_2023_07/models.rs @@ -267,8 +267,6 @@ impl LoadBalancerProfile { #[doc = "MachinePool represents a MachinePool"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MachinePool { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "MachinePoolProperties represents the properties of a MachinePool"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -526,8 +524,6 @@ impl OpenShiftClusterUpdate { #[doc = "OpenShiftVersion represents an OpenShift version that can be installed."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct OpenShiftVersion { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "OpenShiftVersionProperties represents the properties of an OpenShiftVersion."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -726,8 +722,6 @@ impl Resource { #[doc = "Secret represents a secret."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Secret { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SecretProperties represents the properties of a Secret"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -810,8 +804,6 @@ impl ServicePrincipalProfile { #[doc = "SyncIdentityProvider represents a SyncIdentityProvider"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SyncIdentityProvider { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SyncSetProperties represents the properties of a SyncSet"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -878,8 +870,6 @@ impl SyncIdentityProviderUpdate { #[doc = "SyncSet represents a SyncSet for an Azure Red Hat OpenShift Cluster."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SyncSet { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "SyncSetProperties represents the properties of a SyncSet"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/redis/src/package_2022_05/models.rs b/services/mgmt/redis/src/package_2022_05/models.rs index ab4f8918de..a34a3dbf98 100644 --- a/services/mgmt/redis/src/package_2022_05/models.rs +++ b/services/mgmt/redis/src/package_2022_05/models.rs @@ -850,17 +850,12 @@ impl RedisCreateProperties { #[doc = "A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedisFirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Specifies a range of IP addresses permitted to connect to the cache"] pub properties: RedisFirewallRuleProperties, } impl RedisFirewallRule { pub fn new(properties: RedisFirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Parameters required for creating a firewall rule on redis cache. (Note, you can just use the FirewallRule type instead now.)"] @@ -1031,8 +1026,6 @@ impl RedisLinkedServerProperties { #[doc = "Response to put/get linked server (with properties) for Redis cache."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RedisLinkedServerWithProperties { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a linked server to be returned in get/put response"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1095,8 +1088,6 @@ impl RedisListResult { #[doc = "Response to put/get patch schedules for Redis cache."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedisPatchSchedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "List of patch schedules for a Redis cache."] pub properties: ScheduleEntries, #[doc = "The geo-location where the resource lives"] @@ -1106,7 +1097,6 @@ pub struct RedisPatchSchedule { impl RedisPatchSchedule { pub fn new(properties: ScheduleEntries) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, location: None, } diff --git a/services/mgmt/redis/src/package_2022_06/models.rs b/services/mgmt/redis/src/package_2022_06/models.rs index 39df914717..69d2d82c68 100644 --- a/services/mgmt/redis/src/package_2022_06/models.rs +++ b/services/mgmt/redis/src/package_2022_06/models.rs @@ -850,17 +850,12 @@ impl RedisCreateProperties { #[doc = "A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedisFirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Specifies a range of IP addresses permitted to connect to the cache"] pub properties: RedisFirewallRuleProperties, } impl RedisFirewallRule { pub fn new(properties: RedisFirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Parameters required for creating a firewall rule on redis cache. (Note, you can just use the FirewallRule type instead now.)"] @@ -1039,8 +1034,6 @@ impl RedisLinkedServerProperties { #[doc = "Response to put/get linked server (with properties) for Redis cache."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RedisLinkedServerWithProperties { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a linked server to be returned in get/put response"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1103,8 +1096,6 @@ impl RedisListResult { #[doc = "Response to put/get patch schedules for Redis cache."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedisPatchSchedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "List of patch schedules for a Redis cache."] pub properties: ScheduleEntries, #[doc = "The geo-location where the resource lives"] @@ -1114,7 +1105,6 @@ pub struct RedisPatchSchedule { impl RedisPatchSchedule { pub fn new(properties: ScheduleEntries) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, location: None, } diff --git a/services/mgmt/redis/src/package_2023_04/models.rs b/services/mgmt/redis/src/package_2023_04/models.rs index 02d6281942..5a7aefc8f1 100644 --- a/services/mgmt/redis/src/package_2023_04/models.rs +++ b/services/mgmt/redis/src/package_2023_04/models.rs @@ -861,17 +861,12 @@ impl RedisCreateProperties { #[doc = "A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedisFirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Specifies a range of IP addresses permitted to connect to the cache"] pub properties: RedisFirewallRuleProperties, } impl RedisFirewallRule { pub fn new(properties: RedisFirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Parameters required for creating a firewall rule on redis cache. (Note, you can just use the FirewallRule type instead now.)"] @@ -1050,8 +1045,6 @@ impl RedisLinkedServerProperties { #[doc = "Response to put/get linked server (with properties) for Redis cache."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RedisLinkedServerWithProperties { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a linked server to be returned in get/put response"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1114,8 +1107,6 @@ impl RedisListResult { #[doc = "Response to put/get patch schedules for Redis cache."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedisPatchSchedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "List of patch schedules for a Redis cache."] pub properties: ScheduleEntries, #[doc = "The geo-location where the resource lives"] @@ -1125,7 +1116,6 @@ pub struct RedisPatchSchedule { impl RedisPatchSchedule { pub fn new(properties: ScheduleEntries) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, location: None, } diff --git a/services/mgmt/redis/src/package_2023_08/models.rs b/services/mgmt/redis/src/package_2023_08/models.rs index 80c8f8a036..2ef8eec853 100644 --- a/services/mgmt/redis/src/package_2023_08/models.rs +++ b/services/mgmt/redis/src/package_2023_08/models.rs @@ -618,8 +618,6 @@ impl RedisAccessKeys { #[doc = "Response to get/put access policy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RedisCacheAccessPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "All properties of an access policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -632,8 +630,6 @@ impl RedisCacheAccessPolicy { #[doc = "Response to an operation on access policy assignment"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RedisCacheAccessPolicyAssignment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for an access policy assignment"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1162,17 +1158,12 @@ impl RedisCreateProperties { #[doc = "A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedisFirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Specifies a range of IP addresses permitted to connect to the cache"] pub properties: RedisFirewallRuleProperties, } impl RedisFirewallRule { pub fn new(properties: RedisFirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Parameters required for creating a firewall rule on redis cache. (Note, you can just use the FirewallRule type instead now.)"] @@ -1351,8 +1342,6 @@ impl RedisLinkedServerProperties { #[doc = "Response to put/get linked server (with properties) for Redis cache."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RedisLinkedServerWithProperties { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a linked server to be returned in get/put response"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1415,8 +1404,6 @@ impl RedisListResult { #[doc = "Response to put/get patch schedules for Redis cache."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedisPatchSchedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "List of patch schedules for a Redis cache."] pub properties: ScheduleEntries, #[doc = "The geo-location where the resource lives"] @@ -1426,7 +1413,6 @@ pub struct RedisPatchSchedule { impl RedisPatchSchedule { pub fn new(properties: ScheduleEntries) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, location: None, } diff --git a/services/mgmt/redis/src/package_preview_2023_05/models.rs b/services/mgmt/redis/src/package_preview_2023_05/models.rs index 667ee212fc..d0ba284192 100644 --- a/services/mgmt/redis/src/package_preview_2023_05/models.rs +++ b/services/mgmt/redis/src/package_preview_2023_05/models.rs @@ -618,8 +618,6 @@ impl RedisAccessKeys { #[doc = "Response to get/put access policy."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RedisCacheAccessPolicy { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "All properties of an access policy."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -632,8 +630,6 @@ impl RedisCacheAccessPolicy { #[doc = "Response to an operation on access policy assignment"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RedisCacheAccessPolicyAssignment { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties for an access policy assignment"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1122,17 +1118,12 @@ impl RedisCreateProperties { #[doc = "A firewall rule on a redis cache has a name, and describes a contiguous range of IP addresses permitted to connect"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedisFirewallRule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Specifies a range of IP addresses permitted to connect to the cache"] pub properties: RedisFirewallRuleProperties, } impl RedisFirewallRule { pub fn new(properties: RedisFirewallRuleProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "Parameters required for creating a firewall rule on redis cache. (Note, you can just use the FirewallRule type instead now.)"] @@ -1311,8 +1302,6 @@ impl RedisLinkedServerProperties { #[doc = "Response to put/get linked server (with properties) for Redis cache."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct RedisLinkedServerWithProperties { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of a linked server to be returned in get/put response"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1375,8 +1364,6 @@ impl RedisListResult { #[doc = "Response to put/get patch schedules for Redis cache."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct RedisPatchSchedule { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "List of patch schedules for a Redis cache."] pub properties: ScheduleEntries, #[doc = "The geo-location where the resource lives"] @@ -1386,7 +1373,6 @@ pub struct RedisPatchSchedule { impl RedisPatchSchedule { pub fn new(properties: ScheduleEntries) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, location: None, } diff --git a/services/mgmt/redisenterprise/src/package_2023_07/models.rs b/services/mgmt/redisenterprise/src/package_2023_07/models.rs index e1837d1a40..902ad9adcc 100644 --- a/services/mgmt/redisenterprise/src/package_2023_07/models.rs +++ b/services/mgmt/redisenterprise/src/package_2023_07/models.rs @@ -169,8 +169,6 @@ impl ClusterUpdate { #[doc = "Describes a database on the RedisEnterprise cluster"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/redisenterprise/src/package_preview_2021_02/models.rs b/services/mgmt/redisenterprise/src/package_preview_2021_02/models.rs index 25edeae4a8..1968146fca 100644 --- a/services/mgmt/redisenterprise/src/package_preview_2021_02/models.rs +++ b/services/mgmt/redisenterprise/src/package_preview_2021_02/models.rs @@ -169,8 +169,6 @@ impl ClusterUpdate { #[doc = "Describes a database on the RedisEnterprise cluster"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/redisenterprise/src/package_preview_2022_11/models.rs b/services/mgmt/redisenterprise/src/package_preview_2022_11/models.rs index c3020596d2..bb06072fe3 100644 --- a/services/mgmt/redisenterprise/src/package_preview_2022_11/models.rs +++ b/services/mgmt/redisenterprise/src/package_preview_2022_11/models.rs @@ -286,8 +286,6 @@ impl ClusterUpdate { #[doc = "Describes a database on the RedisEnterprise cluster"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/redisenterprise/src/package_preview_2023_03/models.rs b/services/mgmt/redisenterprise/src/package_preview_2023_03/models.rs index fd11785523..471a35c3b4 100644 --- a/services/mgmt/redisenterprise/src/package_preview_2023_03/models.rs +++ b/services/mgmt/redisenterprise/src/package_preview_2023_03/models.rs @@ -286,8 +286,6 @@ impl ClusterUpdate { #[doc = "Describes a database on the RedisEnterprise cluster"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/redisenterprise/src/package_preview_2023_08/models.rs b/services/mgmt/redisenterprise/src/package_preview_2023_08/models.rs index 7abb17a8b2..7645af46d8 100644 --- a/services/mgmt/redisenterprise/src/package_preview_2023_08/models.rs +++ b/services/mgmt/redisenterprise/src/package_preview_2023_08/models.rs @@ -300,8 +300,6 @@ impl ClusterUpdate { #[doc = "Describes a database on the RedisEnterprise cluster"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Database { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of RedisEnterprise databases, as opposed to general resource properties like location, tags"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/reservations/src/package_2022_11/models.rs b/services/mgmt/reservations/src/package_2022_11/models.rs index a6bb7884fb..97e4ae2125 100644 --- a/services/mgmt/reservations/src/package_2022_11/models.rs +++ b/services/mgmt/reservations/src/package_2022_11/models.rs @@ -2593,8 +2593,6 @@ pub type ReservationQuantity = i32; #[doc = "The definition of the reservation."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ReservationResponse { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The Azure region where the reserved resource lives."] #[serde(default, skip_serializing_if = "Option::is_none")] pub location: Option, diff --git a/services/mgmt/resourcehealth/src/package_2022_05/models.rs b/services/mgmt/resourcehealth/src/package_2022_05/models.rs index 911010ecd8..c1ca46f421 100644 --- a/services/mgmt/resourcehealth/src/package_2022_05/models.rs +++ b/services/mgmt/resourcehealth/src/package_2022_05/models.rs @@ -287,8 +287,6 @@ impl AvailabilityStatusListResult { #[doc = "Service health event"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Event { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -662,8 +660,6 @@ pub mod event { #[doc = "Impacted resource for an event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EventImpactedResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of impacted resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -797,8 +793,6 @@ impl ImpactedRegion { #[doc = "impactedResource with health status"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImpactedResourceStatus { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of impacted resource status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/resourcehealth/src/package_2022_10/models.rs b/services/mgmt/resourcehealth/src/package_2022_10/models.rs index 683be8d076..0f5d524432 100644 --- a/services/mgmt/resourcehealth/src/package_2022_10/models.rs +++ b/services/mgmt/resourcehealth/src/package_2022_10/models.rs @@ -30,8 +30,6 @@ impl ErrorResponse { #[doc = "The metadata entity contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MetadataEntity { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The metadata entity properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -460,8 +458,6 @@ impl EmergingIssueListResult { #[doc = "The Get EmergingIssues operation response."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EmergingIssuesGetResult { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "On-going emerging issue from azure status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -474,8 +470,6 @@ impl EmergingIssuesGetResult { #[doc = "Service health event"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Event { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -849,8 +843,6 @@ pub mod event { #[doc = "Impacted resource for an event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EventImpactedResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of impacted resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -984,8 +976,6 @@ impl ImpactedRegion { #[doc = "impactedResource with health status"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImpactedResourceStatus { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of impacted resource status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/resourcehealth/src/package_preview_2022_05_01/models.rs b/services/mgmt/resourcehealth/src/package_preview_2022_05_01/models.rs index 2c31c53021..a7ff5749e0 100644 --- a/services/mgmt/resourcehealth/src/package_preview_2022_05_01/models.rs +++ b/services/mgmt/resourcehealth/src/package_preview_2022_05_01/models.rs @@ -278,8 +278,6 @@ impl AvailabilityStatusListResult { #[doc = "Service health event"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Event { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -644,8 +642,6 @@ pub mod event { #[doc = "Impacted resource for an event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EventImpactedResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of impacted resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -779,8 +775,6 @@ impl ImpactedRegion { #[doc = "impactedResource with health status"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImpactedResourceStatus { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of impacted resource status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/resourcehealth/src/package_preview_2022_10/models.rs b/services/mgmt/resourcehealth/src/package_preview_2022_10/models.rs index 7def9980b7..14e0e25feb 100644 --- a/services/mgmt/resourcehealth/src/package_preview_2022_10/models.rs +++ b/services/mgmt/resourcehealth/src/package_preview_2022_10/models.rs @@ -30,8 +30,6 @@ impl ErrorResponse { #[doc = "The metadata entity contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MetadataEntity { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The metadata entity properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -471,8 +469,6 @@ impl EmergingIssuesGetResult { #[doc = "Service health event"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Event { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -837,8 +833,6 @@ pub mod event { #[doc = "Impacted resource for an event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EventImpactedResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of impacted resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -972,8 +966,6 @@ impl ImpactedRegion { #[doc = "impactedResource with health status"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImpactedResourceStatus { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of impacted resource status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/resourcehealth/src/package_preview_2023_07/models.rs b/services/mgmt/resourcehealth/src/package_preview_2023_07/models.rs index 5abc789336..e5c74d990b 100644 --- a/services/mgmt/resourcehealth/src/package_preview_2023_07/models.rs +++ b/services/mgmt/resourcehealth/src/package_preview_2023_07/models.rs @@ -30,8 +30,6 @@ impl ErrorResponse { #[doc = "The metadata entity contract."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct MetadataEntity { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "The metadata entity properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -460,8 +458,6 @@ impl EmergingIssueListResult { #[doc = "The Get EmergingIssues operation response."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EmergingIssuesGetResult { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "On-going emerging issue from azure status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -474,8 +470,6 @@ impl EmergingIssuesGetResult { #[doc = "Service health event"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Event { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of event."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -896,8 +890,6 @@ pub mod event { #[doc = "Impacted resource for an event."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct EventImpactedResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of impacted resource."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1046,8 +1038,6 @@ impl ImpactedRegion { #[doc = "impactedResource with health status"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct ImpactedResourceStatus { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Properties of impacted resource status."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/riskiq/src/package_preview_2022_04_01/models.rs b/services/mgmt/riskiq/src/package_preview_2022_04_01/models.rs index d4d1aef1a3..ea1e95d702 100644 --- a/services/mgmt/riskiq/src/package_preview_2022_04_01/models.rs +++ b/services/mgmt/riskiq/src/package_preview_2022_04_01/models.rs @@ -83,8 +83,6 @@ impl LabelPatchResource { #[doc = "Label details"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LabelResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Label properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/riskiq/src/package_preview_2023_04/models.rs b/services/mgmt/riskiq/src/package_preview_2023_04/models.rs index 08864d3729..64f1a21c8f 100644 --- a/services/mgmt/riskiq/src/package_preview_2023_04/models.rs +++ b/services/mgmt/riskiq/src/package_preview_2023_04/models.rs @@ -83,8 +83,6 @@ impl LabelPatchResource { #[doc = "Label details"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct LabelResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Label properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -392,8 +390,6 @@ impl Serialize for ResourceState { #[doc = "Task details"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct TaskResource { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Task properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/scheduler/src/package_2016_03/models.rs b/services/mgmt/scheduler/src/package_2016_03/models.rs index 6d9e7acaa7..bcf558ddc4 100644 --- a/services/mgmt/scheduler/src/package_2016_03/models.rs +++ b/services/mgmt/scheduler/src/package_2016_03/models.rs @@ -5,8 +5,6 @@ use serde::{Deserialize, Serialize, Serializer}; use std::str::FromStr; #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BasicAuthentication { - #[serde(flatten)] - pub http_authentication: HttpAuthentication, #[doc = "Gets or sets the username."] #[serde(default, skip_serializing_if = "Option::is_none")] pub username: Option, @@ -15,9 +13,8 @@ pub struct BasicAuthentication { pub password: Option, } impl BasicAuthentication { - pub fn new(http_authentication: HttpAuthentication) -> Self { + pub fn new() -> Self { Self { - http_authentication, username: None, password: None, } @@ -25,8 +22,6 @@ impl BasicAuthentication { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ClientCertAuthentication { - #[serde(flatten)] - pub http_authentication: HttpAuthentication, #[doc = "Gets or sets the certificate password, return value will always be empty."] #[serde(default, skip_serializing_if = "Option::is_none")] pub password: Option, @@ -44,9 +39,8 @@ pub struct ClientCertAuthentication { pub certificate_subject_name: Option, } impl ClientCertAuthentication { - pub fn new(http_authentication: HttpAuthentication) -> Self { + pub fn new() -> Self { Self { - http_authentication, password: None, pfx: None, certificate_thumbprint: None, @@ -55,13 +49,6 @@ impl ClientCertAuthentication { } } } -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct HttpAuthentication {} -impl HttpAuthentication { - pub fn new() -> Self { - Self {} - } -} #[doc = "Gets or sets the HTTP authentication type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -594,8 +581,6 @@ impl JobStatus { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct OAuthAuthentication { - #[serde(flatten)] - pub http_authentication: HttpAuthentication, #[doc = "Gets or sets the secret, return value will always be empty."] #[serde(default, skip_serializing_if = "Option::is_none")] pub secret: Option, @@ -610,9 +595,8 @@ pub struct OAuthAuthentication { pub client_id: Option, } impl OAuthAuthentication { - pub fn new(http_authentication: HttpAuthentication) -> Self { + pub fn new() -> Self { Self { - http_authentication, secret: None, tenant: None, audience: None, diff --git a/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs b/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs index 7909c8bab1..29ad1b3803 100644 --- a/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs +++ b/services/mgmt/scvmm/src/package_2020_06_05_preview/models.rs @@ -544,8 +544,6 @@ pub mod hardware_profile_update { #[doc = "Defines the inventory item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InventoryItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: InventoryItemPropertiesUnion, #[doc = "Metadata pertaining to creation and last modification of the resource."] @@ -558,7 +556,6 @@ pub struct InventoryItem { impl InventoryItem { pub fn new(properties: InventoryItemPropertiesUnion) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, system_data: None, kind: None, diff --git a/services/mgmt/scvmm/src/package_2022_05_21_preview/models.rs b/services/mgmt/scvmm/src/package_2022_05_21_preview/models.rs index 570f30057a..9c429466e6 100644 --- a/services/mgmt/scvmm/src/package_2022_05_21_preview/models.rs +++ b/services/mgmt/scvmm/src/package_2022_05_21_preview/models.rs @@ -373,17 +373,12 @@ impl ExtendedLocation { #[doc = "Defines the GuestAgent."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GuestAgent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: GuestAgentProperties, } impl GuestAgent { pub fn new(properties: GuestAgentProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "List of GuestAgent."] @@ -759,17 +754,12 @@ impl HttpProxyConfiguration { #[doc = "Defines the HybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: HybridIdentityMetadataProperties, } impl HybridIdentityMetadata { pub fn new(properties: HybridIdentityMetadataProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "List of HybridIdentityMetadata."] @@ -878,8 +868,6 @@ pub mod identity { #[doc = "Defines the inventory item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InventoryItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: InventoryItemPropertiesUnion, #[doc = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value."] @@ -888,11 +876,7 @@ pub struct InventoryItem { } impl InventoryItem { pub fn new(properties: InventoryItemPropertiesUnion) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - kind: None, - } + Self { properties, kind: None } } } #[doc = "Defines the resource properties."] diff --git a/services/mgmt/scvmm/src/package_preview_2023_04/models.rs b/services/mgmt/scvmm/src/package_preview_2023_04/models.rs index db60ab870b..dd1e84e6c8 100644 --- a/services/mgmt/scvmm/src/package_preview_2023_04/models.rs +++ b/services/mgmt/scvmm/src/package_preview_2023_04/models.rs @@ -373,17 +373,12 @@ impl ExtendedLocation { #[doc = "Defines the GuestAgent."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GuestAgent { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: GuestAgentProperties, } impl GuestAgent { pub fn new(properties: GuestAgentProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "List of GuestAgent."] @@ -757,17 +752,12 @@ impl HttpProxyConfiguration { #[doc = "Defines the HybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct HybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: HybridIdentityMetadataProperties, } impl HybridIdentityMetadata { pub fn new(properties: HybridIdentityMetadataProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "List of HybridIdentityMetadata."] @@ -934,8 +924,6 @@ impl InfrastructureProfileUpdate { #[doc = "Defines the inventory item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct InventoryItem { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: InventoryItemPropertiesUnion, #[doc = "Metadata used by portal/tooling/etc to render different UX experiences for resources of the same type; e.g. ApiApps are a kind of Microsoft.Web/sites type. If supported, the resource provider must validate and persist this value."] @@ -944,11 +932,7 @@ pub struct InventoryItem { } impl InventoryItem { pub fn new(properties: InventoryItemPropertiesUnion) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - kind: None, - } + Self { properties, kind: None } } } #[doc = "Defines the resource properties."] @@ -2063,8 +2047,6 @@ impl VirtualMachineDeleteCheckpoint { #[doc = "Define the virtualMachineInstance."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VirtualMachineInstance { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Defines the resource properties."] pub properties: VirtualMachineInstanceProperties, #[doc = "The extended location."] @@ -2074,7 +2056,6 @@ pub struct VirtualMachineInstance { impl VirtualMachineInstance { pub fn new(properties: VirtualMachineInstanceProperties, extended_location: ExtendedLocation) -> Self { Self { - proxy_resource: ProxyResource::default(), properties, extended_location, } @@ -2750,17 +2731,12 @@ impl VirtualNetworkProperties { #[doc = "Defines the HybridIdentityMetadata."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct VmInstanceHybridIdentityMetadata { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "Describes the properties of Hybrid Identity Metadata for a Virtual Machine."] pub properties: VmInstanceHybridIdentityMetadataProperties, } impl VmInstanceHybridIdentityMetadata { pub fn new(properties: VmInstanceHybridIdentityMetadataProperties) -> Self { - Self { - proxy_resource: ProxyResource::default(), - properties, - } + Self { properties } } } #[doc = "List of HybridIdentityMetadata."] diff --git a/services/mgmt/security/src/package_2023_05/models.rs b/services/mgmt/security/src/package_2023_05/models.rs index beca338a12..2140b6be4d 100644 --- a/services/mgmt/security/src/package_2023_05/models.rs +++ b/services/mgmt/security/src/package_2023_05/models.rs @@ -6,18 +6,13 @@ use std::str::FromStr; #[doc = "A vulnerability assessments setting on Azure servers in the defined scope."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureServersSetting { - #[serde(flatten)] - pub server_vulnerability_assessments_setting: ServerVulnerabilityAssessmentsSetting, #[doc = "Describes the vulnerability assessments setting properties on Azure servers in the defined scope."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AzureServersSetting { - pub fn new(server_vulnerability_assessments_setting: ServerVulnerabilityAssessmentsSetting) -> Self { - Self { - server_vulnerability_assessments_setting, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The resource management error additional info."] @@ -157,19 +152,6 @@ pub mod server_vulnerability_assessments_azure_setting_properties { } } } -#[doc = "A base vulnerability assessments setting on servers in the defined scope."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ServerVulnerabilityAssessmentsSetting { - #[serde(flatten)] - pub resource: Resource, -} -impl ServerVulnerabilityAssessmentsSetting { - pub fn new() -> Self { - Self { - resource: Resource::default(), - } - } -} #[doc = "The kind of the server vulnerability assessments setting"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] diff --git a/services/mgmt/security/src/package_composite_v1/models.rs b/services/mgmt/security/src/package_composite_v1/models.rs index 016af34ff7..2422fa326e 100644 --- a/services/mgmt/security/src/package_composite_v1/models.rs +++ b/services/mgmt/security/src/package_composite_v1/models.rs @@ -58,8 +58,6 @@ pub mod aad_connectivity_state { #[doc = "Represents an AAD identity protection solution which sends logs to an OMS workspace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AadExternalSecuritySolution { - #[serde(flatten)] - pub external_security_solution: ExternalSecuritySolution, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -175,14 +173,6 @@ impl AdaptiveNetworkHardeningsList { Self::default() } } -#[doc = "Details of the sub-assessment"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AdditionalData {} -impl AdditionalData { - pub fn new() -> Self { - Self {} - } -} #[doc = "Sub-assessment resource type"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "assessedResourceType")] @@ -773,8 +763,6 @@ impl AscLocationProperties { #[doc = "Represents an ATA security solution which sends logs to an OMS workspace"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AtaExternalSecuritySolution { - #[serde(flatten)] - pub external_security_solution: ExternalSecuritySolution, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -967,8 +955,6 @@ pub mod auto_provisioning_setting_properties { #[doc = "The security automation resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Automation { - #[serde(flatten)] - pub tracked_resource: TrackedResource, #[doc = "A set of properties that defines the behavior of the automation configuration. To learn more about the supported security events data models schemas - please visit https://aka.ms/ASCAutomationSchemas."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -978,14 +964,6 @@ impl Automation { Self::default() } } -#[doc = "The action that should be triggered."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutomationAction {} -impl AutomationAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the action that will be triggered by the Automation"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "actionType")] @@ -997,8 +975,6 @@ pub enum AutomationActionUnion { #[doc = "The target Event Hub to which event data will be exported. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationActionEventHub { - #[serde(flatten)] - pub automation_action: AutomationAction, #[doc = "The target Event Hub Azure Resource ID."] #[serde(rename = "eventHubResourceId", default, skip_serializing_if = "Option::is_none")] pub event_hub_resource_id: Option, @@ -1010,9 +986,8 @@ pub struct AutomationActionEventHub { pub connection_string: Option, } impl AutomationActionEventHub { - pub fn new(automation_action: AutomationAction) -> Self { + pub fn new() -> Self { Self { - automation_action, event_hub_resource_id: None, sas_policy_name: None, connection_string: None, @@ -1022,8 +997,6 @@ impl AutomationActionEventHub { #[doc = "The logic app action that should be triggered. To learn more about Microsoft Defender for Cloud's Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationActionLogicApp { - #[serde(flatten)] - pub automation_action: AutomationAction, #[doc = "The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given that you have permissions to trigger the Logic App"] #[serde(rename = "logicAppResourceId", default, skip_serializing_if = "Option::is_none")] pub logic_app_resource_id: Option, @@ -1032,9 +1005,8 @@ pub struct AutomationActionLogicApp { pub uri: Option, } impl AutomationActionLogicApp { - pub fn new(automation_action: AutomationAction) -> Self { + pub fn new() -> Self { Self { - automation_action, logic_app_resource_id: None, uri: None, } @@ -1043,16 +1015,13 @@ impl AutomationActionLogicApp { #[doc = "The\u{a0}Log\u{a0}Analytics\u{a0}Workspace\u{a0}to\u{a0}which\u{a0}event data will be exported. Security alerts data will reside in the 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationActionWorkspace { - #[serde(flatten)] - pub automation_action: AutomationAction, #[doc = "The fully qualified Log Analytics Workspace Azure Resource ID."] #[serde(rename = "workspaceResourceId", default, skip_serializing_if = "Option::is_none")] pub workspace_resource_id: Option, } impl AutomationActionWorkspace { - pub fn new(automation_action: AutomationAction) -> Self { + pub fn new() -> Self { Self { - automation_action, workspace_resource_id: None, } } @@ -1417,26 +1386,13 @@ impl AwsCredsAuthenticationDetailsProperties { #[doc = "The aws connector environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AwsEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, #[doc = "The awsOrganization data "] #[serde(rename = "organizationalData", default, skip_serializing_if = "Option::is_none")] pub organizational_data: Option, } impl AwsEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { - Self { - environment_data, - organizational_data: None, - } - } -} -#[doc = "The awsOrganization data "] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AwsOrganizationalData {} -impl AwsOrganizationalData { pub fn new() -> Self { - Self {} + Self { organizational_data: None } } } #[doc = "The multi cloud account's membership type in the organization"] @@ -1449,8 +1405,6 @@ pub enum AwsOrganizationalDataUnion { #[doc = "The awsOrganization data for the master account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AwsOrganizationalDataMaster { - #[serde(flatten)] - pub aws_organizational_data: AwsOrganizationalData, #[doc = "If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset"] #[serde(rename = "stacksetName", default, skip_serializing_if = "Option::is_none")] pub stackset_name: Option, @@ -1464,9 +1418,8 @@ pub struct AwsOrganizationalDataMaster { pub excluded_account_ids: Vec, } impl AwsOrganizationalDataMaster { - pub fn new(aws_organizational_data: AwsOrganizationalData) -> Self { + pub fn new() -> Self { Self { - aws_organizational_data, stackset_name: None, excluded_account_ids: Vec::new(), } @@ -1475,29 +1428,21 @@ impl AwsOrganizationalDataMaster { #[doc = "The awsOrganization data for the member account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AwsOrganizationalDataMember { - #[serde(flatten)] - pub aws_organizational_data: AwsOrganizationalData, #[doc = "If the multi cloud account is not of membership type organization, this will be the ID of the account's parent"] #[serde(rename = "parentHierarchyId", default, skip_serializing_if = "Option::is_none")] pub parent_hierarchy_id: Option, } impl AwsOrganizationalDataMember { - pub fn new(aws_organizational_data: AwsOrganizationalData) -> Self { - Self { - aws_organizational_data, - parent_hierarchy_id: None, - } + pub fn new() -> Self { + Self { parent_hierarchy_id: None } } } #[doc = "The AzureDevOps scope connector's environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureDevOpsScopeEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, -} +pub struct AzureDevOpsScopeEnvironmentData {} impl AzureDevOpsScopeEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { - Self { environment_data } + pub fn new() -> Self { + Self {} } } #[doc = "Describes an Azure resource with kind"] @@ -1621,8 +1566,6 @@ impl Cvss { #[doc = "Represents a security solution which sends CEF logs to an OMS workspace"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CefExternalSecuritySolution { - #[serde(flatten)] - pub external_security_solution: ExternalSecuritySolution, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -1922,8 +1865,6 @@ impl ConnectorSettingProperties { #[doc = "Additional context fields for container registry Vulnerability assessment"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContainerRegistryVulnerabilityProperties { - #[serde(flatten)] - pub additional_data: AdditionalData, #[doc = "Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, Vulnerability"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -1958,9 +1899,8 @@ pub struct ContainerRegistryVulnerabilityProperties { pub image_digest: Option, } impl ContainerRegistryVulnerabilityProperties { - pub fn new(additional_data: AdditionalData) -> Self { + pub fn new() -> Self { Self { - additional_data, type_: None, cvss: None, patchable: None, @@ -2082,15 +2022,13 @@ impl CustomEntityStoreAssignmentsListResult { #[doc = "Represents a data export setting"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataExportSetting { - #[serde(flatten)] - pub setting: Setting, #[doc = "The data export setting properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl DataExportSetting { - pub fn new(setting: Setting) -> Self { - Self { setting, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The data export setting properties"] @@ -2371,14 +2309,6 @@ pub enum EnforcementSupport { NotSupported, Unknown, } -#[doc = "The security connector environment data."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnvironmentData {} -impl EnvironmentData { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the environment data."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "environmentType")] @@ -2403,21 +2333,6 @@ impl ErrorAdditionalInfo { Self::default() } } -#[doc = "Represents a security solution external to Microsoft Defender for Cloud which sends information to an OMS workspace and whose data is displayed by Microsoft Defender for Cloud."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] -pub struct ExternalSecuritySolution { - #[serde(flatten)] - pub resource: Resource, - #[serde(flatten)] - pub external_security_solution_kind: ExternalSecuritySolutionKind, - #[serde(flatten)] - pub location: Location, -} -impl ExternalSecuritySolution { - pub fn new() -> Self { - Self::default() - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] pub enum ExternalSecuritySolutionUnion { @@ -2629,14 +2544,6 @@ impl GcpCredentialsDetailsProperties { } } } -#[doc = "The gcpOrganization data"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GcpOrganizationalData {} -impl GcpOrganizationalData { - pub fn new() -> Self { - Self {} - } -} #[doc = "The multi cloud account's membership type in the organization"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "organizationMembershipType")] @@ -2647,8 +2554,6 @@ pub enum GcpOrganizationalDataUnion { #[doc = "The gcpOrganization data for the member account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GcpOrganizationalDataMember { - #[serde(flatten)] - pub gcp_organizational_data: GcpOrganizationalData, #[doc = "If the multi cloud account is not of membership type organization, this will be the ID of the project's parent"] #[serde(rename = "parentHierarchyId", default, skip_serializing_if = "Option::is_none")] pub parent_hierarchy_id: Option, @@ -2657,9 +2562,8 @@ pub struct GcpOrganizationalDataMember { pub management_project_number: Option, } impl GcpOrganizationalDataMember { - pub fn new(gcp_organizational_data: GcpOrganizationalData) -> Self { + pub fn new() -> Self { Self { - gcp_organizational_data, parent_hierarchy_id: None, management_project_number: None, } @@ -2668,8 +2572,6 @@ impl GcpOrganizationalDataMember { #[doc = "The gcpOrganization data for the parent account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GcpOrganizationalDataOrganization { - #[serde(flatten)] - pub gcp_organizational_data: GcpOrganizationalData, #[doc = "If the multi cloud account is of membership type organization, list of accounts excluded from offering"] #[serde( rename = "excludedProjectNumbers", @@ -2686,9 +2588,8 @@ pub struct GcpOrganizationalDataOrganization { pub workload_identity_provider_id: Option, } impl GcpOrganizationalDataOrganization { - pub fn new(gcp_organizational_data: GcpOrganizationalData) -> Self { + pub fn new() -> Self { Self { - gcp_organizational_data, excluded_project_numbers: Vec::new(), service_account_email_address: None, workload_identity_provider_id: None, @@ -2716,8 +2617,6 @@ impl GcpProjectDetails { #[doc = "The GCP project connector environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GcpProjectEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, #[doc = "The gcpOrganization data"] #[serde(rename = "organizationalData", default, skip_serializing_if = "Option::is_none")] pub organizational_data: Option, @@ -2726,9 +2625,8 @@ pub struct GcpProjectEnvironmentData { pub project_details: Option, } impl GcpProjectEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { + pub fn new() -> Self { Self { - environment_data, organizational_data: None, project_details: None, } @@ -2736,13 +2634,10 @@ impl GcpProjectEnvironmentData { } #[doc = "The github scope connector's environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GithubScopeEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, -} +pub struct GithubScopeEnvironmentData {} impl GithubScopeEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { - Self { environment_data } + pub fn new() -> Self { + Self {} } } pub type GroupResourceId = String; @@ -4373,14 +4268,6 @@ impl Resource { Self::default() } } -#[doc = "Details of the resource that was assessed"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResourceDetails {} -impl ResourceDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The platform where the assessed resource resides"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "source")] @@ -5151,8 +5038,6 @@ impl SecureScoresList { #[doc = "The security connector resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SecurityConnector { - #[serde(flatten)] - pub tracked_resource: TrackedResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -5708,8 +5593,6 @@ pub mod sensitivity_label { #[doc = "Additional context fields for server vulnerability assessment"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServerVulnerabilityProperties { - #[serde(flatten)] - pub additional_data: AdditionalData, #[doc = "Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -5741,9 +5624,8 @@ pub struct ServerVulnerabilityProperties { pub vendor_references: Vec, } impl ServerVulnerabilityProperties { - pub fn new(additional_data: AdditionalData) -> Self { + pub fn new() -> Self { Self { - additional_data, type_: None, cvss: None, patchable: None, @@ -5769,19 +5651,6 @@ impl ServicePrincipalProperties { Self::default() } } -#[doc = "The kind of the security setting"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Setting { - #[serde(flatten)] - pub resource: Resource, -} -impl Setting { - pub fn new() -> Self { - Self { - resource: Resource::default(), - } - } -} #[doc = "the kind of the settings string (DataExportSetting)"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -5959,8 +5828,6 @@ pub enum SourceSystem { #[doc = "Details of the resource that was assessed"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlServerVulnerabilityProperties { - #[serde(flatten)] - pub additional_data: AdditionalData, #[doc = "The resource type the sub assessment refers to in its resource details"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -5969,12 +5836,8 @@ pub struct SqlServerVulnerabilityProperties { pub query: Option, } impl SqlServerVulnerabilityProperties { - pub fn new(additional_data: AdditionalData) -> Self { - Self { - additional_data, - type_: None, - query: None, - } + pub fn new() -> Self { + Self { type_: None, query: None } } } #[doc = "Status of the sub-assessment"] diff --git a/services/mgmt/security/src/package_composite_v2/models.rs b/services/mgmt/security/src/package_composite_v2/models.rs index 23dac0ec49..6f65306da1 100644 --- a/services/mgmt/security/src/package_composite_v2/models.rs +++ b/services/mgmt/security/src/package_composite_v2/models.rs @@ -58,8 +58,6 @@ pub mod aad_connectivity_state { #[doc = "Represents an AAD identity protection solution which sends logs to an OMS workspace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AadExternalSecuritySolution { - #[serde(flatten)] - pub external_security_solution: ExternalSecuritySolution, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -175,14 +173,6 @@ impl AdaptiveNetworkHardeningsList { Self::default() } } -#[doc = "Details of the sub-assessment"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AdditionalData {} -impl AdditionalData { - pub fn new() -> Self { - Self {} - } -} #[doc = "Sub-assessment resource type"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "assessedResourceType")] @@ -773,8 +763,6 @@ impl AscLocationProperties { #[doc = "Represents an ATA security solution which sends logs to an OMS workspace"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AtaExternalSecuritySolution { - #[serde(flatten)] - pub external_security_solution: ExternalSecuritySolution, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -967,8 +955,6 @@ pub mod auto_provisioning_setting_properties { #[doc = "The security automation resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Automation { - #[serde(flatten)] - pub tracked_resource: TrackedResource, #[doc = "A set of properties that defines the behavior of the automation configuration. To learn more about the supported security events data models schemas - please visit https://aka.ms/ASCAutomationSchemas."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -978,14 +964,6 @@ impl Automation { Self::default() } } -#[doc = "The action that should be triggered."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutomationAction {} -impl AutomationAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the action that will be triggered by the Automation"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "actionType")] @@ -997,8 +975,6 @@ pub enum AutomationActionUnion { #[doc = "The target Event Hub to which event data will be exported. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationActionEventHub { - #[serde(flatten)] - pub automation_action: AutomationAction, #[doc = "The target Event Hub Azure Resource ID."] #[serde(rename = "eventHubResourceId", default, skip_serializing_if = "Option::is_none")] pub event_hub_resource_id: Option, @@ -1010,9 +986,8 @@ pub struct AutomationActionEventHub { pub connection_string: Option, } impl AutomationActionEventHub { - pub fn new(automation_action: AutomationAction) -> Self { + pub fn new() -> Self { Self { - automation_action, event_hub_resource_id: None, sas_policy_name: None, connection_string: None, @@ -1022,8 +997,6 @@ impl AutomationActionEventHub { #[doc = "The logic app action that should be triggered. To learn more about Microsoft Defender for Cloud's Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationActionLogicApp { - #[serde(flatten)] - pub automation_action: AutomationAction, #[doc = "The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given that you have permissions to trigger the Logic App"] #[serde(rename = "logicAppResourceId", default, skip_serializing_if = "Option::is_none")] pub logic_app_resource_id: Option, @@ -1032,9 +1005,8 @@ pub struct AutomationActionLogicApp { pub uri: Option, } impl AutomationActionLogicApp { - pub fn new(automation_action: AutomationAction) -> Self { + pub fn new() -> Self { Self { - automation_action, logic_app_resource_id: None, uri: None, } @@ -1043,16 +1015,13 @@ impl AutomationActionLogicApp { #[doc = "The\u{a0}Log\u{a0}Analytics\u{a0}Workspace\u{a0}to\u{a0}which\u{a0}event data will be exported. Security alerts data will reside in the 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationActionWorkspace { - #[serde(flatten)] - pub automation_action: AutomationAction, #[doc = "The fully qualified Log Analytics Workspace Azure Resource ID."] #[serde(rename = "workspaceResourceId", default, skip_serializing_if = "Option::is_none")] pub workspace_resource_id: Option, } impl AutomationActionWorkspace { - pub fn new(automation_action: AutomationAction) -> Self { + pub fn new() -> Self { Self { - automation_action, workspace_resource_id: None, } } @@ -1417,26 +1386,13 @@ impl AwsCredsAuthenticationDetailsProperties { #[doc = "The aws connector environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AwsEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, #[doc = "The awsOrganization data "] #[serde(rename = "organizationalData", default, skip_serializing_if = "Option::is_none")] pub organizational_data: Option, } impl AwsEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { - Self { - environment_data, - organizational_data: None, - } - } -} -#[doc = "The awsOrganization data "] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AwsOrganizationalData {} -impl AwsOrganizationalData { pub fn new() -> Self { - Self {} + Self { organizational_data: None } } } #[doc = "The multi cloud account's membership type in the organization"] @@ -1449,8 +1405,6 @@ pub enum AwsOrganizationalDataUnion { #[doc = "The awsOrganization data for the master account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AwsOrganizationalDataMaster { - #[serde(flatten)] - pub aws_organizational_data: AwsOrganizationalData, #[doc = "If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset"] #[serde(rename = "stacksetName", default, skip_serializing_if = "Option::is_none")] pub stackset_name: Option, @@ -1464,9 +1418,8 @@ pub struct AwsOrganizationalDataMaster { pub excluded_account_ids: Vec, } impl AwsOrganizationalDataMaster { - pub fn new(aws_organizational_data: AwsOrganizationalData) -> Self { + pub fn new() -> Self { Self { - aws_organizational_data, stackset_name: None, excluded_account_ids: Vec::new(), } @@ -1475,29 +1428,21 @@ impl AwsOrganizationalDataMaster { #[doc = "The awsOrganization data for the member account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AwsOrganizationalDataMember { - #[serde(flatten)] - pub aws_organizational_data: AwsOrganizationalData, #[doc = "If the multi cloud account is not of membership type organization, this will be the ID of the account's parent"] #[serde(rename = "parentHierarchyId", default, skip_serializing_if = "Option::is_none")] pub parent_hierarchy_id: Option, } impl AwsOrganizationalDataMember { - pub fn new(aws_organizational_data: AwsOrganizationalData) -> Self { - Self { - aws_organizational_data, - parent_hierarchy_id: None, - } + pub fn new() -> Self { + Self { parent_hierarchy_id: None } } } #[doc = "The AzureDevOps scope connector's environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureDevOpsScopeEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, -} +pub struct AzureDevOpsScopeEnvironmentData {} impl AzureDevOpsScopeEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { - Self { environment_data } + pub fn new() -> Self { + Self {} } } #[doc = "Describes an Azure resource with kind"] @@ -1621,8 +1566,6 @@ impl Cvss { #[doc = "Represents a security solution which sends CEF logs to an OMS workspace"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct CefExternalSecuritySolution { - #[serde(flatten)] - pub external_security_solution: ExternalSecuritySolution, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -1922,8 +1865,6 @@ impl ConnectorSettingProperties { #[doc = "Additional context fields for container registry Vulnerability assessment"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContainerRegistryVulnerabilityProperties { - #[serde(flatten)] - pub additional_data: AdditionalData, #[doc = "Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, Vulnerability"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -1958,9 +1899,8 @@ pub struct ContainerRegistryVulnerabilityProperties { pub image_digest: Option, } impl ContainerRegistryVulnerabilityProperties { - pub fn new(additional_data: AdditionalData) -> Self { + pub fn new() -> Self { Self { - additional_data, type_: None, cvss: None, patchable: None, @@ -2082,15 +2022,13 @@ impl CustomEntityStoreAssignmentsListResult { #[doc = "Represents a data export setting"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataExportSetting { - #[serde(flatten)] - pub setting: Setting, #[doc = "The data export setting properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl DataExportSetting { - pub fn new(setting: Setting) -> Self { - Self { setting, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The data export setting properties"] @@ -2371,14 +2309,6 @@ pub enum EnforcementSupport { NotSupported, Unknown, } -#[doc = "The security connector environment data."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnvironmentData {} -impl EnvironmentData { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the environment data."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "environmentType")] @@ -2403,21 +2333,6 @@ impl ErrorAdditionalInfo { Self::default() } } -#[doc = "Represents a security solution external to Microsoft Defender for Cloud which sends information to an OMS workspace and whose data is displayed by Microsoft Defender for Cloud."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] -pub struct ExternalSecuritySolution { - #[serde(flatten)] - pub resource: Resource, - #[serde(flatten)] - pub external_security_solution_kind: ExternalSecuritySolutionKind, - #[serde(flatten)] - pub location: Location, -} -impl ExternalSecuritySolution { - pub fn new() -> Self { - Self::default() - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] pub enum ExternalSecuritySolutionUnion { @@ -2629,14 +2544,6 @@ impl GcpCredentialsDetailsProperties { } } } -#[doc = "The gcpOrganization data"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GcpOrganizationalData {} -impl GcpOrganizationalData { - pub fn new() -> Self { - Self {} - } -} #[doc = "The multi cloud account's membership type in the organization"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "organizationMembershipType")] @@ -2647,8 +2554,6 @@ pub enum GcpOrganizationalDataUnion { #[doc = "The gcpOrganization data for the member account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GcpOrganizationalDataMember { - #[serde(flatten)] - pub gcp_organizational_data: GcpOrganizationalData, #[doc = "If the multi cloud account is not of membership type organization, this will be the ID of the project's parent"] #[serde(rename = "parentHierarchyId", default, skip_serializing_if = "Option::is_none")] pub parent_hierarchy_id: Option, @@ -2657,9 +2562,8 @@ pub struct GcpOrganizationalDataMember { pub management_project_number: Option, } impl GcpOrganizationalDataMember { - pub fn new(gcp_organizational_data: GcpOrganizationalData) -> Self { + pub fn new() -> Self { Self { - gcp_organizational_data, parent_hierarchy_id: None, management_project_number: None, } @@ -2668,8 +2572,6 @@ impl GcpOrganizationalDataMember { #[doc = "The gcpOrganization data for the parent account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GcpOrganizationalDataOrganization { - #[serde(flatten)] - pub gcp_organizational_data: GcpOrganizationalData, #[doc = "If the multi cloud account is of membership type organization, list of accounts excluded from offering"] #[serde( rename = "excludedProjectNumbers", @@ -2686,9 +2588,8 @@ pub struct GcpOrganizationalDataOrganization { pub workload_identity_provider_id: Option, } impl GcpOrganizationalDataOrganization { - pub fn new(gcp_organizational_data: GcpOrganizationalData) -> Self { + pub fn new() -> Self { Self { - gcp_organizational_data, excluded_project_numbers: Vec::new(), service_account_email_address: None, workload_identity_provider_id: None, @@ -2716,8 +2617,6 @@ impl GcpProjectDetails { #[doc = "The GCP project connector environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GcpProjectEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, #[doc = "The gcpOrganization data"] #[serde(rename = "organizationalData", default, skip_serializing_if = "Option::is_none")] pub organizational_data: Option, @@ -2726,9 +2625,8 @@ pub struct GcpProjectEnvironmentData { pub project_details: Option, } impl GcpProjectEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { + pub fn new() -> Self { Self { - environment_data, organizational_data: None, project_details: None, } @@ -2736,13 +2634,10 @@ impl GcpProjectEnvironmentData { } #[doc = "The github scope connector's environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GithubScopeEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, -} +pub struct GithubScopeEnvironmentData {} impl GithubScopeEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { - Self { environment_data } + pub fn new() -> Self { + Self {} } } pub type GroupResourceId = String; @@ -5182,14 +5077,6 @@ impl Resource { Self::default() } } -#[doc = "Details of the resource that was assessed"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResourceDetails {} -impl ResourceDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The platform where the assessed resource resides"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "source")] @@ -5960,8 +5847,6 @@ impl SecureScoresList { #[doc = "The security connector resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SecurityConnector { - #[serde(flatten)] - pub tracked_resource: TrackedResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -6517,8 +6402,6 @@ pub mod sensitivity_label { #[doc = "Additional context fields for server vulnerability assessment"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServerVulnerabilityProperties { - #[serde(flatten)] - pub additional_data: AdditionalData, #[doc = "Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -6550,9 +6433,8 @@ pub struct ServerVulnerabilityProperties { pub vendor_references: Vec, } impl ServerVulnerabilityProperties { - pub fn new(additional_data: AdditionalData) -> Self { + pub fn new() -> Self { Self { - additional_data, type_: None, cvss: None, patchable: None, @@ -6578,19 +6460,6 @@ impl ServicePrincipalProperties { Self::default() } } -#[doc = "The kind of the security setting"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Setting { - #[serde(flatten)] - pub resource: Resource, -} -impl Setting { - pub fn new() -> Self { - Self { - resource: Resource::default(), - } - } -} #[doc = "the kind of the settings string (DataExportSetting)"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -6768,8 +6637,6 @@ pub enum SourceSystem { #[doc = "Details of the resource that was assessed"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlServerVulnerabilityProperties { - #[serde(flatten)] - pub additional_data: AdditionalData, #[doc = "The resource type the sub assessment refers to in its resource details"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -6778,12 +6645,8 @@ pub struct SqlServerVulnerabilityProperties { pub query: Option, } impl SqlServerVulnerabilityProperties { - pub fn new(additional_data: AdditionalData) -> Self { - Self { - additional_data, - type_: None, - query: None, - } + pub fn new() -> Self { + Self { type_: None, query: None } } } #[doc = "Status of the sub-assessment"] diff --git a/services/mgmt/security/src/package_dotnet_sdk/models.rs b/services/mgmt/security/src/package_dotnet_sdk/models.rs index 74c1e12386..bf26728891 100644 --- a/services/mgmt/security/src/package_dotnet_sdk/models.rs +++ b/services/mgmt/security/src/package_dotnet_sdk/models.rs @@ -58,17 +58,12 @@ pub mod aad_connectivity_state { #[doc = "Represents an AAD identity protection solution which sends logs to an OMS workspace."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AadExternalSecuritySolution { - #[serde(flatten)] - pub external_security_solution: ExternalSecuritySolution, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AadExternalSecuritySolution { - pub fn new(external_security_solution: ExternalSecuritySolution) -> Self { - Self { - external_security_solution, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -267,14 +262,6 @@ impl AdaptiveNetworkHardeningsList { Self::default() } } -#[doc = "Details of the sub-assessment"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AdditionalData {} -impl AdditionalData { - pub fn new() -> Self { - Self {} - } -} #[doc = "Sub-assessment resource type"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "assessedResourceType")] @@ -725,8 +712,6 @@ pub mod alert_properties { #[doc = "Simulate alerts according to this bundles."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AlertSimulatorBundlesRequestProperties { - #[serde(flatten)] - pub alert_simulator_request_properties: AlertSimulatorRequestProperties, #[doc = "Bundles list."] #[serde( default, @@ -736,11 +721,8 @@ pub struct AlertSimulatorBundlesRequestProperties { pub bundles: Vec, } impl AlertSimulatorBundlesRequestProperties { - pub fn new(alert_simulator_request_properties: AlertSimulatorRequestProperties) -> Self { - Self { - alert_simulator_request_properties, - bundles: Vec::new(), - } + pub fn new() -> Self { + Self { bundles: Vec::new() } } } #[doc = "Alert Simulator request body."] @@ -755,14 +737,6 @@ impl AlertSimulatorRequestBody { Self::default() } } -#[doc = "Describes properties of an alert simulation request"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AlertSimulatorRequestProperties {} -impl AlertSimulatorRequestProperties { - pub fn new() -> Self { - Self {} - } -} #[doc = "The kind of alert simulation."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -783,15 +757,13 @@ impl AlertSyncSettingProperties { #[doc = "Represents an alert sync setting"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AlertSyncSettings { - #[serde(flatten)] - pub setting: Setting, #[doc = "The alert sync setting properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AlertSyncSettings { - pub fn new(setting: Setting) -> Self { - Self { setting, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Describes the suppression rule"] @@ -1305,17 +1277,12 @@ impl AssessmentStatusResponse { #[doc = "Represents an ATA security solution which sends logs to an OMS workspace"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AtaExternalSecuritySolution { - #[serde(flatten)] - pub external_security_solution: ExternalSecuritySolution, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AtaExternalSecuritySolution { - pub fn new(external_security_solution: ExternalSecuritySolution) -> Self { - Self { - external_security_solution, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -1502,8 +1469,6 @@ pub mod auto_provisioning_setting_properties { #[doc = "The security automation resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct Automation { - #[serde(flatten)] - pub tracked_resource: TrackedResource, #[doc = "A set of properties that defines the behavior of the automation configuration. To learn more about the supported security events data models schemas - please visit https://aka.ms/ASCAutomationSchemas."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -1513,14 +1478,6 @@ impl Automation { Self::default() } } -#[doc = "The action that should be triggered."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutomationAction {} -impl AutomationAction { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the action that will be triggered by the Automation"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "actionType")] @@ -1532,8 +1489,6 @@ pub enum AutomationActionUnion { #[doc = "The target Event Hub to which event data will be exported. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationActionEventHub { - #[serde(flatten)] - pub automation_action: AutomationAction, #[doc = "The target Event Hub Azure Resource ID."] #[serde(rename = "eventHubResourceId", default, skip_serializing_if = "Option::is_none")] pub event_hub_resource_id: Option, @@ -1545,9 +1500,8 @@ pub struct AutomationActionEventHub { pub connection_string: Option, } impl AutomationActionEventHub { - pub fn new(automation_action: AutomationAction) -> Self { + pub fn new() -> Self { Self { - automation_action, event_hub_resource_id: None, sas_policy_name: None, connection_string: None, @@ -1557,8 +1511,6 @@ impl AutomationActionEventHub { #[doc = "The logic app action that should be triggered. To learn more about Microsoft Defender for Cloud's Workflow Automation capabilities, visit https://aka.ms/ASCWorkflowAutomationLearnMore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationActionLogicApp { - #[serde(flatten)] - pub automation_action: AutomationAction, #[doc = "The triggered Logic App Azure Resource ID. This can also reside on other subscriptions, given that you have permissions to trigger the Logic App"] #[serde(rename = "logicAppResourceId", default, skip_serializing_if = "Option::is_none")] pub logic_app_resource_id: Option, @@ -1567,9 +1519,8 @@ pub struct AutomationActionLogicApp { pub uri: Option, } impl AutomationActionLogicApp { - pub fn new(automation_action: AutomationAction) -> Self { + pub fn new() -> Self { Self { - automation_action, logic_app_resource_id: None, uri: None, } @@ -1578,16 +1529,13 @@ impl AutomationActionLogicApp { #[doc = "The\u{a0}Log\u{a0}Analytics\u{a0}Workspace\u{a0}to\u{a0}which\u{a0}event data will be exported. Security alerts data will reside in the 'SecurityAlert' table and the assessments data will reside in the 'SecurityRecommendation' table (under the 'Security'/'SecurityCenterFree' solutions). Note that in order to view the data in the workspace, the Security Center Log Analytics free/standard solution needs to be enabled on that workspace. To learn more about Microsoft Defender for Cloud continuous export capabilities, visit https://aka.ms/ASCExportLearnMore"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AutomationActionWorkspace { - #[serde(flatten)] - pub automation_action: AutomationAction, #[doc = "The fully qualified Log Analytics Workspace Azure Resource ID."] #[serde(rename = "workspaceResourceId", default, skip_serializing_if = "Option::is_none")] pub workspace_resource_id: Option, } impl AutomationActionWorkspace { - pub fn new(automation_action: AutomationAction) -> Self { + pub fn new() -> Self { Self { - automation_action, workspace_resource_id: None, } } @@ -1952,26 +1900,13 @@ impl AwsCredsAuthenticationDetailsProperties { #[doc = "The aws connector environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AwsEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, #[doc = "The awsOrganization data "] #[serde(rename = "organizationalData", default, skip_serializing_if = "Option::is_none")] pub organizational_data: Option, } impl AwsEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { - Self { - environment_data, - organizational_data: None, - } - } -} -#[doc = "The awsOrganization data "] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AwsOrganizationalData {} -impl AwsOrganizationalData { pub fn new() -> Self { - Self {} + Self { organizational_data: None } } } #[doc = "The multi cloud account's membership type in the organization"] @@ -1984,8 +1919,6 @@ pub enum AwsOrganizationalDataUnion { #[doc = "The awsOrganization data for the master account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AwsOrganizationalDataMaster { - #[serde(flatten)] - pub aws_organizational_data: AwsOrganizationalData, #[doc = "If the multi cloud account is of membership type organization, this will be the name of the onboarding stackset"] #[serde(rename = "stacksetName", default, skip_serializing_if = "Option::is_none")] pub stackset_name: Option, @@ -1999,9 +1932,8 @@ pub struct AwsOrganizationalDataMaster { pub excluded_account_ids: Vec, } impl AwsOrganizationalDataMaster { - pub fn new(aws_organizational_data: AwsOrganizationalData) -> Self { + pub fn new() -> Self { Self { - aws_organizational_data, stackset_name: None, excluded_account_ids: Vec::new(), } @@ -2010,46 +1942,33 @@ impl AwsOrganizationalDataMaster { #[doc = "The awsOrganization data for the member account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AwsOrganizationalDataMember { - #[serde(flatten)] - pub aws_organizational_data: AwsOrganizationalData, #[doc = "If the multi cloud account is not of membership type organization, this will be the ID of the account's parent"] #[serde(rename = "parentHierarchyId", default, skip_serializing_if = "Option::is_none")] pub parent_hierarchy_id: Option, } impl AwsOrganizationalDataMember { - pub fn new(aws_organizational_data: AwsOrganizationalData) -> Self { - Self { - aws_organizational_data, - parent_hierarchy_id: None, - } + pub fn new() -> Self { + Self { parent_hierarchy_id: None } } } #[doc = "The AzureDevOps scope connector's environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AzureDevOpsScopeEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, -} +pub struct AzureDevOpsScopeEnvironmentData {} impl AzureDevOpsScopeEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { - Self { environment_data } + pub fn new() -> Self { + Self {} } } #[doc = "Azure resource identifier."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AzureResourceIdentifier { - #[serde(flatten)] - pub resource_identifier: ResourceIdentifier, #[doc = "ARM resource identifier for the cloud resource being alerted on"] #[serde(rename = "azureResourceId", default, skip_serializing_if = "Option::is_none")] pub azure_resource_id: Option, } impl AzureResourceIdentifier { - pub fn new(resource_identifier: ResourceIdentifier) -> Self { - Self { - resource_identifier, - azure_resource_id: None, - } + pub fn new() -> Self { + Self { azure_resource_id: None } } } #[doc = "Describes an Azure resource with kind"] @@ -2225,17 +2144,12 @@ impl Cvss { #[doc = "Represents a security solution which sends CEF logs to an OMS workspace"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct CefExternalSecuritySolution { - #[serde(flatten)] - pub external_security_solution: ExternalSecuritySolution, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl CefExternalSecuritySolution { - pub fn new(external_security_solution: ExternalSecuritySolution) -> Self { - Self { - external_security_solution, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] @@ -2691,8 +2605,6 @@ impl ConnectorSettingProperties { #[doc = "Additional context fields for container registry Vulnerability assessment"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ContainerRegistryVulnerabilityProperties { - #[serde(flatten)] - pub additional_data: AdditionalData, #[doc = "Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered, Vulnerability"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -2727,9 +2639,8 @@ pub struct ContainerRegistryVulnerabilityProperties { pub image_digest: Option, } impl ContainerRegistryVulnerabilityProperties { - pub fn new(additional_data: AdditionalData) -> Self { + pub fn new() -> Self { Self { - additional_data, type_: None, cvss: None, patchable: None, @@ -2862,15 +2773,13 @@ impl DataExportSettingProperties { #[doc = "Represents a data export setting"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct DataExportSettings { - #[serde(flatten)] - pub setting: Setting, #[doc = "The data export setting properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl DataExportSettings { - pub fn new(setting: Setting) -> Self { - Self { setting, properties: None } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "A custom alert rule that checks if a value (depends on the custom alert type) is denied."] @@ -3140,14 +3049,6 @@ pub enum EnforcementSupport { NotSupported, Unknown, } -#[doc = "The security connector environment data."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct EnvironmentData {} -impl EnvironmentData { - pub fn new() -> Self { - Self {} - } -} #[doc = "The type of the environment data."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "environmentType")] @@ -3249,25 +3150,6 @@ pub mod extension { } } } -#[doc = "Represents a security solution external to Microsoft Defender for Cloud which sends information to an OMS workspace and whose data is displayed by Microsoft Defender for Cloud."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ExternalSecuritySolution { - #[serde(flatten)] - pub resource: Resource, - #[serde(flatten)] - pub external_security_solution_kind: ExternalSecuritySolutionKind, - #[serde(flatten)] - pub location: Location, -} -impl ExternalSecuritySolution { - pub fn new() -> Self { - Self { - resource: Resource::default(), - external_security_solution_kind: ExternalSecuritySolutionKind::default(), - location: Location::default(), - } - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] pub enum ExternalSecuritySolutionUnion { @@ -3479,14 +3361,6 @@ impl GcpCredentialsDetailsProperties { } } } -#[doc = "The gcpOrganization data"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GcpOrganizationalData {} -impl GcpOrganizationalData { - pub fn new() -> Self { - Self {} - } -} #[doc = "The multi cloud account's membership type in the organization"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "organizationMembershipType")] @@ -3497,8 +3371,6 @@ pub enum GcpOrganizationalDataUnion { #[doc = "The gcpOrganization data for the member account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GcpOrganizationalDataMember { - #[serde(flatten)] - pub gcp_organizational_data: GcpOrganizationalData, #[doc = "If the multi cloud account is not of membership type organization, this will be the ID of the project's parent"] #[serde(rename = "parentHierarchyId", default, skip_serializing_if = "Option::is_none")] pub parent_hierarchy_id: Option, @@ -3507,9 +3379,8 @@ pub struct GcpOrganizationalDataMember { pub management_project_number: Option, } impl GcpOrganizationalDataMember { - pub fn new(gcp_organizational_data: GcpOrganizationalData) -> Self { + pub fn new() -> Self { Self { - gcp_organizational_data, parent_hierarchy_id: None, management_project_number: None, } @@ -3518,8 +3389,6 @@ impl GcpOrganizationalDataMember { #[doc = "The gcpOrganization data for the parent account"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GcpOrganizationalDataOrganization { - #[serde(flatten)] - pub gcp_organizational_data: GcpOrganizationalData, #[doc = "If the multi cloud account is of membership type organization, list of accounts excluded from offering"] #[serde( rename = "excludedProjectNumbers", @@ -3536,9 +3405,8 @@ pub struct GcpOrganizationalDataOrganization { pub workload_identity_provider_id: Option, } impl GcpOrganizationalDataOrganization { - pub fn new(gcp_organizational_data: GcpOrganizationalData) -> Self { + pub fn new() -> Self { Self { - gcp_organizational_data, excluded_project_numbers: Vec::new(), service_account_email_address: None, workload_identity_provider_id: None, @@ -3566,8 +3434,6 @@ impl GcpProjectDetails { #[doc = "The GCP project connector environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct GcpProjectEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, #[doc = "The gcpOrganization data"] #[serde(rename = "organizationalData", default, skip_serializing_if = "Option::is_none")] pub organizational_data: Option, @@ -3576,9 +3442,8 @@ pub struct GcpProjectEnvironmentData { pub project_details: Option, } impl GcpProjectEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { + pub fn new() -> Self { Self { - environment_data, organizational_data: None, project_details: None, } @@ -3586,13 +3451,10 @@ impl GcpProjectEnvironmentData { } #[doc = "The github scope connector's environment data"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct GithubScopeEnvironmentData { - #[serde(flatten)] - pub environment_data: EnvironmentData, -} +pub struct GithubScopeEnvironmentData {} impl GithubScopeEnvironmentData { - pub fn new(environment_data: EnvironmentData) -> Self { - Self { environment_data } + pub fn new() -> Self { + Self {} } } #[doc = "Governance assignment over a given scope"] @@ -5479,8 +5341,6 @@ impl Location { #[doc = "Represents a Log Analytics workspace scope identifier."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct LogAnalyticsIdentifier { - #[serde(flatten)] - pub resource_identifier: ResourceIdentifier, #[doc = "The LogAnalytics workspace id that stores this alert."] #[serde(rename = "workspaceId", default, skip_serializing_if = "Option::is_none")] pub workspace_id: Option, @@ -5495,9 +5355,8 @@ pub struct LogAnalyticsIdentifier { pub agent_id: Option, } impl LogAnalyticsIdentifier { - pub fn new(resource_identifier: ResourceIdentifier) -> Self { + pub fn new() -> Self { Self { - resource_identifier, workspace_id: None, workspace_subscription_id: None, workspace_resource_group: None, @@ -6642,26 +6501,10 @@ impl Resource { Self::default() } } -#[doc = "Details of the resource that was assessed"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResourceDetails {} -impl ResourceDetails { - pub fn new() -> Self { - Self {} - } -} #[doc = "The platform where the assessed resource resides"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "source")] pub enum ResourceDetailsUnion {} -#[doc = "A resource identifier for an alert which can be used to direct the alert to the right product exposure group (tenant, workspace, subscription etc.)."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct ResourceIdentifier {} -impl ResourceIdentifier { - pub fn new() -> Self { - Self {} - } -} #[doc = "There can be multiple identifiers of different type per alert, this field specify the identifier type."] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "type")] @@ -7919,8 +7762,6 @@ impl SecurityAssessmentResponse { #[doc = "The security connector resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct SecurityConnector { - #[serde(flatten)] - pub tracked_resource: TrackedResource, #[doc = "Metadata pertaining to creation and last modification of the resource."] #[serde(rename = "systemData", default, skip_serializing_if = "Option::is_none")] pub system_data: Option, @@ -8678,8 +8519,6 @@ impl ServerVulnerabilityAssessmentsList { #[doc = "Additional context fields for server vulnerability assessment"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ServerVulnerabilityProperties { - #[serde(flatten)] - pub additional_data: AdditionalData, #[doc = "Vulnerability Type. e.g: Vulnerability, Potential Vulnerability, Information Gathered"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -8711,9 +8550,8 @@ pub struct ServerVulnerabilityProperties { pub vendor_references: Vec, } impl ServerVulnerabilityProperties { - pub fn new(additional_data: AdditionalData) -> Self { + pub fn new() -> Self { Self { - additional_data, type_: None, cvss: None, patchable: None, @@ -8739,19 +8577,6 @@ impl ServicePrincipalProperties { Self::default() } } -#[doc = "The kind of the security setting"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct Setting { - #[serde(flatten)] - pub resource: Resource, -} -impl Setting { - pub fn new() -> Self { - Self { - resource: Resource::default(), - } - } -} #[doc = "the kind of the settings string"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -8930,8 +8755,6 @@ pub enum SourceSystem { #[doc = "Details of the resource that was assessed"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct SqlServerVulnerabilityProperties { - #[serde(flatten)] - pub additional_data: AdditionalData, #[doc = "The resource type the sub assessment refers to in its resource details"] #[serde(rename = "type", default, skip_serializing_if = "Option::is_none")] pub type_: Option, @@ -8940,12 +8763,8 @@ pub struct SqlServerVulnerabilityProperties { pub query: Option, } impl SqlServerVulnerabilityProperties { - pub fn new(additional_data: AdditionalData) -> Self { - Self { - additional_data, - type_: None, - query: None, - } + pub fn new() -> Self { + Self { type_: None, query: None } } } #[doc = "Status of the sub-assessment"] diff --git a/services/mgmt/securitydevops/src/package_2022_09_01_preview/models.rs b/services/mgmt/securitydevops/src/package_2022_09_01_preview/models.rs index 80a85cf0ba..e784f4b778 100644 --- a/services/mgmt/securitydevops/src/package_2022_09_01_preview/models.rs +++ b/services/mgmt/securitydevops/src/package_2022_09_01_preview/models.rs @@ -176,8 +176,6 @@ impl AzureDevOpsConnectorProperties { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureDevOpsConnectorStats { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -226,8 +224,6 @@ impl AzureDevOpsConnectorStatsProperties { #[doc = "Azure DevOps Org Proxy Resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureDevOpsOrg { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "AzureDevOps Org properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -297,8 +293,6 @@ impl AzureDevOpsOrgProperties { #[doc = "Azure DevOps Project Proxy Resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureDevOpsProject { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "AzureDevOps Project properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -375,8 +369,6 @@ impl AzureDevOpsProjectProperties { #[doc = "Azure DevOps Repo Proxy Resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct AzureDevOpsRepo { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "AzureDevOps Repo properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -561,8 +553,6 @@ impl GitHubConnectorProperties { } #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GitHubConnectorStats { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } @@ -608,8 +598,6 @@ impl GitHubConnectorStatsProperties { #[doc = "GitHub repo owner Proxy Resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GitHubOwner { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "GitHub Repo Owner properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, @@ -660,8 +648,6 @@ impl GitHubOwnerProperties { #[doc = "GitHub repo Proxy Resource."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize, Default)] pub struct GitHubRepo { - #[serde(flatten)] - pub proxy_resource: ProxyResource, #[doc = "GitHub Repo properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, diff --git a/services/mgmt/securityinsights/src/package_preview_2023_05/models.rs b/services/mgmt/securityinsights/src/package_preview_2023_05/models.rs index 9ec1c75f98..89ee19af61 100644 --- a/services/mgmt/securityinsights/src/package_preview_2023_05/models.rs +++ b/services/mgmt/securityinsights/src/package_preview_2023_05/models.rs @@ -6,18 +6,13 @@ use std::str::FromStr; #[doc = "Represents AADIP (Azure Active Directory Identity Protection) requirements check request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AadCheckRequirements { - #[serde(flatten)] - pub data_connectors_check_requirements: DataConnectorsCheckRequirements, #[doc = "AADIP (Azure Active Directory Identity Protection) requirements check properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AadCheckRequirements { - pub fn new(data_connectors_check_requirements: DataConnectorsCheckRequirements) -> Self { - Self { - data_connectors_check_requirements, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "AADIP (Azure Active Directory Identity Protection) requirements check properties."] @@ -34,18 +29,13 @@ impl AadCheckRequirementsProperties { #[doc = "Represents AADIP (Azure Active Directory Identity Protection) data connector."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AadDataConnector { - #[serde(flatten)] - pub data_connector: DataConnector, #[doc = "AADIP (Azure Active Directory Identity Protection) data connector properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AadDataConnector { - pub fn new(data_connector: DataConnector) -> Self { - Self { - data_connector, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "AADIP (Azure Active Directory Identity Protection) data connector properties."] @@ -67,18 +57,13 @@ impl AadDataConnectorProperties { #[doc = "Represents AATP (Azure Advanced Threat Protection) requirements check request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AatpCheckRequirements { - #[serde(flatten)] - pub data_connectors_check_requirements: DataConnectorsCheckRequirements, #[doc = "AATP (Azure Advanced Threat Protection) requirements check properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AatpCheckRequirements { - pub fn new(data_connectors_check_requirements: DataConnectorsCheckRequirements) -> Self { - Self { - data_connectors_check_requirements, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "AATP (Azure Advanced Threat Protection) requirements check properties."] @@ -95,18 +80,13 @@ impl AatpCheckRequirementsProperties { #[doc = "Represents AATP (Azure Advanced Threat Protection) data connector."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AatpDataConnector { - #[serde(flatten)] - pub data_connector: DataConnector, #[doc = "AATP (Azure Advanced Threat Protection) data connector properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AatpDataConnector { - pub fn new(data_connector: DataConnector) -> Self { - Self { - data_connector, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "AATP (Azure Advanced Threat Protection) data connector properties."] @@ -128,18 +108,13 @@ impl AatpDataConnectorProperties { #[doc = "Represents ASC (Azure Security Center) requirements check request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AscCheckRequirements { - #[serde(flatten)] - pub data_connectors_check_requirements: DataConnectorsCheckRequirements, #[doc = "ASC (Azure Security Center) requirements check properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AscCheckRequirements { - pub fn new(data_connectors_check_requirements: DataConnectorsCheckRequirements) -> Self { - Self { - data_connectors_check_requirements, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "ASC (Azure Security Center) requirements check properties."] @@ -157,18 +132,13 @@ impl AscCheckRequirementsProperties { #[doc = "Represents ASC (Azure Security Center) data connector."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AscDataConnector { - #[serde(flatten)] - pub data_connector: DataConnector, #[doc = "ASC (Azure Security Center) data connector properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AscDataConnector { - pub fn new(data_connector: DataConnector) -> Self { - Self { - data_connector, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "ASC (Azure Security Center) data connector properties."] @@ -360,18 +330,13 @@ impl ActionsList { #[doc = "Represents Activity entity query."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ActivityCustomEntityQuery { - #[serde(flatten)] - pub custom_entity_query: CustomEntityQuery, #[doc = "Describes activity entity query properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ActivityCustomEntityQuery { - pub fn new(custom_entity_query: CustomEntityQuery) -> Self { - Self { - custom_entity_query, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Describes activity entity query properties"] @@ -439,35 +404,25 @@ pub mod activity_entity_queries_properties { #[doc = "Represents Activity entity query."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ActivityEntityQuery { - #[serde(flatten)] - pub entity_query: EntityQuery, #[doc = "Describes activity entity query properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ActivityEntityQuery { - pub fn new(entity_query: EntityQuery) -> Self { - Self { - entity_query, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Represents Activity entity query."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ActivityEntityQueryTemplate { - #[serde(flatten)] - pub entity_query_template: EntityQueryTemplate, #[doc = "Describes activity entity query properties"] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl ActivityEntityQueryTemplate { - pub fn new(entity_query_template: EntityQueryTemplate) -> Self { - Self { - entity_query_template, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Describes activity entity query properties"] @@ -534,8 +489,6 @@ pub mod activity_entity_query_template_properties { #[doc = "Represents Activity timeline item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct ActivityTimelineItem { - #[serde(flatten)] - pub entity_timeline_item: EntityTimelineItem, #[doc = "The activity query id."] #[serde(rename = "queryId")] pub query_id: String, @@ -558,7 +511,6 @@ pub struct ActivityTimelineItem { } impl ActivityTimelineItem { pub fn new( - entity_timeline_item: EntityTimelineItem, query_id: String, bucket_start_time_utc: time::OffsetDateTime, bucket_end_time_utc: time::OffsetDateTime, @@ -568,7 +520,6 @@ impl ActivityTimelineItem { title: String, ) -> Self { Self { - entity_timeline_item, query_id, bucket_start_time_utc, bucket_end_time_utc, @@ -687,19 +638,6 @@ impl AlertPropertyMapping { Self::default() } } -#[doc = "Alert rule."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AlertRule { - #[serde(flatten)] - pub resource_with_etag: ResourceWithEtag, -} -impl AlertRule { - pub fn new() -> Self { - Self { - resource_with_etag: ResourceWithEtag::default(), - } - } -} #[doc = "The kind of the alert rule"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -762,19 +700,6 @@ impl Serialize for AlertRuleKindEnum { } } } -#[doc = "Alert rule template."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AlertRuleTemplate { - #[serde(flatten)] - pub resource: Resource, -} -impl AlertRuleTemplate { - pub fn new() -> Self { - Self { - resource: Resource::default(), - } - } -} #[doc = "The kind of the alert rule"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -1032,18 +957,13 @@ impl AnalyticsRuleRunTriggerProperties { #[doc = "Settings with single toggle."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct Anomalies { - #[serde(flatten)] - pub settings: Settings, #[doc = "Anomalies property bag."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl Anomalies { - pub fn new(settings: Settings) -> Self { - Self { - settings, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "Anomalies property bag."] @@ -1061,18 +981,13 @@ impl AnomaliesSettingsProperties { #[doc = "Represents Anomaly Security ML Analytics Settings"] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AnomalySecurityMlAnalyticsSettings { - #[serde(flatten)] - pub security_ml_analytics_setting: SecurityMlAnalyticsSetting, #[doc = "AnomalySecurityMLAnalytics settings base property bag."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AnomalySecurityMlAnalyticsSettings { - pub fn new(security_ml_analytics_setting: SecurityMlAnalyticsSetting) -> Self { - Self { - security_ml_analytics_setting, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "AnomalySecurityMLAnalytics settings base property bag."] @@ -1199,8 +1114,6 @@ impl Serialize for AnomalySecurityMlAnalyticsSettingsStatus { #[doc = "Represents anomaly timeline item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AnomalyTimelineItem { - #[serde(flatten)] - pub entity_timeline_item: EntityTimelineItem, #[doc = "The anomaly azure resource id."] #[serde(rename = "azureResourceId")] pub azure_resource_id: String, @@ -1245,7 +1158,6 @@ pub struct AnomalyTimelineItem { } impl AnomalyTimelineItem { pub fn new( - entity_timeline_item: EntityTimelineItem, azure_resource_id: String, display_name: String, end_time_utc: time::OffsetDateTime, @@ -1253,7 +1165,6 @@ impl AnomalyTimelineItem { time_generated: time::OffsetDateTime, ) -> Self { Self { - entity_timeline_item, azure_resource_id, product_name: None, description: None, @@ -1453,14 +1364,6 @@ impl Serialize for AutomationRuleBooleanConditionSupportedOperator { } } } -#[doc = "Describes an automation rule condition."] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AutomationRuleCondition {} -impl AutomationRuleCondition { - pub fn new() -> Self { - Self {} - } -} #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "conditionType")] pub enum AutomationRuleConditionUnion { @@ -2267,32 +2170,22 @@ pub mod availability { } #[doc = "Amazon Web Services CloudTrail requirements check request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AwsCloudTrailCheckRequirements { - #[serde(flatten)] - pub data_connectors_check_requirements: DataConnectorsCheckRequirements, -} +pub struct AwsCloudTrailCheckRequirements {} impl AwsCloudTrailCheckRequirements { - pub fn new(data_connectors_check_requirements: DataConnectorsCheckRequirements) -> Self { - Self { - data_connectors_check_requirements, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents Amazon Web Services CloudTrail data connector."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AwsCloudTrailDataConnector { - #[serde(flatten)] - pub data_connector: DataConnector, #[doc = "Amazon Web Services CloudTrail data connector properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AwsCloudTrailDataConnector { - pub fn new(data_connector: DataConnector) -> Self { - Self { - data_connector, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The available data types for Amazon Web Services CloudTrail data connector."] @@ -2326,32 +2219,22 @@ impl AwsCloudTrailDataConnectorProperties { } #[doc = "Amazon Web Services S3 requirements check request."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct AwsS3CheckRequirements { - #[serde(flatten)] - pub data_connectors_check_requirements: DataConnectorsCheckRequirements, -} +pub struct AwsS3CheckRequirements {} impl AwsS3CheckRequirements { - pub fn new(data_connectors_check_requirements: DataConnectorsCheckRequirements) -> Self { - Self { - data_connectors_check_requirements, - } + pub fn new() -> Self { + Self {} } } #[doc = "Represents Amazon Web Services S3 data connector."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct AwsS3DataConnector { - #[serde(flatten)] - pub data_connector: DataConnector, #[doc = "Amazon Web Services S3 data connector properties."] #[serde(default, skip_serializing_if = "Option::is_none")] pub properties: Option, } impl AwsS3DataConnector { - pub fn new(data_connector: DataConnector) -> Self { - Self { - data_connector, - properties: None, - } + pub fn new() -> Self { + Self { properties: None } } } #[doc = "The available data types for Amazon Web Services S3 data connector."] @@ -2420,19 +2303,6 @@ impl AzureEntityResource { Self::default() } } -#[doc = "Billing statistic"] -#[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] -pub struct BillingStatistic { - #[serde(flatten)] - pub azure_entity_resource: AzureEntityResource, -} -impl BillingStatistic { - pub fn new() -> Self { - Self { - azure_entity_resource: AzureEntityResource::default(), - } - } -} #[doc = "The kind of the billing statistic"] #[derive(Debug, Clone, PartialEq, Serialize, Deserialize)] #[serde(tag = "kind")] @@ -2695,8 +2565,6 @@ impl BookmarkProperties { #[doc = "Represents bookmark timeline item."] #[derive(Clone, Debug, PartialEq, Serialize, Deserialize)] pub struct BookmarkTimelineItem { - #[serde(flatten)] - pub entity_timeline_item: EntityTimelineItem, #[doc = "The bookmark azure resource id."] #[serde(rename = "azureResourceId")] pub azure_resource_id: String, @@ -2727,9 +2595,8 @@ pub struct BookmarkTimelineItem { pub labels: Vec