diff --git a/eng/Packages.Data.props b/eng/Packages.Data.props index 4e51a27cfa2ea..a9e0dfcbb5789 100644 --- a/eng/Packages.Data.props +++ b/eng/Packages.Data.props @@ -130,7 +130,7 @@ All should have PrivateAssets="All" set so they don't become pacakge dependencies --> - + diff --git a/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyDetectorModelFactory.cs b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyDetectorModelFactory.cs new file mode 100644 index 0000000000000..21e38d793203a --- /dev/null +++ b/sdk/anomalydetector/Azure.AI.AnomalyDetector/src/Generated/AnomalyDetectorModelFactory.cs @@ -0,0 +1,209 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.AI.AnomalyDetector.Models; + +namespace Azure.AI.AnomalyDetector +{ + /// Model factory for AnomalyDetector read-only models. + public static partial class AnomalyDetectorModelFactory + { + /// Initializes new instance of EntireDetectResponse class. + /// Frequency extracted from the series, zero means no recurrent pattern has been found. + /// ExpectedValues contain expected value for each input point. The index of the array is consistent with the input series. + /// UpperMargins contain upper margin of each input point. UpperMargin is used to calculate upperBoundary, which equals to expectedValue + (100 - marginScale)*upperMargin. Anomalies in response can be filtered by upperBoundary and lowerBoundary. By adjusting marginScale value, less significant anomalies can be filtered in client side. The index of the array is consistent with the input series. + /// LowerMargins contain lower margin of each input point. LowerMargin is used to calculate lowerBoundary, which equals to expectedValue - (100 - marginScale)*lowerMargin. Points between the boundary can be marked as normal ones in client side. The index of the array is consistent with the input series. + /// IsAnomaly contains anomaly properties for each input point. True means an anomaly either negative or positive has been detected. The index of the array is consistent with the input series. + /// IsNegativeAnomaly contains anomaly status in negative direction for each input point. True means a negative anomaly has been detected. A negative anomaly means the point is detected as an anomaly and its real value is smaller than the expected one. The index of the array is consistent with the input series. + /// IsPositiveAnomaly contain anomaly status in positive direction for each input point. True means a positive anomaly has been detected. A positive anomaly means the point is detected as an anomaly and its real value is larger than the expected one. The index of the array is consistent with the input series. + /// A new instance for mocking. + public static EntireDetectResponse EntireDetectResponse(int period = default, IReadOnlyList expectedValues = default, IReadOnlyList upperMargins = default, IReadOnlyList lowerMargins = default, IReadOnlyList isAnomaly = default, IReadOnlyList isNegativeAnomaly = default, IReadOnlyList isPositiveAnomaly = default) + { + expectedValues ??= new List(); + upperMargins ??= new List(); + lowerMargins ??= new List(); + isAnomaly ??= new List(); + isNegativeAnomaly ??= new List(); + isPositiveAnomaly ??= new List(); + return new EntireDetectResponse(period, expectedValues, upperMargins, lowerMargins, isAnomaly, isNegativeAnomaly, isPositiveAnomaly); + } + + /// Initializes new instance of LastDetectResponse class. + /// Frequency extracted from the series, zero means no recurrent pattern has been found. + /// Suggested input series points needed for detecting the latest point. + /// Expected value of the latest point. + /// Upper margin of the latest point. UpperMargin is used to calculate upperBoundary, which equals to expectedValue + (100 - marginScale)*upperMargin. If the value of latest point is between upperBoundary and lowerBoundary, it should be treated as normal value. By adjusting marginScale value, anomaly status of latest point can be changed. + /// Lower margin of the latest point. LowerMargin is used to calculate lowerBoundary, which equals to expectedValue - (100 - marginScale)*lowerMargin. + /// Anomaly status of the latest point, true means the latest point is an anomaly either in negative direction or positive direction. + /// Anomaly status in negative direction of the latest point. True means the latest point is an anomaly and its real value is smaller than the expected one. + /// Anomaly status in positive direction of the latest point. True means the latest point is an anomaly and its real value is larger than the expected one. + /// A new instance for mocking. + public static LastDetectResponse LastDetectResponse(int period = default, int suggestedWindow = default, float expectedValue = default, float upperMargin = default, float lowerMargin = default, bool isAnomaly = default, bool isNegativeAnomaly = default, bool isPositiveAnomaly = default) + { + return new LastDetectResponse(period, suggestedWindow, expectedValue, upperMargin, lowerMargin, isAnomaly, isNegativeAnomaly, isPositiveAnomaly); + } + + /// Initializes new instance of ChangePointDetectResponse class. + /// Frequency extracted from the series, zero means no recurrent pattern has been found. + /// isChangePoint contains change point properties for each input point. True means an anomaly either negative or positive has been detected. The index of the array is consistent with the input series. + /// the change point confidence of each point. + /// A new instance for mocking. + public static ChangePointDetectResponse ChangePointDetectResponse(int? period = default, IReadOnlyList isChangePoint = default, IReadOnlyList confidenceScores = default) + { + isChangePoint ??= new List(); + confidenceScores ??= new List(); + return new ChangePointDetectResponse(period, isChangePoint, confidenceScores); + } + + /// Initializes new instance of ModelInfo class. + /// An optional field, indicates how many history points will be used to determine the anomaly score of one subsequent point. + /// An optional field, since those multivariate need to be aligned in the same timestamp before starting the detection. + /// source file link of the input variables, each variable will be a csv with two columns, the first column will be timestamp, the second column will be value.Besides these variable csv files, an extra meta.json can be included in th zip file if you would like to rename a variable.Be default, the file name of the variable will be used as the variable name. + /// require field, start time of data be used for generating multivariate anomaly detection model, should be data-time. + /// require field, end time of data be used for generating multivariate anomaly detection model, should be data-time. + /// optional field, name of the model. + /// Model training status. + /// Error message when fails to create a model. + /// Used for deep analysis model and variables. + /// A new instance for mocking. + public static ModelInfo ModelInfo(int? slidingWindow = default, AlignPolicy alignPolicy = default, string source = default, DateTimeOffset startTime = default, DateTimeOffset endTime = default, string displayName = default, ModelStatus? status = default, IReadOnlyList errors = default, DiagnosticsInfo diagnosticsInfo = default) + { + errors ??= new List(); + return new ModelInfo(slidingWindow, alignPolicy, source, startTime, endTime, displayName, status, errors, diagnosticsInfo); + } + + /// Initializes new instance of ErrorResponse class. + /// The error Code. + /// A message explaining the error reported by the service. + /// A new instance for mocking. + public static ErrorResponse ErrorResponse(string code = default, string message = default) + { + return new ErrorResponse(code, message); + } + + /// Initializes new instance of DiagnosticsInfo class. + /// . + /// . + /// A new instance for mocking. + public static DiagnosticsInfo DiagnosticsInfo(ModelState modelState = default, IReadOnlyList variableStates = default) + { + variableStates ??= new List(); + return new DiagnosticsInfo(modelState, variableStates); + } + + /// Initializes new instance of ModelState class. + /// Epoch id. + /// . + /// . + /// . + /// A new instance for mocking. + public static ModelState ModelState(IReadOnlyList epochIds = default, IReadOnlyList trainLosses = default, IReadOnlyList validationLosses = default, IReadOnlyList latenciesInSeconds = default) + { + epochIds ??= new List(); + trainLosses ??= new List(); + validationLosses ??= new List(); + latenciesInSeconds ??= new List(); + return new ModelState(epochIds, trainLosses, validationLosses, latenciesInSeconds); + } + + /// Initializes new instance of VariableState class. + /// Variable name. + /// Merged NA ratio of a variable. + /// Effective time-series points count. + /// Start time of a variable. + /// End time of a variable. + /// Error message when parse variable. + /// A new instance for mocking. + public static VariableState VariableState(string variable = default, float? filledNARatio = default, int? effectiveCount = default, DateTimeOffset? startTime = default, DateTimeOffset? endTime = default, IReadOnlyList errors = default) + { + errors ??= new List(); + return new VariableState(variable, filledNARatio, effectiveCount, startTime, endTime, errors); + } + + /// Initializes new instance of Model class. + /// Model identifier. + /// Date and time (UTC) when the model was created. + /// Date and time (UTC) when the model was last updated. + /// Training Status of the model. + /// A new instance for mocking. + public static Model Model(Guid modelId = default, DateTimeOffset createdTime = default, DateTimeOffset lastUpdatedTime = default, ModelInfo modelInfo = default) + { + return new Model(modelId, createdTime, lastUpdatedTime, modelInfo); + } + + /// Initializes new instance of DetectionResult class. + /// . + /// Multivariate anomaly detection status. + /// anomaly status of each timestamp. + /// A new instance for mocking. + public static DetectionResult DetectionResult(Guid resultId = default, DetectionResultSummary summary = default, IReadOnlyList results = default) + { + results ??= new List(); + return new DetectionResult(resultId, summary, results); + } + + /// Initializes new instance of DetectionResultSummary class. + /// Multivariate anomaly detection status. + /// Error message when creating or training model fails. + /// . + /// Request when creating the model. + /// A new instance for mocking. + public static DetectionResultSummary DetectionResultSummary(DetectionStatus status = default, IReadOnlyList errors = default, IReadOnlyList variableStates = default, DetectionRequest setupInfo = default) + { + errors ??= new List(); + variableStates ??= new List(); + return new DetectionResultSummary(status, errors, variableStates, setupInfo); + } + + /// Initializes new instance of AnomalyState class. + /// timestamp. + /// . + /// Error message when inference this timestamp. + /// A new instance for mocking. + public static AnomalyState AnomalyState(DateTimeOffset timestamp = default, AnomalyValue value = default, IReadOnlyList errors = default) + { + errors ??= new List(); + return new AnomalyState(timestamp, value, errors); + } + + /// Initializes new instance of AnomalyValue class. + /// If current timestamp is an anomaly, contributors will show potential root cause for thus anomaly. Contributors can help us understand why current timestamp has been detected as an anomaly. + /// To indicate whether current timestamp is anomaly or not. + /// anomaly score of the current timestamp, the more significant an anomaly is, the higher the score will be. + /// anomaly score of the current timestamp, the more significant an anomaly is, the higher the score will be, score measures global significance. + /// A new instance for mocking. + public static AnomalyValue AnomalyValue(IReadOnlyList contributors = default, bool isAnomaly = default, float severity = default, float? score = default) + { + contributors ??= new List(); + return new AnomalyValue(contributors, isAnomaly, severity, score); + } + + /// Initializes new instance of AnomalyContributor class. + /// The higher the contribution score is, the more likely the variable to be the root cause of a anomaly. + /// Variable name of a contributor. + /// A new instance for mocking. + public static AnomalyContributor AnomalyContributor(float? contributionScore = default, string variable = default) + { + return new AnomalyContributor(contributionScore, variable); + } + + /// Initializes new instance of ModelSnapshot class. + /// Model identifier. + /// Date and time (UTC) when the model was created. + /// Date and time (UTC) when the model was last updated. + /// Model training status. + /// . + /// Count of variables. + /// A new instance for mocking. + public static ModelSnapshot ModelSnapshot(Guid modelId = default, DateTimeOffset createdTime = default, DateTimeOffset lastUpdatedTime = default, ModelStatus status = default, string displayName = default, int variablesCount = default) + { + return new ModelSnapshot(modelId, createdTime, lastUpdatedTime, status, displayName, variablesCount); + } + } +} diff --git a/sdk/attestation/Azure.Security.Attestation/src/Generated/AzureSecurityAttestationModelFactory.cs b/sdk/attestation/Azure.Security.Attestation/src/Generated/AzureSecurityAttestationModelFactory.cs new file mode 100644 index 0000000000000..b4f4b9ac11294 --- /dev/null +++ b/sdk/attestation/Azure.Security.Attestation/src/Generated/AzureSecurityAttestationModelFactory.cs @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +namespace Azure.Security.Attestation +{ + /// Model factory for AzureSecurityAttestation 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/communication/Azure.Communication.Chat/src/Generated/AzureCommunicationChatServiceModelFactory.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/AzureCommunicationChatServiceModelFactory.cs new file mode 100644 index 0000000000000..0c5d78f61d63b --- /dev/null +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/AzureCommunicationChatServiceModelFactory.cs @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Communication.Chat +{ + /// Model factory for AzureCommunicationChatService read-only models. + public static partial class AzureCommunicationChatServiceModelFactory + { + /// Initializes new instance of ChatError class. + /// The error code. + /// The error message. + /// The error target. + /// Further details about specific errors that led to this error. + /// The inner error if any. + /// A new instance for mocking. + public static ChatError ChatError(string code = default, string message = default, string target = default, IReadOnlyList details = default, ChatError innerError = default) + { + details ??= new List(); + return new ChatError(code, message, target, details, innerError); + } + + /// Initializes new instance of AddChatParticipantsResult class. + /// The participants that failed to be added to the chat thread. + /// A new instance for mocking. + public static AddChatParticipantsResult AddChatParticipantsResult(IReadOnlyList invalidParticipants = default) + { + invalidParticipants ??= new List(); + return new AddChatParticipantsResult(invalidParticipants); + } + + /// Initializes new instance of ChatThreadItem class. + /// Chat thread id. + /// Chat thread topic. + /// The timestamp when the chat thread was deleted. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. + /// The timestamp when the last message arrived at the server. The timestamp is in RFC3339 format: `yyyy-MM-ddTHH:mm:ssZ`. + /// A new instance for mocking. + public static ChatThreadItem ChatThreadItem(string id = default, string topic = default, DateTimeOffset? deletedOn = default, DateTimeOffset? lastMessageReceivedOn = default) + { + return new ChatThreadItem(id, topic, deletedOn, lastMessageReceivedOn); + } + } +} diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/ChatRestClient.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/ChatRestClient.cs index 6decae8fcd0aa..e5ebcee91d732 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/ChatRestClient.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/ChatRestClient.cs @@ -63,9 +63,12 @@ internal HttpMessage CreateCreateChatThreadRequest(string topic, string repeatab request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); CreateChatThreadRequest createChatThreadRequest = new CreateChatThreadRequest(topic); - foreach (var value in participants) + if (participants != null) { - createChatThreadRequest.Participants.Add(value); + foreach (var value in participants) + { + createChatThreadRequest.Participants.Add(value); + } } var model = createChatThreadRequest; var content = new Utf8JsonRequestContent(); diff --git a/sdk/communication/Azure.Communication.Chat/src/Generated/ChatThreadRestClient.cs b/sdk/communication/Azure.Communication.Chat/src/Generated/ChatThreadRestClient.cs index 328e3d553fe66..57ffb907960e7 100644 --- a/sdk/communication/Azure.Communication.Chat/src/Generated/ChatThreadRestClient.cs +++ b/sdk/communication/Azure.Communication.Chat/src/Generated/ChatThreadRestClient.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.Linq; using System.Text.Json; using System.Threading; using System.Threading.Tasks; @@ -223,9 +224,12 @@ internal HttpMessage CreateSendChatMessageRequest(string chatThreadId, string co SenderDisplayName = senderDisplayName, Type = type }; - foreach (var value in metadata) + if (metadata != null) { - sendChatMessageRequest.Metadata.Add(value); + foreach (var value in metadata) + { + sendChatMessageRequest.Metadata.Add(value); + } } var model = sendChatMessageRequest; var content0 = new Utf8JsonRequestContent(); @@ -486,9 +490,12 @@ internal HttpMessage CreateUpdateChatMessageRequest(string chatThreadId, string { Content = content }; - foreach (var value in metadata) + if (metadata != null) { - updateChatMessageRequest.Metadata.Add(value); + foreach (var value in metadata) + { + updateChatMessageRequest.Metadata.Add(value); + } } var model = updateChatMessageRequest; var content0 = new Utf8JsonRequestContent(); @@ -861,7 +868,7 @@ internal HttpMessage CreateAddChatParticipantsRequest(string chatThreadId, IEnum request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var model = new AddChatParticipantsRequest(participants); + var model = new AddChatParticipantsRequest(participants.ToList()); var content = new Utf8JsonRequestContent(); content.JsonWriter.WriteObjectValue(model); request.Content = content; diff --git a/sdk/communication/Azure.Communication.Identity/src/Generated/CommunicationIdentityRestClient.cs b/sdk/communication/Azure.Communication.Identity/src/Generated/CommunicationIdentityRestClient.cs index 3579c1c2991d0..3f983f339f2eb 100644 --- a/sdk/communication/Azure.Communication.Identity/src/Generated/CommunicationIdentityRestClient.cs +++ b/sdk/communication/Azure.Communication.Identity/src/Generated/CommunicationIdentityRestClient.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.Linq; using System.Text.Json; using System.Threading; using System.Threading.Tasks; @@ -60,9 +61,12 @@ internal HttpMessage CreateCreateRequest(IEnumerable cr request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); CommunicationIdentityCreateRequest communicationIdentityCreateRequest = new CommunicationIdentityCreateRequest(); - foreach (var value in createTokenWithScopes) + if (createTokenWithScopes != null) { - communicationIdentityCreateRequest.CreateTokenWithScopes.Add(value); + foreach (var value in createTokenWithScopes) + { + communicationIdentityCreateRequest.CreateTokenWithScopes.Add(value); + } } var model = communicationIdentityCreateRequest; var content = new Utf8JsonRequestContent(); @@ -246,7 +250,7 @@ internal HttpMessage CreateIssueAccessTokenRequest(string id, IEnumerable + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Communication.NetworkTraversal +{ + /// Model factory for AzureCommunicationServices read-only models. + public static partial class AzureCommunicationServicesModelFactory + { + /// Initializes new instance of CommunicationRelayConfiguration class. + /// The date for which the username and credentials are not longer valid. + /// An array representing the credentials and the TURN server URL. + /// A new instance for mocking. + public static CommunicationRelayConfiguration CommunicationRelayConfiguration(DateTimeOffset expiresOn = default, IReadOnlyList turnServers = default) + { + turnServers ??= new List(); + return new CommunicationRelayConfiguration(expiresOn, turnServers); + } + + /// Initializes new instance of CommunicationTurnServer class. + /// List of TURN server URLs. + /// User account name which uniquely identifies the credentials. + /// Credential for the server. + /// A new instance for mocking. + public static CommunicationTurnServer CommunicationTurnServer(IReadOnlyList urls = default, string username = default, string credential = default) + { + urls ??= new List(); + return new CommunicationTurnServer(urls, username, credential); + } + } +} diff --git a/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/PhoneNumbersModelFactory.cs b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/PhoneNumbersModelFactory.cs new file mode 100644 index 0000000000000..ce5138d67e10e --- /dev/null +++ b/sdk/communication/Azure.Communication.PhoneNumbers/src/Generated/PhoneNumbersModelFactory.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Communication.PhoneNumbers +{ + /// Model factory for PhoneNumbers read-only models. + public static partial class PhoneNumbersModelFactory + { + /// Initializes new instance of PhoneNumberSearchResult class. + /// The search id. + /// The phone numbers that are available. Can be fewer than the desired search quantity. + /// The phone number's type, e.g. geographic, or tollFree. + /// Phone number's assignment type. + /// Capabilities of a phone number. + /// The incurred cost for a single phone number. + /// The date that this search result expires and phone numbers are no longer on hold. A search result expires in less than 15min, e.g. 2020-11-19T16:31:49.048Z. + /// A new instance for mocking. + public static PhoneNumberSearchResult PhoneNumberSearchResult(string searchId = default, IReadOnlyList phoneNumbers = default, PhoneNumberType phoneNumberType = default, PhoneNumberAssignmentType assignmentType = default, PhoneNumberCapabilities capabilities = default, PhoneNumberCost cost = default, DateTimeOffset searchExpiresOn = default) + { + phoneNumbers ??= new List(); + return new PhoneNumberSearchResult(searchId, phoneNumbers, phoneNumberType, assignmentType, capabilities, cost, searchExpiresOn); + } + + /// Initializes new instance of PhoneNumberCost class. + /// The cost amount. + /// The ISO 4217 currency code for the cost amount, e.g. USD. + /// The frequency with which the cost gets billed. + /// A new instance for mocking. + public static PhoneNumberCost PhoneNumberCost(double amount = default, string isoCurrencySymbol = default, BillingFrequency billingFrequency = default) + { + return new PhoneNumberCost(amount, isoCurrencySymbol, billingFrequency); + } + } +} diff --git a/sdk/communication/Azure.Communication.Sms/src/Generated/SmsRestClient.cs b/sdk/communication/Azure.Communication.Sms/src/Generated/SmsRestClient.cs index 528c6e002b77b..934e314577d46 100644 --- a/sdk/communication/Azure.Communication.Sms/src/Generated/SmsRestClient.cs +++ b/sdk/communication/Azure.Communication.Sms/src/Generated/SmsRestClient.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.Linq; using System.Text.Json; using System.Threading; using System.Threading.Tasks; @@ -59,7 +60,7 @@ internal HttpMessage CreateSendRequest(string @from, IEnumerable s request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var model = new SendMessageRequest(@from, smsRecipients, message) + var model = new SendMessageRequest(@from, smsRecipients.ToList(), message) { SmsSendOptions = smsSendOptions }; diff --git a/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/ContainerRegistryModelFactory.cs b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/ContainerRegistryModelFactory.cs new file mode 100644 index 0000000000000..2ccf36d9dca5d --- /dev/null +++ b/sdk/containerregistry/Azure.Containers.ContainerRegistry/src/Generated/ContainerRegistryModelFactory.cs @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.Containers.ContainerRegistry +{ + /// Model factory for ContainerRegistry read-only models. + public static partial class ContainerRegistryModelFactory + { + /// Initializes new instance of RepositoryProperties class. + /// Registry login server name. This is likely to be similar to {registry-name}.azurecr.io. + /// Image name. + /// Image created time. + /// Image last update time. + /// Number of the manifests. + /// Number of the tags. + /// Delete enabled. + /// Write enabled. + /// List enabled. + /// Read enabled. + /// Enables Teleport functionality on new images in the repository improving Container startup performance. + /// A new instance for mocking. + public static RepositoryProperties RepositoryProperties(string registryLoginServer = default, string name = default, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, int manifestCount = default, int tagCount = default, bool? canDelete = default, bool? canWrite = default, bool? canList = default, bool? canRead = default, bool? teleportEnabled = default) + { + return new RepositoryProperties(registryLoginServer, name, createdOn, lastUpdatedOn, manifestCount, tagCount, canDelete, canWrite, canList, canRead, teleportEnabled); + } + + /// Initializes new instance of DeleteRepositoryResult class. + /// SHA of the deleted image. + /// Tag of the deleted image. + /// A new instance for mocking. + public static DeleteRepositoryResult DeleteRepositoryResult(IReadOnlyList deletedManifests = default, IReadOnlyList deletedTags = default) + { + deletedManifests ??= new List(); + deletedTags ??= new List(); + return new DeleteRepositoryResult(deletedManifests, deletedTags); + } + + /// Initializes new instance of ArtifactTagProperties class. + /// Registry login server name. This is likely to be similar to {registry-name}.azurecr.io. + /// Image name. + /// Tag name. + /// Tag digest. + /// Tag created time. + /// Tag last update time. + /// Delete enabled. + /// Write enabled. + /// List enabled. + /// Read enabled. + /// A new instance for mocking. + public static ArtifactTagProperties ArtifactTagProperties(string registryLoginServer = default, string repositoryName = default, string name = default, string digest = default, DateTimeOffset createdOn = default, DateTimeOffset lastUpdatedOn = default, bool? canDelete = default, bool? canWrite = default, bool? canList = default, bool? canRead = default) + { + return new ArtifactTagProperties(registryLoginServer, repositoryName, name, digest, createdOn, lastUpdatedOn, canDelete, canWrite, canList, canRead); + } + + /// Initializes new instance of ArtifactManifestReference class. + /// Manifest digest. + /// CPU architecture. + /// Operating system. + /// A new instance for mocking. + public static ArtifactManifestReference ArtifactManifestReference(string digest = default, ArtifactArchitecture architecture = default, ArtifactOperatingSystem operatingSystem = default) + { + return new ArtifactManifestReference(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 manifests referenced by this manifest list. List will be empty if this manifest is 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 manifestReferences = default, IReadOnlyList tags = default, bool? canDelete = default, bool? canWrite = default, bool? canList = default, bool? canRead = default, string quarantineState = default, string quarantineDetails = default) + { + manifestReferences ??= new List(); + tags ??= new List(); + return new ArtifactManifestProperties(registryLoginServer, repositoryName, digest, size, createdOn, lastUpdatedOn, architecture, operatingSystem, manifestReferences, tags, canDelete, canWrite, canList, canRead, quarantineState, quarantineDetails); + } + } +} diff --git a/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/DeviceUpdateModelFactory.cs b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/DeviceUpdateModelFactory.cs new file mode 100644 index 0000000000000..849f94b8c29a1 --- /dev/null +++ b/sdk/deviceupdate/Azure.IoT.DeviceUpdate/src/Generated/DeviceUpdateModelFactory.cs @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.IoT.DeviceUpdate.Models; + +namespace Azure.IoT.DeviceUpdate +{ + /// Model factory for DeviceUpdate read-only models. + public static partial class DeviceUpdateModelFactory + { + /// Initializes new instance of Update class. + /// Update identity. + /// Update type. + /// String interpreted by Device Update client to determine if the update is installed on the device. + /// List of update compatibility information. + /// Schema version of manifest used to import the update. + /// Date and time in UTC when the update was imported. + /// Date and time in UTC when the update was created. + /// Update ETag. + /// A new instance for mocking. + public static Update Update(UpdateId updateId = default, string updateType = default, string installedCriteria = default, IReadOnlyList compatibility = default, string manifestVersion = default, DateTimeOffset importedDateTime = default, DateTimeOffset createdDateTime = default, string etag = default) + { + compatibility ??= new List(); + return new Update(updateId, updateType, installedCriteria, compatibility, manifestVersion, importedDateTime, createdDateTime, etag); + } + + /// Initializes new instance of Compatibility class. + /// The manufacturer of device the update is compatible with. + /// The model of device the update is compatible with. + /// A new instance for mocking. + public static Compatibility Compatibility(string deviceManufacturer = default, string deviceModel = default) + { + return new Compatibility(deviceManufacturer, deviceModel); + } + + /// Initializes new instance of File class. + /// File identity, generated by server at import time. + /// File name. + /// File size in number of bytes. + /// Mapping of hashing algorithm to base64 encoded hash values. + /// File MIME type. + /// File ETag. + /// A new instance for mocking. + public static File File(string fileId = default, string fileName = default, long sizeInBytes = default, IReadOnlyDictionary hashes = default, string mimeType = default, string etag = default) + { + hashes ??= new Dictionary(); + return new File(fileId, fileName, sizeInBytes, hashes, mimeType, etag); + } + + /// Initializes new instance of Operation class. + /// Operation Id. + /// Operation status. + /// The identity of update being imported or deleted. For import, this property will only be populated after import manifest is processed successfully. + /// Location of the imported update when operation is successful. + /// Operation error encountered, if any. + /// Operation correlation identity that can used by Microsoft Support for troubleshooting. + /// Date and time in UTC when the operation status was last updated. + /// Date and time in UTC when the operation was created. + /// Operation ETag. + /// A new instance for mocking. + public static Models.Operation Operation(string operationId = default, OperationStatus status = default, UpdateId updateId = default, string resourceLocation = default, Error error = default, string traceId = default, DateTimeOffset lastActionDateTime = default, DateTimeOffset createdDateTime = default, string etag = default) + { + return new Models.Operation(operationId, status, updateId, resourceLocation, error, traceId, lastActionDateTime, createdDateTime, etag); + } + + /// Initializes new instance of Error class. + /// Server defined error code. + /// A human-readable representation of the error. + /// The target of the error. + /// An array of errors that led to the reported error. + /// An object containing more specific information than the current object about the error. + /// Date and time in UTC when the error occurred. + /// A new instance for mocking. + public static Error Error(string code = default, string message = default, string target = default, IReadOnlyList details = default, InnerError innererror = default, DateTimeOffset? occurredDateTime = default) + { + details ??= new List(); + return new Error(code, message, target, details, innererror, occurredDateTime); + } + + /// Initializes new instance of InnerError class. + /// A more specific error code than what was provided by the containing error. + /// A human-readable representation of the error. + /// The internal error or exception message. + /// An object containing more specific information than the current object about the error. + /// A new instance for mocking. + public static InnerError InnerError(string code = default, string message = default, string errorDetail = default, InnerError innerErrorValue = default) + { + return new InnerError(code, message, errorDetail, innerErrorValue); + } + + /// Initializes new instance of DeviceClass class. + /// The device class identifier. + /// Device manufacturer. + /// Device model. + /// Update identity. + /// A new instance for mocking. + public static DeviceClass DeviceClass(string deviceClassId = default, string manufacturer = default, string model = default, UpdateId bestCompatibleUpdateId = default) + { + return new DeviceClass(deviceClassId, manufacturer, model, bestCompatibleUpdateId); + } + + /// Initializes new instance of Device class. + /// Device identity. + /// Device class identity. + /// Device manufacturer. + /// Device model. + /// Device group identity. + /// Update identity. + /// State of the device in its last deployment. + /// Update identity. + /// Boolean flag indicating whether the latest update is installed on the device. + /// The deployment identifier for the last deployment to the device. + /// A new instance for mocking. + public static Device Device(string deviceId = default, string deviceClassId = default, string manufacturer = default, string model = default, string groupId = default, UpdateId lastAttemptedUpdateId = default, DeviceDeploymentState? deploymentStatus = default, UpdateId installedUpdateId = default, bool onLatestUpdate = default, string lastDeploymentId = default) + { + return new Device(deviceId, deviceClassId, manufacturer, model, groupId, lastAttemptedUpdateId, deploymentStatus, installedUpdateId, onLatestUpdate, lastDeploymentId); + } + + /// Initializes new instance of UpdateCompliance class. + /// Total number of devices. + /// Number of devices on the latest update. + /// Number of devices with a newer update available. + /// Number of devices with update in-progress. + /// A new instance for mocking. + public static UpdateCompliance UpdateCompliance(int totalDeviceCount = default, int onLatestUpdateDeviceCount = default, int newUpdatesAvailableDeviceCount = default, int updatesInProgressDeviceCount = default) + { + return new UpdateCompliance(totalDeviceCount, onLatestUpdateDeviceCount, newUpdatesAvailableDeviceCount, updatesInProgressDeviceCount); + } + + /// Initializes new instance of DeviceTag class. + /// Tag name. + /// Number of devices with this tag. + /// A new instance for mocking. + public static DeviceTag DeviceTag(string tagName = default, int deviceCount = default) + { + return new DeviceTag(tagName, deviceCount); + } + + /// Initializes new instance of UpdatableDevices class. + /// Update identity. + /// Total number of devices for which the update is applicable. + /// A new instance for mocking. + public static UpdatableDevices UpdatableDevices(UpdateId updateId = default, int deviceCount = default) + { + return new UpdatableDevices(updateId, deviceCount); + } + + /// Initializes new instance of DeploymentStatus class. + /// Gets or sets the state of the deployment. + /// Gets or sets the total number of devices in the deployment. + /// Gets or sets the number of incompatible devices in the deployment. + /// Gets or sets the number of devices that are currently in deployment. + /// Gets or sets the number of devices that have completed deployment with a failure. + /// Gets or sets the number of devices which have successfully completed deployment. + /// Gets or sets the number of devices which have had their deployment canceled. + /// A new instance for mocking. + public static DeploymentStatus DeploymentStatus(DeploymentState deploymentState = default, int? totalDevices = default, int? devicesIncompatibleCount = default, int? devicesInProgressCount = default, int? devicesCompletedFailedCount = default, int? devicesCompletedSucceededCount = default, int? devicesCanceledCount = default) + { + return new DeploymentStatus(deploymentState, totalDevices, devicesIncompatibleCount, devicesInProgressCount, devicesCompletedFailedCount, devicesCompletedSucceededCount, devicesCanceledCount); + } + + /// Initializes new instance of DeploymentDeviceState class. + /// Device identity. + /// The number of times this deployment has been retried on this device. + /// Boolean flag indicating whether this device is in a newer deployment and can no longer retry this deployment. + /// Deployment device state. + /// A new instance for mocking. + public static DeploymentDeviceState DeploymentDeviceState(string deviceId = default, int retryCount = default, bool movedOnToNewDeployment = default, DeviceDeploymentState deviceState = default) + { + return new DeploymentDeviceState(deviceId, retryCount, movedOnToNewDeployment, deviceState); + } + } +} diff --git a/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/AzureDigitalTwinsAPIModelFactory.cs b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/AzureDigitalTwinsAPIModelFactory.cs new file mode 100644 index 0000000000000..d882e76fcbc61 --- /dev/null +++ b/sdk/digitaltwins/Azure.DigitalTwins.Core/src/Generated/AzureDigitalTwinsAPIModelFactory.cs @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.DigitalTwins.Core +{ + /// Model factory for AzureDigitalTwinsAPI read-only models. + public static partial class AzureDigitalTwinsAPIModelFactory + { + /// Initializes new instance of DigitalTwinsModelData class. + /// A language map that contains the localized display names as specified in the model definition. + /// A language map that contains the localized descriptions as specified in the model definition. + /// The id of the model as specified in the model definition. + /// The time the model was uploaded to the service. + /// Indicates if the model is decommissioned. Decommissioned models cannot be referenced by newly created digital twins. + /// The model definition. + /// A new instance for mocking. + public static DigitalTwinsModelData DigitalTwinsModelData(IReadOnlyDictionary languageDisplayNames = default, IReadOnlyDictionary languageDescriptions = default, string id = default, DateTimeOffset? uploadedOn = default, bool? decommissioned = default, string dtdlModel = default) + { + languageDisplayNames ??= new Dictionary(); + languageDescriptions ??= new Dictionary(); + return new DigitalTwinsModelData(languageDisplayNames, languageDescriptions, id, uploadedOn, decommissioned, dtdlModel); + } + + /// Initializes new instance of IncomingRelationship class. + /// A user-provided string representing the id of this relationship, unique in the context of the source digital twin, i.e. sourceId + relationshipId is unique in the context of the service. + /// The id of the source digital twin. + /// The name of the relationship. + /// Link to the relationship, to be used for deletion. + /// A new instance for mocking. + public static IncomingRelationship IncomingRelationship(string relationshipId = default, string sourceId = default, string relationshipName = default, string relationshipLink = default) + { + return new IncomingRelationship(relationshipId, sourceId, relationshipName, relationshipLink); + } + + /// Initializes new instance of DigitalTwinsEventRoute class. + /// The id of the event route. + /// The name of the endpoint this event route is bound to. + /// An expression which describes the events which are routed to the endpoint. + /// A new instance for mocking. + public static DigitalTwinsEventRoute DigitalTwinsEventRoute(string id = default, string endpointName = default, string filter = default) + { + return new DigitalTwinsEventRoute(id, endpointName, filter); + } + } +} diff --git a/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs new file mode 100644 index 0000000000000..7c31d031bf602 --- /dev/null +++ b/sdk/eventgrid/Azure.Messaging.EventGrid/src/Generated/EventGridModelFactory.cs @@ -0,0 +1,1856 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Messaging.EventGrid.SystemEvents; + +namespace Azure.Messaging.EventGrid +{ + /// Model factory for EventGrid read-only models. + public static partial class EventGridModelFactory + { + /// Initializes new instance of StorageBlobCreatedEventData class. + /// The name of the API/operation that triggered this event. + /// A request id provided by the client of the storage API operation that triggered this event. + /// The request id generated by the Storage service for the storage API operation that triggered this event. + /// The etag of the blob at the time this event was triggered. + /// The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. + /// The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. + /// The offset of the blob in bytes. + /// The type of blob. + /// The path to the blob. + /// An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. + /// The identity of the requester that triggered this event. + /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + /// A new instance for mocking. + public static StorageBlobCreatedEventData StorageBlobCreatedEventData(string api = default, string clientRequestId = default, string requestId = default, string eTag = default, string contentType = default, long? contentLength = default, long? contentOffset = default, string blobType = default, string url = default, string sequencer = default, string identity = default, object storageDiagnostics = default) + { + return new StorageBlobCreatedEventData(api, clientRequestId, requestId, eTag, contentType, contentLength, contentOffset, blobType, url, sequencer, identity, storageDiagnostics); + } + + /// Initializes new instance of StorageBlobDeletedEventData class. + /// The name of the API/operation that triggered this event. + /// A request id provided by the client of the storage API operation that triggered this event. + /// The request id generated by the Storage service for the storage API operation that triggered this event. + /// The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. + /// The type of blob. + /// The path to the blob. + /// An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. + /// The identity of the requester that triggered this event. + /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + /// A new instance for mocking. + public static StorageBlobDeletedEventData StorageBlobDeletedEventData(string api = default, string clientRequestId = default, string requestId = default, string contentType = default, string blobType = default, string url = default, string sequencer = default, string identity = default, object storageDiagnostics = default) + { + return new StorageBlobDeletedEventData(api, clientRequestId, requestId, contentType, blobType, url, sequencer, identity, storageDiagnostics); + } + + /// Initializes new instance of StorageDirectoryCreatedEventData class. + /// The name of the API/operation that triggered this event. + /// A request id provided by the client of the storage API operation that triggered this event. + /// The request id generated by the storage service for the storage API operation that triggered this event. + /// The etag of the directory at the time this event was triggered. + /// The path to the directory. + /// An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name. + /// The identity of the requester that triggered this event. + /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + /// A new instance for mocking. + public static StorageDirectoryCreatedEventData StorageDirectoryCreatedEventData(string api = default, string clientRequestId = default, string requestId = default, string eTag = default, string url = default, string sequencer = default, string identity = default, object storageDiagnostics = default) + { + return new StorageDirectoryCreatedEventData(api, clientRequestId, requestId, eTag, url, sequencer, identity, storageDiagnostics); + } + + /// Initializes new instance of StorageDirectoryDeletedEventData class. + /// The name of the API/operation that triggered this event. + /// A request id provided by the client of the storage API operation that triggered this event. + /// The request id generated by the storage service for the storage API operation that triggered this event. + /// The path to the deleted directory. + /// Is this event for a recursive delete operation. + /// An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name. + /// The identity of the requester that triggered this event. + /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + /// A new instance for mocking. + public static StorageDirectoryDeletedEventData StorageDirectoryDeletedEventData(string api = default, string clientRequestId = default, string requestId = default, string url = default, bool? recursive = default, string sequencer = default, string identity = default, object storageDiagnostics = default) + { + return new StorageDirectoryDeletedEventData(api, clientRequestId, requestId, url, recursive, sequencer, identity, storageDiagnostics); + } + + /// Initializes new instance of StorageBlobRenamedEventData class. + /// The name of the API/operation that triggered this event. + /// A request id provided by the client of the storage API operation that triggered this event. + /// The request id generated by the storage service for the storage API operation that triggered this event. + /// The path to the blob that was renamed. + /// The new path to the blob after the rename operation. + /// An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. + /// The identity of the requester that triggered this event. + /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + /// A new instance for mocking. + public static StorageBlobRenamedEventData StorageBlobRenamedEventData(string api = default, string clientRequestId = default, string requestId = default, string sourceUrl = default, string destinationUrl = default, string sequencer = default, string identity = default, object storageDiagnostics = default) + { + return new StorageBlobRenamedEventData(api, clientRequestId, requestId, sourceUrl, destinationUrl, sequencer, identity, storageDiagnostics); + } + + /// Initializes new instance of StorageDirectoryRenamedEventData class. + /// The name of the API/operation that triggered this event. + /// A request id provided by the client of the storage API operation that triggered this event. + /// The request id generated by the storage service for the storage API operation that triggered this event. + /// The path to the directory that was renamed. + /// The new path to the directory after the rename operation. + /// An opaque string value representing the logical sequence of events for any particular directory name. Users can use standard string comparison to understand the relative sequence of two events on the same directory name. + /// The identity of the requester that triggered this event. + /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + /// A new instance for mocking. + public static StorageDirectoryRenamedEventData StorageDirectoryRenamedEventData(string api = default, string clientRequestId = default, string requestId = default, string sourceUrl = default, string destinationUrl = default, string sequencer = default, string identity = default, object storageDiagnostics = default) + { + return new StorageDirectoryRenamedEventData(api, clientRequestId, requestId, sourceUrl, destinationUrl, sequencer, identity, storageDiagnostics); + } + + /// Initializes new instance of StorageLifecyclePolicyCompletedEventData class. + /// The time the policy task was scheduled. + /// Execution statistics of a specific policy action in a Blob Management cycle. + /// Execution statistics of a specific policy action in a Blob Management cycle. + /// Execution statistics of a specific policy action in a Blob Management cycle. + /// A new instance for mocking. + public static StorageLifecyclePolicyCompletedEventData StorageLifecyclePolicyCompletedEventData(string scheduleTime = default, StorageLifecyclePolicyActionSummaryDetail deleteSummary = default, StorageLifecyclePolicyActionSummaryDetail tierToCoolSummary = default, StorageLifecyclePolicyActionSummaryDetail tierToArchiveSummary = default) + { + return new StorageLifecyclePolicyCompletedEventData(scheduleTime, deleteSummary, tierToCoolSummary, tierToArchiveSummary); + } + + /// Initializes new instance of StorageLifecyclePolicyActionSummaryDetail class. + /// Total number of objects to be acted on by this action. + /// Number of success operations of this action. + /// Error messages of this action if any. + /// A new instance for mocking. + public static StorageLifecyclePolicyActionSummaryDetail StorageLifecyclePolicyActionSummaryDetail(long? totalObjectsCount = default, long? successCount = default, string errorList = default) + { + return new StorageLifecyclePolicyActionSummaryDetail(totalObjectsCount, successCount, errorList); + } + + /// Initializes new instance of StorageBlobTierChangedEventData class. + /// The name of the API/operation that triggered this event. + /// A request id provided by the client of the storage API operation that triggered this event. + /// The request id generated by the Storage service for the storage API operation that triggered this event. + /// The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. + /// The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. + /// The type of blob. + /// The path to the blob. + /// An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. + /// The identity of the requester that triggered this event. + /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + /// A new instance for mocking. + public static StorageBlobTierChangedEventData StorageBlobTierChangedEventData(string api = default, string clientRequestId = default, string requestId = default, string contentType = default, long? contentLength = default, string blobType = default, string url = default, string sequencer = default, string identity = default, object storageDiagnostics = default) + { + return new StorageBlobTierChangedEventData(api, clientRequestId, requestId, contentType, contentLength, blobType, url, sequencer, identity, storageDiagnostics); + } + + /// Initializes new instance of StorageAsyncOperationInitiatedEventData class. + /// The name of the API/operation that triggered this event. + /// A request id provided by the client of the storage API operation that triggered this event. + /// The request id generated by the Storage service for the storage API operation that triggered this event. + /// The content type of the blob. This is the same as what would be returned in the Content-Type header from the blob. + /// The size of the blob in bytes. This is the same as what would be returned in the Content-Length header from the blob. + /// The type of blob. + /// The path to the blob. + /// An opaque string value representing the logical sequence of events for any particular blob name. Users can use standard string comparison to understand the relative sequence of two events on the same blob name. + /// The identity of the requester that triggered this event. + /// For service use only. Diagnostic data occasionally included by the Azure Storage service. This property should be ignored by event consumers. + /// A new instance for mocking. + public static StorageAsyncOperationInitiatedEventData StorageAsyncOperationInitiatedEventData(string api = default, string clientRequestId = default, string requestId = default, string contentType = default, long? contentLength = default, string blobType = default, string url = default, string sequencer = default, string identity = default, object storageDiagnostics = default) + { + return new StorageAsyncOperationInitiatedEventData(api, clientRequestId, requestId, contentType, contentLength, blobType, url, sequencer, identity, storageDiagnostics); + } + + /// Initializes new instance of EventHubCaptureFileCreatedEventData class. + /// The path to the capture file. + /// The file type of the capture file. + /// The shard ID. + /// The file size. + /// The number of events in the file. + /// The smallest sequence number from the queue. + /// The last sequence number from the queue. + /// The first time from the queue. + /// The last time from the queue. + /// A new instance for mocking. + public static EventHubCaptureFileCreatedEventData EventHubCaptureFileCreatedEventData(string fileurl = default, string fileType = default, string partitionId = default, int? sizeInBytes = default, int? eventCount = default, int? firstSequenceNumber = default, int? lastSequenceNumber = default, DateTimeOffset? firstEnqueueTime = default, DateTimeOffset? lastEnqueueTime = default) + { + return new EventHubCaptureFileCreatedEventData(fileurl, fileType, partitionId, sizeInBytes, eventCount, firstSequenceNumber, lastSequenceNumber, firstEnqueueTime, lastEnqueueTime); + } + + /// Initializes new instance of ResourceWriteSuccessEventData class. + /// The tenant ID of the resource. + /// The subscription ID of the resource. + /// The resource group of the resource. + /// The resource provider performing the operation. + /// The URI of the resource in the operation. + /// The operation that was performed. + /// The status of the operation. + /// The requested authorization for the operation. + /// The properties of the claims. + /// An operation ID used for troubleshooting. + /// The details of the operation. + /// A new instance for mocking. + public static ResourceWriteSuccessEventData ResourceWriteSuccessEventData(string tenantId = default, string subscriptionId = default, string resourceGroup = default, string resourceProvider = default, string resourceUri = default, string operationName = default, string status = default, string authorization = default, string claims = default, string correlationId = default, string httpRequest = default) + { + return new ResourceWriteSuccessEventData(tenantId, subscriptionId, resourceGroup, resourceProvider, resourceUri, operationName, status, authorization, claims, correlationId, httpRequest); + } + + /// Initializes new instance of ResourceWriteFailureEventData class. + /// The tenant ID of the resource. + /// The subscription ID of the resource. + /// The resource group of the resource. + /// The resource provider performing the operation. + /// The URI of the resource in the operation. + /// The operation that was performed. + /// The status of the operation. + /// The requested authorization for the operation. + /// The properties of the claims. + /// An operation ID used for troubleshooting. + /// The details of the operation. + /// A new instance for mocking. + public static ResourceWriteFailureEventData ResourceWriteFailureEventData(string tenantId = default, string subscriptionId = default, string resourceGroup = default, string resourceProvider = default, string resourceUri = default, string operationName = default, string status = default, string authorization = default, string claims = default, string correlationId = default, string httpRequest = default) + { + return new ResourceWriteFailureEventData(tenantId, subscriptionId, resourceGroup, resourceProvider, resourceUri, operationName, status, authorization, claims, correlationId, httpRequest); + } + + /// Initializes new instance of ResourceWriteCancelEventData class. + /// The tenant ID of the resource. + /// The subscription ID of the resource. + /// The resource group of the resource. + /// The resource provider performing the operation. + /// The URI of the resource in the operation. + /// The operation that was performed. + /// The status of the operation. + /// The requested authorization for the operation. + /// The properties of the claims. + /// An operation ID used for troubleshooting. + /// The details of the operation. + /// A new instance for mocking. + public static ResourceWriteCancelEventData ResourceWriteCancelEventData(string tenantId = default, string subscriptionId = default, string resourceGroup = default, string resourceProvider = default, string resourceUri = default, string operationName = default, string status = default, string authorization = default, string claims = default, string correlationId = default, string httpRequest = default) + { + return new ResourceWriteCancelEventData(tenantId, subscriptionId, resourceGroup, resourceProvider, resourceUri, operationName, status, authorization, claims, correlationId, httpRequest); + } + + /// Initializes new instance of ResourceDeleteSuccessEventData class. + /// The tenant ID of the resource. + /// The subscription ID of the resource. + /// The resource group of the resource. + /// The resource provider performing the operation. + /// The URI of the resource in the operation. + /// The operation that was performed. + /// The status of the operation. + /// The requested authorization for the operation. + /// The properties of the claims. + /// An operation ID used for troubleshooting. + /// The details of the operation. + /// A new instance for mocking. + public static ResourceDeleteSuccessEventData ResourceDeleteSuccessEventData(string tenantId = default, string subscriptionId = default, string resourceGroup = default, string resourceProvider = default, string resourceUri = default, string operationName = default, string status = default, string authorization = default, string claims = default, string correlationId = default, string httpRequest = default) + { + return new ResourceDeleteSuccessEventData(tenantId, subscriptionId, resourceGroup, resourceProvider, resourceUri, operationName, status, authorization, claims, correlationId, httpRequest); + } + + /// Initializes new instance of ResourceDeleteFailureEventData class. + /// The tenant ID of the resource. + /// The subscription ID of the resource. + /// The resource group of the resource. + /// The resource provider performing the operation. + /// The URI of the resource in the operation. + /// The operation that was performed. + /// The status of the operation. + /// The requested authorization for the operation. + /// The properties of the claims. + /// An operation ID used for troubleshooting. + /// The details of the operation. + /// A new instance for mocking. + public static ResourceDeleteFailureEventData ResourceDeleteFailureEventData(string tenantId = default, string subscriptionId = default, string resourceGroup = default, string resourceProvider = default, string resourceUri = default, string operationName = default, string status = default, string authorization = default, string claims = default, string correlationId = default, string httpRequest = default) + { + return new ResourceDeleteFailureEventData(tenantId, subscriptionId, resourceGroup, resourceProvider, resourceUri, operationName, status, authorization, claims, correlationId, httpRequest); + } + + /// Initializes new instance of ResourceDeleteCancelEventData class. + /// The tenant ID of the resource. + /// The subscription ID of the resource. + /// The resource group of the resource. + /// The resource provider performing the operation. + /// The URI of the resource in the operation. + /// The operation that was performed. + /// The status of the operation. + /// The requested authorization for the operation. + /// The properties of the claims. + /// An operation ID used for troubleshooting. + /// The details of the operation. + /// A new instance for mocking. + public static ResourceDeleteCancelEventData ResourceDeleteCancelEventData(string tenantId = default, string subscriptionId = default, string resourceGroup = default, string resourceProvider = default, string resourceUri = default, string operationName = default, string status = default, string authorization = default, string claims = default, string correlationId = default, string httpRequest = default) + { + return new ResourceDeleteCancelEventData(tenantId, subscriptionId, resourceGroup, resourceProvider, resourceUri, operationName, status, authorization, claims, correlationId, httpRequest); + } + + /// Initializes new instance of ResourceActionSuccessEventData class. + /// The tenant ID of the resource. + /// The subscription ID of the resource. + /// The resource group of the resource. + /// The resource provider performing the operation. + /// The URI of the resource in the operation. + /// The operation that was performed. + /// The status of the operation. + /// The requested authorization for the operation. + /// The properties of the claims. + /// An operation ID used for troubleshooting. + /// The details of the operation. + /// A new instance for mocking. + public static ResourceActionSuccessEventData ResourceActionSuccessEventData(string tenantId = default, string subscriptionId = default, string resourceGroup = default, string resourceProvider = default, string resourceUri = default, string operationName = default, string status = default, string authorization = default, string claims = default, string correlationId = default, string httpRequest = default) + { + return new ResourceActionSuccessEventData(tenantId, subscriptionId, resourceGroup, resourceProvider, resourceUri, operationName, status, authorization, claims, correlationId, httpRequest); + } + + /// Initializes new instance of ResourceActionFailureEventData class. + /// The tenant ID of the resource. + /// The subscription ID of the resource. + /// The resource group of the resource. + /// The resource provider performing the operation. + /// The URI of the resource in the operation. + /// The operation that was performed. + /// The status of the operation. + /// The requested authorization for the operation. + /// The properties of the claims. + /// An operation ID used for troubleshooting. + /// The details of the operation. + /// A new instance for mocking. + public static ResourceActionFailureEventData ResourceActionFailureEventData(string tenantId = default, string subscriptionId = default, string resourceGroup = default, string resourceProvider = default, string resourceUri = default, string operationName = default, string status = default, string authorization = default, string claims = default, string correlationId = default, string httpRequest = default) + { + return new ResourceActionFailureEventData(tenantId, subscriptionId, resourceGroup, resourceProvider, resourceUri, operationName, status, authorization, claims, correlationId, httpRequest); + } + + /// Initializes new instance of ResourceActionCancelEventData class. + /// The tenant ID of the resource. + /// The subscription ID of the resource. + /// The resource group of the resource. + /// The resource provider performing the operation. + /// The URI of the resource in the operation. + /// The operation that was performed. + /// The status of the operation. + /// The requested authorization for the operation. + /// The properties of the claims. + /// An operation ID used for troubleshooting. + /// The details of the operation. + /// A new instance for mocking. + public static ResourceActionCancelEventData ResourceActionCancelEventData(string tenantId = default, string subscriptionId = default, string resourceGroup = default, string resourceProvider = default, string resourceUri = default, string operationName = default, string status = default, string authorization = default, string claims = default, string correlationId = default, string httpRequest = default) + { + return new ResourceActionCancelEventData(tenantId, subscriptionId, resourceGroup, resourceProvider, resourceUri, operationName, status, authorization, claims, correlationId, httpRequest); + } + + /// Initializes new instance of SubscriptionValidationEventData class. + /// The validation code sent by Azure Event Grid to validate an event subscription. To complete the validation handshake, the subscriber must either respond with this validation code as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview). + /// The validation URL sent by Azure Event Grid (available starting version 2018-05-01-preview). To complete the validation handshake, the subscriber must either respond with the validationCode as part of the validation response, or perform a GET request on the validationUrl (available starting version 2018-05-01-preview). + /// A new instance for mocking. + public static SubscriptionValidationEventData SubscriptionValidationEventData(string validationCode = default, string validationUrl = default) + { + return new SubscriptionValidationEventData(validationCode, validationUrl); + } + + /// Initializes new instance of SubscriptionValidationResponse class. + /// The validation response sent by the subscriber to Azure Event Grid to complete the validation of an event subscription. + /// A new instance for mocking. + public static SubscriptionValidationResponse SubscriptionValidationResponse(string validationResponse = default) + { + return new SubscriptionValidationResponse(validationResponse); + } + + /// Initializes new instance of SubscriptionDeletedEventData class. + /// The Azure resource ID of the deleted event subscription. + /// A new instance for mocking. + public static SubscriptionDeletedEventData SubscriptionDeletedEventData(string eventSubscriptionId = default) + { + return new SubscriptionDeletedEventData(eventSubscriptionId); + } + + /// Initializes new instance of DeviceLifeCycleEventProperties class. + /// The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. + /// Name of the IoT Hub where the device was created or deleted. + /// Information about the device twin, which is the cloud representation of application device metadata. + /// A new instance for mocking. + public static DeviceLifeCycleEventProperties DeviceLifeCycleEventProperties(string deviceId = default, string hubName = default, DeviceTwinInfo twin = default) + { + return new DeviceLifeCycleEventProperties(deviceId, hubName, twin); + } + + /// Initializes new instance of DeviceTwinInfo class. + /// Authentication type used for this device: either SAS, SelfSigned, or CertificateAuthority. + /// Count of cloud to device messages sent to this device. + /// Whether the device is connected or disconnected. + /// The unique identifier of the device twin. + /// A piece of information that describes the content of the device twin. Each etag is guaranteed to be unique per device twin. + /// The ISO8601 timestamp of the last activity. + /// Properties JSON element. + /// Whether the device twin is enabled or disabled. + /// The ISO8601 timestamp of the last device twin status update. + /// An integer that is incremented by one each time the device twin is updated. + /// The thumbprint is a unique value for the x509 certificate, commonly used to find a particular certificate in a certificate store. The thumbprint is dynamically generated using the SHA1 algorithm, and does not physically exist in the certificate. + /// A new instance for mocking. + public static DeviceTwinInfo DeviceTwinInfo(string authenticationType = default, float? cloudToDeviceMessageCount = default, string connectionState = default, string deviceId = default, string etag = default, string lastActivityTime = default, DeviceTwinInfoProperties properties = default, string status = default, string statusUpdateTime = default, float? version = default, DeviceTwinInfoX509Thumbprint x509Thumbprint = default) + { + return new DeviceTwinInfo(authenticationType, cloudToDeviceMessageCount, connectionState, deviceId, etag, lastActivityTime, properties, status, statusUpdateTime, version, x509Thumbprint); + } + + /// Initializes new instance of DeviceTwinInfoProperties class. + /// A portion of the properties that can be written only by the application back-end, and read by the device. + /// A portion of the properties that can be written only by the device, and read by the application back-end. + /// A new instance for mocking. + public static DeviceTwinInfoProperties DeviceTwinInfoProperties(DeviceTwinProperties desired = default, DeviceTwinProperties reported = default) + { + return new DeviceTwinInfoProperties(desired, reported); + } + + /// Initializes new instance of DeviceTwinProperties class. + /// Metadata information for the properties JSON document. + /// Version of device twin properties. + /// A new instance for mocking. + public static DeviceTwinProperties DeviceTwinProperties(DeviceTwinMetadata metadata = default, float? version = default) + { + return new DeviceTwinProperties(metadata, version); + } + + /// Initializes new instance of DeviceTwinMetadata class. + /// The ISO8601 timestamp of the last time the properties were updated. + /// A new instance for mocking. + public static DeviceTwinMetadata DeviceTwinMetadata(string lastUpdated = default) + { + return new DeviceTwinMetadata(lastUpdated); + } + + /// Initializes new instance of DeviceTwinInfoX509Thumbprint class. + /// Primary thumbprint for the x509 certificate. + /// Secondary thumbprint for the x509 certificate. + /// A new instance for mocking. + public static DeviceTwinInfoX509Thumbprint DeviceTwinInfoX509Thumbprint(string primaryThumbprint = default, string secondaryThumbprint = default) + { + return new DeviceTwinInfoX509Thumbprint(primaryThumbprint, secondaryThumbprint); + } + + /// Initializes new instance of DeviceConnectionStateEventProperties class. + /// The unique identifier of the device. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. + /// The unique identifier of the module. This case-sensitive string can be up to 128 characters long, and supports ASCII 7-bit alphanumeric characters plus the following special characters: - : . + % _ &#35; * ? ! ( ) , = @ ; $ '. + /// Name of the IoT Hub where the device was created or deleted. + /// Information about the device connection state event. + /// A new instance for mocking. + public static DeviceConnectionStateEventProperties DeviceConnectionStateEventProperties(string deviceId = default, string moduleId = default, string hubName = default, DeviceConnectionStateEventInfo deviceConnectionStateEventInfo = default) + { + return new DeviceConnectionStateEventProperties(deviceId, moduleId, hubName, deviceConnectionStateEventInfo); + } + + /// Initializes new instance of DeviceConnectionStateEventInfo class. + /// Sequence number is string representation of a hexadecimal number. string compare can be used to identify the larger number because both in ASCII and HEX numbers come after alphabets. If you are converting the string to hex, then the number is a 256 bit number. + /// A new instance for mocking. + public static DeviceConnectionStateEventInfo DeviceConnectionStateEventInfo(string sequenceNumber = default) + { + return new DeviceConnectionStateEventInfo(sequenceNumber); + } + + /// Initializes new instance of DeviceTelemetryEventProperties class. + /// The content of the message from the device. + /// Application properties are user-defined strings that can be added to the message. These fields are optional. + /// System properties help identify contents and source of the messages. + /// A new instance for mocking. + public static DeviceTelemetryEventProperties DeviceTelemetryEventProperties(object body = default, IReadOnlyDictionary properties = default, IReadOnlyDictionary systemProperties = default) + { + properties ??= new Dictionary(); + systemProperties ??= new Dictionary(); + return new DeviceTelemetryEventProperties(body, properties, systemProperties); + } + + /// Initializes new instance of ContainerRegistryEventData class. + /// The event ID. + /// The time at which the event occurred. + /// The action that encompasses the provided event. + /// The target of the event. + /// The request that generated the event. + /// The agent that initiated the event. For most situations, this could be from the authorization context of the request. + /// The registry node that generated the event. Put differently, while the actor initiates the event, the source generates it. + /// A new instance for mocking. + public static ContainerRegistryEventData ContainerRegistryEventData(string id = default, DateTimeOffset? timestamp = default, string action = default, ContainerRegistryEventTarget target = default, ContainerRegistryEventRequest request = default, ContainerRegistryEventActor actor = default, ContainerRegistryEventSource source = default) + { + return new ContainerRegistryEventData(id, timestamp, action, target, request, actor, source); + } + + /// Initializes new instance of ContainerRegistryEventTarget class. + /// The MIME type of the referenced object. + /// The number of bytes of the content. Same as Length field. + /// The digest of the content, as defined by the Registry V2 HTTP API Specification. + /// The number of bytes of the content. Same as Size field. + /// The repository name. + /// The direct URL to the content. + /// The tag name. + /// A new instance for mocking. + public static ContainerRegistryEventTarget ContainerRegistryEventTarget(string mediaType = default, long? size = default, string digest = default, long? length = default, string repository = default, string url = default, string tag = default) + { + return new ContainerRegistryEventTarget(mediaType, size, digest, length, repository, url, tag); + } + + /// Initializes new instance of ContainerRegistryEventRequest class. + /// The ID of the request that initiated the event. + /// The IP or hostname and possibly port of the client connection that initiated the event. This is the RemoteAddr from the standard http request. + /// The externally accessible hostname of the registry instance, as specified by the http host header on incoming requests. + /// The request method that generated the event. + /// The user agent header of the request. + /// A new instance for mocking. + public static ContainerRegistryEventRequest ContainerRegistryEventRequest(string id = default, string addr = default, string host = default, string method = default, string useragent = default) + { + return new ContainerRegistryEventRequest(id, addr, host, method, useragent); + } + + /// Initializes new instance of ContainerRegistryEventActor class. + /// The subject or username associated with the request context that generated the event. + /// A new instance for mocking. + public static ContainerRegistryEventActor ContainerRegistryEventActor(string name = default) + { + return new ContainerRegistryEventActor(name); + } + + /// Initializes new instance of ContainerRegistryEventSource class. + /// The IP or hostname and the port of the registry node that generated the event. Generally, this will be resolved by os.Hostname() along with the running port. + /// The running instance of an application. Changes after each restart. + /// A new instance for mocking. + public static ContainerRegistryEventSource ContainerRegistryEventSource(string addr = default, string instanceID = default) + { + return new ContainerRegistryEventSource(addr, instanceID); + } + + /// Initializes new instance of ContainerRegistryArtifactEventData class. + /// The event ID. + /// The time at which the event occurred. + /// The action that encompasses the provided event. + /// The target of the event. + /// A new instance for mocking. + public static ContainerRegistryArtifactEventData ContainerRegistryArtifactEventData(string id = default, DateTimeOffset? timestamp = default, string action = default, ContainerRegistryArtifactEventTarget target = default) + { + return new ContainerRegistryArtifactEventData(id, timestamp, action, target); + } + + /// Initializes new instance of ContainerRegistryArtifactEventTarget class. + /// The MIME type of the artifact. + /// The size in bytes of the artifact. + /// The digest of the artifact. + /// The repository name of the artifact. + /// The tag of the artifact. + /// The name of the artifact. + /// The version of the artifact. + /// A new instance for mocking. + public static ContainerRegistryArtifactEventTarget ContainerRegistryArtifactEventTarget(string mediaType = default, long? size = default, string digest = default, string repository = default, string tag = default, string name = default, string version = default) + { + return new ContainerRegistryArtifactEventTarget(mediaType, size, digest, repository, tag, name, version); + } + + /// Initializes new instance of ServiceBusActiveMessagesAvailableWithNoListenersEventData class. + /// The namespace name of the Microsoft.ServiceBus resource. + /// The endpoint of the Microsoft.ServiceBus resource. + /// The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. + /// The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. + /// The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. + /// The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. + /// A new instance for mocking. + public static ServiceBusActiveMessagesAvailableWithNoListenersEventData ServiceBusActiveMessagesAvailableWithNoListenersEventData(string namespaceName = default, string requestUri = default, string entityType = default, string queueName = default, string topicName = default, string subscriptionName = default) + { + return new ServiceBusActiveMessagesAvailableWithNoListenersEventData(namespaceName, requestUri, entityType, queueName, topicName, subscriptionName); + } + + /// Initializes new instance of ServiceBusDeadletterMessagesAvailableWithNoListenersEventData class. + /// The namespace name of the Microsoft.ServiceBus resource. + /// The endpoint of the Microsoft.ServiceBus resource. + /// The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. + /// The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. + /// The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. + /// The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. + /// A new instance for mocking. + public static ServiceBusDeadletterMessagesAvailableWithNoListenersEventData ServiceBusDeadletterMessagesAvailableWithNoListenersEventData(string namespaceName = default, string requestUri = default, string entityType = default, string queueName = default, string topicName = default, string subscriptionName = default) + { + return new ServiceBusDeadletterMessagesAvailableWithNoListenersEventData(namespaceName, requestUri, entityType, queueName, topicName, subscriptionName); + } + + /// Initializes new instance of ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData class. + /// The namespace name of the Microsoft.ServiceBus resource. + /// The endpoint of the Microsoft.ServiceBus resource. + /// The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. + /// The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. + /// The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. + /// The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. + /// A new instance for mocking. + public static ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData(string namespaceName = default, string requestUri = default, string entityType = default, string queueName = default, string topicName = default, string subscriptionName = default) + { + return new ServiceBusActiveMessagesAvailablePeriodicNotificationsEventData(namespaceName, requestUri, entityType, queueName, topicName, subscriptionName); + } + + /// Initializes new instance of ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData class. + /// The namespace name of the Microsoft.ServiceBus resource. + /// The endpoint of the Microsoft.ServiceBus resource. + /// The entity type of the Microsoft.ServiceBus resource. Could be one of 'queue' or 'subscriber'. + /// The name of the Microsoft.ServiceBus queue. If the entity type is of type 'subscriber', then this value will be null. + /// The name of the Microsoft.ServiceBus topic. If the entity type is of type 'queue', then this value will be null. + /// The name of the Microsoft.ServiceBus topic's subscription. If the entity type is of type 'queue', then this value will be null. + /// A new instance for mocking. + public static ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData(string namespaceName = default, string requestUri = default, string entityType = default, string queueName = default, string topicName = default, string subscriptionName = default) + { + return new ServiceBusDeadletterMessagesAvailablePeriodicNotificationsEventData(namespaceName, requestUri, entityType, queueName, topicName, subscriptionName); + } + + /// Initializes new instance of MediaJobStateChangeEventData class. + /// The previous state of the Job. + /// The new state of the Job. + /// Gets the Job correlation data. + /// A new instance for mocking. + public static MediaJobStateChangeEventData MediaJobStateChangeEventData(MediaJobState? previousState = default, MediaJobState? state = default, IReadOnlyDictionary correlationData = default) + { + correlationData ??= new Dictionary(); + return new MediaJobStateChangeEventData(previousState, state, correlationData); + } + + /// Initializes new instance of MediaJobError class. + /// Error code describing the error. + /// A human-readable language-dependent representation of the error. + /// Helps with categorization of errors. + /// Indicates that it may be possible to retry the Job. If retry is unsuccessful, please contact Azure support via Azure Portal. + /// An array of details about specific errors that led to this reported error. + /// A new instance for mocking. + public static MediaJobError MediaJobError(MediaJobErrorCode? code = default, string message = default, MediaJobErrorCategory? category = default, MediaJobRetry? retry = default, IReadOnlyList details = default) + { + details ??= new List(); + return new MediaJobError(code, message, category, retry, details); + } + + /// Initializes new instance of MediaJobErrorDetail class. + /// Code describing the error detail. + /// A human-readable representation of the error. + /// A new instance for mocking. + public static MediaJobErrorDetail MediaJobErrorDetail(string code = default, string message = default) + { + return new MediaJobErrorDetail(code, message); + } + + /// Initializes new instance of MediaJobOutput class. + /// The discriminator for derived types. + /// Gets the Job output error. + /// Gets the Job output label. + /// Gets the Job output progress. + /// Gets the Job output state. + /// A new instance for mocking. + public static MediaJobOutput MediaJobOutput(string odataType = default, MediaJobError error = default, string label = default, long progress = default, MediaJobState state = default) + { + return new MediaJobOutput(odataType, error, label, progress, state); + } + + /// Initializes new instance of MediaJobOutputAsset class. + /// The discriminator for derived types. + /// Gets the Job output error. + /// Gets the Job output label. + /// Gets the Job output progress. + /// Gets the Job output state. + /// Gets the Job output asset name. + /// A new instance for mocking. + public static MediaJobOutputAsset MediaJobOutputAsset(string odataType = default, MediaJobError error = default, string label = default, long progress = default, MediaJobState state = default, string assetName = default) + { + return new MediaJobOutputAsset(odataType, error, label, progress, state, assetName); + } + + /// Initializes new instance of MediaJobOutputProgressEventData class. + /// Gets the Job output label. + /// Gets the Job output progress. + /// Gets the Job correlation data. + /// A new instance for mocking. + public static MediaJobOutputProgressEventData MediaJobOutputProgressEventData(string label = default, long? progress = default, IReadOnlyDictionary jobCorrelationData = default) + { + jobCorrelationData ??= new Dictionary(); + return new MediaJobOutputProgressEventData(label, progress, jobCorrelationData); + } + + /// Initializes new instance of MediaJobOutputStateChangeEventData class. + /// The previous state of the Job. + /// Gets the output. + /// Gets the Job correlation data. + /// A new instance for mocking. + public static MediaJobOutputStateChangeEventData MediaJobOutputStateChangeEventData(MediaJobState? previousState = default, MediaJobOutput output = default, IReadOnlyDictionary jobCorrelationData = default) + { + jobCorrelationData ??= new Dictionary(); + return new MediaJobOutputStateChangeEventData(previousState, output, jobCorrelationData); + } + + /// Initializes new instance of MediaJobFinishedEventData class. + /// The previous state of the Job. + /// The new state of the Job. + /// Gets the Job correlation data. + /// Gets the Job outputs. + /// A new instance for mocking. + public static MediaJobFinishedEventData MediaJobFinishedEventData(MediaJobState? previousState = default, MediaJobState? state = default, IReadOnlyDictionary correlationData = default, IReadOnlyList outputs = default) + { + correlationData ??= new Dictionary(); + outputs ??= new List(); + return new MediaJobFinishedEventData(previousState, state, correlationData, outputs); + } + + /// Initializes new instance of MediaJobCanceledEventData class. + /// The previous state of the Job. + /// The new state of the Job. + /// Gets the Job correlation data. + /// Gets the Job outputs. + /// A new instance for mocking. + public static MediaJobCanceledEventData MediaJobCanceledEventData(MediaJobState? previousState = default, MediaJobState? state = default, IReadOnlyDictionary correlationData = default, IReadOnlyList outputs = default) + { + correlationData ??= new Dictionary(); + outputs ??= new List(); + return new MediaJobCanceledEventData(previousState, state, correlationData, outputs); + } + + /// Initializes new instance of MediaJobErroredEventData class. + /// The previous state of the Job. + /// The new state of the Job. + /// Gets the Job correlation data. + /// Gets the Job outputs. + /// A new instance for mocking. + public static MediaJobErroredEventData MediaJobErroredEventData(MediaJobState? previousState = default, MediaJobState? state = default, IReadOnlyDictionary correlationData = default, IReadOnlyList outputs = default) + { + correlationData ??= new Dictionary(); + outputs ??= new List(); + return new MediaJobErroredEventData(previousState, state, correlationData, outputs); + } + + /// Initializes new instance of MediaLiveEventEncoderConnectedEventData class. + /// Gets the ingest URL provided by the live event. + /// Gets the stream Id. + /// Gets the remote IP. + /// Gets the remote port. + /// A new instance for mocking. + public static MediaLiveEventEncoderConnectedEventData MediaLiveEventEncoderConnectedEventData(string ingestUrl = default, string streamId = default, string encoderIp = default, string encoderPort = default) + { + return new MediaLiveEventEncoderConnectedEventData(ingestUrl, streamId, encoderIp, encoderPort); + } + + /// Initializes new instance of MediaLiveEventConnectionRejectedEventData class. + /// Gets the ingest URL provided by the live event. + /// Gets the stream Id. + /// Gets the remote IP. + /// Gets the remote port. + /// Gets the result code. + /// A new instance for mocking. + public static MediaLiveEventConnectionRejectedEventData MediaLiveEventConnectionRejectedEventData(string ingestUrl = default, string streamId = default, string encoderIp = default, string encoderPort = default, string resultCode = default) + { + return new MediaLiveEventConnectionRejectedEventData(ingestUrl, streamId, encoderIp, encoderPort, resultCode); + } + + /// Initializes new instance of MediaLiveEventEncoderDisconnectedEventData class. + /// Gets the ingest URL provided by the live event. + /// Gets the stream Id. + /// Gets the remote IP. + /// Gets the remote port. + /// Gets the result code. + /// A new instance for mocking. + public static MediaLiveEventEncoderDisconnectedEventData MediaLiveEventEncoderDisconnectedEventData(string ingestUrl = default, string streamId = default, string encoderIp = default, string encoderPort = default, string resultCode = default) + { + return new MediaLiveEventEncoderDisconnectedEventData(ingestUrl, streamId, encoderIp, encoderPort, resultCode); + } + + /// Initializes new instance of MediaLiveEventIncomingStreamReceivedEventData class. + /// Gets the ingest URL provided by the live event. + /// Gets the type of the track (Audio / Video). + /// Gets the track name. + /// Gets the bitrate of the track. + /// Gets the remote IP. + /// Gets the remote port. + /// Gets the first timestamp of the data chunk received. + /// Gets the duration of the first data chunk. + /// Gets the timescale in which timestamp is represented. + /// A new instance for mocking. + public static MediaLiveEventIncomingStreamReceivedEventData MediaLiveEventIncomingStreamReceivedEventData(string ingestUrl = default, string trackType = default, string trackName = default, long? bitrate = default, string encoderIp = default, string encoderPort = default, string timestamp = default, string duration = default, string timescale = default) + { + return new MediaLiveEventIncomingStreamReceivedEventData(ingestUrl, trackType, trackName, bitrate, encoderIp, encoderPort, timestamp, duration, timescale); + } + + /// Initializes new instance of MediaLiveEventIncomingStreamsOutOfSyncEventData class. + /// Gets the minimum last timestamp received. + /// Gets the type of stream with minimum last timestamp. + /// Gets the maximum timestamp among all the tracks (audio or video). + /// Gets the type of stream with maximum last timestamp. + /// Gets the timescale in which "MinLastTimestamp" is represented. + /// Gets the timescale in which "MaxLastTimestamp" is represented. + /// A new instance for mocking. + public static MediaLiveEventIncomingStreamsOutOfSyncEventData MediaLiveEventIncomingStreamsOutOfSyncEventData(string minLastTimestamp = default, string typeOfStreamWithMinLastTimestamp = default, string maxLastTimestamp = default, string typeOfStreamWithMaxLastTimestamp = default, string timescaleOfMinLastTimestamp = default, string timescaleOfMaxLastTimestamp = default) + { + return new MediaLiveEventIncomingStreamsOutOfSyncEventData(minLastTimestamp, typeOfStreamWithMinLastTimestamp, maxLastTimestamp, typeOfStreamWithMaxLastTimestamp, timescaleOfMinLastTimestamp, timescaleOfMaxLastTimestamp); + } + + /// Initializes new instance of MediaLiveEventIncomingVideoStreamsOutOfSyncEventData class. + /// Gets the first timestamp received for one of the quality levels. + /// Gets the duration of the data chunk with first timestamp. + /// Gets the timestamp received for some other quality levels. + /// Gets the duration of the data chunk with second timestamp. + /// Gets the timescale in which both the timestamps and durations are represented. + /// A new instance for mocking. + public static MediaLiveEventIncomingVideoStreamsOutOfSyncEventData MediaLiveEventIncomingVideoStreamsOutOfSyncEventData(string firstTimestamp = default, string firstDuration = default, string secondTimestamp = default, string secondDuration = default, string timescale = default) + { + return new MediaLiveEventIncomingVideoStreamsOutOfSyncEventData(firstTimestamp, firstDuration, secondTimestamp, secondDuration, timescale); + } + + /// Initializes new instance of MediaLiveEventIncomingDataChunkDroppedEventData class. + /// Gets the timestamp of the data chunk dropped. + /// Gets the type of the track (Audio / Video). + /// Gets the bitrate of the track. + /// Gets the timescale of the Timestamp. + /// Gets the result code for fragment drop operation. + /// Gets the name of the track for which fragment is dropped. + /// A new instance for mocking. + public static MediaLiveEventIncomingDataChunkDroppedEventData MediaLiveEventIncomingDataChunkDroppedEventData(string timestamp = default, string trackType = default, long? bitrate = default, string timescale = default, string resultCode = default, string trackName = default) + { + return new MediaLiveEventIncomingDataChunkDroppedEventData(timestamp, trackType, bitrate, timescale, resultCode, trackName); + } + + /// Initializes new instance of MediaLiveEventIngestHeartbeatEventData class. + /// Gets the type of the track (Audio / Video). + /// Gets the track name. + /// Gets the bitrate of the track. + /// Gets the incoming bitrate. + /// Gets the last timestamp. + /// Gets the timescale of the last timestamp. + /// Gets the fragment Overlap count. + /// Gets the fragment Discontinuity count. + /// Gets Non increasing count. + /// Gets a value indicating whether unexpected bitrate is present or not. + /// Gets the state of the live event. + /// Gets a value indicating whether preview is healthy or not. + /// A new instance for mocking. + public static MediaLiveEventIngestHeartbeatEventData MediaLiveEventIngestHeartbeatEventData(string trackType = default, string trackName = default, long? bitrate = default, long? incomingBitrate = default, string lastTimestamp = default, string timescale = default, long? overlapCount = default, long? discontinuityCount = default, long? nonincreasingCount = default, bool? unexpectedBitrate = default, string state = default, bool? healthy = default) + { + return new MediaLiveEventIngestHeartbeatEventData(trackType, trackName, bitrate, incomingBitrate, lastTimestamp, timescale, overlapCount, discontinuityCount, nonincreasingCount, unexpectedBitrate, state, healthy); + } + + /// Initializes new instance of MediaLiveEventTrackDiscontinuityDetectedEventData class. + /// Gets the type of the track (Audio / Video). + /// Gets the track name. + /// Gets the bitrate. + /// Gets the timestamp of the previous fragment. + /// Gets the timestamp of the current fragment. + /// Gets the timescale in which both timestamps and discontinuity gap are represented. + /// Gets the discontinuity gap between PreviousTimestamp and NewTimestamp. + /// A new instance for mocking. + public static MediaLiveEventTrackDiscontinuityDetectedEventData MediaLiveEventTrackDiscontinuityDetectedEventData(string trackType = default, string trackName = default, long? bitrate = default, string previousTimestamp = default, string newTimestamp = default, string timescale = default, string discontinuityGap = default) + { + return new MediaLiveEventTrackDiscontinuityDetectedEventData(trackType, trackName, bitrate, previousTimestamp, newTimestamp, timescale, discontinuityGap); + } + + /// Initializes new instance of MapsGeofenceEventProperties class. + /// Lists of the geometry ID of the geofence which is expired relative to the user time in the request. + /// Lists the fence geometries that either fully contain the coordinate position or have an overlap with the searchBuffer around the fence. + /// Lists of the geometry ID of the geofence which is in invalid period relative to the user time in the request. + /// True if at least one event is published to the Azure Maps event subscriber, false if no event is published to the Azure Maps event subscriber. + /// A new instance for mocking. + public static MapsGeofenceEventProperties MapsGeofenceEventProperties(IReadOnlyList expiredGeofenceGeometryId = default, IReadOnlyList geometries = default, IReadOnlyList invalidPeriodGeofenceGeometryId = default, bool? isEventPublished = default) + { + expiredGeofenceGeometryId ??= new List(); + geometries ??= new List(); + invalidPeriodGeofenceGeometryId ??= new List(); + return new MapsGeofenceEventProperties(expiredGeofenceGeometryId, geometries, invalidPeriodGeofenceGeometryId, isEventPublished); + } + + /// Initializes new instance of MapsGeofenceGeometry class. + /// ID of the device. + /// Distance from the coordinate to the closest border of the geofence. Positive means the coordinate is outside of the geofence. If the coordinate is outside of the geofence, but more than the value of searchBuffer away from the closest geofence border, then the value is 999. Negative means the coordinate is inside of the geofence. If the coordinate is inside the polygon, but more than the value of searchBuffer away from the closest geofencing border,then the value is -999. A value of 999 means that there is great confidence the coordinate is well outside the geofence. A value of -999 means that there is great confidence the coordinate is well within the geofence. + /// The unique ID for the geofence geometry. + /// Latitude of the nearest point of the geometry. + /// Longitude of the nearest point of the geometry. + /// The unique id returned from user upload service when uploading a geofence. Will not be included in geofencing post API. + /// A new instance for mocking. + public static MapsGeofenceGeometry MapsGeofenceGeometry(string deviceId = default, float? distance = default, string geometryId = default, float? nearestLat = default, float? nearestLon = default, string udId = default) + { + return new MapsGeofenceGeometry(deviceId, distance, geometryId, nearestLat, nearestLon, udId); + } + + /// Initializes new instance of AppConfigurationKeyValueModifiedEventData class. + /// The key used to identify the key-value that was modified. + /// The label, if any, used to identify the key-value that was modified. + /// The etag representing the new state of the key-value. + /// The sync token representing the server state after the event. + /// A new instance for mocking. + public static AppConfigurationKeyValueModifiedEventData AppConfigurationKeyValueModifiedEventData(string key = default, string label = default, string etag = default, string syncToken = default) + { + return new AppConfigurationKeyValueModifiedEventData(key, label, etag, syncToken); + } + + /// Initializes new instance of AppConfigurationKeyValueDeletedEventData class. + /// The key used to identify the key-value that was deleted. + /// The label, if any, used to identify the key-value that was deleted. + /// The etag representing the key-value that was deleted. + /// The sync token representing the server state after the event. + /// A new instance for mocking. + public static AppConfigurationKeyValueDeletedEventData AppConfigurationKeyValueDeletedEventData(string key = default, string label = default, string etag = default, string syncToken = default) + { + return new AppConfigurationKeyValueDeletedEventData(key, label, etag, syncToken); + } + + /// Initializes new instance of SignalRServiceClientConnectionConnectedEventData class. + /// The time at which the event occurred. + /// The hub of connected client connection. + /// The connection Id of connected client connection. + /// The user Id of connected client connection. + /// A new instance for mocking. + public static SignalRServiceClientConnectionConnectedEventData SignalRServiceClientConnectionConnectedEventData(DateTimeOffset? timestamp = default, string hubName = default, string connectionId = default, string userId = default) + { + return new SignalRServiceClientConnectionConnectedEventData(timestamp, hubName, connectionId, userId); + } + + /// Initializes new instance of SignalRServiceClientConnectionDisconnectedEventData class. + /// The time at which the event occurred. + /// The hub of connected client connection. + /// The connection Id of connected client connection. + /// The user Id of connected client connection. + /// The message of error that cause the client connection disconnected. + /// A new instance for mocking. + public static SignalRServiceClientConnectionDisconnectedEventData SignalRServiceClientConnectionDisconnectedEventData(DateTimeOffset? timestamp = default, string hubName = default, string connectionId = default, string userId = default, string errorMessage = default) + { + return new SignalRServiceClientConnectionDisconnectedEventData(timestamp, hubName, connectionId, userId, errorMessage); + } + + /// Initializes new instance of KeyVaultCertificateNewVersionCreatedEventData class. + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// A new instance for mocking. + public static KeyVaultCertificateNewVersionCreatedEventData KeyVaultCertificateNewVersionCreatedEventData(string id = default, string vaultName = default, string objectType = default, string objectName = default, string version = default, float? nbf = default, float? exp = default) + { + return new KeyVaultCertificateNewVersionCreatedEventData(id, vaultName, objectType, objectName, version, nbf, exp); + } + + /// Initializes new instance of KeyVaultCertificateNearExpiryEventData class. + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// A new instance for mocking. + public static KeyVaultCertificateNearExpiryEventData KeyVaultCertificateNearExpiryEventData(string id = default, string vaultName = default, string objectType = default, string objectName = default, string version = default, float? nbf = default, float? exp = default) + { + return new KeyVaultCertificateNearExpiryEventData(id, vaultName, objectType, objectName, version, nbf, exp); + } + + /// Initializes new instance of KeyVaultCertificateExpiredEventData class. + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// A new instance for mocking. + public static KeyVaultCertificateExpiredEventData KeyVaultCertificateExpiredEventData(string id = default, string vaultName = default, string objectType = default, string objectName = default, string version = default, float? nbf = default, float? exp = default) + { + return new KeyVaultCertificateExpiredEventData(id, vaultName, objectType, objectName, version, nbf, exp); + } + + /// Initializes new instance of KeyVaultKeyNewVersionCreatedEventData class. + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// A new instance for mocking. + public static KeyVaultKeyNewVersionCreatedEventData KeyVaultKeyNewVersionCreatedEventData(string id = default, string vaultName = default, string objectType = default, string objectName = default, string version = default, float? nbf = default, float? exp = default) + { + return new KeyVaultKeyNewVersionCreatedEventData(id, vaultName, objectType, objectName, version, nbf, exp); + } + + /// Initializes new instance of KeyVaultKeyNearExpiryEventData class. + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// A new instance for mocking. + public static KeyVaultKeyNearExpiryEventData KeyVaultKeyNearExpiryEventData(string id = default, string vaultName = default, string objectType = default, string objectName = default, string version = default, float? nbf = default, float? exp = default) + { + return new KeyVaultKeyNearExpiryEventData(id, vaultName, objectType, objectName, version, nbf, exp); + } + + /// Initializes new instance of KeyVaultKeyExpiredEventData class. + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// A new instance for mocking. + public static KeyVaultKeyExpiredEventData KeyVaultKeyExpiredEventData(string id = default, string vaultName = default, string objectType = default, string objectName = default, string version = default, float? nbf = default, float? exp = default) + { + return new KeyVaultKeyExpiredEventData(id, vaultName, objectType, objectName, version, nbf, exp); + } + + /// Initializes new instance of KeyVaultSecretNewVersionCreatedEventData class. + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// A new instance for mocking. + public static KeyVaultSecretNewVersionCreatedEventData KeyVaultSecretNewVersionCreatedEventData(string id = default, string vaultName = default, string objectType = default, string objectName = default, string version = default, float? nbf = default, float? exp = default) + { + return new KeyVaultSecretNewVersionCreatedEventData(id, vaultName, objectType, objectName, version, nbf, exp); + } + + /// Initializes new instance of KeyVaultSecretNearExpiryEventData class. + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// A new instance for mocking. + public static KeyVaultSecretNearExpiryEventData KeyVaultSecretNearExpiryEventData(string id = default, string vaultName = default, string objectType = default, string objectName = default, string version = default, float? nbf = default, float? exp = default) + { + return new KeyVaultSecretNearExpiryEventData(id, vaultName, objectType, objectName, version, nbf, exp); + } + + /// Initializes new instance of KeyVaultSecretExpiredEventData class. + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// A new instance for mocking. + public static KeyVaultSecretExpiredEventData KeyVaultSecretExpiredEventData(string id = default, string vaultName = default, string objectType = default, string objectName = default, string version = default, float? nbf = default, float? exp = default) + { + return new KeyVaultSecretExpiredEventData(id, vaultName, objectType, objectName, version, nbf, exp); + } + + /// Initializes new instance of KeyVaultAccessPolicyChangedEventData class. + /// The id of the object that triggered this event. + /// Key vault name of the object that triggered this event. + /// The type of the object that triggered this event. + /// The name of the object that triggered this event. + /// The version of the object that triggered this event. + /// Not before date of the object that triggered this event. + /// The expiration date of the object that triggered this event. + /// A new instance for mocking. + public static KeyVaultAccessPolicyChangedEventData KeyVaultAccessPolicyChangedEventData(string id = default, string vaultName = default, string objectType = default, string objectName = default, string version = default, float? nbf = default, float? exp = default) + { + return new KeyVaultAccessPolicyChangedEventData(id, vaultName, objectType, objectName, version, nbf, exp); + } + + /// Initializes new instance of MachineLearningServicesModelRegisteredEventData class. + /// The name of the model that was registered. + /// The version of the model that was registered. + /// The tags of the model that was registered. + /// The properties of the model that was registered. + /// A new instance for mocking. + public static MachineLearningServicesModelRegisteredEventData MachineLearningServicesModelRegisteredEventData(string modelName = default, string modelVersion = default, object modelTags = default, object modelProperties = default) + { + return new MachineLearningServicesModelRegisteredEventData(modelName, modelVersion, modelTags, modelProperties); + } + + /// Initializes new instance of MachineLearningServicesModelDeployedEventData class. + /// The name of the deployed service. + /// The compute type (e.g. ACI, AKS) of the deployed service. + /// A common separated list of model IDs. The IDs of the models deployed in the service. + /// The tags of the deployed service. + /// The properties of the deployed service. + /// A new instance for mocking. + public static MachineLearningServicesModelDeployedEventData MachineLearningServicesModelDeployedEventData(string serviceName = default, string serviceComputeType = default, string modelIds = default, object serviceTags = default, object serviceProperties = default) + { + return new MachineLearningServicesModelDeployedEventData(serviceName, serviceComputeType, modelIds, serviceTags, serviceProperties); + } + + /// Initializes new instance of MachineLearningServicesRunCompletedEventData class. + /// The ID of the experiment that the run belongs to. + /// The name of the experiment that the run belongs to. + /// The ID of the Run that was completed. + /// The Run Type of the completed Run. + /// The tags of the completed Run. + /// The properties of the completed Run. + /// A new instance for mocking. + public static MachineLearningServicesRunCompletedEventData MachineLearningServicesRunCompletedEventData(string experimentId = default, string experimentName = default, string runId = default, string runType = default, object runTags = default, object runProperties = default) + { + return new MachineLearningServicesRunCompletedEventData(experimentId, experimentName, runId, runType, runTags, runProperties); + } + + /// Initializes new instance of MachineLearningServicesDatasetDriftDetectedEventData class. + /// The ID of the data drift monitor that triggered the event. + /// The name of the data drift monitor that triggered the event. + /// The ID of the Run that detected data drift. + /// The ID of the base Dataset used to detect drift. + /// The ID of the target Dataset used to detect drift. + /// The coefficient result that triggered the event. + /// The start time of the target dataset time series that resulted in drift detection. + /// The end time of the target dataset time series that resulted in drift detection. + /// A new instance for mocking. + public static MachineLearningServicesDatasetDriftDetectedEventData MachineLearningServicesDatasetDriftDetectedEventData(string dataDriftId = default, string dataDriftName = default, string runId = default, string baseDatasetId = default, string targetDatasetId = default, double? driftCoefficient = default, DateTimeOffset? startTime = default, DateTimeOffset? endTime = default) + { + return new MachineLearningServicesDatasetDriftDetectedEventData(dataDriftId, dataDriftName, runId, baseDatasetId, targetDatasetId, driftCoefficient, startTime, endTime); + } + + /// Initializes new instance of MachineLearningServicesRunStatusChangedEventData class. + /// The ID of the experiment that the Machine Learning Run belongs to. + /// The name of the experiment that the Machine Learning Run belongs to. + /// The ID of the Machine Learning Run. + /// The Run Type of the Machine Learning Run. + /// The tags of the Machine Learning Run. + /// The properties of the Machine Learning Run. + /// The status of the Machine Learning Run. + /// A new instance for mocking. + public static MachineLearningServicesRunStatusChangedEventData MachineLearningServicesRunStatusChangedEventData(string experimentId = default, string experimentName = default, string runId = default, string runType = default, object runTags = default, object runProperties = default, string runStatus = default) + { + return new MachineLearningServicesRunStatusChangedEventData(experimentId, experimentName, runId, runType, runTags, runProperties, runStatus); + } + + /// Initializes new instance of RedisPatchingCompletedEventData class. + /// The time at which the event occurred. + /// The name of this event. + /// The status of this event. Failed or succeeded. + /// A new instance for mocking. + public static RedisPatchingCompletedEventData RedisPatchingCompletedEventData(DateTimeOffset? timestamp = default, string name = default, string status = default) + { + return new RedisPatchingCompletedEventData(timestamp, name, status); + } + + /// Initializes new instance of RedisScalingCompletedEventData class. + /// The time at which the event occurred. + /// The name of this event. + /// The status of this event. Failed or succeeded. + /// A new instance for mocking. + public static RedisScalingCompletedEventData RedisScalingCompletedEventData(DateTimeOffset? timestamp = default, string name = default, string status = default) + { + return new RedisScalingCompletedEventData(timestamp, name, status); + } + + /// Initializes new instance of RedisExportRdbCompletedEventData class. + /// The time at which the event occurred. + /// The name of this event. + /// The status of this event. Failed or succeeded. + /// A new instance for mocking. + public static RedisExportRdbCompletedEventData RedisExportRdbCompletedEventData(DateTimeOffset? timestamp = default, string name = default, string status = default) + { + return new RedisExportRdbCompletedEventData(timestamp, name, status); + } + + /// Initializes new instance of RedisImportRdbCompletedEventData class. + /// The time at which the event occurred. + /// The name of this event. + /// The status of this event. Failed or succeeded. + /// A new instance for mocking. + public static RedisImportRdbCompletedEventData RedisImportRdbCompletedEventData(DateTimeOffset? timestamp = default, string name = default, string status = default) + { + return new RedisImportRdbCompletedEventData(timestamp, name, status); + } + + /// Initializes new instance of WebAppUpdatedEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebAppUpdatedEventData WebAppUpdatedEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebAppUpdatedEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of AppEventTypeDetail class. + /// Type of action of the operation. + /// A new instance for mocking. + public static AppEventTypeDetail AppEventTypeDetail(AppAction? action = default) + { + return new AppEventTypeDetail(action); + } + + /// Initializes new instance of WebBackupOperationStartedEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebBackupOperationStartedEventData WebBackupOperationStartedEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebBackupOperationStartedEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of WebBackupOperationCompletedEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebBackupOperationCompletedEventData WebBackupOperationCompletedEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebBackupOperationCompletedEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of WebBackupOperationFailedEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebBackupOperationFailedEventData WebBackupOperationFailedEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebBackupOperationFailedEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of WebRestoreOperationStartedEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebRestoreOperationStartedEventData WebRestoreOperationStartedEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebRestoreOperationStartedEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of WebRestoreOperationCompletedEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebRestoreOperationCompletedEventData WebRestoreOperationCompletedEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebRestoreOperationCompletedEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of WebRestoreOperationFailedEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebRestoreOperationFailedEventData WebRestoreOperationFailedEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebRestoreOperationFailedEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of WebSlotSwapStartedEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebSlotSwapStartedEventData WebSlotSwapStartedEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebSlotSwapStartedEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of WebSlotSwapCompletedEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebSlotSwapCompletedEventData WebSlotSwapCompletedEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebSlotSwapCompletedEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of WebSlotSwapFailedEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebSlotSwapFailedEventData WebSlotSwapFailedEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebSlotSwapFailedEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of WebSlotSwapWithPreviewStartedEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebSlotSwapWithPreviewStartedEventData WebSlotSwapWithPreviewStartedEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebSlotSwapWithPreviewStartedEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of WebSlotSwapWithPreviewCancelledEventData class. + /// Detail of action on the app. + /// name of the web site that had this event. + /// The client request id generated by the app service for the site API operation that triggered this event. + /// The correlation request id generated by the app service for the site API operation that triggered this event. + /// The request id generated by the app service for the site API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebSlotSwapWithPreviewCancelledEventData WebSlotSwapWithPreviewCancelledEventData(AppEventTypeDetail appEventTypeDetail = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebSlotSwapWithPreviewCancelledEventData(appEventTypeDetail, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of WebAppServicePlanUpdatedEventData class. + /// Detail of action on the app service plan. + /// sku of app service plan. + /// name of the app service plan that had this event. + /// The client request id generated by the app service for the app service plan API operation that triggered this event. + /// The correlation request id generated by the app service for the app service plan API operation that triggered this event. + /// The request id generated by the app service for the app service plan API operation that triggered this event. + /// HTTP request URL of this operation. + /// HTTP verb of this operation. + /// A new instance for mocking. + public static WebAppServicePlanUpdatedEventData WebAppServicePlanUpdatedEventData(AppServicePlanEventTypeDetail appServicePlanEventTypeDetail = default, WebAppServicePlanUpdatedEventDataSku sku = default, string name = default, string clientRequestId = default, string correlationRequestId = default, string requestId = default, string address = default, string verb = default) + { + return new WebAppServicePlanUpdatedEventData(appServicePlanEventTypeDetail, sku, name, clientRequestId, correlationRequestId, requestId, address, verb); + } + + /// Initializes new instance of AppServicePlanEventTypeDetail class. + /// Kind of environment where app service plan is. + /// Type of action on the app service plan. + /// Asynchronous operation status of the operation on the app service plan. + /// A new instance for mocking. + public static AppServicePlanEventTypeDetail AppServicePlanEventTypeDetail(StampKind? stampKind = default, AppServicePlanAction? action = default, AsyncStatus? status = default) + { + return new AppServicePlanEventTypeDetail(stampKind, action, status); + } + + /// Initializes new instance of WebAppServicePlanUpdatedEventDataSku class. + /// name of app service plan sku. + /// tier of app service plan sku. + /// size of app service plan sku. + /// family of app service plan sku. + /// capacity of app service plan sku. + /// A new instance for mocking. + public static WebAppServicePlanUpdatedEventDataSku WebAppServicePlanUpdatedEventDataSku(string name = default, string tier = default, string size = default, string family = default, string capacity = default) + { + return new WebAppServicePlanUpdatedEventDataSku(name, tier, size, family, capacity); + } + + /// Initializes new instance of AcsChatEventBaseProperties class. + /// The communication identifier of the target user. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// A new instance for mocking. + public static AcsChatEventBaseProperties AcsChatEventBaseProperties(CommunicationIdentifierModel recipientCommunicationIdentifier = default, string transactionId = default, string threadId = default) + { + return new AcsChatEventBaseProperties(recipientCommunicationIdentifier, transactionId, threadId); + } + + /// Initializes new instance of CommunicationIdentifierModel class. + /// Raw Id of the identifier. Optional in requests, required in responses. + /// The communication user. + /// The phone number. + /// The Microsoft Teams user. + /// A new instance for mocking. + public static CommunicationIdentifierModel CommunicationIdentifierModel(string rawId = default, CommunicationUserIdentifierModel communicationUser = default, PhoneNumberIdentifierModel phoneNumber = default, MicrosoftTeamsUserIdentifierModel microsoftTeamsUser = default) + { + return new CommunicationIdentifierModel(rawId, communicationUser, phoneNumber, microsoftTeamsUser); + } + + /// Initializes new instance of CommunicationUserIdentifierModel class. + /// The Id of the communication user. + /// A new instance for mocking. + public static CommunicationUserIdentifierModel CommunicationUserIdentifierModel(string id = default) + { + return new CommunicationUserIdentifierModel(id); + } + + /// Initializes new instance of PhoneNumberIdentifierModel class. + /// The phone number in E.164 format. + /// A new instance for mocking. + public static PhoneNumberIdentifierModel PhoneNumberIdentifierModel(string value = default) + { + return new PhoneNumberIdentifierModel(value); + } + + /// Initializes new instance of MicrosoftTeamsUserIdentifierModel class. + /// The Id of the Microsoft Teams user. If not anonymous, this is the AAD object Id of the user. + /// True if the Microsoft Teams user is anonymous. By default false if missing. + /// The cloud that the Microsoft Teams user belongs to. By default 'public' if missing. + /// A new instance for mocking. + public static MicrosoftTeamsUserIdentifierModel MicrosoftTeamsUserIdentifierModel(string userId = default, bool? isAnonymous = default, CommunicationCloudEnvironmentModel? cloud = default) + { + return new MicrosoftTeamsUserIdentifierModel(userId, isAnonymous, cloud); + } + + /// Initializes new instance of AcsChatMessageEventBaseProperties class. + /// The communication identifier of the target user. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The chat message id. + /// The communication identifier of the sender. + /// The display name of the sender. + /// The original compose time of the message. + /// The type of the message. + /// The version of the message. + /// A new instance for mocking. + public static AcsChatMessageEventBaseProperties AcsChatMessageEventBaseProperties(CommunicationIdentifierModel recipientCommunicationIdentifier = default, string transactionId = default, string threadId = default, string messageId = default, CommunicationIdentifierModel senderCommunicationIdentifier = default, string senderDisplayName = default, DateTimeOffset? composeTime = default, string type = default, long? version = default) + { + return new AcsChatMessageEventBaseProperties(recipientCommunicationIdentifier, transactionId, threadId, messageId, senderCommunicationIdentifier, senderDisplayName, composeTime, type, version); + } + + /// Initializes new instance of AcsChatMessageReceivedEventData class. + /// The communication identifier of the target user. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The chat message id. + /// The communication identifier of the sender. + /// The display name of the sender. + /// The original compose time of the message. + /// The type of the message. + /// The version of the message. + /// The body of the chat message. + /// A new instance for mocking. + public static AcsChatMessageReceivedEventData AcsChatMessageReceivedEventData(CommunicationIdentifierModel recipientCommunicationIdentifier = default, string transactionId = default, string threadId = default, string messageId = default, CommunicationIdentifierModel senderCommunicationIdentifier = default, string senderDisplayName = default, DateTimeOffset? composeTime = default, string type = default, long? version = default, string messageBody = default) + { + return new AcsChatMessageReceivedEventData(recipientCommunicationIdentifier, transactionId, threadId, messageId, senderCommunicationIdentifier, senderDisplayName, composeTime, type, version, messageBody); + } + + /// Initializes new instance of AcsChatEventInThreadBaseProperties class. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// A new instance for mocking. + public static AcsChatEventInThreadBaseProperties AcsChatEventInThreadBaseProperties(string transactionId = default, string threadId = default) + { + return new AcsChatEventInThreadBaseProperties(transactionId, threadId); + } + + /// Initializes new instance of AcsChatMessageEventInThreadBaseProperties class. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The chat message id. + /// The communication identifier of the sender. + /// The display name of the sender. + /// The original compose time of the message. + /// The type of the message. + /// The version of the message. + /// A new instance for mocking. + public static AcsChatMessageEventInThreadBaseProperties AcsChatMessageEventInThreadBaseProperties(string transactionId = default, string threadId = default, string messageId = default, CommunicationIdentifierModel senderCommunicationIdentifier = default, string senderDisplayName = default, DateTimeOffset? composeTime = default, string type = default, long? version = default) + { + return new AcsChatMessageEventInThreadBaseProperties(transactionId, threadId, messageId, senderCommunicationIdentifier, senderDisplayName, composeTime, type, version); + } + + /// Initializes new instance of AcsChatMessageReceivedInThreadEventData class. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The chat message id. + /// The communication identifier of the sender. + /// The display name of the sender. + /// The original compose time of the message. + /// The type of the message. + /// The version of the message. + /// The body of the chat message. + /// A new instance for mocking. + public static AcsChatMessageReceivedInThreadEventData AcsChatMessageReceivedInThreadEventData(string transactionId = default, string threadId = default, string messageId = default, CommunicationIdentifierModel senderCommunicationIdentifier = default, string senderDisplayName = default, DateTimeOffset? composeTime = default, string type = default, long? version = default, string messageBody = default) + { + return new AcsChatMessageReceivedInThreadEventData(transactionId, threadId, messageId, senderCommunicationIdentifier, senderDisplayName, composeTime, type, version, messageBody); + } + + /// Initializes new instance of AcsChatMessageEditedEventData class. + /// The communication identifier of the target user. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The chat message id. + /// The communication identifier of the sender. + /// The display name of the sender. + /// The original compose time of the message. + /// The type of the message. + /// The version of the message. + /// The body of the chat message. + /// The time at which the message was edited. + /// A new instance for mocking. + public static AcsChatMessageEditedEventData AcsChatMessageEditedEventData(CommunicationIdentifierModel recipientCommunicationIdentifier = default, string transactionId = default, string threadId = default, string messageId = default, CommunicationIdentifierModel senderCommunicationIdentifier = default, string senderDisplayName = default, DateTimeOffset? composeTime = default, string type = default, long? version = default, string messageBody = default, DateTimeOffset? editTime = default) + { + return new AcsChatMessageEditedEventData(recipientCommunicationIdentifier, transactionId, threadId, messageId, senderCommunicationIdentifier, senderDisplayName, composeTime, type, version, messageBody, editTime); + } + + /// Initializes new instance of AcsChatMessageEditedInThreadEventData class. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The chat message id. + /// The communication identifier of the sender. + /// The display name of the sender. + /// The original compose time of the message. + /// The type of the message. + /// The version of the message. + /// The body of the chat message. + /// The time at which the message was edited. + /// A new instance for mocking. + public static AcsChatMessageEditedInThreadEventData AcsChatMessageEditedInThreadEventData(string transactionId = default, string threadId = default, string messageId = default, CommunicationIdentifierModel senderCommunicationIdentifier = default, string senderDisplayName = default, DateTimeOffset? composeTime = default, string type = default, long? version = default, string messageBody = default, DateTimeOffset? editTime = default) + { + return new AcsChatMessageEditedInThreadEventData(transactionId, threadId, messageId, senderCommunicationIdentifier, senderDisplayName, composeTime, type, version, messageBody, editTime); + } + + /// Initializes new instance of AcsChatMessageDeletedEventData class. + /// The communication identifier of the target user. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The chat message id. + /// The communication identifier of the sender. + /// The display name of the sender. + /// The original compose time of the message. + /// The type of the message. + /// The version of the message. + /// The time at which the message was deleted. + /// A new instance for mocking. + public static AcsChatMessageDeletedEventData AcsChatMessageDeletedEventData(CommunicationIdentifierModel recipientCommunicationIdentifier = default, string transactionId = default, string threadId = default, string messageId = default, CommunicationIdentifierModel senderCommunicationIdentifier = default, string senderDisplayName = default, DateTimeOffset? composeTime = default, string type = default, long? version = default, DateTimeOffset? deleteTime = default) + { + return new AcsChatMessageDeletedEventData(recipientCommunicationIdentifier, transactionId, threadId, messageId, senderCommunicationIdentifier, senderDisplayName, composeTime, type, version, deleteTime); + } + + /// Initializes new instance of AcsChatMessageDeletedInThreadEventData class. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The chat message id. + /// The communication identifier of the sender. + /// The display name of the sender. + /// The original compose time of the message. + /// The type of the message. + /// The version of the message. + /// The time at which the message was deleted. + /// A new instance for mocking. + public static AcsChatMessageDeletedInThreadEventData AcsChatMessageDeletedInThreadEventData(string transactionId = default, string threadId = default, string messageId = default, CommunicationIdentifierModel senderCommunicationIdentifier = default, string senderDisplayName = default, DateTimeOffset? composeTime = default, string type = default, long? version = default, DateTimeOffset? deleteTime = default) + { + return new AcsChatMessageDeletedInThreadEventData(transactionId, threadId, messageId, senderCommunicationIdentifier, senderDisplayName, composeTime, type, version, deleteTime); + } + + /// Initializes new instance of AcsChatThreadEventBaseProperties class. + /// The communication identifier of the target user. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The original creation time of the thread. + /// The version of the thread. + /// A new instance for mocking. + public static AcsChatThreadEventBaseProperties AcsChatThreadEventBaseProperties(CommunicationIdentifierModel recipientCommunicationIdentifier = default, string transactionId = default, string threadId = default, DateTimeOffset? createTime = default, long? version = default) + { + return new AcsChatThreadEventBaseProperties(recipientCommunicationIdentifier, transactionId, threadId, createTime, version); + } + + /// Initializes new instance of AcsChatThreadCreatedWithUserEventData class. + /// The communication identifier of the target user. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The original creation time of the thread. + /// The version of the thread. + /// The communication identifier of the user who created the thread. + /// The thread properties. + /// The list of properties of participants who are part of the thread. + /// A new instance for mocking. + public static AcsChatThreadCreatedWithUserEventData AcsChatThreadCreatedWithUserEventData(CommunicationIdentifierModel recipientCommunicationIdentifier = default, string transactionId = default, string threadId = default, DateTimeOffset? createTime = default, long? version = default, CommunicationIdentifierModel createdByCommunicationIdentifier = default, IReadOnlyDictionary properties = default, IReadOnlyList participants = default) + { + properties ??= new Dictionary(); + participants ??= new List(); + return new AcsChatThreadCreatedWithUserEventData(recipientCommunicationIdentifier, transactionId, threadId, createTime, version, createdByCommunicationIdentifier, properties, participants); + } + + /// Initializes new instance of AcsChatThreadParticipantProperties class. + /// The name of the user. + /// The communication identifier of the user. + /// A new instance for mocking. + public static AcsChatThreadParticipantProperties AcsChatThreadParticipantProperties(string displayName = default, CommunicationIdentifierModel participantCommunicationIdentifier = default) + { + return new AcsChatThreadParticipantProperties(displayName, participantCommunicationIdentifier); + } + + /// Initializes new instance of AcsChatThreadEventInThreadBaseProperties class. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The original creation time of the thread. + /// The version of the thread. + /// A new instance for mocking. + public static AcsChatThreadEventInThreadBaseProperties AcsChatThreadEventInThreadBaseProperties(string transactionId = default, string threadId = default, DateTimeOffset? createTime = default, long? version = default) + { + return new AcsChatThreadEventInThreadBaseProperties(transactionId, threadId, createTime, version); + } + + /// Initializes new instance of AcsChatThreadCreatedEventData class. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The original creation time of the thread. + /// The version of the thread. + /// The communication identifier of the user who created the thread. + /// The thread properties. + /// The list of properties of participants who are part of the thread. + /// A new instance for mocking. + public static AcsChatThreadCreatedEventData AcsChatThreadCreatedEventData(string transactionId = default, string threadId = default, DateTimeOffset? createTime = default, long? version = default, CommunicationIdentifierModel createdByCommunicationIdentifier = default, IReadOnlyDictionary properties = default, IReadOnlyList participants = default) + { + properties ??= new Dictionary(); + participants ??= new List(); + return new AcsChatThreadCreatedEventData(transactionId, threadId, createTime, version, createdByCommunicationIdentifier, properties, participants); + } + + /// Initializes new instance of AcsChatThreadWithUserDeletedEventData class. + /// The communication identifier of the target user. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The original creation time of the thread. + /// The version of the thread. + /// The communication identifier of the user who deleted the thread. + /// The deletion time of the thread. + /// A new instance for mocking. + public static AcsChatThreadWithUserDeletedEventData AcsChatThreadWithUserDeletedEventData(CommunicationIdentifierModel recipientCommunicationIdentifier = default, string transactionId = default, string threadId = default, DateTimeOffset? createTime = default, long? version = default, CommunicationIdentifierModel deletedByCommunicationIdentifier = default, DateTimeOffset? deleteTime = default) + { + return new AcsChatThreadWithUserDeletedEventData(recipientCommunicationIdentifier, transactionId, threadId, createTime, version, deletedByCommunicationIdentifier, deleteTime); + } + + /// Initializes new instance of AcsChatThreadDeletedEventData class. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The original creation time of the thread. + /// The version of the thread. + /// The communication identifier of the user who deleted the thread. + /// The deletion time of the thread. + /// A new instance for mocking. + public static AcsChatThreadDeletedEventData AcsChatThreadDeletedEventData(string transactionId = default, string threadId = default, DateTimeOffset? createTime = default, long? version = default, CommunicationIdentifierModel deletedByCommunicationIdentifier = default, DateTimeOffset? deleteTime = default) + { + return new AcsChatThreadDeletedEventData(transactionId, threadId, createTime, version, deletedByCommunicationIdentifier, deleteTime); + } + + /// Initializes new instance of AcsChatThreadPropertiesUpdatedPerUserEventData class. + /// The communication identifier of the target user. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The original creation time of the thread. + /// The version of the thread. + /// The communication identifier of the user who updated the thread properties. + /// The time at which the properties of the thread were updated. + /// The updated thread properties. + /// A new instance for mocking. + public static AcsChatThreadPropertiesUpdatedPerUserEventData AcsChatThreadPropertiesUpdatedPerUserEventData(CommunicationIdentifierModel recipientCommunicationIdentifier = default, string transactionId = default, string threadId = default, DateTimeOffset? createTime = default, long? version = default, CommunicationIdentifierModel editedByCommunicationIdentifier = default, DateTimeOffset? editTime = default, IReadOnlyDictionary properties = default) + { + properties ??= new Dictionary(); + return new AcsChatThreadPropertiesUpdatedPerUserEventData(recipientCommunicationIdentifier, transactionId, threadId, createTime, version, editedByCommunicationIdentifier, editTime, properties); + } + + /// Initializes new instance of AcsChatThreadPropertiesUpdatedEventData class. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The original creation time of the thread. + /// The version of the thread. + /// The communication identifier of the user who updated the thread properties. + /// The time at which the properties of the thread were updated. + /// The updated thread properties. + /// A new instance for mocking. + public static AcsChatThreadPropertiesUpdatedEventData AcsChatThreadPropertiesUpdatedEventData(string transactionId = default, string threadId = default, DateTimeOffset? createTime = default, long? version = default, CommunicationIdentifierModel editedByCommunicationIdentifier = default, DateTimeOffset? editTime = default, IReadOnlyDictionary properties = default) + { + properties ??= new Dictionary(); + return new AcsChatThreadPropertiesUpdatedEventData(transactionId, threadId, createTime, version, editedByCommunicationIdentifier, editTime, properties); + } + + /// Initializes new instance of AcsChatParticipantAddedToThreadWithUserEventData class. + /// The communication identifier of the target user. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The original creation time of the thread. + /// The version of the thread. + /// The time at which the user was added to the thread. + /// The communication identifier of the user who added the user. + /// The details of the user who was added. + /// A new instance for mocking. + public static AcsChatParticipantAddedToThreadWithUserEventData AcsChatParticipantAddedToThreadWithUserEventData(CommunicationIdentifierModel recipientCommunicationIdentifier = default, string transactionId = default, string threadId = default, DateTimeOffset? createTime = default, long? version = default, DateTimeOffset? time = default, CommunicationIdentifierModel addedByCommunicationIdentifier = default, AcsChatThreadParticipantProperties participantAdded = default) + { + return new AcsChatParticipantAddedToThreadWithUserEventData(recipientCommunicationIdentifier, transactionId, threadId, createTime, version, time, addedByCommunicationIdentifier, participantAdded); + } + + /// Initializes new instance of AcsChatParticipantRemovedFromThreadWithUserEventData class. + /// The communication identifier of the target user. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The original creation time of the thread. + /// The version of the thread. + /// The time at which the user was removed to the thread. + /// The communication identifier of the user who removed the user. + /// The details of the user who was removed. + /// A new instance for mocking. + public static AcsChatParticipantRemovedFromThreadWithUserEventData AcsChatParticipantRemovedFromThreadWithUserEventData(CommunicationIdentifierModel recipientCommunicationIdentifier = default, string transactionId = default, string threadId = default, DateTimeOffset? createTime = default, long? version = default, DateTimeOffset? time = default, CommunicationIdentifierModel removedByCommunicationIdentifier = default, AcsChatThreadParticipantProperties participantRemoved = default) + { + return new AcsChatParticipantRemovedFromThreadWithUserEventData(recipientCommunicationIdentifier, transactionId, threadId, createTime, version, time, removedByCommunicationIdentifier, participantRemoved); + } + + /// Initializes new instance of AcsChatParticipantAddedToThreadEventData class. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The time at which the user was added to the thread. + /// The communication identifier of the user who added the user. + /// The details of the user who was added. + /// The version of the thread. + /// A new instance for mocking. + public static AcsChatParticipantAddedToThreadEventData AcsChatParticipantAddedToThreadEventData(string transactionId = default, string threadId = default, DateTimeOffset? time = default, CommunicationIdentifierModel addedByCommunicationIdentifier = default, AcsChatThreadParticipantProperties participantAdded = default, long? version = default) + { + return new AcsChatParticipantAddedToThreadEventData(transactionId, threadId, time, addedByCommunicationIdentifier, participantAdded, version); + } + + /// Initializes new instance of AcsChatParticipantRemovedFromThreadEventData class. + /// The transaction id will be used as co-relation vector. + /// The chat thread id. + /// The time at which the user was removed to the thread. + /// The communication identifier of the user who removed the user. + /// The details of the user who was removed. + /// The version of the thread. + /// A new instance for mocking. + public static AcsChatParticipantRemovedFromThreadEventData AcsChatParticipantRemovedFromThreadEventData(string transactionId = default, string threadId = default, DateTimeOffset? time = default, CommunicationIdentifierModel removedByCommunicationIdentifier = default, AcsChatThreadParticipantProperties participantRemoved = default, long? version = default) + { + return new AcsChatParticipantRemovedFromThreadEventData(transactionId, threadId, time, removedByCommunicationIdentifier, participantRemoved, version); + } + + /// Initializes new instance of AcsSmsEventBaseProperties class. + /// The identity of the SMS message. + /// The identity of SMS message sender. + /// The identity of SMS message receiver. + /// A new instance for mocking. + public static AcsSmsEventBaseProperties AcsSmsEventBaseProperties(string messageId = default, string @from = default, string to = default) + { + return new AcsSmsEventBaseProperties(messageId, @from, to); + } + + /// Initializes new instance of AcsSmsDeliveryReportReceivedEventData class. + /// The identity of the SMS message. + /// The identity of SMS message sender. + /// The identity of SMS message receiver. + /// Status of Delivery. + /// Details about Delivery Status. + /// List of details of delivery attempts made. + /// The time at which the SMS delivery report was received. + /// Customer Content. + /// A new instance for mocking. + public static AcsSmsDeliveryReportReceivedEventData AcsSmsDeliveryReportReceivedEventData(string messageId = default, string @from = default, string to = default, string deliveryStatus = default, string deliveryStatusDetails = default, IReadOnlyList deliveryAttempts = default, DateTimeOffset? receivedTimestamp = default, string tag = default) + { + deliveryAttempts ??= new List(); + return new AcsSmsDeliveryReportReceivedEventData(messageId, @from, to, deliveryStatus, deliveryStatusDetails, deliveryAttempts, receivedTimestamp, tag); + } + + /// Initializes new instance of AcsSmsDeliveryAttemptProperties class. + /// TimeStamp when delivery was attempted. + /// Number of segments that were successfully delivered. + /// Number of segments whose delivery failed. + /// A new instance for mocking. + public static AcsSmsDeliveryAttemptProperties AcsSmsDeliveryAttemptProperties(DateTimeOffset? timestamp = default, int? segmentsSucceeded = default, int? segmentsFailed = default) + { + return new AcsSmsDeliveryAttemptProperties(timestamp, segmentsSucceeded, segmentsFailed); + } + + /// Initializes new instance of AcsSmsReceivedEventData class. + /// The identity of the SMS message. + /// The identity of SMS message sender. + /// The identity of SMS message receiver. + /// The SMS content. + /// The time at which the SMS was received. + /// A new instance for mocking. + public static AcsSmsReceivedEventData AcsSmsReceivedEventData(string messageId = default, string @from = default, string to = default, string message = default, DateTimeOffset? receivedTimestamp = default) + { + return new AcsSmsReceivedEventData(messageId, @from, to, message, receivedTimestamp); + } + + /// Initializes new instance of AcsRecordingFileStatusUpdatedEventData class. + /// The details of recording storage information. + /// The time at which the recording started. + /// The recording duration in milliseconds. + /// The reason for ending recording session. + /// A new instance for mocking. + public static AcsRecordingFileStatusUpdatedEventData AcsRecordingFileStatusUpdatedEventData(AcsRecordingStorageInfoProperties recordingStorageInfo = default, DateTimeOffset? recordingStartTime = default, long? recordingDurationMs = default, string sessionEndReason = default) + { + return new AcsRecordingFileStatusUpdatedEventData(recordingStorageInfo, recordingStartTime, recordingDurationMs, sessionEndReason); + } + + /// Initializes new instance of AcsRecordingStorageInfoProperties class. + /// List of details of recording chunks information. + /// A new instance for mocking. + public static AcsRecordingStorageInfoProperties AcsRecordingStorageInfoProperties(IReadOnlyList recordingChunks = default) + { + recordingChunks ??= new List(); + return new AcsRecordingStorageInfoProperties(recordingChunks); + } + + /// Initializes new instance of AcsRecordingChunkInfoProperties class. + /// The documentId of the recording chunk. + /// The index of the recording chunk. + /// The reason for ending the recording chunk. + /// A new instance for mocking. + public static AcsRecordingChunkInfoProperties AcsRecordingChunkInfoProperties(string documentId = default, long? index = default, string endReason = default) + { + return new AcsRecordingChunkInfoProperties(documentId, index, endReason); + } + + /// Initializes new instance of PolicyInsightsPolicyStateCreatedEventData class. + /// The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. + /// The resource ID of the policy assignment. + /// The resource ID of the policy definition. + /// The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. + /// The compliance state of the resource with respect to the policy assignment. + /// The subscription ID of the resource. + /// The compliance reason code. May be empty. + /// A new instance for mocking. + public static PolicyInsightsPolicyStateCreatedEventData PolicyInsightsPolicyStateCreatedEventData(DateTimeOffset? timestamp = default, string policyAssignmentId = default, string policyDefinitionId = default, string policyDefinitionReferenceId = default, string complianceState = default, string subscriptionId = default, string complianceReasonCode = default) + { + return new PolicyInsightsPolicyStateCreatedEventData(timestamp, policyAssignmentId, policyDefinitionId, policyDefinitionReferenceId, complianceState, subscriptionId, complianceReasonCode); + } + + /// Initializes new instance of PolicyInsightsPolicyStateChangedEventData class. + /// The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. + /// The resource ID of the policy assignment. + /// The resource ID of the policy definition. + /// The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. + /// The compliance state of the resource with respect to the policy assignment. + /// The subscription ID of the resource. + /// The compliance reason code. May be empty. + /// A new instance for mocking. + public static PolicyInsightsPolicyStateChangedEventData PolicyInsightsPolicyStateChangedEventData(DateTimeOffset? timestamp = default, string policyAssignmentId = default, string policyDefinitionId = default, string policyDefinitionReferenceId = default, string complianceState = default, string subscriptionId = default, string complianceReasonCode = default) + { + return new PolicyInsightsPolicyStateChangedEventData(timestamp, policyAssignmentId, policyDefinitionId, policyDefinitionReferenceId, complianceState, subscriptionId, complianceReasonCode); + } + + /// Initializes new instance of PolicyInsightsPolicyStateDeletedEventData class. + /// The time that the resource was scanned by Azure Policy in the Universal ISO 8601 DateTime format yyyy-MM-ddTHH:mm:ss.fffffffZ. + /// The resource ID of the policy assignment. + /// The resource ID of the policy definition. + /// The reference ID for the policy definition inside the initiative definition, if the policy assignment is for an initiative. May be empty. + /// The compliance state of the resource with respect to the policy assignment. + /// The subscription ID of the resource. + /// The compliance reason code. May be empty. + /// A new instance for mocking. + public static PolicyInsightsPolicyStateDeletedEventData PolicyInsightsPolicyStateDeletedEventData(DateTimeOffset? timestamp = default, string policyAssignmentId = default, string policyDefinitionId = default, string policyDefinitionReferenceId = default, string complianceState = default, string subscriptionId = default, string complianceReasonCode = default) + { + return new PolicyInsightsPolicyStateDeletedEventData(timestamp, policyAssignmentId, policyDefinitionId, policyDefinitionReferenceId, complianceState, subscriptionId, complianceReasonCode); + } + } +} diff --git a/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/FormRecognizerModelFactory.cs b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/FormRecognizerModelFactory.cs new file mode 100644 index 0000000000000..5ebd71e7d3cf2 --- /dev/null +++ b/sdk/formrecognizer/Azure.AI.FormRecognizer/src/Generated/FormRecognizerModelFactory.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.AI.FormRecognizer.Models; +using Azure.AI.FormRecognizer.Training; + +namespace Azure.AI.FormRecognizer +{ + /// Model factory for FormRecognizer read-only models. + public static partial class FormRecognizerModelFactory + { + /// Initializes new instance of FormRecognizerError class. + /// . + /// . + /// A new instance for mocking. + public static FormRecognizerError FormRecognizerError(string errorCode = default, string message = default) + { + return new FormRecognizerError(errorCode, message); + } + + /// Initializes new instance of CustomFormModelInfo class. + /// Model identifier. + /// Status of the model. + /// Date and time (UTC) when the model was created. + /// Date and time (UTC) when the status was last updated. + /// Optional user defined model name (max length: 1024). + /// Optional model attributes. + /// A new instance for mocking. + public static CustomFormModelInfo CustomFormModelInfo(string modelId = default, CustomFormModelStatus status = default, DateTimeOffset trainingStartedOn = default, DateTimeOffset trainingCompletedOn = default, string modelName = default, CustomFormModelProperties properties = default) + { + return new CustomFormModelInfo(modelId, status, trainingStartedOn, trainingCompletedOn, modelName, properties); + } + + /// Initializes new instance of CustomFormModelProperties class. + /// Is this model composed? (default: false). + /// A new instance for mocking. + public static CustomFormModelProperties CustomFormModelProperties(bool isComposedModel = default) + { + return new CustomFormModelProperties(isComposedModel); + } + + /// Initializes new instance of TrainingDocumentInfo class. + /// Training document name. + /// Total number of pages trained. + /// List of errors. + /// Status of the training operation. + /// A new instance for mocking. + public static TrainingDocumentInfo TrainingDocumentInfo(string name = default, int pageCount = default, IReadOnlyList errors = default, TrainingStatus status = default) + { + errors ??= new List(); + return new TrainingDocumentInfo(name, pageCount, errors, status); + } + + /// Initializes new instance of CustomFormModelField class. + /// Training field name. + /// Estimated extraction accuracy for this field. + /// A new instance for mocking. + public static CustomFormModelField CustomFormModelField(string name = default, float? accuracy = default) + { + return new CustomFormModelField(name, accuracy); + } + } +} diff --git a/sdk/iot/Azure.IoT.Hub.Service/src/Generated/IotHubGatewayServiceAPIsModelFactory.cs b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/IotHubGatewayServiceAPIsModelFactory.cs new file mode 100644 index 0000000000000..6e2519661770f --- /dev/null +++ b/sdk/iot/Azure.IoT.Hub.Service/src/Generated/IotHubGatewayServiceAPIsModelFactory.cs @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.IoT.Hub.Service.Models; + +namespace Azure.IoT.Hub.Service +{ + /// Model factory for IotHubGatewayServiceAPIs read-only models. + public static partial class IotHubGatewayServiceAPIsModelFactory + { + /// Initializes new instance of ConfigurationQueriesTestResponse class. + /// The errors from running the target condition query. + /// The errors from running the custom metric query. + /// A new instance for mocking. + public static ConfigurationQueriesTestResponse ConfigurationQueriesTestResponse(string targetConditionError = default, IReadOnlyDictionary customMetricQueryErrors = default) + { + customMetricQueryErrors ??= new Dictionary(); + return new ConfigurationQueriesTestResponse(targetConditionError, customMetricQueryErrors); + } + + /// Initializes new instance of DevicesStatistics class. + /// The total number of devices registered for the IoT Hub. + /// The number of currently enabled devices. + /// The number of currently disabled devices. + /// A new instance for mocking. + public static DevicesStatistics DevicesStatistics(long? totalDeviceCount = default, long? enabledDeviceCount = default, long? disabledDeviceCount = default) + { + return new DevicesStatistics(totalDeviceCount, enabledDeviceCount, disabledDeviceCount); + } + + /// Initializes new instance of ServiceStatistics class. + /// The number of currently connected devices. + /// A new instance for mocking. + public static ServiceStatistics ServiceStatistics(long? connectedDeviceCount = default) + { + return new ServiceStatistics(connectedDeviceCount); + } + + /// Initializes new instance of BulkRegistryOperationResponse class. + /// The operation result. + /// The device registry operation errors. + /// The device registry operation warnings. + /// A new instance for mocking. + public static BulkRegistryOperationResponse BulkRegistryOperationResponse(bool? isSuccessful = default, IReadOnlyList errors = default, IReadOnlyList warnings = default) + { + errors ??= new List(); + warnings ??= new List(); + return new BulkRegistryOperationResponse(isSuccessful, errors, warnings); + } + + /// Initializes new instance of DeviceRegistryOperationError class. + /// The unique identifier of the device. + /// The error code. + /// The details of the error. + /// The unique identifier of the module, if applicable. + /// The type of the operation that failed. + /// A new instance for mocking. + public static DeviceRegistryOperationError DeviceRegistryOperationError(string deviceId = default, DeviceRegistryOperationErrorCode? errorCode = default, string errorStatus = default, string moduleId = default, string operation = default) + { + return new DeviceRegistryOperationError(deviceId, errorCode, errorStatus, moduleId, operation); + } + + /// Initializes new instance of DeviceRegistryOperationWarning class. + /// The unique identifier of the device. + /// The warning code. + /// The details of the warning. + /// A new instance for mocking. + public static DeviceRegistryOperationWarning DeviceRegistryOperationWarning(string deviceId = default, string warningCode = default, string warningStatus = default) + { + return new DeviceRegistryOperationWarning(deviceId, warningCode, warningStatus); + } + + /// Initializes new instance of PurgeMessageQueueResult class. + /// The total number of messages purged. + /// The unique identifier of the device. + /// The unique identifier of the module. + /// A new instance for mocking. + public static PurgeMessageQueueResult PurgeMessageQueueResult(int? totalMessagesPurged = default, string deviceId = default, string moduleId = default) + { + return new PurgeMessageQueueResult(totalMessagesPurged, deviceId, moduleId); + } + + /// Initializes new instance of JobResponse class. + /// System generated. Ignored at creation. The unique identifier of the job. + /// The device query condition. + /// System generated. Ignored at creation. The creation date and time of the job. + /// The start date and time of the scheduled job in UTC. + /// System generated. Ignored at creation. The end date and time of the job in UTC. + /// The maximum execution time in secounds. + /// The job type. + /// The method type and parameters. This is required if job type is cloudToDeviceMethod. + /// The state information for a device or module. This is implicitly created and deleted when the corresponding device/ module identity is created or deleted in the IoT Hub. + /// System generated. Ignored at creation. The status of the job. + /// The reason for the failure, if a failure occurred. + /// The status message of the job. + /// The details regarding job execution status. + /// A new instance for mocking. + public static JobResponse JobResponse(string jobId = default, string queryCondition = default, DateTimeOffset? createdTime = default, DateTimeOffset? startTime = default, DateTimeOffset? endTime = default, long? maxExecutionTimeInSeconds = default, JobResponseType? type = default, CloudToDeviceMethodRequest cloudToDeviceMethod = default, TwinData updateTwin = default, JobResponseStatus? status = default, string failureReason = default, string statusMessage = default, DeviceJobStatistics deviceJobStatistics = default) + { + return new JobResponse(jobId, queryCondition, createdTime, startTime, endTime, maxExecutionTimeInSeconds, type, cloudToDeviceMethod, updateTwin, status, failureReason, statusMessage, deviceJobStatistics); + } + + /// Initializes new instance of DeviceJobStatistics class. + /// The number of devices targeted by the job. + /// The number of failed jobs. + /// The number of succeeded jobs. + /// The number of running jobs. + /// The number of pending (scheduled) jobs. + /// A new instance for mocking. + public static DeviceJobStatistics DeviceJobStatistics(int? deviceCount = default, int? failedCount = default, int? succeededCount = default, int? runningCount = default, int? pendingCount = default) + { + return new DeviceJobStatistics(deviceCount, failedCount, succeededCount, runningCount, pendingCount); + } + + /// Initializes new instance of QueryResult class. + /// The query result type. + /// The query result items, as a collection. + /// The continuation token. + /// A new instance for mocking. + public static QueryResult QueryResult(QueryResultType? type = default, IReadOnlyList items = default, string continuationToken = default) + { + items ??= new List(); + return new QueryResult(type, items, continuationToken); + } + + /// Initializes new instance of CloudToDeviceMethodResponse class. + /// Method invocation result status. + /// Method invocation result payload. + /// A new instance for mocking. + public static CloudToDeviceMethodResponse CloudToDeviceMethodResponse(int? status = default, object payload = default) + { + return new CloudToDeviceMethodResponse(status, payload); + } + } +} diff --git a/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/AzureSecurityKeyVaultAdministrationModelFactory.cs b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/AzureSecurityKeyVaultAdministrationModelFactory.cs new file mode 100644 index 0000000000000..39f2a76afa385 --- /dev/null +++ b/sdk/keyvault/Azure.Security.KeyVault.Administration/src/Generated/AzureSecurityKeyVaultAdministrationModelFactory.cs @@ -0,0 +1,53 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.Security.KeyVault.Administration +{ + /// Model factory for AzureSecurityKeyVaultAdministration read-only models. + public static partial class AzureSecurityKeyVaultAdministrationModelFactory + { + /// Initializes new instance of KeyVaultRoleDefinition class. + /// The role definition ID. + /// The role definition name. + /// The role definition type. + /// The role name. + /// The role definition description. + /// The role type. + /// Role definition permissions. + /// Role definition assignable scopes. + /// A new instance for mocking. + public static KeyVaultRoleDefinition KeyVaultRoleDefinition(string id = default, string name = default, KeyVaultRoleDefinitionType? type = default, string roleName = default, string description = default, KeyVaultRoleType? roleType = default, IList permissions = default, IList assignableScopes = default) + { + permissions ??= new List(); + assignableScopes ??= new List(); + return new KeyVaultRoleDefinition(id, name, type, roleName, description, roleType, permissions, assignableScopes); + } + + /// Initializes new instance of KeyVaultRoleAssignment class. + /// The role assignment ID. + /// The role assignment name. + /// The role assignment type. + /// Role assignment properties. + /// A new instance for mocking. + public static KeyVaultRoleAssignment KeyVaultRoleAssignment(string id = default, string name = default, string type = default, KeyVaultRoleAssignmentProperties properties = default) + { + return new KeyVaultRoleAssignment(id, name, type, properties); + } + + /// Initializes new instance of KeyVaultRoleAssignmentProperties class. + /// The role scope. + /// The role definition ID. + /// The principal ID. + /// A new instance for mocking. + public static KeyVaultRoleAssignmentProperties KeyVaultRoleAssignmentProperties(KeyVaultRoleScope? scope = default, string roleDefinitionId = default, string principalId = default) + { + return new KeyVaultRoleAssignmentProperties(scope, roleDefinitionId, principalId); + } + } +} diff --git a/sdk/keyvault/samples/sharelink/Generated/AzureSecurityKeyVaultStorageModelFactory.cs b/sdk/keyvault/samples/sharelink/Generated/AzureSecurityKeyVaultStorageModelFactory.cs new file mode 100644 index 0000000000000..818052c724803 --- /dev/null +++ b/sdk/keyvault/samples/sharelink/Generated/AzureSecurityKeyVaultStorageModelFactory.cs @@ -0,0 +1,169 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Security.KeyVault.Storage.Models; + +namespace Azure.Security.KeyVault.Storage +{ + /// Model factory for AzureSecurityKeyVaultStorage read-only models. + public static partial class AzureSecurityKeyVaultStorageModelFactory + { + /// Initializes new instance of StorageAccountItem class. + /// Storage identifier. + /// Storage account resource Id. + /// The storage account management attributes. + /// Application specific metadata in the form of key-value pairs. + /// A new instance for mocking. + public static StorageAccountItem StorageAccountItem(string id = default, string resourceId = default, StorageAccountAttributes attributes = default, IReadOnlyDictionary tags = default) + { + tags ??= new Dictionary(); + return new StorageAccountItem(id, resourceId, attributes, tags); + } + + /// Initializes new instance of StorageAccountAttributes class. + /// the enabled state of the object. + /// Creation time in UTC. + /// Last updated time in UTC. + /// softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0. + /// Reflects the deletion recovery level currently in effect for storage accounts in the current vault. If it contains 'Purgeable' the storage account can be permanently deleted by a privileged user; otherwise, only the system can purge the storage account, at the end of the retention interval. + /// A new instance for mocking. + public static StorageAccountAttributes StorageAccountAttributes(bool? enabled = default, DateTimeOffset? created = default, DateTimeOffset? updated = default, int? recoverableDays = default, DeletionRecoveryLevel? recoveryLevel = default) + { + return new StorageAccountAttributes(enabled, created, updated, recoverableDays, recoveryLevel); + } + + /// Initializes new instance of DeletedStorageAccountItem class. + /// Storage identifier. + /// Storage account resource Id. + /// The storage account management attributes. + /// Application specific metadata in the form of key-value pairs. + /// The url of the recovery object, used to identify and recover the deleted storage account. + /// The time when the storage account is scheduled to be purged, in UTC. + /// The time when the storage account was deleted, in UTC. + /// A new instance for mocking. + public static DeletedStorageAccountItem DeletedStorageAccountItem(string id = default, string resourceId = default, StorageAccountAttributes attributes = default, IReadOnlyDictionary tags = default, string recoveryId = default, DateTimeOffset? scheduledPurgeDate = default, DateTimeOffset? deletedDate = default) + { + tags ??= new Dictionary(); + return new DeletedStorageAccountItem(id, resourceId, attributes, tags, recoveryId, scheduledPurgeDate, deletedDate); + } + + /// Initializes new instance of StorageBundle class. + /// The storage account id. + /// The storage account resource id. + /// The current active storage account key name. + /// whether keyvault should manage the storage account for the user. + /// The key regeneration time duration specified in ISO-8601 format. + /// The storage account attributes. + /// Application specific metadata in the form of key-value pairs. + /// A new instance for mocking. + public static StorageBundle StorageBundle(string id = default, string resourceId = default, string activeKeyName = default, bool? autoRegenerateKey = default, string regenerationPeriod = default, StorageAccountAttributes attributes = default, IReadOnlyDictionary tags = default) + { + tags ??= new Dictionary(); + return new StorageBundle(id, resourceId, activeKeyName, autoRegenerateKey, regenerationPeriod, attributes, tags); + } + + /// Initializes new instance of DeletedStorageBundle class. + /// The storage account id. + /// The storage account resource id. + /// The current active storage account key name. + /// whether keyvault should manage the storage account for the user. + /// The key regeneration time duration specified in ISO-8601 format. + /// The storage account attributes. + /// Application specific metadata in the form of key-value pairs. + /// The url of the recovery object, used to identify and recover the deleted storage account. + /// The time when the storage account is scheduled to be purged, in UTC. + /// The time when the storage account was deleted, in UTC. + /// A new instance for mocking. + public static DeletedStorageBundle DeletedStorageBundle(string id = default, string resourceId = default, string activeKeyName = default, bool? autoRegenerateKey = default, string regenerationPeriod = default, StorageAccountAttributes attributes = default, IReadOnlyDictionary tags = default, string recoveryId = default, DateTimeOffset? scheduledPurgeDate = default, DateTimeOffset? deletedDate = default) + { + tags ??= new Dictionary(); + return new DeletedStorageBundle(id, resourceId, activeKeyName, autoRegenerateKey, regenerationPeriod, attributes, tags, recoveryId, scheduledPurgeDate, deletedDate); + } + + /// Initializes new instance of BackupStorageResult class. + /// The backup blob containing the backed up storage account. + /// A new instance for mocking. + public static BackupStorageResult BackupStorageResult(byte[] value = default) + { + return new BackupStorageResult(value); + } + + /// Initializes new instance of SasDefinitionItem class. + /// The storage SAS identifier. + /// The storage account SAS definition secret id. + /// The SAS definition management attributes. + /// Application specific metadata in the form of key-value pairs. + /// A new instance for mocking. + public static SasDefinitionItem SasDefinitionItem(string id = default, string secretId = default, SasDefinitionAttributes attributes = default, IReadOnlyDictionary tags = default) + { + tags ??= new Dictionary(); + return new SasDefinitionItem(id, secretId, attributes, tags); + } + + /// Initializes new instance of SasDefinitionAttributes class. + /// the enabled state of the object. + /// Creation time in UTC. + /// Last updated time in UTC. + /// softDelete data retention days. Value should be >=7 and <=90 when softDelete enabled, otherwise 0. + /// Reflects the deletion recovery level currently in effect for SAS definitions in the current vault. If it contains 'Purgeable' the SAS definition can be permanently deleted by a privileged user; otherwise, only the system can purge the SAS definition, at the end of the retention interval. + /// A new instance for mocking. + public static SasDefinitionAttributes SasDefinitionAttributes(bool? enabled = default, DateTimeOffset? created = default, DateTimeOffset? updated = default, int? recoverableDays = default, DeletionRecoveryLevel? recoveryLevel = default) + { + return new SasDefinitionAttributes(enabled, created, updated, recoverableDays, recoveryLevel); + } + + /// Initializes new instance of DeletedSasDefinitionItem class. + /// The storage SAS identifier. + /// The storage account SAS definition secret id. + /// The SAS definition management attributes. + /// Application specific metadata in the form of key-value pairs. + /// The url of the recovery object, used to identify and recover the deleted SAS definition. + /// The time when the SAS definition is scheduled to be purged, in UTC. + /// The time when the SAS definition was deleted, in UTC. + /// A new instance for mocking. + public static DeletedSasDefinitionItem DeletedSasDefinitionItem(string id = default, string secretId = default, SasDefinitionAttributes attributes = default, IReadOnlyDictionary tags = default, string recoveryId = default, DateTimeOffset? scheduledPurgeDate = default, DateTimeOffset? deletedDate = default) + { + tags ??= new Dictionary(); + return new DeletedSasDefinitionItem(id, secretId, attributes, tags, recoveryId, scheduledPurgeDate, deletedDate); + } + + /// Initializes new instance of SasDefinitionBundle class. + /// The SAS definition id. + /// Storage account SAS definition secret id. + /// The SAS definition token template signed with an arbitrary key. Tokens created according to the SAS definition will have the same properties as the template. + /// The type of SAS token the SAS definition will create. + /// The validity period of SAS tokens created according to the SAS definition. + /// The SAS definition attributes. + /// Application specific metadata in the form of key-value pairs. + /// A new instance for mocking. + public static SasDefinitionBundle SasDefinitionBundle(string id = default, string secretId = default, string templateUri = default, SasTokenType? sasType = default, string validityPeriod = default, SasDefinitionAttributes attributes = default, IReadOnlyDictionary tags = default) + { + tags ??= new Dictionary(); + return new SasDefinitionBundle(id, secretId, templateUri, sasType, validityPeriod, attributes, tags); + } + + /// Initializes new instance of DeletedSasDefinitionBundle class. + /// The SAS definition id. + /// Storage account SAS definition secret id. + /// The SAS definition token template signed with an arbitrary key. Tokens created according to the SAS definition will have the same properties as the template. + /// The type of SAS token the SAS definition will create. + /// The validity period of SAS tokens created according to the SAS definition. + /// The SAS definition attributes. + /// Application specific metadata in the form of key-value pairs. + /// The url of the recovery object, used to identify and recover the deleted SAS definition. + /// The time when the SAS definition is scheduled to be purged, in UTC. + /// The time when the SAS definition was deleted, in UTC. + /// A new instance for mocking. + public static DeletedSasDefinitionBundle DeletedSasDefinitionBundle(string id = default, string secretId = default, string templateUri = default, SasTokenType? sasType = default, string validityPeriod = default, SasDefinitionAttributes attributes = default, IReadOnlyDictionary tags = default, string recoveryId = default, DateTimeOffset? scheduledPurgeDate = default, DateTimeOffset? deletedDate = default) + { + tags ??= new Dictionary(); + return new DeletedSasDefinitionBundle(id, secretId, templateUri, sasType, validityPeriod, attributes, tags, recoveryId, scheduledPurgeDate, deletedDate); + } + } +} diff --git a/sdk/keyvault/samples/sharelink/Generated/ManagedStorageRestClient.cs b/sdk/keyvault/samples/sharelink/Generated/ManagedStorageRestClient.cs index 90391b67c31b9..c51dfb9dac1ab 100644 --- a/sdk/keyvault/samples/sharelink/Generated/ManagedStorageRestClient.cs +++ b/sdk/keyvault/samples/sharelink/Generated/ManagedStorageRestClient.cs @@ -664,9 +664,12 @@ internal HttpMessage CreateSetStorageAccountRequest(string storageAccountName, s RegenerationPeriod = regenerationPeriod, StorageAccountAttributes = storageAccountAttributes }; - foreach (var value in tags) + if (tags != null) { - storageAccountCreateParameters.Tags.Add(value); + foreach (var value in tags) + { + storageAccountCreateParameters.Tags.Add(value); + } } var model = storageAccountCreateParameters; var content = new Utf8JsonRequestContent(); @@ -777,9 +780,12 @@ internal HttpMessage CreateUpdateStorageAccountRequest(string storageAccountName RegenerationPeriod = regenerationPeriod, StorageAccountAttributes = storageAccountAttributes }; - foreach (var value in tags) + if (tags != null) { - storageAccountUpdateParameters.Tags.Add(value); + foreach (var value in tags) + { + storageAccountUpdateParameters.Tags.Add(value); + } } var model = storageAccountUpdateParameters; var content = new Utf8JsonRequestContent(); @@ -1433,9 +1439,12 @@ internal HttpMessage CreateSetSasDefinitionRequest(string storageAccountName, st { SasDefinitionAttributes = sasDefinitionAttributes }; - foreach (var value in tags) + if (tags != null) { - sasDefinitionCreateParameters.Tags.Add(value); + foreach (var value in tags) + { + sasDefinitionCreateParameters.Tags.Add(value); + } } var model = sasDefinitionCreateParameters; var content = new Utf8JsonRequestContent(); @@ -1556,9 +1565,12 @@ internal HttpMessage CreateUpdateSasDefinitionRequest(string storageAccountName, ValidityPeriod = validityPeriod, SasDefinitionAttributes = sasDefinitionAttributes }; - foreach (var value in tags) + if (tags != null) { - sasDefinitionUpdateParameters.Tags.Add(value); + foreach (var value in tags) + { + sasDefinitionUpdateParameters.Tags.Add(value); + } } var model = sasDefinitionUpdateParameters; var content = new Utf8JsonRequestContent(); diff --git a/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs new file mode 100644 index 0000000000000..4262c67ff1a82 --- /dev/null +++ b/sdk/metricsadvisor/Azure.AI.MetricsAdvisor/src/Generated/AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2ModelFactory.cs @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.AI.MetricsAdvisor.Models; + +namespace Azure.AI.MetricsAdvisor +{ + /// Model factory for AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2 read-only models. + public static partial class AzureCognitiveServiceMetricsAdvisorRestAPIOpenAPIV2ModelFactory + { + /// 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. + /// created time. + /// modified time. + /// A new instance for mocking. + public static AnomalyAlert AnomalyAlert(string id = default, DateTimeOffset timestamp = default, DateTimeOffset createdTime = default, DateTimeOffset modifiedTime = default) + { + return new AnomalyAlert(id, timestamp, createdTime, modifiedTime); + } + + /// Initializes new instance of AnomalyDetectionConfiguration class. + /// anomaly detection configuration unique id. + /// anomaly detection configuration name. + /// anomaly detection configuration description. + /// metric unique id. + /// . + /// detection configuration for series group. + /// detection configuration for specific series. + /// A new instance for mocking. + public static AnomalyDetectionConfiguration AnomalyDetectionConfiguration(string id = default, string name = default, string description = default, string metricId = default, MetricWholeSeriesDetectionCondition wholeSeriesDetectionConditions = default, IList seriesGroupDetectionConditions = default, IList seriesDetectionConditions = default) + { + seriesGroupDetectionConditions ??= new List(); + seriesDetectionConditions ??= new List(); + return new AnomalyDetectionConfiguration(id, name, description, metricId, wholeSeriesDetectionConditions, seriesGroupDetectionConditions, seriesDetectionConditions); + } + + /// Initializes new instance of IncidentRootCause class. + /// . + /// drilling down path from query anomaly to root cause. + /// score of the root cause. + /// description of the root cause. + /// A new instance for mocking. + public static IncidentRootCause IncidentRootCause(DimensionKey dimensionKey = default, IReadOnlyList paths = default, double score = default, string description = default) + { + paths ??= new List(); + return new IncidentRootCause(dimensionKey, paths, score, description); + } + + /// Initializes new instance of DataFeedMetric class. + /// metric id. + /// metric name. + /// metric display name. + /// metric description. + /// A new instance for mocking. + public static DataFeedMetric DataFeedMetric(string metricId = default, string metricName = default, string metricDisplayName = default, string metricDescription = default) + { + return new DataFeedMetric(metricId, metricName, metricDisplayName, metricDescription); + } + + /// Initializes new instance of DataFeedIngestionStatus class. + /// data slice timestamp. + /// latest ingestion task status for this data slice. + /// the trimmed message of last ingestion job. + /// A new instance for mocking. + public static DataFeedIngestionStatus DataFeedIngestionStatus(DateTimeOffset timestamp = default, IngestionStatusType status = default, string message = default) + { + return new DataFeedIngestionStatus(timestamp, status, message); + } + + /// Initializes new instance of DataFeedIngestionProgress class. + /// + /// the timestamp of latest success ingestion job. + /// + /// null indicates not available. + /// + /// + /// the timestamp of latest ingestion job with status update. + /// + /// null indicates not available. + /// + /// A new instance for mocking. + public static DataFeedIngestionProgress DataFeedIngestionProgress(DateTimeOffset? latestSuccessTimestamp = default, DateTimeOffset? latestActiveTimestamp = default) + { + 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 values = default) + { + timestamps ??= new List(); + values ??= new List(); + return new MetricSeriesData(definition, timestamps, values); + } + + /// 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. + /// the trimmed message describes details of the enrichment status. + /// A new instance for mocking. + public static EnrichmentStatus EnrichmentStatus(DateTimeOffset timestamp = default, string status = default, string message = default) + { + return new EnrichmentStatus(timestamp, status, message); + } + } +} diff --git a/sdk/monitor/Azure.Monitor.Query/src/Generated/QueryModelFactory.cs b/sdk/monitor/Azure.Monitor.Query/src/Generated/QueryModelFactory.cs new file mode 100644 index 0000000000000..ee857898ee9d4 --- /dev/null +++ b/sdk/monitor/Azure.Monitor.Query/src/Generated/QueryModelFactory.cs @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using System.Text.Json; +using Azure.Monitor.Query.Models; + +namespace Azure.Monitor.Query +{ + /// Model factory for Query read-only models. + public static partial class QueryModelFactory + { + /// 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. + /// A new instance for mocking. + public static LogsQueryResultColumn LogsQueryResultColumn(string name = default, string type = default) + { + return new LogsQueryResultColumn(name, type); + } + + /// Initializes new instance of MetricAvailability class. + /// the time grain specifies the aggregation interval for the metric. Expressed as a duration 'PT1M', 'P1D', etc. + /// the retention period for the metric at the specified timegrain. Expressed as a duration 'PT1M', 'P1D', etc. + /// A new instance for mocking. + public static MetricAvailability MetricAvailability(TimeSpan? timeGrain = default, TimeSpan? retention = default) + { + return new MetricAvailability(timeGrain, retention); + } + + /// Initializes new instance of MetricQueryResult class. + /// The integer value representing the cost of the query, for data case. + /// 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 been queried. + /// The region of the resource been 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. + /// the least value in the time range. + /// the greatest value in the time range. + /// the sum of all of the values in the time range. + /// the number of samples in the time range. Can be used to determine the number of values that contributed to the average value. + /// A new instance for mocking. + public static MetricValue MetricValue(DateTimeOffset timeStamp = default, double? average = default, double? minimum = default, double? maximum = default, double? total = default, double? count = default) + { + return new MetricValue(timeStamp, average, minimum, maximum, total, count); + } + } +} diff --git a/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/AOAFrontEndAPIsModelFactory.cs b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/AOAFrontEndAPIsModelFactory.cs new file mode 100644 index 0000000000000..b828d6543eac5 --- /dev/null +++ b/sdk/objectanchors/Azure.MixedReality.ObjectAnchors.Conversion/src/Generated/AOAFrontEndAPIsModelFactory.cs @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.MixedReality.ObjectAnchors.Conversion.Models; + +namespace Azure.MixedReality.ObjectAnchors.Conversion +{ + /// Model factory for AOAFrontEndAPIs read-only models. + public 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/quantum/Azure.Quantum.Jobs/src/Generated/QuantumModelFactory.cs b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/QuantumModelFactory.cs new file mode 100644 index 0000000000000..4e30d1fb95dc3 --- /dev/null +++ b/sdk/quantum/Azure.Quantum.Jobs/src/Generated/QuantumModelFactory.cs @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Quantum.Jobs.Models; + +namespace Azure.Quantum.Jobs +{ + /// Model factory for Quantum read-only models. + public static partial class QuantumModelFactory + { + /// Initializes new instance of JobDetails class. + /// The job id. + /// The job name. Is not required for the name to be unique and it's only used for display purposes. + /// The blob container SAS uri, the container is used to host job data. + /// The input blob SAS uri, if specified, it will override the default input blob in the container. + /// The format of the input data. + /// The input parameters for the job. JSON object used by the target solver. It is expected that the size of this object is small and only used to specify parameters for the execution target, not the input data. + /// The unique identifier for the provider. + /// The target identifier to run the job. + /// The job metadata. Metadata provides client the ability to store client-specific information. + /// The output blob SAS uri. When a job finishes successfully, results will be uploaded to this blob. + /// The format of the output data. + /// The job status. + /// The creation time of the job. + /// The time when the job began execution. + /// The time when the job finished execution. + /// The time when a job was successfully cancelled. + /// The error data for the job. This is expected only when Status 'Failed'. + /// A new instance for mocking. + public static JobDetails JobDetails(string id = default, string name = default, string containerUri = default, string inputDataUri = default, string inputDataFormat = default, object inputParams = default, string providerId = default, string target = default, IDictionary metadata = default, string outputDataUri = default, string outputDataFormat = default, JobStatus? status = default, DateTimeOffset? creationTime = default, DateTimeOffset? beginExecutionTime = default, DateTimeOffset? endExecutionTime = default, DateTimeOffset? cancellationTime = default, ErrorData errorData = default) + { + metadata ??= new Dictionary(); + return new JobDetails(id, name, containerUri, inputDataUri, inputDataFormat, inputParams, providerId, target, metadata, outputDataUri, outputDataFormat, status, creationTime, beginExecutionTime, endExecutionTime, cancellationTime, errorData); + } + + /// Initializes new instance of ErrorData class. + /// An identifier for the error. Codes are invariant and are intended to be consumed programmatically. + /// A message describing the error, intended to be suitable for displaying in a user interface. + /// A new instance for mocking. + public static ErrorData ErrorData(string code = default, string message = default) + { + return new ErrorData(code, message); + } + + /// Initializes new instance of ProviderStatus class. + /// Provider id. + /// Provider availability. + /// Job target. + /// A new instance for mocking. + public static ProviderStatus ProviderStatus(string id = default, ProviderAvailability? currentAvailability = default, IReadOnlyList targets = default) + { + targets ??= new List(); + return new ProviderStatus(id, currentAvailability, targets); + } + + /// Initializes new instance of TargetStatus class. + /// Target id. + /// Target availability. + /// Average queue time in seconds. + /// A page with detailed status of the provider. + /// A new instance for mocking. + public static TargetStatus TargetStatus(string id = default, TargetAvailability? currentAvailability = default, long? averageQueueTime = default, string statusPage = default) + { + return new TargetStatus(id, currentAvailability, averageQueueTime, statusPage); + } + + /// Initializes new instance of SasUriResponse class. + /// A URL with a SAS token to upload a blob for execution in the given workspace. + /// A new instance for mocking. + public static SasUriResponse SasUriResponse(string sasUri = default) + { + return new SasUriResponse(sasUri); + } + + /// Initializes new instance of QuantumJobQuota class. + /// The name of the dimension associated with the quota. + /// The scope at which the quota is applied. + /// The unique identifier for the provider. + /// The amount of the usage that has been applied for the current period. + /// The amount of the usage that has been reserved but not applied for the current period. + /// The maximum amount of usage allowed for the current period. + /// The time period in which the quota's underlying meter is accumulated. Based on calendar year. 'None' is used for concurrent quotas. + /// A new instance for mocking. + public static QuantumJobQuota QuantumJobQuota(string dimension = default, DimensionScope? scope = default, string providerId = default, float? utilization = default, float? holds = default, float? limit = default, MeterPeriod? period = default) + { + return new QuantumJobQuota(dimension, scope, providerId, utilization, holds, limit, period); + } + } +} diff --git a/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/MixedRealityRemoteRenderingModelFactory.cs b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/MixedRealityRemoteRenderingModelFactory.cs new file mode 100644 index 0000000000000..b2ee58494e475 --- /dev/null +++ b/sdk/remoterendering/Azure.MixedReality.RemoteRendering/src/Generated/MixedRealityRemoteRenderingModelFactory.cs @@ -0,0 +1,68 @@ +// 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 MixedRealityRemoteRendering 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/search/Azure.Search.Documents/src/Generated/SearchServiceModelFactory.cs b/sdk/search/Azure.Search.Documents/src/Generated/SearchServiceModelFactory.cs new file mode 100644 index 0000000000000..42dc2ac262d85 --- /dev/null +++ b/sdk/search/Azure.Search.Documents/src/Generated/SearchServiceModelFactory.cs @@ -0,0 +1,220 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Search.Documents.Indexes.Models; +using Azure.Search.Documents.Models; + +namespace Azure.Search.Documents +{ + /// Model factory for SearchService read-only models. + public static partial class SearchServiceModelFactory + { + /// Initializes new instance of FacetResult class. + /// The approximate count of documents falling within the bucket described by this facet. + /// . + /// A new instance for mocking. + public static FacetResult FacetResult(long? count = default, IReadOnlyDictionary additionalProperties = default) + { + additionalProperties ??= new Dictionary(); + return new FacetResult(count, additionalProperties); + } + + /// Initializes new instance of AnswerResult class. + /// The score value represents how relevant the answer is to the the query relative to other answers returned for the query. + /// The key of the document the answer was extracted from. + /// The text passage extracted from the document contents as the answer. + /// Same text passage as in the Text property with highlighted text phrases most relevant to the query. + /// . + /// A new instance for mocking. + public static AnswerResult AnswerResult(double? score = default, string key = default, string text = default, string highlights = default, IReadOnlyDictionary additionalProperties = default) + { + additionalProperties ??= new Dictionary(); + return new AnswerResult(score, key, text, highlights, additionalProperties); + } + + /// Initializes new instance of CaptionResult class. + /// A representative text passage extracted from the document most relevant to the search query. + /// Same text passage as in the Text property with highlighted phrases most relevant to the query. + /// . + /// A new instance for mocking. + public static CaptionResult CaptionResult(string text = default, string highlights = default, IReadOnlyDictionary additionalProperties = default) + { + additionalProperties ??= new Dictionary(); + return new CaptionResult(text, highlights, additionalProperties); + } + + /// Initializes new instance of IndexDocumentsResult class. + /// The list of status information for each document in the indexing request. + /// A new instance for mocking. + public static IndexDocumentsResult IndexDocumentsResult(IReadOnlyList results = default) + { + results ??= new List(); + return new IndexDocumentsResult(results); + } + + /// Initializes new instance of IndexingResult class. + /// The key of a document that was in the indexing request. + /// The error message explaining why the indexing operation failed for the document identified by the key; null if indexing succeeded. + /// A value indicating whether the indexing operation succeeded for the document identified by the key. + /// The status code of the indexing operation. Possible values include: 200 for a successful update or delete, 201 for successful document creation, 400 for a malformed input document, 404 for document not found, 409 for a version conflict, 422 when the index is temporarily unavailable, or 503 for when the service is too busy. + /// A new instance for mocking. + public static IndexingResult IndexingResult(string key = default, string errorMessage = default, bool succeeded = default, int status = default) + { + return new IndexingResult(key, errorMessage, succeeded, status); + } + + /// Initializes new instance of AutocompleteResults class. + /// A value indicating the percentage of the index that was considered by the autocomplete request, or null if minimumCoverage was not specified in the request. + /// The list of returned Autocompleted items. + /// A new instance for mocking. + public static AutocompleteResults AutocompleteResults(double? coverage = default, IReadOnlyList results = default) + { + results ??= new List(); + return new AutocompleteResults(coverage, results); + } + + /// Initializes new instance of AutocompleteItem class. + /// The completed term. + /// The query along with the completed term. + /// A new instance for mocking. + public static AutocompleteItem AutocompleteItem(string text = default, string queryPlusText = default) + { + return new AutocompleteItem(text, queryPlusText); + } + + /// Initializes new instance of SearchIndexerStatus class. + /// Overall indexer status. + /// The result of the most recent or an in-progress indexer execution. + /// History of the recent indexer executions, sorted in reverse chronological order. + /// The execution limits for the indexer. + /// A new instance for mocking. + public static SearchIndexerStatus SearchIndexerStatus(IndexerStatus status = default, IndexerExecutionResult lastResult = default, IReadOnlyList executionHistory = default, SearchIndexerLimits limits = default) + { + executionHistory ??= new List(); + return new SearchIndexerStatus(status, lastResult, executionHistory, limits); + } + + /// Initializes new instance of IndexerExecutionResult class. + /// The outcome of this indexer execution. + /// The error message indicating the top-level error, if any. + /// The start time of this indexer execution. + /// The end time of this indexer execution, if the execution has already completed. + /// The item-level indexing errors. + /// The item-level indexing warnings. + /// The number of items that were processed during this indexer execution. This includes both successfully processed items and items where indexing was attempted but failed. + /// The number of items that failed to be indexed during this indexer execution. + /// Change tracking state with which an indexer execution started. + /// Change tracking state with which an indexer execution finished. + /// A new instance for mocking. + public static IndexerExecutionResult IndexerExecutionResult(IndexerExecutionStatus status = default, string errorMessage = default, DateTimeOffset? startTime = default, DateTimeOffset? endTime = default, IReadOnlyList errors = default, IReadOnlyList warnings = default, int itemCount = default, int failedItemCount = default, string initialTrackingState = default, string finalTrackingState = default) + { + errors ??= new List(); + warnings ??= new List(); + return new IndexerExecutionResult(status, errorMessage, startTime, endTime, errors, warnings, itemCount, failedItemCount, initialTrackingState, finalTrackingState); + } + + /// Initializes new instance of SearchIndexerError class. + /// The key of the item for which indexing failed. + /// The message describing the error that occurred while processing the item. + /// The status code indicating why the indexing operation failed. Possible values include: 400 for a malformed input document, 404 for document not found, 409 for a version conflict, 422 when the index is temporarily unavailable, or 503 for when the service is too busy. + /// The name of the source at which the error originated. For example, this could refer to a particular skill in the attached skillset. This may not be always available. + /// Additional, verbose details about the error to assist in debugging the indexer. This may not be always available. + /// A link to a troubleshooting guide for these classes of errors. This may not be always available. + /// A new instance for mocking. + public static SearchIndexerError SearchIndexerError(string key = default, string errorMessage = default, int statusCode = default, string name = default, string details = default, string documentationLink = default) + { + return new SearchIndexerError(key, errorMessage, statusCode, name, details, documentationLink); + } + + /// Initializes new instance of SearchIndexerWarning class. + /// The key of the item which generated a warning. + /// The message describing the warning that occurred while processing the item. + /// The name of the source at which the warning originated. For example, this could refer to a particular skill in the attached skillset. This may not be always available. + /// Additional, verbose details about the warning to assist in debugging the indexer. This may not be always available. + /// A link to a troubleshooting guide for these classes of warnings. This may not be always available. + /// A new instance for mocking. + public static SearchIndexerWarning SearchIndexerWarning(string key = default, string message = default, string name = default, string details = default, string documentationLink = default) + { + return new SearchIndexerWarning(key, message, name, details, documentationLink); + } + + /// Initializes new instance of SearchIndexerLimits class. + /// The maximum duration that the indexer is permitted to run for one execution. + /// The maximum size of a document, in bytes, which will be considered valid for indexing. + /// The maximum number of characters that will be extracted from a document picked up for indexing. + /// A new instance for mocking. + public static SearchIndexerLimits SearchIndexerLimits(TimeSpan? maxRunTime = default, long? maxDocumentExtractionSize = default, long? maxDocumentContentCharactersToExtract = default) + { + return new SearchIndexerLimits(maxRunTime, maxDocumentExtractionSize, maxDocumentContentCharactersToExtract); + } + + /// Initializes new instance of SearchIndexStatistics class. + /// The number of documents in the index. + /// The amount of storage in bytes consumed by the index. + /// A new instance for mocking. + public static SearchIndexStatistics SearchIndexStatistics(long documentCount = default, long storageSize = default) + { + return new SearchIndexStatistics(documentCount, storageSize); + } + + /// Initializes new instance of AnalyzedTokenInfo class. + /// The token returned by the analyzer. + /// The index of the first character of the token in the input text. + /// The index of the last character of the token in the input text. + /// The position of the token in the input text relative to other tokens. The first token in the input text has position 0, the next has position 1, and so on. Depending on the analyzer used, some tokens might have the same position, for example if they are synonyms of each other. + /// A new instance for mocking. + public static AnalyzedTokenInfo AnalyzedTokenInfo(string token = default, int startOffset = default, int endOffset = default, int position = default) + { + return new AnalyzedTokenInfo(token, startOffset, endOffset, position); + } + + /// Initializes new instance of SearchServiceStatistics class. + /// Service level resource counters. + /// Service level general limits. + /// A new instance for mocking. + public static SearchServiceStatistics SearchServiceStatistics(SearchServiceCounters counters = default, SearchServiceLimits limits = default) + { + return new SearchServiceStatistics(counters, limits); + } + + /// Initializes new instance of SearchServiceCounters class. + /// Total number of documents across all indexes in the service. + /// Total number of indexes. + /// Total number of indexers. + /// Total number of data sources. + /// Total size of used storage in bytes. + /// Total number of synonym maps. + /// Total number of skillsets. + /// A new instance for mocking. + public static SearchServiceCounters SearchServiceCounters(SearchResourceCounter documentCounter = default, SearchResourceCounter indexCounter = default, SearchResourceCounter indexerCounter = default, SearchResourceCounter dataSourceCounter = default, SearchResourceCounter storageSizeCounter = default, SearchResourceCounter synonymMapCounter = default, SearchResourceCounter skillsetCounter = default) + { + return new SearchServiceCounters(documentCounter, indexCounter, indexerCounter, dataSourceCounter, storageSizeCounter, synonymMapCounter, skillsetCounter); + } + + /// Initializes new instance of SearchResourceCounter class. + /// The resource usage amount. + /// The resource amount quota. + /// A new instance for mocking. + public static SearchResourceCounter SearchResourceCounter(long usage = default, long? quota = default) + { + return new SearchResourceCounter(usage, quota); + } + + /// Initializes new instance of SearchServiceLimits class. + /// The maximum allowed fields per index. + /// The maximum depth which you can nest sub-fields in an index, including the top-level complex field. For example, a/b/c has a nesting depth of 3. + /// The maximum number of fields of type Collection(Edm.ComplexType) allowed in an index. + /// The maximum number of objects in complex collections allowed per document. + /// A new instance for mocking. + public static SearchServiceLimits SearchServiceLimits(int? maxFieldsPerIndex = default, int? maxFieldNestingDepthPerIndex = default, int? maxComplexCollectionFieldsPerIndex = default, int? maxComplexObjectsInCollectionsPerDocument = default) + { + return new SearchServiceLimits(maxFieldsPerIndex, maxFieldNestingDepthPerIndex, maxComplexCollectionFieldsPerIndex, maxComplexObjectsInCollectionsPerDocument); + } + } +} diff --git a/sdk/storage/Azure.Storage.Blobs/src/Generated/AzureBlobStorageModelFactory.cs b/sdk/storage/Azure.Storage.Blobs/src/Generated/AzureBlobStorageModelFactory.cs new file mode 100644 index 0000000000000..0578ec896ec6c --- /dev/null +++ b/sdk/storage/Azure.Storage.Blobs/src/Generated/AzureBlobStorageModelFactory.cs @@ -0,0 +1,68 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Storage.Blobs.Models; + +namespace Azure.Storage.Blobs +{ + /// Model factory for AzureBlobStorage read-only models. + public static partial class AzureBlobStorageModelFactory + { + /// Initializes new instance of BlobServiceStatistics class. + /// Geo-Replication information for the Secondary Storage Service. + /// A new instance for mocking. + public static BlobServiceStatistics BlobServiceStatistics(BlobGeoReplication geoReplication = default) + { + return new BlobServiceStatistics(geoReplication); + } + + /// Initializes new instance of BlobGeoReplication class. + /// The status of the secondary location. + /// A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available for read operations at the secondary. Primary writes after this point in time may or may not be available for reads. + /// A new instance for mocking. + public static BlobGeoReplication BlobGeoReplication(BlobGeoReplicationStatus status = default, DateTimeOffset? lastSyncedOn = default) + { + return new BlobGeoReplication(status, lastSyncedOn); + } + + /// Initializes new instance of UserDelegationKey class. + /// The Azure Active Directory object ID in GUID format. + /// The Azure Active Directory tenant ID in GUID format. + /// The date-time the key is active. + /// The date-time the key expires. + /// Abbreviation of the Azure Storage service that accepts the key. + /// The service version that created the key. + /// The key as a base64 string. + /// A new instance for mocking. + public static UserDelegationKey UserDelegationKey(string signedObjectId = default, string signedTenantId = default, DateTimeOffset signedStartsOn = default, DateTimeOffset signedExpiresOn = default, string signedService = default, string signedVersion = default, string value = default) + { + return new UserDelegationKey(signedObjectId, signedTenantId, signedStartsOn, signedExpiresOn, signedService, signedVersion, value); + } + + /// Initializes new instance of BlockList class. + /// . + /// . + /// A new instance for mocking. + public static BlockList BlockList(IEnumerable committedBlocks = default, IEnumerable uncommittedBlocks = default) + { + committedBlocks ??= new List(); + uncommittedBlocks ??= new List(); + return new BlockList(committedBlocks, uncommittedBlocks); + } + + /// Initializes new instance of BlobBlock structure. + /// The base64 encoded block ID. + /// The block size in bytes. + /// A new instance for mocking. + public static BlobBlock BlobBlock(string name = default, long sizeLong = default) + { + return new BlobBlock(name, sizeLong); + } + } +} diff --git a/sdk/storage/Azure.Storage.Files.Shares/src/Generated/AzureFileStorageModelFactory.cs b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/AzureFileStorageModelFactory.cs new file mode 100644 index 0000000000000..51b8f76c8745e --- /dev/null +++ b/sdk/storage/Azure.Storage.Files.Shares/src/Generated/AzureFileStorageModelFactory.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Storage.Files.Shares.Models; + +namespace Azure.Storage.Files.Shares +{ + /// Model factory for AzureFileStorage read-only models. + public static partial class AzureFileStorageModelFactory + { + /// Initializes new instance of ShareStatistics class. + /// The approximate size of the data stored in bytes. Note that this value may not include all recently created or recently resized files. + /// A new instance for mocking. + public static ShareStatistics ShareStatistics(int shareUsageBytes = default) + { + return new ShareStatistics(shareUsageBytes); + } + + /// Initializes new instance of ShareFileHandle class. + /// XSMB service handle ID. + /// File or directory name including full path starting from share root. + /// FileId uniquely identifies the file or directory. + /// ParentId uniquely identifies the parent directory of the object. + /// SMB session ID in context of which the file handle was opened. + /// Client IP that opened the handle. + /// Time when the session that previously opened the handle has last been reconnected. (UTC). + /// Time handle was last connected to (UTC). + /// A new instance for mocking. + public static ShareFileHandle ShareFileHandle(string handleId = default, string path = default, string fileId = default, string parentId = default, string sessionId = default, string clientIp = default, DateTimeOffset? openedOn = default, DateTimeOffset? lastReconnectedOn = default) + { + return new ShareFileHandle(handleId, path, fileId, parentId, sessionId, clientIp, openedOn, lastReconnectedOn); + } + } +} diff --git a/sdk/storage/Azure.Storage.Queues/src/Generated/AzureQueueStorageModelFactory.cs b/sdk/storage/Azure.Storage.Queues/src/Generated/AzureQueueStorageModelFactory.cs new file mode 100644 index 0000000000000..f8e5d6ceebe87 --- /dev/null +++ b/sdk/storage/Azure.Storage.Queues/src/Generated/AzureQueueStorageModelFactory.cs @@ -0,0 +1,56 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Storage.Queues.Models; + +namespace Azure.Storage.Queues +{ + /// Model factory for AzureQueueStorage read-only models. + public static partial class AzureQueueStorageModelFactory + { + /// Initializes new instance of QueueServiceStatistics class. + /// Geo-Replication information for the Secondary Storage Service. + /// A new instance for mocking. + public static QueueServiceStatistics QueueServiceStatistics(QueueGeoReplication geoReplication = default) + { + return new QueueServiceStatistics(geoReplication); + } + + /// Initializes new instance of QueueGeoReplication class. + /// The status of the secondary location. + /// A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available for read operations at the secondary. Primary writes after this point in time may or may not be available for reads. + /// A new instance for mocking. + public static QueueGeoReplication QueueGeoReplication(QueueGeoReplicationStatus status = default, DateTimeOffset? lastSyncedOn = default) + { + return new QueueGeoReplication(status, lastSyncedOn); + } + + /// Initializes new instance of QueueItem class. + /// The name of the Queue. + /// Dictionary of <string>. + /// A new instance for mocking. + public static QueueItem QueueItem(string name = default, IDictionary metadata = default) + { + metadata ??= new Dictionary(); + return new QueueItem(name, metadata); + } + + /// Initializes new instance of SendReceipt class. + /// The Id of the Message. + /// The time the Message was inserted into the Queue. + /// The time that the Message will expire and be automatically deleted. + /// This value is required to delete the Message. If deletion fails using this popreceipt then the message has been dequeued by another client. + /// The time that the message will again become visible in the Queue. + /// A new instance for mocking. + public static SendReceipt SendReceipt(string messageId = default, DateTimeOffset insertionTime = default, DateTimeOffset expirationTime = default, string popReceipt = default, DateTimeOffset timeNextVisible = default) + { + return new SendReceipt(messageId, insertionTime, expirationTime, popReceipt, timeNextVisible); + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/AccessControlModelFactory.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/AccessControlModelFactory.cs new file mode 100644 index 0000000000000..b3dc080c2f27c --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/AccessControlModelFactory.cs @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Analytics.Synapse.AccessControl.Models; + +namespace Azure.Analytics.Synapse.AccessControl +{ + /// Model factory for AccessControl read-only models. + public static partial class AccessControlModelFactory + { + /// Initializes new instance of CheckPrincipalAccessResponse class. + /// To check if the current user, group, or service principal has permission to read artifacts in the specified workspace. + /// A new instance for mocking. + public static CheckPrincipalAccessResponse CheckPrincipalAccessResponse(IReadOnlyList accessDecisions = default) + { + accessDecisions ??= new List(); + return new CheckPrincipalAccessResponse(accessDecisions); + } + + /// Initializes new instance of CheckAccessDecision class. + /// Access Decision. + /// Action Id. + /// Role Assignment response details. + /// A new instance for mocking. + public static CheckAccessDecision CheckAccessDecision(string accessDecision = default, string actionId = default, RoleAssignmentDetails roleAssignment = default) + { + return new CheckAccessDecision(accessDecision, actionId, roleAssignment); + } + + /// Initializes new instance of RoleAssignmentDetails class. + /// Role Assignment ID. + /// Role ID of the Synapse Built-In Role. + /// Object ID of the AAD principal or security-group. + /// Scope at the role assignment is created. + /// Type of the principal Id: User, Group or ServicePrincipal. + /// A new instance for mocking. + public static RoleAssignmentDetails RoleAssignmentDetails(string id = default, Guid? roleDefinitionId = default, Guid? principalId = default, string scope = default, string principalType = default) + { + return new RoleAssignmentDetails(id, roleDefinitionId, principalId, scope, principalType); + } + + /// Initializes new instance of SynapseRoleDefinition class. + /// Role Definition ID. + /// Name of the Synapse role. + /// Is a built-in role or not. + /// Description for the Synapse role. + /// Permissions for the Synapse role. + /// Allowed scopes for the Synapse role. + /// Availability of the Synapse role. + /// A new instance for mocking. + public static SynapseRoleDefinition SynapseRoleDefinition(Guid? id = default, string name = default, bool? isBuiltIn = default, string description = default, IReadOnlyList permissions = default, IReadOnlyList scopes = default, string availabilityStatus = default) + { + permissions ??= new List(); + scopes ??= new List(); + return new SynapseRoleDefinition(id, name, isBuiltIn, description, permissions, scopes, availabilityStatus); + } + + /// Initializes new instance of SynapseRbacPermission class. + /// List of actions. + /// List of Not actions. + /// List of data actions. + /// List of Not data actions. + /// A new instance for mocking. + public static SynapseRbacPermission SynapseRbacPermission(IReadOnlyList actions = default, IReadOnlyList notActions = default, IReadOnlyList dataActions = default, IReadOnlyList notDataActions = default) + { + actions ??= new List(); + notActions ??= new List(); + dataActions ??= new List(); + notDataActions ??= new List(); + return new SynapseRbacPermission(actions, notActions, dataActions, notDataActions); + } + + /// Initializes new instance of RoleAssignmentDetailsList class. + /// Number of role assignments. + /// A list of role assignments. + /// A new instance for mocking. + public static RoleAssignmentDetailsList RoleAssignmentDetailsList(int? count = default, IReadOnlyList value = default) + { + value ??= new List(); + return new RoleAssignmentDetailsList(count, value); + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleAssignmentsRestClient.cs b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleAssignmentsRestClient.cs index 84d99c66cb712..883f3b1a47592 100644 --- a/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleAssignmentsRestClient.cs +++ b/sdk/synapse/Azure.Analytics.Synapse.AccessControl/src/Generated/RoleAssignmentsRestClient.cs @@ -7,6 +7,7 @@ using System; using System.Collections.Generic; +using System.Linq; using System.Text.Json; using System.Threading; using System.Threading.Tasks; @@ -59,7 +60,7 @@ internal HttpMessage CreateCheckPrincipalAccessRequest(SubjectInfo subject, IEnu request.Uri = uri; request.Headers.Add("Accept", "application/json, text/json"); request.Headers.Add("Content-Type", "application/json"); - var model = new CheckPrincipalAccessRequest(subject, actions, scope); + var model = new CheckPrincipalAccessRequest(subject, actions.ToList(), scope); var content = new Utf8JsonRequestContent(); content.JsonWriter.WriteObjectValue(model); request.Content = content; diff --git a/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/ArtifactsModelFactory.cs b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/ArtifactsModelFactory.cs new file mode 100644 index 0000000000000..2b6a4e08a1221 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Artifacts/src/Generated/ArtifactsModelFactory.cs @@ -0,0 +1,631 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Analytics.Synapse.Artifacts.Models; + +namespace Azure.Analytics.Synapse.Artifacts +{ + /// Model factory for Artifacts read-only models. + public static partial class ArtifactsModelFactory + { + /// Initializes new instance of Resource class. + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /// The name of the resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// A new instance for mocking. + public static Resource Resource(string id = default, string name = default, string type = default) + { + return new Resource(id, name, type); + } + + /// Initializes new instance of AzureEntityResource class. + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /// The name of the resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// Resource Etag. + /// A new instance for mocking. + public static AzureEntityResource AzureEntityResource(string id = default, string name = default, string type = default, string etag = default) + { + return new AzureEntityResource(id, name, type, etag); + } + + /// Initializes new instance of CloudError class. + /// Error code. + /// Error message. + /// Property name/path in request associated with error. + /// Array with additional error details. + /// A new instance for mocking. + public static CloudError CloudError(string code = default, string message = default, string target = default, IReadOnlyList details = default) + { + details ??= new List(); + return new CloudError(code, message, target, details); + } + + /// Initializes new instance of CreateRunResponse class. + /// Identifier of a run. + /// A new instance for mocking. + public static CreateRunResponse CreateRunResponse(string runId = default) + { + return new CreateRunResponse(runId); + } + + /// Initializes new instance of PipelineRunsQueryResponse class. + /// List of pipeline runs. + /// The continuation token for getting the next page of results, if any remaining results exist, null otherwise. + /// A new instance for mocking. + public static PipelineRunsQueryResponse PipelineRunsQueryResponse(IReadOnlyList value = default, string continuationToken = default) + { + value ??= new List(); + return new PipelineRunsQueryResponse(value, continuationToken); + } + + /// Initializes new instance of PipelineRun class. + /// Identifier of a run. + /// Identifier that correlates all the recovery runs of a pipeline run. + /// Indicates if the recovered pipeline run is the latest in its group. + /// The pipeline name. + /// The full or partial list of parameter name, value pair used in the pipeline run. + /// Entity that started the pipeline run. + /// The last updated timestamp for the pipeline run event in ISO8601 format. + /// The start time of a pipeline run in ISO8601 format. + /// The end time of a pipeline run in ISO8601 format. + /// The duration of a pipeline run. + /// The status of a pipeline run. + /// The message from a pipeline run. + /// . + /// A new instance for mocking. + public static PipelineRun PipelineRun(string runId = default, string runGroupId = default, bool? isLatest = default, string pipelineName = default, IReadOnlyDictionary parameters = default, PipelineRunInvokedBy invokedBy = default, DateTimeOffset? lastUpdated = default, DateTimeOffset? runStart = default, DateTimeOffset? runEnd = default, int? durationInMs = default, string status = default, string message = default, IReadOnlyDictionary additionalProperties = default) + { + parameters ??= new Dictionary(); + additionalProperties ??= new Dictionary(); + return new PipelineRun(runId, runGroupId, isLatest, pipelineName, parameters, invokedBy, lastUpdated, runStart, runEnd, durationInMs, status, message, additionalProperties); + } + + /// Initializes new instance of PipelineRunInvokedBy class. + /// Name of the entity that started the pipeline run. + /// The ID of the entity that started the run. + /// The type of the entity that started the run. + /// A new instance for mocking. + public static PipelineRunInvokedBy PipelineRunInvokedBy(string name = default, string id = default, string invokedByType = default) + { + return new PipelineRunInvokedBy(name, id, invokedByType); + } + + /// Initializes new instance of ActivityRunsQueryResponse class. + /// List of activity runs. + /// The continuation token for getting the next page of results, if any remaining results exist, null otherwise. + /// A new instance for mocking. + public static ActivityRunsQueryResponse ActivityRunsQueryResponse(IReadOnlyList value = default, string continuationToken = default) + { + value ??= new List(); + return new ActivityRunsQueryResponse(value, continuationToken); + } + + /// Initializes new instance of ActivityRun class. + /// The name of the pipeline. + /// The id of the pipeline run. + /// The name of the activity. + /// The type of the activity. + /// The id of the activity run. + /// The name of the compute linked service. + /// The status of the activity run. + /// The start time of the activity run in 'ISO 8601' format. + /// The end time of the activity run in 'ISO 8601' format. + /// The duration of the activity run. + /// The input for the activity. + /// The output for the activity. + /// The error if any from the activity run. + /// . + /// A new instance for mocking. + public static ActivityRun ActivityRun(string pipelineName = default, string pipelineRunId = default, string activityName = default, string activityType = default, string activityRunId = default, string linkedServiceName = default, string status = default, DateTimeOffset? activityRunStart = default, DateTimeOffset? activityRunEnd = default, int? durationInMs = default, object input = default, object output = default, object error = default, IReadOnlyDictionary additionalProperties = default) + { + additionalProperties ??= new Dictionary(); + return new ActivityRun(pipelineName, pipelineRunId, activityName, activityType, activityRunId, linkedServiceName, status, activityRunStart, activityRunEnd, durationInMs, input, output, error, additionalProperties); + } + + /// Initializes new instance of Trigger class. + /// Trigger type. + /// Trigger description. + /// Indicates if trigger is running or not. Updated when Start/Stop APIs are called on the Trigger. + /// List of tags that can be used for describing the trigger. + /// . + /// A new instance for mocking. + public static Trigger Trigger(string type = default, string description = default, TriggerRuntimeState? runtimeState = default, IList annotations = default, IDictionary additionalProperties = default) + { + annotations ??= new List(); + additionalProperties ??= new Dictionary(); + return new Trigger(type, description, runtimeState, annotations, additionalProperties); + } + + /// Initializes new instance of TriggerSubscriptionOperationStatus class. + /// Trigger name. + /// Event Subscription Status. + /// A new instance for mocking. + public static TriggerSubscriptionOperationStatus TriggerSubscriptionOperationStatus(string triggerName = default, EventSubscriptionStatus? status = default) + { + return new TriggerSubscriptionOperationStatus(triggerName, status); + } + + /// Initializes new instance of TriggerRunsQueryResponse class. + /// List of trigger runs. + /// The continuation token for getting the next page of results, if any remaining results exist, null otherwise. + /// A new instance for mocking. + public static TriggerRunsQueryResponse TriggerRunsQueryResponse(IReadOnlyList value = default, string continuationToken = default) + { + value ??= new List(); + return new TriggerRunsQueryResponse(value, continuationToken); + } + + /// Initializes new instance of TriggerRun class. + /// Trigger run id. + /// Trigger name. + /// Trigger type. + /// Trigger run start time. + /// Trigger run status. + /// Trigger error message. + /// List of property name and value related to trigger run. Name, value pair depends on type of trigger. + /// List of pipeline name and run Id triggered by the trigger run. + /// . + /// A new instance for mocking. + public static TriggerRun TriggerRun(string triggerRunId = default, string triggerName = default, string triggerType = default, DateTimeOffset? triggerRunTimestamp = default, TriggerRunStatus? status = default, string message = default, IReadOnlyDictionary properties = default, IReadOnlyDictionary triggeredPipelines = default, IReadOnlyDictionary additionalProperties = default) + { + properties ??= new Dictionary(); + triggeredPipelines ??= new Dictionary(); + additionalProperties ??= new Dictionary(); + return new TriggerRun(triggerRunId, triggerName, triggerType, triggerRunTimestamp, status, message, properties, triggeredPipelines, additionalProperties); + } + + /// Initializes new instance of CreateDataFlowDebugSessionResponse class. + /// The ID of data flow debug session. + /// A new instance for mocking. + public static CreateDataFlowDebugSessionResponse CreateDataFlowDebugSessionResponse(string sessionId = default) + { + return new CreateDataFlowDebugSessionResponse(sessionId); + } + + /// Initializes new instance of DataFlowDebugSessionInfo class. + /// The name of the data flow. + /// Compute type of the cluster. + /// Core count of the cluster. + /// Node count of the cluster. (deprecated property). + /// Attached integration runtime name of data flow debug session. + /// The ID of data flow debug session. + /// Start time of data flow debug session. + /// Compute type of the cluster. + /// Last activity time of data flow debug session. + /// . + /// A new instance for mocking. + public static DataFlowDebugSessionInfo DataFlowDebugSessionInfo(string dataFlowName = default, string computeType = default, int? coreCount = default, int? nodeCount = default, string integrationRuntimeName = default, string sessionId = default, string startTime = default, int? timeToLiveInMinutes = default, string lastActivityTime = default, IReadOnlyDictionary additionalProperties = default) + { + additionalProperties ??= new Dictionary(); + return new DataFlowDebugSessionInfo(dataFlowName, computeType, coreCount, nodeCount, integrationRuntimeName, sessionId, startTime, timeToLiveInMinutes, lastActivityTime, additionalProperties); + } + + /// Initializes new instance of AddDataFlowToDebugSessionResponse class. + /// The ID of data flow debug job version. + /// A new instance for mocking. + public static AddDataFlowToDebugSessionResponse AddDataFlowToDebugSessionResponse(string jobVersion = default) + { + return new AddDataFlowToDebugSessionResponse(jobVersion); + } + + /// Initializes new instance of DataFlowDebugCommandResponse class. + /// The run status of data preview, statistics or expression preview. + /// The result data of data preview, statistics or expression preview. + /// A new instance for mocking. + public static DataFlowDebugCommandResponse DataFlowDebugCommandResponse(string status = default, string data = default) + { + return new DataFlowDebugCommandResponse(status, data); + } + + /// Initializes new instance of SqlScriptResource class. + /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /// The name of the resource. + /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// Resource Etag. + /// Properties of sql script. + /// A new instance for mocking. + public static SqlScriptResource SqlScriptResource(string id = default, string name = default, string type = default, string etag = default, SqlScript properties = default) + { + return new SqlScriptResource(id, name, type, etag, properties); + } + + /// Initializes new instance of SparkBatchJob class. + /// . + /// The batch name. + /// The workspace name. + /// The Spark pool name. + /// The submitter name. + /// The submitter identifier. + /// The artifact identifier. + /// The job type. + /// The Spark batch job result. + /// The scheduler information. + /// The plugin information. + /// The error information. + /// The tags. + /// The session Id. + /// The application id of this session. + /// The detailed application info. + /// The batch state. + /// The log lines. + /// A new instance for mocking. + public static SparkBatchJob SparkBatchJob(SparkBatchJobState livyInfo = default, string name = default, string workspaceName = default, string sparkPoolName = default, string submitterName = default, string submitterId = default, string artifactId = default, SparkJobType? jobType = default, SparkBatchJobResultType? result = default, SparkScheduler scheduler = default, SparkServicePlugin plugin = default, IReadOnlyList errors = default, IReadOnlyDictionary tags = default, int id = default, string appId = default, IReadOnlyDictionary appInfo = default, string state = default, IReadOnlyList logLines = default) + { + errors ??= new List(); + tags ??= new Dictionary(); + appInfo ??= new Dictionary(); + logLines ??= new List(); + return new SparkBatchJob(livyInfo, name, workspaceName, sparkPoolName, submitterName, submitterId, artifactId, jobType, result, scheduler, plugin, errors, tags, id, appId, appInfo, state, logLines); + } + + /// Initializes new instance of SparkBatchJobState class. + /// the time that at which "not_started" livy state was first seen. + /// the time that at which "starting" livy state was first seen. + /// the time that at which "running" livy state was first seen. + /// time that at which "dead" livy state was first seen. + /// the time that at which "success" livy state was first seen. + /// the time that at which "killed" livy state was first seen. + /// the time that at which "recovering" livy state was first seen. + /// the Spark job state. + /// . + /// A new instance for mocking. + public static SparkBatchJobState SparkBatchJobState(DateTimeOffset? notStartedAt = default, DateTimeOffset? startingAt = default, DateTimeOffset? runningAt = default, DateTimeOffset? deadAt = default, DateTimeOffset? successAt = default, DateTimeOffset? terminatedAt = default, DateTimeOffset? recoveringAt = default, string currentState = default, SparkRequest jobCreationRequest = default) + { + return new SparkBatchJobState(notStartedAt, startingAt, runningAt, deadAt, successAt, terminatedAt, recoveringAt, currentState, jobCreationRequest); + } + + /// Initializes new instance of SparkRequest class. + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// Dictionary of <string>. + /// . + /// . + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkRequest SparkRequest(string name = default, string file = default, string className = default, IReadOnlyList arguments = default, IReadOnlyList jars = default, IReadOnlyList pythonFiles = default, IReadOnlyList files = default, IReadOnlyList archives = default, IReadOnlyDictionary configuration = default, string driverMemory = default, int? driverCores = default, string executorMemory = default, int? executorCores = default, int? executorCount = default) + { + arguments ??= new List(); + jars ??= new List(); + pythonFiles ??= new List(); + files ??= new List(); + archives ??= new List(); + configuration ??= new Dictionary(); + return new SparkRequest(name, file, className, arguments, jars, pythonFiles, files, archives, configuration, driverMemory, driverCores, executorMemory, executorCores, executorCount); + } + + /// Initializes new instance of SparkScheduler class. + /// . + /// . + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkScheduler SparkScheduler(DateTimeOffset? submittedAt = default, DateTimeOffset? scheduledAt = default, DateTimeOffset? endedAt = default, DateTimeOffset? cancellationRequestedAt = default, SchedulerCurrentState? currentState = default) + { + return new SparkScheduler(submittedAt, scheduledAt, endedAt, cancellationRequestedAt, currentState); + } + + /// Initializes new instance of SparkServicePlugin class. + /// . + /// . + /// . + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkServicePlugin SparkServicePlugin(DateTimeOffset? preparationStartedAt = default, DateTimeOffset? resourceAcquisitionStartedAt = default, DateTimeOffset? submissionStartedAt = default, DateTimeOffset? monitoringStartedAt = default, DateTimeOffset? cleanupStartedAt = default, PluginCurrentState? currentState = default) + { + return new SparkServicePlugin(preparationStartedAt, resourceAcquisitionStartedAt, submissionStartedAt, monitoringStartedAt, cleanupStartedAt, currentState); + } + + /// Initializes new instance of SparkServiceError class. + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkServiceError SparkServiceError(string message = default, string errorCode = default, SparkErrorSource? source = default) + { + return new SparkServiceError(message, errorCode, source); + } + + /// Initializes new instance of NotebookResource class. + /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /// The name of the resource. + /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// Resource Etag. + /// Properties of Notebook. + /// A new instance for mocking. + public static NotebookResource NotebookResource(string id = default, string name = default, string type = default, string etag = default, Notebook properties = default) + { + return new NotebookResource(id, name, type, etag, properties); + } + + /// Initializes new instance of Workspace class. + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /// The name of the resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// Resource tags. + /// The geo-location where the resource lives. + /// Identity of the workspace. + /// Workspace default data lake storage account details. + /// SQL administrator login password. + /// Workspace managed resource group. The resource group name uniquely identifies the resource group within the user subscriptionId. The resource group name must be no longer than 90 characters long, and must be alphanumeric characters (Char.IsLetterOrDigit()) and '-', '_', '(', ')' and'.'. Note that the name cannot end with '.'. + /// Resource provisioning state. + /// Login for workspace SQL active directory administrator. + /// Virtual Network profile. + /// Connectivity endpoints. + /// Setting this to 'default' will ensure that all compute for this workspace is in a virtual network managed on behalf of the user. + /// Private endpoint connections to the workspace. + /// The encryption details of the workspace. + /// The workspace unique identifier. + /// Workspace level configs and feature flags. + /// Managed Virtual Network Settings. + /// Git integration settings. + /// Purview Configuration. + /// The ADLA resource ID. + /// A new instance for mocking. + public static Workspace Workspace(string id = default, string name = default, string type = default, IDictionary tags = default, string location = default, ManagedIdentity identity = default, DataLakeStorageAccountDetails defaultDataLakeStorage = default, string sqlAdministratorLoginPassword = default, string managedResourceGroupName = default, string provisioningState = default, string sqlAdministratorLogin = default, VirtualNetworkProfile virtualNetworkProfile = default, IDictionary connectivityEndpoints = default, string managedVirtualNetwork = default, IList privateEndpointConnections = default, EncryptionDetails encryption = default, Guid? workspaceUID = default, IReadOnlyDictionary extraProperties = default, ManagedVirtualNetworkSettings managedVirtualNetworkSettings = default, WorkspaceRepositoryConfiguration workspaceRepositoryConfiguration = default, PurviewConfiguration purviewConfiguration = default, string adlaResourceId = default) + { + tags ??= new Dictionary(); + connectivityEndpoints ??= new Dictionary(); + privateEndpointConnections ??= new List(); + extraProperties ??= new Dictionary(); + return new Workspace(id, name, type, tags, location, identity, defaultDataLakeStorage, sqlAdministratorLoginPassword, managedResourceGroupName, provisioningState, sqlAdministratorLogin, virtualNetworkProfile, connectivityEndpoints, managedVirtualNetwork, privateEndpointConnections, encryption, workspaceUID, extraProperties, managedVirtualNetworkSettings, workspaceRepositoryConfiguration, purviewConfiguration, adlaResourceId); + } + + /// Initializes new instance of PrivateEndpointConnection class. + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /// The name of the resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// The private endpoint which the connection belongs to. + /// Connection state of the private endpoint connection. + /// Provisioning state of the private endpoint connection. + /// A new instance for mocking. + public static PrivateEndpointConnection PrivateEndpointConnection(string id = default, string name = default, string type = default, PrivateEndpoint privateEndpoint = default, PrivateLinkServiceConnectionState privateLinkServiceConnectionState = default, string provisioningState = default) + { + return new PrivateEndpointConnection(id, name, type, privateEndpoint, privateLinkServiceConnectionState, provisioningState); + } + + /// Initializes new instance of PrivateEndpoint class. + /// Resource id of the private endpoint. + /// A new instance for mocking. + public static PrivateEndpoint PrivateEndpoint(string id = default) + { + return new PrivateEndpoint(id); + } + + /// Initializes new instance of PrivateLinkServiceConnectionState class. + /// The private link service connection status. + /// The private link service connection description. + /// The actions required for private link service connection. + /// A new instance for mocking. + public static PrivateLinkServiceConnectionState PrivateLinkServiceConnectionState(string status = default, string description = default, string actionsRequired = default) + { + return new PrivateLinkServiceConnectionState(status, description, actionsRequired); + } + + /// Initializes new instance of EncryptionDetails class. + /// Double Encryption enabled. + /// Customer Managed Key Details. + /// A new instance for mocking. + public static EncryptionDetails EncryptionDetails(bool? doubleEncryptionEnabled = default, CustomerManagedKeyDetails cmk = default) + { + return new EncryptionDetails(doubleEncryptionEnabled, cmk); + } + + /// Initializes new instance of CustomerManagedKeyDetails class. + /// The customer managed key status on the workspace. + /// The key object of the workspace. + /// A new instance for mocking. + public static CustomerManagedKeyDetails CustomerManagedKeyDetails(string status = default, WorkspaceKeyDetails key = default) + { + return new CustomerManagedKeyDetails(status, key); + } + + /// Initializes new instance of ManagedIdentity class. + /// The principal ID of the workspace managed identity. + /// The tenant ID of the workspace managed identity. + /// The type of managed identity for the workspace. + /// A new instance for mocking. + public static ManagedIdentity ManagedIdentity(string principalId = default, Guid? tenantId = default, ResourceIdentityType? type = default) + { + return new ManagedIdentity(principalId, tenantId, type); + } + + /// Initializes new instance of SqlPoolInfoListResult class. + /// Link to the next page of results. + /// List of SQL pools. + /// A new instance for mocking. + public static SqlPoolInfoListResult SqlPoolInfoListResult(string nextLink = default, IReadOnlyList value = default) + { + value ??= new List(); + return new SqlPoolInfoListResult(nextLink, value); + } + + /// Initializes new instance of BigDataPoolResourceInfoListResult class. + /// Link to the next page of results. + /// List of Big Data pools. + /// A new instance for mocking. + public static BigDataPoolResourceInfoListResult BigDataPoolResourceInfoListResult(string nextLink = default, IReadOnlyList value = default) + { + value ??= new List(); + return new BigDataPoolResourceInfoListResult(nextLink, value); + } + + /// Initializes new instance of BigDataPoolResourceInfo class. + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /// The name of the resource. + /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". + /// Resource tags. + /// The geo-location where the resource lives. + /// The state of the Big Data pool. + /// Auto-scaling properties. + /// The time when the Big Data pool was created. + /// Auto-pausing properties. + /// Whether compute isolation is required or not. + /// Whether session level packages enabled. + /// The cache size. + /// Dynamic Executor Allocation. + /// The Spark events folder. + /// The number of nodes in the Big Data pool. + /// Library version requirements. + /// List of custom libraries/packages associated with the spark pool. + /// Spark configuration file to specify additional properties. + /// The Apache Spark version. + /// The default folder where Spark logs will be written. + /// The level of compute power that each node in the Big Data pool has. + /// The kind of nodes that the Big Data pool provides. + /// The time when the Big Data pool was updated successfully. + /// A new instance for mocking. + public static BigDataPoolResourceInfo BigDataPoolResourceInfo(string id = default, string name = default, string type = default, IDictionary tags = default, string location = default, string provisioningState = default, AutoScaleProperties autoScale = default, DateTimeOffset? creationDate = default, AutoPauseProperties autoPause = default, bool? isComputeIsolationEnabled = default, bool? sessionLevelPackagesEnabled = default, int? cacheSize = default, DynamicExecutorAllocation dynamicExecutorAllocation = default, string sparkEventsFolder = default, int? nodeCount = default, LibraryRequirements libraryRequirements = default, IList customLibraries = default, LibraryRequirements sparkConfigProperties = default, string sparkVersion = default, string defaultSparkLogFolder = default, NodeSize? nodeSize = default, NodeSizeFamily? nodeSizeFamily = default, DateTimeOffset? lastSucceededTimestamp = default) + { + tags ??= new Dictionary(); + customLibraries ??= new List(); + return new BigDataPoolResourceInfo(id, name, type, tags, location, provisioningState, autoScale, creationDate, autoPause, isComputeIsolationEnabled, sessionLevelPackagesEnabled, cacheSize, dynamicExecutorAllocation, sparkEventsFolder, nodeCount, libraryRequirements, customLibraries, sparkConfigProperties, sparkVersion, defaultSparkLogFolder, nodeSize, nodeSizeFamily, lastSucceededTimestamp); + } + + /// Initializes new instance of LibraryRequirements class. + /// The last update time of the library requirements file. + /// The library requirements. + /// The filename of the library requirements file. + /// A new instance for mocking. + public static LibraryRequirements LibraryRequirements(DateTimeOffset? time = default, string content = default, string filename = default) + { + return new LibraryRequirements(time, content, filename); + } + + /// Initializes new instance of LibraryInfo class. + /// Name of the library. + /// Storage blob path of library. + /// Storage blob container name. + /// The last update time of the library. + /// Type of the library. + /// Provisioning status of the library/package. + /// Creator Id of the library/package. + /// A new instance for mocking. + public static LibraryInfo LibraryInfo(string name = default, string path = default, string containerName = default, DateTimeOffset? uploadedTimestamp = default, string type = default, string provisioningStatus = default, string creatorId = default) + { + return new LibraryInfo(name, path, containerName, uploadedTimestamp, type, provisioningStatus, creatorId); + } + + /// Initializes new instance of IntegrationRuntimeListResponse class. + /// List of integration runtimes. + /// The link to the next page of results, if any remaining results exist. + /// A new instance for mocking. + public static IntegrationRuntimeListResponse IntegrationRuntimeListResponse(IReadOnlyList value = default, string nextLink = default) + { + value ??= new List(); + return new IntegrationRuntimeListResponse(value, nextLink); + } + + /// Initializes new instance of LibraryResourceProperties class. + /// Name of the library/package. + /// Location of library/package in storage account. + /// Container name of the library/package. + /// The last update time of the library/package. + /// Type of the library/package. + /// Provisioning status of the library/package. + /// Creator Id of the library/package. + /// A new instance for mocking. + public static LibraryResourceProperties LibraryResourceProperties(string name = default, string path = default, string containerName = default, string uploadedTimestamp = default, string type = default, string provisioningStatus = default, string creatorId = default) + { + return new LibraryResourceProperties(name, path, containerName, uploadedTimestamp, type, provisioningStatus, creatorId); + } + + /// Initializes new instance of LibraryResourceInfo class. + /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /// record Id of the library/package. + /// Provisioning status of the library/package. + /// The creation time of the library/package. + /// The last updated time of the library/package. + /// The type of the resource. E.g. LibraryArtifact. + /// Name of the library/package. + /// Operation Id of the operation performed on library/package. + /// artifact Id of the library/package. + /// A new instance for mocking. + public static LibraryResourceInfo LibraryResourceInfo(string id = default, int? recordId = default, string state = default, string created = default, string changed = default, string type = default, string name = default, string operationId = default, string artifactId = default) + { + return new LibraryResourceInfo(id, recordId, state, created, changed, type, name, operationId, artifactId); + } + + /// Initializes new instance of OperationResult class. + /// Operation status. + /// Error code. + /// Error message. + /// Property name/path in request associated with error. + /// Array with additional error details. + /// A new instance for mocking. + public static OperationResult OperationResult(string status = default, string code = default, string message = default, string target = default, IReadOnlyList details = default) + { + details ??= new List(); + return new OperationResult(status, code, message, target, details); + } + + /// Initializes new instance of GitHubAccessTokenResponse class. + /// . + /// A new instance for mocking. + public static GitHubAccessTokenResponse GitHubAccessTokenResponse(string gitHubAccessToken = default) + { + return new GitHubAccessTokenResponse(gitHubAccessToken); + } + + /// Initializes new instance of WorkspaceIdentity class. + /// The identity type. Currently the only supported type is 'SystemAssigned'. + /// The principal id of the identity. + /// The client tenant id of the identity. + /// A new instance for mocking. + public static WorkspaceIdentity WorkspaceIdentity(string type = default, string principalId = default, string tenantId = default) + { + return new WorkspaceIdentity(type, principalId, tenantId); + } + + /// Initializes new instance of RerunTriggerListResponse class. + /// List of rerun triggers. + /// The continuation token for getting the next page of results, if any remaining results exist, null otherwise. + /// A new instance for mocking. + public static RerunTriggerListResponse RerunTriggerListResponse(IList value = default, string nextLink = default) + { + value ??= new List(); + return new RerunTriggerListResponse(value, nextLink); + } + + /// Initializes new instance of ExposureControlResponse class. + /// The feature name. + /// The feature value. + /// A new instance for mocking. + public static ExposureControlResponse ExposureControlResponse(string featureName = default, string value = default) + { + return new ExposureControlResponse(featureName, value); + } + + /// Initializes new instance of ManagedIntegrationRuntime class. + /// Type of integration runtime. + /// Integration runtime description. + /// . + /// Integration runtime state, only valid for managed dedicated integration runtime. + /// Managed Virtual Network reference. + /// The compute resource for managed integration runtime. + /// SSIS properties for managed integration runtime. + /// A new instance for mocking. + public static ManagedIntegrationRuntime ManagedIntegrationRuntime(IntegrationRuntimeType type = default, string description = default, IDictionary additionalProperties = default, IntegrationRuntimeState? state = default, ManagedVirtualNetworkReference managedVirtualNetwork = default, IntegrationRuntimeComputeProperties computeProperties = default, IntegrationRuntimeSsisProperties ssisProperties = default) + { + additionalProperties ??= new Dictionary(); + return new ManagedIntegrationRuntime(type, description, additionalProperties, state, managedVirtualNetwork, computeProperties, ssisProperties); + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/ManagedPrivateEndpointsModelFactory.cs b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/ManagedPrivateEndpointsModelFactory.cs new file mode 100644 index 0000000000000..7ab73e81aeede --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.ManagedPrivateEndpoints/src/Generated/ManagedPrivateEndpointsModelFactory.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using Azure.Analytics.Synapse.ManagedPrivateEndpoints.Models; + +namespace Azure.Analytics.Synapse.ManagedPrivateEndpoints +{ + /// Model factory for ManagedPrivateEndpoints read-only models. + public static partial class ManagedPrivateEndpointsModelFactory + { + /// Initializes new instance of ManagedPrivateEndpoint class. + /// Fully qualified resource Id for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. + /// The name of the resource. + /// The type of the resource. Ex- Microsoft.Compute/virtualMachines or Microsoft.Storage/storageAccounts. + /// Managed private endpoint properties. + /// A new instance for mocking. + public static ManagedPrivateEndpoint ManagedPrivateEndpoint(string id = default, string name = default, string type = default, ManagedPrivateEndpointProperties properties = default) + { + return new ManagedPrivateEndpoint(id, name, type, properties); + } + + /// Initializes new instance of ManagedPrivateEndpointProperties class. + /// The ARM resource ID of the resource to which the managed private endpoint is created. + /// The groupId to which the managed private endpoint is created. + /// The managed private endpoint provisioning state. + /// The managed private endpoint connection state. + /// Denotes whether the managed private endpoint is reserved. + /// A new instance for mocking. + public static ManagedPrivateEndpointProperties ManagedPrivateEndpointProperties(string privateLinkResourceId = default, string groupId = default, string provisioningState = default, ManagedPrivateEndpointConnectionState connectionState = default, bool? isReserved = default) + { + return new ManagedPrivateEndpointProperties(privateLinkResourceId, groupId, provisioningState, connectionState, isReserved); + } + + /// Initializes new instance of ManagedPrivateEndpointConnectionState class. + /// The approval status. + /// The managed private endpoint description. + /// The actions required on the managed private endpoint. + /// A new instance for mocking. + public static ManagedPrivateEndpointConnectionState ManagedPrivateEndpointConnectionState(string status = default, string description = default, string actionsRequired = default) + { + return new ManagedPrivateEndpointConnectionState(status, description, actionsRequired); + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/MonitoringModelFactory.cs b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/MonitoringModelFactory.cs new file mode 100644 index 0000000000000..6a7fc460e8bb0 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Monitoring/src/Generated/MonitoringModelFactory.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Analytics.Synapse.Monitoring.Models; + +namespace Azure.Analytics.Synapse.Monitoring +{ + /// Model factory for Monitoring read-only models. + public static partial class MonitoringModelFactory + { + /// Initializes new instance of SparkJobListViewResponse class. + /// . + /// . + /// A new instance for mocking. + public static SparkJobListViewResponse SparkJobListViewResponse(int? nJobs = default, IReadOnlyList sparkJobs = default) + { + sparkJobs ??= new List(); + return new SparkJobListViewResponse(nJobs, sparkJobs); + } + + /// Initializes new instance of SparkJob class. + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkJob SparkJob(string state = default, string name = default, string submitter = default, string compute = default, string sparkApplicationId = default, string livyId = default, IReadOnlyList timing = default, string sparkJobDefinition = default, IReadOnlyList pipeline = default, string jobType = default, DateTimeOffset? submitTime = default, DateTimeOffset? endTime = default, string queuedDuration = default, string runningDuration = default, string totalDuration = default) + { + timing ??= new List(); + pipeline ??= new List(); + return new SparkJob(state, name, submitter, compute, sparkApplicationId, livyId, timing, sparkJobDefinition, pipeline, jobType, submitTime, endTime, queuedDuration, runningDuration, totalDuration); + } + + /// Initializes new instance of SqlQueryStringDataModel class. + /// . + /// A new instance for mocking. + public static SqlQueryStringDataModel SqlQueryStringDataModel(string query = default) + { + return new SqlQueryStringDataModel(query); + } + } +} diff --git a/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/SparkModelFactory.cs b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/SparkModelFactory.cs new file mode 100644 index 0000000000000..46e287adcbd57 --- /dev/null +++ b/sdk/synapse/Azure.Analytics.Synapse.Spark/src/Generated/SparkModelFactory.cs @@ -0,0 +1,236 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; +using Azure.Analytics.Synapse.Spark.Models; + +namespace Azure.Analytics.Synapse.Spark +{ + /// Model factory for Spark read-only models. + public static partial class SparkModelFactory + { + /// Initializes new instance of SparkBatchJobCollection class. + /// The start index of fetched sessions. + /// Number of sessions fetched. + /// Batch list. + /// A new instance for mocking. + public static SparkBatchJobCollection SparkBatchJobCollection(int @from = default, int total = default, IReadOnlyList sessions = default) + { + sessions ??= new List(); + return new SparkBatchJobCollection(@from, total, sessions); + } + + /// Initializes new instance of SparkBatchJob class. + /// . + /// The batch name. + /// The workspace name. + /// The Spark pool name. + /// The submitter name. + /// The submitter identifier. + /// The artifact identifier. + /// The job type. + /// The Spark batch job result. + /// The scheduler information. + /// The plugin information. + /// The error information. + /// The tags. + /// The session Id. + /// The application id of this session. + /// The detailed application info. + /// The batch state. + /// The log lines. + /// A new instance for mocking. + public static SparkBatchJob SparkBatchJob(SparkBatchJobState livyInfo = default, string name = default, string workspaceName = default, string sparkPoolName = default, string submitterName = default, string submitterId = default, string artifactId = default, SparkJobType? jobType = default, SparkBatchJobResultType? result = default, SparkScheduler scheduler = default, SparkServicePlugin plugin = default, IReadOnlyList errors = default, IReadOnlyDictionary tags = default, int id = default, string appId = default, IReadOnlyDictionary appInfo = default, string state = default, IReadOnlyList logLines = default) + { + errors ??= new List(); + tags ??= new Dictionary(); + appInfo ??= new Dictionary(); + logLines ??= new List(); + return new SparkBatchJob(livyInfo, name, workspaceName, sparkPoolName, submitterName, submitterId, artifactId, jobType, result, scheduler, plugin, errors, tags, id, appId, appInfo, state, logLines); + } + + /// Initializes new instance of SparkBatchJobState class. + /// the time that at which "not_started" livy state was first seen. + /// the time that at which "starting" livy state was first seen. + /// the time that at which "running" livy state was first seen. + /// time that at which "dead" livy state was first seen. + /// the time that at which "success" livy state was first seen. + /// the time that at which "killed" livy state was first seen. + /// the time that at which "recovering" livy state was first seen. + /// the Spark job state. + /// . + /// A new instance for mocking. + public static SparkBatchJobState SparkBatchJobState(DateTimeOffset? notStartedAt = default, DateTimeOffset? startingAt = default, DateTimeOffset? runningAt = default, DateTimeOffset? deadAt = default, DateTimeOffset? successAt = default, DateTimeOffset? terminatedAt = default, DateTimeOffset? recoveringAt = default, string currentState = default, SparkRequest jobCreationRequest = default) + { + return new SparkBatchJobState(notStartedAt, startingAt, runningAt, deadAt, successAt, terminatedAt, recoveringAt, currentState, jobCreationRequest); + } + + /// Initializes new instance of SparkRequest class. + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// Dictionary of <string>. + /// . + /// . + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkRequest SparkRequest(string name = default, string file = default, string className = default, IReadOnlyList arguments = default, IReadOnlyList jars = default, IReadOnlyList pythonFiles = default, IReadOnlyList files = default, IReadOnlyList archives = default, IReadOnlyDictionary configuration = default, string driverMemory = default, int? driverCores = default, string executorMemory = default, int? executorCores = default, int? executorCount = default) + { + arguments ??= new List(); + jars ??= new List(); + pythonFiles ??= new List(); + files ??= new List(); + archives ??= new List(); + configuration ??= new Dictionary(); + return new SparkRequest(name, file, className, arguments, jars, pythonFiles, files, archives, configuration, driverMemory, driverCores, executorMemory, executorCores, executorCount); + } + + /// Initializes new instance of SparkScheduler class. + /// . + /// . + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkScheduler SparkScheduler(DateTimeOffset? submittedAt = default, DateTimeOffset? scheduledAt = default, DateTimeOffset? endedAt = default, DateTimeOffset? cancellationRequestedAt = default, SchedulerCurrentState? currentState = default) + { + return new SparkScheduler(submittedAt, scheduledAt, endedAt, cancellationRequestedAt, currentState); + } + + /// Initializes new instance of SparkServicePlugin class. + /// . + /// . + /// . + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkServicePlugin SparkServicePlugin(DateTimeOffset? preparationStartedAt = default, DateTimeOffset? resourceAcquisitionStartedAt = default, DateTimeOffset? submissionStartedAt = default, DateTimeOffset? monitoringStartedAt = default, DateTimeOffset? cleanupStartedAt = default, PluginCurrentState? currentState = default) + { + return new SparkServicePlugin(preparationStartedAt, resourceAcquisitionStartedAt, submissionStartedAt, monitoringStartedAt, cleanupStartedAt, currentState); + } + + /// Initializes new instance of SparkServiceError class. + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkServiceError SparkServiceError(string message = default, string errorCode = default, SparkErrorSource? source = default) + { + return new SparkServiceError(message, errorCode, source); + } + + /// Initializes new instance of SparkSessionCollection class. + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkSessionCollection SparkSessionCollection(int @from = default, int total = default, IReadOnlyList sessions = default) + { + sessions ??= new List(); + return new SparkSessionCollection(@from, total, sessions); + } + + /// Initializes new instance of SparkSession class. + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// The job type. + /// . + /// . + /// . + /// . + /// Dictionary of <string>. + /// . + /// . + /// Dictionary of <string>. + /// . + /// . + /// A new instance for mocking. + public static SparkSession SparkSession(SparkSessionState livyInfo = default, string name = default, string workspaceName = default, string sparkPoolName = default, string submitterName = default, string submitterId = default, string artifactId = default, SparkJobType? jobType = default, SparkSessionResultType? result = default, SparkScheduler scheduler = default, SparkServicePlugin plugin = default, IReadOnlyList errors = default, IReadOnlyDictionary tags = default, int id = default, string appId = default, IReadOnlyDictionary appInfo = default, string state = default, IReadOnlyList logLines = default) + { + errors ??= new List(); + tags ??= new Dictionary(); + appInfo ??= new Dictionary(); + logLines ??= new List(); + return new SparkSession(livyInfo, name, workspaceName, sparkPoolName, submitterName, submitterId, artifactId, jobType, result, scheduler, plugin, errors, tags, id, appId, appInfo, state, logLines); + } + + /// Initializes new instance of SparkSessionState class. + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkSessionState SparkSessionState(DateTimeOffset? notStartedAt = default, DateTimeOffset? startingAt = default, DateTimeOffset? idleAt = default, DateTimeOffset? deadAt = default, DateTimeOffset? shuttingDownAt = default, DateTimeOffset? terminatedAt = default, DateTimeOffset? recoveringAt = default, DateTimeOffset? busyAt = default, DateTimeOffset? errorAt = default, string currentState = default, SparkRequest jobCreationRequest = default) + { + return new SparkSessionState(notStartedAt, startingAt, idleAt, deadAt, shuttingDownAt, terminatedAt, recoveringAt, busyAt, errorAt, currentState, jobCreationRequest); + } + + /// Initializes new instance of SparkStatementCollection class. + /// . + /// . + /// A new instance for mocking. + public static SparkStatementCollection SparkStatementCollection(int total = default, IReadOnlyList statements = default) + { + statements ??= new List(); + return new SparkStatementCollection(total, statements); + } + + /// Initializes new instance of SparkStatement class. + /// . + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkStatement SparkStatement(int id = default, string code = default, string state = default, SparkStatementOutput output = default) + { + return new SparkStatement(id, code, state, output); + } + + /// Initializes new instance of SparkStatementOutput class. + /// . + /// . + /// Any object. + /// . + /// . + /// . + /// A new instance for mocking. + public static SparkStatementOutput SparkStatementOutput(string status = default, int executionCount = default, object data = default, string errorName = default, string errorValue = default, IReadOnlyList traceback = default) + { + traceback ??= new List(); + return new SparkStatementOutput(status, executionCount, data, errorName, errorValue, traceback); + } + + /// Initializes new instance of SparkStatementCancellationResult class. + /// The msg property from the Livy API. The value is always "canceled". + /// A new instance for mocking. + public static SparkStatementCancellationResult SparkStatementCancellationResult(string message = default) + { + return new SparkStatementCancellationResult(message); + } + } +} diff --git a/sdk/tables/Azure.Data.Tables/src/Generated/AzureDataTablesModelFactory.cs b/sdk/tables/Azure.Data.Tables/src/Generated/AzureDataTablesModelFactory.cs new file mode 100644 index 0000000000000..9ca77344a40ad --- /dev/null +++ b/sdk/tables/Azure.Data.Tables/src/Generated/AzureDataTablesModelFactory.cs @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Data.Tables.Models; + +namespace Azure.Data.Tables +{ + /// Model factory for AzureDataTables read-only models. + public static partial class AzureDataTablesModelFactory + { + /// 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. + public static TableServiceStatistics TableServiceStatistics(TableGeoReplicationInfo geoReplication = default) + { + return new TableServiceStatistics(geoReplication); + } + + /// Initializes new instance of TableGeoReplicationInfo class. + /// The status of the secondary location. + /// A GMT date/time value, to the second. All primary writes preceding this value are guaranteed to be available for read operations at the secondary. Primary writes after this point in time may or may not be available for reads. + /// A new instance for mocking. + public static TableGeoReplicationInfo TableGeoReplicationInfo(TableGeoReplicationStatus status = default, DateTimeOffset lastSyncedOn = default) + { + return new TableGeoReplicationInfo(status, lastSyncedOn); + } + } +} diff --git a/sdk/template/Azure.Template/src/Generated/TemplateModelFactory.cs b/sdk/template/Azure.Template/src/Generated/TemplateModelFactory.cs new file mode 100644 index 0000000000000..84c2eaa86cd04 --- /dev/null +++ b/sdk/template/Azure.Template/src/Generated/TemplateModelFactory.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Template.Models; + +namespace Azure.Template +{ + /// Model factory for Template read-only models. + public static partial class TemplateModelFactory + { + /// Initializes new instance of SecretBundle class. + /// The secret value. + /// The secret id. + /// The content type of the secret. + /// Application specific metadata in the form of key-value pairs. + /// If this is a secret backing a KV certificate, then this field specifies the corresponding key backing the KV certificate. + /// True if the secret's lifetime is managed by key vault. If this is a secret backing a certificate, then managed will be true. + /// A new instance for mocking. + public static SecretBundle SecretBundle(string value = default, string id = default, string contentType = default, IReadOnlyDictionary tags = default, string kid = default, bool? managed = default) + { + tags ??= new Dictionary(); + return new SecretBundle(value, id, contentType, tags, kid, managed); + } + } +} diff --git a/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/TextAnalyticsModelFactory.cs b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/TextAnalyticsModelFactory.cs new file mode 100644 index 0000000000000..ba4546a5872db --- /dev/null +++ b/sdk/textanalytics/Azure.AI.TextAnalytics/src/Generated/TextAnalyticsModelFactory.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.AI.TextAnalytics +{ + /// Model factory for TextAnalytics read-only models. + public static partial class TextAnalyticsModelFactory + { + + /// Initializes new instance of LinkedEntity structure. + /// Entity Linking formal name. + /// List of instances this entity appears in the text. + /// Language used in the data source. + /// Unique identifier of the recognized entity from the data source. + /// URL for the entity's page from the data source. + /// Data source used to extract entity linking, such as Wiki/Bing etc. + /// Bing Entity Search API unique identifier of the recognized entity. + /// A new instance for mocking. + public static LinkedEntity LinkedEntity(string name = default, IEnumerable matches = default, string language = default, string dataSourceEntityId = default, Uri url = default, string dataSource = default, string bingEntitySearchApiId = default) + { + matches ??= new List(); + return new LinkedEntity(name, matches, language, dataSourceEntityId, url, dataSource, bingEntitySearchApiId); + } + + /// Initializes new instance of LinkedEntityMatch structure. + /// If a well known item is recognized, a decimal number denoting the confidence level between 0 and 1 will be returned. + /// Entity text as appears in the request. + /// Start position for the entity match text. + /// Length for the entity match text. + /// A new instance for mocking. + public static LinkedEntityMatch LinkedEntityMatch(double confidenceScore = default, string text = default, int offset = default, int length = default) + { + return new LinkedEntityMatch(confidenceScore, text, offset, length); + } + + /// Initializes new instance of HealthcareEntityAssertion class. + /// Describes any conditionality on the entity. + /// Describes the entities certainty and polarity. + /// Describes if the entity is the subject of the text or if it describes someone else. + /// A new instance for mocking. + public static HealthcareEntityAssertion HealthcareEntityAssertion(EntityConditionality? conditionality = default, EntityCertainty? certainty = default, EntityAssociation? association = default) + { + return new HealthcareEntityAssertion(conditionality, certainty, association); + } + + /// Initializes new instance of EntityDataSource class. + /// Entity Catalog. Examples include: UMLS, CHV, MSH, etc. + /// Entity id in the given source catalog. + /// A new instance for mocking. + public static EntityDataSource EntityDataSource(string name = default, string entityId = default) + { + return new EntityDataSource(name, entityId); + } + } +} diff --git a/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/TimeSeriesInsightsModelFactory.cs b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/TimeSeriesInsightsModelFactory.cs new file mode 100644 index 0000000000000..361a7b4aa6a00 --- /dev/null +++ b/sdk/timeseriesinsights/Azure.IoT.TimeSeriesInsights/src/Generated/TimeSeriesInsightsModelFactory.cs @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; + +namespace Azure.IoT.TimeSeriesInsights +{ + /// Model factory for TimeSeriesInsights read-only models. + public static partial class TimeSeriesInsightsModelFactory + { + /// Initializes new instance of TimeSeriesOperationError class. + /// Language-independent, human-readable string that defines a service-specific error code. This code serves as a more specific indicator for the HTTP error code specified in the response. Can be used to programmatically handle specific error cases. + /// Human-readable, language-independent representation of the error. It is intended as an aid to developers and is not suitable for exposure to end users. + /// Target of the particular error (for example, the name of the property in error). May be null. + /// Contains more specific error that narrows down the cause. May be null. + /// Contains additional error information. May be null. + /// . + /// A new instance for mocking. + public static TimeSeriesOperationError TimeSeriesOperationError(string code = default, string message = default, string target = default, TimeSeriesOperationError innerError = default, IReadOnlyList details = default, IReadOnlyDictionary additionalProperties = default) + { + details ??= new List(); + additionalProperties ??= new Dictionary(); + return new TimeSeriesOperationError(code, message, target, innerError, details, additionalProperties); + } + + /// Initializes new instance of TimeSeriesOperationErrorDetails class. + /// Language-independent, human-readable string that defines a service-specific error code. This code serves as a more specific indicator for the HTTP error code specified in the response. Can be used to programmatically handle specific error cases. + /// Human-readable, language-independent representation of the error. It is intended as an aid to developers and is not suitable for exposure to end users. + /// . + /// A new instance for mocking. + public static TimeSeriesOperationErrorDetails TimeSeriesOperationErrorDetails(string code = default, string message = default, IReadOnlyDictionary additionalProperties = default) + { + additionalProperties ??= new Dictionary(); + return new TimeSeriesOperationErrorDetails(code, message, additionalProperties); + } + + /// Initializes new instance of TimeSeriesModelSettings class. + /// Time series model display name which is shown in the UX. Examples: "Temperature Sensors", "MyDevices". + /// Time series ID properties defined during environment creation. + /// Default type ID of the model that new time series instances will automatically belong to. + /// A new instance for mocking. + public static TimeSeriesModelSettings TimeSeriesModelSettings(string name = default, IReadOnlyList timeSeriesIdProperties = default, string defaultTypeId = default) + { + timeSeriesIdProperties ??= new List(); + return new TimeSeriesModelSettings(name, timeSeriesIdProperties, defaultTypeId); + } + + /// Initializes new instance of TimeSeriesIdProperty class. + /// The name of the property. + /// The type of the property. Currently, only "String" is supported. + /// A new instance for mocking. + public static TimeSeriesIdProperty TimeSeriesIdProperty(string name = default, TimeSeriesIdPropertyType? type = default) + { + return new TimeSeriesIdProperty(name, type); + } + + /// Initializes new instance of InstancesOperationResult class. + /// Time series instance object - set when the operation is successful (except put operation). + /// Error object - set when the operation is unsuccessful. + /// A new instance for mocking. + public static InstancesOperationResult InstancesOperationResult(TimeSeriesInstance instance = default, TimeSeriesOperationError error = default) + { + return new InstancesOperationResult(instance, error); + } + + /// Initializes new instance of TimeSeriesTypeOperationResult class. + /// Time series type object - set when the operation is successful. + /// Error object - set when the operation is unsuccessful. + /// A new instance for mocking. + public static TimeSeriesTypeOperationResult TimeSeriesTypeOperationResult(TimeSeriesType timeSeriesType = default, TimeSeriesOperationError error = default) + { + return new TimeSeriesTypeOperationResult(timeSeriesType, error); + } + + /// Initializes new instance of TimeSeriesHierarchyOperationResult class. + /// Time series hierarchy object - set when the operation is successful. + /// Error object - set when the operation is unsuccessful. + /// A new instance for mocking. + public static TimeSeriesHierarchyOperationResult TimeSeriesHierarchyOperationResult(TimeSeriesHierarchy hierarchy = default, TimeSeriesOperationError error = default) + { + return new TimeSeriesHierarchyOperationResult(hierarchy, error); + } + } +} diff --git a/sdk/translation/Azure.AI.Translation.Document/src/Generated/BatchDocumentTranslationModelFactory.cs b/sdk/translation/Azure.AI.Translation.Document/src/Generated/BatchDocumentTranslationModelFactory.cs new file mode 100644 index 0000000000000..7ebe34ffea0e1 --- /dev/null +++ b/sdk/translation/Azure.AI.Translation.Document/src/Generated/BatchDocumentTranslationModelFactory.cs @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Collections.Generic; + +namespace Azure.AI.Translation.Document +{ + /// Model factory for BatchDocumentTranslation read-only models. + public static partial class BatchDocumentTranslationModelFactory + { + /// Initializes new instance of DocumentStatusResult 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 DocumentStatusResult DocumentStatusResult(Uri translatedDocumentUri = default, Uri sourceDocumentUri = default, DateTimeOffset createdOn = default, DateTimeOffset lastModified = default, TranslationStatus status = default, string translateTo = default, DocumentTranslationError error = default, float progress = default, string documentId = default, long charactersCharged = default) + { + return new DocumentStatusResult(translatedDocumentUri, sourceDocumentUri, createdOn, lastModified, status, translateTo, error, progress, documentId, charactersCharged); + } + + /// Initializes new instance of FileFormat class. + /// Name of the format. + /// Supported file extension for this format. + /// Supported Content-Types for this format. + /// Default version if none is specified. + /// Supported Version. + /// A new instance for mocking. + public static FileFormat FileFormat(string format = default, IReadOnlyList fileExtensions = default, IReadOnlyList contentTypes = default, string defaultFormatVersion = default, IReadOnlyList formatVersions = default) + { + fileExtensions ??= new List(); + contentTypes ??= new List(); + formatVersions ??= new List(); + return new FileFormat(format, fileExtensions, contentTypes, defaultFormatVersion, formatVersions); + } + } +}