diff --git a/eng/ApiListing.exclude-attributes.txt b/eng/ApiListing.exclude-attributes.txt index cd890199bf46..b21c0c45c897 100644 --- a/eng/ApiListing.exclude-attributes.txt +++ b/eng/ApiListing.exclude-attributes.txt @@ -2,4 +2,5 @@ T:System.Runtime.CompilerServices.AsyncIteratorStateMachineAttribute T:System.Runtime.CompilerServices.AsyncStateMachineAttribute T:System.Runtime.CompilerServices.CompilerGeneratedAttribute T:System.Runtime.CompilerServices.NullableContextAttribute -T:System.Runtime.CompilerServices.NullableAttribute \ No newline at end of file +T:System.Runtime.CompilerServices.NullableAttribute +T:Azure.Core.CodeGenSuppressAttribute \ No newline at end of file diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 2407c31c0363..0e9111209adc 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -131,7 +131,7 @@ All should have PrivateAssets="All" set so they don't become pacakge dependencies --> - + diff --git a/sdk/attestation/Azure.Security.Attestation/api/Azure.Security.Attestation.netstandard2.0.cs b/sdk/attestation/Azure.Security.Attestation/api/Azure.Security.Attestation.netstandard2.0.cs index 774f94ecdeff..823be79786f8 100644 --- a/sdk/attestation/Azure.Security.Attestation/api/Azure.Security.Attestation.netstandard2.0.cs +++ b/sdk/attestation/Azure.Security.Attestation/api/Azure.Security.Attestation.netstandard2.0.cs @@ -223,10 +223,6 @@ public event Azure.Core.SyncAsyncEventHandler { diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/AzureSecurityAttestationModelFactory.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/AzureSecurityAttestationModelFactory.cs deleted file mode 100644 index 513e5b2818af..000000000000 --- a/sdk/attestation/Azure.Security.Attestation/src/Generated/AzureSecurityAttestationModelFactory.cs +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -namespace Azure.Security.Attestation -{ - /// Model factory for read-only models. - public static partial class AzureSecurityAttestationModelFactory - { - /// Initializes new instance of TpmAttestationResponse class. - /// Protocol data containing attestation service response. - /// A new instance for mocking. - public static TpmAttestationResponse TpmAttestationResponse(string internalData = default) - { - return new TpmAttestationResponse(internalData); - } - } -} diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/api/Azure.Containers.ContainerRegistry.netstandard2.0.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/api/Azure.Containers.ContainerRegistry.netstandard2.0.cs index 4e4fa1656164..94da344c9ba0 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/api/Azure.Containers.ContainerRegistry.netstandard2.0.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/api/Azure.Containers.ContainerRegistry.netstandard2.0.cs @@ -137,7 +137,6 @@ public enum ServiceVersion public static partial class ContainerRegistryModelFactory { public static Azure.Containers.ContainerRegistry.ArtifactManifestPlatform ArtifactManifestPlatform(string digest = null, Azure.Containers.ContainerRegistry.ArtifactArchitecture? architecture = default(Azure.Containers.ContainerRegistry.ArtifactArchitecture?), Azure.Containers.ContainerRegistry.ArtifactOperatingSystem? operatingSystem = default(Azure.Containers.ContainerRegistry.ArtifactOperatingSystem?)) { throw null; } - public static Azure.Containers.ContainerRegistry.ArtifactManifestProperties ArtifactManifestProperties(string registryLoginServer = null, string repositoryName = null, string digest = null, long? size = default(long?), System.DateTimeOffset createdOn = default(System.DateTimeOffset), System.DateTimeOffset lastUpdatedOn = default(System.DateTimeOffset), Azure.Containers.ContainerRegistry.ArtifactArchitecture? architecture = default(Azure.Containers.ContainerRegistry.ArtifactArchitecture?), Azure.Containers.ContainerRegistry.ArtifactOperatingSystem? operatingSystem = default(Azure.Containers.ContainerRegistry.ArtifactOperatingSystem?), System.Collections.Generic.IReadOnlyList relatedArtifacts = null, System.Collections.Generic.IReadOnlyList tags = null, bool? canDelete = default(bool?), bool? canWrite = default(bool?), bool? canList = default(bool?), bool? canRead = default(bool?), string quarantineState = null, string quarantineDetails = null) { throw null; } public static Azure.Containers.ContainerRegistry.ArtifactTagProperties ArtifactTagProperties(string registryLoginServer = null, string repositoryName = null, string name = null, string digest = null, System.DateTimeOffset createdOn = default(System.DateTimeOffset), System.DateTimeOffset lastUpdatedOn = default(System.DateTimeOffset), bool? canDelete = default(bool?), bool? canWrite = default(bool?), bool? canList = default(bool?), bool? canRead = default(bool?)) { throw null; } public static Azure.Containers.ContainerRegistry.ContainerRepositoryProperties ContainerRepositoryProperties(string registryLoginServer = null, string name = null, System.DateTimeOffset createdOn = default(System.DateTimeOffset), System.DateTimeOffset lastUpdatedOn = default(System.DateTimeOffset), int manifestCount = 0, int tagCount = 0, bool? canDelete = default(bool?), bool? canWrite = default(bool?), bool? canList = default(bool?), bool? canRead = default(bool?), bool? teleportEnabled = default(bool?)) { throw null; } } diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/ContainerRegistryModelFactory.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/ContainerRegistryModelFactory.cs index bc0156a7d61a..872a2737abca 100644 --- a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/ContainerRegistryModelFactory.cs +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/ContainerRegistryModelFactory.cs @@ -6,7 +6,6 @@ #nullable disable using System; -using System.Collections.Generic; namespace Azure.Containers.ContainerRegistry { @@ -57,30 +56,5 @@ public static ArtifactManifestPlatform ArtifactManifestPlatform(string digest = { return new ArtifactManifestPlatform(digest, architecture, operatingSystem); } - - /// Initializes new instance of ArtifactManifestProperties class. - /// Registry login server name. This is likely to be similar to {registry-name}.azurecr.io. - /// Repository name. - /// Manifest. - /// Image size. - /// Created time. - /// Last update time. - /// CPU architecture. - /// Operating system. - /// List of artifacts that are referenced by this manifest list, with information about the platform each supports. This list will be empty if this is a leaf manifest and not a manifest list. - /// List of tags. - /// Delete enabled. - /// Write enabled. - /// List enabled. - /// Read enabled. - /// Quarantine state. - /// Quarantine details. - /// A new instance for mocking. - public static ArtifactManifestProperties ArtifactManifestProperties(string registryLoginServer = default, string repositoryName = default, string digest = default, long? size = default, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, ArtifactArchitecture? architecture = default, ArtifactOperatingSystem? operatingSystem = default, IReadOnlyList relatedArtifacts = default, IReadOnlyList tags = default, bool? canDelete = default, bool? canWrite = default, bool? canList = default, bool? canRead = default, string quarantineState = default, string quarantineDetails = default) - { - relatedArtifacts ??= new List(); - tags ??= new List(); - return new ArtifactManifestProperties(registryLoginServer, repositoryName, digest, size, createdOn, lastUpdatedOn, architecture, operatingSystem, relatedArtifacts, tags, canDelete, canWrite, canList, canRead, quarantineState, quarantineDetails); - } } } diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs index 29c22c93eb13..30ec3024f650 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Customization/EventGridModelFactory.cs @@ -8,15 +8,6 @@ namespace Azure.Messaging.EventGrid { - [CodeGenSuppress("ResourceWriteFailureEventData", typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(JsonElement), typeof(JsonElement), typeof(string), typeof(JsonElement))] - [CodeGenSuppress("ResourceWriteSuccessEventData", typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(JsonElement), typeof(JsonElement), typeof(string), typeof(JsonElement))] - [CodeGenSuppress("ResourceWriteCancelEventData", typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(JsonElement), typeof(JsonElement), typeof(string), typeof(JsonElement))] - [CodeGenSuppress("ResourceDeleteFailureEventData", typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(JsonElement), typeof(JsonElement), typeof(string), typeof(JsonElement))] - [CodeGenSuppress("ResourceDeleteSuccessEventData", typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(JsonElement), typeof(JsonElement), typeof(string), typeof(JsonElement))] - [CodeGenSuppress("ResourceDeleteCancelEventData", typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(JsonElement), typeof(JsonElement), typeof(string), typeof(JsonElement))] - [CodeGenSuppress("ResourceActionSuccessEventData", typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(JsonElement), typeof(JsonElement), typeof(string), typeof(JsonElement))] - [CodeGenSuppress("ResourceActionFailureEventData", typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(JsonElement), typeof(JsonElement), typeof(string), typeof(JsonElement))] - [CodeGenSuppress("ResourceActionCancelEventData", typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(string), typeof(JsonElement), typeof(JsonElement), typeof(string), typeof(JsonElement))] #pragma warning disable CA1054 // URI-like parameters should not be strings public static partial class EventGridModelFactory { diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs index bb4915a94fac..5a47c472495b 100644 --- a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs @@ -7,7 +7,6 @@ using System; using System.Collections.Generic; -using System.Text.Json; using Azure.Messaging.EventGrid.SystemEvents; namespace Azure.Messaging.EventGrid diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs index 4218899efd81..7d855c5ed93b 100644 --- a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs @@ -14,29 +14,6 @@ namespace Azure.AI.MetricsAdvisor /// Model factory for read-only models. internal static partial class MicrosoftAzureMetricsAdvisorRestAPIOpenAPIV2ModelFactory { - /// Initializes new instance of AnomalyAlertConfiguration class. - /// anomaly alerting configuration unique id. - /// anomaly alerting configuration name. - /// anomaly alerting configuration description. - /// - /// cross metrics operator - /// - /// - /// - /// should be specified when setting up multiple metric alerting configurations. - /// - /// dimensions used to split alert. - /// hook unique ids. - /// Anomaly alerting configurations. - /// A new instance for mocking. - public static AnomalyAlertConfiguration AnomalyAlertConfiguration(string id = default, string name = default, string description = default, MetricAnomalyAlertConfigurationsOperator? crossMetricsOperator = default, IList splitAlertByDimensions = default, IList idsOfHooksToAlert = default, IList metricAlertConfigurations = default) - { - splitAlertByDimensions ??= new List(); - idsOfHooksToAlert ??= new List(); - metricAlertConfigurations ??= new List(); - return new AnomalyAlertConfiguration(id, name, description, crossMetricsOperator, splitAlertByDimensions, idsOfHooksToAlert, metricAlertConfigurations); - } - /// Initializes new instance of AnomalyAlert class. /// alert id. /// anomaly time. @@ -114,28 +91,6 @@ public static DataFeedIngestionProgress DataFeedIngestionProgress(DateTimeOffset return new DataFeedIngestionProgress(latestSuccessTimestamp, latestActiveTimestamp); } - /// Initializes new instance of MetricSeriesData class. - /// . - /// timestamps of the data related to this time series. - /// values of the data related to this time series. - /// A new instance for mocking. - public static MetricSeriesData MetricSeriesData(MetricSeriesDefinition definition = default, IReadOnlyList timestamps = default, IReadOnlyList metricValues = default) - { - timestamps ??= new List(); - metricValues ??= new List(); - return new MetricSeriesData(definition, timestamps, metricValues); - } - - /// Initializes new instance of MetricSeriesDefinition class. - /// metric unique id. - /// dimension name and value pair. - /// A new instance for mocking. - public static MetricSeriesDefinition MetricSeriesDefinition(string metricId = default, IReadOnlyDictionary dimension = default) - { - dimension ??= new Dictionary(); - return new MetricSeriesDefinition(metricId, dimension); - } - /// Initializes new instance of EnrichmentStatus class. /// data slice timestamp. /// latest enrichment status for this data slice. diff --git a/sdk/monitor/Azure.Monitor.Query/api/Azure.Monitor.Query.netstandard2.0.cs b/sdk/monitor/Azure.Monitor.Query/api/Azure.Monitor.Query.netstandard2.0.cs index 655e95d263fc..4f9b69eb4039 100644 --- a/sdk/monitor/Azure.Monitor.Query/api/Azure.Monitor.Query.netstandard2.0.cs +++ b/sdk/monitor/Azure.Monitor.Query/api/Azure.Monitor.Query.netstandard2.0.cs @@ -70,11 +70,8 @@ public MetricsQueryOptions() { } } public static partial class QueryModelFactory { - public static Azure.Monitor.Query.Models.LogsQueryResult LogsQueryResult(System.Collections.Generic.IReadOnlyList tables = null, System.Text.Json.JsonElement Statistics = default(System.Text.Json.JsonElement), System.Text.Json.JsonElement Visualization = default(System.Text.Json.JsonElement), System.Text.Json.JsonElement Error = default(System.Text.Json.JsonElement)) { throw null; } public static Azure.Monitor.Query.Models.LogsQueryResultColumn LogsQueryResultColumn(string name = null, Azure.Monitor.Query.Models.LogsColumnType type = default(Azure.Monitor.Query.Models.LogsColumnType)) { throw null; } - public static Azure.Monitor.Query.Models.LogsQueryResultTable LogsQueryResultTable(string name = null, System.Collections.Generic.IReadOnlyList columns = null, System.Text.Json.JsonElement internalRows = default(System.Text.Json.JsonElement)) { throw null; } public static Azure.Monitor.Query.Models.MetricAvailability MetricAvailability(System.TimeSpan? timeGrain = default(System.TimeSpan?), System.TimeSpan? retention = default(System.TimeSpan?)) { throw null; } - public static Azure.Monitor.Query.Models.MetricQueryResult MetricQueryResult(int? cost = default(int?), string Timespan = null, System.TimeSpan? interval = default(System.TimeSpan?), string @namespace = null, string resourceRegion = null, System.Collections.Generic.IReadOnlyList metrics = null) { throw null; } public static Azure.Monitor.Query.Models.MetricValue MetricValue(System.DateTimeOffset timeStamp = default(System.DateTimeOffset), double? average = default(double?), double? minimum = default(double?), double? maximum = default(double?), double? total = default(double?), double? count = default(double?)) { throw null; } } } diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/QueryModelFactory.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/QueryModelFactory.cs index 2d38cedf6f33..ed55df97004e 100644 --- a/sdk/monitor/Azure.Monitor.Query/src/Generated/QueryModelFactory.cs +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/QueryModelFactory.cs @@ -6,8 +6,6 @@ #nullable disable using System; -using System.Collections.Generic; -using System.Text.Json; using Azure.Monitor.Query.Models; namespace Azure.Monitor.Query @@ -15,29 +13,6 @@ namespace Azure.Monitor.Query /// Model factory for read-only models. public static partial class QueryModelFactory { - /// Initializes new instance of LogsQueryResult class. - /// The list of tables, columns and rows. - /// Any object. - /// Any object. - /// Any object. - /// A new instance for mocking. - public static LogsQueryResult LogsQueryResult(IReadOnlyList tables = default, JsonElement Statistics = default, JsonElement Visualization = default, JsonElement Error = default) - { - tables ??= new List(); - return new LogsQueryResult(tables, Statistics, Visualization, Error); - } - - /// Initializes new instance of LogsQueryResultTable class. - /// The name of the table. - /// The list of columns in this table. - /// The resulting rows from this query. - /// A new instance for mocking. - public static LogsQueryResultTable LogsQueryResultTable(string name = default, IReadOnlyList columns = default, JsonElement internalRows = default) - { - columns ??= new List(); - return new LogsQueryResultTable(name, columns, internalRows); - } - /// Initializes new instance of LogsQueryResultColumn class. /// The name of this column. /// The data type of this column. @@ -56,20 +31,6 @@ public static MetricAvailability MetricAvailability(TimeSpan? timeGrain = defaul return new MetricAvailability(timeGrain, retention); } - /// Initializes new instance of MetricQueryResult class. - /// The integer value representing the relative cost of the query. - /// The timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested. - /// The interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made. - /// The namespace of the metrics being queried. - /// The region of the resource being queried for metrics. - /// the value of the collection. - /// A new instance for mocking. - public static MetricQueryResult MetricQueryResult(int? cost = default, string Timespan = default, TimeSpan? interval = default, string @namespace = default, string resourceRegion = default, IReadOnlyList metrics = default) - { - metrics ??= new List(); - return new MetricQueryResult(cost, Timespan, interval, @namespace, resourceRegion, metrics); - } - /// Initializes new instance of MetricValue class. /// the timestamp for the metric value in ISO 8601 format. /// the average value in the time range. diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/AOAFrontEndAPIsModelFactory.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/AOAFrontEndAPIsModelFactory.cs deleted file mode 100644 index 01f544ba9138..000000000000 --- a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/AOAFrontEndAPIsModelFactory.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.MixedReality.ObjectAnchors.Conversion -{ - /// Model factory for read-only models. - internal static partial class AOAFrontEndAPIsModelFactory - { - /// Initializes new instance of AssetConversionProperties class. - /// Information about the cause of a ClientError JobStatus. - /// Information about the cause of a ServerError JobStatus. - /// . - /// Identifier for the AOA asset conversion job. - /// The URI for downloading the generated AOA Model. - /// . - /// The file type of the original 3D asset. Examples include: "ply", "obj", "fbx", "glb", "gltf", etc. - /// The Uri to the Asset to be ingested by the AOA asset conversion service. This asset needs to have been uploaded to the service using an endpoint provided from a call to the GetUploadUri API. - /// Identifier for the Account owning the asset conversion job. - /// Represents an ingestion configuration. - /// A new instance for mocking. - public static AssetConversionProperties AssetConversionProperties(string clientErrorDetails = default, string serverErrorDetails = default, ConversionErrorCode errorCode = default, Guid? jobIdInternal = default, string outputModelUriString = default, AssetConversionStatus? conversionStatus = default, string assetFileTypeString = default, string inputAssetUriString = default, Guid? accountIdInternal = default, AssetConversionConfiguration conversionConfiguration = default) - { - return new AssetConversionProperties(clientErrorDetails, serverErrorDetails, errorCode, jobIdInternal, outputModelUriString, conversionStatus, assetFileTypeString, inputAssetUriString, accountIdInternal, conversionConfiguration); - } - - /// Initializes new instance of AssetUploadUriResult class. - /// The blob upload URI where a model should be uploaded to the service for ingestion. - /// A new instance for mocking. - public static AssetUploadUriResult AssetUploadUriResult(string uploadUriString = default) - { - return new AssetUploadUriResult(uploadUriString); - } - } -} diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/api/Azure.MixedReality.RemoteRendering.netstandard2.0.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/api/Azure.MixedReality.RemoteRendering.netstandard2.0.cs index 1b3ddc3f1301..60d9994988c0 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/api/Azure.MixedReality.RemoteRendering.netstandard2.0.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/api/Azure.MixedReality.RemoteRendering.netstandard2.0.cs @@ -72,13 +72,6 @@ public AssetConversionOutputOptions(System.Uri storageContainerUri) { } public static bool operator !=(Azure.MixedReality.RemoteRendering.AssetConversionStatus left, Azure.MixedReality.RemoteRendering.AssetConversionStatus right) { throw null; } public override string ToString() { throw null; } } - public static partial class MixedRealityRemoteRenderingModelFactory - { - public static Azure.MixedReality.RemoteRendering.AssetConversion AssetConversion(string conversionId = null, Azure.MixedReality.RemoteRendering.AssetConversionOptions options = null, Azure.MixedReality.RemoteRendering.AssetConversionOutput output = null, Azure.MixedReality.RemoteRendering.RemoteRenderingServiceError error = null, Azure.MixedReality.RemoteRendering.AssetConversionStatus status = default(Azure.MixedReality.RemoteRendering.AssetConversionStatus), System.DateTimeOffset createdOn = default(System.DateTimeOffset)) { throw null; } - public static Azure.MixedReality.RemoteRendering.AssetConversionOutput AssetConversionOutput(string outputAssetUri = null) { throw null; } - public static Azure.MixedReality.RemoteRendering.RemoteRenderingServiceError RemoteRenderingServiceError(string code = null, string message = null, System.Collections.Generic.IReadOnlyList details = null, string target = null, Azure.MixedReality.RemoteRendering.RemoteRenderingServiceError innerError = null) { throw null; } - public static Azure.MixedReality.RemoteRendering.RenderingSession RenderingSession(string sessionId = null, int? arrInspectorPort = default(int?), int? handshakePort = default(int?), int? elapsedTimeMinutes = default(int?), string host = null, int? maxLeaseTimeMinutes = default(int?), Azure.MixedReality.RemoteRendering.RenderingServerSize size = default(Azure.MixedReality.RemoteRendering.RenderingServerSize), Azure.MixedReality.RemoteRendering.RenderingSessionStatus status = default(Azure.MixedReality.RemoteRendering.RenderingSessionStatus), float? teraflops = default(float?), Azure.MixedReality.RemoteRendering.RemoteRenderingServiceError error = null, System.DateTimeOffset? createdOn = default(System.DateTimeOffset?)) { throw null; } - } public partial class RemoteRenderingClient { protected RemoteRenderingClient() { } diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Customizations/Models/RemoteRenderingModelFactory.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Customizations/Models/RemoteRenderingModelFactory.cs index 0c01a8bd1785..3926ef98648c 100644 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Customizations/Models/RemoteRenderingModelFactory.cs +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Customizations/Models/RemoteRenderingModelFactory.cs @@ -3,8 +3,9 @@ using System; using System.Collections.Generic; -using System.ComponentModel; -using System.Text; +using Azure.Core; + +[assembly: CodeGenSuppressType("MixedRealityRemoteRenderingModelFactory")] namespace Azure.MixedReality.RemoteRendering { diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/MixedRealityRemoteRenderingModelFactory.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/MixedRealityRemoteRenderingModelFactory.cs deleted file mode 100644 index a46608582b97..000000000000 --- a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/MixedRealityRemoteRenderingModelFactory.cs +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.Collections.Generic; - -namespace Azure.MixedReality.RemoteRendering -{ - /// Model factory for read-only models. - public static partial class MixedRealityRemoteRenderingModelFactory - { - /// Initializes new instance of AssetConversion class. - /// The ID of the conversion supplied when the conversion was created. - /// Conversion settings describe the origin of input files and destination of output files. - /// Information about the output of a successful conversion. Only present when the status of the conversion is 'Succeeded'. - /// The error object containing details about the conversion failure. - /// The status of the conversion. Terminal states are 'Cancelled', 'Failed', and 'Succeeded'. - /// The time when the conversion was created. Date and time in ISO 8601 format. - /// A new instance for mocking. - public static AssetConversion AssetConversion(string conversionId = default, AssetConversionOptions options = default, AssetConversionOutput output = default, RemoteRenderingServiceError error = default, AssetConversionStatus status = default, DateTimeOffset createdOn = default) - { - return new AssetConversion(conversionId, options, output, error, status, createdOn); - } - - /// Initializes new instance of AssetConversionOutput class. - /// URI of the asset generated by the conversion process. - /// A new instance for mocking. - public static AssetConversionOutput AssetConversionOutput(string outputAssetUri = default) - { - return new AssetConversionOutput(outputAssetUri); - } - - /// Initializes new instance of RemoteRenderingServiceError class. - /// Error code. - /// A human-readable representation of the error. - /// An array of details about specific errors that led to this reported error. - /// The target of the particular error (e.g., the name of the property in error). - /// An object containing more specific information than the current object about the error. - /// A new instance for mocking. - public static RemoteRenderingServiceError RemoteRenderingServiceError(string code = default, string message = default, IReadOnlyList details = default, string target = default, RemoteRenderingServiceError innerError = default) - { - details ??= new List(); - return new RemoteRenderingServiceError(code, message, details, target, innerError); - } - - /// Initializes new instance of RenderingSession class. - /// The ID of the session supplied when the session was created. - /// The TCP port at which the Azure Remote Rendering Inspector tool is hosted. - /// The TCP port used for the handshake when establishing a connection. - /// Amount of time in minutes the session is or was in the 'Ready' state. Time is rounded down to a full minute. - /// The hostname under which the rendering session is reachable. - /// The time in minutes the session will run after reaching the 'Ready' state. - /// The size of the server used for the rendering session. The size impacts the number of polygons the server can render. Refer to https://docs.microsoft.com/azure/remote-rendering/reference/vm-sizes for details. - /// The status of the rendering session. Terminal states are 'Error', 'Expired', and 'Stopped'. - /// The computational power of the rendering session GPU measured in teraflops. - /// The error object containing details about the rendering session startup failure. - /// The time when the rendering session was created. Date and time in ISO 8601 format. - /// A new instance for mocking. - public static RenderingSession RenderingSession(string sessionId = default, int? arrInspectorPort = default, int? handshakePort = default, int? elapsedTimeMinutes = default, string host = default, int? maxLeaseTimeMinutes = default, RenderingServerSize size = default, RenderingSessionStatus status = default, float? teraflops = default, RemoteRenderingServiceError error = default, DateTimeOffset? createdOn = default) - { - return new RenderingSession(sessionId, arrInspectorPort, handshakePort, elapsedTimeMinutes, host, maxLeaseTimeMinutes, size, status, teraflops, error, createdOn); - } - } -} diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/TableModelFactory.cs b/sdk/tables/Azure.Data.Tables/src/Generated/TableModelFactory.cs index 5f0cb5e8dc88..85aa221f2880 100644 --- a/sdk/tables/Azure.Data.Tables/src/Generated/TableModelFactory.cs +++ b/sdk/tables/Azure.Data.Tables/src/Generated/TableModelFactory.cs @@ -12,17 +12,6 @@ namespace Azure.Data.Tables.Models /// Model factory for read-only models. public static partial class TableModelFactory { - /// Initializes new instance of TableItem class. - /// The name of the table. - /// The odata type of the table. - /// The id of the table. - /// The edit link of the table. - /// A new instance for mocking. - public static TableItem TableItem(string name = default, string odataType = default, string odataId = default, string odataEditLink = default) - { - return new TableItem(name, odataType, odataId, odataEditLink); - } - /// Initializes new instance of TableServiceStatistics class. /// Geo-Replication information for the Secondary Storage Service. /// A new instance for mocking. diff --git a/sdk/tables/Azure.Data.Tables/src/TableModelFactory.cs b/sdk/tables/Azure.Data.Tables/src/TableModelFactory.cs index a116eb5b94e4..fd36c6dbe634 100644 --- a/sdk/tables/Azure.Data.Tables/src/TableModelFactory.cs +++ b/sdk/tables/Azure.Data.Tables/src/TableModelFactory.cs @@ -7,5 +7,16 @@ namespace Azure.Data.Tables.Models { [CodeGenModel("AzureDataTablesModelFactory")] public partial class TableModelFactory - { } + { + /// Initializes new instance of TableItem class. + /// The name of the table. + /// The odata type of the table. + /// The id of the table. + /// The edit link of the table. + /// A new instance for mocking. + public static TableItem TableItem(string name = default, string odataType = default, string odataId = default, string odataEditLink = default) + { + return new TableItem(name, odataType, odataId, odataEditLink); + } + } } diff --git a/sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.netstandard2.0.cs b/sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.netstandard2.0.cs index 386d5a0978ec..d7378d6dd24b 100644 --- a/sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.netstandard2.0.cs +++ b/sdk/translation/Azure.AI.Translation.Document/api/Azure.AI.Translation.Document.netstandard2.0.cs @@ -2,7 +2,6 @@ namespace Azure.AI.Translation.Document { public static partial class BatchDocumentTranslationModelFactory { - public static Azure.AI.Translation.Document.DocumentStatus DocumentStatus(System.Uri translatedDocumentUri = null, System.Uri sourceDocumentUri = null, System.DateTimeOffset createdOn = default(System.DateTimeOffset), System.DateTimeOffset lastModified = default(System.DateTimeOffset), Azure.AI.Translation.Document.DocumentTranslationStatus status = default(Azure.AI.Translation.Document.DocumentTranslationStatus), string translatedTo = null, Azure.AI.Translation.Document.DocumentTranslationError error = null, float progress = 0f, string id = null, long charactersCharged = (long)0) { throw null; } public static Azure.AI.Translation.Document.FileFormat FileFormat(string format = null, System.Collections.Generic.IReadOnlyList fileExtensions = null, System.Collections.Generic.IReadOnlyList contentTypes = null, string defaultFormatVersion = null, System.Collections.Generic.IReadOnlyList formatVersions = null) { throw null; } } public partial class DocumentFilter diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/BatchDocumentTranslationModelFactory.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/BatchDocumentTranslationModelFactory.cs index f49ffe0d447e..991e549d439d 100644 --- a/sdk/translation/Azure.AI.Translation.Document/src/Generated/BatchDocumentTranslationModelFactory.cs +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/BatchDocumentTranslationModelFactory.cs @@ -5,7 +5,6 @@ #nullable disable -using System; using System.Collections.Generic; namespace Azure.AI.Translation.Document @@ -13,23 +12,6 @@ namespace Azure.AI.Translation.Document /// Model factory for read-only models. public static partial class BatchDocumentTranslationModelFactory { - /// Initializes new instance of DocumentStatus class. - /// Location of the document or folder. - /// Location of the source document. - /// Operation created date time. - /// Date time in which the operation's status has been updated. - /// List of possible statuses for job or document. - /// To language. - /// This contains an outer error with error code, message, details, target and an inner error with more descriptive details. - /// Progress of the translation if available. - /// Document Id. - /// Character charged by the API. - /// A new instance for mocking. - public static DocumentStatus DocumentStatus(Uri translatedDocumentUri = default, Uri sourceDocumentUri = default, DateTimeOffset createdOn = default, DateTimeOffset lastModified = default, DocumentTranslationStatus status = default, string translatedTo = default, DocumentTranslationError error = default, float progress = default, string id = default, long charactersCharged = default) - { - return new DocumentStatus(translatedDocumentUri, sourceDocumentUri, createdOn, lastModified, status, translatedTo, error, progress, id, charactersCharged); - } - /// Initializes new instance of FileFormat class. /// Name of the format. /// Supported file extension for this format.