diff --git a/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs b/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs index 11c0f5b978c3e..6e605b438817b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/api/Azure.ResourceManager.Automation.netstandard2.0.cs @@ -21,14 +21,14 @@ public AutomationAccountData(Azure.Core.AzureLocation location) : base (default( public System.Uri AutomationHybridServiceUri { get { throw null; } set { } } public System.DateTimeOffset? CreatedOn { get { throw null; } } public string Description { get { throw null; } set { } } - public bool? DisableLocalAuth { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.EncryptionProperties Encryption { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationEncryptionProperties Encryption { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } set { } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public bool? IsLocalAuthDisabled { get { throw null; } set { } } + public bool? IsPublicNetworkAccessAllowed { get { throw null; } set { } } public string LastModifiedBy { get { throw null; } set { } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } } public System.Collections.Generic.IList PrivateEndpointConnections { get { throw null; } } - public bool? PublicNetworkAccess { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationSku Sku { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationAccountState? State { get { throw null; } } } @@ -51,7 +51,7 @@ public partial class AutomationAccountModuleResource : Azure.ResourceManager.Arm { public static readonly Azure.Core.ResourceType ResourceType; protected AutomationAccountModuleResource() { } - public virtual Azure.ResourceManager.Automation.ModuleData Data { get { throw null; } } + public virtual Azure.ResourceManager.Automation.AutomationModuleData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -59,15 +59,15 @@ protected AutomationAccountModuleResource() { } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetActivities(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetActivitiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetActivity(string activityName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetActivityAsync(string activityName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetActivities(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetActivitiesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetActivity(string activityName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetActivityAsync(string activityName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetFieldsByModuleAndTypeObjectDataTypes(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetFieldsByModuleAndTypeObjectDataTypesAsync(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetFieldsByType(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetFieldsByTypeAsync(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetFieldsByModuleAndType(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetFieldsByModuleAndTypeAsync(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetFieldsByType(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetFieldsByTypeAsync(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -94,7 +94,7 @@ public partial class AutomationAccountPython2PackageResource : Azure.ResourceMan { public static readonly Azure.Core.ResourceType ResourceType; protected AutomationAccountPython2PackageResource() { } - public virtual Azure.ResourceManager.Automation.ModuleData Data { get { throw null; } } + public virtual Azure.ResourceManager.Automation.AutomationModuleData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -130,41 +130,61 @@ protected AutomationAccountResource() { } public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetAgentRegistrationInformation(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAgentRegistrationInformationAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAllNodeCountInformation(Azure.ResourceManager.Automation.Models.CountType countType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllNodeCountInformationAsync(Azure.ResourceManager.Automation.Models.CountType countType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAllNodeCountInformation(Azure.ResourceManager.Automation.Models.AutomationCountType countType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllNodeCountInformationAsync(Azure.ResourceManager.Automation.Models.AutomationCountType countType, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAutomationAccountKeys(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAutomationAccountKeysAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetAutomationAccountModule(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationAccountModuleAsync(string moduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountModuleCollection GetAutomationAccountModules() { throw null; } public virtual Azure.Response GetAutomationAccountPython2Package(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationAccountPython2PackageAsync(string packageName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationAccountPython2PackageCollection GetAutomationAccountPython2Packages() { throw null; } + public virtual Azure.Response GetAutomationCertificate(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationCertificateAsync(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationCertificateCollection GetAutomationCertificates() { throw null; } + public virtual Azure.Response GetAutomationConnection(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationConnectionAsync(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationConnectionCollection GetAutomationConnections() { throw null; } + public virtual Azure.Response GetAutomationConnectionType(string connectionTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationConnectionTypeAsync(string connectionTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationConnectionTypeCollection GetAutomationConnectionTypes() { throw null; } + public virtual Azure.Response GetAutomationCredential(string credentialName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationCredentialAsync(string credentialName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationCredentialCollection GetAutomationCredentials() { throw null; } + public virtual Azure.Response GetAutomationJob(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationJobAsync(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationJobCollection GetAutomationJobs() { throw null; } + public virtual Azure.Response GetAutomationJobSchedule(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationJobScheduleAsync(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationJobScheduleCollection GetAutomationJobSchedules() { throw null; } public virtual Azure.Response GetAutomationPrivateEndpointConnection(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetAutomationPrivateEndpointConnectionAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionCollection GetAutomationPrivateEndpointConnections() { throw null; } - public virtual Azure.Response GetByAutomationAccountKey(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetByAutomationAccountKeyAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetByIdSoftwareUpdateConfigurationMachineRun(System.Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetByIdSoftwareUpdateConfigurationMachineRunAsync(System.Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetByIdSoftwareUpdateConfigurationRun(System.Guid softwareUpdateConfigurationRunId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetByIdSoftwareUpdateConfigurationRunAsync(System.Guid softwareUpdateConfigurationRunId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetCertificate(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetCertificateAsync(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.CertificateCollection GetCertificates() { throw null; } - public virtual Azure.Response GetConnection(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetConnectionAsync(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.ConnectionCollection GetConnections() { throw null; } - public virtual Azure.Response GetConnectionType(string connectionTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetConnectionTypeAsync(string connectionTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.ConnectionTypeCollection GetConnectionTypes() { throw null; } - public virtual Azure.Response GetCredential(string credentialName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetCredentialAsync(string credentialName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.CredentialCollection GetCredentials() { throw null; } + public virtual Azure.Response GetAutomationRunbook(string runbookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationRunbookAsync(string runbookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationRunbookCollection GetAutomationRunbooks() { throw null; } + public virtual Azure.Response GetAutomationSchedule(string scheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationScheduleAsync(string scheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationScheduleCollection GetAutomationSchedules() { throw null; } + public virtual Azure.Response GetAutomationSourceControl(string sourceControlName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationSourceControlAsync(string sourceControlName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationSourceControlCollection GetAutomationSourceControls() { throw null; } + public virtual Azure.Response GetAutomationVariable(string variableName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationVariableAsync(string variableName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationVariableCollection GetAutomationVariables() { throw null; } + public virtual Azure.Response GetAutomationWatcher(string watcherName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationWatcherAsync(string watcherName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationWatcherCollection GetAutomationWatchers() { throw null; } + public virtual Azure.Response GetAutomationWebhook(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAutomationWebhookAsync(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.AutomationWebhookCollection GetAutomationWebhooks() { throw null; } public virtual Azure.Response GetDscCompilationJob(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDscCompilationJobAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.DscCompilationJobCollection GetDscCompilationJobs() { throw null; } - public virtual Azure.Pageable GetDscCompilationJobStreamsByJob(System.Guid jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetDscCompilationJobStreamsByJobAsync(System.Guid jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetDscCompilationJobStreams(System.Guid jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetDscCompilationJobStreamsAsync(System.Guid jobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetDscConfiguration(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetDscConfigurationAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.DscConfigurationCollection GetDscConfigurations() { throw null; } @@ -174,52 +194,32 @@ protected AutomationAccountResource() { } public virtual System.Threading.Tasks.Task> GetDscNodeConfigurationAsync(string nodeConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.DscNodeConfigurationCollection GetDscNodeConfigurations() { throw null; } public virtual Azure.ResourceManager.Automation.DscNodeCollection GetDscNodes() { throw null; } - public virtual Azure.Pageable GetFieldsByTypeObjectDataTypes(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetFieldsByTypeObjectDataTypesAsync(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetFieldsByType(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetFieldsByTypeAsync(string typeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetHybridRunbookWorkerGroup(string hybridRunbookWorkerGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetHybridRunbookWorkerGroupAsync(string hybridRunbookWorkerGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerGroupCollection GetHybridRunbookWorkerGroups() { throw null; } - public virtual Azure.Response GetJob(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetJobAsync(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.JobCollection GetJobs() { throw null; } - public virtual Azure.Response GetJobSchedule(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetJobScheduleAsync(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.JobScheduleCollection GetJobSchedules() { throw null; } - public virtual Azure.Response GetLinkedWorkspace(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetLinkedWorkspaceAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRunbook(string runbookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRunbookAsync(string runbookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.RunbookCollection GetRunbooks() { throw null; } - public virtual Azure.Response GetSchedule(string scheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetScheduleAsync(string scheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.ScheduleCollection GetSchedules() { throw null; } + public virtual Azure.Response GetLinkedWorkspace(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetLinkedWorkspaceAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetSoftwareUpdateConfiguration(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetSoftwareUpdateConfigurationAsync(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetSoftwareUpdateConfigurationMachineRun(System.Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSoftwareUpdateConfigurationMachineRunAsync(System.Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetSoftwareUpdateConfigurationMachineRuns(string clientRequestId = null, string filter = null, string skip = null, string top = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetSoftwareUpdateConfigurationMachineRunsAsync(string clientRequestId = null, string filter = null, string skip = null, string top = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetSoftwareUpdateConfigurationRun(System.Guid softwareUpdateConfigurationRunId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSoftwareUpdateConfigurationRunAsync(System.Guid softwareUpdateConfigurationRunId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetSoftwareUpdateConfigurationRuns(string clientRequestId = null, string filter = null, string skip = null, string top = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetSoftwareUpdateConfigurationRunsAsync(string clientRequestId = null, string filter = null, string skip = null, string top = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.Automation.SoftwareUpdateConfigurationCollection GetSoftwareUpdateConfigurations() { throw null; } - public virtual Azure.Response GetSourceControl(string sourceControlName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetSourceControlAsync(string sourceControlName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.SourceControlCollection GetSourceControls() { throw null; } - public virtual Azure.Pageable GetStatistics(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetStatisticsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetStreamDscCompilationJob(System.Guid jobId, string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetStreamDscCompilationJobAsync(System.Guid jobId, string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetStatistics(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetStatisticsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetStreamDscCompilationJob(System.Guid jobId, string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetStreamDscCompilationJobAsync(System.Guid jobId, string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Pageable GetUsages(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.AsyncPageable GetUsagesAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetVariable(string variableName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetVariableAsync(string variableName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.VariableCollection GetVariables() { throw null; } - public virtual Azure.Response GetWatcher(string watcherName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWatcherAsync(string watcherName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.WatcherCollection GetWatchers() { throw null; } - public virtual Azure.Response GetWebhook(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetWebhookAsync(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.WebhookCollection GetWebhooks() { throw null; } - public virtual Azure.Response RegenerateKeyAgentRegistrationInformation(Azure.ResourceManager.Automation.Models.AgentRegistrationRegenerateKeyParameter agentRegistrationRegenerateKeyParameter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RegenerateKeyAgentRegistrationInformationAsync(Azure.ResourceManager.Automation.Models.AgentRegistrationRegenerateKeyParameter agentRegistrationRegenerateKeyParameter, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RegenerateKeyAgentRegistrationInformation(Azure.ResourceManager.Automation.Models.AgentRegistrationRegenerateKeyContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RegenerateKeyAgentRegistrationInformationAsync(Azure.ResourceManager.Automation.Models.AgentRegistrationRegenerateKeyContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } @@ -227,880 +227,576 @@ protected AutomationAccountResource() { } public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationAccountPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationAccountPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public static partial class AutomationExtensions - { - public static Azure.Response GetAutomationAccount(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string automationAccountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static System.Threading.Tasks.Task> GetAutomationAccountAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string automationAccountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Automation.AutomationAccountModuleResource GetAutomationAccountModuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.AutomationAccountResource GetAutomationAccountResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.AutomationAccountCollection GetAutomationAccounts(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } - public static Azure.Pageable GetAutomationAccounts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetAutomationAccountsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionResource GetAutomationPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.CertificateResource GetCertificateResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.ConnectionResource GetConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.ConnectionTypeResource GetConnectionTypeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.CredentialResource GetCredentialResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.Pageable GetDeletedAutomationAccountsBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.ResourceManager.Automation.DscCompilationJobResource GetDscCompilationJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.DscConfigurationResource GetDscConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.DscNodeConfigurationResource GetDscNodeConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.DscNodeResource GetDscNodeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.HybridRunbookWorkerResource GetHybridRunbookWorkerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.JobResource GetJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.JobScheduleResource GetJobScheduleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.RunbookResource GetRunbookResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.ScheduleResource GetScheduleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.SourceControlResource GetSourceControlResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.VariableResource GetVariableResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.WatcherResource GetWatcherResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - public static Azure.ResourceManager.Automation.WebhookResource GetWebhookResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } - } - public partial class AutomationPrivateEndpointConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected AutomationPrivateEndpointConnectionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class AutomationPrivateEndpointConnectionData : Azure.ResourceManager.Models.ResourceData - { - public AutomationPrivateEndpointConnectionData() { } - public Azure.ResourceManager.Automation.Models.AutomationPrivateLinkServiceConnectionStateProperty ConnectionState { get { throw null; } set { } } - public System.Collections.Generic.IList GroupIds { get { throw null; } } - public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } set { } } - } - public partial class AutomationPrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected AutomationPrivateEndpointConnectionResource() { } - public virtual Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string privateEndpointConnectionName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class CertificateCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomationCertificateCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected CertificateCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string certificateName, Azure.ResourceManager.Automation.Models.CertificateCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string certificateName, Azure.ResourceManager.Automation.Models.CertificateCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected AutomationCertificateCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string certificateName, Azure.ResourceManager.Automation.Models.AutomationCertificateCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string certificateName, Azure.ResourceManager.Automation.Models.AutomationCertificateCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string certificateName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class CertificateData : Azure.ResourceManager.Models.ResourceData + public partial class AutomationCertificateData : Azure.ResourceManager.Models.ResourceData { - public CertificateData() { } + public AutomationCertificateData() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public string Description { get { throw null; } set { } } - public System.DateTimeOffset? ExpiryOn { get { throw null; } } + public System.DateTimeOffset? ExpireOn { get { throw null; } } public bool? IsExportable { get { throw null; } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } } - public string Thumbprint { get { throw null; } } + public System.BinaryData Thumbprint { get { throw null; } } } - public partial class CertificateResource : Azure.ResourceManager.ArmResource + public partial class AutomationCertificateResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected CertificateResource() { } - public virtual Azure.ResourceManager.Automation.CertificateData Data { get { throw null; } } + protected AutomationCertificateResource() { } + public virtual Azure.ResourceManager.Automation.AutomationCertificateData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.CertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.CertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationCertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationCertificatePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class ConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomationConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected ConnectionCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string connectionName, Azure.ResourceManager.Automation.Models.ConnectionCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string connectionName, Azure.ResourceManager.Automation.Models.ConnectionCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected AutomationConnectionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string connectionName, Azure.ResourceManager.Automation.Models.AutomationConnectionCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string connectionName, Azure.ResourceManager.Automation.Models.AutomationConnectionCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string connectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class ConnectionData : Azure.ResourceManager.Models.ResourceData + public partial class AutomationConnectionData : Azure.ResourceManager.Models.ResourceData { - public ConnectionData() { } + public AutomationConnectionData() { } public string ConnectionTypeName { get { throw null; } set { } } public System.DateTimeOffset? CreatedOn { get { throw null; } } public string Description { get { throw null; } set { } } public System.Collections.Generic.IReadOnlyDictionary FieldDefinitionValues { get { throw null; } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } } } - public partial class ConnectionResource : Azure.ResourceManager.ArmResource + public partial class AutomationConnectionResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected ConnectionResource() { } - public virtual Azure.ResourceManager.Automation.ConnectionData Data { get { throw null; } } + protected AutomationConnectionResource() { } + public virtual Azure.ResourceManager.Automation.AutomationConnectionData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.ConnectionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.ConnectionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationConnectionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationConnectionPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class ConnectionTypeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomationConnectionTypeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected ConnectionTypeCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string connectionTypeName, Azure.ResourceManager.Automation.Models.ConnectionTypeCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string connectionTypeName, Azure.ResourceManager.Automation.Models.ConnectionTypeCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected AutomationConnectionTypeCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string connectionTypeName, Azure.ResourceManager.Automation.Models.AutomationConnectionTypeCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string connectionTypeName, Azure.ResourceManager.Automation.Models.AutomationConnectionTypeCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string connectionTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string connectionTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string connectionTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string connectionTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string connectionTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string connectionTypeName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class ConnectionTypeData : Azure.ResourceManager.Models.ResourceData + public partial class AutomationConnectionTypeData : Azure.ResourceManager.Models.ResourceData { - internal ConnectionTypeData() { } + internal AutomationConnectionTypeData() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public string Description { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary FieldDefinitions { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary FieldDefinitions { get { throw null; } } public bool? IsGlobal { get { throw null; } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } } } - public partial class ConnectionTypeResource : Azure.ResourceManager.ArmResource + public partial class AutomationConnectionTypeResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected ConnectionTypeResource() { } - public virtual Azure.ResourceManager.Automation.ConnectionTypeData Data { get { throw null; } } + protected AutomationConnectionTypeResource() { } + public virtual Azure.ResourceManager.Automation.AutomationConnectionTypeData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.ConnectionTypeCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.ConnectionTypeCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.AutomationConnectionTypeCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.AutomationConnectionTypeCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class CredentialCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomationCredentialCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected CredentialCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string credentialName, Azure.ResourceManager.Automation.Models.CredentialCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string credentialName, Azure.ResourceManager.Automation.Models.CredentialCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected AutomationCredentialCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string credentialName, Azure.ResourceManager.Automation.Models.AutomationCredentialCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string credentialName, Azure.ResourceManager.Automation.Models.AutomationCredentialCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string credentialName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string credentialName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string credentialName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string credentialName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string credentialName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string credentialName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class CredentialData : Azure.ResourceManager.Models.ResourceData + public partial class AutomationCredentialData : Azure.ResourceManager.Models.ResourceData { - public CredentialData() { } + public AutomationCredentialData() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public string Description { get { throw null; } set { } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } } public string UserName { get { throw null; } } } - public partial class CredentialResource : Azure.ResourceManager.ArmResource + public partial class AutomationCredentialResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected CredentialResource() { } - public virtual Azure.ResourceManager.Automation.CredentialData Data { get { throw null; } } + protected AutomationCredentialResource() { } + public virtual Azure.ResourceManager.Automation.AutomationCredentialData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.CredentialPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.CredentialPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationCredentialPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationCredentialPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class DscCompilationJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public static partial class AutomationExtensions { - protected DscCompilationJobCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string compilationJobName, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string compilationJobName, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public static Azure.Response GetAutomationAccount(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string automationAccountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static System.Threading.Tasks.Task> GetAutomationAccountAsync(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource, string automationAccountName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Automation.AutomationAccountModuleResource GetAutomationAccountModuleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationAccountPython2PackageResource GetAutomationAccountPython2PackageResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationAccountResource GetAutomationAccountResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationAccountCollection GetAutomationAccounts(this Azure.ResourceManager.Resources.ResourceGroupResource resourceGroupResource) { throw null; } + public static Azure.Pageable GetAutomationAccounts(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetAutomationAccountsAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Automation.AutomationCertificateResource GetAutomationCertificateResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationConnectionResource GetAutomationConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationConnectionTypeResource GetAutomationConnectionTypeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationCredentialResource GetAutomationCredentialResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationJobResource GetAutomationJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationJobScheduleResource GetAutomationJobScheduleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionResource GetAutomationPrivateEndpointConnectionResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationRunbookResource GetAutomationRunbookResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationScheduleResource GetAutomationScheduleResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationSourceControlResource GetAutomationSourceControlResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationVariableResource GetAutomationVariableResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationWatcherResource GetAutomationWatcherResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.AutomationWebhookResource GetAutomationWebhookResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.Pageable GetDeletedAutomationAccountsBySubscription(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.AsyncPageable GetDeletedAutomationAccountsBySubscriptionAsync(this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.ResourceManager.Automation.DscCompilationJobResource GetDscCompilationJobResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.DscConfigurationResource GetDscConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.DscNodeConfigurationResource GetDscNodeConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.DscNodeResource GetDscNodeResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.HybridRunbookWorkerGroupResource GetHybridRunbookWorkerGroupResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.HybridRunbookWorkerResource GetHybridRunbookWorkerResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + public static Azure.ResourceManager.Automation.SoftwareUpdateConfigurationResource GetSoftwareUpdateConfigurationResource(this Azure.ResourceManager.ArmClient client, Azure.Core.ResourceIdentifier id) { throw null; } + } + public partial class AutomationJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AutomationJobCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string jobName, Azure.ResourceManager.Automation.Models.AutomationJobCreateOrUpdateContent content, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string jobName, Azure.ResourceManager.Automation.Models.AutomationJobCreateOrUpdateContent content, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class DscCompilationJobData : Azure.ResourceManager.Models.ResourceData + public partial class AutomationJobData : Azure.ResourceManager.Models.ResourceData { - public DscCompilationJobData() { } - public string ConfigurationName { get { throw null; } set { } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } } - public string Exception { get { throw null; } } - public System.Guid? JobId { get { throw null; } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } } - public System.DateTimeOffset? LastStatusModifiedOn { get { throw null; } } + public AutomationJobData() { } + public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } + public System.DateTimeOffset? EndOn { get { throw null; } set { } } + public string Exception { get { throw null; } set { } } + public System.Guid? JobId { get { throw null; } set { } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } + public System.DateTimeOffset? LastStatusModifiedOn { get { throw null; } set { } } public System.Collections.Generic.IDictionary Parameters { get { throw null; } } public Azure.ResourceManager.Automation.Models.JobProvisioningState? ProvisioningState { get { throw null; } set { } } + public string RunbookName { get { throw null; } set { } } public string RunOn { get { throw null; } set { } } - public string StartedBy { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public Azure.ResourceManager.Automation.Models.JobStatus? Status { get { throw null; } set { } } + public string StartedBy { get { throw null; } set { } } + public System.DateTimeOffset? StartOn { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationJobStatus? Status { get { throw null; } set { } } public string StatusDetails { get { throw null; } set { } } } - public partial class DscCompilationJobResource : Azure.ResourceManager.ArmResource + public partial class AutomationJobResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected DscCompilationJobResource() { } - public virtual Azure.ResourceManager.Automation.DscCompilationJobData Data { get { throw null; } } + protected AutomationJobResource() { } + public virtual Azure.ResourceManager.Automation.AutomationJobData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName) { throw null; } + public virtual Azure.Response Get(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetJobStream(string jobStreamId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetJobStreamAsync(string jobStreamId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetJobStreams(string filter = null, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetJobStreamsAsync(string filter = null, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetOutput(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetOutputAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRunbookContent(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRunbookContentAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Resume(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task ResumeAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Stop(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task StopAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Suspend(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task SuspendAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.AutomationJobCreateOrUpdateContent content, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.AutomationJobCreateOrUpdateContent content, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class DscConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomationJobScheduleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected DscConfigurationCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string configurationName, Azure.ResourceManager.Automation.Models.DscConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string configurationName, Azure.ResourceManager.Automation.Models.DscConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + protected AutomationJobScheduleCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, System.Guid jobScheduleId, Azure.ResourceManager.Automation.Models.AutomationJobScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, System.Guid jobScheduleId, Azure.ResourceManager.Automation.Models.AutomationJobScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class DscConfigurationData : Azure.ResourceManager.Models.TrackedResourceData + public partial class AutomationJobScheduleData : Azure.ResourceManager.Models.ResourceData { - public DscConfigurationData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public Azure.ETag? ETag { get { throw null; } set { } } - public int? JobCount { get { throw null; } set { } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } - public bool? LogVerbose { get { throw null; } set { } } - public int? NodeConfigurationCount { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public Azure.ResourceManager.Automation.Models.DscConfigurationProvisioningState? ProvisioningState { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ContentSource Source { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.DscConfigurationState? State { get { throw null; } set { } } + internal AutomationJobScheduleData() { } + public System.Guid? JobScheduleId { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Parameters { get { throw null; } } + public string RunbookName { get { throw null; } } + public string RunOn { get { throw null; } } + public string ScheduleName { get { throw null; } } } - public partial class DscConfigurationResource : Azure.ResourceManager.ArmResource + public partial class AutomationJobScheduleResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected DscConfigurationResource() { } - public virtual Azure.ResourceManager.Automation.DscConfigurationData Data { get { throw null; } } + protected AutomationJobScheduleResource() { } + public virtual Azure.ResourceManager.Automation.AutomationJobScheduleData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetContent(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetContentAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.DscConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.DscConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.AutomationJobScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.AutomationJobScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class DscNodeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomationModuleData : Azure.ResourceManager.Models.TrackedResourceData { - protected DscNodeCollection() { } - public virtual Azure.Response Exists(string nodeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string nodeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string nodeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string nodeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + public AutomationModuleData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public int? ActivityCount { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } set { } } + public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationModuleErrorInfo Error { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } set { } } + public bool? IsComposite { get { throw null; } set { } } + public bool? IsGlobal { get { throw null; } set { } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.ModuleProvisioningState? ProvisioningState { get { throw null; } set { } } + public long? SizeInBytes { get { throw null; } set { } } + public string Version { get { throw null; } set { } } } - public partial class DscNodeConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomationPrivateEndpointConnectionCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected DscNodeConfigurationCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string nodeConfigurationName, Azure.ResourceManager.Automation.Models.DscNodeConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string nodeConfigurationName, Azure.ResourceManager.Automation.Models.DscNodeConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string nodeConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string nodeConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string nodeConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string nodeConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + protected AutomationPrivateEndpointConnectionCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string privateEndpointConnectionName, Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string privateEndpointConnectionName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class DscNodeConfigurationData : Azure.ResourceManager.Models.ResourceData + public partial class AutomationPrivateEndpointConnectionData : Azure.ResourceManager.Models.ResourceData { - public DscNodeConfigurationData() { } - public string ConfigurationName { get { throw null; } set { } } - public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } - public bool? IncrementNodeConfigurationBuild { get { throw null; } set { } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } - public long? NodeCount { get { throw null; } set { } } - public string Source { get { throw null; } set { } } + public AutomationPrivateEndpointConnectionData() { } + public Azure.ResourceManager.Automation.Models.AutomationPrivateLinkServiceConnectionStateProperty ConnectionState { get { throw null; } set { } } + public System.Collections.Generic.IList GroupIds { get { throw null; } } + public Azure.Core.ResourceIdentifier PrivateEndpointId { get { throw null; } set { } } } - public partial class DscNodeConfigurationResource : Azure.ResourceManager.ArmResource + public partial class AutomationPrivateEndpointConnectionResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected DscNodeConfigurationResource() { } - public virtual Azure.ResourceManager.Automation.DscNodeConfigurationData Data { get { throw null; } } + protected AutomationPrivateEndpointConnectionResource() { } + public virtual Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeConfigurationName) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string privateEndpointConnectionName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscNodeConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscNodeConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.AutomationPrivateEndpointConnectionData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class DscNodeData : Azure.ResourceManager.Models.ResourceData + public partial class AutomationRunbookCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public DscNodeData() { } - public string AccountId { get { throw null; } set { } } - public Azure.ETag? ETag { get { throw null; } set { } } - public System.Collections.Generic.IList ExtensionHandler { get { throw null; } } - public string IP { get { throw null; } set { } } - public System.DateTimeOffset? LastSeen { get { throw null; } set { } } - public string NamePropertiesNodeConfigurationName { get { throw null; } set { } } - public string NodeId { get { throw null; } set { } } - public System.DateTimeOffset? RegistrationOn { get { throw null; } set { } } - public string Status { get { throw null; } set { } } - public int? TotalCount { get { throw null; } set { } } - } - public partial class DscNodeResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected DscNodeResource() { } - public virtual Azure.ResourceManager.Automation.DscNodeData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetContentNodeReport(string reportId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetContentNodeReportAsync(string reportId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetNodeReport(string reportId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetNodeReportAsync(string reportId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetNodeReportsByNode(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetNodeReportsByNodeAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.DscNodePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.DscNodePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HybridRunbookWorkerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected HybridRunbookWorkerCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class HybridRunbookWorkerData : Azure.ResourceManager.Models.ResourceData - { - public HybridRunbookWorkerData() { } - public string IP { get { throw null; } set { } } - public System.DateTimeOffset? LastSeenOn { get { throw null; } set { } } - public System.DateTimeOffset? RegisteredOn { get { throw null; } set { } } - public string VmResourceId { get { throw null; } set { } } - public string WorkerName { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.WorkerType? WorkerType { get { throw null; } set { } } - } - public partial class HybridRunbookWorkerGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected HybridRunbookWorkerGroupCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string hybridRunbookWorkerGroupName, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string hybridRunbookWorkerGroupName, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupCreationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string hybridRunbookWorkerGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string hybridRunbookWorkerGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string hybridRunbookWorkerGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string hybridRunbookWorkerGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class HybridRunbookWorkerGroupData : Azure.ResourceManager.Models.ResourceData - { - public HybridRunbookWorkerGroupData() { } - public string CredentialName { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.GroupTypeEnum? GroupType { get { throw null; } set { } } - } - public partial class HybridRunbookWorkerGroupResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected HybridRunbookWorkerGroupResource() { } - public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerGroupData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetHybridRunbookWorker(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetHybridRunbookWorkerAsync(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerCollection GetHybridRunbookWorkers() { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupUpdationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupUpdationParameters, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class HybridRunbookWorkerResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected HybridRunbookWorkerResource() { } - public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Move(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task MoveAsync(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class JobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected JobCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string jobName, Azure.ResourceManager.Automation.Models.JobCreateOrUpdateContent content, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string jobName, Azure.ResourceManager.Automation.Models.JobCreateOrUpdateContent content, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string jobName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class JobData : Azure.ResourceManager.Models.ResourceData - { - public JobData() { } - public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } - public System.DateTimeOffset? EndOn { get { throw null; } set { } } - public string Exception { get { throw null; } set { } } - public System.Guid? JobId { get { throw null; } set { } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } - public System.DateTimeOffset? LastStatusModifiedOn { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public Azure.ResourceManager.Automation.Models.JobProvisioningState? ProvisioningState { get { throw null; } set { } } - public string RunbookName { get { throw null; } set { } } - public string RunOn { get { throw null; } set { } } - public string StartedBy { get { throw null; } set { } } - public System.DateTimeOffset? StartOn { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.JobStatus? Status { get { throw null; } set { } } - public string StatusDetails { get { throw null; } set { } } - } - public partial class JobResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected JobResource() { } - public virtual Azure.ResourceManager.Automation.JobData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName) { throw null; } - public virtual Azure.Response Get(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetJobStream(string jobStreamId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetJobStreamAsync(string jobStreamId, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetJobStreams(string filter = null, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetJobStreamsAsync(string filter = null, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetOutput(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetOutputAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRunbookContent(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRunbookContentAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Resume(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task ResumeAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Stop(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task StopAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Suspend(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task SuspendAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.JobCreateOrUpdateContent content, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.JobCreateOrUpdateContent content, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class JobScheduleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected JobScheduleCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, System.Guid jobScheduleId, Azure.ResourceManager.Automation.Models.JobScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, System.Guid jobScheduleId, Azure.ResourceManager.Automation.Models.JobScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Guid jobScheduleId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class JobScheduleData : Azure.ResourceManager.Models.ResourceData - { - internal JobScheduleData() { } - public string JobScheduleId { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Parameters { get { throw null; } } - public string RunbookName { get { throw null; } } - public string RunOn { get { throw null; } } - public string ScheduleName { get { throw null; } } - } - public partial class JobScheduleResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected JobScheduleResource() { } - public virtual Azure.ResourceManager.Automation.JobScheduleData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, System.Guid jobScheduleId) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.JobScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.JobScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class ModuleData : Azure.ResourceManager.Models.TrackedResourceData - { - public ModuleData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } - public int? ActivityCount { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ContentLink ContentLink { get { throw null; } set { } } - public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ModuleErrorInfo Error { get { throw null; } set { } } - public Azure.ETag? ETag { get { throw null; } set { } } - public bool? IsComposite { get { throw null; } set { } } - public bool? IsGlobal { get { throw null; } set { } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ModuleProvisioningState? ProvisioningState { get { throw null; } set { } } - public long? SizeInBytes { get { throw null; } set { } } - public string Version { get { throw null; } set { } } - } - public partial class RunbookCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected RunbookCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string runbookName, Azure.ResourceManager.Automation.Models.RunbookCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string runbookName, Azure.ResourceManager.Automation.Models.RunbookCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected AutomationRunbookCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string runbookName, Azure.ResourceManager.Automation.Models.AutomationRunbookCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string runbookName, Azure.ResourceManager.Automation.Models.AutomationRunbookCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string runbookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string runbookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string runbookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string runbookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string runbookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string runbookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class RunbookData : Azure.ResourceManager.Models.TrackedResourceData + public partial class AutomationRunbookData : Azure.ResourceManager.Models.TrackedResourceData { - public RunbookData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public AutomationRunbookData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.RunbookDraft Draft { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationRunbookDraft Draft { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } set { } } + public bool? IsLogProgressEnabled { get { throw null; } set { } } + public bool? IsLogVerboseEnabled { get { throw null; } set { } } public int? JobCount { get { throw null; } set { } } public string LastModifiedBy { get { throw null; } set { } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } public int? LogActivityTrace { get { throw null; } set { } } - public bool? LogProgress { get { throw null; } set { } } - public bool? LogVerbose { get { throw null; } set { } } public System.Collections.Generic.IList OutputTypes { get { throw null; } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } public Azure.ResourceManager.Automation.Models.RunbookProvisioningState? ProvisioningState { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ContentLink PublishContentLink { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.RunbookTypeEnum? RunbookType { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentLink PublishContentLink { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationRunbookType? RunbookType { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.RunbookState? State { get { throw null; } set { } } } - public partial class RunbookResource : Azure.ResourceManager.ArmResource + public partial class AutomationRunbookResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected RunbookResource() { } - public virtual Azure.ResourceManager.Automation.RunbookData Data { get { throw null; } } + protected AutomationRunbookResource() { } + public virtual Azure.ResourceManager.Automation.AutomationRunbookData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } - public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { throw null; } - public virtual Azure.Response CreateTestJob(Azure.ResourceManager.Automation.Models.TestJobCreateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateTestJobAsync(Azure.ResourceManager.Automation.Models.TestJobCreateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response CreateTestJob(Azure.ResourceManager.Automation.Models.RunbookTestJobCreateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateTestJobAsync(Azure.ResourceManager.Automation.Models.RunbookTestJobCreateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetContent(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetContentAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response GetContentRunbookDraft(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> GetContentRunbookDraftAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetRunbookDraft(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetRunbookDraftAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetTestJob(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetTestJobAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetTestJobStream(string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetTestJobStreamAsync(string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetTestJobStreamsByTestJob(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetTestJobStreamsByTestJobAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetRunbookDraft(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetRunbookDraftAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetTestJob(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetTestJobAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetTestJobStream(string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetTestJobStreamAsync(string jobStreamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetTestJobStreams(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetTestJobStreamsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Publish(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task PublishAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation ReplaceContentRunbookDraft(Azure.WaitUntil waitUntil, System.IO.Stream runbookContent, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ReplaceContentRunbookDraftAsync(Azure.WaitUntil waitUntil, System.IO.Stream runbookContent, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response ResumeTestJob(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task ResumeTestJobAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response StopTestJob(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StopTestJobAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response SuspendTestJob(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task SuspendTestJobAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response UndoEditRunbookDraft(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> UndoEditRunbookDraftAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.RunbookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.RunbookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationRunbookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationRunbookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class ScheduleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomationScheduleCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected ScheduleCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string scheduleName, Azure.ResourceManager.Automation.Models.ScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string scheduleName, Azure.ResourceManager.Automation.Models.ScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected AutomationScheduleCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string scheduleName, Azure.ResourceManager.Automation.Models.AutomationScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string scheduleName, Azure.ResourceManager.Automation.Models.AutomationScheduleCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string scheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string scheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string scheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string scheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string scheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string scheduleName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class ScheduleData : Azure.ResourceManager.Models.ResourceData + public partial class AutomationScheduleData : Azure.ResourceManager.Models.ResourceData { - public ScheduleData() { } - public Azure.ResourceManager.Automation.Models.AdvancedSchedule AdvancedSchedule { get { throw null; } set { } } + public AutomationScheduleData() { } + public Azure.ResourceManager.Automation.Models.AutomationAdvancedSchedule AdvancedSchedule { get { throw null; } set { } } public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public System.DateTimeOffset? ExpiryOn { get { throw null; } set { } } - public double? ExpiryTimeOffsetMinutes { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ScheduleFrequency? Frequency { get { throw null; } set { } } + public double? ExpireInMinutes { get { throw null; } set { } } + public System.DateTimeOffset? ExpireOn { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency? Frequency { get { throw null; } set { } } public System.BinaryData Interval { get { throw null; } set { } } public bool? IsEnabled { get { throw null; } set { } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } - public System.DateTimeOffset? NextRun { get { throw null; } set { } } - public double? NextRunOffsetMinutes { get { throw null; } set { } } + public double? NextRunInMinutes { get { throw null; } set { } } + public System.DateTimeOffset? NextRunOn { get { throw null; } set { } } + public double? StartInMinutes { get { throw null; } } public System.DateTimeOffset? StartOn { get { throw null; } set { } } - public double? StartTimeOffsetMinutes { get { throw null; } } public string TimeZone { get { throw null; } set { } } } - public partial class ScheduleResource : Azure.ResourceManager.ArmResource + public partial class AutomationScheduleResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected ScheduleResource() { } - public virtual Azure.ResourceManager.Automation.ScheduleData Data { get { throw null; } } + protected AutomationScheduleResource() { } + public virtual Azure.ResourceManager.Automation.AutomationScheduleData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.SchedulePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.SchedulePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class SoftwareUpdateConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected SoftwareUpdateConfigurationCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string softwareUpdateConfigurationName, Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData data, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string softwareUpdateConfigurationName, Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData data, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Exists(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> ExistsAsync(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string clientRequestId = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string clientRequestId = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } - System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } - } - public partial class SoftwareUpdateConfigurationData : Azure.ResourceManager.Models.ResourceData - { - public SoftwareUpdateConfigurationData(Azure.ResourceManager.Automation.Models.UpdateConfiguration updateConfiguration, Azure.ResourceManager.Automation.Models.SUCScheduleProperties scheduleInfo) { } - public string CreatedBy { get { throw null; } } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public Azure.ResourceManager.Automation.Models.ErrorResponse Error { get { throw null; } set { } } - public string LastModifiedBy { get { throw null; } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } } - public string ProvisioningState { get { throw null; } } - public Azure.ResourceManager.Automation.Models.SUCScheduleProperties ScheduleInfo { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationTasks Tasks { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.UpdateConfiguration UpdateConfiguration { get { throw null; } set { } } - } - public partial class SoftwareUpdateConfigurationResource : Azure.ResourceManager.ArmResource - { - public static readonly Azure.Core.ResourceType ResourceType; - protected SoftwareUpdateConfigurationResource() { } - public virtual Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData Data { get { throw null; } } - public virtual bool HasData { get { throw null; } } - public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData data, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData data, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationSchedulePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationSchedulePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class SourceControlCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomationSourceControlCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected SourceControlCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string sourceControlName, Azure.ResourceManager.Automation.Models.SourceControlCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string sourceControlName, Azure.ResourceManager.Automation.Models.SourceControlCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected AutomationSourceControlCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string sourceControlName, Azure.ResourceManager.Automation.Models.AutomationSourceControlCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string sourceControlName, Azure.ResourceManager.Automation.Models.AutomationSourceControlCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string sourceControlName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string sourceControlName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string sourceControlName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string sourceControlName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string sourceControlName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string sourceControlName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class SourceControlData : Azure.ResourceManager.Models.ResourceData + public partial class AutomationSourceControlData : Azure.ResourceManager.Models.ResourceData { - public SourceControlData() { } - public bool? AutoSync { get { throw null; } set { } } + public AutomationSourceControlData() { } public string Branch { get { throw null; } set { } } public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } public string Description { get { throw null; } set { } } public string FolderPath { get { throw null; } set { } } + public bool? IsAutoPublishRunbookEnabled { get { throw null; } set { } } + public bool? IsAutoSyncEnabled { get { throw null; } set { } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } - public bool? PublishRunbook { get { throw null; } set { } } public System.Uri RepoUri { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.SourceType? SourceType { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.SourceControlSourceType? SourceType { get { throw null; } set { } } } - public partial class SourceControlResource : Azure.ResourceManager.ArmResource + public partial class AutomationSourceControlResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected SourceControlResource() { } - public virtual Azure.ResourceManager.Automation.SourceControlData Data { get { throw null; } } + protected AutomationSourceControlResource() { } + public virtual Azure.ResourceManager.Automation.AutomationSourceControlData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName) { throw null; } public virtual Azure.Response CreateSourceControlSyncJob(System.Guid sourceControlSyncJobId, Azure.ResourceManager.Automation.Models.SourceControlSyncJobCreateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> CreateSourceControlSyncJobAsync(System.Guid sourceControlSyncJobId, Azure.ResourceManager.Automation.Models.SourceControlSyncJobCreateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetSourceControlSyncJob(System.Guid sourceControlSyncJobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetSourceControlSyncJobAsync(System.Guid sourceControlSyncJobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetSourceControlSyncJobsByAutomationAccount(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetSourceControlSyncJobsByAutomationAccountAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response GetSourceControlSyncJobStream(System.Guid sourceControlSyncJobId, string streamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetSourceControlSyncJobStreamAsync(System.Guid sourceControlSyncJobId, string streamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetSourceControlSyncJobStreamsBySyncJob(System.Guid sourceControlSyncJobId, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetSourceControlSyncJobStreamsBySyncJobAsync(System.Guid sourceControlSyncJobId, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.SourceControlPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.SourceControlPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - } - public partial class VariableCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable - { - protected VariableCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string variableName, Azure.ResourceManager.Automation.Models.VariableCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string variableName, Azure.ResourceManager.Automation.Models.VariableCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetSourceControlSyncJob(System.Guid sourceControlSyncJobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSourceControlSyncJobAsync(System.Guid sourceControlSyncJobId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetSourceControlSyncJobs(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetSourceControlSyncJobsAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetSourceControlSyncJobStream(System.Guid sourceControlSyncJobId, string streamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetSourceControlSyncJobStreamAsync(System.Guid sourceControlSyncJobId, string streamId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetSourceControlSyncJobStreams(System.Guid sourceControlSyncJobId, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetSourceControlSyncJobStreamsAsync(System.Guid sourceControlSyncJobId, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationSourceControlPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationSourceControlPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class AutomationVariableCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected AutomationVariableCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string variableName, Azure.ResourceManager.Automation.Models.AutomationVariableCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string variableName, Azure.ResourceManager.Automation.Models.AutomationVariableCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string variableName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string variableName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string variableName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string variableName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string variableName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string variableName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class VariableData : Azure.ResourceManager.Models.ResourceData + public partial class AutomationVariableData : Azure.ResourceManager.Models.ResourceData { - public VariableData() { } + public AutomationVariableData() { } public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } public string Description { get { throw null; } set { } } public bool? IsEncrypted { get { throw null; } set { } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } public string Value { get { throw null; } set { } } } - public partial class VariableResource : Azure.ResourceManager.ArmResource + public partial class AutomationVariableResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected VariableResource() { } - public virtual Azure.ResourceManager.Automation.VariableData Data { get { throw null; } } + protected AutomationVariableResource() { } + public virtual Azure.ResourceManager.Automation.AutomationVariableData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.VariablePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.VariablePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationVariablePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationVariablePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class WatcherCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomationWatcherCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected WatcherCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string watcherName, Azure.ResourceManager.Automation.WatcherData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string watcherName, Azure.ResourceManager.Automation.WatcherData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected AutomationWatcherCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string watcherName, Azure.ResourceManager.Automation.AutomationWatcherData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string watcherName, Azure.ResourceManager.Automation.AutomationWatcherData data, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string watcherName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string watcherName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string watcherName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string watcherName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string watcherName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string watcherName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class WatcherData : Azure.ResourceManager.Models.TrackedResourceData + public partial class AutomationWatcherData : Azure.ResourceManager.Models.TrackedResourceData { - public WatcherData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public AutomationWatcherData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public string Description { get { throw null; } set { } } public Azure.ETag? ETag { get { throw null; } set { } } @@ -1112,45 +808,45 @@ public WatcherData(Azure.Core.AzureLocation location) : base (default(Azure.Core public string ScriptRunOn { get { throw null; } set { } } public string Status { get { throw null; } } } - public partial class WatcherResource : Azure.ResourceManager.ArmResource + public partial class AutomationWatcherResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected WatcherResource() { } - public virtual Azure.ResourceManager.Automation.WatcherData Data { get { throw null; } } + protected AutomationWatcherResource() { } + public virtual Azure.ResourceManager.Automation.AutomationWatcherData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Start(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Stop(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task StopAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.WatcherPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.WatcherPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationWatcherPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationWatcherPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class WebhookCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + public partial class AutomationWebhookCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - protected WebhookCollection() { } - public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string webhookName, Azure.ResourceManager.Automation.Models.WebhookCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string webhookName, Azure.ResourceManager.Automation.Models.WebhookCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + protected AutomationWebhookCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string webhookName, Azure.ResourceManager.Automation.Models.AutomationWebhookCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string webhookName, Azure.ResourceManager.Automation.Models.AutomationWebhookCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual Azure.Response Exists(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task> ExistsAsync(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } - System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + public virtual Azure.Response Get(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string webhookName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class WebhookData : Azure.ResourceManager.Models.ResourceData + public partial class AutomationWebhookData : Azure.ResourceManager.Models.ResourceData { - public WebhookData() { } + public AutomationWebhookData() { } public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public System.DateTimeOffset? ExpiryOn { get { throw null; } set { } } + public System.DateTimeOffset? ExpireOn { get { throw null; } set { } } public bool? IsEnabled { get { throw null; } set { } } public System.DateTimeOffset? LastInvokedOn { get { throw null; } set { } } public string LastModifiedBy { get { throw null; } set { } } @@ -1160,85 +856,333 @@ public WebhookData() { } public string RunOn { get { throw null; } set { } } public System.Uri Uri { get { throw null; } set { } } } - public partial class WebhookResource : Azure.ResourceManager.ArmResource + public partial class AutomationWebhookResource : Azure.ResourceManager.ArmResource { public static readonly Azure.Core.ResourceType ResourceType; - protected WebhookResource() { } - public virtual Azure.ResourceManager.Automation.WebhookData Data { get { throw null; } } + protected AutomationWebhookResource() { } + public virtual Azure.ResourceManager.Automation.AutomationWebhookData Data { get { throw null; } } public virtual bool HasData { get { throw null; } } public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName) { throw null; } public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.WebhookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } - public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.WebhookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.AutomationWebhookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.AutomationWebhookPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } -} -namespace Azure.ResourceManager.Automation.Models -{ - public partial class Activity + public partial class DscCompilationJobCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - internal Activity() { } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public string Definition { get { throw null; } } - public string Description { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyList OutputTypes { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ParameterSets { get { throw null; } } + protected DscCompilationJobCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string compilationJobName, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string compilationJobName, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string compilationJobName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class ActivityOutputType + public partial class DscCompilationJobData : Azure.ResourceManager.Models.ResourceData { - internal ActivityOutputType() { } - public string ActivityOutputTypeValue { get { throw null; } } - public string Name { get { throw null; } } + public DscCompilationJobData() { } + public string ConfigurationName { get { throw null; } set { } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public System.DateTimeOffset? EndOn { get { throw null; } } + public string Exception { get { throw null; } } + public System.Guid? JobId { get { throw null; } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } } + public System.DateTimeOffset? LastStatusModifiedOn { get { throw null; } } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + public Azure.ResourceManager.Automation.Models.JobProvisioningState? ProvisioningState { get { throw null; } set { } } + public string RunOn { get { throw null; } set { } } + public string StartedBy { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationJobStatus? Status { get { throw null; } set { } } + public string StatusDetails { get { throw null; } set { } } } - public partial class ActivityParameter + public partial class DscCompilationJobResource : Azure.ResourceManager.ArmResource { - internal ActivityParameter() { } - public string ActivityParameterType { get { throw null; } } - public string Description { get { throw null; } } - public bool? IsDynamic { get { throw null; } } - public bool? IsMandatory { get { throw null; } } - public string Name { get { throw null; } } - public long? Position { get { throw null; } } - public System.Collections.Generic.IReadOnlyList ValidationSet { get { throw null; } } - public bool? ValueFromPipeline { get { throw null; } } - public bool? ValueFromPipelineByPropertyName { get { throw null; } } - public bool? ValueFromRemainingArguments { get { throw null; } } + public static readonly Azure.Core.ResourceType ResourceType; + protected DscCompilationJobResource() { } + public virtual Azure.ResourceManager.Automation.DscCompilationJobData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string compilationJobName) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscCompilationJobCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class ActivityParameterSet + public partial class DscConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - internal ActivityParameterSet() { } - public string Name { get { throw null; } } - public System.Collections.Generic.IReadOnlyList Parameters { get { throw null; } } + protected DscConfigurationCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string configurationName, Azure.ResourceManager.Automation.Models.DscConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string configurationName, Azure.ResourceManager.Automation.Models.DscConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string configurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } } - public partial class ActivityParameterValidationSet + public partial class DscConfigurationData : Azure.ResourceManager.Models.TrackedResourceData { - internal ActivityParameterValidationSet() { } - public string MemberValue { get { throw null; } } + public DscConfigurationData(Azure.Core.AzureLocation location) : base (default(Azure.Core.AzureLocation)) { } + public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } set { } } + public bool? IsLogVerboseEnabled { get { throw null; } set { } } + public int? JobCount { get { throw null; } set { } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } + public int? NodeConfigurationCount { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + public Azure.ResourceManager.Automation.Models.DscConfigurationProvisioningState? ProvisioningState { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentSource Source { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.DscConfigurationState? State { get { throw null; } set { } } } - public partial class AdvancedSchedule + public partial class DscConfigurationResource : Azure.ResourceManager.ArmResource { - public AdvancedSchedule() { } - public System.Collections.Generic.IList MonthDays { get { throw null; } } - public System.Collections.Generic.IList MonthlyOccurrences { get { throw null; } } - public System.Collections.Generic.IList WeekDays { get { throw null; } } + public static readonly Azure.Core.ResourceType ResourceType; + protected DscConfigurationResource() { } + public virtual Azure.ResourceManager.Automation.DscConfigurationData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public virtual Azure.Response AddTag(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> AddTagAsync(string key, string value, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string configurationName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetContent(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetContentAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response RemoveTag(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> RemoveTagAsync(string key, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response SetTags(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> SetTagsAsync(System.Collections.Generic.IDictionary tags, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.DscConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.DscConfigurationPatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } - public partial class AdvancedScheduleMonthlyOccurrence + public partial class DscNodeCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable { - public AdvancedScheduleMonthlyOccurrence() { } - public Azure.ResourceManager.Automation.Models.ScheduleDay? Day { get { throw null; } set { } } - public int? Occurrence { get { throw null; } set { } } + protected DscNodeCollection() { } + public virtual Azure.Response Exists(string nodeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string nodeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string nodeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string nodeId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class DscNodeConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected DscNodeConfigurationCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string nodeConfigurationName, Azure.ResourceManager.Automation.Models.DscNodeConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string nodeConfigurationName, Azure.ResourceManager.Automation.Models.DscNodeConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string nodeConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string nodeConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string nodeConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, int? skip = default(int?), int? top = default(int?), string inlinecount = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string nodeConfigurationName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class DscNodeConfigurationData : Azure.ResourceManager.Models.ResourceData + { + public DscNodeConfigurationData() { } + public string ConfigurationName { get { throw null; } set { } } + public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } + public bool? IsIncrementNodeConfigurationBuildRequired { get { throw null; } set { } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } + public long? NodeCount { get { throw null; } set { } } + public string Source { get { throw null; } set { } } + } + public partial class DscNodeConfigurationResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected DscNodeConfigurationResource() { } + public virtual Azure.ResourceManager.Automation.DscNodeConfigurationData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeConfigurationName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscNodeConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.DscNodeConfigurationCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class DscNodeData : Azure.ResourceManager.Models.ResourceData + { + public DscNodeData() { } + public string AccountId { get { throw null; } set { } } + public Azure.ETag? ETag { get { throw null; } set { } } + public System.Collections.Generic.IList ExtensionHandler { get { throw null; } } + public string IP { get { throw null; } set { } } + public System.DateTimeOffset? LastSeenOn { get { throw null; } set { } } + public string NamePropertiesNodeConfigurationName { get { throw null; } set { } } + public string NodeId { get { throw null; } set { } } + public System.DateTimeOffset? RegistrationOn { get { throw null; } set { } } + public string Status { get { throw null; } set { } } + public int? TotalCount { get { throw null; } set { } } + } + public partial class DscNodeResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected DscNodeResource() { } + public virtual Azure.ResourceManager.Automation.DscNodeData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string nodeId) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetContentNodeReport(string reportId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetContentNodeReportAsync(string reportId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetNodeReport(string reportId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetNodeReportAsync(string reportId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetNodeReportsByNode(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetNodeReportsByNodeAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.DscNodePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.DscNodePatch patch, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HybridRunbookWorkerCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridRunbookWorkerCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string hybridRunbookWorkerId, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HybridRunbookWorkerData : Azure.ResourceManager.Models.ResourceData + { + public HybridRunbookWorkerData() { } + public string IP { get { throw null; } set { } } + public System.DateTimeOffset? LastSeenOn { get { throw null; } set { } } + public System.DateTimeOffset? RegisteredOn { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VmResourceId { get { throw null; } set { } } + public string WorkerName { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.HybridWorkerType? WorkerType { get { throw null; } set { } } + } + public partial class HybridRunbookWorkerGroupCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected HybridRunbookWorkerGroupCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string hybridRunbookWorkerGroupName, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerGroupCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string hybridRunbookWorkerGroupName, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerGroupCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string hybridRunbookWorkerGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string hybridRunbookWorkerGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string hybridRunbookWorkerGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string hybridRunbookWorkerGroupName, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class HybridRunbookWorkerGroupData : Azure.ResourceManager.Models.ResourceData + { + public HybridRunbookWorkerGroupData() { } + public string CredentialName { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.HybridWorkerGroup? GroupType { get { throw null; } set { } } + } + public partial class HybridRunbookWorkerGroupResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HybridRunbookWorkerGroupResource() { } + public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerGroupData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response GetHybridRunbookWorker(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetHybridRunbookWorkerAsync(string hybridRunbookWorkerId, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerCollection GetHybridRunbookWorkers() { throw null; } + public virtual Azure.Response Update(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerGroupCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerGroupCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class HybridRunbookWorkerResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected HybridRunbookWorkerResource() { } + public virtual Azure.ResourceManager.Automation.HybridRunbookWorkerData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, string hybridRunbookWorkerId) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Move(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task MoveAsync(Azure.ResourceManager.Automation.Models.HybridRunbookWorkerMoveContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.Models.HybridRunbookWorkerCreateOrUpdateContent content, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + } + public partial class SoftwareUpdateConfigurationCollection : Azure.ResourceManager.ArmCollection, System.Collections.Generic.IAsyncEnumerable, System.Collections.Generic.IEnumerable, System.Collections.IEnumerable + { + protected SoftwareUpdateConfigurationCollection() { } + public virtual Azure.ResourceManager.ArmOperation CreateOrUpdate(Azure.WaitUntil waitUntil, string softwareUpdateConfigurationName, Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData data, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> CreateOrUpdateAsync(Azure.WaitUntil waitUntil, string softwareUpdateConfigurationName, Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData data, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Exists(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> ExistsAsync(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Pageable GetAll(string clientRequestId = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.AsyncPageable GetAllAsync(string clientRequestId = null, string filter = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string softwareUpdateConfigurationName, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + System.Collections.Generic.IAsyncEnumerator System.Collections.Generic.IAsyncEnumerable.GetAsyncEnumerator(System.Threading.CancellationToken cancellationToken) { throw null; } + System.Collections.Generic.IEnumerator System.Collections.Generic.IEnumerable.GetEnumerator() { throw null; } + System.Collections.IEnumerator System.Collections.IEnumerable.GetEnumerator() { throw null; } + } + public partial class SoftwareUpdateConfigurationData : Azure.ResourceManager.Models.ResourceData + { + public SoftwareUpdateConfigurationData(Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationSpecificProperties updateConfiguration, Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationScheduleProperties scheduleInfo) { } + public string CreatedBy { get { throw null; } } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationResponseError Error { get { throw null; } set { } } + public string LastModifiedBy { get { throw null; } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } } + public string ProvisioningState { get { throw null; } } + public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationScheduleProperties ScheduleInfo { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationTasks Tasks { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationSpecificProperties UpdateConfiguration { get { throw null; } set { } } + } + public partial class SoftwareUpdateConfigurationResource : Azure.ResourceManager.ArmResource + { + public static readonly Azure.Core.ResourceType ResourceType; + protected SoftwareUpdateConfigurationResource() { } + public virtual Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData Data { get { throw null; } } + public virtual bool HasData { get { throw null; } } + public static Azure.Core.ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string softwareUpdateConfigurationName) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Delete(Azure.WaitUntil waitUntil, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task DeleteAsync(Azure.WaitUntil waitUntil, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.Response Get(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> GetAsync(string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual Azure.ResourceManager.ArmOperation Update(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData data, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } + public virtual System.Threading.Tasks.Task> UpdateAsync(Azure.WaitUntil waitUntil, Azure.ResourceManager.Automation.SoftwareUpdateConfigurationData data, string clientRequestId = null, System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken)) { throw null; } } +} +namespace Azure.ResourceManager.Automation.Models +{ public partial class AgentRegistration { internal AgentRegistration() { } public string DscMetaConfiguration { get { throw null; } } - public string Endpoint { get { throw null; } } - public string Id { get { throw null; } } + public System.Uri Endpoint { get { throw null; } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } public Azure.ResourceManager.Automation.Models.AgentRegistrationKeys Keys { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -1265,27 +1209,27 @@ internal AgentRegistrationKeys() { } public string Primary { get { throw null; } } public string Secondary { get { throw null; } } } - public partial class AgentRegistrationRegenerateKeyParameter + public partial class AgentRegistrationRegenerateKeyContent { - public AgentRegistrationRegenerateKeyParameter(Azure.ResourceManager.Automation.Models.AgentRegistrationKeyName keyName) { } + public AgentRegistrationRegenerateKeyContent(Azure.ResourceManager.Automation.Models.AgentRegistrationKeyName keyName) { } public Azure.ResourceManager.Automation.Models.AgentRegistrationKeyName KeyName { get { throw null; } } } public partial class AutomationAccountCreateOrUpdateContent { public AutomationAccountCreateOrUpdateContent() { } - public bool? DisableLocalAuth { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.EncryptionProperties Encryption { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationEncryptionProperties Encryption { get { throw null; } set { } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public bool? IsLocalAuthDisabled { get { throw null; } set { } } + public bool? IsPublicNetworkAccessAllowed { get { throw null; } set { } } public Azure.Core.AzureLocation? Location { get { throw null; } set { } } public string Name { get { throw null; } set { } } - public bool? PublicNetworkAccess { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationSku Sku { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } public partial class AutomationAccountModuleCreateOrUpdateContent { - public AutomationAccountModuleCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.ContentLink contentLink) { } - public Azure.ResourceManager.Automation.Models.ContentLink ContentLink { get { throw null; } } + public AutomationAccountModuleCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } set { } } public string Name { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } @@ -1293,7 +1237,7 @@ public AutomationAccountModuleCreateOrUpdateContent(Azure.ResourceManager.Automa public partial class AutomationAccountModulePatch { public AutomationAccountModulePatch() { } - public Azure.ResourceManager.Automation.Models.ContentLink ContentLink { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } set { } } public Azure.Core.AzureLocation? Location { get { throw null; } set { } } public string Name { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } @@ -1301,19 +1245,19 @@ public AutomationAccountModulePatch() { } public partial class AutomationAccountPatch { public AutomationAccountPatch() { } - public bool? DisableLocalAuth { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.EncryptionProperties Encryption { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationEncryptionProperties Encryption { get { throw null; } set { } } public Azure.ResourceManager.Models.ManagedServiceIdentity Identity { get { throw null; } set { } } + public bool? IsLocalAuthDisabled { get { throw null; } set { } } + public bool? IsPublicNetworkAccessAllowed { get { throw null; } set { } } public Azure.Core.AzureLocation? Location { get { throw null; } set { } } public string Name { get { throw null; } set { } } - public bool? PublicNetworkAccess { get { throw null; } set { } } public Azure.ResourceManager.Automation.Models.AutomationSku Sku { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } public partial class AutomationAccountPython2PackageCreateOrUpdateContent { - public AutomationAccountPython2PackageCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.ContentLink contentLink) { } - public Azure.ResourceManager.Automation.Models.ContentLink ContentLink { get { throw null; } } + public AutomationAccountPython2PackageCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.AutomationContentLink contentLink) { } + public Azure.ResourceManager.Automation.Models.AutomationContentLink ContentLink { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } public partial class AutomationAccountPython2PackagePatch @@ -1340,61 +1284,604 @@ public AutomationAccountPython2PackagePatch() { } public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationAccountState left, Azure.ResourceManager.Automation.Models.AutomationAccountState right) { throw null; } public override string ToString() { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AutomationKeyName : System.IEquatable + public partial class AutomationAccountStatistics { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public AutomationKeyName(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.AutomationKeyName Primary { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.AutomationKeyName Secondary { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.AutomationKeyName other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } + internal AutomationAccountStatistics() { } + public string CounterProperty { get { throw null; } } + public long? CounterValue { get { throw null; } } + public System.DateTimeOffset? EndOn { get { throw null; } } + public string Id { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } + } + public partial class AutomationActivity + { + internal AutomationActivity() { } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public string Definition { get { throw null; } } + public string Description { get { throw null; } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } } + public string Name { get { throw null; } } + public System.Collections.Generic.IReadOnlyList OutputTypes { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ParameterSets { get { throw null; } } + } + public partial class AutomationActivityOutputType + { + internal AutomationActivityOutputType() { } + public string ActivityOutputType { get { throw null; } } + public string Name { get { throw null; } } + } + public partial class AutomationActivityParameterDefinition + { + internal AutomationActivityParameterDefinition() { } + public string ActivityParameterType { get { throw null; } } + public bool? CanTakeValueFromPipeline { get { throw null; } } + public bool? CanTakeValueFromPipelineByPropertyName { get { throw null; } } + public bool? CanTakeValueValueFromRemainingArguments { get { throw null; } } + public string Description { get { throw null; } } + public bool? IsDynamic { get { throw null; } } + public bool? IsMandatory { get { throw null; } } + public string Name { get { throw null; } } + public long? Position { get { throw null; } } + public System.Collections.Generic.IReadOnlyList ValidationSet { get { throw null; } } + } + public partial class AutomationActivityParameterSet + { + internal AutomationActivityParameterSet() { } + public string Name { get { throw null; } } + public System.Collections.Generic.IReadOnlyList Parameters { get { throw null; } } + } + public partial class AutomationActivityParameterValidationSet + { + internal AutomationActivityParameterValidationSet() { } + public string MemberValue { get { throw null; } } + } + public partial class AutomationAdvancedSchedule + { + public AutomationAdvancedSchedule() { } + public System.Collections.Generic.IList MonthDays { get { throw null; } } + public System.Collections.Generic.IList MonthlyOccurrences { get { throw null; } } + public System.Collections.Generic.IList WeekDays { get { throw null; } } + } + public partial class AutomationAdvancedScheduleMonthlyOccurrence + { + public AutomationAdvancedScheduleMonthlyOccurrence() { } + public Azure.ResourceManager.Automation.Models.AutomationDayOfWeek? Day { get { throw null; } set { } } + public int? Occurrence { get { throw null; } set { } } + } + public partial class AutomationCertificateCreateOrUpdateContent + { + public AutomationCertificateCreateOrUpdateContent(string name, string base64Value) { } + public string Base64Value { get { throw null; } } + public string Description { get { throw null; } set { } } + public bool? IsExportable { get { throw null; } set { } } + public string Name { get { throw null; } } + public System.BinaryData Thumbprint { get { throw null; } set { } } + } + public partial class AutomationCertificatePatch + { + public AutomationCertificatePatch() { } + public string Description { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + } + public partial class AutomationConnectionCreateOrUpdateContent + { + public AutomationConnectionCreateOrUpdateContent(string name, Azure.ResourceManager.Automation.Models.ConnectionTypeAssociationProperty connectionType) { } + public string ConnectionTypeName { get { throw null; } } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IDictionary FieldDefinitionValues { get { throw null; } } + public string Name { get { throw null; } } + } + public partial class AutomationConnectionFieldDefinition + { + public AutomationConnectionFieldDefinition(string fieldDefinitionType) { } + public string FieldDefinitionType { get { throw null; } set { } } + public bool? IsEncrypted { get { throw null; } set { } } + public bool? IsOptional { get { throw null; } set { } } + } + public partial class AutomationConnectionPatch + { + public AutomationConnectionPatch() { } + public string Description { get { throw null; } set { } } + public System.Collections.Generic.IDictionary FieldDefinitionValues { get { throw null; } } + public string Name { get { throw null; } set { } } + } + public partial class AutomationConnectionTypeCreateOrUpdateContent + { + public AutomationConnectionTypeCreateOrUpdateContent(string name, System.Collections.Generic.IDictionary fieldDefinitions) { } + public System.Collections.Generic.IDictionary FieldDefinitions { get { throw null; } } + public bool? IsGlobal { get { throw null; } set { } } + public string Name { get { throw null; } } + } + public partial class AutomationContentHash + { + public AutomationContentHash(string algorithm, string value) { } + public string Algorithm { get { throw null; } set { } } + public string Value { get { throw null; } set { } } + } + public partial class AutomationContentLink + { + public AutomationContentLink() { } + public Azure.ResourceManager.Automation.Models.AutomationContentHash ContentHash { get { throw null; } set { } } + public System.Uri Uri { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + public partial class AutomationContentSource + { + public AutomationContentSource() { } + public Azure.ResourceManager.Automation.Models.AutomationContentHash Hash { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentSourceType? SourceType { get { throw null; } set { } } + public string Value { get { throw null; } set { } } + public string Version { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutomationContentSourceType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutomationContentSourceType(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationContentSourceType EmbeddedContent { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationContentSourceType Uri { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.AutomationContentSourceType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationContentSourceType left, Azure.ResourceManager.Automation.Models.AutomationContentSourceType right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.AutomationContentSourceType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationContentSourceType left, Azure.ResourceManager.Automation.Models.AutomationContentSourceType right) { throw null; } + public override string ToString() { throw null; } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutomationCountType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutomationCountType(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationCountType NodeConfiguration { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationCountType Status { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.AutomationCountType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationCountType left, Azure.ResourceManager.Automation.Models.AutomationCountType right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.AutomationCountType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationCountType left, Azure.ResourceManager.Automation.Models.AutomationCountType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AutomationCredentialCreateOrUpdateContent + { + public AutomationCredentialCreateOrUpdateContent(string name, string userName, string password) { } + public string Description { get { throw null; } set { } } + public string Name { get { throw null; } } + public string Password { get { throw null; } } + public string UserName { get { throw null; } } + } + public partial class AutomationCredentialPatch + { + public AutomationCredentialPatch() { } + public string Description { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public string Password { get { throw null; } set { } } + public string UserName { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutomationDayOfWeek : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutomationDayOfWeek(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationDayOfWeek Friday { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationDayOfWeek Monday { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationDayOfWeek Saturday { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationDayOfWeek Sunday { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationDayOfWeek Thursday { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationDayOfWeek Tuesday { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationDayOfWeek Wednesday { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.AutomationDayOfWeek other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationDayOfWeek left, Azure.ResourceManager.Automation.Models.AutomationDayOfWeek right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.AutomationDayOfWeek (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationDayOfWeek left, Azure.ResourceManager.Automation.Models.AutomationDayOfWeek right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AutomationEncryptionProperties + { + public AutomationEncryptionProperties() { } + public Azure.ResourceManager.Automation.Models.EncryptionKeySourceType? KeySource { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationKeyVaultProperties KeyVaultProperties { get { throw null; } set { } } + public System.BinaryData UserAssignedIdentity { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutomationHttpStatusCode : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutomationHttpStatusCode(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Accepted { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Ambiguous { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode BadGateway { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode BadRequest { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Conflict { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Continue { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Created { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode ExpectationFailed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Forbidden { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Found { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode GatewayTimeout { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Gone { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode HttpVersionNotSupported { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode InternalServerError { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode LengthRequired { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode MethodNotAllowed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Moved { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode MovedPermanently { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode MultipleChoices { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode NoContent { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode NonAuthoritativeInformation { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode NotAcceptable { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode NotFound { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode NotImplemented { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode NotModified { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode OK { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode PartialContent { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode PaymentRequired { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode PreconditionFailed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode ProxyAuthenticationRequired { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Redirect { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode RedirectKeepVerb { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode RedirectMethod { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode RequestedRangeNotSatisfiable { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode RequestEntityTooLarge { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode RequestTimeout { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode RequestUriTooLong { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode ResetContent { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode SeeOther { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode ServiceUnavailable { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode SwitchingProtocols { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode TemporaryRedirect { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Unauthorized { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode UnsupportedMediaType { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode Unused { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode UpgradeRequired { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode UseProxy { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode left, Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode left, Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AutomationJobCollectionItemData : Azure.ResourceManager.Models.ResourceData + { + public AutomationJobCollectionItemData() { } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public System.DateTimeOffset? EndOn { get { throw null; } } + public System.Guid? JobId { get { throw null; } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } } + public string ProvisioningState { get { throw null; } } + public string RunbookName { get { throw null; } } + public string RunOn { get { throw null; } set { } } + public System.DateTimeOffset? StartOn { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationJobStatus? Status { get { throw null; } } + } + public partial class AutomationJobCreateOrUpdateContent + { + public AutomationJobCreateOrUpdateContent() { } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + public string RunbookName { get { throw null; } set { } } + public string RunOn { get { throw null; } set { } } + } + public partial class AutomationJobScheduleCreateOrUpdateContent + { + public AutomationJobScheduleCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.ScheduleAssociationProperty schedule, Azure.ResourceManager.Automation.Models.RunbookAssociationProperty runbook) { } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + public string RunbookName { get { throw null; } } + public string RunOn { get { throw null; } set { } } + public string ScheduleName { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutomationJobStatus : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutomationJobStatus(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Activating { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Blocked { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Completed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Disconnected { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Failed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus New { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Removing { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Resuming { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Running { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Stopped { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Stopping { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Suspended { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStatus Suspending { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.AutomationJobStatus other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationJobStatus left, Azure.ResourceManager.Automation.Models.AutomationJobStatus right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.AutomationJobStatus (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationJobStatus left, Azure.ResourceManager.Automation.Models.AutomationJobStatus right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AutomationJobStream + { + internal AutomationJobStream() { } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public string JobStreamId { get { throw null; } } + public string StreamText { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationJobStreamType? StreamType { get { throw null; } } + public string Summary { get { throw null; } } + public System.DateTimeOffset? Time { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Value { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutomationJobStreamType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutomationJobStreamType(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationJobStreamType Any { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStreamType Debug { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStreamType Error { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStreamType Output { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStreamType Progress { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStreamType Verbose { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationJobStreamType Warning { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.AutomationJobStreamType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationJobStreamType left, Azure.ResourceManager.Automation.Models.AutomationJobStreamType right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.AutomationJobStreamType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationJobStreamType left, Azure.ResourceManager.Automation.Models.AutomationJobStreamType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AutomationKey + { + internal AutomationKey() { } + public Azure.ResourceManager.Automation.Models.AutomationKeyName? KeyName { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationKeyPermission? Permissions { get { throw null; } } + public string Value { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutomationKeyName : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutomationKeyName(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationKeyName Primary { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationKeyName Secondary { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.AutomationKeyName other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationKeyName left, Azure.ResourceManager.Automation.Models.AutomationKeyName right) { throw null; } public static implicit operator Azure.ResourceManager.Automation.Models.AutomationKeyName (string value) { throw null; } public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationKeyName left, Azure.ResourceManager.Automation.Models.AutomationKeyName right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct AutomationKeyPermission : System.IEquatable + public readonly partial struct AutomationKeyPermission : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutomationKeyPermission(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationKeyPermission Full { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationKeyPermission Read { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.AutomationKeyPermission other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationKeyPermission left, Azure.ResourceManager.Automation.Models.AutomationKeyPermission right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.AutomationKeyPermission (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationKeyPermission left, Azure.ResourceManager.Automation.Models.AutomationKeyPermission right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AutomationKeyVaultProperties + { + public AutomationKeyVaultProperties() { } + public string KeyName { get { throw null; } set { } } + public System.Uri KeyvaultUri { get { throw null; } set { } } + public string KeyVersion { get { throw null; } set { } } + } + public partial class AutomationLinkedWorkspace + { + internal AutomationLinkedWorkspace() { } + public string Id { get { throw null; } } + } + public partial class AutomationModuleErrorInfo + { + public AutomationModuleErrorInfo() { } + public string Code { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + } + public partial class AutomationModuleField + { + internal AutomationModuleField() { } + public string FieldType { get { throw null; } } + public string Name { get { throw null; } } + } + public partial class AutomationPrivateLinkResource : Azure.ResourceManager.Models.ResourceData + { + public AutomationPrivateLinkResource() { } + public string GroupId { get { throw null; } } + public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } } + } + public partial class AutomationPrivateLinkServiceConnectionStateProperty + { + public AutomationPrivateLinkServiceConnectionStateProperty() { } + public string ActionsRequired { get { throw null; } } + public string Description { get { throw null; } set { } } + public string Status { get { throw null; } set { } } + } + public partial class AutomationResponseError + { + public AutomationResponseError() { } + public string Code { get { throw null; } set { } } + public string Message { get { throw null; } set { } } + } + public partial class AutomationRunbookCreateOrUpdateContent + { + public AutomationRunbookCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.AutomationRunbookType runbookType) { } + public string Description { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationRunbookDraft Draft { get { throw null; } set { } } + public bool? IsLogProgressEnabled { get { throw null; } set { } } + public bool? IsLogVerboseEnabled { get { throw null; } set { } } + public Azure.Core.AzureLocation? Location { get { throw null; } set { } } + public int? LogActivityTrace { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentLink PublishContentLink { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationRunbookType RunbookType { get { throw null; } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + } + public partial class AutomationRunbookDraft + { + public AutomationRunbookDraft() { } + public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentLink DraftContentLink { get { throw null; } set { } } + public bool? IsInEditMode { get { throw null; } set { } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } + public System.Collections.Generic.IList OutputTypes { get { throw null; } } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + } + public partial class AutomationRunbookPatch + { + public AutomationRunbookPatch() { } + public string Description { get { throw null; } set { } } + public bool? IsLogProgressEnabled { get { throw null; } set { } } + public bool? IsLogVerboseEnabled { get { throw null; } set { } } + public Azure.Core.AzureLocation? Location { get { throw null; } set { } } + public int? LogActivityTrace { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Tags { get { throw null; } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutomationRunbookType : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutomationRunbookType(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Graph { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType GraphPowerShell { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType GraphPowerShellWorkflow { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType PowerShell { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType PowerShellWorkflow { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Python2 { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Python3 { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationRunbookType Script { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.AutomationRunbookType other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationRunbookType left, Azure.ResourceManager.Automation.Models.AutomationRunbookType right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.AutomationRunbookType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationRunbookType left, Azure.ResourceManager.Automation.Models.AutomationRunbookType right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AutomationScheduleCreateOrUpdateContent + { + public AutomationScheduleCreateOrUpdateContent(string name, System.DateTimeOffset startOn, Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency frequency) { } + public Azure.ResourceManager.Automation.Models.AutomationAdvancedSchedule AdvancedSchedule { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public System.DateTimeOffset? ExpireOn { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency Frequency { get { throw null; } } + public System.BinaryData Interval { get { throw null; } set { } } + public string Name { get { throw null; } } + public System.DateTimeOffset StartOn { get { throw null; } } + public string TimeZone { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutomationScheduleFrequency : System.IEquatable + { + private readonly object _dummy; + private readonly int _dummyPrimitive; + public AutomationScheduleFrequency(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency Day { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency Hour { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency Minute { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency Month { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency OneTime { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency Week { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency other) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override bool Equals(object obj) { throw null; } + [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] + public override int GetHashCode() { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency left, Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency left, Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency right) { throw null; } + public override string ToString() { throw null; } + } + public partial class AutomationSchedulePatch + { + public AutomationSchedulePatch() { } + public string Description { get { throw null; } set { } } + public bool? IsEnabled { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + } + public partial class AutomationSku + { + public AutomationSku(Azure.ResourceManager.Automation.Models.AutomationSkuName name) { } + public int? Capacity { get { throw null; } set { } } + public string Family { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationSkuName Name { get { throw null; } set { } } + } + [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] + public readonly partial struct AutomationSkuName : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public AutomationKeyPermission(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.AutomationKeyPermission Full { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.AutomationKeyPermission Read { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.AutomationKeyPermission other) { throw null; } + public AutomationSkuName(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.AutomationSkuName Basic { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.AutomationSkuName Free { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.AutomationSkuName other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationKeyPermission left, Azure.ResourceManager.Automation.Models.AutomationKeyPermission right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.AutomationKeyPermission (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationKeyPermission left, Azure.ResourceManager.Automation.Models.AutomationKeyPermission right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.AutomationSkuName left, Azure.ResourceManager.Automation.Models.AutomationSkuName right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.AutomationSkuName (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.AutomationSkuName left, Azure.ResourceManager.Automation.Models.AutomationSkuName right) { throw null; } public override string ToString() { throw null; } } - public partial class AutomationPrivateLinkResource : Azure.ResourceManager.Models.ResourceData - { - public AutomationPrivateLinkResource() { } - public string GroupId { get { throw null; } } - public System.Collections.Generic.IReadOnlyList RequiredMembers { get { throw null; } } - } - public partial class AutomationPrivateLinkServiceConnectionStateProperty + public partial class AutomationSourceControlCreateOrUpdateContent { - public AutomationPrivateLinkServiceConnectionStateProperty() { } - public string ActionsRequired { get { throw null; } } + public AutomationSourceControlCreateOrUpdateContent() { } + public string Branch { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public string Status { get { throw null; } set { } } + public string FolderPath { get { throw null; } set { } } + public bool? IsAutoPublishRunbookEnabled { get { throw null; } set { } } + public bool? IsAutoSyncEnabled { get { throw null; } set { } } + public System.Uri RepoUri { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.SourceControlSecurityTokenProperties SecurityToken { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.SourceControlSourceType? SourceType { get { throw null; } set { } } } - public partial class AutomationSku + public partial class AutomationSourceControlPatch { - public AutomationSku(Azure.ResourceManager.Automation.Models.SkuNameEnum name) { } - public int? Capacity { get { throw null; } set { } } - public string Family { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.SkuNameEnum Name { get { throw null; } set { } } + public AutomationSourceControlPatch() { } + public string Branch { get { throw null; } set { } } + public string Description { get { throw null; } set { } } + public string FolderPath { get { throw null; } set { } } + public bool? IsAutoPublishRunbookEnabled { get { throw null; } set { } } + public bool? IsAutoSyncEnabled { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.SourceControlSecurityTokenProperties SecurityToken { get { throw null; } set { } } } public partial class AutomationUsage { @@ -1402,137 +1889,74 @@ internal AutomationUsage() { } public double? CurrentValue { get { throw null; } } public string Id { get { throw null; } } public long? Limit { get { throw null; } } - public Azure.ResourceManager.Automation.Models.UsageCounterName Name { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationUsageCounterName Name { get { throw null; } } public string ThrottleStatus { get { throw null; } } public string Unit { get { throw null; } } } - public partial class AzureQueryProperties - { - public AzureQueryProperties() { } - public System.Collections.Generic.IList Locations { get { throw null; } } - public System.Collections.Generic.IList Scope { get { throw null; } } - public Azure.ResourceManager.Automation.Models.TagSettingsProperties TagSettings { get { throw null; } set { } } - } - public partial class CertificateCreateOrUpdateContent - { - public CertificateCreateOrUpdateContent(string name, string base64Value) { } - public string Base64Value { get { throw null; } } - public string Description { get { throw null; } set { } } - public bool? IsExportable { get { throw null; } set { } } - public string Name { get { throw null; } } - public string Thumbprint { get { throw null; } set { } } - } - public partial class CertificatePatch + public partial class AutomationUsageCounterName { - public CertificatePatch() { } - public string Description { get { throw null; } set { } } - public string Name { get { throw null; } set { } } + internal AutomationUsageCounterName() { } + public string LocalizedValue { get { throw null; } } + public string Value { get { throw null; } } } - public partial class ConnectionCreateOrUpdateContent + public partial class AutomationVariableCreateOrUpdateContent { - public ConnectionCreateOrUpdateContent(string name, Azure.ResourceManager.Automation.Models.ConnectionTypeAssociationProperty connectionType) { } - public string ConnectionTypeName { get { throw null; } } + public AutomationVariableCreateOrUpdateContent(string name) { } public string Description { get { throw null; } set { } } - public System.Collections.Generic.IDictionary FieldDefinitionValues { get { throw null; } } + public bool? IsEncrypted { get { throw null; } set { } } public string Name { get { throw null; } } + public string Value { get { throw null; } set { } } } - public partial class ConnectionPatch + public partial class AutomationVariablePatch { - public ConnectionPatch() { } + public AutomationVariablePatch() { } public string Description { get { throw null; } set { } } - public System.Collections.Generic.IDictionary FieldDefinitionValues { get { throw null; } } public string Name { get { throw null; } set { } } + public string Value { get { throw null; } set { } } } - public partial class ConnectionTypeAssociationProperty + public partial class AutomationWatcherPatch { - public ConnectionTypeAssociationProperty() { } + public AutomationWatcherPatch() { } + public long? ExecutionFrequencyInSeconds { get { throw null; } set { } } public string Name { get { throw null; } set { } } } - public partial class ConnectionTypeCreateOrUpdateContent + public partial class AutomationWebhookCreateOrUpdateContent { - public ConnectionTypeCreateOrUpdateContent(string name, System.Collections.Generic.IDictionary fieldDefinitions) { } - public System.Collections.Generic.IDictionary FieldDefinitions { get { throw null; } } - public bool? IsGlobal { get { throw null; } set { } } + public AutomationWebhookCreateOrUpdateContent(string name) { } + public System.DateTimeOffset? ExpireOn { get { throw null; } set { } } + public bool? IsEnabled { get { throw null; } set { } } public string Name { get { throw null; } } - } - public partial class ContentHash - { - public ContentHash(string algorithm, string value) { } - public string Algorithm { get { throw null; } set { } } - public string Value { get { throw null; } set { } } - } - public partial class ContentLink - { - public ContentLink() { } - public Azure.ResourceManager.Automation.Models.ContentHash ContentHash { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + public string RunbookName { get { throw null; } set { } } + public string RunOn { get { throw null; } set { } } public System.Uri Uri { get { throw null; } set { } } - public string Version { get { throw null; } set { } } - } - public partial class ContentSource - { - public ContentSource() { } - public Azure.ResourceManager.Automation.Models.ContentHash Hash { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ContentSourceType? SourceType { get { throw null; } set { } } - public string Value { get { throw null; } set { } } - public string Version { get { throw null; } set { } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ContentSourceType : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ContentSourceType(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.ContentSourceType EmbeddedContent { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ContentSourceType Uri { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.ContentSourceType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.ContentSourceType left, Azure.ResourceManager.Automation.Models.ContentSourceType right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.ContentSourceType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.ContentSourceType left, Azure.ResourceManager.Automation.Models.ContentSourceType right) { throw null; } - public override string ToString() { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct CountType : System.IEquatable + public partial class AutomationWebhookPatch { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public CountType(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.CountType Nodeconfiguration { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.CountType Status { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.CountType other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.CountType left, Azure.ResourceManager.Automation.Models.CountType right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.CountType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.CountType left, Azure.ResourceManager.Automation.Models.CountType right) { throw null; } - public override string ToString() { throw null; } + public AutomationWebhookPatch() { } + public string Description { get { throw null; } set { } } + public bool? IsEnabled { get { throw null; } set { } } + public string Name { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + public string RunOn { get { throw null; } set { } } } - public partial class CredentialCreateOrUpdateContent + public partial class AzureQueryProperties { - public CredentialCreateOrUpdateContent(string name, string userName, string password) { } - public string Description { get { throw null; } set { } } - public string Name { get { throw null; } } - public string Password { get { throw null; } } - public string UserName { get { throw null; } } + public AzureQueryProperties() { } + public System.Collections.Generic.IList Locations { get { throw null; } } + public System.Collections.Generic.IList Scope { get { throw null; } } + public Azure.ResourceManager.Automation.Models.QueryTagSettingsProperties TagSettings { get { throw null; } set { } } } - public partial class CredentialPatch + public partial class ConnectionTypeAssociationProperty { - public CredentialPatch() { } - public string Description { get { throw null; } set { } } + public ConnectionTypeAssociationProperty() { } public string Name { get { throw null; } set { } } - public string Password { get { throw null; } set { } } - public string UserName { get { throw null; } set { } } } public partial class DeletedAutomationAccount : Azure.ResourceManager.Models.ResourceData { internal DeletedAutomationAccount() { } public string AutomationAccountId { get { throw null; } } - public string AutomationAccountResourceId { get { throw null; } } + public Azure.Core.ResourceIdentifier AutomationAccountResourceId { get { throw null; } } public System.DateTimeOffset? DeletedOn { get { throw null; } } public Azure.Core.AzureLocation? Location { get { throw null; } } public string LocationPropertiesLocation { get { throw null; } } @@ -1541,7 +1965,7 @@ public partial class DscCompilationJobCreateOrUpdateContent { public DscCompilationJobCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.DscConfigurationAssociationProperty configuration) { } public string ConfigurationName { get { throw null; } } - public bool? IncrementNodeConfigurationBuild { get { throw null; } set { } } + public bool? IsIncrementNodeConfigurationBuildRequired { get { throw null; } set { } } public Azure.Core.AzureLocation? Location { get { throw null; } set { } } public string Name { get { throw null; } set { } } public System.Collections.Generic.IDictionary Parameters { get { throw null; } } @@ -1554,19 +1978,19 @@ public DscConfigurationAssociationProperty() { } } public partial class DscConfigurationCreateOrUpdateContent { - public DscConfigurationCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.ContentSource source) { } + public DscConfigurationCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.AutomationContentSource source) { } public string Description { get { throw null; } set { } } + public bool? IsLogProgressEnabled { get { throw null; } set { } } + public bool? IsLogVerboseEnabled { get { throw null; } set { } } public Azure.Core.AzureLocation? Location { get { throw null; } set { } } - public bool? LogProgress { get { throw null; } set { } } - public bool? LogVerbose { get { throw null; } set { } } public string Name { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public Azure.ResourceManager.Automation.Models.ContentSource Source { get { throw null; } } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationContentSource Source { get { throw null; } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } - public partial class DscConfigurationParameter + public partial class DscConfigurationParameterDefinition { - public DscConfigurationParameter() { } + public DscConfigurationParameterDefinition() { } public string DefaultValue { get { throw null; } set { } } public string DscConfigurationParameterType { get { throw null; } set { } } public bool? IsMandatory { get { throw null; } set { } } @@ -1576,11 +2000,11 @@ public partial class DscConfigurationPatch { public DscConfigurationPatch() { } public string Description { get { throw null; } set { } } - public bool? LogProgress { get { throw null; } set { } } - public bool? LogVerbose { get { throw null; } set { } } + public bool? IsLogProgressEnabled { get { throw null; } set { } } + public bool? IsLogVerboseEnabled { get { throw null; } set { } } public string Name { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public Azure.ResourceManager.Automation.Models.ContentSource Source { get { throw null; } set { } } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationContentSource Source { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] @@ -1634,11 +2058,17 @@ public partial class DscNodeConfigurationCreateOrUpdateContent { public DscNodeConfigurationCreateOrUpdateContent() { } public string ConfigurationName { get { throw null; } set { } } - public bool? IncrementNodeConfigurationBuild { get { throw null; } set { } } + public bool? IsIncrementNodeConfigurationBuildRequired { get { throw null; } set { } } public string Name { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ContentSource Source { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationContentSource Source { get { throw null; } set { } } public System.Collections.Generic.IDictionary Tags { get { throw null; } } } + public partial class DscNodeCount + { + internal DscNodeCount() { } + public string Name { get { throw null; } } + public int? NameCount { get { throw null; } } + } public partial class DscNodeExtensionHandlerAssociationProperty { public DscNodeExtensionHandlerAssociationProperty() { } @@ -1708,26 +2138,6 @@ public enum EncryptionKeySourceType MicrosoftAutomation = 0, MicrosoftKeyvault = 1, } - public partial class EncryptionProperties - { - public EncryptionProperties() { } - public Azure.ResourceManager.Automation.Models.EncryptionKeySourceType? KeySource { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.KeyVaultProperties KeyVaultProperties { get { throw null; } set { } } - public System.BinaryData UserAssignedIdentity { get { throw null; } set { } } - } - public partial class ErrorResponse - { - public ErrorResponse() { } - public string Code { get { throw null; } set { } } - public string Message { get { throw null; } set { } } - } - public partial class FieldDefinition - { - public FieldDefinition(string fieldDefinitionType) { } - public string FieldDefinitionType { get { throw null; } set { } } - public bool? IsEncrypted { get { throw null; } set { } } - public bool? IsOptional { get { throw null; } set { } } - } public partial class GraphicalRunbookContent { public GraphicalRunbookContent() { } @@ -1752,96 +2162,15 @@ public GraphicalRunbookContent() { } public static bool operator !=(Azure.ResourceManager.Automation.Models.GraphRunbookType left, Azure.ResourceManager.Automation.Models.GraphRunbookType right) { throw null; } public override string ToString() { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct GroupTypeEnum : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public GroupTypeEnum(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.GroupTypeEnum System { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.GroupTypeEnum User { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.GroupTypeEnum other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.GroupTypeEnum left, Azure.ResourceManager.Automation.Models.GroupTypeEnum right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.GroupTypeEnum (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.GroupTypeEnum left, Azure.ResourceManager.Automation.Models.GroupTypeEnum right) { throw null; } - public override string ToString() { throw null; } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct HttpStatusCode : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public HttpStatusCode(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Accepted { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Ambiguous { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode BadGateway { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode BadRequest { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Conflict { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Continue { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Created { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode ExpectationFailed { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Forbidden { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Found { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode GatewayTimeout { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Gone { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode HttpVersionNotSupported { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode InternalServerError { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode LengthRequired { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode MethodNotAllowed { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Moved { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode MovedPermanently { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode MultipleChoices { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode NoContent { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode NonAuthoritativeInformation { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode NotAcceptable { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode NotFound { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode NotImplemented { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode NotModified { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode OK { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode PartialContent { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode PaymentRequired { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode PreconditionFailed { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode ProxyAuthenticationRequired { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Redirect { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode RedirectKeepVerb { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode RedirectMethod { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode RequestedRangeNotSatisfiable { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode RequestEntityTooLarge { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode RequestTimeout { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode RequestUriTooLong { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode ResetContent { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode SeeOther { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode ServiceUnavailable { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode SwitchingProtocols { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode TemporaryRedirect { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Unauthorized { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode UnsupportedMediaType { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode Unused { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode UpgradeRequired { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.HttpStatusCode UseProxy { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.HttpStatusCode other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.HttpStatusCode left, Azure.ResourceManager.Automation.Models.HttpStatusCode right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.HttpStatusCode (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.HttpStatusCode left, Azure.ResourceManager.Automation.Models.HttpStatusCode right) { throw null; } - public override string ToString() { throw null; } - } public partial class HybridRunbookWorkerCreateOrUpdateContent { public HybridRunbookWorkerCreateOrUpdateContent() { } public string Name { get { throw null; } set { } } - public string VmResourceId { get { throw null; } set { } } + public Azure.Core.ResourceIdentifier VmResourceId { get { throw null; } set { } } } - public partial class HybridRunbookWorkerGroupCreateOrUpdateParameters + public partial class HybridRunbookWorkerGroupCreateOrUpdateContent { - public HybridRunbookWorkerGroupCreateOrUpdateParameters() { } + public HybridRunbookWorkerGroupCreateOrUpdateContent() { } public string CredentialName { get { throw null; } set { } } public string Name { get { throw null; } set { } } } @@ -1850,174 +2179,89 @@ public partial class HybridRunbookWorkerMoveContent public HybridRunbookWorkerMoveContent() { } public string HybridRunbookWorkerGroupName { get { throw null; } set { } } } - public partial class JobCollectionItem : Azure.ResourceManager.Models.ResourceData - { - public JobCollectionItem() { } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } } - public System.Guid? JobId { get { throw null; } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } } - public string ProvisioningState { get { throw null; } } - public string RunbookName { get { throw null; } } - public string RunOn { get { throw null; } set { } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public Azure.ResourceManager.Automation.Models.JobStatus? Status { get { throw null; } } - } - public partial class JobCreateOrUpdateContent - { - public JobCreateOrUpdateContent() { } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public string RunbookName { get { throw null; } set { } } - public string RunOn { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct JobProvisioningState : System.IEquatable + public readonly partial struct HybridWorkerGroup : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public JobProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.JobProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobProvisioningState Processing { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobProvisioningState Succeeded { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobProvisioningState Suspended { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.JobProvisioningState other) { throw null; } + public HybridWorkerGroup(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.HybridWorkerGroup System { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.HybridWorkerGroup User { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.HybridWorkerGroup other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.JobProvisioningState left, Azure.ResourceManager.Automation.Models.JobProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.JobProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.JobProvisioningState left, Azure.ResourceManager.Automation.Models.JobProvisioningState right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.HybridWorkerGroup left, Azure.ResourceManager.Automation.Models.HybridWorkerGroup right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.HybridWorkerGroup (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.HybridWorkerGroup left, Azure.ResourceManager.Automation.Models.HybridWorkerGroup right) { throw null; } public override string ToString() { throw null; } } - public partial class JobScheduleCreateOrUpdateContent - { - public JobScheduleCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.ScheduleAssociationProperty schedule, Azure.ResourceManager.Automation.Models.RunbookAssociationProperty runbook) { } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public string RunbookName { get { throw null; } } - public string RunOn { get { throw null; } set { } } - public string ScheduleName { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct JobStatus : System.IEquatable + public readonly partial struct HybridWorkerType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public JobStatus(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.JobStatus Activating { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus Blocked { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus Completed { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus Disconnected { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus Failed { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus New { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus Removing { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus Resuming { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus Running { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus Stopped { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus Stopping { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus Suspended { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStatus Suspending { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.JobStatus other) { throw null; } + public HybridWorkerType(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.HybridWorkerType HybridV1 { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.HybridWorkerType HybridV2 { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.HybridWorkerType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.JobStatus left, Azure.ResourceManager.Automation.Models.JobStatus right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.JobStatus (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.JobStatus left, Azure.ResourceManager.Automation.Models.JobStatus right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.HybridWorkerType left, Azure.ResourceManager.Automation.Models.HybridWorkerType right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.HybridWorkerType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.HybridWorkerType left, Azure.ResourceManager.Automation.Models.HybridWorkerType right) { throw null; } public override string ToString() { throw null; } } - public partial class JobStream - { - internal JobStream() { } - public string Id { get { throw null; } } - public string JobStreamId { get { throw null; } } - public string StreamText { get { throw null; } } - public Azure.ResourceManager.Automation.Models.JobStreamType? StreamType { get { throw null; } } - public string Summary { get { throw null; } } - public System.DateTimeOffset? Time { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Value { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct JobStreamType : System.IEquatable + public readonly partial struct JobProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public JobStreamType(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.JobStreamType Any { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStreamType Debug { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStreamType Error { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStreamType Output { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStreamType Progress { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStreamType Verbose { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.JobStreamType Warning { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.JobStreamType other) { throw null; } + public JobProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.JobProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.JobProvisioningState Processing { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.JobProvisioningState Succeeded { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.JobProvisioningState Suspended { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.JobProvisioningState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.JobStreamType left, Azure.ResourceManager.Automation.Models.JobStreamType right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.JobStreamType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.JobStreamType left, Azure.ResourceManager.Automation.Models.JobStreamType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.JobProvisioningState left, Azure.ResourceManager.Automation.Models.JobProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.JobProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.JobProvisioningState left, Azure.ResourceManager.Automation.Models.JobProvisioningState right) { throw null; } public override string ToString() { throw null; } } - public partial class Key - { - internal Key() { } - public Azure.ResourceManager.Automation.Models.AutomationKeyName? KeyName { get { throw null; } } - public Azure.ResourceManager.Automation.Models.AutomationKeyPermission? Permissions { get { throw null; } } - public string Value { get { throw null; } } - } - public partial class KeyListResult - { - internal KeyListResult() { } - public System.Collections.Generic.IReadOnlyList Keys { get { throw null; } } - } - public partial class KeyVaultProperties - { - public KeyVaultProperties() { } - public string KeyName { get { throw null; } set { } } - public System.Uri KeyvaultUri { get { throw null; } set { } } - public string KeyVersion { get { throw null; } set { } } - } - public partial class LinkedWorkspace - { - internal LinkedWorkspace() { } - public string Id { get { throw null; } } - } - public partial class LinuxProperties - { - public LinuxProperties() { } - public System.Collections.Generic.IList ExcludedPackageNameMasks { get { throw null; } } - public Azure.ResourceManager.Automation.Models.LinuxUpdateClass? IncludedPackageClassifications { get { throw null; } set { } } - public System.Collections.Generic.IList IncludedPackageNameMasks { get { throw null; } } - public string RebootSetting { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct LinuxUpdateClass : System.IEquatable + public readonly partial struct LinuxUpdateClassification : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public LinuxUpdateClass(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.LinuxUpdateClass Critical { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.LinuxUpdateClass Other { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.LinuxUpdateClass Security { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.LinuxUpdateClass Unclassified { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.LinuxUpdateClass other) { throw null; } + public LinuxUpdateClassification(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.LinuxUpdateClassification Critical { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.LinuxUpdateClassification Other { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.LinuxUpdateClassification Security { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.LinuxUpdateClassification Unclassified { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.LinuxUpdateClassification other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.LinuxUpdateClass left, Azure.ResourceManager.Automation.Models.LinuxUpdateClass right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.LinuxUpdateClass (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.LinuxUpdateClass left, Azure.ResourceManager.Automation.Models.LinuxUpdateClass right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.LinuxUpdateClassification left, Azure.ResourceManager.Automation.Models.LinuxUpdateClassification right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.LinuxUpdateClassification (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.LinuxUpdateClassification left, Azure.ResourceManager.Automation.Models.LinuxUpdateClassification right) { throw null; } public override string ToString() { throw null; } } - public partial class ModuleErrorInfo + public partial class LinuxUpdateConfigurationProperties { - public ModuleErrorInfo() { } - public string Code { get { throw null; } set { } } - public string Message { get { throw null; } set { } } + public LinuxUpdateConfigurationProperties() { } + public System.Collections.Generic.IList ExcludedPackageNameMasks { get { throw null; } } + public Azure.ResourceManager.Automation.Models.LinuxUpdateClassification? IncludedPackageClassifications { get { throw null; } set { } } + public System.Collections.Generic.IList IncludedPackageNameMasks { get { throw null; } } + public string RebootSetting { get { throw null; } set { } } } public enum ModuleProvisioningState { @@ -2038,41 +2282,22 @@ public enum ModuleProvisioningState Cancelled = 14, Updating = 15, } - public partial class NodeCount - { - internal NodeCount() { } - public string Name { get { throw null; } } - public int? NameCount { get { throw null; } } - } public partial class NonAzureQueryProperties { public NonAzureQueryProperties() { } public string FunctionAlias { get { throw null; } set { } } public string WorkspaceId { get { throw null; } set { } } } - public enum OperatingSystemType + public enum QueryTagOperator { - Windows = 0, - Linux = 1, + All = 0, + Any = 1, } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ProvisioningState : System.IEquatable + public partial class QueryTagSettingsProperties { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ProvisioningState(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.ProvisioningState Completed { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ProvisioningState Failed { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ProvisioningState Running { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.ProvisioningState other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.ProvisioningState left, Azure.ResourceManager.Automation.Models.ProvisioningState right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.ProvisioningState (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.ProvisioningState left, Azure.ResourceManager.Automation.Models.ProvisioningState right) { throw null; } - public override string ToString() { throw null; } + public QueryTagSettingsProperties() { } + public Azure.ResourceManager.Automation.Models.QueryTagOperator? FilterOperator { get { throw null; } set { } } + public System.Collections.Generic.IDictionary> Tags { get { throw null; } } } public partial class RawGraphicalRunbookContent { @@ -2082,59 +2307,24 @@ public RawGraphicalRunbookContent() { } public string SchemaVersion { get { throw null; } set { } } } public partial class RunbookAssociationProperty - { - public RunbookAssociationProperty() { } - public string Name { get { throw null; } set { } } - } - public partial class RunbookCreateOrUpdateContent - { - public RunbookCreateOrUpdateContent(Azure.ResourceManager.Automation.Models.RunbookTypeEnum runbookType) { } - public string Description { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.RunbookDraft Draft { get { throw null; } set { } } - public Azure.Core.AzureLocation? Location { get { throw null; } set { } } - public int? LogActivityTrace { get { throw null; } set { } } - public bool? LogProgress { get { throw null; } set { } } - public bool? LogVerbose { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ContentLink PublishContentLink { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.RunbookTypeEnum RunbookType { get { throw null; } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - } - public partial class RunbookDraft - { - public RunbookDraft() { } - public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ContentLink DraftContentLink { get { throw null; } set { } } - public bool? InEdit { get { throw null; } set { } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } - public System.Collections.Generic.IList OutputTypes { get { throw null; } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + { + public RunbookAssociationProperty() { } + public string Name { get { throw null; } set { } } } public partial class RunbookDraftUndoEditResult { internal RunbookDraftUndoEditResult() { } public string RequestId { get { throw null; } } - public Azure.ResourceManager.Automation.Models.HttpStatusCode? StatusCode { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationHttpStatusCode? StatusCode { get { throw null; } } } - public partial class RunbookParameter + public partial class RunbookParameterDefinition { - public RunbookParameter() { } + public RunbookParameterDefinition() { } public string DefaultValue { get { throw null; } set { } } public bool? IsMandatory { get { throw null; } set { } } public int? Position { get { throw null; } set { } } public string RunbookParameterType { get { throw null; } set { } } } - public partial class RunbookPatch - { - public RunbookPatch() { } - public string Description { get { throw null; } set { } } - public Azure.Core.AzureLocation? Location { get { throw null; } set { } } - public int? LogActivityTrace { get { throw null; } set { } } - public bool? LogProgress { get { throw null; } set { } } - public bool? LogVerbose { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Tags { get { throw null; } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] public readonly partial struct RunbookProvisioningState : System.IEquatable { @@ -2171,130 +2361,45 @@ public RunbookPatch() { } public static bool operator !=(Azure.ResourceManager.Automation.Models.RunbookState left, Azure.ResourceManager.Automation.Models.RunbookState right) { throw null; } public override string ToString() { throw null; } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct RunbookTypeEnum : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public RunbookTypeEnum(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.RunbookTypeEnum Graph { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.RunbookTypeEnum GraphPowerShell { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.RunbookTypeEnum GraphPowerShellWorkflow { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.RunbookTypeEnum PowerShell { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.RunbookTypeEnum PowerShellWorkflow { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.RunbookTypeEnum Python2 { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.RunbookTypeEnum Python3 { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.RunbookTypeEnum Script { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.RunbookTypeEnum other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.RunbookTypeEnum left, Azure.ResourceManager.Automation.Models.RunbookTypeEnum right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.RunbookTypeEnum (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.RunbookTypeEnum left, Azure.ResourceManager.Automation.Models.RunbookTypeEnum right) { throw null; } - public override string ToString() { throw null; } - } - public partial class ScheduleAssociationProperty - { - public ScheduleAssociationProperty() { } - public string Name { get { throw null; } set { } } - } - public partial class ScheduleCreateOrUpdateContent - { - public ScheduleCreateOrUpdateContent(string name, System.DateTimeOffset startOn, Azure.ResourceManager.Automation.Models.ScheduleFrequency frequency) { } - public Azure.ResourceManager.Automation.Models.AdvancedSchedule AdvancedSchedule { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public System.DateTimeOffset? ExpiryOn { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ScheduleFrequency Frequency { get { throw null; } } - public System.BinaryData Interval { get { throw null; } set { } } - public string Name { get { throw null; } } - public System.DateTimeOffset StartOn { get { throw null; } } - public string TimeZone { get { throw null; } set { } } - } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ScheduleDay : System.IEquatable + public partial class RunbookTestJob { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ScheduleDay(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.ScheduleDay Friday { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ScheduleDay Monday { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ScheduleDay Saturday { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ScheduleDay Sunday { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ScheduleDay Thursday { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ScheduleDay Tuesday { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ScheduleDay Wednesday { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.ScheduleDay other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.ScheduleDay left, Azure.ResourceManager.Automation.Models.ScheduleDay right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.ScheduleDay (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.ScheduleDay left, Azure.ResourceManager.Automation.Models.ScheduleDay right) { throw null; } - public override string ToString() { throw null; } + internal RunbookTestJob() { } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public System.DateTimeOffset? EndOn { get { throw null; } } + public string Exception { get { throw null; } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } } + public System.DateTimeOffset? LastStatusModifiedOn { get { throw null; } } + public int? LogActivityTrace { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Parameters { get { throw null; } } + public string RunOn { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } + public string Status { get { throw null; } } + public string StatusDetails { get { throw null; } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct ScheduleFrequency : System.IEquatable + public partial class RunbookTestJobCreateContent { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public ScheduleFrequency(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.ScheduleFrequency Day { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ScheduleFrequency Hour { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ScheduleFrequency Minute { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ScheduleFrequency Month { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ScheduleFrequency OneTime { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.ScheduleFrequency Week { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.ScheduleFrequency other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.ScheduleFrequency left, Azure.ResourceManager.Automation.Models.ScheduleFrequency right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.ScheduleFrequency (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.ScheduleFrequency left, Azure.ResourceManager.Automation.Models.ScheduleFrequency right) { throw null; } - public override string ToString() { throw null; } + public RunbookTestJobCreateContent() { } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + public string RunOn { get { throw null; } set { } } } - public partial class SchedulePatch + public partial class ScheduleAssociationProperty { - public SchedulePatch() { } - public string Description { get { throw null; } set { } } - public bool? IsEnabled { get { throw null; } set { } } + public ScheduleAssociationProperty() { } public string Name { get { throw null; } set { } } } - [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SkuNameEnum : System.IEquatable - { - private readonly object _dummy; - private readonly int _dummyPrimitive; - public SkuNameEnum(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.SkuNameEnum Basic { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.SkuNameEnum Free { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.SkuNameEnum other) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override bool Equals(object obj) { throw null; } - [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] - public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.SkuNameEnum left, Azure.ResourceManager.Automation.Models.SkuNameEnum right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.SkuNameEnum (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.SkuNameEnum left, Azure.ResourceManager.Automation.Models.SkuNameEnum right) { throw null; } - public override string ToString() { throw null; } - } public partial class SoftwareUpdateConfigurationCollectionItem { internal SoftwareUpdateConfigurationCollectionItem() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } - public Azure.ResourceManager.Automation.Models.ScheduleFrequency? Frequency { get { throw null; } } - public string Id { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency? Frequency { get { throw null; } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } } public string Name { get { throw null; } } - public System.DateTimeOffset? NextRun { get { throw null; } } + public System.DateTimeOffset? NextRunOn { get { throw null; } } public string ProvisioningState { get { throw null; } } public System.DateTimeOffset? StartOn { get { throw null; } } public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationTasks Tasks { get { throw null; } } - public Azure.ResourceManager.Automation.Models.UpdateConfiguration UpdateConfiguration { get { throw null; } } + public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationSpecificProperties UpdateConfiguration { get { throw null; } } } public partial class SoftwareUpdateConfigurationMachineRun { @@ -2304,9 +2409,9 @@ internal SoftwareUpdateConfigurationMachineRun() { } public string CreatedBy { get { throw null; } } public System.DateTimeOffset? CreatedOn { get { throw null; } } public System.DateTimeOffset? EndOn { get { throw null; } } - public Azure.ResourceManager.Automation.Models.ErrorResponse Error { get { throw null; } } - public string Id { get { throw null; } } - public Azure.Core.ResourceIdentifier JobId { get { throw null; } } + public Azure.ResourceManager.Automation.Models.AutomationResponseError Error { get { throw null; } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public System.Guid? JobId { get { throw null; } } public string LastModifiedBy { get { throw null; } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } } public string Name { get { throw null; } } @@ -2315,9 +2420,14 @@ internal SoftwareUpdateConfigurationMachineRun() { } public System.Guid? SourceComputerId { get { throw null; } } public System.DateTimeOffset? StartOn { get { throw null; } } public string Status { get { throw null; } } - public string TargetComputer { get { throw null; } } + public Azure.Core.ResourceIdentifier TargetComputerId { get { throw null; } } public string TargetComputerType { get { throw null; } } } + public enum SoftwareUpdateConfigurationOperatingSystemType + { + Windows = 0, + Linux = 1, + } public partial class SoftwareUpdateConfigurationRun { internal SoftwareUpdateConfigurationRun() { } @@ -2327,7 +2437,7 @@ internal SoftwareUpdateConfigurationRun() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public System.DateTimeOffset? EndOn { get { throw null; } } public int? FailedCount { get { throw null; } } - public string Id { get { throw null; } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } public string LastModifiedBy { get { throw null; } } public System.DateTimeOffset? LastModifiedOn { get { throw null; } } public string Name { get { throw null; } } @@ -2340,7 +2450,7 @@ internal SoftwareUpdateConfigurationRun() { } public partial class SoftwareUpdateConfigurationRunTaskProperties { internal SoftwareUpdateConfigurationRunTaskProperties() { } - public string JobId { get { throw null; } } + public System.Guid? JobId { get { throw null; } } public string Source { get { throw null; } } public string Status { get { throw null; } } } @@ -2350,345 +2460,230 @@ internal SoftwareUpdateConfigurationRunTasks() { } public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationRunTaskProperties PostTask { get { throw null; } } public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationRunTaskProperties PreTask { get { throw null; } } } - public partial class SoftwareUpdateConfigurationTasks - { - public SoftwareUpdateConfigurationTasks() { } - public Azure.ResourceManager.Automation.Models.TaskProperties PostTask { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.TaskProperties PreTask { get { throw null; } set { } } - } - public partial class SourceControlCreateOrUpdateContent + public partial class SoftwareUpdateConfigurationScheduleProperties { - public SourceControlCreateOrUpdateContent() { } - public bool? AutoSync { get { throw null; } set { } } - public string Branch { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public string FolderPath { get { throw null; } set { } } - public bool? PublishRunbook { get { throw null; } set { } } - public System.Uri RepoUri { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.SourceControlSecurityTokenProperties SecurityToken { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.SourceType? SourceType { get { throw null; } set { } } - } - public partial class SourceControlPatch - { - public SourceControlPatch() { } - public bool? AutoSync { get { throw null; } set { } } - public string Branch { get { throw null; } set { } } + public SoftwareUpdateConfigurationScheduleProperties() { } + public Azure.ResourceManager.Automation.Models.AutomationAdvancedSchedule AdvancedSchedule { get { throw null; } set { } } + public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } public string Description { get { throw null; } set { } } - public string FolderPath { get { throw null; } set { } } - public bool? PublishRunbook { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.SourceControlSecurityTokenProperties SecurityToken { get { throw null; } set { } } - } - public partial class SourceControlSecurityTokenProperties - { - public SourceControlSecurityTokenProperties() { } - public string AccessToken { get { throw null; } set { } } - public string RefreshToken { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.TokenType? TokenType { get { throw null; } set { } } - } - public partial class SourceControlSyncJob : Azure.ResourceManager.Models.ResourceData - { - internal SourceControlSyncJob() { } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } } - public Azure.ResourceManager.Automation.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public string SourceControlSyncJobId { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public Azure.ResourceManager.Automation.Models.SyncType? SyncType { get { throw null; } } + public double? ExpireInMinutes { get { throw null; } set { } } + public System.DateTimeOffset? ExpireOn { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.AutomationScheduleFrequency? Frequency { get { throw null; } set { } } + public long? Interval { get { throw null; } set { } } + public bool? IsEnabled { get { throw null; } set { } } + public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } + public double? NextRunInMinutes { get { throw null; } set { } } + public System.DateTimeOffset? NextRunOn { get { throw null; } set { } } + public double? StartInMinutes { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } set { } } + public string TimeZone { get { throw null; } set { } } } - public partial class SourceControlSyncJobById + public partial class SoftwareUpdateConfigurationSpecificProperties { - internal SourceControlSyncJobById() { } - public System.DateTimeOffset? CreatedOn { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } } - public string Exception { get { throw null; } } - public string Id { get { throw null; } } - public Azure.ResourceManager.Automation.Models.ProvisioningState? ProvisioningState { get { throw null; } } - public string SourceControlSyncJobId { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } - public Azure.ResourceManager.Automation.Models.SyncType? SyncType { get { throw null; } } + public SoftwareUpdateConfigurationSpecificProperties(Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationOperatingSystemType operatingSystem) { } + public System.Collections.Generic.IList AzureVirtualMachines { get { throw null; } } + public System.TimeSpan? Duration { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.LinuxUpdateConfigurationProperties Linux { get { throw null; } set { } } + public System.Collections.Generic.IList NonAzureComputerNames { get { throw null; } } + public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationOperatingSystemType OperatingSystem { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationTargetProperties Targets { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.WindowsUpdateConfigurationProperties Windows { get { throw null; } set { } } } - public partial class SourceControlSyncJobCreateContent + public partial class SoftwareUpdateConfigurationTargetProperties { - public SourceControlSyncJobCreateContent(string commitId) { } - public string CommitId { get { throw null; } } + public SoftwareUpdateConfigurationTargetProperties() { } + public System.Collections.Generic.IList AzureQueries { get { throw null; } } + public System.Collections.Generic.IList NonAzureQueries { get { throw null; } } } - public partial class SourceControlSyncJobStream + public partial class SoftwareUpdateConfigurationTaskProperties { - internal SourceControlSyncJobStream() { } - public string Id { get { throw null; } } - public string SourceControlSyncJobStreamId { get { throw null; } } - public Azure.ResourceManager.Automation.Models.StreamType? StreamType { get { throw null; } } - public string Summary { get { throw null; } } - public System.DateTimeOffset? Time { get { throw null; } } + public SoftwareUpdateConfigurationTaskProperties() { } + public System.Collections.Generic.IDictionary Parameters { get { throw null; } } + public string Source { get { throw null; } set { } } } - public partial class SourceControlSyncJobStreamById + public partial class SoftwareUpdateConfigurationTasks { - internal SourceControlSyncJobStreamById() { } - public string Id { get { throw null; } } - public string SourceControlSyncJobStreamId { get { throw null; } } - public string StreamText { get { throw null; } } - public Azure.ResourceManager.Automation.Models.StreamType? StreamType { get { throw null; } } - public string Summary { get { throw null; } } - public System.DateTimeOffset? Time { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Value { get { throw null; } } + public SoftwareUpdateConfigurationTasks() { } + public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationTaskProperties PostTask { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.SoftwareUpdateConfigurationTaskProperties PreTask { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SourceType : System.IEquatable + public readonly partial struct SourceControlProvisioningState : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public SourceType(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.SourceType GitHub { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.SourceType VsoGit { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.SourceType VsoTfvc { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.SourceType other) { throw null; } + public SourceControlProvisioningState(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.SourceControlProvisioningState Completed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.SourceControlProvisioningState Failed { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.SourceControlProvisioningState Running { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.SourceControlProvisioningState other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.SourceType left, Azure.ResourceManager.Automation.Models.SourceType right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.SourceType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.SourceType left, Azure.ResourceManager.Automation.Models.SourceType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.SourceControlProvisioningState left, Azure.ResourceManager.Automation.Models.SourceControlProvisioningState right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.SourceControlProvisioningState (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.SourceControlProvisioningState left, Azure.ResourceManager.Automation.Models.SourceControlProvisioningState right) { throw null; } public override string ToString() { throw null; } } - public partial class Statistics + public partial class SourceControlSecurityTokenProperties { - internal Statistics() { } - public string CounterProperty { get { throw null; } } - public long? CounterValue { get { throw null; } } - public System.DateTimeOffset? EndOn { get { throw null; } } - public string Id { get { throw null; } } - public System.DateTimeOffset? StartOn { get { throw null; } } + public SourceControlSecurityTokenProperties() { } + public string AccessToken { get { throw null; } set { } } + public string RefreshToken { get { throw null; } set { } } + public Azure.ResourceManager.Automation.Models.SourceControlTokenType? TokenType { get { throw null; } set { } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct StreamType : System.IEquatable + public readonly partial struct SourceControlSourceType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public StreamType(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.StreamType Error { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.StreamType Output { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.StreamType other) { throw null; } + public SourceControlSourceType(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.SourceControlSourceType GitHub { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.SourceControlSourceType VsoGit { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.SourceControlSourceType VsoTfvc { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.SourceControlSourceType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.StreamType left, Azure.ResourceManager.Automation.Models.StreamType right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.StreamType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.StreamType left, Azure.ResourceManager.Automation.Models.StreamType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.SourceControlSourceType left, Azure.ResourceManager.Automation.Models.SourceControlSourceType right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.SourceControlSourceType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.SourceControlSourceType left, Azure.ResourceManager.Automation.Models.SourceControlSourceType right) { throw null; } public override string ToString() { throw null; } } - public partial class SUCScheduleProperties - { - public SUCScheduleProperties() { } - public Azure.ResourceManager.Automation.Models.AdvancedSchedule AdvancedSchedule { get { throw null; } set { } } - public System.DateTimeOffset? CreatedOn { get { throw null; } set { } } - public string Description { get { throw null; } set { } } - public System.DateTimeOffset? ExpiryOn { get { throw null; } set { } } - public double? ExpiryTimeOffsetMinutes { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.ScheduleFrequency? Frequency { get { throw null; } set { } } - public long? Interval { get { throw null; } set { } } - public bool? IsEnabled { get { throw null; } set { } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } set { } } - public System.DateTimeOffset? NextRun { get { throw null; } set { } } - public double? NextRunOffsetMinutes { get { throw null; } set { } } - public System.DateTimeOffset? StartOn { get { throw null; } set { } } - public double? StartTimeOffsetMinutes { get { throw null; } } - public string TimeZone { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct SyncType : System.IEquatable + public readonly partial struct SourceControlStreamType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public SyncType(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.SyncType FullSync { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.SyncType PartialSync { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.SyncType other) { throw null; } + public SourceControlStreamType(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.SourceControlStreamType Error { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.SourceControlStreamType Output { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.SourceControlStreamType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.SyncType left, Azure.ResourceManager.Automation.Models.SyncType right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.SyncType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.SyncType left, Azure.ResourceManager.Automation.Models.SyncType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.SourceControlStreamType left, Azure.ResourceManager.Automation.Models.SourceControlStreamType right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.SourceControlStreamType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.SourceControlStreamType left, Azure.ResourceManager.Automation.Models.SourceControlStreamType right) { throw null; } public override string ToString() { throw null; } } - public enum TagOperator - { - All = 0, - Any = 1, - } - public partial class TagSettingsProperties - { - public TagSettingsProperties() { } - public Azure.ResourceManager.Automation.Models.TagOperator? FilterOperator { get { throw null; } set { } } - public System.Collections.Generic.IDictionary> Tags { get { throw null; } } - } - public partial class TargetProperties + public partial class SourceControlSyncJob : Azure.ResourceManager.Models.ResourceData { - public TargetProperties() { } - public System.Collections.Generic.IList AzureQueries { get { throw null; } } - public System.Collections.Generic.IList NonAzureQueries { get { throw null; } } + internal SourceControlSyncJob() { } + public System.DateTimeOffset? CreatedOn { get { throw null; } } + public System.DateTimeOffset? EndOn { get { throw null; } } + public Azure.ResourceManager.Automation.Models.SourceControlProvisioningState? ProvisioningState { get { throw null; } } + public string SourceControlSyncJobId { get { throw null; } } + public System.DateTimeOffset? StartOn { get { throw null; } } + public Azure.ResourceManager.Automation.Models.SourceControlSyncType? SyncType { get { throw null; } } } - public partial class TaskProperties + public partial class SourceControlSyncJobCreateContent { - public TaskProperties() { } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public string Source { get { throw null; } set { } } + public SourceControlSyncJobCreateContent(string commitId) { } + public string CommitId { get { throw null; } } } - public partial class TestJob + public partial class SourceControlSyncJobResult { - internal TestJob() { } + internal SourceControlSyncJobResult() { } public System.DateTimeOffset? CreatedOn { get { throw null; } } public System.DateTimeOffset? EndOn { get { throw null; } } public string Exception { get { throw null; } } - public System.DateTimeOffset? LastModifiedOn { get { throw null; } } - public System.DateTimeOffset? LastStatusModifiedOn { get { throw null; } } - public int? LogActivityTrace { get { throw null; } } - public System.Collections.Generic.IReadOnlyDictionary Parameters { get { throw null; } } - public string RunOn { get { throw null; } } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public Azure.ResourceManager.Automation.Models.SourceControlProvisioningState? ProvisioningState { get { throw null; } } + public string SourceControlSyncJobId { get { throw null; } } public System.DateTimeOffset? StartOn { get { throw null; } } - public string Status { get { throw null; } } - public string StatusDetails { get { throw null; } } + public Azure.ResourceManager.Automation.Models.SourceControlSyncType? SyncType { get { throw null; } } } - public partial class TestJobCreateContent + public partial class SourceControlSyncJobStream { - public TestJobCreateContent() { } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public string RunOn { get { throw null; } set { } } + internal SourceControlSyncJobStream() { } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public string SourceControlSyncJobStreamId { get { throw null; } } + public Azure.ResourceManager.Automation.Models.SourceControlStreamType? StreamType { get { throw null; } } + public string Summary { get { throw null; } } + public System.DateTimeOffset? Time { get { throw null; } } + } + public partial class SourceControlSyncJobStreamResult + { + internal SourceControlSyncJobStreamResult() { } + public Azure.Core.ResourceIdentifier Id { get { throw null; } } + public string SourceControlSyncJobStreamId { get { throw null; } } + public string StreamText { get { throw null; } } + public Azure.ResourceManager.Automation.Models.SourceControlStreamType? StreamType { get { throw null; } } + public string Summary { get { throw null; } } + public System.DateTimeOffset? Time { get { throw null; } } + public System.Collections.Generic.IReadOnlyDictionary Value { get { throw null; } } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct TokenType : System.IEquatable + public readonly partial struct SourceControlSyncType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public TokenType(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.TokenType Oauth { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.TokenType PersonalAccessToken { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.TokenType other) { throw null; } + public SourceControlSyncType(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.SourceControlSyncType FullSync { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.SourceControlSyncType PartialSync { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.SourceControlSyncType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.TokenType left, Azure.ResourceManager.Automation.Models.TokenType right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.TokenType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.TokenType left, Azure.ResourceManager.Automation.Models.TokenType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.SourceControlSyncType left, Azure.ResourceManager.Automation.Models.SourceControlSyncType right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.SourceControlSyncType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.SourceControlSyncType left, Azure.ResourceManager.Automation.Models.SourceControlSyncType right) { throw null; } public override string ToString() { throw null; } } - public partial class TypeField - { - internal TypeField() { } - public string Name { get { throw null; } } - public string TypeFieldType { get { throw null; } } - } - public partial class UpdateConfiguration - { - public UpdateConfiguration(Azure.ResourceManager.Automation.Models.OperatingSystemType operatingSystem) { } - public System.Collections.Generic.IList AzureVirtualMachines { get { throw null; } } - public System.TimeSpan? Duration { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.LinuxProperties Linux { get { throw null; } set { } } - public System.Collections.Generic.IList NonAzureComputerNames { get { throw null; } } - public Azure.ResourceManager.Automation.Models.OperatingSystemType OperatingSystem { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.TargetProperties Targets { get { throw null; } set { } } - public Azure.ResourceManager.Automation.Models.WindowsProperties Windows { get { throw null; } set { } } - } - public partial class UsageCounterName - { - internal UsageCounterName() { } - public string LocalizedValue { get { throw null; } } - public string Value { get { throw null; } } - } - public partial class VariableCreateOrUpdateContent - { - public VariableCreateOrUpdateContent(string name) { } - public string Description { get { throw null; } set { } } - public bool? IsEncrypted { get { throw null; } set { } } - public string Name { get { throw null; } } - public string Value { get { throw null; } set { } } - } - public partial class VariablePatch - { - public VariablePatch() { } - public string Description { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public string Value { get { throw null; } set { } } - } - public partial class WatcherPatch - { - public WatcherPatch() { } - public long? ExecutionFrequencyInSeconds { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - } - public partial class WebhookCreateOrUpdateContent - { - public WebhookCreateOrUpdateContent(string name) { } - public System.DateTimeOffset? ExpiryOn { get { throw null; } set { } } - public bool? IsEnabled { get { throw null; } set { } } - public string Name { get { throw null; } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public string RunbookName { get { throw null; } set { } } - public string RunOn { get { throw null; } set { } } - public System.Uri Uri { get { throw null; } set { } } - } - public partial class WebhookPatch - { - public WebhookPatch() { } - public string Description { get { throw null; } set { } } - public bool? IsEnabled { get { throw null; } set { } } - public string Name { get { throw null; } set { } } - public System.Collections.Generic.IDictionary Parameters { get { throw null; } } - public string RunOn { get { throw null; } set { } } - } - public partial class WindowsProperties - { - public WindowsProperties() { } - public System.Collections.Generic.IList ExcludedKbNumbers { get { throw null; } } - public System.Collections.Generic.IList IncludedKbNumbers { get { throw null; } } - public Azure.ResourceManager.Automation.Models.WindowsUpdateClass? IncludedUpdateClassifications { get { throw null; } set { } } - public string RebootSetting { get { throw null; } set { } } - } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct WindowsUpdateClass : System.IEquatable + public readonly partial struct SourceControlTokenType : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public WindowsUpdateClass(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.WindowsUpdateClass Critical { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.WindowsUpdateClass Definition { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.WindowsUpdateClass FeaturePack { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.WindowsUpdateClass Security { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.WindowsUpdateClass ServicePack { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.WindowsUpdateClass Tools { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.WindowsUpdateClass Unclassified { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.WindowsUpdateClass UpdateRollup { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.WindowsUpdateClass Updates { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.WindowsUpdateClass other) { throw null; } + public SourceControlTokenType(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.SourceControlTokenType OAuth { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.SourceControlTokenType PersonalAccessToken { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.SourceControlTokenType other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.WindowsUpdateClass left, Azure.ResourceManager.Automation.Models.WindowsUpdateClass right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.WindowsUpdateClass (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.WindowsUpdateClass left, Azure.ResourceManager.Automation.Models.WindowsUpdateClass right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.SourceControlTokenType left, Azure.ResourceManager.Automation.Models.SourceControlTokenType right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.SourceControlTokenType (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.SourceControlTokenType left, Azure.ResourceManager.Automation.Models.SourceControlTokenType right) { throw null; } public override string ToString() { throw null; } } [System.Runtime.InteropServices.StructLayoutAttribute(System.Runtime.InteropServices.LayoutKind.Sequential)] - public readonly partial struct WorkerType : System.IEquatable + public readonly partial struct WindowsUpdateClassification : System.IEquatable { private readonly object _dummy; private readonly int _dummyPrimitive; - public WorkerType(string value) { throw null; } - public static Azure.ResourceManager.Automation.Models.WorkerType HybridV1 { get { throw null; } } - public static Azure.ResourceManager.Automation.Models.WorkerType HybridV2 { get { throw null; } } - public bool Equals(Azure.ResourceManager.Automation.Models.WorkerType other) { throw null; } + public WindowsUpdateClassification(string value) { throw null; } + public static Azure.ResourceManager.Automation.Models.WindowsUpdateClassification Critical { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.WindowsUpdateClassification Definition { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.WindowsUpdateClassification FeaturePack { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.WindowsUpdateClassification Security { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.WindowsUpdateClassification ServicePack { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.WindowsUpdateClassification Tools { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.WindowsUpdateClassification Unclassified { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.WindowsUpdateClassification UpdateRollup { get { throw null; } } + public static Azure.ResourceManager.Automation.Models.WindowsUpdateClassification Updates { get { throw null; } } + public bool Equals(Azure.ResourceManager.Automation.Models.WindowsUpdateClassification other) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override bool Equals(object obj) { throw null; } [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Never)] public override int GetHashCode() { throw null; } - public static bool operator ==(Azure.ResourceManager.Automation.Models.WorkerType left, Azure.ResourceManager.Automation.Models.WorkerType right) { throw null; } - public static implicit operator Azure.ResourceManager.Automation.Models.WorkerType (string value) { throw null; } - public static bool operator !=(Azure.ResourceManager.Automation.Models.WorkerType left, Azure.ResourceManager.Automation.Models.WorkerType right) { throw null; } + public static bool operator ==(Azure.ResourceManager.Automation.Models.WindowsUpdateClassification left, Azure.ResourceManager.Automation.Models.WindowsUpdateClassification right) { throw null; } + public static implicit operator Azure.ResourceManager.Automation.Models.WindowsUpdateClassification (string value) { throw null; } + public static bool operator !=(Azure.ResourceManager.Automation.Models.WindowsUpdateClassification left, Azure.ResourceManager.Automation.Models.WindowsUpdateClassification right) { throw null; } public override string ToString() { throw null; } } + public partial class WindowsUpdateConfigurationProperties + { + public WindowsUpdateConfigurationProperties() { } + public System.Collections.Generic.IList ExcludedKBNumbers { get { throw null; } } + public System.Collections.Generic.IList IncludedKBNumbers { get { throw null; } } + public Azure.ResourceManager.Automation.Models.WindowsUpdateClassification? IncludedUpdateClassifications { get { throw null; } set { } } + public string RebootSetting { get { throw null; } set { } } + } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountData.cs index ce527c9380693..8b3b88de80d01 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountData.cs @@ -41,10 +41,10 @@ public AutomationAccountData(AzureLocation location) : base(location) /// Gets or sets the description. /// Encryption properties for the automation account. /// List of Automation operations supported by the Automation resource provider. - /// Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet. - /// Indicates whether requests using non-AAD authentication are blocked. + /// Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet. + /// Indicates whether requests using non-AAD authentication are blocked. /// URL of automation hybrid service which is used for hybrid worker on-boarding. - internal AutomationAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ManagedServiceIdentity identity, AutomationSku sku, string lastModifiedBy, AutomationAccountState? state, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description, Models.EncryptionProperties encryption, IList privateEndpointConnections, bool? publicNetworkAccess, bool? disableLocalAuth, Uri automationHybridServiceUri) : base(id, name, resourceType, systemData, tags, location) + internal AutomationAccountData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, ManagedServiceIdentity identity, AutomationSku sku, string lastModifiedBy, AutomationAccountState? state, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description, AutomationEncryptionProperties encryption, IList privateEndpointConnections, bool? isPublicNetworkAccessAllowed, bool? isLocalAuthDisabled, Uri automationHybridServiceUri) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; Identity = identity; @@ -56,8 +56,8 @@ internal AutomationAccountData(ResourceIdentifier id, string name, ResourceType Description = description; Encryption = encryption; PrivateEndpointConnections = privateEndpointConnections; - PublicNetworkAccess = publicNetworkAccess; - DisableLocalAuth = disableLocalAuth; + IsPublicNetworkAccessAllowed = isPublicNetworkAccessAllowed; + IsLocalAuthDisabled = isLocalAuthDisabled; AutomationHybridServiceUri = automationHybridServiceUri; } @@ -78,13 +78,13 @@ internal AutomationAccountData(ResourceIdentifier id, string name, ResourceType /// Gets or sets the description. public string Description { get; set; } /// Encryption properties for the automation account. - public Models.EncryptionProperties Encryption { get; set; } + public AutomationEncryptionProperties Encryption { get; set; } /// List of Automation operations supported by the Automation resource provider. public IList PrivateEndpointConnections { get; } /// Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet. - public bool? PublicNetworkAccess { get; set; } + public bool? IsPublicNetworkAccessAllowed { get; set; } /// Indicates whether requests using non-AAD authentication are blocked. - public bool? DisableLocalAuth { get; set; } + public bool? IsLocalAuthDisabled { get; set; } /// URL of automation hybrid service which is used for hybrid worker on-boarding. public Uri AutomationHybridServiceUri { get; set; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs index ae129b09dd759..430bd44fd2e54 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountModuleResource.cs @@ -41,7 +41,7 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ObjectDataTypesRestOperations _objectDataTypesRestClient; private readonly ClientDiagnostics _fieldsClientDiagnostics; private readonly FieldsRestOperations _fieldsRestClient; - private readonly ModuleData _data; + private readonly AutomationModuleData _data; /// Initializes a new instance of the class for mocking. protected AutomationAccountModuleResource() @@ -51,7 +51,7 @@ protected AutomationAccountModuleResource() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal AutomationAccountModuleResource(ArmClient client, ModuleData data) : this(client, data.Id) + internal AutomationAccountModuleResource(ArmClient client, AutomationModuleData data) : this(client, data.Id) { HasData = true; _data = data; @@ -84,7 +84,7 @@ internal AutomationAccountModuleResource(ArmClient client, ResourceIdentifier id /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ModuleData Data + public virtual AutomationModuleData Data { get { @@ -261,7 +261,7 @@ public virtual Response Update(AutomationAccoun /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetActivityAsync(string activityName, CancellationToken cancellationToken = default) + public virtual async Task> GetActivityAsync(string activityName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(activityName, nameof(activityName)); @@ -288,7 +288,7 @@ public virtual async Task> GetActivityAsync(string activityNa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetActivity(string activityName, CancellationToken cancellationToken = default) + public virtual Response GetActivity(string activityName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(activityName, nameof(activityName)); @@ -312,10 +312,10 @@ public virtual Response GetActivity(string activityName, CancellationT /// Operation Id: Activity_ListByModule /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetActivitiesAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetActivitiesAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { using var scope = _activityClientDiagnostics.CreateScope("AutomationAccountModuleResource.GetActivities"); scope.Start(); @@ -330,7 +330,7 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _activityClientDiagnostics.CreateScope("AutomationAccountModuleResource.GetActivities"); scope.Start(); @@ -354,10 +354,10 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint) /// Operation Id: Activity_ListByModule /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetActivities(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetActivities(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { using var scope = _activityClientDiagnostics.CreateScope("AutomationAccountModuleResource.GetActivities"); scope.Start(); @@ -372,7 +372,7 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { using var scope = _activityClientDiagnostics.CreateScope("AutomationAccountModuleResource.GetActivities"); scope.Start(); @@ -399,14 +399,14 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetFieldsByModuleAndTypeObjectDataTypesAsync(string typeName, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetFieldsByModuleAndTypeAsync(string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _objectDataTypesClientDiagnostics.CreateScope("AutomationAccountModuleResource.GetFieldsByModuleAndTypeObjectDataTypes"); + using var scope = _objectDataTypesClientDiagnostics.CreateScope("AutomationAccountModuleResource.GetFieldsByModuleAndType"); scope.Start(); try { @@ -431,14 +431,14 @@ async Task> FirstPageFunc(int? pageSizeHint) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetFieldsByModuleAndTypeObjectDataTypes(string typeName, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetFieldsByModuleAndType(string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _objectDataTypesClientDiagnostics.CreateScope("AutomationAccountModuleResource.GetFieldsByModuleAndTypeObjectDataTypes"); + using var scope = _objectDataTypesClientDiagnostics.CreateScope("AutomationAccountModuleResource.GetFieldsByModuleAndType"); scope.Start(); try { @@ -463,12 +463,12 @@ Page FirstPageFunc(int? pageSizeHint) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetFieldsByTypeAsync(string typeName, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetFieldsByTypeAsync(string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { using var scope = _fieldsClientDiagnostics.CreateScope("AutomationAccountModuleResource.GetFieldsByType"); scope.Start(); @@ -495,12 +495,12 @@ async Task> FirstPageFunc(int? pageSizeHint) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetFieldsByType(string typeName, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetFieldsByType(string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { using var scope = _fieldsClientDiagnostics.CreateScope("AutomationAccountModuleResource.GetFieldsByType"); scope.Start(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs index 16de47fa9ccdb..211293eb368bd 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountPython2PackageResource.cs @@ -35,7 +35,7 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly ClientDiagnostics _automationAccountPython2PackagePython2PackageClientDiagnostics; private readonly Python2PackageRestOperations _automationAccountPython2PackagePython2PackageRestClient; - private readonly ModuleData _data; + private readonly AutomationModuleData _data; /// Initializes a new instance of the class for mocking. protected AutomationAccountPython2PackageResource() @@ -45,7 +45,7 @@ protected AutomationAccountPython2PackageResource() /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal AutomationAccountPython2PackageResource(ArmClient client, ModuleData data) : this(client, data.Id) + internal AutomationAccountPython2PackageResource(ArmClient client, AutomationModuleData data) : this(client, data.Id) { HasData = true; _data = data; @@ -72,7 +72,7 @@ internal AutomationAccountPython2PackageResource(ArmClient client, ResourceIdent /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ModuleData Data + public virtual AutomationModuleData Data { get { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs index 9c141cf981deb..1f53adc0e5125 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationAccountResource.cs @@ -62,8 +62,8 @@ public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, private readonly SoftwareUpdateConfigurationRunsRestOperations _softwareUpdateConfigurationRunsRestClient; private readonly ClientDiagnostics _softwareUpdateConfigurationMachineRunsClientDiagnostics; private readonly SoftwareUpdateConfigurationMachineRunsRestOperations _softwareUpdateConfigurationMachineRunsRestClient; - private readonly ClientDiagnostics _webhookClientDiagnostics; - private readonly WebhookRestOperations _webhookRestClient; + private readonly ClientDiagnostics _automationWebhookWebhookClientDiagnostics; + private readonly WebhookRestOperations _automationWebhookWebhookRestClient; private readonly AutomationAccountData _data; /// Initializes a new instance of the class for mocking. @@ -115,9 +115,9 @@ internal AutomationAccountResource(ArmClient client, ResourceIdentifier id) : ba _softwareUpdateConfigurationRunsRestClient = new SoftwareUpdateConfigurationRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _softwareUpdateConfigurationMachineRunsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _softwareUpdateConfigurationMachineRunsRestClient = new SoftwareUpdateConfigurationMachineRunsRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); - _webhookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", WebhookResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WebhookResource.ResourceType, out string webhookApiVersion); - _webhookRestClient = new WebhookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, webhookApiVersion); + _automationWebhookWebhookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationWebhookResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationWebhookResource.ResourceType, out string automationWebhookWebhookApiVersion); + _automationWebhookWebhookRestClient = new WebhookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationWebhookWebhookApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -369,11 +369,11 @@ public virtual Response GetDscCompilationJob(string c return GetDscCompilationJobs().Get(compilationJobName, cancellationToken); } - /// Gets a collection of SourceControlResources in the AutomationAccount. - /// An object representing collection of SourceControlResources and their operations over a SourceControlResource. - public virtual SourceControlCollection GetSourceControls() + /// Gets a collection of AutomationSourceControlResources in the AutomationAccount. + /// An object representing collection of AutomationSourceControlResources and their operations over a AutomationSourceControlResource. + public virtual AutomationSourceControlCollection GetAutomationSourceControls() { - return GetCachedClient(Client => new SourceControlCollection(Client, Id)); + return GetCachedClient(Client => new AutomationSourceControlCollection(Client, Id)); } /// @@ -386,9 +386,9 @@ public virtual SourceControlCollection GetSourceControls() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetSourceControlAsync(string sourceControlName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationSourceControlAsync(string sourceControlName, CancellationToken cancellationToken = default) { - return await GetSourceControls().GetAsync(sourceControlName, cancellationToken).ConfigureAwait(false); + return await GetAutomationSourceControls().GetAsync(sourceControlName, cancellationToken).ConfigureAwait(false); } /// @@ -401,16 +401,16 @@ public virtual async Task> GetSourceControlAsync /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetSourceControl(string sourceControlName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationSourceControl(string sourceControlName, CancellationToken cancellationToken = default) { - return GetSourceControls().Get(sourceControlName, cancellationToken); + return GetAutomationSourceControls().Get(sourceControlName, cancellationToken); } - /// Gets a collection of CertificateResources in the AutomationAccount. - /// An object representing collection of CertificateResources and their operations over a CertificateResource. - public virtual CertificateCollection GetCertificates() + /// Gets a collection of AutomationCertificateResources in the AutomationAccount. + /// An object representing collection of AutomationCertificateResources and their operations over a AutomationCertificateResource. + public virtual AutomationCertificateCollection GetAutomationCertificates() { - return GetCachedClient(Client => new CertificateCollection(Client, Id)); + return GetCachedClient(Client => new AutomationCertificateCollection(Client, Id)); } /// @@ -423,9 +423,9 @@ public virtual CertificateCollection GetCertificates() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetCertificateAsync(string certificateName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationCertificateAsync(string certificateName, CancellationToken cancellationToken = default) { - return await GetCertificates().GetAsync(certificateName, cancellationToken).ConfigureAwait(false); + return await GetAutomationCertificates().GetAsync(certificateName, cancellationToken).ConfigureAwait(false); } /// @@ -438,16 +438,16 @@ public virtual async Task> GetCertificateAsync(str /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetCertificate(string certificateName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationCertificate(string certificateName, CancellationToken cancellationToken = default) { - return GetCertificates().Get(certificateName, cancellationToken); + return GetAutomationCertificates().Get(certificateName, cancellationToken); } - /// Gets a collection of ConnectionResources in the AutomationAccount. - /// An object representing collection of ConnectionResources and their operations over a ConnectionResource. - public virtual ConnectionCollection GetConnections() + /// Gets a collection of AutomationConnectionResources in the AutomationAccount. + /// An object representing collection of AutomationConnectionResources and their operations over a AutomationConnectionResource. + public virtual AutomationConnectionCollection GetAutomationConnections() { - return GetCachedClient(Client => new ConnectionCollection(Client, Id)); + return GetCachedClient(Client => new AutomationConnectionCollection(Client, Id)); } /// @@ -460,9 +460,9 @@ public virtual ConnectionCollection GetConnections() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetConnectionAsync(string connectionName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationConnectionAsync(string connectionName, CancellationToken cancellationToken = default) { - return await GetConnections().GetAsync(connectionName, cancellationToken).ConfigureAwait(false); + return await GetAutomationConnections().GetAsync(connectionName, cancellationToken).ConfigureAwait(false); } /// @@ -475,16 +475,16 @@ public virtual async Task> GetConnectionAsync(strin /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetConnection(string connectionName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationConnection(string connectionName, CancellationToken cancellationToken = default) { - return GetConnections().Get(connectionName, cancellationToken); + return GetAutomationConnections().Get(connectionName, cancellationToken); } - /// Gets a collection of ConnectionTypeResources in the AutomationAccount. - /// An object representing collection of ConnectionTypeResources and their operations over a ConnectionTypeResource. - public virtual ConnectionTypeCollection GetConnectionTypes() + /// Gets a collection of AutomationConnectionTypeResources in the AutomationAccount. + /// An object representing collection of AutomationConnectionTypeResources and their operations over a AutomationConnectionTypeResource. + public virtual AutomationConnectionTypeCollection GetAutomationConnectionTypes() { - return GetCachedClient(Client => new ConnectionTypeCollection(Client, Id)); + return GetCachedClient(Client => new AutomationConnectionTypeCollection(Client, Id)); } /// @@ -497,9 +497,9 @@ public virtual ConnectionTypeCollection GetConnectionTypes() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetConnectionTypeAsync(string connectionTypeName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationConnectionTypeAsync(string connectionTypeName, CancellationToken cancellationToken = default) { - return await GetConnectionTypes().GetAsync(connectionTypeName, cancellationToken).ConfigureAwait(false); + return await GetAutomationConnectionTypes().GetAsync(connectionTypeName, cancellationToken).ConfigureAwait(false); } /// @@ -512,16 +512,16 @@ public virtual async Task> GetConnectionTypeAsy /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetConnectionType(string connectionTypeName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationConnectionType(string connectionTypeName, CancellationToken cancellationToken = default) { - return GetConnectionTypes().Get(connectionTypeName, cancellationToken); + return GetAutomationConnectionTypes().Get(connectionTypeName, cancellationToken); } - /// Gets a collection of CredentialResources in the AutomationAccount. - /// An object representing collection of CredentialResources and their operations over a CredentialResource. - public virtual CredentialCollection GetCredentials() + /// Gets a collection of AutomationCredentialResources in the AutomationAccount. + /// An object representing collection of AutomationCredentialResources and their operations over a AutomationCredentialResource. + public virtual AutomationCredentialCollection GetAutomationCredentials() { - return GetCachedClient(Client => new CredentialCollection(Client, Id)); + return GetCachedClient(Client => new AutomationCredentialCollection(Client, Id)); } /// @@ -534,9 +534,9 @@ public virtual CredentialCollection GetCredentials() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetCredentialAsync(string credentialName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationCredentialAsync(string credentialName, CancellationToken cancellationToken = default) { - return await GetCredentials().GetAsync(credentialName, cancellationToken).ConfigureAwait(false); + return await GetAutomationCredentials().GetAsync(credentialName, cancellationToken).ConfigureAwait(false); } /// @@ -549,16 +549,16 @@ public virtual async Task> GetCredentialAsync(strin /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetCredential(string credentialName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationCredential(string credentialName, CancellationToken cancellationToken = default) { - return GetCredentials().Get(credentialName, cancellationToken); + return GetAutomationCredentials().Get(credentialName, cancellationToken); } - /// Gets a collection of JobScheduleResources in the AutomationAccount. - /// An object representing collection of JobScheduleResources and their operations over a JobScheduleResource. - public virtual JobScheduleCollection GetJobSchedules() + /// Gets a collection of AutomationJobScheduleResources in the AutomationAccount. + /// An object representing collection of AutomationJobScheduleResources and their operations over a AutomationJobScheduleResource. + public virtual AutomationJobScheduleCollection GetAutomationJobSchedules() { - return GetCachedClient(Client => new JobScheduleCollection(Client, Id)); + return GetCachedClient(Client => new AutomationJobScheduleCollection(Client, Id)); } /// @@ -569,9 +569,9 @@ public virtual JobScheduleCollection GetJobSchedules() /// The job schedule name. /// The cancellation token to use. [ForwardsClientCalls] - public virtual async Task> GetJobScheduleAsync(Guid jobScheduleId, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationJobScheduleAsync(Guid jobScheduleId, CancellationToken cancellationToken = default) { - return await GetJobSchedules().GetAsync(jobScheduleId, cancellationToken).ConfigureAwait(false); + return await GetAutomationJobSchedules().GetAsync(jobScheduleId, cancellationToken).ConfigureAwait(false); } /// @@ -582,16 +582,16 @@ public virtual async Task> GetJobScheduleAsync(Gui /// The job schedule name. /// The cancellation token to use. [ForwardsClientCalls] - public virtual Response GetJobSchedule(Guid jobScheduleId, CancellationToken cancellationToken = default) + public virtual Response GetAutomationJobSchedule(Guid jobScheduleId, CancellationToken cancellationToken = default) { - return GetJobSchedules().Get(jobScheduleId, cancellationToken); + return GetAutomationJobSchedules().Get(jobScheduleId, cancellationToken); } - /// Gets a collection of ScheduleResources in the AutomationAccount. - /// An object representing collection of ScheduleResources and their operations over a ScheduleResource. - public virtual ScheduleCollection GetSchedules() + /// Gets a collection of AutomationScheduleResources in the AutomationAccount. + /// An object representing collection of AutomationScheduleResources and their operations over a AutomationScheduleResource. + public virtual AutomationScheduleCollection GetAutomationSchedules() { - return GetCachedClient(Client => new ScheduleCollection(Client, Id)); + return GetCachedClient(Client => new AutomationScheduleCollection(Client, Id)); } /// @@ -604,9 +604,9 @@ public virtual ScheduleCollection GetSchedules() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetScheduleAsync(string scheduleName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationScheduleAsync(string scheduleName, CancellationToken cancellationToken = default) { - return await GetSchedules().GetAsync(scheduleName, cancellationToken).ConfigureAwait(false); + return await GetAutomationSchedules().GetAsync(scheduleName, cancellationToken).ConfigureAwait(false); } /// @@ -619,16 +619,16 @@ public virtual async Task> GetScheduleAsync(string sc /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetSchedule(string scheduleName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationSchedule(string scheduleName, CancellationToken cancellationToken = default) { - return GetSchedules().Get(scheduleName, cancellationToken); + return GetAutomationSchedules().Get(scheduleName, cancellationToken); } - /// Gets a collection of VariableResources in the AutomationAccount. - /// An object representing collection of VariableResources and their operations over a VariableResource. - public virtual VariableCollection GetVariables() + /// Gets a collection of AutomationVariableResources in the AutomationAccount. + /// An object representing collection of AutomationVariableResources and their operations over a AutomationVariableResource. + public virtual AutomationVariableCollection GetAutomationVariables() { - return GetCachedClient(Client => new VariableCollection(Client, Id)); + return GetCachedClient(Client => new AutomationVariableCollection(Client, Id)); } /// @@ -641,9 +641,9 @@ public virtual VariableCollection GetVariables() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetVariableAsync(string variableName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationVariableAsync(string variableName, CancellationToken cancellationToken = default) { - return await GetVariables().GetAsync(variableName, cancellationToken).ConfigureAwait(false); + return await GetAutomationVariables().GetAsync(variableName, cancellationToken).ConfigureAwait(false); } /// @@ -656,16 +656,16 @@ public virtual async Task> GetVariableAsync(string va /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetVariable(string variableName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationVariable(string variableName, CancellationToken cancellationToken = default) { - return GetVariables().Get(variableName, cancellationToken); + return GetAutomationVariables().Get(variableName, cancellationToken); } - /// Gets a collection of WatcherResources in the AutomationAccount. - /// An object representing collection of WatcherResources and their operations over a WatcherResource. - public virtual WatcherCollection GetWatchers() + /// Gets a collection of AutomationWatcherResources in the AutomationAccount. + /// An object representing collection of AutomationWatcherResources and their operations over a AutomationWatcherResource. + public virtual AutomationWatcherCollection GetAutomationWatchers() { - return GetCachedClient(Client => new WatcherCollection(Client, Id)); + return GetCachedClient(Client => new AutomationWatcherCollection(Client, Id)); } /// @@ -678,9 +678,9 @@ public virtual WatcherCollection GetWatchers() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWatcherAsync(string watcherName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationWatcherAsync(string watcherName, CancellationToken cancellationToken = default) { - return await GetWatchers().GetAsync(watcherName, cancellationToken).ConfigureAwait(false); + return await GetAutomationWatchers().GetAsync(watcherName, cancellationToken).ConfigureAwait(false); } /// @@ -693,9 +693,9 @@ public virtual async Task> GetWatcherAsync(string watc /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWatcher(string watcherName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationWatcher(string watcherName, CancellationToken cancellationToken = default) { - return GetWatchers().Get(watcherName, cancellationToken); + return GetAutomationWatchers().Get(watcherName, cancellationToken); } /// Gets a collection of DscConfigurationResources in the AutomationAccount. @@ -735,11 +735,11 @@ public virtual Response GetDscConfiguration(string con return GetDscConfigurations().Get(configurationName, cancellationToken); } - /// Gets a collection of JobResources in the AutomationAccount. - /// An object representing collection of JobResources and their operations over a JobResource. - public virtual JobCollection GetJobs() + /// Gets a collection of AutomationJobResources in the AutomationAccount. + /// An object representing collection of AutomationJobResources and their operations over a AutomationJobResource. + public virtual AutomationJobCollection GetAutomationJobs() { - return GetCachedClient(Client => new JobCollection(Client, Id)); + return GetCachedClient(Client => new AutomationJobCollection(Client, Id)); } /// @@ -753,9 +753,9 @@ public virtual JobCollection GetJobs() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetJobAsync(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationJobAsync(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) { - return await GetJobs().GetAsync(jobName, clientRequestId, cancellationToken).ConfigureAwait(false); + return await GetAutomationJobs().GetAsync(jobName, clientRequestId, cancellationToken).ConfigureAwait(false); } /// @@ -769,9 +769,9 @@ public virtual async Task> GetJobAsync(string jobName, str /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetJob(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetAutomationJob(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) { - return GetJobs().Get(jobName, clientRequestId, cancellationToken); + return GetAutomationJobs().Get(jobName, clientRequestId, cancellationToken); } /// Gets a collection of SoftwareUpdateConfigurationResources in the AutomationAccount. @@ -813,11 +813,11 @@ public virtual Response GetSoftwareUpdateCo return GetSoftwareUpdateConfigurations().Get(softwareUpdateConfigurationName, clientRequestId, cancellationToken); } - /// Gets a collection of RunbookResources in the AutomationAccount. - /// An object representing collection of RunbookResources and their operations over a RunbookResource. - public virtual RunbookCollection GetRunbooks() + /// Gets a collection of AutomationRunbookResources in the AutomationAccount. + /// An object representing collection of AutomationRunbookResources and their operations over a AutomationRunbookResource. + public virtual AutomationRunbookCollection GetAutomationRunbooks() { - return GetCachedClient(Client => new RunbookCollection(Client, Id)); + return GetCachedClient(Client => new AutomationRunbookCollection(Client, Id)); } /// @@ -830,9 +830,9 @@ public virtual RunbookCollection GetRunbooks() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetRunbookAsync(string runbookName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationRunbookAsync(string runbookName, CancellationToken cancellationToken = default) { - return await GetRunbooks().GetAsync(runbookName, cancellationToken).ConfigureAwait(false); + return await GetAutomationRunbooks().GetAsync(runbookName, cancellationToken).ConfigureAwait(false); } /// @@ -845,16 +845,16 @@ public virtual async Task> GetRunbookAsync(string runb /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetRunbook(string runbookName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationRunbook(string runbookName, CancellationToken cancellationToken = default) { - return GetRunbooks().Get(runbookName, cancellationToken); + return GetAutomationRunbooks().Get(runbookName, cancellationToken); } - /// Gets a collection of WebhookResources in the AutomationAccount. - /// An object representing collection of WebhookResources and their operations over a WebhookResource. - public virtual WebhookCollection GetWebhooks() + /// Gets a collection of AutomationWebhookResources in the AutomationAccount. + /// An object representing collection of AutomationWebhookResources and their operations over a AutomationWebhookResource. + public virtual AutomationWebhookCollection GetAutomationWebhooks() { - return GetCachedClient(Client => new WebhookCollection(Client, Id)); + return GetCachedClient(Client => new AutomationWebhookCollection(Client, Id)); } /// @@ -867,9 +867,9 @@ public virtual WebhookCollection GetWebhooks() /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual async Task> GetWebhookAsync(string webhookName, CancellationToken cancellationToken = default) + public virtual async Task> GetAutomationWebhookAsync(string webhookName, CancellationToken cancellationToken = default) { - return await GetWebhooks().GetAsync(webhookName, cancellationToken).ConfigureAwait(false); + return await GetAutomationWebhooks().GetAsync(webhookName, cancellationToken).ConfigureAwait(false); } /// @@ -882,9 +882,9 @@ public virtual async Task> GetWebhookAsync(string webh /// is an empty string, and was expected to be non-empty. /// is null. [ForwardsClientCalls] - public virtual Response GetWebhook(string webhookName, CancellationToken cancellationToken = default) + public virtual Response GetAutomationWebhook(string webhookName, CancellationToken cancellationToken = default) { - return GetWebhooks().Get(webhookName, cancellationToken); + return GetAutomationWebhooks().Get(webhookName, cancellationToken); } /// Gets a collection of HybridRunbookWorkerGroupResources in the AutomationAccount. @@ -1179,18 +1179,18 @@ public virtual Response GetAgentRegistrationInformation(Cance /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation/regenerateKey /// Operation Id: AgentRegistrationInformation_RegenerateKey /// - /// The name of the agent registration key to be regenerated. + /// The name of the agent registration key to be regenerated. /// The cancellation token to use. - /// is null. - public virtual async Task> RegenerateKeyAgentRegistrationInformationAsync(AgentRegistrationRegenerateKeyParameter agentRegistrationRegenerateKeyParameter, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> RegenerateKeyAgentRegistrationInformationAsync(AgentRegistrationRegenerateKeyContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(agentRegistrationRegenerateKeyParameter, nameof(agentRegistrationRegenerateKeyParameter)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _agentRegistrationInformationClientDiagnostics.CreateScope("AutomationAccountResource.RegenerateKeyAgentRegistrationInformation"); scope.Start(); try { - var response = await _agentRegistrationInformationRestClient.RegenerateKeyAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, agentRegistrationRegenerateKeyParameter, cancellationToken).ConfigureAwait(false); + var response = await _agentRegistrationInformationRestClient.RegenerateKeyAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -1205,18 +1205,18 @@ public virtual async Task> RegenerateKeyAgentRegistr /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/agentRegistrationInformation/regenerateKey /// Operation Id: AgentRegistrationInformation_RegenerateKey /// - /// The name of the agent registration key to be regenerated. + /// The name of the agent registration key to be regenerated. /// The cancellation token to use. - /// is null. - public virtual Response RegenerateKeyAgentRegistrationInformation(AgentRegistrationRegenerateKeyParameter agentRegistrationRegenerateKeyParameter, CancellationToken cancellationToken = default) + /// is null. + public virtual Response RegenerateKeyAgentRegistrationInformation(AgentRegistrationRegenerateKeyContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(agentRegistrationRegenerateKeyParameter, nameof(agentRegistrationRegenerateKeyParameter)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _agentRegistrationInformationClientDiagnostics.CreateScope("AutomationAccountResource.RegenerateKeyAgentRegistrationInformation"); scope.Start(); try { - var response = _agentRegistrationInformationRestClient.RegenerateKey(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, agentRegistrationRegenerateKeyParameter, cancellationToken); + var response = _agentRegistrationInformationRestClient.RegenerateKey(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, content, cancellationToken); return response; } catch (Exception e) @@ -1236,7 +1236,7 @@ public virtual Response RegenerateKeyAgentRegistrationInforma /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetStreamDscCompilationJobAsync(Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) + public virtual async Task> GetStreamDscCompilationJobAsync(Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobStreamId, nameof(jobStreamId)); @@ -1264,7 +1264,7 @@ public virtual async Task> GetStreamDscCompilationJobAsync(G /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetStreamDscCompilationJob(Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) + public virtual Response GetStreamDscCompilationJob(Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobStreamId, nameof(jobStreamId)); @@ -1289,12 +1289,12 @@ public virtual Response GetStreamDscCompilationJob(Guid jobId, string /// /// The job id. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetDscCompilationJobStreamsByJobAsync(Guid jobId, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetDscCompilationJobStreamsAsync(Guid jobId, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _dscCompilationJobStreamClientDiagnostics.CreateScope("AutomationAccountResource.GetDscCompilationJobStreamsByJob"); + using var scope = _dscCompilationJobStreamClientDiagnostics.CreateScope("AutomationAccountResource.GetDscCompilationJobStreams"); scope.Start(); try { @@ -1317,12 +1317,12 @@ async Task> FirstPageFunc(int? pageSizeHint) /// /// The job id. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetDscCompilationJobStreamsByJob(Guid jobId, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetDscCompilationJobStreams(Guid jobId, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _dscCompilationJobStreamClientDiagnostics.CreateScope("AutomationAccountResource.GetDscCompilationJobStreamsByJob"); + using var scope = _dscCompilationJobStreamClientDiagnostics.CreateScope("AutomationAccountResource.GetDscCompilationJobStreams"); scope.Start(); try { @@ -1345,10 +1345,10 @@ Page FirstPageFunc(int? pageSizeHint) /// /// The type of counts to retrieve. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllNodeCountInformationAsync(CountType countType, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllNodeCountInformationAsync(AutomationCountType countType, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { using var scope = _nodeCountInformationClientDiagnostics.CreateScope("AutomationAccountResource.GetAllNodeCountInformation"); scope.Start(); @@ -1373,10 +1373,10 @@ async Task> FirstPageFunc(int? pageSizeHint) /// /// The type of counts to retrieve. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAllNodeCountInformation(CountType countType, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAllNodeCountInformation(AutomationCountType countType, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { using var scope = _nodeCountInformationClientDiagnostics.CreateScope("AutomationAccountResource.GetAllNodeCountInformation"); scope.Start(); @@ -1401,10 +1401,10 @@ Page FirstPageFunc(int? pageSizeHint) /// /// The filter to apply on the operation. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetStatisticsAsync(string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetStatisticsAsync(string filter = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { using var scope = _statisticsClientDiagnostics.CreateScope("AutomationAccountResource.GetStatistics"); scope.Start(); @@ -1429,10 +1429,10 @@ async Task> FirstPageFunc(int? pageSizeHint) /// /// The filter to apply on the operation. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetStatistics(string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetStatistics(string filter = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { using var scope = _statisticsClientDiagnostics.CreateScope("AutomationAccountResource.GetStatistics"); scope.Start(); @@ -1510,20 +1510,25 @@ Page FirstPageFunc(int? pageSizeHint) /// Operation Id: Keys_ListByAutomationAccount /// /// The cancellation token to use. - public virtual async Task> GetByAutomationAccountKeyAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAutomationAccountKeysAsync(CancellationToken cancellationToken = default) { - using var scope = _keysClientDiagnostics.CreateScope("AutomationAccountResource.GetByAutomationAccountKey"); - scope.Start(); - try - { - var response = await _keysRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); - return response; - } - catch (Exception e) + async Task> FirstPageFunc(int? pageSizeHint) { - scope.Failed(e); - throw; + using var scope = _keysClientDiagnostics.CreateScope("AutomationAccountResource.GetAutomationAccountKeys"); + scope.Start(); + try + { + var response = await _keysRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Keys, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } + return PageableHelpers.CreateAsyncEnumerable(FirstPageFunc, null); } /// @@ -1532,20 +1537,25 @@ public virtual async Task> GetByAutomationAccountKeyAsyn /// Operation Id: Keys_ListByAutomationAccount /// /// The cancellation token to use. - public virtual Response GetByAutomationAccountKey(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAutomationAccountKeys(CancellationToken cancellationToken = default) { - using var scope = _keysClientDiagnostics.CreateScope("AutomationAccountResource.GetByAutomationAccountKey"); - scope.Start(); - try - { - var response = _keysRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); - return response; - } - catch (Exception e) + Page FirstPageFunc(int? pageSizeHint) { - scope.Failed(e); - throw; + using var scope = _keysClientDiagnostics.CreateScope("AutomationAccountResource.GetAutomationAccountKeys"); + scope.Start(); + try + { + var response = _keysRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Keys, null, response.GetRawResponse()); + } + catch (Exception e) + { + scope.Failed(e); + throw; + } } + return PageableHelpers.CreateEnumerable(FirstPageFunc, null); } /// @@ -1554,7 +1564,7 @@ public virtual Response GetByAutomationAccountKey(CancellationTok /// Operation Id: LinkedWorkspace_Get /// /// The cancellation token to use. - public virtual async Task> GetLinkedWorkspaceAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetLinkedWorkspaceAsync(CancellationToken cancellationToken = default) { using var scope = _linkedWorkspaceClientDiagnostics.CreateScope("AutomationAccountResource.GetLinkedWorkspace"); scope.Start(); @@ -1576,7 +1586,7 @@ public virtual async Task> GetLinkedWorkspaceAsync(Can /// Operation Id: LinkedWorkspace_Get /// /// The cancellation token to use. - public virtual Response GetLinkedWorkspace(CancellationToken cancellationToken = default) + public virtual Response GetLinkedWorkspace(CancellationToken cancellationToken = default) { using var scope = _linkedWorkspaceClientDiagnostics.CreateScope("AutomationAccountResource.GetLinkedWorkspace"); scope.Start(); @@ -1601,14 +1611,14 @@ public virtual Response GetLinkedWorkspace(CancellationToken ca /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetFieldsByTypeObjectDataTypesAsync(string typeName, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetFieldsByTypeAsync(string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _objectDataTypesClientDiagnostics.CreateScope("AutomationAccountResource.GetFieldsByTypeObjectDataTypes"); + using var scope = _objectDataTypesClientDiagnostics.CreateScope("AutomationAccountResource.GetFieldsByType"); scope.Start(); try { @@ -1633,14 +1643,14 @@ async Task> FirstPageFunc(int? pageSizeHint) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetFieldsByTypeObjectDataTypes(string typeName, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetFieldsByType(string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(typeName, nameof(typeName)); - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _objectDataTypesClientDiagnostics.CreateScope("AutomationAccountResource.GetFieldsByTypeObjectDataTypes"); + using var scope = _objectDataTypesClientDiagnostics.CreateScope("AutomationAccountResource.GetFieldsByType"); scope.Start(); try { @@ -1716,9 +1726,9 @@ public virtual Response ConvertGraphRunbookContent(Grap /// The Id of the software update configuration run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual async Task> GetByIdSoftwareUpdateConfigurationRunAsync(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetSoftwareUpdateConfigurationRunAsync(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetByIdSoftwareUpdateConfigurationRun"); + using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationRun"); scope.Start(); try { @@ -1740,9 +1750,9 @@ public virtual async Task> GetByIdSoftw /// The Id of the software update configuration run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual Response GetByIdSoftwareUpdateConfigurationRun(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetSoftwareUpdateConfigurationRun(Guid softwareUpdateConfigurationRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetByIdSoftwareUpdateConfigurationRun"); + using var scope = _softwareUpdateConfigurationRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationRun"); scope.Start(); try { @@ -1826,9 +1836,9 @@ Page FirstPageFunc(int? pageSizeHint) /// The Id of the software update configuration machine run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual async Task> GetByIdSoftwareUpdateConfigurationMachineRunAsync(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetSoftwareUpdateConfigurationMachineRunAsync(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetByIdSoftwareUpdateConfigurationMachineRun"); + using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRun"); scope.Start(); try { @@ -1850,9 +1860,9 @@ public virtual async Task> GetBy /// The Id of the software update configuration machine run. /// Identifies this specific client request. /// The cancellation token to use. - public virtual Response GetByIdSoftwareUpdateConfigurationMachineRun(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetSoftwareUpdateConfigurationMachineRun(Guid softwareUpdateConfigurationMachineRunId, string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetByIdSoftwareUpdateConfigurationMachineRun"); + using var scope = _softwareUpdateConfigurationMachineRunsClientDiagnostics.CreateScope("AutomationAccountResource.GetSoftwareUpdateConfigurationMachineRun"); scope.Start(); try { @@ -1936,11 +1946,11 @@ Page FirstPageFunc(int? pageSizeHint) /// The cancellation token to use. public virtual async Task> GenerateUriWebhookAsync(CancellationToken cancellationToken = default) { - using var scope = _webhookClientDiagnostics.CreateScope("AutomationAccountResource.GenerateUriWebhook"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationAccountResource.GenerateUriWebhook"); scope.Start(); try { - var response = await _webhookRestClient.GenerateUriAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationWebhookWebhookRestClient.GenerateUriAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -1958,11 +1968,11 @@ public virtual async Task> GenerateUriWebhookAsync(Cancellation /// The cancellation token to use. public virtual Response GenerateUriWebhook(CancellationToken cancellationToken = default) { - using var scope = _webhookClientDiagnostics.CreateScope("AutomationAccountResource.GenerateUriWebhook"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationAccountResource.GenerateUriWebhook"); scope.Start(); try { - var response = _webhookRestClient.GenerateUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); + var response = _automationWebhookWebhookRestClient.GenerateUri(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CertificateCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs similarity index 61% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/CertificateCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs index f6733533f5a80..de86773a30cb6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CertificateCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetCertificates method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationCertificates method from an instance of . /// - public partial class CertificateCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationCertificateCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _certificateClientDiagnostics; - private readonly CertificateRestOperations _certificateRestClient; + private readonly ClientDiagnostics _automationCertificateCertificateClientDiagnostics; + private readonly CertificateRestOperations _automationCertificateCertificateRestClient; - /// Initializes a new instance of the class for mocking. - protected CertificateCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationCertificateCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal CertificateCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationCertificateCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _certificateClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", CertificateResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(CertificateResource.ResourceType, out string certificateApiVersion); - _certificateRestClient = new CertificateRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, certificateApiVersion); + _automationCertificateCertificateClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationCertificateResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationCertificateResource.ResourceType, out string automationCertificateCertificateApiVersion); + _automationCertificateCertificateRestClient = new CertificateRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationCertificateCertificateApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -65,17 +65,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string certificateName, CertificateCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string certificateName, AutomationCertificateCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(certificateName, nameof(certificateName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.CreateOrUpdate"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _certificateRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new CertificateResource(Client, response), response.GetRawResponse())); + var response = await _automationCertificateCertificateRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationCertificateResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -98,17 +98,17 @@ public virtual async Task> CreateOrUpdateAsync /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string certificateName, CertificateCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string certificateName, AutomationCertificateCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(certificateName, nameof(certificateName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.CreateOrUpdate"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateCollection.CreateOrUpdate"); scope.Start(); try { - var response = _certificateRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new CertificateResource(Client, response), response.GetRawResponse())); + var response = _automationCertificateCertificateRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationCertificateResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -129,18 +129,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string certificateName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string certificateName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(certificateName, nameof(certificateName)); - using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.Get"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateCollection.Get"); scope.Start(); try { - var response = await _certificateRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, cancellationToken).ConfigureAwait(false); + var response = await _automationCertificateCertificateRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CertificateResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationCertificateResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,18 +158,18 @@ public virtual async Task> GetAsync(string certifi /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string certificateName, CancellationToken cancellationToken = default) + public virtual Response Get(string certificateName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(certificateName, nameof(certificateName)); - using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.Get"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateCollection.Get"); scope.Start(); try { - var response = _certificateRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, cancellationToken); + var response = _automationCertificateCertificateRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CertificateResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationCertificateResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -184,17 +184,17 @@ public virtual Response Get(string certificateName, Cancell /// Operation Id: Certificate_ListByAutomationAccount /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.GetAll"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateCollection.GetAll"); scope.Start(); try { - var response = await _certificateRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new CertificateResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationCertificateCertificateRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationCertificateResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -202,14 +202,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.GetAll"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateCollection.GetAll"); scope.Start(); try { - var response = await _certificateRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new CertificateResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationCertificateCertificateRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationCertificateResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -226,17 +226,17 @@ async Task> NextPageFunc(string nextLink, int? pageSiz /// Operation Id: Certificate_ListByAutomationAccount /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.GetAll"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateCollection.GetAll"); scope.Start(); try { - var response = _certificateRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new CertificateResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationCertificateCertificateRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationCertificateResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -244,14 +244,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.GetAll"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateCollection.GetAll"); scope.Start(); try { - var response = _certificateRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new CertificateResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationCertificateCertificateRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationCertificateResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -275,11 +275,11 @@ public virtual async Task> ExistsAsync(string certificateName, Ca { Argument.AssertNotNullOrEmpty(certificateName, nameof(certificateName)); - using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.Exists"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateCollection.Exists"); scope.Start(); try { - var response = await _certificateRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationCertificateCertificateRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -302,11 +302,11 @@ public virtual Response Exists(string certificateName, CancellationToken c { Argument.AssertNotNullOrEmpty(certificateName, nameof(certificateName)); - using var scope = _certificateClientDiagnostics.CreateScope("CertificateCollection.Exists"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateCollection.Exists"); scope.Start(); try { - var response = _certificateRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, cancellationToken: cancellationToken); + var response = _automationCertificateCertificateRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, certificateName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,7 +316,7 @@ public virtual Response Exists(string certificateName, CancellationToken c } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -326,7 +326,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateData.cs new file mode 100644 index 0000000000000..2b26a72c2952c --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateData.cs @@ -0,0 +1,85 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; +using Azure.ResourceManager.Models; + +namespace Azure.ResourceManager.Automation +{ + /// A class representing the AutomationCertificate data model. + public partial class AutomationCertificateData : ResourceData + { + /// Initializes a new instance of AutomationCertificateData. + public AutomationCertificateData() + { + } + + /// Initializes a new instance of AutomationCertificateData. + /// The id. + /// The name. + /// The resourceType. + /// The systemData. + /// Gets the thumbprint of the certificate. + /// Gets the expiry time of the certificate. + /// Gets the is exportable flag of the certificate. + /// Gets the creation time. + /// Gets the last modified time. + /// Gets or sets the description. + internal AutomationCertificateData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, BinaryData thumbprint, DateTimeOffset? expireOn, bool? isExportable, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) + { + Thumbprint = thumbprint; + ExpireOn = expireOn; + IsExportable = isExportable; + CreatedOn = createdOn; + LastModifiedOn = lastModifiedOn; + Description = description; + } + + /// + /// Gets the thumbprint of the certificate. + /// + /// To assign an object to this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData Thumbprint { get; } + /// Gets the expiry time of the certificate. + public DateTimeOffset? ExpireOn { get; } + /// Gets the is exportable flag of the certificate. + public bool? IsExportable { get; } + /// Gets the creation time. + public DateTimeOffset? CreatedOn { get; } + /// Gets the last modified time. + public DateTimeOffset? LastModifiedOn { get; } + /// Gets or sets the description. + public string Description { get; set; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CertificateResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs similarity index 67% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/CertificateResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs index b7cc7044cb371..88a75eafe8587 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CertificateResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCertificateResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a Certificate along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetCertificateResource method. - /// Otherwise you can get one from its parent resource using the GetCertificate method. + /// A Class representing an AutomationCertificate along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationCertificateResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationCertificate method. /// - public partial class CertificateResource : ArmResource + public partial class AutomationCertificateResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/certificates/{certificateName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _certificateClientDiagnostics; - private readonly CertificateRestOperations _certificateRestClient; - private readonly CertificateData _data; + private readonly ClientDiagnostics _automationCertificateCertificateClientDiagnostics; + private readonly CertificateRestOperations _automationCertificateCertificateRestClient; + private readonly AutomationCertificateData _data; - /// Initializes a new instance of the class for mocking. - protected CertificateResource() + /// Initializes a new instance of the class for mocking. + protected AutomationCertificateResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal CertificateResource(ArmClient client, CertificateData data) : this(client, data.Id) + internal AutomationCertificateResource(ArmClient client, AutomationCertificateData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal CertificateResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationCertificateResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _certificateClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string certificateApiVersion); - _certificateRestClient = new CertificateRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, certificateApiVersion); + _automationCertificateCertificateClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationCertificateCertificateApiVersion); + _automationCertificateCertificateRestClient = new CertificateRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationCertificateCertificateApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal CertificateResource(ArmClient client, ResourceIdentifier id) : base(cli /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual CertificateData Data + public virtual AutomationCertificateData Data { get { @@ -93,16 +93,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: Certificate_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _certificateClientDiagnostics.CreateScope("CertificateResource.Get"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateResource.Get"); scope.Start(); try { - var response = await _certificateRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationCertificateCertificateRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CertificateResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationCertificateResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -117,16 +117,16 @@ public virtual async Task> GetAsync(CancellationTo /// Operation Id: Certificate_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _certificateClientDiagnostics.CreateScope("CertificateResource.Get"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateResource.Get"); scope.Start(); try { - var response = _certificateRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationCertificateCertificateRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CertificateResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationCertificateResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -144,11 +144,11 @@ public virtual Response Get(CancellationToken cancellationT /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _certificateClientDiagnostics.CreateScope("CertificateResource.Delete"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateResource.Delete"); scope.Start(); try { - var response = await _certificateRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationCertificateCertificateRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -170,11 +170,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _certificateClientDiagnostics.CreateScope("CertificateResource.Delete"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateResource.Delete"); scope.Start(); try { - var response = _certificateRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationCertificateCertificateRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -195,16 +195,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The parameters supplied to the update certificate operation. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(CertificatePatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(AutomationCertificatePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _certificateClientDiagnostics.CreateScope("CertificateResource.Update"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateResource.Update"); scope.Start(); try { - var response = await _certificateRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new CertificateResource(Client, response.Value), response.GetRawResponse()); + var response = await _automationCertificateCertificateRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationCertificateResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,16 +221,16 @@ public virtual async Task> UpdateAsync(Certificate /// The parameters supplied to the update certificate operation. /// The cancellation token to use. /// is null. - public virtual Response Update(CertificatePatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(AutomationCertificatePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _certificateClientDiagnostics.CreateScope("CertificateResource.Update"); + using var scope = _automationCertificateCertificateClientDiagnostics.CreateScope("AutomationCertificateResource.Update"); scope.Start(); try { - var response = _certificateRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new CertificateResource(Client, response.Value), response.GetRawResponse()); + var response = _automationCertificateCertificateRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new AutomationCertificateResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs similarity index 61% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs index 4ef0c6a9aeffe..645d54e558ead 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetConnections method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationConnections method from an instance of . /// - public partial class ConnectionCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationConnectionCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _connectionClientDiagnostics; - private readonly ConnectionRestOperations _connectionRestClient; + private readonly ClientDiagnostics _automationConnectionConnectionClientDiagnostics; + private readonly ConnectionRestOperations _automationConnectionConnectionRestClient; - /// Initializes a new instance of the class for mocking. - protected ConnectionCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationConnectionCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal ConnectionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationConnectionCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _connectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ConnectionResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ConnectionResource.ResourceType, out string connectionApiVersion); - _connectionRestClient = new ConnectionRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, connectionApiVersion); + _automationConnectionConnectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationConnectionResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationConnectionResource.ResourceType, out string automationConnectionConnectionApiVersion); + _automationConnectionConnectionRestClient = new ConnectionRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationConnectionConnectionApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -65,17 +65,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string connectionName, ConnectionCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string connectionName, AutomationConnectionCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionCollection.CreateOrUpdate"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _connectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new ConnectionResource(Client, response), response.GetRawResponse())); + var response = await _automationConnectionConnectionRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -98,17 +98,17 @@ public virtual async Task> CreateOrUpdateAsync( /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string connectionName, ConnectionCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string connectionName, AutomationConnectionCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionCollection.CreateOrUpdate"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionCollection.CreateOrUpdate"); scope.Start(); try { - var response = _connectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new ConnectionResource(Client, response), response.GetRawResponse())); + var response = _automationConnectionConnectionRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -129,18 +129,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string connectionName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string connectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionCollection.Get"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionCollection.Get"); scope.Start(); try { - var response = await _connectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, cancellationToken).ConfigureAwait(false); + var response = await _automationConnectionConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,18 +158,18 @@ public virtual async Task> GetAsync(string connecti /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string connectionName, CancellationToken cancellationToken = default) + public virtual Response Get(string connectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionCollection.Get"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionCollection.Get"); scope.Start(); try { - var response = _connectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, cancellationToken); + var response = _automationConnectionConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -184,17 +184,17 @@ public virtual Response Get(string connectionName, Cancellat /// Operation Id: Connection_ListByAutomationAccount /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionCollection.GetAll"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionCollection.GetAll"); scope.Start(); try { - var response = await _connectionRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ConnectionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationConnectionConnectionRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationConnectionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -202,14 +202,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionCollection.GetAll"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionCollection.GetAll"); scope.Start(); try { - var response = await _connectionRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ConnectionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationConnectionConnectionRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationConnectionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -226,17 +226,17 @@ async Task> NextPageFunc(string nextLink, int? pageSize /// Operation Id: Connection_ListByAutomationAccount /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionCollection.GetAll"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionCollection.GetAll"); scope.Start(); try { - var response = _connectionRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ConnectionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationConnectionConnectionRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationConnectionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -244,14 +244,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionCollection.GetAll"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionCollection.GetAll"); scope.Start(); try { - var response = _connectionRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ConnectionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationConnectionConnectionRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationConnectionResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -275,11 +275,11 @@ public virtual async Task> ExistsAsync(string connectionName, Can { Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionCollection.Exists"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionCollection.Exists"); scope.Start(); try { - var response = await _connectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationConnectionConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -302,11 +302,11 @@ public virtual Response Exists(string connectionName, CancellationToken ca { Argument.AssertNotNullOrEmpty(connectionName, nameof(connectionName)); - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionCollection.Exists"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionCollection.Exists"); scope.Start(); try { - var response = _connectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); + var response = _automationConnectionConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,7 +316,7 @@ public virtual Response Exists(string connectionName, CancellationToken ca } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -326,7 +326,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionData.cs similarity index 77% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionData.cs index 8850cf0574898..88da9408a9c94 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionData.cs @@ -13,16 +13,16 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the Connection data model. - public partial class ConnectionData : ResourceData + /// A class representing the AutomationConnection data model. + public partial class AutomationConnectionData : ResourceData { - /// Initializes a new instance of ConnectionData. - public ConnectionData() + /// Initializes a new instance of AutomationConnectionData. + public AutomationConnectionData() { FieldDefinitionValues = new ChangeTrackingDictionary(); } - /// Initializes a new instance of ConnectionData. + /// Initializes a new instance of AutomationConnectionData. /// The id. /// The name. /// The resourceType. @@ -32,7 +32,7 @@ public ConnectionData() /// Gets the creation time. /// Gets the last modified time. /// Gets or sets the description. - internal ConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ConnectionTypeAssociationProperty connectionType, IReadOnlyDictionary fieldDefinitionValues, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) + internal AutomationConnectionData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, ConnectionTypeAssociationProperty connectionType, IReadOnlyDictionary fieldDefinitionValues, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) { ConnectionType = connectionType; FieldDefinitionValues = fieldDefinitionValues; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs similarity index 66% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs index d3a5ea550c617..dd3dc8cab00c4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a Connection along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetConnectionResource method. - /// Otherwise you can get one from its parent resource using the GetConnection method. + /// A Class representing an AutomationConnection along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationConnectionResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationConnection method. /// - public partial class ConnectionResource : ArmResource + public partial class AutomationConnectionResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connections/{connectionName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _connectionClientDiagnostics; - private readonly ConnectionRestOperations _connectionRestClient; - private readonly ConnectionData _data; + private readonly ClientDiagnostics _automationConnectionConnectionClientDiagnostics; + private readonly ConnectionRestOperations _automationConnectionConnectionRestClient; + private readonly AutomationConnectionData _data; - /// Initializes a new instance of the class for mocking. - protected ConnectionResource() + /// Initializes a new instance of the class for mocking. + protected AutomationConnectionResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ConnectionResource(ArmClient client, ConnectionData data) : this(client, data.Id) + internal AutomationConnectionResource(ArmClient client, AutomationConnectionData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ConnectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationConnectionResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _connectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string connectionApiVersion); - _connectionRestClient = new ConnectionRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, connectionApiVersion); + _automationConnectionConnectionClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationConnectionConnectionApiVersion); + _automationConnectionConnectionRestClient = new ConnectionRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationConnectionConnectionApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal ConnectionResource(ArmClient client, ResourceIdentifier id) : base(clie /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ConnectionData Data + public virtual AutomationConnectionData Data { get { @@ -93,16 +93,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: Connection_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionResource.Get"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionResource.Get"); scope.Start(); try { - var response = await _connectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationConnectionConnectionRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -117,16 +117,16 @@ public virtual async Task> GetAsync(CancellationTok /// Operation Id: Connection_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionResource.Get"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionResource.Get"); scope.Start(); try { - var response = _connectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationConnectionConnectionRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConnectionResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -144,11 +144,11 @@ public virtual Response Get(CancellationToken cancellationTo /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionResource.Delete"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionResource.Delete"); scope.Start(); try { - var response = await _connectionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationConnectionConnectionRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -170,11 +170,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionResource.Delete"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionResource.Delete"); scope.Start(); try { - var response = _connectionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationConnectionConnectionRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -195,16 +195,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The parameters supplied to the update a connection operation. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(ConnectionPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(AutomationConnectionPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionResource.Update"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionResource.Update"); scope.Start(); try { - var response = await _connectionRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ConnectionResource(Client, response.Value), response.GetRawResponse()); + var response = await _automationConnectionConnectionRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,16 +221,16 @@ public virtual async Task> UpdateAsync(ConnectionPa /// The parameters supplied to the update a connection operation. /// The cancellation token to use. /// is null. - public virtual Response Update(ConnectionPatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(AutomationConnectionPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _connectionClientDiagnostics.CreateScope("ConnectionResource.Update"); + using var scope = _automationConnectionConnectionClientDiagnostics.CreateScope("AutomationConnectionResource.Update"); scope.Start(); try { - var response = _connectionRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new ConnectionResource(Client, response.Value), response.GetRawResponse()); + var response = _automationConnectionConnectionRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new AutomationConnectionResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionTypeCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs similarity index 60% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionTypeCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs index 1617072170eb3..ba4b1fd35636e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionTypeCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetConnectionTypes method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationConnectionTypes method from an instance of . /// - public partial class ConnectionTypeCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationConnectionTypeCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _connectionTypeClientDiagnostics; - private readonly ConnectionTypeRestOperations _connectionTypeRestClient; + private readonly ClientDiagnostics _automationConnectionTypeConnectionTypeClientDiagnostics; + private readonly ConnectionTypeRestOperations _automationConnectionTypeConnectionTypeRestClient; - /// Initializes a new instance of the class for mocking. - protected ConnectionTypeCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationConnectionTypeCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal ConnectionTypeCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationConnectionTypeCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _connectionTypeClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ConnectionTypeResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ConnectionTypeResource.ResourceType, out string connectionTypeApiVersion); - _connectionTypeRestClient = new ConnectionTypeRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, connectionTypeApiVersion); + _automationConnectionTypeConnectionTypeClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationConnectionTypeResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationConnectionTypeResource.ResourceType, out string automationConnectionTypeConnectionTypeApiVersion); + _automationConnectionTypeConnectionTypeRestClient = new ConnectionTypeRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationConnectionTypeConnectionTypeApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -65,17 +65,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string connectionTypeName, ConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string connectionTypeName, AutomationConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(connectionTypeName, nameof(connectionTypeName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeCollection.CreateOrUpdate"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _connectionTypeRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new ConnectionTypeResource(Client, response), response.GetRawResponse())); + var response = await _automationConnectionTypeConnectionTypeRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -98,17 +98,17 @@ public virtual async Task> CreateOrUpdateAs /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string connectionTypeName, ConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string connectionTypeName, AutomationConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(connectionTypeName, nameof(connectionTypeName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeCollection.CreateOrUpdate"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeCollection.CreateOrUpdate"); scope.Start(); try { - var response = _connectionTypeRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new ConnectionTypeResource(Client, response), response.GetRawResponse())); + var response = _automationConnectionTypeConnectionTypeRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -129,18 +129,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wai /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string connectionTypeName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string connectionTypeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(connectionTypeName, nameof(connectionTypeName)); - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeCollection.Get"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeCollection.Get"); scope.Start(); try { - var response = await _connectionTypeRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, cancellationToken).ConfigureAwait(false); + var response = await _automationConnectionTypeConnectionTypeRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConnectionTypeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationConnectionTypeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,18 +158,18 @@ public virtual async Task> GetAsync(string conn /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string connectionTypeName, CancellationToken cancellationToken = default) + public virtual Response Get(string connectionTypeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(connectionTypeName, nameof(connectionTypeName)); - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeCollection.Get"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeCollection.Get"); scope.Start(); try { - var response = _connectionTypeRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, cancellationToken); + var response = _automationConnectionTypeConnectionTypeRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConnectionTypeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationConnectionTypeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -184,17 +184,17 @@ public virtual Response Get(string connectionTypeName, C /// Operation Id: ConnectionType_ListByAutomationAccount /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeCollection.GetAll"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeCollection.GetAll"); scope.Start(); try { - var response = await _connectionTypeRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ConnectionTypeResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationConnectionTypeConnectionTypeRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationConnectionTypeResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -202,14 +202,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeCollection.GetAll"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeCollection.GetAll"); scope.Start(); try { - var response = await _connectionTypeRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ConnectionTypeResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationConnectionTypeConnectionTypeRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationConnectionTypeResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -226,17 +226,17 @@ async Task> NextPageFunc(string nextLink, int? page /// Operation Id: ConnectionType_ListByAutomationAccount /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeCollection.GetAll"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeCollection.GetAll"); scope.Start(); try { - var response = _connectionTypeRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ConnectionTypeResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationConnectionTypeConnectionTypeRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationConnectionTypeResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -244,14 +244,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeCollection.GetAll"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeCollection.GetAll"); scope.Start(); try { - var response = _connectionTypeRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ConnectionTypeResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationConnectionTypeConnectionTypeRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationConnectionTypeResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -275,11 +275,11 @@ public virtual async Task> ExistsAsync(string connectionTypeName, { Argument.AssertNotNullOrEmpty(connectionTypeName, nameof(connectionTypeName)); - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeCollection.Exists"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeCollection.Exists"); scope.Start(); try { - var response = await _connectionTypeRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationConnectionTypeConnectionTypeRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -302,11 +302,11 @@ public virtual Response Exists(string connectionTypeName, CancellationToke { Argument.AssertNotNullOrEmpty(connectionTypeName, nameof(connectionTypeName)); - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeCollection.Exists"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeCollection.Exists"); scope.Start(); try { - var response = _connectionTypeRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, cancellationToken: cancellationToken); + var response = _automationConnectionTypeConnectionTypeRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, connectionTypeName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,7 +316,7 @@ public virtual Response Exists(string connectionTypeName, CancellationToke } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -326,7 +326,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionTypeData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeData.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionTypeData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeData.cs index e840745b04c35..0a5966775d666 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionTypeData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeData.cs @@ -13,16 +13,16 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the ConnectionType data model. - public partial class ConnectionTypeData : ResourceData + /// A class representing the AutomationConnectionType data model. + public partial class AutomationConnectionTypeData : ResourceData { - /// Initializes a new instance of ConnectionTypeData. - internal ConnectionTypeData() + /// Initializes a new instance of AutomationConnectionTypeData. + internal AutomationConnectionTypeData() { - FieldDefinitions = new ChangeTrackingDictionary(); + FieldDefinitions = new ChangeTrackingDictionary(); } - /// Initializes a new instance of ConnectionTypeData. + /// Initializes a new instance of AutomationConnectionTypeData. /// The id. /// The name. /// The resourceType. @@ -32,7 +32,7 @@ internal ConnectionTypeData() /// Gets the creation time. /// Gets or sets the last modified time. /// Gets or sets the description. - internal ConnectionTypeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, bool? isGlobal, IReadOnlyDictionary fieldDefinitions, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) + internal AutomationConnectionTypeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, bool? isGlobal, IReadOnlyDictionary fieldDefinitions, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) { IsGlobal = isGlobal; FieldDefinitions = fieldDefinitions; @@ -44,7 +44,7 @@ internal ConnectionTypeData(ResourceIdentifier id, string name, ResourceType res /// Gets or sets a Boolean value to indicate if the connection type is global. public bool? IsGlobal { get; } /// Gets the field definitions of the connection type. - public IReadOnlyDictionary FieldDefinitions { get; } + public IReadOnlyDictionary FieldDefinitions { get; } /// Gets the creation time. public DateTimeOffset? CreatedOn { get; } /// Gets or sets the last modified time. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionTypeResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs similarity index 67% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionTypeResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs index 5e3c09817640e..8404e178cce0d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ConnectionTypeResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationConnectionTypeResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a ConnectionType along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetConnectionTypeResource method. - /// Otherwise you can get one from its parent resource using the GetConnectionType method. + /// A Class representing an AutomationConnectionType along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationConnectionTypeResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationConnectionType method. /// - public partial class ConnectionTypeResource : ArmResource + public partial class AutomationConnectionTypeResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/connectionTypes/{connectionTypeName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _connectionTypeClientDiagnostics; - private readonly ConnectionTypeRestOperations _connectionTypeRestClient; - private readonly ConnectionTypeData _data; + private readonly ClientDiagnostics _automationConnectionTypeConnectionTypeClientDiagnostics; + private readonly ConnectionTypeRestOperations _automationConnectionTypeConnectionTypeRestClient; + private readonly AutomationConnectionTypeData _data; - /// Initializes a new instance of the class for mocking. - protected ConnectionTypeResource() + /// Initializes a new instance of the class for mocking. + protected AutomationConnectionTypeResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ConnectionTypeResource(ArmClient client, ConnectionTypeData data) : this(client, data.Id) + internal AutomationConnectionTypeResource(ArmClient client, AutomationConnectionTypeData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ConnectionTypeResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationConnectionTypeResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _connectionTypeClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string connectionTypeApiVersion); - _connectionTypeRestClient = new ConnectionTypeRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, connectionTypeApiVersion); + _automationConnectionTypeConnectionTypeClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationConnectionTypeConnectionTypeApiVersion); + _automationConnectionTypeConnectionTypeRestClient = new ConnectionTypeRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationConnectionTypeConnectionTypeApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal ConnectionTypeResource(ArmClient client, ResourceIdentifier id) : base( /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ConnectionTypeData Data + public virtual AutomationConnectionTypeData Data { get { @@ -93,16 +93,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: ConnectionType_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeResource.Get"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeResource.Get"); scope.Start(); try { - var response = await _connectionTypeRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationConnectionTypeConnectionTypeRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConnectionTypeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationConnectionTypeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -117,16 +117,16 @@ public virtual async Task> GetAsync(Cancellatio /// Operation Id: ConnectionType_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeResource.Get"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeResource.Get"); scope.Start(); try { - var response = _connectionTypeRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationConnectionTypeConnectionTypeRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ConnectionTypeResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationConnectionTypeResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -144,11 +144,11 @@ public virtual Response Get(CancellationToken cancellati /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeResource.Delete"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeResource.Delete"); scope.Start(); try { - var response = await _connectionTypeRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationConnectionTypeConnectionTypeRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -170,11 +170,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeResource.Delete"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeResource.Delete"); scope.Start(); try { - var response = _connectionTypeRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationConnectionTypeConnectionTypeRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -196,16 +196,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The parameters supplied to the create or update connection type operation. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, ConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, AutomationConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeResource.Update"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeResource.Update"); scope.Start(); try { - var response = await _connectionTypeRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new ConnectionTypeResource(Client, response), response.GetRawResponse())); + var response = await _automationConnectionTypeConnectionTypeRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -226,16 +226,16 @@ public virtual async Task> UpdateAsync(Wait /// The parameters supplied to the create or update connection type operation. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, ConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, AutomationConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _connectionTypeClientDiagnostics.CreateScope("ConnectionTypeResource.Update"); + using var scope = _automationConnectionTypeConnectionTypeClientDiagnostics.CreateScope("AutomationConnectionTypeResource.Update"); scope.Start(); try { - var response = _connectionTypeRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new ConnectionTypeResource(Client, response), response.GetRawResponse())); + var response = _automationConnectionTypeConnectionTypeRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationConnectionTypeResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CredentialCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs similarity index 61% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/CredentialCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs index fd034293f17c5..2eacb5e714c52 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CredentialCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetCredentials method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationCredentials method from an instance of . /// - public partial class CredentialCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationCredentialCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _credentialClientDiagnostics; - private readonly CredentialRestOperations _credentialRestClient; + private readonly ClientDiagnostics _automationCredentialCredentialClientDiagnostics; + private readonly CredentialRestOperations _automationCredentialCredentialRestClient; - /// Initializes a new instance of the class for mocking. - protected CredentialCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationCredentialCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal CredentialCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationCredentialCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _credentialClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", CredentialResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(CredentialResource.ResourceType, out string credentialApiVersion); - _credentialRestClient = new CredentialRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, credentialApiVersion); + _automationCredentialCredentialClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationCredentialResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationCredentialResource.ResourceType, out string automationCredentialCredentialApiVersion); + _automationCredentialCredentialRestClient = new CredentialRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationCredentialCredentialApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -65,17 +65,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string credentialName, CredentialCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string credentialName, AutomationCredentialCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(credentialName, nameof(credentialName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _credentialClientDiagnostics.CreateScope("CredentialCollection.CreateOrUpdate"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _credentialRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new CredentialResource(Client, response), response.GetRawResponse())); + var response = await _automationCredentialCredentialRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationCredentialResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -98,17 +98,17 @@ public virtual async Task> CreateOrUpdateAsync( /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string credentialName, CredentialCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string credentialName, AutomationCredentialCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(credentialName, nameof(credentialName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _credentialClientDiagnostics.CreateScope("CredentialCollection.CreateOrUpdate"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialCollection.CreateOrUpdate"); scope.Start(); try { - var response = _credentialRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new CredentialResource(Client, response), response.GetRawResponse())); + var response = _automationCredentialCredentialRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationCredentialResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -129,18 +129,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUnt /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string credentialName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string credentialName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(credentialName, nameof(credentialName)); - using var scope = _credentialClientDiagnostics.CreateScope("CredentialCollection.Get"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialCollection.Get"); scope.Start(); try { - var response = await _credentialRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, cancellationToken).ConfigureAwait(false); + var response = await _automationCredentialCredentialRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CredentialResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationCredentialResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,18 +158,18 @@ public virtual async Task> GetAsync(string credenti /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string credentialName, CancellationToken cancellationToken = default) + public virtual Response Get(string credentialName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(credentialName, nameof(credentialName)); - using var scope = _credentialClientDiagnostics.CreateScope("CredentialCollection.Get"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialCollection.Get"); scope.Start(); try { - var response = _credentialRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, cancellationToken); + var response = _automationCredentialCredentialRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CredentialResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationCredentialResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -184,17 +184,17 @@ public virtual Response Get(string credentialName, Cancellat /// Operation Id: Credential_ListByAutomationAccount /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _credentialClientDiagnostics.CreateScope("CredentialCollection.GetAll"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialCollection.GetAll"); scope.Start(); try { - var response = await _credentialRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new CredentialResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationCredentialCredentialRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationCredentialResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -202,14 +202,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _credentialClientDiagnostics.CreateScope("CredentialCollection.GetAll"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialCollection.GetAll"); scope.Start(); try { - var response = await _credentialRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new CredentialResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationCredentialCredentialRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationCredentialResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -226,17 +226,17 @@ async Task> NextPageFunc(string nextLink, int? pageSize /// Operation Id: Credential_ListByAutomationAccount /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _credentialClientDiagnostics.CreateScope("CredentialCollection.GetAll"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialCollection.GetAll"); scope.Start(); try { - var response = _credentialRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new CredentialResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationCredentialCredentialRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationCredentialResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -244,14 +244,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _credentialClientDiagnostics.CreateScope("CredentialCollection.GetAll"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialCollection.GetAll"); scope.Start(); try { - var response = _credentialRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new CredentialResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationCredentialCredentialRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationCredentialResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -275,11 +275,11 @@ public virtual async Task> ExistsAsync(string credentialName, Can { Argument.AssertNotNullOrEmpty(credentialName, nameof(credentialName)); - using var scope = _credentialClientDiagnostics.CreateScope("CredentialCollection.Exists"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialCollection.Exists"); scope.Start(); try { - var response = await _credentialRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationCredentialCredentialRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -302,11 +302,11 @@ public virtual Response Exists(string credentialName, CancellationToken ca { Argument.AssertNotNullOrEmpty(credentialName, nameof(credentialName)); - using var scope = _credentialClientDiagnostics.CreateScope("CredentialCollection.Exists"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialCollection.Exists"); scope.Start(); try { - var response = _credentialRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, cancellationToken: cancellationToken); + var response = _automationCredentialCredentialRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, credentialName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,7 +316,7 @@ public virtual Response Exists(string credentialName, CancellationToken ca } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -326,7 +326,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CredentialData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialData.cs similarity index 69% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/CredentialData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialData.cs index fd41eb0709706..3efafbafa5718 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CredentialData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialData.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the Credential data model. - public partial class CredentialData : ResourceData + /// A class representing the AutomationCredential data model. + public partial class AutomationCredentialData : ResourceData { - /// Initializes a new instance of CredentialData. - public CredentialData() + /// Initializes a new instance of AutomationCredentialData. + public AutomationCredentialData() { } - /// Initializes a new instance of CredentialData. + /// Initializes a new instance of AutomationCredentialData. /// The id. /// The name. /// The resourceType. @@ -28,7 +28,7 @@ public CredentialData() /// Gets the creation time. /// Gets the last modified time. /// Gets or sets the description. - internal CredentialData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string userName, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) + internal AutomationCredentialData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string userName, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) { UserName = userName; CreatedOn = createdOn; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CredentialResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs similarity index 66% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/CredentialResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs index 71f39e98384e0..f2f39def532c6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CredentialResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationCredentialResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a Credential along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetCredentialResource method. - /// Otherwise you can get one from its parent resource using the GetCredential method. + /// A Class representing an AutomationCredential along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationCredentialResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationCredential method. /// - public partial class CredentialResource : ArmResource + public partial class AutomationCredentialResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/credentials/{credentialName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _credentialClientDiagnostics; - private readonly CredentialRestOperations _credentialRestClient; - private readonly CredentialData _data; + private readonly ClientDiagnostics _automationCredentialCredentialClientDiagnostics; + private readonly CredentialRestOperations _automationCredentialCredentialRestClient; + private readonly AutomationCredentialData _data; - /// Initializes a new instance of the class for mocking. - protected CredentialResource() + /// Initializes a new instance of the class for mocking. + protected AutomationCredentialResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal CredentialResource(ArmClient client, CredentialData data) : this(client, data.Id) + internal AutomationCredentialResource(ArmClient client, AutomationCredentialData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal CredentialResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationCredentialResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _credentialClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string credentialApiVersion); - _credentialRestClient = new CredentialRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, credentialApiVersion); + _automationCredentialCredentialClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationCredentialCredentialApiVersion); + _automationCredentialCredentialRestClient = new CredentialRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationCredentialCredentialApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal CredentialResource(ArmClient client, ResourceIdentifier id) : base(clie /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual CredentialData Data + public virtual AutomationCredentialData Data { get { @@ -93,16 +93,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: Credential_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _credentialClientDiagnostics.CreateScope("CredentialResource.Get"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialResource.Get"); scope.Start(); try { - var response = await _credentialRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationCredentialCredentialRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CredentialResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationCredentialResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -117,16 +117,16 @@ public virtual async Task> GetAsync(CancellationTok /// Operation Id: Credential_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _credentialClientDiagnostics.CreateScope("CredentialResource.Get"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialResource.Get"); scope.Start(); try { - var response = _credentialRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationCredentialCredentialRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new CredentialResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationCredentialResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -144,11 +144,11 @@ public virtual Response Get(CancellationToken cancellationTo /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _credentialClientDiagnostics.CreateScope("CredentialResource.Delete"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialResource.Delete"); scope.Start(); try { - var response = await _credentialRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationCredentialCredentialRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -170,11 +170,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _credentialClientDiagnostics.CreateScope("CredentialResource.Delete"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialResource.Delete"); scope.Start(); try { - var response = _credentialRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationCredentialCredentialRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -195,16 +195,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The parameters supplied to the Update credential operation. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(CredentialPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(AutomationCredentialPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _credentialClientDiagnostics.CreateScope("CredentialResource.Update"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialResource.Update"); scope.Start(); try { - var response = await _credentialRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new CredentialResource(Client, response.Value), response.GetRawResponse()); + var response = await _automationCredentialCredentialRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationCredentialResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,16 +221,16 @@ public virtual async Task> UpdateAsync(CredentialPa /// The parameters supplied to the Update credential operation. /// The cancellation token to use. /// is null. - public virtual Response Update(CredentialPatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(AutomationCredentialPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _credentialClientDiagnostics.CreateScope("CredentialResource.Update"); + using var scope = _automationCredentialCredentialClientDiagnostics.CreateScope("AutomationCredentialResource.Update"); scope.Start(); try { - var response = _credentialRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new CredentialResource(Client, response.Value), response.GetRawResponse()); + var response = _automationCredentialCredentialRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new AutomationCredentialResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs similarity index 64% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs index c38bbef286dd1..8d2fe53c3a5ff 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetJobs method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationJobs method from an instance of . /// - public partial class JobCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationJobCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _jobClientDiagnostics; - private readonly JobRestOperations _jobRestClient; + private readonly ClientDiagnostics _automationJobJobClientDiagnostics; + private readonly JobRestOperations _automationJobJobRestClient; - /// Initializes a new instance of the class for mocking. - protected JobCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationJobCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal JobCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationJobCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _jobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", JobResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(JobResource.ResourceType, out string jobApiVersion); - _jobRestClient = new JobRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, jobApiVersion); + _automationJobJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationJobResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationJobResource.ResourceType, out string automationJobJobApiVersion); + _automationJobJobRestClient = new JobRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationJobJobApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -65,17 +65,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string jobName, JobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string jobName, AutomationJobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _jobClientDiagnostics.CreateScope("JobCollection.CreateOrUpdate"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _jobRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content, clientRequestId, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new JobResource(Client, response), response.GetRawResponse())); + var response = await _automationJobJobRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content, clientRequestId, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -99,17 +99,17 @@ public virtual async Task> CreateOrUpdateAsync(WaitUnt /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string jobName, JobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string jobName, AutomationJobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _jobClientDiagnostics.CreateScope("JobCollection.CreateOrUpdate"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobCollection.CreateOrUpdate"); scope.Start(); try { - var response = _jobRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content, clientRequestId, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new JobResource(Client, response), response.GetRawResponse())); + var response = _automationJobJobRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, content, clientRequestId, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -131,18 +131,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, str /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - using var scope = _jobClientDiagnostics.CreateScope("JobCollection.Get"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobCollection.Get"); scope.Start(); try { - var response = await _jobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, clientRequestId, cancellationToken).ConfigureAwait(false); + var response = await _automationJobJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, clientRequestId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -161,18 +161,18 @@ public virtual async Task> GetAsync(string jobName, string /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response Get(string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - using var scope = _jobClientDiagnostics.CreateScope("JobCollection.Get"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobCollection.Get"); scope.Start(); try { - var response = _jobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, clientRequestId, cancellationToken); + var response = _automationJobJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, clientRequestId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -189,16 +189,16 @@ public virtual Response Get(string jobName, string clientRequestId /// The filter to apply on the operation. /// Identifies this specific client request. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _jobClientDiagnostics.CreateScope("JobCollection.GetAll"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobCollection.GetAll"); scope.Start(); try { - var response = await _jobRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, clientRequestId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationJobJobRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, clientRequestId, cancellationToken: cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -207,13 +207,13 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _jobClientDiagnostics.CreateScope("JobCollection.GetAll"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobCollection.GetAll"); scope.Start(); try { - var response = await _jobRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, clientRequestId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationJobJobRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, clientRequestId, cancellationToken: cancellationToken).ConfigureAwait(false); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -233,16 +233,16 @@ async Task> NextPageFunc(string nextLink, int? pageSizeH /// The filter to apply on the operation. /// Identifies this specific client request. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _jobClientDiagnostics.CreateScope("JobCollection.GetAll"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobCollection.GetAll"); scope.Start(); try { - var response = _jobRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, clientRequestId, cancellationToken: cancellationToken); + var response = _automationJobJobRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, clientRequestId, cancellationToken: cancellationToken); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -251,13 +251,13 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _jobClientDiagnostics.CreateScope("JobCollection.GetAll"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobCollection.GetAll"); scope.Start(); try { - var response = _jobRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, clientRequestId, cancellationToken: cancellationToken); + var response = _automationJobJobRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, clientRequestId, cancellationToken: cancellationToken); return Page.FromValues(response.Value.Value, response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) @@ -283,11 +283,11 @@ public virtual async Task> ExistsAsync(string jobName, string cli { Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - using var scope = _jobClientDiagnostics.CreateScope("JobCollection.Exists"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobCollection.Exists"); scope.Start(); try { - var response = await _jobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, clientRequestId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationJobJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, clientRequestId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -311,11 +311,11 @@ public virtual Response Exists(string jobName, string clientRequestId = nu { Argument.AssertNotNullOrEmpty(jobName, nameof(jobName)); - using var scope = _jobClientDiagnostics.CreateScope("JobCollection.Exists"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobCollection.Exists"); scope.Start(); try { - var response = _jobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, clientRequestId, cancellationToken: cancellationToken); + var response = _automationJobJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobName, clientRequestId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -325,7 +325,7 @@ public virtual Response Exists(string jobName, string clientRequestId = nu } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -335,7 +335,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobData.cs similarity index 83% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobData.cs index f0c0ffd4387bd..5e9a5b8a77403 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobData.cs @@ -13,16 +13,16 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the Job data model. - public partial class JobData : ResourceData + /// A class representing the AutomationJob data model. + public partial class AutomationJobData : ResourceData { - /// Initializes a new instance of JobData. - public JobData() + /// Initializes a new instance of AutomationJobData. + public AutomationJobData() { Parameters = new ChangeTrackingDictionary(); } - /// Initializes a new instance of JobData. + /// Initializes a new instance of AutomationJobData. /// The id. /// The name. /// The resourceType. @@ -41,7 +41,7 @@ public JobData() /// Gets or sets the last status modified time of the job. /// Gets or sets the parameters of the job. /// The current provisioning state of the job. - internal JobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RunbookAssociationProperty runbook, string startedBy, string runOn, Guid? jobId, DateTimeOffset? createdOn, JobStatus? status, string statusDetails, DateTimeOffset? startOn, DateTimeOffset? endOn, string exception, DateTimeOffset? lastModifiedOn, DateTimeOffset? lastStatusModifiedOn, IDictionary parameters, JobProvisioningState? provisioningState) : base(id, name, resourceType, systemData) + internal AutomationJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RunbookAssociationProperty runbook, string startedBy, string runOn, Guid? jobId, DateTimeOffset? createdOn, AutomationJobStatus? status, string statusDetails, DateTimeOffset? startOn, DateTimeOffset? endOn, string exception, DateTimeOffset? lastModifiedOn, DateTimeOffset? lastStatusModifiedOn, IDictionary parameters, JobProvisioningState? provisioningState) : base(id, name, resourceType, systemData) { Runbook = runbook; StartedBy = startedBy; @@ -82,7 +82,7 @@ public string RunbookName /// Gets or sets the creation time of the job. public DateTimeOffset? CreatedOn { get; set; } /// Gets or sets the status of the job. - public JobStatus? Status { get; set; } + public AutomationJobStatus? Status { get; set; } /// Gets or sets the status details of the job. public string StatusDetails { get; set; } /// Gets or sets the start time of the job. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs similarity index 74% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs index e93d64a376c87..c11e9a2b0ede9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobResource.cs @@ -18,48 +18,48 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a Job along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetJobResource method. - /// Otherwise you can get one from its parent resource using the GetJob method. + /// A Class representing an AutomationJob along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationJobResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationJob method. /// - public partial class JobResource : ArmResource + public partial class AutomationJobResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _jobClientDiagnostics; - private readonly JobRestOperations _jobRestClient; + private readonly ClientDiagnostics _automationJobJobClientDiagnostics; + private readonly JobRestOperations _automationJobJobRestClient; private readonly ClientDiagnostics _jobStreamClientDiagnostics; private readonly JobStreamRestOperations _jobStreamRestClient; - private readonly JobData _data; + private readonly AutomationJobData _data; - /// Initializes a new instance of the class for mocking. - protected JobResource() + /// Initializes a new instance of the class for mocking. + protected AutomationJobResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal JobResource(ArmClient client, JobData data) : this(client, data.Id) + internal AutomationJobResource(ArmClient client, AutomationJobData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal JobResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationJobResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _jobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string jobApiVersion); - _jobRestClient = new JobRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, jobApiVersion); + _automationJobJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationJobJobApiVersion); + _automationJobJobRestClient = new JobRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationJobJobApiVersion); _jobStreamClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _jobStreamRestClient = new JobStreamRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); #if DEBUG @@ -75,7 +75,7 @@ internal JobResource(ArmClient client, ResourceIdentifier id) : base(client, id) /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual JobData Data + public virtual AutomationJobData Data { get { @@ -98,16 +98,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// Identifies this specific client request. /// The cancellation token to use. - public virtual async Task> GetAsync(string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.Get"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.Get"); scope.Start(); try { - var response = await _jobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); + var response = await _automationJobJobRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -123,16 +123,16 @@ public virtual async Task> GetAsync(string clientRequestId /// /// Identifies this specific client request. /// The cancellation token to use. - public virtual Response Get(string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response Get(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.Get"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.Get"); scope.Start(); try { - var response = _jobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); + var response = _automationJobJobRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationJobResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -151,16 +151,16 @@ public virtual Response Get(string clientRequestId = null, Cancella /// Identifies this specific client request. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, JobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, AutomationJobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _jobClientDiagnostics.CreateScope("JobResource.Update"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.Update"); scope.Start(); try { - var response = await _jobRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, clientRequestId, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new JobResource(Client, response), response.GetRawResponse())); + var response = await _automationJobJobRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, clientRequestId, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -182,16 +182,16 @@ public virtual async Task> UpdateAsync(WaitUntil waitU /// Identifies this specific client request. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, JobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, AutomationJobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _jobClientDiagnostics.CreateScope("JobResource.Update"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.Update"); scope.Start(); try { - var response = _jobRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, clientRequestId, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new JobResource(Client, response), response.GetRawResponse())); + var response = _automationJobJobRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, clientRequestId, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -212,11 +212,11 @@ public virtual ArmOperation Update(WaitUntil waitUntil, JobCreateOr /// The cancellation token to use. public virtual async Task> GetOutputAsync(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.GetOutput"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.GetOutput"); scope.Start(); try { - var response = await _jobRestClient.GetOutputAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); + var response = await _automationJobJobRestClient.GetOutputAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -235,11 +235,11 @@ public virtual async Task> GetOutputAsync(string clientRequestI /// The cancellation token to use. public virtual Response GetOutput(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.GetOutput"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.GetOutput"); scope.Start(); try { - var response = _jobRestClient.GetOutput(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); + var response = _automationJobJobRestClient.GetOutput(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); return response; } catch (Exception e) @@ -258,11 +258,11 @@ public virtual Response GetOutput(string clientRequestId = null, Cancell /// The cancellation token to use. public virtual async Task> GetRunbookContentAsync(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.GetRunbookContent"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.GetRunbookContent"); scope.Start(); try { - var response = await _jobRestClient.GetRunbookContentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); + var response = await _automationJobJobRestClient.GetRunbookContentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -281,11 +281,11 @@ public virtual async Task> GetRunbookContentAsync(string client /// The cancellation token to use. public virtual Response GetRunbookContent(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.GetRunbookContent"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.GetRunbookContent"); scope.Start(); try { - var response = _jobRestClient.GetRunbookContent(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); + var response = _automationJobJobRestClient.GetRunbookContent(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); return response; } catch (Exception e) @@ -304,11 +304,11 @@ public virtual Response GetRunbookContent(string clientRequestId = null, /// The cancellation token to use. public virtual async Task SuspendAsync(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.Suspend"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.Suspend"); scope.Start(); try { - var response = await _jobRestClient.SuspendAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); + var response = await _automationJobJobRestClient.SuspendAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -327,11 +327,11 @@ public virtual async Task SuspendAsync(string clientRequestId = null, /// The cancellation token to use. public virtual Response Suspend(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.Suspend"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.Suspend"); scope.Start(); try { - var response = _jobRestClient.Suspend(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); + var response = _automationJobJobRestClient.Suspend(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); return response; } catch (Exception e) @@ -350,11 +350,11 @@ public virtual Response Suspend(string clientRequestId = null, CancellationToken /// The cancellation token to use. public virtual async Task StopAsync(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.Stop"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.Stop"); scope.Start(); try { - var response = await _jobRestClient.StopAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); + var response = await _automationJobJobRestClient.StopAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -373,11 +373,11 @@ public virtual async Task StopAsync(string clientRequestId = null, Can /// The cancellation token to use. public virtual Response Stop(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.Stop"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.Stop"); scope.Start(); try { - var response = _jobRestClient.Stop(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); + var response = _automationJobJobRestClient.Stop(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); return response; } catch (Exception e) @@ -396,11 +396,11 @@ public virtual Response Stop(string clientRequestId = null, CancellationToken ca /// The cancellation token to use. public virtual async Task ResumeAsync(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.Resume"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.Resume"); scope.Start(); try { - var response = await _jobRestClient.ResumeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); + var response = await _automationJobJobRestClient.ResumeAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -419,11 +419,11 @@ public virtual async Task ResumeAsync(string clientRequestId = null, C /// The cancellation token to use. public virtual Response Resume(string clientRequestId = null, CancellationToken cancellationToken = default) { - using var scope = _jobClientDiagnostics.CreateScope("JobResource.Resume"); + using var scope = _automationJobJobClientDiagnostics.CreateScope("AutomationJobResource.Resume"); scope.Start(); try { - var response = _jobRestClient.Resume(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); + var response = _automationJobJobRestClient.Resume(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, clientRequestId, cancellationToken); return response; } catch (Exception e) @@ -443,11 +443,11 @@ public virtual Response Resume(string clientRequestId = null, CancellationToken /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetJobStreamAsync(string jobStreamId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual async Task> GetJobStreamAsync(string jobStreamId, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobStreamId, nameof(jobStreamId)); - using var scope = _jobStreamClientDiagnostics.CreateScope("JobResource.GetJobStream"); + using var scope = _jobStreamClientDiagnostics.CreateScope("AutomationJobResource.GetJobStream"); scope.Start(); try { @@ -471,11 +471,11 @@ public virtual async Task> GetJobStreamAsync(string jobStrea /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetJobStream(string jobStreamId, string clientRequestId = null, CancellationToken cancellationToken = default) + public virtual Response GetJobStream(string jobStreamId, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobStreamId, nameof(jobStreamId)); - using var scope = _jobStreamClientDiagnostics.CreateScope("JobResource.GetJobStream"); + using var scope = _jobStreamClientDiagnostics.CreateScope("AutomationJobResource.GetJobStream"); scope.Start(); try { @@ -497,12 +497,12 @@ public virtual Response GetJobStream(string jobStreamId, string clien /// The filter to apply on the operation. /// Identifies this specific client request. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetJobStreamsAsync(string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetJobStreamsAsync(string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _jobStreamClientDiagnostics.CreateScope("JobResource.GetJobStreams"); + using var scope = _jobStreamClientDiagnostics.CreateScope("AutomationJobResource.GetJobStreams"); scope.Start(); try { @@ -515,9 +515,9 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _jobStreamClientDiagnostics.CreateScope("JobResource.GetJobStreams"); + using var scope = _jobStreamClientDiagnostics.CreateScope("AutomationJobResource.GetJobStreams"); scope.Start(); try { @@ -541,12 +541,12 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint) /// The filter to apply on the operation. /// Identifies this specific client request. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetJobStreams(string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetJobStreams(string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _jobStreamClientDiagnostics.CreateScope("JobResource.GetJobStreams"); + using var scope = _jobStreamClientDiagnostics.CreateScope("AutomationJobResource.GetJobStreams"); scope.Start(); try { @@ -559,9 +559,9 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _jobStreamClientDiagnostics.CreateScope("JobResource.GetJobStreams"); + using var scope = _jobStreamClientDiagnostics.CreateScope("AutomationJobResource.GetJobStreams"); scope.Start(); try { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs similarity index 57% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobScheduleCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs index 68558a3f74135..079cea94fe83b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetJobSchedules method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationJobSchedules method from an instance of . /// - public partial class JobScheduleCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationJobScheduleCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _jobScheduleClientDiagnostics; - private readonly JobScheduleRestOperations _jobScheduleRestClient; + private readonly ClientDiagnostics _automationJobScheduleJobScheduleClientDiagnostics; + private readonly JobScheduleRestOperations _automationJobScheduleJobScheduleRestClient; - /// Initializes a new instance of the class for mocking. - protected JobScheduleCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationJobScheduleCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal JobScheduleCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationJobScheduleCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _jobScheduleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", JobScheduleResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(JobScheduleResource.ResourceType, out string jobScheduleApiVersion); - _jobScheduleRestClient = new JobScheduleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, jobScheduleApiVersion); + _automationJobScheduleJobScheduleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationJobScheduleResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationJobScheduleResource.ResourceType, out string automationJobScheduleJobScheduleApiVersion); + _automationJobScheduleJobScheduleRestClient = new JobScheduleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationJobScheduleJobScheduleApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -64,16 +64,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The parameters supplied to the create job schedule operation. /// The cancellation token to use. /// is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, Guid jobScheduleId, JobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, Guid jobScheduleId, AutomationJobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleCollection.CreateOrUpdate"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _jobScheduleRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new JobScheduleResource(Client, response), response.GetRawResponse())); + var response = await _automationJobScheduleJobScheduleRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -95,16 +95,16 @@ public virtual async Task> CreateOrUpdateAsync /// The parameters supplied to the create job schedule operation. /// The cancellation token to use. /// is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, Guid jobScheduleId, JobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, Guid jobScheduleId, AutomationJobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleCollection.CreateOrUpdate"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleCollection.CreateOrUpdate"); scope.Start(); try { - var response = _jobScheduleRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new JobScheduleResource(Client, response), response.GetRawResponse())); + var response = _automationJobScheduleJobScheduleRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -123,16 +123,16 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUn /// /// The job schedule name. /// The cancellation token to use. - public virtual async Task> GetAsync(Guid jobScheduleId, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(Guid jobScheduleId, CancellationToken cancellationToken = default) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleCollection.Get"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleCollection.Get"); scope.Start(); try { - var response = await _jobScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, cancellationToken).ConfigureAwait(false); + var response = await _automationJobScheduleJobScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobScheduleResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationJobScheduleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -148,16 +148,16 @@ public virtual async Task> GetAsync(Guid jobSchedu /// /// The job schedule name. /// The cancellation token to use. - public virtual Response Get(Guid jobScheduleId, CancellationToken cancellationToken = default) + public virtual Response Get(Guid jobScheduleId, CancellationToken cancellationToken = default) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleCollection.Get"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleCollection.Get"); scope.Start(); try { - var response = _jobScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, cancellationToken); + var response = _automationJobScheduleJobScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobScheduleResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationJobScheduleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -173,17 +173,17 @@ public virtual Response Get(Guid jobScheduleId, Cancellatio /// /// The filter to apply on the operation. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleCollection.GetAll"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleCollection.GetAll"); scope.Start(); try { - var response = await _jobScheduleRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new JobScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationJobScheduleJobScheduleRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationJobScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -191,14 +191,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleCollection.GetAll"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleCollection.GetAll"); scope.Start(); try { - var response = await _jobScheduleRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new JobScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationJobScheduleJobScheduleRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationJobScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -216,17 +216,17 @@ async Task> NextPageFunc(string nextLink, int? pageSiz /// /// The filter to apply on the operation. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleCollection.GetAll"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleCollection.GetAll"); scope.Start(); try { - var response = _jobScheduleRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new JobScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationJobScheduleJobScheduleRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationJobScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -234,14 +234,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleCollection.GetAll"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleCollection.GetAll"); scope.Start(); try { - var response = _jobScheduleRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new JobScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationJobScheduleJobScheduleRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationJobScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -261,11 +261,11 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// The cancellation token to use. public virtual async Task> ExistsAsync(Guid jobScheduleId, CancellationToken cancellationToken = default) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleCollection.Exists"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleCollection.Exists"); scope.Start(); try { - var response = await _jobScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationJobScheduleJobScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -284,11 +284,11 @@ public virtual async Task> ExistsAsync(Guid jobScheduleId, Cancel /// The cancellation token to use. public virtual Response Exists(Guid jobScheduleId, CancellationToken cancellationToken = default) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleCollection.Exists"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleCollection.Exists"); scope.Start(); try { - var response = _jobScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, cancellationToken: cancellationToken); + var response = _automationJobScheduleJobScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, jobScheduleId, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -298,7 +298,7 @@ public virtual Response Exists(Guid jobScheduleId, CancellationToken cance } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -308,7 +308,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobScheduleData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleData.cs similarity index 74% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobScheduleData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleData.cs index d7bad57ba0765..f7e2234cf4578 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobScheduleData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleData.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using Azure.Core; using Azure.ResourceManager.Automation.Models; @@ -12,16 +13,16 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the JobSchedule data model. - public partial class JobScheduleData : ResourceData + /// A class representing the AutomationJobSchedule data model. + public partial class AutomationJobScheduleData : ResourceData { - /// Initializes a new instance of JobScheduleData. - internal JobScheduleData() + /// Initializes a new instance of AutomationJobScheduleData. + internal AutomationJobScheduleData() { Parameters = new ChangeTrackingDictionary(); } - /// Initializes a new instance of JobScheduleData. + /// Initializes a new instance of AutomationJobScheduleData. /// The id. /// The name. /// The resourceType. @@ -31,7 +32,7 @@ internal JobScheduleData() /// Gets or sets the runbook. /// Gets or sets the hybrid worker group that the scheduled job should run on. /// Gets or sets the parameters of the job schedule. - internal JobScheduleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string jobScheduleId, ScheduleAssociationProperty schedule, RunbookAssociationProperty runbook, string runOn, IReadOnlyDictionary parameters) : base(id, name, resourceType, systemData) + internal AutomationJobScheduleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, Guid? jobScheduleId, ScheduleAssociationProperty schedule, RunbookAssociationProperty runbook, string runOn, IReadOnlyDictionary parameters) : base(id, name, resourceType, systemData) { JobScheduleId = jobScheduleId; Schedule = schedule; @@ -41,7 +42,7 @@ internal JobScheduleData(ResourceIdentifier id, string name, ResourceType resour } /// Gets or sets the id of job schedule. - public string JobScheduleId { get; } + public Guid? JobScheduleId { get; } /// Gets or sets the schedule. internal ScheduleAssociationProperty Schedule { get; } /// Gets or sets the name of the Schedule. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobScheduleResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs index 125a24bce39b8..0f20a473fc2f7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/JobScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationJobScheduleResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a JobSchedule along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetJobScheduleResource method. - /// Otherwise you can get one from its parent resource using the GetJobSchedule method. + /// A Class representing an AutomationJobSchedule along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationJobScheduleResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationJobSchedule method. /// - public partial class JobScheduleResource : ArmResource + public partial class AutomationJobScheduleResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobSchedules/{jobScheduleId}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _jobScheduleClientDiagnostics; - private readonly JobScheduleRestOperations _jobScheduleRestClient; - private readonly JobScheduleData _data; + private readonly ClientDiagnostics _automationJobScheduleJobScheduleClientDiagnostics; + private readonly JobScheduleRestOperations _automationJobScheduleJobScheduleRestClient; + private readonly AutomationJobScheduleData _data; - /// Initializes a new instance of the class for mocking. - protected JobScheduleResource() + /// Initializes a new instance of the class for mocking. + protected AutomationJobScheduleResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal JobScheduleResource(ArmClient client, JobScheduleData data) : this(client, data.Id) + internal AutomationJobScheduleResource(ArmClient client, AutomationJobScheduleData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal JobScheduleResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationJobScheduleResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _jobScheduleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string jobScheduleApiVersion); - _jobScheduleRestClient = new JobScheduleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, jobScheduleApiVersion); + _automationJobScheduleJobScheduleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationJobScheduleJobScheduleApiVersion); + _automationJobScheduleJobScheduleRestClient = new JobScheduleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationJobScheduleJobScheduleApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal JobScheduleResource(ArmClient client, ResourceIdentifier id) : base(cli /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual JobScheduleData Data + public virtual AutomationJobScheduleData Data { get { @@ -93,16 +93,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: JobSchedule_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleResource.Get"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleResource.Get"); scope.Start(); try { - var response = await _jobScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), cancellationToken).ConfigureAwait(false); + var response = await _automationJobScheduleJobScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobScheduleResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationJobScheduleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -117,16 +117,16 @@ public virtual async Task> GetAsync(CancellationTo /// Operation Id: JobSchedule_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleResource.Get"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleResource.Get"); scope.Start(); try { - var response = _jobScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), cancellationToken); + var response = _automationJobScheduleJobScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new JobScheduleResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationJobScheduleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -144,11 +144,11 @@ public virtual Response Get(CancellationToken cancellationT /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleResource.Delete"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleResource.Delete"); scope.Start(); try { - var response = await _jobScheduleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), cancellationToken).ConfigureAwait(false); + var response = await _automationJobScheduleJobScheduleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -170,11 +170,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleResource.Delete"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleResource.Delete"); scope.Start(); try { - var response = _jobScheduleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), cancellationToken); + var response = _automationJobScheduleJobScheduleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), cancellationToken); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -196,16 +196,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The parameters supplied to the create job schedule operation. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WaitUntil waitUntil, JobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(WaitUntil waitUntil, AutomationJobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleResource.Update"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleResource.Update"); scope.Start(); try { - var response = await _jobScheduleRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new JobScheduleResource(Client, response), response.GetRawResponse())); + var response = await _automationJobScheduleJobScheduleRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -226,16 +226,16 @@ public virtual async Task> UpdateAsync(WaitUnt /// The parameters supplied to the create job schedule operation. /// The cancellation token to use. /// is null. - public virtual ArmOperation Update(WaitUntil waitUntil, JobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation Update(WaitUntil waitUntil, AutomationJobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _jobScheduleClientDiagnostics.CreateScope("JobScheduleResource.Update"); + using var scope = _automationJobScheduleJobScheduleClientDiagnostics.CreateScope("AutomationJobScheduleResource.Update"); scope.Start(); try { - var response = _jobScheduleRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new JobScheduleResource(Client, response), response.GetRawResponse())); + var response = _automationJobScheduleJobScheduleRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Guid.Parse(Id.Name), content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationJobScheduleResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ModuleData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.cs similarity index 77% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/ModuleData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.cs index 331d0ea48c46f..51fa6fda60333 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ModuleData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationModuleData.cs @@ -14,16 +14,16 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the Module data model. - public partial class ModuleData : TrackedResourceData + /// A class representing the AutomationModule data model. + public partial class AutomationModuleData : TrackedResourceData { - /// Initializes a new instance of ModuleData. + /// Initializes a new instance of AutomationModuleData. /// The location. - public ModuleData(AzureLocation location) : base(location) + public AutomationModuleData(AzureLocation location) : base(location) { } - /// Initializes a new instance of ModuleData. + /// Initializes a new instance of AutomationModuleData. /// The id. /// The name. /// The resourceType. @@ -42,7 +42,7 @@ public ModuleData(AzureLocation location) : base(location) /// Gets or sets the last modified time. /// Gets or sets the description. /// Gets or sets type of module, if its composite or not. - internal ModuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, bool? isGlobal, string version, long? sizeInBytes, int? activityCount, ModuleProvisioningState? provisioningState, ContentLink contentLink, ModuleErrorInfo error, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description, bool? isComposite) : base(id, name, resourceType, systemData, tags, location) + internal AutomationModuleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, bool? isGlobal, string version, long? sizeInBytes, int? activityCount, ModuleProvisioningState? provisioningState, AutomationContentLink contentLink, AutomationModuleErrorInfo error, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description, bool? isComposite) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; IsGlobal = isGlobal; @@ -71,9 +71,9 @@ internal ModuleData(ResourceIdentifier id, string name, ResourceType resourceTyp /// Gets or sets the provisioning state of the module. public ModuleProvisioningState? ProvisioningState { get; set; } /// Gets or sets the contentLink of the module. - public ContentLink ContentLink { get; set; } + public AutomationContentLink ContentLink { get; set; } /// Gets or sets the error info of the module. - public ModuleErrorInfo Error { get; set; } + public AutomationModuleErrorInfo Error { get; set; } /// Gets or sets the creation time. public DateTimeOffset? CreatedOn { get; set; } /// Gets or sets the last modified time. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RunbookCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs similarity index 62% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/RunbookCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs index 1cc9810d4c1cf..17a75f3f9a0bc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RunbookCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetRunbooks method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationRunbooks method from an instance of . /// - public partial class RunbookCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationRunbookCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _runbookClientDiagnostics; - private readonly RunbookRestOperations _runbookRestClient; + private readonly ClientDiagnostics _automationRunbookRunbookClientDiagnostics; + private readonly RunbookRestOperations _automationRunbookRunbookRestClient; - /// Initializes a new instance of the class for mocking. - protected RunbookCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationRunbookCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal RunbookCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationRunbookCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _runbookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", RunbookResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(RunbookResource.ResourceType, out string runbookApiVersion); - _runbookRestClient = new RunbookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, runbookApiVersion); + _automationRunbookRunbookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationRunbookResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationRunbookResource.ResourceType, out string automationRunbookRunbookApiVersion); + _automationRunbookRunbookRestClient = new RunbookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationRunbookRunbookApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -65,17 +65,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string runbookName, RunbookCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string runbookName, AutomationRunbookCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(runbookName, nameof(runbookName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookCollection.CreateOrUpdate"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _runbookRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new RunbookResource(Client, response), response.GetRawResponse())); + var response = await _automationRunbookRunbookRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationRunbookResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -98,17 +98,17 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string runbookName, RunbookCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string runbookName, AutomationRunbookCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(runbookName, nameof(runbookName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookCollection.CreateOrUpdate"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookCollection.CreateOrUpdate"); scope.Start(); try { - var response = _runbookRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new RunbookResource(Client, response), response.GetRawResponse())); + var response = _automationRunbookRunbookRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationRunbookResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -129,18 +129,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string runbookName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string runbookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(runbookName, nameof(runbookName)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookCollection.Get"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookCollection.Get"); scope.Start(); try { - var response = await _runbookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, cancellationToken).ConfigureAwait(false); + var response = await _automationRunbookRunbookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RunbookResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationRunbookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,18 +158,18 @@ public virtual async Task> GetAsync(string runbookName /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string runbookName, CancellationToken cancellationToken = default) + public virtual Response Get(string runbookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(runbookName, nameof(runbookName)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookCollection.Get"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookCollection.Get"); scope.Start(); try { - var response = _runbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, cancellationToken); + var response = _automationRunbookRunbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RunbookResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationRunbookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -184,17 +184,17 @@ public virtual Response Get(string runbookName, CancellationTok /// Operation Id: Runbook_ListByAutomationAccount /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookCollection.GetAll"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookCollection.GetAll"); scope.Start(); try { - var response = await _runbookRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new RunbookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationRunbookRunbookRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationRunbookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -202,14 +202,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookCollection.GetAll"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookCollection.GetAll"); scope.Start(); try { - var response = await _runbookRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new RunbookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationRunbookRunbookRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationRunbookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -226,17 +226,17 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHin /// Operation Id: Runbook_ListByAutomationAccount /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookCollection.GetAll"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookCollection.GetAll"); scope.Start(); try { - var response = _runbookRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new RunbookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationRunbookRunbookRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationRunbookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -244,14 +244,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookCollection.GetAll"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookCollection.GetAll"); scope.Start(); try { - var response = _runbookRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new RunbookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationRunbookRunbookRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationRunbookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -275,11 +275,11 @@ public virtual async Task> ExistsAsync(string runbookName, Cancel { Argument.AssertNotNullOrEmpty(runbookName, nameof(runbookName)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookCollection.Exists"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookCollection.Exists"); scope.Start(); try { - var response = await _runbookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationRunbookRunbookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -302,11 +302,11 @@ public virtual Response Exists(string runbookName, CancellationToken cance { Argument.AssertNotNullOrEmpty(runbookName, nameof(runbookName)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookCollection.Exists"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookCollection.Exists"); scope.Start(); try { - var response = _runbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, cancellationToken: cancellationToken); + var response = _automationRunbookRunbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, runbookName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,7 +316,7 @@ public virtual Response Exists(string runbookName, CancellationToken cance } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -326,7 +326,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RunbookData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookData.cs similarity index 73% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/RunbookData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookData.cs index 239ddb6c79c19..146361af40033 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RunbookData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookData.cs @@ -14,18 +14,18 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the Runbook data model. - public partial class RunbookData : TrackedResourceData + /// A class representing the AutomationRunbook data model. + public partial class AutomationRunbookData : TrackedResourceData { - /// Initializes a new instance of RunbookData. + /// Initializes a new instance of AutomationRunbookData. /// The location. - public RunbookData(AzureLocation location) : base(location) + public AutomationRunbookData(AzureLocation location) : base(location) { - Parameters = new ChangeTrackingDictionary(); + Parameters = new ChangeTrackingDictionary(); OutputTypes = new ChangeTrackingList(); } - /// Initializes a new instance of RunbookData. + /// Initializes a new instance of AutomationRunbookData. /// The id. /// The name. /// The resourceType. @@ -36,8 +36,8 @@ public RunbookData(AzureLocation location) : base(location) /// Gets or sets the type of the runbook. /// Gets or sets the published runbook content link. /// Gets or sets the state of the runbook. - /// Gets or sets verbose log option. - /// Gets or sets progress log option. + /// Gets or sets verbose log option. + /// Gets or sets progress log option. /// Gets or sets the option to log activity trace of the runbook. /// Gets or sets the job count of the runbook. /// Gets or sets the runbook parameters. @@ -48,14 +48,14 @@ public RunbookData(AzureLocation location) : base(location) /// Gets or sets the creation time. /// Gets or sets the last modified time. /// Gets or sets the description. - internal RunbookData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, RunbookTypeEnum? runbookType, ContentLink publishContentLink, RunbookState? state, bool? logVerbose, bool? logProgress, int? logActivityTrace, int? jobCount, IDictionary parameters, IList outputTypes, RunbookDraft draft, RunbookProvisioningState? provisioningState, string lastModifiedBy, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData, tags, location) + internal AutomationRunbookData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, AutomationRunbookType? runbookType, AutomationContentLink publishContentLink, RunbookState? state, bool? isLogVerboseEnabled, bool? isLogProgressEnabled, int? logActivityTrace, int? jobCount, IDictionary parameters, IList outputTypes, AutomationRunbookDraft draft, RunbookProvisioningState? provisioningState, string lastModifiedBy, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; RunbookType = runbookType; PublishContentLink = publishContentLink; State = state; - LogVerbose = logVerbose; - LogProgress = logProgress; + IsLogVerboseEnabled = isLogVerboseEnabled; + IsLogProgressEnabled = isLogProgressEnabled; LogActivityTrace = logActivityTrace; JobCount = jobCount; Parameters = parameters; @@ -71,25 +71,25 @@ internal RunbookData(ResourceIdentifier id, string name, ResourceType resourceTy /// Gets or sets the etag of the resource. public ETag? ETag { get; set; } /// Gets or sets the type of the runbook. - public RunbookTypeEnum? RunbookType { get; set; } + public AutomationRunbookType? RunbookType { get; set; } /// Gets or sets the published runbook content link. - public ContentLink PublishContentLink { get; set; } + public AutomationContentLink PublishContentLink { get; set; } /// Gets or sets the state of the runbook. public RunbookState? State { get; set; } /// Gets or sets verbose log option. - public bool? LogVerbose { get; set; } + public bool? IsLogVerboseEnabled { get; set; } /// Gets or sets progress log option. - public bool? LogProgress { get; set; } + public bool? IsLogProgressEnabled { get; set; } /// Gets or sets the option to log activity trace of the runbook. public int? LogActivityTrace { get; set; } /// Gets or sets the job count of the runbook. public int? JobCount { get; set; } /// Gets or sets the runbook parameters. - public IDictionary Parameters { get; } + public IDictionary Parameters { get; } /// Gets or sets the runbook output types. public IList OutputTypes { get; } /// Gets or sets the draft runbook properties. - public RunbookDraft Draft { get; set; } + public AutomationRunbookDraft Draft { get; set; } /// Gets or sets the provisioning state of the runbook. public RunbookProvisioningState? ProvisioningState { get; set; } /// Gets or sets the last modified by. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RunbookResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs similarity index 79% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/RunbookResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs index 12a9e75b86648..1baace54d94c7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RunbookResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationRunbookResource.cs @@ -20,52 +20,52 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a Runbook along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetRunbookResource method. - /// Otherwise you can get one from its parent resource using the GetRunbook method. + /// A Class representing an AutomationRunbook along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationRunbookResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationRunbook method. /// - public partial class RunbookResource : ArmResource + public partial class AutomationRunbookResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/runbooks/{runbookName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _runbookClientDiagnostics; - private readonly RunbookRestOperations _runbookRestClient; + private readonly ClientDiagnostics _automationRunbookRunbookClientDiagnostics; + private readonly RunbookRestOperations _automationRunbookRunbookRestClient; private readonly ClientDiagnostics _runbookDraftClientDiagnostics; private readonly RunbookDraftRestOperations _runbookDraftRestClient; private readonly ClientDiagnostics _testJobStreamsClientDiagnostics; private readonly TestJobStreamsRestOperations _testJobStreamsRestClient; private readonly ClientDiagnostics _testJobClientDiagnostics; private readonly TestJobRestOperations _testJobRestClient; - private readonly RunbookData _data; + private readonly AutomationRunbookData _data; - /// Initializes a new instance of the class for mocking. - protected RunbookResource() + /// Initializes a new instance of the class for mocking. + protected AutomationRunbookResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal RunbookResource(ArmClient client, RunbookData data) : this(client, data.Id) + internal AutomationRunbookResource(ArmClient client, AutomationRunbookData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal RunbookResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationRunbookResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _runbookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string runbookApiVersion); - _runbookRestClient = new RunbookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, runbookApiVersion); + _automationRunbookRunbookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationRunbookRunbookApiVersion); + _automationRunbookRunbookRestClient = new RunbookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationRunbookRunbookApiVersion); _runbookDraftClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _runbookDraftRestClient = new RunbookDraftRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _testJobStreamsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -85,7 +85,7 @@ internal RunbookResource(ArmClient client, ResourceIdentifier id) : base(client, /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual RunbookData Data + public virtual AutomationRunbookData Data { get { @@ -107,16 +107,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: Runbook_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.Get"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.Get"); scope.Start(); try { - var response = await _runbookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationRunbookRunbookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RunbookResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationRunbookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -131,16 +131,16 @@ public virtual async Task> GetAsync(CancellationToken /// Operation Id: Runbook_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.Get"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.Get"); scope.Start(); try { - var response = _runbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationRunbookRunbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new RunbookResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationRunbookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,11 +158,11 @@ public virtual Response Get(CancellationToken cancellationToken /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.Delete"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.Delete"); scope.Start(); try { - var response = await _runbookRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationRunbookRunbookRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -184,11 +184,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.Delete"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.Delete"); scope.Start(); try { - var response = _runbookRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationRunbookRunbookRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -209,16 +209,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The update parameters for runbook. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(RunbookPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(AutomationRunbookPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.Update"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.Update"); scope.Start(); try { - var response = await _runbookRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new RunbookResource(Client, response.Value), response.GetRawResponse()); + var response = await _automationRunbookRunbookRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationRunbookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -235,16 +235,16 @@ public virtual async Task> UpdateAsync(RunbookPatch pa /// The update parameters for runbook. /// The cancellation token to use. /// is null. - public virtual Response Update(RunbookPatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(AutomationRunbookPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.Update"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.Update"); scope.Start(); try { - var response = _runbookRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new RunbookResource(Client, response.Value), response.GetRawResponse()); + var response = _automationRunbookRunbookRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new AutomationRunbookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -261,7 +261,7 @@ public virtual Response Update(RunbookPatch patch, Cancellation /// The cancellation token to use. public virtual async Task> GetContentRunbookDraftAsync(CancellationToken cancellationToken = default) { - using var scope = _runbookDraftClientDiagnostics.CreateScope("RunbookResource.GetContentRunbookDraft"); + using var scope = _runbookDraftClientDiagnostics.CreateScope("AutomationRunbookResource.GetContentRunbookDraft"); scope.Start(); try { @@ -283,7 +283,7 @@ public virtual async Task> GetContentRunbookDraftAsync(Cancella /// The cancellation token to use. public virtual Response GetContentRunbookDraft(CancellationToken cancellationToken = default) { - using var scope = _runbookDraftClientDiagnostics.CreateScope("RunbookResource.GetContentRunbookDraft"); + using var scope = _runbookDraftClientDiagnostics.CreateScope("AutomationRunbookResource.GetContentRunbookDraft"); scope.Start(); try { @@ -310,7 +310,7 @@ public virtual async Task ReplaceContentRunbookDraftAsync(WaitUnti { Argument.AssertNotNull(runbookContent, nameof(runbookContent)); - using var scope = _runbookDraftClientDiagnostics.CreateScope("RunbookResource.ReplaceContentRunbookDraft"); + using var scope = _runbookDraftClientDiagnostics.CreateScope("AutomationRunbookResource.ReplaceContentRunbookDraft"); scope.Start(); try { @@ -340,7 +340,7 @@ public virtual ArmOperation ReplaceContentRunbookDraft(WaitUntil waitUntil, Stre { Argument.AssertNotNull(runbookContent, nameof(runbookContent)); - using var scope = _runbookDraftClientDiagnostics.CreateScope("RunbookResource.ReplaceContentRunbookDraft"); + using var scope = _runbookDraftClientDiagnostics.CreateScope("AutomationRunbookResource.ReplaceContentRunbookDraft"); scope.Start(); try { @@ -363,9 +363,9 @@ public virtual ArmOperation ReplaceContentRunbookDraft(WaitUntil waitUntil, Stre /// Operation Id: RunbookDraft_Get /// /// The cancellation token to use. - public virtual async Task> GetRunbookDraftAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetRunbookDraftAsync(CancellationToken cancellationToken = default) { - using var scope = _runbookDraftClientDiagnostics.CreateScope("RunbookResource.GetRunbookDraft"); + using var scope = _runbookDraftClientDiagnostics.CreateScope("AutomationRunbookResource.GetRunbookDraft"); scope.Start(); try { @@ -385,9 +385,9 @@ public virtual async Task> GetRunbookDraftAsync(Cancellat /// Operation Id: RunbookDraft_Get /// /// The cancellation token to use. - public virtual Response GetRunbookDraft(CancellationToken cancellationToken = default) + public virtual Response GetRunbookDraft(CancellationToken cancellationToken = default) { - using var scope = _runbookDraftClientDiagnostics.CreateScope("RunbookResource.GetRunbookDraft"); + using var scope = _runbookDraftClientDiagnostics.CreateScope("AutomationRunbookResource.GetRunbookDraft"); scope.Start(); try { @@ -409,7 +409,7 @@ public virtual Response GetRunbookDraft(CancellationToken cancella /// The cancellation token to use. public virtual async Task> UndoEditRunbookDraftAsync(CancellationToken cancellationToken = default) { - using var scope = _runbookDraftClientDiagnostics.CreateScope("RunbookResource.UndoEditRunbookDraft"); + using var scope = _runbookDraftClientDiagnostics.CreateScope("AutomationRunbookResource.UndoEditRunbookDraft"); scope.Start(); try { @@ -431,7 +431,7 @@ public virtual async Task> UndoEditRunbookD /// The cancellation token to use. public virtual Response UndoEditRunbookDraft(CancellationToken cancellationToken = default) { - using var scope = _runbookDraftClientDiagnostics.CreateScope("RunbookResource.UndoEditRunbookDraft"); + using var scope = _runbookDraftClientDiagnostics.CreateScope("AutomationRunbookResource.UndoEditRunbookDraft"); scope.Start(); try { @@ -454,12 +454,12 @@ public virtual Response UndoEditRunbookDraft(Cancell /// The cancellation token to use. public virtual async Task PublishAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.Publish"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.Publish"); scope.Start(); try { - var response = await _runbookRestClient.PublishAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(_runbookClientDiagnostics, Pipeline, _runbookRestClient.CreatePublishRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = await _automationRunbookRunbookRestClient.PublishAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(_automationRunbookRunbookClientDiagnostics, Pipeline, _automationRunbookRunbookRestClient.CreatePublishRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -480,12 +480,12 @@ public virtual async Task PublishAsync(WaitUntil waitUntil, Cancel /// The cancellation token to use. public virtual ArmOperation Publish(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.Publish"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.Publish"); scope.Start(); try { - var response = _runbookRestClient.Publish(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - var operation = new AutomationArmOperation(_runbookClientDiagnostics, Pipeline, _runbookRestClient.CreatePublishRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); + var response = _automationRunbookRunbookRestClient.Publish(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var operation = new AutomationArmOperation(_automationRunbookRunbookClientDiagnostics, Pipeline, _automationRunbookRunbookRestClient.CreatePublishRequest(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name).Request, response, OperationFinalStateVia.Location); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); return operation; @@ -505,11 +505,11 @@ public virtual ArmOperation Publish(WaitUntil waitUntil, CancellationToken cance /// The cancellation token to use. public virtual async Task> GetContentAsync(CancellationToken cancellationToken = default) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.GetContent"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.GetContent"); scope.Start(); try { - var response = await _runbookRestClient.GetContentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationRunbookRunbookRestClient.GetContentAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -527,11 +527,11 @@ public virtual async Task> GetContentAsync(CancellationToken ca /// The cancellation token to use. public virtual Response GetContent(CancellationToken cancellationToken = default) { - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.GetContent"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.GetContent"); scope.Start(); try { - var response = _runbookRestClient.GetContent(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationRunbookRunbookRestClient.GetContent(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); return response; } catch (Exception e) @@ -550,11 +550,11 @@ public virtual Response GetContent(CancellationToken cancellationToken = /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetTestJobStreamAsync(string jobStreamId, CancellationToken cancellationToken = default) + public virtual async Task> GetTestJobStreamAsync(string jobStreamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobStreamId, nameof(jobStreamId)); - using var scope = _testJobStreamsClientDiagnostics.CreateScope("RunbookResource.GetTestJobStream"); + using var scope = _testJobStreamsClientDiagnostics.CreateScope("AutomationRunbookResource.GetTestJobStream"); scope.Start(); try { @@ -577,11 +577,11 @@ public virtual async Task> GetTestJobStreamAsync(string jobS /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetTestJobStream(string jobStreamId, CancellationToken cancellationToken = default) + public virtual Response GetTestJobStream(string jobStreamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(jobStreamId, nameof(jobStreamId)); - using var scope = _testJobStreamsClientDiagnostics.CreateScope("RunbookResource.GetTestJobStream"); + using var scope = _testJobStreamsClientDiagnostics.CreateScope("AutomationRunbookResource.GetTestJobStream"); scope.Start(); try { @@ -602,12 +602,12 @@ public virtual Response GetTestJobStream(string jobStreamId, Cancella /// /// The filter to apply on the operation. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetTestJobStreamsByTestJobAsync(string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetTestJobStreamsAsync(string filter = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _testJobStreamsClientDiagnostics.CreateScope("RunbookResource.GetTestJobStreamsByTestJob"); + using var scope = _testJobStreamsClientDiagnostics.CreateScope("AutomationRunbookResource.GetTestJobStreams"); scope.Start(); try { @@ -620,9 +620,9 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _testJobStreamsClientDiagnostics.CreateScope("RunbookResource.GetTestJobStreamsByTestJob"); + using var scope = _testJobStreamsClientDiagnostics.CreateScope("AutomationRunbookResource.GetTestJobStreams"); scope.Start(); try { @@ -645,12 +645,12 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHint) /// /// The filter to apply on the operation. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetTestJobStreamsByTestJob(string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetTestJobStreams(string filter = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _testJobStreamsClientDiagnostics.CreateScope("RunbookResource.GetTestJobStreamsByTestJob"); + using var scope = _testJobStreamsClientDiagnostics.CreateScope("AutomationRunbookResource.GetTestJobStreams"); scope.Start(); try { @@ -663,9 +663,9 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _testJobStreamsClientDiagnostics.CreateScope("RunbookResource.GetTestJobStreamsByTestJob"); + using var scope = _testJobStreamsClientDiagnostics.CreateScope("AutomationRunbookResource.GetTestJobStreams"); scope.Start(); try { @@ -689,11 +689,11 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// The parameters supplied to the create test job operation. /// The cancellation token to use. /// is null. - public virtual async Task> CreateTestJobAsync(TestJobCreateContent content, CancellationToken cancellationToken = default) + public virtual async Task> CreateTestJobAsync(RunbookTestJobCreateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _testJobClientDiagnostics.CreateScope("RunbookResource.CreateTestJob"); + using var scope = _testJobClientDiagnostics.CreateScope("AutomationRunbookResource.CreateTestJob"); scope.Start(); try { @@ -715,11 +715,11 @@ public virtual async Task> CreateTestJobAsync(TestJobCreateCon /// The parameters supplied to the create test job operation. /// The cancellation token to use. /// is null. - public virtual Response CreateTestJob(TestJobCreateContent content, CancellationToken cancellationToken = default) + public virtual Response CreateTestJob(RunbookTestJobCreateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNull(content, nameof(content)); - using var scope = _testJobClientDiagnostics.CreateScope("RunbookResource.CreateTestJob"); + using var scope = _testJobClientDiagnostics.CreateScope("AutomationRunbookResource.CreateTestJob"); scope.Start(); try { @@ -739,9 +739,9 @@ public virtual Response CreateTestJob(TestJobCreateContent content, Can /// Operation Id: TestJob_Get /// /// The cancellation token to use. - public virtual async Task> GetTestJobAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetTestJobAsync(CancellationToken cancellationToken = default) { - using var scope = _testJobClientDiagnostics.CreateScope("RunbookResource.GetTestJob"); + using var scope = _testJobClientDiagnostics.CreateScope("AutomationRunbookResource.GetTestJob"); scope.Start(); try { @@ -761,9 +761,9 @@ public virtual async Task> GetTestJobAsync(CancellationToken c /// Operation Id: TestJob_Get /// /// The cancellation token to use. - public virtual Response GetTestJob(CancellationToken cancellationToken = default) + public virtual Response GetTestJob(CancellationToken cancellationToken = default) { - using var scope = _testJobClientDiagnostics.CreateScope("RunbookResource.GetTestJob"); + using var scope = _testJobClientDiagnostics.CreateScope("AutomationRunbookResource.GetTestJob"); scope.Start(); try { @@ -785,7 +785,7 @@ public virtual Response GetTestJob(CancellationToken cancellationToken /// The cancellation token to use. public virtual async Task ResumeTestJobAsync(CancellationToken cancellationToken = default) { - using var scope = _testJobClientDiagnostics.CreateScope("RunbookResource.ResumeTestJob"); + using var scope = _testJobClientDiagnostics.CreateScope("AutomationRunbookResource.ResumeTestJob"); scope.Start(); try { @@ -807,7 +807,7 @@ public virtual async Task ResumeTestJobAsync(CancellationToken cancell /// The cancellation token to use. public virtual Response ResumeTestJob(CancellationToken cancellationToken = default) { - using var scope = _testJobClientDiagnostics.CreateScope("RunbookResource.ResumeTestJob"); + using var scope = _testJobClientDiagnostics.CreateScope("AutomationRunbookResource.ResumeTestJob"); scope.Start(); try { @@ -829,7 +829,7 @@ public virtual Response ResumeTestJob(CancellationToken cancellationToken = defa /// The cancellation token to use. public virtual async Task StopTestJobAsync(CancellationToken cancellationToken = default) { - using var scope = _testJobClientDiagnostics.CreateScope("RunbookResource.StopTestJob"); + using var scope = _testJobClientDiagnostics.CreateScope("AutomationRunbookResource.StopTestJob"); scope.Start(); try { @@ -851,7 +851,7 @@ public virtual async Task StopTestJobAsync(CancellationToken cancellat /// The cancellation token to use. public virtual Response StopTestJob(CancellationToken cancellationToken = default) { - using var scope = _testJobClientDiagnostics.CreateScope("RunbookResource.StopTestJob"); + using var scope = _testJobClientDiagnostics.CreateScope("AutomationRunbookResource.StopTestJob"); scope.Start(); try { @@ -873,7 +873,7 @@ public virtual Response StopTestJob(CancellationToken cancellationToken = defaul /// The cancellation token to use. public virtual async Task SuspendTestJobAsync(CancellationToken cancellationToken = default) { - using var scope = _testJobClientDiagnostics.CreateScope("RunbookResource.SuspendTestJob"); + using var scope = _testJobClientDiagnostics.CreateScope("AutomationRunbookResource.SuspendTestJob"); scope.Start(); try { @@ -895,7 +895,7 @@ public virtual async Task SuspendTestJobAsync(CancellationToken cancel /// The cancellation token to use. public virtual Response SuspendTestJob(CancellationToken cancellationToken = default) { - using var scope = _testJobClientDiagnostics.CreateScope("RunbookResource.SuspendTestJob"); + using var scope = _testJobClientDiagnostics.CreateScope("AutomationRunbookResource.SuspendTestJob"); scope.Start(); try { @@ -918,12 +918,12 @@ public virtual Response SuspendTestJob(CancellationToken cancellationToken = def /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) + public virtual async Task> AddTagAsync(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.AddTag"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.AddTag"); scope.Start(); try { @@ -932,13 +932,13 @@ public virtual async Task> AddTagAsync(string key, str var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues[key] = value; await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _runbookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new RunbookResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _automationRunbookRunbookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationRunbookResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new RunbookPatch(); + var patch = new AutomationRunbookPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -964,12 +964,12 @@ public virtual async Task> AddTagAsync(string key, str /// The value for the tag. /// The cancellation token to use. /// or is null. - public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) + public virtual Response AddTag(string key, string value, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); Argument.AssertNotNull(value, nameof(value)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.AddTag"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.AddTag"); scope.Start(); try { @@ -978,13 +978,13 @@ public virtual Response AddTag(string key, string value, Cancel var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues[key] = value; GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _runbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new RunbookResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _automationRunbookRunbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationRunbookResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new RunbookPatch(); + var patch = new AutomationRunbookPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -1009,11 +1009,11 @@ public virtual Response AddTag(string key, string value, Cancel /// The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) + public virtual async Task> SetTagsAsync(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.SetTags"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.SetTags"); scope.Start(); try { @@ -1023,13 +1023,13 @@ public virtual async Task> SetTagsAsync(IDictionary> SetTagsAsync(IDictionary The set of tags to use as replacement. /// The cancellation token to use. /// is null. - public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) + public virtual Response SetTags(IDictionary tags, CancellationToken cancellationToken = default) { Argument.AssertNotNull(tags, nameof(tags)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.SetTags"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.SetTags"); scope.Start(); try { @@ -1064,13 +1064,13 @@ public virtual Response SetTags(IDictionary tag var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.ReplaceWith(tags); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _runbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new RunbookResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _automationRunbookRunbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationRunbookResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new RunbookPatch(); + var patch = new AutomationRunbookPatch(); patch.Tags.ReplaceWith(tags); var result = Update(patch, cancellationToken: cancellationToken); return result; @@ -1091,11 +1091,11 @@ public virtual Response SetTags(IDictionary tag /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) + public virtual async Task> RemoveTagAsync(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.RemoveTag"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.RemoveTag"); scope.Start(); try { @@ -1104,13 +1104,13 @@ public virtual async Task> RemoveTagAsync(string key, var originalTags = await GetTagResource().GetAsync(cancellationToken).ConfigureAwait(false); originalTags.Value.Data.TagValues.Remove(key); await GetTagResource().CreateOrUpdateAsync(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken).ConfigureAwait(false); - var originalResponse = await _runbookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new RunbookResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = await _automationRunbookRunbookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationRunbookResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = (await GetAsync(cancellationToken: cancellationToken).ConfigureAwait(false)).Value.Data; - var patch = new RunbookPatch(); + var patch = new AutomationRunbookPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); @@ -1135,11 +1135,11 @@ public virtual async Task> RemoveTagAsync(string key, /// The key for the tag. /// The cancellation token to use. /// is null. - public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) + public virtual Response RemoveTag(string key, CancellationToken cancellationToken = default) { Argument.AssertNotNull(key, nameof(key)); - using var scope = _runbookClientDiagnostics.CreateScope("RunbookResource.RemoveTag"); + using var scope = _automationRunbookRunbookClientDiagnostics.CreateScope("AutomationRunbookResource.RemoveTag"); scope.Start(); try { @@ -1148,13 +1148,13 @@ public virtual Response RemoveTag(string key, CancellationToken var originalTags = GetTagResource().Get(cancellationToken); originalTags.Value.Data.TagValues.Remove(key); GetTagResource().CreateOrUpdate(WaitUntil.Completed, originalTags.Value.Data, cancellationToken: cancellationToken); - var originalResponse = _runbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); - return Response.FromValue(new RunbookResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); + var originalResponse = _automationRunbookRunbookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + return Response.FromValue(new AutomationRunbookResource(Client, originalResponse.Value), originalResponse.GetRawResponse()); } else { var current = Get(cancellationToken: cancellationToken).Value.Data; - var patch = new RunbookPatch(); + var patch = new AutomationRunbookPatch(); foreach (var tag in current.Tags) { patch.Tags.Add(tag); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ScheduleCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs similarity index 62% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/ScheduleCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs index d1a94772d0fbe..a43e445367f11 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ScheduleCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetSchedules method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationSchedules method from an instance of . /// - public partial class ScheduleCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationScheduleCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _scheduleClientDiagnostics; - private readonly ScheduleRestOperations _scheduleRestClient; + private readonly ClientDiagnostics _automationScheduleScheduleClientDiagnostics; + private readonly ScheduleRestOperations _automationScheduleScheduleRestClient; - /// Initializes a new instance of the class for mocking. - protected ScheduleCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationScheduleCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal ScheduleCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationScheduleCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _scheduleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ScheduleResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ScheduleResource.ResourceType, out string scheduleApiVersion); - _scheduleRestClient = new ScheduleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, scheduleApiVersion); + _automationScheduleScheduleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationScheduleResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationScheduleResource.ResourceType, out string automationScheduleScheduleApiVersion); + _automationScheduleScheduleRestClient = new ScheduleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationScheduleScheduleApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -65,17 +65,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string scheduleName, ScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string scheduleName, AutomationScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(scheduleName, nameof(scheduleName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleCollection.CreateOrUpdate"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _scheduleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new ScheduleResource(Client, response), response.GetRawResponse())); + var response = await _automationScheduleScheduleRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationScheduleResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -98,17 +98,17 @@ public virtual async Task> CreateOrUpdateAsync(Wa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string scheduleName, ScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string scheduleName, AutomationScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(scheduleName, nameof(scheduleName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleCollection.CreateOrUpdate"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleCollection.CreateOrUpdate"); scope.Start(); try { - var response = _scheduleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new ScheduleResource(Client, response), response.GetRawResponse())); + var response = _automationScheduleScheduleRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationScheduleResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -129,18 +129,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string scheduleName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string scheduleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(scheduleName, nameof(scheduleName)); - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleCollection.Get"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleCollection.Get"); scope.Start(); try { - var response = await _scheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, cancellationToken).ConfigureAwait(false); + var response = await _automationScheduleScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ScheduleResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationScheduleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,18 +158,18 @@ public virtual async Task> GetAsync(string scheduleNa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string scheduleName, CancellationToken cancellationToken = default) + public virtual Response Get(string scheduleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(scheduleName, nameof(scheduleName)); - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleCollection.Get"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleCollection.Get"); scope.Start(); try { - var response = _scheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, cancellationToken); + var response = _automationScheduleScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ScheduleResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationScheduleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -184,17 +184,17 @@ public virtual Response Get(string scheduleName, CancellationT /// Operation Id: Schedule_ListByAutomationAccount /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleCollection.GetAll"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleCollection.GetAll"); scope.Start(); try { - var response = await _scheduleRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationScheduleScheduleRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -202,14 +202,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleCollection.GetAll"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleCollection.GetAll"); scope.Start(); try { - var response = await _scheduleRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new ScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationScheduleScheduleRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -226,17 +226,17 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHi /// Operation Id: Schedule_ListByAutomationAccount /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleCollection.GetAll"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleCollection.GetAll"); scope.Start(); try { - var response = _scheduleRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationScheduleScheduleRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -244,14 +244,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleCollection.GetAll"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleCollection.GetAll"); scope.Start(); try { - var response = _scheduleRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new ScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationScheduleScheduleRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationScheduleResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -275,11 +275,11 @@ public virtual async Task> ExistsAsync(string scheduleName, Cance { Argument.AssertNotNullOrEmpty(scheduleName, nameof(scheduleName)); - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleCollection.Exists"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleCollection.Exists"); scope.Start(); try { - var response = await _scheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationScheduleScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -302,11 +302,11 @@ public virtual Response Exists(string scheduleName, CancellationToken canc { Argument.AssertNotNullOrEmpty(scheduleName, nameof(scheduleName)); - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleCollection.Exists"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleCollection.Exists"); scope.Start(); try { - var response = _scheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, cancellationToken: cancellationToken); + var response = _automationScheduleScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, scheduleName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,7 +316,7 @@ public virtual Response Exists(string scheduleName, CancellationToken canc } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -326,7 +326,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ScheduleData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleData.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/ScheduleData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleData.cs index b0e0bf1d9f056..4588b6d361347 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ScheduleData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleData.cs @@ -12,26 +12,26 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the Schedule data model. - public partial class ScheduleData : ResourceData + /// A class representing the AutomationSchedule data model. + public partial class AutomationScheduleData : ResourceData { - /// Initializes a new instance of ScheduleData. - public ScheduleData() + /// Initializes a new instance of AutomationScheduleData. + public AutomationScheduleData() { } - /// Initializes a new instance of ScheduleData. + /// Initializes a new instance of AutomationScheduleData. /// The id. /// The name. /// The resourceType. /// The systemData. /// Gets or sets the start time of the schedule. - /// Gets the start time's offset in minutes. - /// Gets or sets the end time of the schedule. - /// Gets or sets the expiry time's offset in minutes. + /// Gets the start time's offset in minutes. + /// Gets or sets the end time of the schedule. + /// Gets or sets the expiry time's offset in minutes. /// Gets or sets a value indicating whether this schedule is enabled. - /// Gets or sets the next run time of the schedule. - /// Gets or sets the next run time's offset in minutes. + /// Gets or sets the next run time of the schedule. + /// Gets or sets the next run time's offset in minutes. /// Gets or sets the interval of the schedule. /// Gets or sets the frequency of the schedule. /// Gets or sets the time zone of the schedule. @@ -39,15 +39,15 @@ public ScheduleData() /// Gets or sets the creation time. /// Gets or sets the last modified time. /// Gets or sets the description. - internal ScheduleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? startOn, double? startTimeOffsetMinutes, DateTimeOffset? expiryOn, double? expiryTimeOffsetMinutes, bool? isEnabled, DateTimeOffset? nextRun, double? nextRunOffsetMinutes, BinaryData interval, ScheduleFrequency? frequency, string timeZone, AdvancedSchedule advancedSchedule, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) + internal AutomationScheduleData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? startOn, double? startInMinutes, DateTimeOffset? expireOn, double? expireInMinutes, bool? isEnabled, DateTimeOffset? nextRunOn, double? nextRunInMinutes, BinaryData interval, AutomationScheduleFrequency? frequency, string timeZone, AutomationAdvancedSchedule advancedSchedule, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) { StartOn = startOn; - StartTimeOffsetMinutes = startTimeOffsetMinutes; - ExpiryOn = expiryOn; - ExpiryTimeOffsetMinutes = expiryTimeOffsetMinutes; + StartInMinutes = startInMinutes; + ExpireOn = expireOn; + ExpireInMinutes = expireInMinutes; IsEnabled = isEnabled; - NextRun = nextRun; - NextRunOffsetMinutes = nextRunOffsetMinutes; + NextRunOn = nextRunOn; + NextRunInMinutes = nextRunInMinutes; Interval = interval; Frequency = frequency; TimeZone = timeZone; @@ -60,17 +60,17 @@ internal ScheduleData(ResourceIdentifier id, string name, ResourceType resourceT /// Gets or sets the start time of the schedule. public DateTimeOffset? StartOn { get; set; } /// Gets the start time's offset in minutes. - public double? StartTimeOffsetMinutes { get; } + public double? StartInMinutes { get; } /// Gets or sets the end time of the schedule. - public DateTimeOffset? ExpiryOn { get; set; } + public DateTimeOffset? ExpireOn { get; set; } /// Gets or sets the expiry time's offset in minutes. - public double? ExpiryTimeOffsetMinutes { get; set; } + public double? ExpireInMinutes { get; set; } /// Gets or sets a value indicating whether this schedule is enabled. public bool? IsEnabled { get; set; } /// Gets or sets the next run time of the schedule. - public DateTimeOffset? NextRun { get; set; } + public DateTimeOffset? NextRunOn { get; set; } /// Gets or sets the next run time's offset in minutes. - public double? NextRunOffsetMinutes { get; set; } + public double? NextRunInMinutes { get; set; } /// /// Gets or sets the interval of the schedule. /// @@ -103,11 +103,11 @@ internal ScheduleData(ResourceIdentifier id, string name, ResourceType resourceT /// public BinaryData Interval { get; set; } /// Gets or sets the frequency of the schedule. - public ScheduleFrequency? Frequency { get; set; } + public AutomationScheduleFrequency? Frequency { get; set; } /// Gets or sets the time zone of the schedule. public string TimeZone { get; set; } /// Gets or sets the advanced schedule. - public AdvancedSchedule AdvancedSchedule { get; set; } + public AutomationAdvancedSchedule AdvancedSchedule { get; set; } /// Gets or sets the creation time. public DateTimeOffset? CreatedOn { get; set; } /// Gets or sets the last modified time. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ScheduleResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs similarity index 67% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/ScheduleResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs index e7a0a6ea52d64..cad602bd78c48 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/ScheduleResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationScheduleResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a Schedule along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetScheduleResource method. - /// Otherwise you can get one from its parent resource using the GetSchedule method. + /// A Class representing an AutomationSchedule along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationScheduleResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationSchedule method. /// - public partial class ScheduleResource : ArmResource + public partial class AutomationScheduleResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/schedules/{scheduleName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _scheduleClientDiagnostics; - private readonly ScheduleRestOperations _scheduleRestClient; - private readonly ScheduleData _data; + private readonly ClientDiagnostics _automationScheduleScheduleClientDiagnostics; + private readonly ScheduleRestOperations _automationScheduleScheduleRestClient; + private readonly AutomationScheduleData _data; - /// Initializes a new instance of the class for mocking. - protected ScheduleResource() + /// Initializes a new instance of the class for mocking. + protected AutomationScheduleResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal ScheduleResource(ArmClient client, ScheduleData data) : this(client, data.Id) + internal AutomationScheduleResource(ArmClient client, AutomationScheduleData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal ScheduleResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationScheduleResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _scheduleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string scheduleApiVersion); - _scheduleRestClient = new ScheduleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, scheduleApiVersion); + _automationScheduleScheduleClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationScheduleScheduleApiVersion); + _automationScheduleScheduleRestClient = new ScheduleRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationScheduleScheduleApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal ScheduleResource(ArmClient client, ResourceIdentifier id) : base(client /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual ScheduleData Data + public virtual AutomationScheduleData Data { get { @@ -93,16 +93,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: Schedule_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleResource.Get"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleResource.Get"); scope.Start(); try { - var response = await _scheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationScheduleScheduleRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ScheduleResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationScheduleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -117,16 +117,16 @@ public virtual async Task> GetAsync(CancellationToken /// Operation Id: Schedule_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleResource.Get"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleResource.Get"); scope.Start(); try { - var response = _scheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationScheduleScheduleRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new ScheduleResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationScheduleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -144,11 +144,11 @@ public virtual Response Get(CancellationToken cancellationToke /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleResource.Delete"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleResource.Delete"); scope.Start(); try { - var response = await _scheduleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationScheduleScheduleRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -170,11 +170,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleResource.Delete"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleResource.Delete"); scope.Start(); try { - var response = _scheduleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationScheduleScheduleRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -195,16 +195,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The parameters supplied to the update schedule operation. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(SchedulePatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(AutomationSchedulePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleResource.Update"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleResource.Update"); scope.Start(); try { - var response = await _scheduleRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new ScheduleResource(Client, response.Value), response.GetRawResponse()); + var response = await _automationScheduleScheduleRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationScheduleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,16 +221,16 @@ public virtual async Task> UpdateAsync(SchedulePatch /// The parameters supplied to the update schedule operation. /// The cancellation token to use. /// is null. - public virtual Response Update(SchedulePatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(AutomationSchedulePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _scheduleClientDiagnostics.CreateScope("ScheduleResource.Update"); + using var scope = _automationScheduleScheduleClientDiagnostics.CreateScope("AutomationScheduleResource.Update"); scope.Start(); try { - var response = _scheduleRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new ScheduleResource(Client, response.Value), response.GetRawResponse()); + var response = _automationScheduleScheduleRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new AutomationScheduleResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SourceControlCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs similarity index 60% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/SourceControlCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs index 5f54cab30070c..7322901883445 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SourceControlCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetSourceControls method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationSourceControls method from an instance of . /// - public partial class SourceControlCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationSourceControlCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _sourceControlClientDiagnostics; - private readonly SourceControlRestOperations _sourceControlRestClient; + private readonly ClientDiagnostics _automationSourceControlSourceControlClientDiagnostics; + private readonly SourceControlRestOperations _automationSourceControlSourceControlRestClient; - /// Initializes a new instance of the class for mocking. - protected SourceControlCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationSourceControlCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal SourceControlCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationSourceControlCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _sourceControlClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", SourceControlResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(SourceControlResource.ResourceType, out string sourceControlApiVersion); - _sourceControlRestClient = new SourceControlRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, sourceControlApiVersion); + _automationSourceControlSourceControlClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationSourceControlResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationSourceControlResource.ResourceType, out string automationSourceControlSourceControlApiVersion); + _automationSourceControlSourceControlRestClient = new SourceControlRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationSourceControlSourceControlApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -65,17 +65,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string sourceControlName, SourceControlCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string sourceControlName, AutomationSourceControlCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(sourceControlName, nameof(sourceControlName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlCollection.CreateOrUpdate"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _sourceControlRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new SourceControlResource(Client, response), response.GetRawResponse())); + var response = await _automationSourceControlSourceControlRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationSourceControlResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -98,17 +98,17 @@ public virtual async Task> CreateOrUpdateAsy /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string sourceControlName, SourceControlCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string sourceControlName, AutomationSourceControlCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(sourceControlName, nameof(sourceControlName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlCollection.CreateOrUpdate"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlCollection.CreateOrUpdate"); scope.Start(); try { - var response = _sourceControlRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new SourceControlResource(Client, response), response.GetRawResponse())); + var response = _automationSourceControlSourceControlRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationSourceControlResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -129,18 +129,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil wait /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string sourceControlName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string sourceControlName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(sourceControlName, nameof(sourceControlName)); - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlCollection.Get"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlCollection.Get"); scope.Start(); try { - var response = await _sourceControlRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, cancellationToken).ConfigureAwait(false); + var response = await _automationSourceControlSourceControlRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SourceControlResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationSourceControlResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,18 +158,18 @@ public virtual async Task> GetAsync(string sourc /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string sourceControlName, CancellationToken cancellationToken = default) + public virtual Response Get(string sourceControlName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(sourceControlName, nameof(sourceControlName)); - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlCollection.Get"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlCollection.Get"); scope.Start(); try { - var response = _sourceControlRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, cancellationToken); + var response = _automationSourceControlSourceControlRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SourceControlResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationSourceControlResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,17 +185,17 @@ public virtual Response Get(string sourceControlName, Can /// /// The filter to apply on the operation. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlCollection.GetAll"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlCollection.GetAll"); scope.Start(); try { - var response = await _sourceControlRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new SourceControlResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationSourceControlSourceControlRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationSourceControlResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -203,14 +203,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlCollection.GetAll"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlCollection.GetAll"); scope.Start(); try { - var response = await _sourceControlRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new SourceControlResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationSourceControlSourceControlRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationSourceControlResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -228,17 +228,17 @@ async Task> NextPageFunc(string nextLink, int? pageS /// /// The filter to apply on the operation. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlCollection.GetAll"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlCollection.GetAll"); scope.Start(); try { - var response = _sourceControlRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new SourceControlResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationSourceControlSourceControlRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationSourceControlResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -246,14 +246,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlCollection.GetAll"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlCollection.GetAll"); scope.Start(); try { - var response = _sourceControlRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new SourceControlResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationSourceControlSourceControlRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationSourceControlResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -277,11 +277,11 @@ public virtual async Task> ExistsAsync(string sourceControlName, { Argument.AssertNotNullOrEmpty(sourceControlName, nameof(sourceControlName)); - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlCollection.Exists"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlCollection.Exists"); scope.Start(); try { - var response = await _sourceControlRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationSourceControlSourceControlRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -304,11 +304,11 @@ public virtual Response Exists(string sourceControlName, CancellationToken { Argument.AssertNotNullOrEmpty(sourceControlName, nameof(sourceControlName)); - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlCollection.Exists"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlCollection.Exists"); scope.Start(); try { - var response = _sourceControlRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, cancellationToken: cancellationToken); + var response = _automationSourceControlSourceControlRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, sourceControlName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -318,7 +318,7 @@ public virtual Response Exists(string sourceControlName, CancellationToken } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -328,7 +328,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SourceControlData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlData.cs similarity index 64% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/SourceControlData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlData.cs index 866faa318e99f..473405e2f5247 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SourceControlData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlData.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the SourceControl data model. - public partial class SourceControlData : ResourceData + /// A class representing the AutomationSourceControl data model. + public partial class AutomationSourceControlData : ResourceData { - /// Initializes a new instance of SourceControlData. - public SourceControlData() + /// Initializes a new instance of AutomationSourceControlData. + public AutomationSourceControlData() { } - /// Initializes a new instance of SourceControlData. + /// Initializes a new instance of AutomationSourceControlData. /// The id. /// The name. /// The resourceType. @@ -28,19 +28,19 @@ public SourceControlData() /// The repo url of the source control. /// The repo branch of the source control. Include branch as empty string for VsoTfvc. /// The folder path of the source control. - /// The auto sync of the source control. Default is false. - /// The auto publish of the source control. Default is true. + /// The auto sync of the source control. Default is false. + /// The auto publish of the source control. Default is true. /// The source type. Must be one of VsoGit, VsoTfvc, GitHub. /// The description. /// The creation time. /// The last modified time. - internal SourceControlData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, Uri repoUri, string branch, string folderPath, bool? autoSync, bool? publishRunbook, SourceType? sourceType, string description, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn) : base(id, name, resourceType, systemData) + internal AutomationSourceControlData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, Uri repoUri, string branch, string folderPath, bool? isAutoSyncEnabled, bool? isAutoPublishRunbookEnabled, SourceControlSourceType? sourceType, string description, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn) : base(id, name, resourceType, systemData) { RepoUri = repoUri; Branch = branch; FolderPath = folderPath; - AutoSync = autoSync; - PublishRunbook = publishRunbook; + IsAutoSyncEnabled = isAutoSyncEnabled; + IsAutoPublishRunbookEnabled = isAutoPublishRunbookEnabled; SourceType = sourceType; Description = description; CreatedOn = createdOn; @@ -54,11 +54,11 @@ internal SourceControlData(ResourceIdentifier id, string name, ResourceType reso /// The folder path of the source control. public string FolderPath { get; set; } /// The auto sync of the source control. Default is false. - public bool? AutoSync { get; set; } + public bool? IsAutoSyncEnabled { get; set; } /// The auto publish of the source control. Default is true. - public bool? PublishRunbook { get; set; } + public bool? IsAutoPublishRunbookEnabled { get; set; } /// The source type. Must be one of VsoGit, VsoTfvc, GitHub. - public SourceType? SourceType { get; set; } + public SourceControlSourceType? SourceType { get; set; } /// The description. public string Description { get; set; } /// The creation time. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SourceControlResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs similarity index 80% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/SourceControlResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs index 3eec562e8850b..da4f737db0162 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SourceControlResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationSourceControlResource.cs @@ -18,50 +18,50 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a SourceControl along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetSourceControlResource method. - /// Otherwise you can get one from its parent resource using the GetSourceControl method. + /// A Class representing an AutomationSourceControl along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationSourceControlResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationSourceControl method. /// - public partial class SourceControlResource : ArmResource + public partial class AutomationSourceControlResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/sourceControls/{sourceControlName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _sourceControlClientDiagnostics; - private readonly SourceControlRestOperations _sourceControlRestClient; + private readonly ClientDiagnostics _automationSourceControlSourceControlClientDiagnostics; + private readonly SourceControlRestOperations _automationSourceControlSourceControlRestClient; private readonly ClientDiagnostics _sourceControlSyncJobClientDiagnostics; private readonly SourceControlSyncJobRestOperations _sourceControlSyncJobRestClient; private readonly ClientDiagnostics _sourceControlSyncJobStreamsClientDiagnostics; private readonly SourceControlSyncJobStreamsRestOperations _sourceControlSyncJobStreamsRestClient; - private readonly SourceControlData _data; + private readonly AutomationSourceControlData _data; - /// Initializes a new instance of the class for mocking. - protected SourceControlResource() + /// Initializes a new instance of the class for mocking. + protected AutomationSourceControlResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal SourceControlResource(ArmClient client, SourceControlData data) : this(client, data.Id) + internal AutomationSourceControlResource(ArmClient client, AutomationSourceControlData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal SourceControlResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationSourceControlResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _sourceControlClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string sourceControlApiVersion); - _sourceControlRestClient = new SourceControlRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, sourceControlApiVersion); + _automationSourceControlSourceControlClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationSourceControlSourceControlApiVersion); + _automationSourceControlSourceControlRestClient = new SourceControlRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationSourceControlSourceControlApiVersion); _sourceControlSyncJobClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); _sourceControlSyncJobRestClient = new SourceControlSyncJobRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint); _sourceControlSyncJobStreamsClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ProviderConstants.DefaultProviderNamespace, Diagnostics); @@ -79,7 +79,7 @@ internal SourceControlResource(ArmClient client, ResourceIdentifier id) : base(c /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual SourceControlData Data + public virtual AutomationSourceControlData Data { get { @@ -101,16 +101,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: SourceControl_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlResource.Get"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlResource.Get"); scope.Start(); try { - var response = await _sourceControlRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationSourceControlSourceControlRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SourceControlResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationSourceControlResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -125,16 +125,16 @@ public virtual async Task> GetAsync(Cancellation /// Operation Id: SourceControl_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlResource.Get"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlResource.Get"); scope.Start(); try { - var response = _sourceControlRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationSourceControlSourceControlRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new SourceControlResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationSourceControlResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -152,11 +152,11 @@ public virtual Response Get(CancellationToken cancellatio /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlResource.Delete"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlResource.Delete"); scope.Start(); try { - var response = await _sourceControlRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationSourceControlSourceControlRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -178,11 +178,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlResource.Delete"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlResource.Delete"); scope.Start(); try { - var response = _sourceControlRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationSourceControlSourceControlRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -203,16 +203,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The parameters supplied to the update source control operation. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(SourceControlPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(AutomationSourceControlPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlResource.Update"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlResource.Update"); scope.Start(); try { - var response = await _sourceControlRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new SourceControlResource(Client, response.Value), response.GetRawResponse()); + var response = await _automationSourceControlSourceControlRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationSourceControlResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -229,16 +229,16 @@ public virtual async Task> UpdateAsync(SourceCon /// The parameters supplied to the update source control operation. /// The cancellation token to use. /// is null. - public virtual Response Update(SourceControlPatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(AutomationSourceControlPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _sourceControlClientDiagnostics.CreateScope("SourceControlResource.Update"); + using var scope = _automationSourceControlSourceControlClientDiagnostics.CreateScope("AutomationSourceControlResource.Update"); scope.Start(); try { - var response = _sourceControlRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new SourceControlResource(Client, response.Value), response.GetRawResponse()); + var response = _automationSourceControlSourceControlRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new AutomationSourceControlResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -260,7 +260,7 @@ public virtual async Task> CreateSourceControlSyn { Argument.AssertNotNull(content, nameof(content)); - using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("SourceControlResource.CreateSourceControlSyncJob"); + using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("AutomationSourceControlResource.CreateSourceControlSyncJob"); scope.Start(); try { @@ -287,7 +287,7 @@ public virtual Response CreateSourceControlSyncJob(Guid so { Argument.AssertNotNull(content, nameof(content)); - using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("SourceControlResource.CreateSourceControlSyncJob"); + using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("AutomationSourceControlResource.CreateSourceControlSyncJob"); scope.Start(); try { @@ -308,9 +308,9 @@ public virtual Response CreateSourceControlSyncJob(Guid so /// /// The source control sync job id. /// The cancellation token to use. - public virtual async Task> GetSourceControlSyncJobAsync(Guid sourceControlSyncJobId, CancellationToken cancellationToken = default) + public virtual async Task> GetSourceControlSyncJobAsync(Guid sourceControlSyncJobId, CancellationToken cancellationToken = default) { - using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJob"); + using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJob"); scope.Start(); try { @@ -331,9 +331,9 @@ public virtual async Task> GetSourceControlSy /// /// The source control sync job id. /// The cancellation token to use. - public virtual Response GetSourceControlSyncJob(Guid sourceControlSyncJobId, CancellationToken cancellationToken = default) + public virtual Response GetSourceControlSyncJob(Guid sourceControlSyncJobId, CancellationToken cancellationToken = default) { - using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJob"); + using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJob"); scope.Start(); try { @@ -355,11 +355,11 @@ public virtual Response GetSourceControlSyncJob(Guid s /// The filter to apply on the operation. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetSourceControlSyncJobsByAutomationAccountAsync(string filter = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetSourceControlSyncJobsAsync(string filter = null, CancellationToken cancellationToken = default) { async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJobsByAutomationAccount"); + using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJobs"); scope.Start(); try { @@ -374,7 +374,7 @@ async Task> FirstPageFunc(int? pageSizeHint) } async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJobsByAutomationAccount"); + using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJobs"); scope.Start(); try { @@ -398,11 +398,11 @@ async Task> NextPageFunc(string nextLink, int? pageSi /// The filter to apply on the operation. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetSourceControlSyncJobsByAutomationAccount(string filter = null, CancellationToken cancellationToken = default) + public virtual Pageable GetSourceControlSyncJobs(string filter = null, CancellationToken cancellationToken = default) { Page FirstPageFunc(int? pageSizeHint) { - using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJobsByAutomationAccount"); + using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJobs"); scope.Start(); try { @@ -417,7 +417,7 @@ Page FirstPageFunc(int? pageSizeHint) } Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJobsByAutomationAccount"); + using var scope = _sourceControlSyncJobClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJobs"); scope.Start(); try { @@ -442,11 +442,11 @@ Page NextPageFunc(string nextLink, int? pageSizeHint) /// The filter to apply on the operation. /// The cancellation token to use. /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetSourceControlSyncJobStreamsBySyncJobAsync(Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) + public virtual AsyncPageable GetSourceControlSyncJobStreamsAsync(Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) { async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJobStreamsBySyncJob"); + using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJobStreams"); scope.Start(); try { @@ -461,7 +461,7 @@ async Task> FirstPageFunc(int? pageSizeHint) } async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJobStreamsBySyncJob"); + using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJobStreams"); scope.Start(); try { @@ -486,11 +486,11 @@ async Task> NextPageFunc(string nextLink, int? /// The filter to apply on the operation. /// The cancellation token to use. /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetSourceControlSyncJobStreamsBySyncJob(Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) + public virtual Pageable GetSourceControlSyncJobStreams(Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) { Page FirstPageFunc(int? pageSizeHint) { - using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJobStreamsBySyncJob"); + using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJobStreams"); scope.Start(); try { @@ -505,7 +505,7 @@ Page FirstPageFunc(int? pageSizeHint) } Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJobStreamsBySyncJob"); + using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJobStreams"); scope.Start(); try { @@ -531,11 +531,11 @@ Page NextPageFunc(string nextLink, int? pageSizeHint /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetSourceControlSyncJobStreamAsync(Guid sourceControlSyncJobId, string streamId, CancellationToken cancellationToken = default) + public virtual async Task> GetSourceControlSyncJobStreamAsync(Guid sourceControlSyncJobId, string streamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(streamId, nameof(streamId)); - using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJobStream"); + using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJobStream"); scope.Start(); try { @@ -559,11 +559,11 @@ public virtual async Task> GetSourceCon /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response GetSourceControlSyncJobStream(Guid sourceControlSyncJobId, string streamId, CancellationToken cancellationToken = default) + public virtual Response GetSourceControlSyncJobStream(Guid sourceControlSyncJobId, string streamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(streamId, nameof(streamId)); - using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("SourceControlResource.GetSourceControlSyncJobStream"); + using var scope = _sourceControlSyncJobStreamsClientDiagnostics.CreateScope("AutomationSourceControlResource.GetSourceControlSyncJobStream"); scope.Start(); try { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/VariableCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs similarity index 62% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/VariableCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs index 20bb92f4a5456..a624686db3e74 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/VariableCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetVariables method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationVariables method from an instance of . /// - public partial class VariableCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationVariableCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _variableClientDiagnostics; - private readonly VariableRestOperations _variableRestClient; + private readonly ClientDiagnostics _automationVariableVariableClientDiagnostics; + private readonly VariableRestOperations _automationVariableVariableRestClient; - /// Initializes a new instance of the class for mocking. - protected VariableCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationVariableCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal VariableCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationVariableCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _variableClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", VariableResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(VariableResource.ResourceType, out string variableApiVersion); - _variableRestClient = new VariableRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, variableApiVersion); + _automationVariableVariableClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationVariableResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationVariableResource.ResourceType, out string automationVariableVariableApiVersion); + _automationVariableVariableRestClient = new VariableRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationVariableVariableApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -65,17 +65,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string variableName, VariableCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string variableName, AutomationVariableCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(variableName, nameof(variableName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _variableClientDiagnostics.CreateScope("VariableCollection.CreateOrUpdate"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _variableRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new VariableResource(Client, response), response.GetRawResponse())); + var response = await _automationVariableVariableRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationVariableResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -98,17 +98,17 @@ public virtual async Task> CreateOrUpdateAsync(Wa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string variableName, VariableCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string variableName, AutomationVariableCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(variableName, nameof(variableName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _variableClientDiagnostics.CreateScope("VariableCollection.CreateOrUpdate"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableCollection.CreateOrUpdate"); scope.Start(); try { - var response = _variableRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new VariableResource(Client, response), response.GetRawResponse())); + var response = _automationVariableVariableRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationVariableResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -129,18 +129,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string variableName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string variableName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(variableName, nameof(variableName)); - using var scope = _variableClientDiagnostics.CreateScope("VariableCollection.Get"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableCollection.Get"); scope.Start(); try { - var response = await _variableRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, cancellationToken).ConfigureAwait(false); + var response = await _automationVariableVariableRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new VariableResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationVariableResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,18 +158,18 @@ public virtual async Task> GetAsync(string variableNa /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string variableName, CancellationToken cancellationToken = default) + public virtual Response Get(string variableName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(variableName, nameof(variableName)); - using var scope = _variableClientDiagnostics.CreateScope("VariableCollection.Get"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableCollection.Get"); scope.Start(); try { - var response = _variableRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, cancellationToken); + var response = _automationVariableVariableRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new VariableResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationVariableResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -184,17 +184,17 @@ public virtual Response Get(string variableName, CancellationT /// Operation Id: Variable_ListByAutomationAccount /// /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _variableClientDiagnostics.CreateScope("VariableCollection.GetAll"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableCollection.GetAll"); scope.Start(); try { - var response = await _variableRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VariableResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationVariableVariableRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationVariableResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -202,14 +202,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _variableClientDiagnostics.CreateScope("VariableCollection.GetAll"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableCollection.GetAll"); scope.Start(); try { - var response = await _variableRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new VariableResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationVariableVariableRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationVariableResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -226,17 +226,17 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHi /// Operation Id: Variable_ListByAutomationAccount /// /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _variableClientDiagnostics.CreateScope("VariableCollection.GetAll"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableCollection.GetAll"); scope.Start(); try { - var response = _variableRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VariableResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationVariableVariableRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationVariableResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -244,14 +244,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _variableClientDiagnostics.CreateScope("VariableCollection.GetAll"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableCollection.GetAll"); scope.Start(); try { - var response = _variableRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new VariableResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationVariableVariableRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationVariableResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -275,11 +275,11 @@ public virtual async Task> ExistsAsync(string variableName, Cance { Argument.AssertNotNullOrEmpty(variableName, nameof(variableName)); - using var scope = _variableClientDiagnostics.CreateScope("VariableCollection.Exists"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableCollection.Exists"); scope.Start(); try { - var response = await _variableRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationVariableVariableRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -302,11 +302,11 @@ public virtual Response Exists(string variableName, CancellationToken canc { Argument.AssertNotNullOrEmpty(variableName, nameof(variableName)); - using var scope = _variableClientDiagnostics.CreateScope("VariableCollection.Exists"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableCollection.Exists"); scope.Start(); try { - var response = _variableRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, cancellationToken: cancellationToken); + var response = _automationVariableVariableRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, variableName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -316,7 +316,7 @@ public virtual Response Exists(string variableName, CancellationToken canc } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -326,7 +326,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/VariableData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableData.cs similarity index 73% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/VariableData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableData.cs index 03b1a4e60931a..16d7c211b310a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/VariableData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableData.cs @@ -11,15 +11,15 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the Variable data model. - public partial class VariableData : ResourceData + /// A class representing the AutomationVariable data model. + public partial class AutomationVariableData : ResourceData { - /// Initializes a new instance of VariableData. - public VariableData() + /// Initializes a new instance of AutomationVariableData. + public AutomationVariableData() { } - /// Initializes a new instance of VariableData. + /// Initializes a new instance of AutomationVariableData. /// The id. /// The name. /// The resourceType. @@ -29,7 +29,7 @@ public VariableData() /// Gets or sets the creation time. /// Gets or sets the last modified time. /// Gets or sets the description. - internal VariableData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string value, bool? isEncrypted, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) + internal AutomationVariableData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string value, bool? isEncrypted, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) { Value = value; IsEncrypted = isEncrypted; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/VariableResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs similarity index 67% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/VariableResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs index 2eb6973b1f2d7..2d2237e9c1d9f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/VariableResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationVariableResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a Variable along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetVariableResource method. - /// Otherwise you can get one from its parent resource using the GetVariable method. + /// A Class representing an AutomationVariable along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationVariableResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationVariable method. /// - public partial class VariableResource : ArmResource + public partial class AutomationVariableResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/variables/{variableName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _variableClientDiagnostics; - private readonly VariableRestOperations _variableRestClient; - private readonly VariableData _data; + private readonly ClientDiagnostics _automationVariableVariableClientDiagnostics; + private readonly VariableRestOperations _automationVariableVariableRestClient; + private readonly AutomationVariableData _data; - /// Initializes a new instance of the class for mocking. - protected VariableResource() + /// Initializes a new instance of the class for mocking. + protected AutomationVariableResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal VariableResource(ArmClient client, VariableData data) : this(client, data.Id) + internal AutomationVariableResource(ArmClient client, AutomationVariableData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal VariableResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationVariableResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _variableClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string variableApiVersion); - _variableRestClient = new VariableRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, variableApiVersion); + _automationVariableVariableClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationVariableVariableApiVersion); + _automationVariableVariableRestClient = new VariableRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationVariableVariableApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal VariableResource(ArmClient client, ResourceIdentifier id) : base(client /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual VariableData Data + public virtual AutomationVariableData Data { get { @@ -93,16 +93,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: Variable_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _variableClientDiagnostics.CreateScope("VariableResource.Get"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableResource.Get"); scope.Start(); try { - var response = await _variableRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationVariableVariableRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new VariableResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationVariableResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -117,16 +117,16 @@ public virtual async Task> GetAsync(CancellationToken /// Operation Id: Variable_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _variableClientDiagnostics.CreateScope("VariableResource.Get"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableResource.Get"); scope.Start(); try { - var response = _variableRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationVariableVariableRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new VariableResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationVariableResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -144,11 +144,11 @@ public virtual Response Get(CancellationToken cancellationToke /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _variableClientDiagnostics.CreateScope("VariableResource.Delete"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableResource.Delete"); scope.Start(); try { - var response = await _variableRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationVariableVariableRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -170,11 +170,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _variableClientDiagnostics.CreateScope("VariableResource.Delete"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableResource.Delete"); scope.Start(); try { - var response = _variableRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationVariableVariableRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -195,16 +195,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The parameters supplied to the update variable operation. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(VariablePatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(AutomationVariablePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _variableClientDiagnostics.CreateScope("VariableResource.Update"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableResource.Update"); scope.Start(); try { - var response = await _variableRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new VariableResource(Client, response.Value), response.GetRawResponse()); + var response = await _automationVariableVariableRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationVariableResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,16 +221,16 @@ public virtual async Task> UpdateAsync(VariablePatch /// The parameters supplied to the update variable operation. /// The cancellation token to use. /// is null. - public virtual Response Update(VariablePatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(AutomationVariablePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _variableClientDiagnostics.CreateScope("VariableResource.Update"); + using var scope = _automationVariableVariableClientDiagnostics.CreateScope("AutomationVariableResource.Update"); scope.Start(); try { - var response = _variableRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new VariableResource(Client, response.Value), response.GetRawResponse()); + var response = _automationVariableVariableRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new AutomationVariableResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WatcherCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherCollection.cs similarity index 62% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/WatcherCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherCollection.cs index 0ff828db01abf..753839ea9a43d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WatcherCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherCollection.cs @@ -20,28 +20,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWatchers method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationWatchers method from an instance of . /// - public partial class WatcherCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationWatcherCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _watcherClientDiagnostics; - private readonly WatcherRestOperations _watcherRestClient; + private readonly ClientDiagnostics _automationWatcherWatcherClientDiagnostics; + private readonly WatcherRestOperations _automationWatcherWatcherRestClient; - /// Initializes a new instance of the class for mocking. - protected WatcherCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationWatcherCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WatcherCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationWatcherCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _watcherClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", WatcherResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WatcherResource.ResourceType, out string watcherApiVersion); - _watcherRestClient = new WatcherRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, watcherApiVersion); + _automationWatcherWatcherClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationWatcherResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationWatcherResource.ResourceType, out string automationWatcherWatcherApiVersion); + _automationWatcherWatcherRestClient = new WatcherRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationWatcherWatcherApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -64,17 +64,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string watcherName, WatcherData data, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string watcherName, AutomationWatcherData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(watcherName, nameof(watcherName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _watcherClientDiagnostics.CreateScope("WatcherCollection.CreateOrUpdate"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _watcherRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, data, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new WatcherResource(Client, response), response.GetRawResponse())); + var response = await _automationWatcherWatcherRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, data, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationWatcherResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -97,17 +97,17 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string watcherName, WatcherData data, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string watcherName, AutomationWatcherData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(watcherName, nameof(watcherName)); Argument.AssertNotNull(data, nameof(data)); - using var scope = _watcherClientDiagnostics.CreateScope("WatcherCollection.CreateOrUpdate"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherCollection.CreateOrUpdate"); scope.Start(); try { - var response = _watcherRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, data, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new WatcherResource(Client, response), response.GetRawResponse())); + var response = _automationWatcherWatcherRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, data, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationWatcherResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -128,18 +128,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string watcherName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string watcherName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(watcherName, nameof(watcherName)); - using var scope = _watcherClientDiagnostics.CreateScope("WatcherCollection.Get"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherCollection.Get"); scope.Start(); try { - var response = await _watcherRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, cancellationToken).ConfigureAwait(false); + var response = await _automationWatcherWatcherRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WatcherResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationWatcherResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -157,18 +157,18 @@ public virtual async Task> GetAsync(string watcherName /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string watcherName, CancellationToken cancellationToken = default) + public virtual Response Get(string watcherName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(watcherName, nameof(watcherName)); - using var scope = _watcherClientDiagnostics.CreateScope("WatcherCollection.Get"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherCollection.Get"); scope.Start(); try { - var response = _watcherRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, cancellationToken); + var response = _automationWatcherWatcherRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WatcherResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationWatcherResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -184,17 +184,17 @@ public virtual Response Get(string watcherName, CancellationTok /// /// The filter to apply on the operation. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherCollection.GetAll"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherCollection.GetAll"); scope.Start(); try { - var response = await _watcherRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new WatcherResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationWatcherWatcherRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationWatcherResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -202,14 +202,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherCollection.GetAll"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherCollection.GetAll"); scope.Start(); try { - var response = await _watcherRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new WatcherResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationWatcherWatcherRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationWatcherResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -227,17 +227,17 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHin /// /// The filter to apply on the operation. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherCollection.GetAll"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherCollection.GetAll"); scope.Start(); try { - var response = _watcherRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new WatcherResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationWatcherWatcherRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationWatcherResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -245,14 +245,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherCollection.GetAll"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherCollection.GetAll"); scope.Start(); try { - var response = _watcherRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new WatcherResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationWatcherWatcherRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationWatcherResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -276,11 +276,11 @@ public virtual async Task> ExistsAsync(string watcherName, Cancel { Argument.AssertNotNullOrEmpty(watcherName, nameof(watcherName)); - using var scope = _watcherClientDiagnostics.CreateScope("WatcherCollection.Exists"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherCollection.Exists"); scope.Start(); try { - var response = await _watcherRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationWatcherWatcherRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -303,11 +303,11 @@ public virtual Response Exists(string watcherName, CancellationToken cance { Argument.AssertNotNullOrEmpty(watcherName, nameof(watcherName)); - using var scope = _watcherClientDiagnostics.CreateScope("WatcherCollection.Exists"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherCollection.Exists"); scope.Start(); try { - var response = _watcherRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, cancellationToken: cancellationToken); + var response = _automationWatcherWatcherRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, watcherName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -317,7 +317,7 @@ public virtual Response Exists(string watcherName, CancellationToken cance } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -327,7 +327,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WatcherData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherData.cs similarity index 80% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/WatcherData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherData.cs index 4472c56e82e1e..4f9933d9a396a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WatcherData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherData.cs @@ -13,17 +13,17 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the Watcher data model. - public partial class WatcherData : TrackedResourceData + /// A class representing the AutomationWatcher data model. + public partial class AutomationWatcherData : TrackedResourceData { - /// Initializes a new instance of WatcherData. + /// Initializes a new instance of AutomationWatcherData. /// The location. - public WatcherData(AzureLocation location) : base(location) + public AutomationWatcherData(AzureLocation location) : base(location) { ScriptParameters = new ChangeTrackingDictionary(); } - /// Initializes a new instance of WatcherData. + /// Initializes a new instance of AutomationWatcherData. /// The id. /// The name. /// The resourceType. @@ -40,7 +40,7 @@ public WatcherData(AzureLocation location) : base(location) /// Gets or sets the last modified time. /// Details of the user who last modified the watcher. /// Gets or sets the description. - internal WatcherData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, long? executionFrequencyInSeconds, string scriptName, IDictionary scriptParameters, string scriptRunOn, string status, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string lastModifiedBy, string description) : base(id, name, resourceType, systemData, tags, location) + internal AutomationWatcherData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, long? executionFrequencyInSeconds, string scriptName, IDictionary scriptParameters, string scriptRunOn, string status, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string lastModifiedBy, string description) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; ExecutionFrequencyInSeconds = executionFrequencyInSeconds; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WatcherResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherResource.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/WatcherResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherResource.cs index 9bf340e144aa4..6cdf601f26d0c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WatcherResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWatcherResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a Watcher along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWatcherResource method. - /// Otherwise you can get one from its parent resource using the GetWatcher method. + /// A Class representing an AutomationWatcher along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationWatcherResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationWatcher method. /// - public partial class WatcherResource : ArmResource + public partial class AutomationWatcherResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/watchers/{watcherName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _watcherClientDiagnostics; - private readonly WatcherRestOperations _watcherRestClient; - private readonly WatcherData _data; + private readonly ClientDiagnostics _automationWatcherWatcherClientDiagnostics; + private readonly WatcherRestOperations _automationWatcherWatcherRestClient; + private readonly AutomationWatcherData _data; - /// Initializes a new instance of the class for mocking. - protected WatcherResource() + /// Initializes a new instance of the class for mocking. + protected AutomationWatcherResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WatcherResource(ArmClient client, WatcherData data) : this(client, data.Id) + internal AutomationWatcherResource(ArmClient client, AutomationWatcherData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WatcherResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationWatcherResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _watcherClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string watcherApiVersion); - _watcherRestClient = new WatcherRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, watcherApiVersion); + _automationWatcherWatcherClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationWatcherWatcherApiVersion); + _automationWatcherWatcherRestClient = new WatcherRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationWatcherWatcherApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal WatcherResource(ArmClient client, ResourceIdentifier id) : base(client, /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual WatcherData Data + public virtual AutomationWatcherData Data { get { @@ -93,16 +93,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: Watcher_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherResource.Get"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherResource.Get"); scope.Start(); try { - var response = await _watcherRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationWatcherWatcherRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WatcherResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationWatcherResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -117,16 +117,16 @@ public virtual async Task> GetAsync(CancellationToken /// Operation Id: Watcher_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherResource.Get"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherResource.Get"); scope.Start(); try { - var response = _watcherRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationWatcherWatcherRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WatcherResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationWatcherResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -144,11 +144,11 @@ public virtual Response Get(CancellationToken cancellationToken /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherResource.Delete"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherResource.Delete"); scope.Start(); try { - var response = await _watcherRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationWatcherWatcherRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -170,11 +170,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherResource.Delete"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherResource.Delete"); scope.Start(); try { - var response = _watcherRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationWatcherWatcherRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -195,16 +195,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The update parameters for watcher. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WatcherPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(AutomationWatcherPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _watcherClientDiagnostics.CreateScope("WatcherResource.Update"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherResource.Update"); scope.Start(); try { - var response = await _watcherRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new WatcherResource(Client, response.Value), response.GetRawResponse()); + var response = await _automationWatcherWatcherRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationWatcherResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,16 +221,16 @@ public virtual async Task> UpdateAsync(WatcherPatch pa /// The update parameters for watcher. /// The cancellation token to use. /// is null. - public virtual Response Update(WatcherPatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(AutomationWatcherPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _watcherClientDiagnostics.CreateScope("WatcherResource.Update"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherResource.Update"); scope.Start(); try { - var response = _watcherRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new WatcherResource(Client, response.Value), response.GetRawResponse()); + var response = _automationWatcherWatcherRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new AutomationWatcherResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -247,11 +247,11 @@ public virtual Response Update(WatcherPatch patch, Cancellation /// The cancellation token to use. public virtual async Task StartAsync(CancellationToken cancellationToken = default) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherResource.Start"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherResource.Start"); scope.Start(); try { - var response = await _watcherRestClient.StartAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationWatcherWatcherRestClient.StartAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -269,11 +269,11 @@ public virtual async Task StartAsync(CancellationToken cancellationTok /// The cancellation token to use. public virtual Response Start(CancellationToken cancellationToken = default) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherResource.Start"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherResource.Start"); scope.Start(); try { - var response = _watcherRestClient.Start(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationWatcherWatcherRestClient.Start(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); return response; } catch (Exception e) @@ -291,11 +291,11 @@ public virtual Response Start(CancellationToken cancellationToken = default) /// The cancellation token to use. public virtual async Task StopAsync(CancellationToken cancellationToken = default) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherResource.Stop"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherResource.Stop"); scope.Start(); try { - var response = await _watcherRestClient.StopAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationWatcherWatcherRestClient.StopAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); return response; } catch (Exception e) @@ -313,11 +313,11 @@ public virtual async Task StopAsync(CancellationToken cancellationToke /// The cancellation token to use. public virtual Response Stop(CancellationToken cancellationToken = default) { - using var scope = _watcherClientDiagnostics.CreateScope("WatcherResource.Stop"); + using var scope = _automationWatcherWatcherClientDiagnostics.CreateScope("AutomationWatcherResource.Stop"); scope.Start(); try { - var response = _watcherRestClient.Stop(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationWatcherWatcherRestClient.Stop(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); return response; } catch (Exception e) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WebhookCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookCollection.cs similarity index 62% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/WebhookCollection.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookCollection.cs index 789b846587058..2c40435e6dd61 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WebhookCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookCollection.cs @@ -21,28 +21,28 @@ namespace Azure.ResourceManager.Automation { /// - /// A class representing a collection of and their operations. - /// Each in the collection will belong to the same instance of . - /// To get a instance call the GetWebhooks method from an instance of . + /// A class representing a collection of and their operations. + /// Each in the collection will belong to the same instance of . + /// To get an instance call the GetAutomationWebhooks method from an instance of . /// - public partial class WebhookCollection : ArmCollection, IEnumerable, IAsyncEnumerable + public partial class AutomationWebhookCollection : ArmCollection, IEnumerable, IAsyncEnumerable { - private readonly ClientDiagnostics _webhookClientDiagnostics; - private readonly WebhookRestOperations _webhookRestClient; + private readonly ClientDiagnostics _automationWebhookWebhookClientDiagnostics; + private readonly WebhookRestOperations _automationWebhookWebhookRestClient; - /// Initializes a new instance of the class for mocking. - protected WebhookCollection() + /// Initializes a new instance of the class for mocking. + protected AutomationWebhookCollection() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the parent resource that is the target of operations. - internal WebhookCollection(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationWebhookCollection(ArmClient client, ResourceIdentifier id) : base(client, id) { - _webhookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", WebhookResource.ResourceType.Namespace, Diagnostics); - TryGetApiVersion(WebhookResource.ResourceType, out string webhookApiVersion); - _webhookRestClient = new WebhookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, webhookApiVersion); + _automationWebhookWebhookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", AutomationWebhookResource.ResourceType.Namespace, Diagnostics); + TryGetApiVersion(AutomationWebhookResource.ResourceType, out string automationWebhookWebhookApiVersion); + _automationWebhookWebhookRestClient = new WebhookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationWebhookWebhookApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -65,17 +65,17 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string webhookName, WebhookCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string webhookName, AutomationWebhookCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(webhookName, nameof(webhookName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _webhookClientDiagnostics.CreateScope("WebhookCollection.CreateOrUpdate"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _webhookRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, content, cancellationToken).ConfigureAwait(false); - var operation = new AutomationArmOperation(Response.FromValue(new WebhookResource(Client, response), response.GetRawResponse())); + var response = await _automationWebhookWebhookRestClient.CreateOrUpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, content, cancellationToken).ConfigureAwait(false); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationWebhookResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); return operation; @@ -98,17 +98,17 @@ public virtual async Task> CreateOrUpdateAsync(Wai /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string webhookName, WebhookCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string webhookName, AutomationWebhookCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(webhookName, nameof(webhookName)); Argument.AssertNotNull(content, nameof(content)); - using var scope = _webhookClientDiagnostics.CreateScope("WebhookCollection.CreateOrUpdate"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookCollection.CreateOrUpdate"); scope.Start(); try { - var response = _webhookRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, content, cancellationToken); - var operation = new AutomationArmOperation(Response.FromValue(new WebhookResource(Client, response), response.GetRawResponse())); + var response = _automationWebhookWebhookRestClient.CreateOrUpdate(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, content, cancellationToken); + var operation = new AutomationArmOperation(Response.FromValue(new AutomationWebhookResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); return operation; @@ -129,18 +129,18 @@ public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual async Task> GetAsync(string webhookName, CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(string webhookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(webhookName, nameof(webhookName)); - using var scope = _webhookClientDiagnostics.CreateScope("WebhookCollection.Get"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookCollection.Get"); scope.Start(); try { - var response = await _webhookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, cancellationToken).ConfigureAwait(false); + var response = await _automationWebhookWebhookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WebhookResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationWebhookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -158,18 +158,18 @@ public virtual async Task> GetAsync(string webhookName /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. /// is null. - public virtual Response Get(string webhookName, CancellationToken cancellationToken = default) + public virtual Response Get(string webhookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(webhookName, nameof(webhookName)); - using var scope = _webhookClientDiagnostics.CreateScope("WebhookCollection.Get"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookCollection.Get"); scope.Start(); try { - var response = _webhookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, cancellationToken); + var response = _automationWebhookWebhookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WebhookResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationWebhookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -185,17 +185,17 @@ public virtual Response Get(string webhookName, CancellationTok /// /// The filter to apply on the operation. /// The cancellation token to use. - /// An async collection of that may take multiple service requests to iterate over. - public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) + /// An async collection of that may take multiple service requests to iterate over. + public virtual AsyncPageable GetAllAsync(string filter = null, CancellationToken cancellationToken = default) { - async Task> FirstPageFunc(int? pageSizeHint) + async Task> FirstPageFunc(int? pageSizeHint) { - using var scope = _webhookClientDiagnostics.CreateScope("WebhookCollection.GetAll"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookCollection.GetAll"); scope.Start(); try { - var response = await _webhookRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new WebhookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationWebhookWebhookRestClient.ListByAutomationAccountAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationWebhookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -203,14 +203,14 @@ async Task> FirstPageFunc(int? pageSizeHint) throw; } } - async Task> NextPageFunc(string nextLink, int? pageSizeHint) + async Task> NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _webhookClientDiagnostics.CreateScope("WebhookCollection.GetAll"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookCollection.GetAll"); scope.Start(); try { - var response = await _webhookRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); - return Page.FromValues(response.Value.Value.Select(value => new WebhookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = await _automationWebhookWebhookRestClient.ListByAutomationAccountNextPageAsync(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken).ConfigureAwait(false); + return Page.FromValues(response.Value.Value.Select(value => new AutomationWebhookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -228,17 +228,17 @@ async Task> NextPageFunc(string nextLink, int? pageSizeHin /// /// The filter to apply on the operation. /// The cancellation token to use. - /// A collection of that may take multiple service requests to iterate over. - public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) + /// A collection of that may take multiple service requests to iterate over. + public virtual Pageable GetAll(string filter = null, CancellationToken cancellationToken = default) { - Page FirstPageFunc(int? pageSizeHint) + Page FirstPageFunc(int? pageSizeHint) { - using var scope = _webhookClientDiagnostics.CreateScope("WebhookCollection.GetAll"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookCollection.GetAll"); scope.Start(); try { - var response = _webhookRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new WebhookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationWebhookWebhookRestClient.ListByAutomationAccount(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationWebhookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -246,14 +246,14 @@ Page FirstPageFunc(int? pageSizeHint) throw; } } - Page NextPageFunc(string nextLink, int? pageSizeHint) + Page NextPageFunc(string nextLink, int? pageSizeHint) { - using var scope = _webhookClientDiagnostics.CreateScope("WebhookCollection.GetAll"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookCollection.GetAll"); scope.Start(); try { - var response = _webhookRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); - return Page.FromValues(response.Value.Value.Select(value => new WebhookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); + var response = _automationWebhookWebhookRestClient.ListByAutomationAccountNextPage(nextLink, Id.SubscriptionId, Id.ResourceGroupName, Id.Name, filter, cancellationToken: cancellationToken); + return Page.FromValues(response.Value.Value.Select(value => new AutomationWebhookResource(Client, value)), response.Value.NextLink, response.GetRawResponse()); } catch (Exception e) { @@ -277,11 +277,11 @@ public virtual async Task> ExistsAsync(string webhookName, Cancel { Argument.AssertNotNullOrEmpty(webhookName, nameof(webhookName)); - using var scope = _webhookClientDiagnostics.CreateScope("WebhookCollection.Exists"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookCollection.Exists"); scope.Start(); try { - var response = await _webhookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, cancellationToken: cancellationToken).ConfigureAwait(false); + var response = await _automationWebhookWebhookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, cancellationToken: cancellationToken).ConfigureAwait(false); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -304,11 +304,11 @@ public virtual Response Exists(string webhookName, CancellationToken cance { Argument.AssertNotNullOrEmpty(webhookName, nameof(webhookName)); - using var scope = _webhookClientDiagnostics.CreateScope("WebhookCollection.Exists"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookCollection.Exists"); scope.Start(); try { - var response = _webhookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, cancellationToken: cancellationToken); + var response = _automationWebhookWebhookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, webhookName, cancellationToken: cancellationToken); return Response.FromValue(response.Value != null, response.GetRawResponse()); } catch (Exception e) @@ -318,7 +318,7 @@ public virtual Response Exists(string webhookName, CancellationToken cance } } - IEnumerator IEnumerable.GetEnumerator() + IEnumerator IEnumerable.GetEnumerator() { return GetAll().GetEnumerator(); } @@ -328,7 +328,7 @@ IEnumerator IEnumerable.GetEnumerator() return GetAll().GetEnumerator(); } - IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) + IAsyncEnumerator IAsyncEnumerable.GetAsyncEnumerator(CancellationToken cancellationToken) { return GetAllAsync(cancellationToken: cancellationToken).GetAsyncEnumerator(cancellationToken); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WebhookData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookData.cs similarity index 80% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/WebhookData.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookData.cs index 86106d65f6ecc..b6c50b5499173 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WebhookData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookData.cs @@ -13,23 +13,23 @@ namespace Azure.ResourceManager.Automation { - /// A class representing the Webhook data model. - public partial class WebhookData : ResourceData + /// A class representing the AutomationWebhook data model. + public partial class AutomationWebhookData : ResourceData { - /// Initializes a new instance of WebhookData. - public WebhookData() + /// Initializes a new instance of AutomationWebhookData. + public AutomationWebhookData() { Parameters = new ChangeTrackingDictionary(); } - /// Initializes a new instance of WebhookData. + /// Initializes a new instance of AutomationWebhookData. /// The id. /// The name. /// The resourceType. /// The systemData. /// Gets or sets the value of the enabled flag of the webhook. /// Gets or sets the webhook uri. - /// Gets or sets the expiry time. + /// Gets or sets the expiry time. /// Gets or sets the last invoked time. /// Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with. /// Gets or sets the runbook the webhook is associated with. @@ -38,11 +38,11 @@ public WebhookData() /// Gets or sets the last modified time. /// Details of the user who last modified the Webhook. /// Gets or sets the description. - internal WebhookData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, bool? isEnabled, Uri uri, DateTimeOffset? expiryOn, DateTimeOffset? lastInvokedOn, IDictionary parameters, RunbookAssociationProperty runbook, string runOn, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string lastModifiedBy, string description) : base(id, name, resourceType, systemData) + internal AutomationWebhookData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, bool? isEnabled, Uri uri, DateTimeOffset? expireOn, DateTimeOffset? lastInvokedOn, IDictionary parameters, RunbookAssociationProperty runbook, string runOn, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string lastModifiedBy, string description) : base(id, name, resourceType, systemData) { IsEnabled = isEnabled; Uri = uri; - ExpiryOn = expiryOn; + ExpireOn = expireOn; LastInvokedOn = lastInvokedOn; Parameters = parameters; Runbook = runbook; @@ -58,7 +58,7 @@ internal WebhookData(ResourceIdentifier id, string name, ResourceType resourceTy /// Gets or sets the webhook uri. public Uri Uri { get; set; } /// Gets or sets the expiry time. - public DateTimeOffset? ExpiryOn { get; set; } + public DateTimeOffset? ExpireOn { get; set; } /// Gets or sets the last invoked time. public DateTimeOffset? LastInvokedOn { get; set; } /// Gets or sets the parameters of the job that is created when the webhook calls the runbook it is associated with. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WebhookResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookResource.cs similarity index 67% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/WebhookResource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookResource.cs index 6ada4ebe3edfa..6b531a26f934c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/WebhookResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/AutomationWebhookResource.cs @@ -18,46 +18,46 @@ namespace Azure.ResourceManager.Automation { /// - /// A Class representing a Webhook along with the instance operations that can be performed on it. - /// If you have a you can construct a - /// from an instance of using the GetWebhookResource method. - /// Otherwise you can get one from its parent resource using the GetWebhook method. + /// A Class representing an AutomationWebhook along with the instance operations that can be performed on it. + /// If you have a you can construct an + /// from an instance of using the GetAutomationWebhookResource method. + /// Otherwise you can get one from its parent resource using the GetAutomationWebhook method. /// - public partial class WebhookResource : ArmResource + public partial class AutomationWebhookResource : ArmResource { - /// Generate the resource identifier of a instance. + /// Generate the resource identifier of a instance. public static ResourceIdentifier CreateResourceIdentifier(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName) { var resourceId = $"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/webhooks/{webhookName}"; return new ResourceIdentifier(resourceId); } - private readonly ClientDiagnostics _webhookClientDiagnostics; - private readonly WebhookRestOperations _webhookRestClient; - private readonly WebhookData _data; + private readonly ClientDiagnostics _automationWebhookWebhookClientDiagnostics; + private readonly WebhookRestOperations _automationWebhookWebhookRestClient; + private readonly AutomationWebhookData _data; - /// Initializes a new instance of the class for mocking. - protected WebhookResource() + /// Initializes a new instance of the class for mocking. + protected AutomationWebhookResource() { } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The resource that is the target of operations. - internal WebhookResource(ArmClient client, WebhookData data) : this(client, data.Id) + internal AutomationWebhookResource(ArmClient client, AutomationWebhookData data) : this(client, data.Id) { HasData = true; _data = data; } - /// Initializes a new instance of the class. + /// Initializes a new instance of the class. /// The client parameters to use in these operations. /// The identifier of the resource that is the target of operations. - internal WebhookResource(ArmClient client, ResourceIdentifier id) : base(client, id) + internal AutomationWebhookResource(ArmClient client, ResourceIdentifier id) : base(client, id) { - _webhookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); - TryGetApiVersion(ResourceType, out string webhookApiVersion); - _webhookRestClient = new WebhookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, webhookApiVersion); + _automationWebhookWebhookClientDiagnostics = new ClientDiagnostics("Azure.ResourceManager.Automation", ResourceType.Namespace, Diagnostics); + TryGetApiVersion(ResourceType, out string automationWebhookWebhookApiVersion); + _automationWebhookWebhookRestClient = new WebhookRestOperations(Pipeline, Diagnostics.ApplicationId, Endpoint, automationWebhookWebhookApiVersion); #if DEBUG ValidateResourceId(Id); #endif @@ -71,7 +71,7 @@ internal WebhookResource(ArmClient client, ResourceIdentifier id) : base(client, /// Gets the data representing this Feature. /// Throws if there is no data loaded in the current instance. - public virtual WebhookData Data + public virtual AutomationWebhookData Data { get { @@ -93,16 +93,16 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// Operation Id: Webhook_Get /// /// The cancellation token to use. - public virtual async Task> GetAsync(CancellationToken cancellationToken = default) + public virtual async Task> GetAsync(CancellationToken cancellationToken = default) { - using var scope = _webhookClientDiagnostics.CreateScope("WebhookResource.Get"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookResource.Get"); scope.Start(); try { - var response = await _webhookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationWebhookWebhookRestClient.GetAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WebhookResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationWebhookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -117,16 +117,16 @@ public virtual async Task> GetAsync(CancellationToken /// Operation Id: Webhook_Get /// /// The cancellation token to use. - public virtual Response Get(CancellationToken cancellationToken = default) + public virtual Response Get(CancellationToken cancellationToken = default) { - using var scope = _webhookClientDiagnostics.CreateScope("WebhookResource.Get"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookResource.Get"); scope.Start(); try { - var response = _webhookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationWebhookWebhookRestClient.Get(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); if (response.Value == null) throw new RequestFailedException(response.GetRawResponse()); - return Response.FromValue(new WebhookResource(Client, response.Value), response.GetRawResponse()); + return Response.FromValue(new AutomationWebhookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -144,11 +144,11 @@ public virtual Response Get(CancellationToken cancellationToken /// The cancellation token to use. public virtual async Task DeleteAsync(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _webhookClientDiagnostics.CreateScope("WebhookResource.Delete"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookResource.Delete"); scope.Start(); try { - var response = await _webhookRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); + var response = await _automationWebhookWebhookRestClient.DeleteAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionResponseAsync(cancellationToken).ConfigureAwait(false); @@ -170,11 +170,11 @@ public virtual async Task DeleteAsync(WaitUntil waitUntil, Cancell /// The cancellation token to use. public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancellationToken = default) { - using var scope = _webhookClientDiagnostics.CreateScope("WebhookResource.Delete"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookResource.Delete"); scope.Start(); try { - var response = _webhookRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); + var response = _automationWebhookWebhookRestClient.Delete(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, cancellationToken); var operation = new AutomationArmOperation(response); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletionResponse(cancellationToken); @@ -195,16 +195,16 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// The update parameters for webhook. /// The cancellation token to use. /// is null. - public virtual async Task> UpdateAsync(WebhookPatch patch, CancellationToken cancellationToken = default) + public virtual async Task> UpdateAsync(AutomationWebhookPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _webhookClientDiagnostics.CreateScope("WebhookResource.Update"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookResource.Update"); scope.Start(); try { - var response = await _webhookRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); - return Response.FromValue(new WebhookResource(Client, response.Value), response.GetRawResponse()); + var response = await _automationWebhookWebhookRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken).ConfigureAwait(false); + return Response.FromValue(new AutomationWebhookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { @@ -221,16 +221,16 @@ public virtual async Task> UpdateAsync(WebhookPatch pa /// The update parameters for webhook. /// The cancellation token to use. /// is null. - public virtual Response Update(WebhookPatch patch, CancellationToken cancellationToken = default) + public virtual Response Update(AutomationWebhookPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNull(patch, nameof(patch)); - using var scope = _webhookClientDiagnostics.CreateScope("WebhookResource.Update"); + using var scope = _automationWebhookWebhookClientDiagnostics.CreateScope("AutomationWebhookResource.Update"); scope.Start(); try { - var response = _webhookRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); - return Response.FromValue(new WebhookResource(Client, response.Value), response.GetRawResponse()); + var response = _automationWebhookWebhookRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, patch, cancellationToken); + return Response.FromValue(new AutomationWebhookResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CertificateData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CertificateData.cs deleted file mode 100644 index b8d9f20cd7557..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/CertificateData.cs +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure.Core; -using Azure.ResourceManager.Models; - -namespace Azure.ResourceManager.Automation -{ - /// A class representing the Certificate data model. - public partial class CertificateData : ResourceData - { - /// Initializes a new instance of CertificateData. - public CertificateData() - { - } - - /// Initializes a new instance of CertificateData. - /// The id. - /// The name. - /// The resourceType. - /// The systemData. - /// Gets the thumbprint of the certificate. - /// Gets the expiry time of the certificate. - /// Gets the is exportable flag of the certificate. - /// Gets the creation time. - /// Gets the last modified time. - /// Gets or sets the description. - internal CertificateData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string thumbprint, DateTimeOffset? expiryOn, bool? isExportable, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) : base(id, name, resourceType, systemData) - { - Thumbprint = thumbprint; - ExpiryOn = expiryOn; - IsExportable = isExportable; - CreatedOn = createdOn; - LastModifiedOn = lastModifiedOn; - Description = description; - } - - /// Gets the thumbprint of the certificate. - public string Thumbprint { get; } - /// Gets the expiry time of the certificate. - public DateTimeOffset? ExpiryOn { get; } - /// Gets the is exportable flag of the certificate. - public bool? IsExportable { get; } - /// Gets the creation time. - public DateTimeOffset? CreatedOn { get; } - /// Gets the last modified time. - public DateTimeOffset? LastModifiedOn { get; } - /// Gets or sets the description. - public string Description { get; set; } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobData.cs index c2276fd57b801..9b5122e25c97c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscCompilationJobData.cs @@ -41,7 +41,7 @@ public DscCompilationJobData() /// Gets the last modified time of the job. /// Gets the last status modified time of the job. /// Gets or sets the parameters of the job. - internal DscCompilationJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DscConfigurationAssociationProperty configuration, string startedBy, Guid? jobId, DateTimeOffset? createdOn, JobProvisioningState? provisioningState, string runOn, JobStatus? status, string statusDetails, DateTimeOffset? startOn, DateTimeOffset? endOn, string exception, DateTimeOffset? lastModifiedOn, DateTimeOffset? lastStatusModifiedOn, IDictionary parameters) : base(id, name, resourceType, systemData) + internal DscCompilationJobData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DscConfigurationAssociationProperty configuration, string startedBy, Guid? jobId, DateTimeOffset? createdOn, JobProvisioningState? provisioningState, string runOn, AutomationJobStatus? status, string statusDetails, DateTimeOffset? startOn, DateTimeOffset? endOn, string exception, DateTimeOffset? lastModifiedOn, DateTimeOffset? lastStatusModifiedOn, IDictionary parameters) : base(id, name, resourceType, systemData) { Configuration = configuration; StartedBy = startedBy; @@ -84,7 +84,7 @@ public string ConfigurationName /// Gets or sets the runOn which specifies the group name where the job is to be executed. public string RunOn { get; set; } /// Gets or sets the status of the job. - public JobStatus? Status { get; set; } + public AutomationJobStatus? Status { get; set; } /// Gets or sets the status details of the job. public string StatusDetails { get; set; } /// Gets the start time of the job. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationData.cs index d73fba0c46744..8a42ffb71ac84 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscConfigurationData.cs @@ -21,7 +21,7 @@ public partial class DscConfigurationData : TrackedResourceData /// The location. public DscConfigurationData(AzureLocation location) : base(location) { - Parameters = new ChangeTrackingDictionary(); + Parameters = new ChangeTrackingDictionary(); } /// Initializes a new instance of DscConfigurationData. @@ -37,12 +37,12 @@ public DscConfigurationData(AzureLocation location) : base(location) /// Gets or sets the configuration parameters. /// Gets or sets the source. /// Gets or sets the state of the configuration. - /// Gets or sets verbose log option. + /// Gets or sets verbose log option. /// Gets or sets the creation time. /// Gets or sets the last modified time. /// Gets the number of compiled node configurations. /// Gets or sets the description. - internal DscConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, DscConfigurationProvisioningState? provisioningState, int? jobCount, IDictionary parameters, ContentSource source, DscConfigurationState? state, bool? logVerbose, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, int? nodeConfigurationCount, string description) : base(id, name, resourceType, systemData, tags, location) + internal DscConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, IDictionary tags, AzureLocation location, ETag? etag, DscConfigurationProvisioningState? provisioningState, int? jobCount, IDictionary parameters, AutomationContentSource source, DscConfigurationState? state, bool? isLogVerboseEnabled, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, int? nodeConfigurationCount, string description) : base(id, name, resourceType, systemData, tags, location) { ETag = etag; ProvisioningState = provisioningState; @@ -50,7 +50,7 @@ internal DscConfigurationData(ResourceIdentifier id, string name, ResourceType r Parameters = parameters; Source = source; State = state; - LogVerbose = logVerbose; + IsLogVerboseEnabled = isLogVerboseEnabled; CreatedOn = createdOn; LastModifiedOn = lastModifiedOn; NodeConfigurationCount = nodeConfigurationCount; @@ -64,13 +64,13 @@ internal DscConfigurationData(ResourceIdentifier id, string name, ResourceType r /// Gets or sets the job count of the configuration. public int? JobCount { get; set; } /// Gets or sets the configuration parameters. - public IDictionary Parameters { get; } + public IDictionary Parameters { get; } /// Gets or sets the source. - public ContentSource Source { get; set; } + public AutomationContentSource Source { get; set; } /// Gets or sets the state of the configuration. public DscConfigurationState? State { get; set; } /// Gets or sets verbose log option. - public bool? LogVerbose { get; set; } + public bool? IsLogVerboseEnabled { get; set; } /// Gets or sets the creation time. public DateTimeOffset? CreatedOn { get; set; } /// Gets or sets the last modified time. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationData.cs index 7f5c3a70ff707..504287c1a3226 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeConfigurationData.cs @@ -30,15 +30,15 @@ public DscNodeConfigurationData() /// Gets or sets the configuration of the node. /// Source of node configuration. /// Number of nodes with this node configuration assigned. - /// If a new build version of NodeConfiguration is required. - internal DscNodeConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? lastModifiedOn, DateTimeOffset? createdOn, DscConfigurationAssociationProperty configuration, string source, long? nodeCount, bool? incrementNodeConfigurationBuild) : base(id, name, resourceType, systemData) + /// If a new build version of NodeConfiguration is required. + internal DscNodeConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? lastModifiedOn, DateTimeOffset? createdOn, DscConfigurationAssociationProperty configuration, string source, long? nodeCount, bool? isIncrementNodeConfigurationBuildRequired) : base(id, name, resourceType, systemData) { LastModifiedOn = lastModifiedOn; CreatedOn = createdOn; Configuration = configuration; Source = source; NodeCount = nodeCount; - IncrementNodeConfigurationBuild = incrementNodeConfigurationBuild; + IsIncrementNodeConfigurationBuildRequired = isIncrementNodeConfigurationBuildRequired; } /// Gets or sets the last modified time. @@ -64,6 +64,6 @@ public string ConfigurationName /// Number of nodes with this node configuration assigned. public long? NodeCount { get; set; } /// If a new build version of NodeConfiguration is required. - public bool? IncrementNodeConfigurationBuild { get; set; } + public bool? IsIncrementNodeConfigurationBuildRequired { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeData.cs index 0cf1becfc702a..d7ac979e64337 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/DscNodeData.cs @@ -28,7 +28,7 @@ public DscNodeData() /// The name. /// The resourceType. /// The systemData. - /// Gets or sets the last seen time of the node. + /// Gets or sets the last seen time of the node. /// Gets or sets the registration time of the node. /// Gets or sets the ip of the node. /// Gets or sets the account id of the node. @@ -38,9 +38,9 @@ public DscNodeData() /// Gets the total number of records matching filter criteria. /// Gets or sets the list of extensionHandler properties for a Node. /// Gets or sets the name of the dsc node configuration. - internal DscNodeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? lastSeen, DateTimeOffset? registrationOn, string ip, string accountId, string status, string nodeId, ETag? etag, int? totalCount, IList extensionHandler, string namePropertiesNodeConfigurationName) : base(id, name, resourceType, systemData) + internal DscNodeData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, DateTimeOffset? lastSeenOn, DateTimeOffset? registrationOn, string ip, string accountId, string status, string nodeId, ETag? etag, int? totalCount, IList extensionHandler, string namePropertiesNodeConfigurationName) : base(id, name, resourceType, systemData) { - LastSeen = lastSeen; + LastSeenOn = lastSeenOn; RegistrationOn = registrationOn; IP = ip; AccountId = accountId; @@ -53,7 +53,7 @@ internal DscNodeData(ResourceIdentifier id, string name, ResourceType resourceTy } /// Gets or sets the last seen time of the node. - public DateTimeOffset? LastSeen { get; set; } + public DateTimeOffset? LastSeenOn { get; set; } /// Gets or sets the registration time of the node. public DateTimeOffset? RegistrationOn { get; set; } /// Gets or sets the ip of the node. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs index 75327cd162874..9d5f2c9411af0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Extensions/AutomationExtensions.cs @@ -243,20 +243,20 @@ public static DscCompilationJobResource GetDscCompilationJobResource(this ArmCli } #endregion - #region SourceControlResource + #region AutomationSourceControlResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static SourceControlResource GetSourceControlResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationSourceControlResource GetAutomationSourceControlResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - SourceControlResource.ValidateResourceId(id); - return new SourceControlResource(client, id); + AutomationSourceControlResource.ValidateResourceId(id); + return new AutomationSourceControlResource(client, id); } ); } @@ -281,153 +281,153 @@ public static AutomationAccountResource GetAutomationAccountResource(this ArmCli } #endregion - #region CertificateResource + #region AutomationCertificateResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static CertificateResource GetCertificateResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationCertificateResource GetAutomationCertificateResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - CertificateResource.ValidateResourceId(id); - return new CertificateResource(client, id); + AutomationCertificateResource.ValidateResourceId(id); + return new AutomationCertificateResource(client, id); } ); } #endregion - #region ConnectionResource + #region AutomationConnectionResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ConnectionResource GetConnectionResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationConnectionResource GetAutomationConnectionResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ConnectionResource.ValidateResourceId(id); - return new ConnectionResource(client, id); + AutomationConnectionResource.ValidateResourceId(id); + return new AutomationConnectionResource(client, id); } ); } #endregion - #region ConnectionTypeResource + #region AutomationConnectionTypeResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ConnectionTypeResource GetConnectionTypeResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationConnectionTypeResource GetAutomationConnectionTypeResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ConnectionTypeResource.ValidateResourceId(id); - return new ConnectionTypeResource(client, id); + AutomationConnectionTypeResource.ValidateResourceId(id); + return new AutomationConnectionTypeResource(client, id); } ); } #endregion - #region CredentialResource + #region AutomationCredentialResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static CredentialResource GetCredentialResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationCredentialResource GetAutomationCredentialResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - CredentialResource.ValidateResourceId(id); - return new CredentialResource(client, id); + AutomationCredentialResource.ValidateResourceId(id); + return new AutomationCredentialResource(client, id); } ); } #endregion - #region JobScheduleResource + #region AutomationJobScheduleResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static JobScheduleResource GetJobScheduleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationJobScheduleResource GetAutomationJobScheduleResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - JobScheduleResource.ValidateResourceId(id); - return new JobScheduleResource(client, id); + AutomationJobScheduleResource.ValidateResourceId(id); + return new AutomationJobScheduleResource(client, id); } ); } #endregion - #region ScheduleResource + #region AutomationScheduleResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static ScheduleResource GetScheduleResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationScheduleResource GetAutomationScheduleResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - ScheduleResource.ValidateResourceId(id); - return new ScheduleResource(client, id); + AutomationScheduleResource.ValidateResourceId(id); + return new AutomationScheduleResource(client, id); } ); } #endregion - #region VariableResource + #region AutomationVariableResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static VariableResource GetVariableResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationVariableResource GetAutomationVariableResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - VariableResource.ValidateResourceId(id); - return new VariableResource(client, id); + AutomationVariableResource.ValidateResourceId(id); + return new AutomationVariableResource(client, id); } ); } #endregion - #region WatcherResource + #region AutomationWatcherResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WatcherResource GetWatcherResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationWatcherResource GetAutomationWatcherResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WatcherResource.ValidateResourceId(id); - return new WatcherResource(client, id); + AutomationWatcherResource.ValidateResourceId(id); + return new AutomationWatcherResource(client, id); } ); } @@ -452,20 +452,20 @@ public static DscConfigurationResource GetDscConfigurationResource(this ArmClien } #endregion - #region JobResource + #region AutomationJobResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static JobResource GetJobResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationJobResource GetAutomationJobResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - JobResource.ValidateResourceId(id); - return new JobResource(client, id); + AutomationJobResource.ValidateResourceId(id); + return new AutomationJobResource(client, id); } ); } @@ -490,39 +490,39 @@ public static SoftwareUpdateConfigurationResource GetSoftwareUpdateConfiguration } #endregion - #region RunbookResource + #region AutomationRunbookResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static RunbookResource GetRunbookResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationRunbookResource GetAutomationRunbookResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - RunbookResource.ValidateResourceId(id); - return new RunbookResource(client, id); + AutomationRunbookResource.ValidateResourceId(id); + return new AutomationRunbookResource(client, id); } ); } #endregion - #region WebhookResource + #region AutomationWebhookResource /// - /// Gets an object representing a along with the instance operations that can be performed on it but with no data. - /// You can use to create a from its components. + /// Gets an object representing an along with the instance operations that can be performed on it but with no data. + /// You can use to create an from its components. /// /// The instance the method will execute against. /// The resource ID of the resource to get. - /// Returns a object. - public static WebhookResource GetWebhookResource(this ArmClient client, ResourceIdentifier id) + /// Returns a object. + public static AutomationWebhookResource GetAutomationWebhookResource(this ArmClient client, ResourceIdentifier id) { return client.GetResourceClient(() => { - WebhookResource.ValidateResourceId(id); - return new WebhookResource(client, id); + AutomationWebhookResource.ValidateResourceId(id); + return new AutomationWebhookResource(client, id); } ); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.cs index 98900ac64ab26..ec204fa5a25a7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerData.cs @@ -31,7 +31,7 @@ public HybridRunbookWorkerData() /// Azure Resource Manager Id for a virtual machine. /// Type of the HybridWorker. /// Name of the HybridWorker. - internal HybridRunbookWorkerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string ip, DateTimeOffset? registeredOn, DateTimeOffset? lastSeenOn, string vmResourceId, WorkerType? workerType, string workerName) : base(id, name, resourceType, systemData) + internal HybridRunbookWorkerData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string ip, DateTimeOffset? registeredOn, DateTimeOffset? lastSeenOn, ResourceIdentifier vmResourceId, HybridWorkerType? workerType, string workerName) : base(id, name, resourceType, systemData) { IP = ip; RegisteredOn = registeredOn; @@ -48,9 +48,9 @@ internal HybridRunbookWorkerData(ResourceIdentifier id, string name, ResourceTyp /// Last Heartbeat from the Worker. public DateTimeOffset? LastSeenOn { get; set; } /// Azure Resource Manager Id for a virtual machine. - public string VmResourceId { get; set; } + public ResourceIdentifier VmResourceId { get; set; } /// Type of the HybridWorker. - public WorkerType? WorkerType { get; set; } + public HybridWorkerType? WorkerType { get; set; } /// Name of the HybridWorker. public string WorkerName { get; set; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs index b4fc08e385066..72db7a40dfb96 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupCollection.cs @@ -61,20 +61,20 @@ internal static void ValidateResourceId(ResourceIdentifier id) /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The hybrid runbook worker group name. - /// The create or update parameters for hybrid runbook worker group. + /// The create or update parameters for hybrid runbook worker group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupCreationParameters, CancellationToken cancellationToken = default) + /// or is null. + public virtual async Task> CreateOrUpdateAsync(WaitUntil waitUntil, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(hybridRunbookWorkerGroupName, nameof(hybridRunbookWorkerGroupName)); - Argument.AssertNotNull(hybridRunbookWorkerGroupCreationParameters, nameof(hybridRunbookWorkerGroupCreationParameters)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _hybridRunbookWorkerGroupClientDiagnostics.CreateScope("HybridRunbookWorkerGroupCollection.CreateOrUpdate"); scope.Start(); try { - var response = await _hybridRunbookWorkerGroupRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridRunbookWorkerGroupName, hybridRunbookWorkerGroupCreationParameters, cancellationToken).ConfigureAwait(false); + var response = await _hybridRunbookWorkerGroupRestClient.CreateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridRunbookWorkerGroupName, content, cancellationToken).ConfigureAwait(false); var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerGroupResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) await operation.WaitForCompletionAsync(cancellationToken).ConfigureAwait(false); @@ -94,20 +94,20 @@ public virtual async Task> Create /// /// if the method should wait to return until the long-running operation has completed on the service; if it should return after starting the operation. For more information on long-running operations, please see Azure.Core Long-Running Operation samples. /// The hybrid runbook worker group name. - /// The create or update parameters for hybrid runbook worker group. + /// The create or update parameters for hybrid runbook worker group. /// The cancellation token to use. /// is an empty string, and was expected to be non-empty. - /// or is null. - public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupCreationParameters, CancellationToken cancellationToken = default) + /// or is null. + public virtual ArmOperation CreateOrUpdate(WaitUntil waitUntil, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(hybridRunbookWorkerGroupName, nameof(hybridRunbookWorkerGroupName)); - Argument.AssertNotNull(hybridRunbookWorkerGroupCreationParameters, nameof(hybridRunbookWorkerGroupCreationParameters)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _hybridRunbookWorkerGroupClientDiagnostics.CreateScope("HybridRunbookWorkerGroupCollection.CreateOrUpdate"); scope.Start(); try { - var response = _hybridRunbookWorkerGroupRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridRunbookWorkerGroupName, hybridRunbookWorkerGroupCreationParameters, cancellationToken); + var response = _hybridRunbookWorkerGroupRestClient.Create(Id.SubscriptionId, Id.ResourceGroupName, Id.Name, hybridRunbookWorkerGroupName, content, cancellationToken); var operation = new AutomationArmOperation(Response.FromValue(new HybridRunbookWorkerGroupResource(Client, response), response.GetRawResponse())); if (waitUntil == WaitUntil.Completed) operation.WaitForCompletion(cancellationToken); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.cs index 9677f0048444c..b465e4c88fa9a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupData.cs @@ -26,14 +26,14 @@ public HybridRunbookWorkerGroupData() /// The systemData. /// Type of the HybridWorkerGroup. /// Sets the credential of a worker group. - internal HybridRunbookWorkerGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, GroupTypeEnum? groupType, RunAsCredentialAssociationProperty credential) : base(id, name, resourceType, systemData) + internal HybridRunbookWorkerGroupData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, HybridWorkerGroup? groupType, RunAsCredentialAssociationProperty credential) : base(id, name, resourceType, systemData) { GroupType = groupType; Credential = credential; } /// Type of the HybridWorkerGroup. - public GroupTypeEnum? GroupType { get; set; } + public HybridWorkerGroup? GroupType { get; set; } /// Sets the credential of a worker group. internal RunAsCredentialAssociationProperty Credential { get; set; } /// Gets or sets the name of the credential. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs index c223152597787..31e338a2eaf3c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/HybridRunbookWorkerGroupResource.cs @@ -229,18 +229,18 @@ public virtual ArmOperation Delete(WaitUntil waitUntil, CancellationToken cancel /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName} /// Operation Id: HybridRunbookWorkerGroup_Update /// - /// The hybrid runbook worker group. + /// The hybrid runbook worker group. /// The cancellation token to use. - /// is null. - public virtual async Task> UpdateAsync(HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupUpdationParameters, CancellationToken cancellationToken = default) + /// is null. + public virtual async Task> UpdateAsync(HybridRunbookWorkerGroupCreateOrUpdateContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(hybridRunbookWorkerGroupUpdationParameters, nameof(hybridRunbookWorkerGroupUpdationParameters)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _hybridRunbookWorkerGroupClientDiagnostics.CreateScope("HybridRunbookWorkerGroupResource.Update"); scope.Start(); try { - var response = await _hybridRunbookWorkerGroupRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerGroupUpdationParameters, cancellationToken).ConfigureAwait(false); + var response = await _hybridRunbookWorkerGroupRestClient.UpdateAsync(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken).ConfigureAwait(false); return Response.FromValue(new HybridRunbookWorkerGroupResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) @@ -255,18 +255,18 @@ public virtual async Task> UpdateAsyn /// Request Path: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/hybridRunbookWorkerGroups/{hybridRunbookWorkerGroupName} /// Operation Id: HybridRunbookWorkerGroup_Update /// - /// The hybrid runbook worker group. + /// The hybrid runbook worker group. /// The cancellation token to use. - /// is null. - public virtual Response Update(HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupUpdationParameters, CancellationToken cancellationToken = default) + /// is null. + public virtual Response Update(HybridRunbookWorkerGroupCreateOrUpdateContent content, CancellationToken cancellationToken = default) { - Argument.AssertNotNull(hybridRunbookWorkerGroupUpdationParameters, nameof(hybridRunbookWorkerGroupUpdationParameters)); + Argument.AssertNotNull(content, nameof(content)); using var scope = _hybridRunbookWorkerGroupClientDiagnostics.CreateScope("HybridRunbookWorkerGroupResource.Update"); scope.Start(); try { - var response = _hybridRunbookWorkerGroupRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, hybridRunbookWorkerGroupUpdationParameters, cancellationToken); + var response = _hybridRunbookWorkerGroupRestClient.Update(Id.SubscriptionId, Id.ResourceGroupName, Id.Parent.Name, Id.Name, content, cancellationToken); return Response.FromValue(new HybridRunbookWorkerGroupResource(Client, response.Value), response.GetRawResponse()); } catch (Exception e) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistration.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistration.Serialization.cs index 57136b8c7a4c5..1881b6af5c4dc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistration.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistration.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -15,9 +16,9 @@ public partial class AgentRegistration internal static AgentRegistration DeserializeAgentRegistration(JsonElement element) { Optional dscMetaConfiguration = default; - Optional endpoint = default; + Optional endpoint = default; Optional keys = default; - Optional id = default; + Optional id = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("dscMetaConfiguration")) @@ -27,7 +28,12 @@ internal static AgentRegistration DeserializeAgentRegistration(JsonElement eleme } if (property.NameEquals("endpoint")) { - endpoint = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + endpoint = null; + continue; + } + endpoint = new Uri(property.Value.GetString()); continue; } if (property.NameEquals("keys")) @@ -42,7 +48,12 @@ internal static AgentRegistration DeserializeAgentRegistration(JsonElement eleme } if (property.NameEquals("id")) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); continue; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistration.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistration.cs index 32408cec4ed2e..ae151f4469e31 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistration.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistration.cs @@ -5,6 +5,9 @@ #nullable disable +using System; +using Azure.Core; + namespace Azure.ResourceManager.Automation.Models { /// Definition of the agent registration information type. @@ -20,7 +23,7 @@ internal AgentRegistration() /// Gets or sets the dsc server endpoint. /// Gets or sets the agent registration keys. /// Gets or sets the id. - internal AgentRegistration(string dscMetaConfiguration, string endpoint, AgentRegistrationKeys keys, string id) + internal AgentRegistration(string dscMetaConfiguration, Uri endpoint, AgentRegistrationKeys keys, ResourceIdentifier id) { DscMetaConfiguration = dscMetaConfiguration; Endpoint = endpoint; @@ -31,10 +34,10 @@ internal AgentRegistration(string dscMetaConfiguration, string endpoint, AgentRe /// Gets or sets the dsc meta configuration. public string DscMetaConfiguration { get; } /// Gets or sets the dsc server endpoint. - public string Endpoint { get; } + public Uri Endpoint { get; } /// Gets or sets the agent registration keys. public AgentRegistrationKeys Keys { get; } /// Gets or sets the id. - public string Id { get; } + public ResourceIdentifier Id { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyParameter.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyContent.Serialization.cs similarity index 85% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyParameter.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyContent.Serialization.cs index 090833bfc25ec..56bac4ad9476a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyParameter.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class AgentRegistrationRegenerateKeyParameter : IUtf8JsonSerializable + public partial class AgentRegistrationRegenerateKeyContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyParameter.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyContent.cs similarity index 77% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyParameter.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyContent.cs index 4b38549e9e9f8..6dd9d7bfd008f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyParameter.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AgentRegistrationRegenerateKeyContent.cs @@ -8,11 +8,11 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the regenerate keys operation. - public partial class AgentRegistrationRegenerateKeyParameter + public partial class AgentRegistrationRegenerateKeyContent { - /// Initializes a new instance of AgentRegistrationRegenerateKeyParameter. + /// Initializes a new instance of AgentRegistrationRegenerateKeyContent. /// Gets or sets the agent registration key name - primary or secondary. - public AgentRegistrationRegenerateKeyParameter(AgentRegistrationKeyName keyName) + public AgentRegistrationRegenerateKeyContent(AgentRegistrationKeyName keyName) { KeyName = keyName; } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountCreateOrUpdateContent.Serialization.cs index 6b9714f181f5e..14c7bc0f7714e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountCreateOrUpdateContent.Serialization.cs @@ -53,15 +53,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("encryption"); writer.WriteObjectValue(Encryption); } - if (Optional.IsDefined(PublicNetworkAccess)) + if (Optional.IsDefined(IsPublicNetworkAccessAllowed)) { writer.WritePropertyName("publicNetworkAccess"); - writer.WriteBooleanValue(PublicNetworkAccess.Value); + writer.WriteBooleanValue(IsPublicNetworkAccessAllowed.Value); } - if (Optional.IsDefined(DisableLocalAuth)) + if (Optional.IsDefined(IsLocalAuthDisabled)) { writer.WritePropertyName("disableLocalAuth"); - writer.WriteBooleanValue(DisableLocalAuth.Value); + writer.WriteBooleanValue(IsLocalAuthDisabled.Value); } writer.WriteEndObject(); writer.WriteEndObject(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountCreateOrUpdateContent.cs index d552f0f31c641..b5e588b6713d1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountCreateOrUpdateContent.cs @@ -31,10 +31,10 @@ public AutomationAccountCreateOrUpdateContent() /// Gets or sets account SKU. public AutomationSku Sku { get; set; } /// Set the encryption properties for the automation account. - public EncryptionProperties Encryption { get; set; } + public AutomationEncryptionProperties Encryption { get; set; } /// Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet. - public bool? PublicNetworkAccess { get; set; } + public bool? IsPublicNetworkAccessAllowed { get; set; } /// Indicates whether requests using non-AAD authentication are blocked. - public bool? DisableLocalAuth { get; set; } + public bool? IsLocalAuthDisabled { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountData.Serialization.cs index 380694d419e4d..cf0350bd0fdde 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountData.Serialization.cs @@ -75,15 +75,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndArray(); } - if (Optional.IsDefined(PublicNetworkAccess)) + if (Optional.IsDefined(IsPublicNetworkAccessAllowed)) { writer.WritePropertyName("publicNetworkAccess"); - writer.WriteBooleanValue(PublicNetworkAccess.Value); + writer.WriteBooleanValue(IsPublicNetworkAccessAllowed.Value); } - if (Optional.IsDefined(DisableLocalAuth)) + if (Optional.IsDefined(IsLocalAuthDisabled)) { writer.WritePropertyName("disableLocalAuth"); - writer.WriteBooleanValue(DisableLocalAuth.Value); + writer.WriteBooleanValue(IsLocalAuthDisabled.Value); } if (Optional.IsDefined(AutomationHybridServiceUri)) { @@ -110,7 +110,7 @@ internal static AutomationAccountData DeserializeAutomationAccountData(JsonEleme Optional creationTime = default; Optional lastModifiedTime = default; Optional description = default; - Optional encryption = default; + Optional encryption = default; Optional> privateEndpointConnections = default; Optional publicNetworkAccess = default; Optional disableLocalAuth = default; @@ -248,7 +248,7 @@ internal static AutomationAccountData DeserializeAutomationAccountData(JsonEleme property0.ThrowNonNullablePropertyIsNull(); continue; } - encryption = Models.EncryptionProperties.DeserializeEncryptionProperties(property0.Value); + encryption = AutomationEncryptionProperties.DeserializeAutomationEncryptionProperties(property0.Value); continue; } if (property0.NameEquals("privateEndpointConnections")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleCreateOrUpdateContent.cs index 767367107203d..05eb6fcafeecf 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModuleCreateOrUpdateContent.cs @@ -17,7 +17,7 @@ public partial class AutomationAccountModuleCreateOrUpdateContent /// Initializes a new instance of AutomationAccountModuleCreateOrUpdateContent. /// Gets or sets the module content link. /// is null. - public AutomationAccountModuleCreateOrUpdateContent(ContentLink contentLink) + public AutomationAccountModuleCreateOrUpdateContent(AutomationContentLink contentLink) { Argument.AssertNotNull(contentLink, nameof(contentLink)); @@ -32,6 +32,6 @@ public AutomationAccountModuleCreateOrUpdateContent(ContentLink contentLink) /// Gets or sets the tags attached to the resource. public IDictionary Tags { get; } /// Gets or sets the module content link. - public ContentLink ContentLink { get; } + public AutomationContentLink ContentLink { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.cs index 9c31b96713567..16d29ecc62697 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountModulePatch.cs @@ -26,6 +26,6 @@ public AutomationAccountModulePatch() /// Gets or sets the tags attached to the resource. public IDictionary Tags { get; } /// Gets or sets the module content link. - public ContentLink ContentLink { get; set; } + public AutomationContentLink ContentLink { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPatch.Serialization.cs index 9fba98d612e13..2749c6a40c647 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPatch.Serialization.cs @@ -53,15 +53,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("encryption"); writer.WriteObjectValue(Encryption); } - if (Optional.IsDefined(PublicNetworkAccess)) + if (Optional.IsDefined(IsPublicNetworkAccessAllowed)) { writer.WritePropertyName("publicNetworkAccess"); - writer.WriteBooleanValue(PublicNetworkAccess.Value); + writer.WriteBooleanValue(IsPublicNetworkAccessAllowed.Value); } - if (Optional.IsDefined(DisableLocalAuth)) + if (Optional.IsDefined(IsLocalAuthDisabled)) { writer.WritePropertyName("disableLocalAuth"); - writer.WriteBooleanValue(DisableLocalAuth.Value); + writer.WriteBooleanValue(IsLocalAuthDisabled.Value); } writer.WriteEndObject(); writer.WriteEndObject(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPatch.cs index 8897e0ade31e7..3d5c55e1dd812 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPatch.cs @@ -31,10 +31,10 @@ public AutomationAccountPatch() /// Gets or sets account SKU. public AutomationSku Sku { get; set; } /// Set the encryption properties for the automation account. - public EncryptionProperties Encryption { get; set; } + public AutomationEncryptionProperties Encryption { get; set; } /// Indicates whether traffic on the non-ARM endpoint (Webhook/Agent) is allowed from the public internet. - public bool? PublicNetworkAccess { get; set; } + public bool? IsPublicNetworkAccessAllowed { get; set; } /// Indicates whether requests using non-AAD authentication are blocked. - public bool? DisableLocalAuth { get; set; } + public bool? IsLocalAuthDisabled { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.cs index 9aeb487320b87..d5b4e28384f16 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountPython2PackageCreateOrUpdateContent.cs @@ -17,7 +17,7 @@ public partial class AutomationAccountPython2PackageCreateOrUpdateContent /// Initializes a new instance of AutomationAccountPython2PackageCreateOrUpdateContent. /// Gets or sets the module content link. /// is null. - public AutomationAccountPython2PackageCreateOrUpdateContent(ContentLink contentLink) + public AutomationAccountPython2PackageCreateOrUpdateContent(AutomationContentLink contentLink) { Argument.AssertNotNull(contentLink, nameof(contentLink)); @@ -28,6 +28,6 @@ public AutomationAccountPython2PackageCreateOrUpdateContent(ContentLink contentL /// Gets or sets the tags attached to the resource. public IDictionary Tags { get; } /// Gets or sets the module content link. - public ContentLink ContentLink { get; } + public AutomationContentLink ContentLink { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Statistics.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatistics.Serialization.cs similarity index 86% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Statistics.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatistics.Serialization.cs index 244ac44f9769a..5a43a0b38d62d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Statistics.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatistics.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class Statistics + public partial class AutomationAccountStatistics { - internal static Statistics DeserializeStatistics(JsonElement element) + internal static AutomationAccountStatistics DeserializeAutomationAccountStatistics(JsonElement element) { Optional counterProperty = default; Optional counterValue = default; @@ -63,7 +63,7 @@ internal static Statistics DeserializeStatistics(JsonElement element) continue; } } - return new Statistics(counterProperty.Value, Optional.ToNullable(counterValue), Optional.ToNullable(startTime), Optional.ToNullable(endTime), id.Value); + return new AutomationAccountStatistics(counterProperty.Value, Optional.ToNullable(counterValue), Optional.ToNullable(startTime), Optional.ToNullable(endTime), id.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Statistics.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatistics.cs similarity index 76% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Statistics.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatistics.cs index 0fc54602e069b..4809c6eec51ab 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Statistics.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatistics.cs @@ -10,20 +10,20 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the statistic. - public partial class Statistics + public partial class AutomationAccountStatistics { - /// Initializes a new instance of Statistics. - internal Statistics() + /// Initializes a new instance of AutomationAccountStatistics. + internal AutomationAccountStatistics() { } - /// Initializes a new instance of Statistics. + /// Initializes a new instance of AutomationAccountStatistics. /// Gets the property value of the statistic. /// Gets the value of the statistic. /// Gets the startTime of the statistic. /// Gets the endTime of the statistic. /// Gets the id. - internal Statistics(string counterProperty, long? counterValue, DateTimeOffset? startOn, DateTimeOffset? endOn, string id) + internal AutomationAccountStatistics(string counterProperty, long? counterValue, DateTimeOffset? startOn, DateTimeOffset? endOn, string id) { CounterProperty = counterProperty; CounterValue = counterValue; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeFieldListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatisticsListResult.Serialization.cs similarity index 60% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeFieldListResult.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatisticsListResult.Serialization.cs index 4a761b0f9ea4c..5e41c4a23394f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeFieldListResult.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatisticsListResult.Serialization.cs @@ -11,11 +11,11 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class TypeFieldListResult + internal partial class AutomationAccountStatisticsListResult { - internal static TypeFieldListResult DeserializeTypeFieldListResult(JsonElement element) + internal static AutomationAccountStatisticsListResult DeserializeAutomationAccountStatisticsListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value")) @@ -25,16 +25,16 @@ internal static TypeFieldListResult DeserializeTypeFieldListResult(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(TypeField.DeserializeTypeField(item)); + array.Add(AutomationAccountStatistics.DeserializeAutomationAccountStatistics(item)); } value = array; continue; } } - return new TypeFieldListResult(Optional.ToList(value)); + return new AutomationAccountStatisticsListResult(Optional.ToList(value)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatisticsListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatisticsListResult.cs new file mode 100644 index 0000000000000..d2f7daa8524f7 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAccountStatisticsListResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The response model for the list statistics operation. + internal partial class AutomationAccountStatisticsListResult + { + /// Initializes a new instance of AutomationAccountStatisticsListResult. + internal AutomationAccountStatisticsListResult() + { + Value = new ChangeTrackingList(); + } + + /// Initializes a new instance of AutomationAccountStatisticsListResult. + /// Gets or sets a list of statistics. + internal AutomationAccountStatisticsListResult(IReadOnlyList value) + { + Value = value; + } + + /// Gets or sets a list of statistics. + public IReadOnlyList Value { get; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Activity.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivity.Serialization.cs similarity index 74% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Activity.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivity.Serialization.cs index f9e741d14838f..3018d71f32d09 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Activity.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivity.Serialization.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class Activity + public partial class AutomationActivity { - internal static Activity DeserializeActivity(JsonElement element) + internal static AutomationActivity DeserializeAutomationActivity(JsonElement element) { - Optional id = default; + Optional id = default; Optional name = default; Optional definition = default; - Optional> parameterSets = default; - Optional> outputTypes = default; + Optional> parameterSets = default; + Optional> outputTypes = default; Optional creationTime = default; Optional lastModifiedTime = default; Optional description = default; @@ -28,7 +28,12 @@ internal static Activity DeserializeActivity(JsonElement element) { if (property.NameEquals("id")) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("name")) @@ -57,10 +62,10 @@ internal static Activity DeserializeActivity(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(ActivityParameterSet.DeserializeActivityParameterSet(item)); + array.Add(AutomationActivityParameterSet.DeserializeAutomationActivityParameterSet(item)); } parameterSets = array; continue; @@ -72,10 +77,10 @@ internal static Activity DeserializeActivity(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property0.Value.EnumerateArray()) { - array.Add(ActivityOutputType.DeserializeActivityOutputType(item)); + array.Add(AutomationActivityOutputType.DeserializeAutomationActivityOutputType(item)); } outputTypes = array; continue; @@ -109,7 +114,7 @@ internal static Activity DeserializeActivity(JsonElement element) continue; } } - return new Activity(id.Value, name.Value, definition.Value, Optional.ToList(parameterSets), Optional.ToList(outputTypes), Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); + return new AutomationActivity(id.Value, name.Value, definition.Value, Optional.ToList(parameterSets), Optional.ToList(outputTypes), Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Activity.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivity.cs similarity index 69% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Activity.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivity.cs index 42ac9a93bfaec..d5afade94e3a0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Activity.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivity.cs @@ -12,16 +12,16 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the activity. - public partial class Activity + public partial class AutomationActivity { - /// Initializes a new instance of Activity. - internal Activity() + /// Initializes a new instance of AutomationActivity. + internal AutomationActivity() { - ParameterSets = new ChangeTrackingList(); - OutputTypes = new ChangeTrackingList(); + ParameterSets = new ChangeTrackingList(); + OutputTypes = new ChangeTrackingList(); } - /// Initializes a new instance of Activity. + /// Initializes a new instance of AutomationActivity. /// Gets or sets the id of the resource. /// Gets the name of the activity. /// Gets or sets the user name of the activity. @@ -30,7 +30,7 @@ internal Activity() /// Gets or sets the creation time. /// Gets or sets the last modified time. /// Gets or sets the description. - internal Activity(string id, string name, string definition, IReadOnlyList parameterSets, IReadOnlyList outputTypes, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) + internal AutomationActivity(ResourceIdentifier id, string name, string definition, IReadOnlyList parameterSets, IReadOnlyList outputTypes, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) { Id = id; Name = name; @@ -43,15 +43,15 @@ internal Activity(string id, string name, string definition, IReadOnlyList Gets or sets the id of the resource. - public string Id { get; } + public ResourceIdentifier Id { get; } /// Gets the name of the activity. public string Name { get; } /// Gets or sets the user name of the activity. public string Definition { get; } /// Gets or sets the parameter sets of the activity. - public IReadOnlyList ParameterSets { get; } + public IReadOnlyList ParameterSets { get; } /// Gets or sets the output types of the activity. - public IReadOnlyList OutputTypes { get; } + public IReadOnlyList OutputTypes { get; } /// Gets or sets the creation time. public DateTimeOffset? CreatedOn { get; } /// Gets or sets the last modified time. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityListResult.Serialization.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityListResult.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityListResult.Serialization.cs index a687816c19e6a..997c275decd17 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityListResult.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityListResult.Serialization.cs @@ -11,11 +11,11 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class ActivityListResult + internal partial class AutomationActivityListResult { - internal static ActivityListResult DeserializeActivityListResult(JsonElement element) + internal static AutomationActivityListResult DeserializeAutomationActivityListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -26,10 +26,10 @@ internal static ActivityListResult DeserializeActivityListResult(JsonElement ele property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(Activity.DeserializeActivity(item)); + array.Add(AutomationActivity.DeserializeAutomationActivity(item)); } value = array; continue; @@ -40,7 +40,7 @@ internal static ActivityListResult DeserializeActivityListResult(JsonElement ele continue; } } - return new ActivityListResult(Optional.ToList(value), nextLink.Value); + return new AutomationActivityListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityListResult.cs similarity index 59% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityListResult.cs index b63168d41807c..81debaf5f7fbd 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityListResult.cs @@ -11,25 +11,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list activity operation. - internal partial class ActivityListResult + internal partial class AutomationActivityListResult { - /// Initializes a new instance of ActivityListResult. - internal ActivityListResult() + /// Initializes a new instance of AutomationActivityListResult. + internal AutomationActivityListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of ActivityListResult. + /// Initializes a new instance of AutomationActivityListResult. /// Gets or sets a list of activities. /// Gets or sets the next link. - internal ActivityListResult(IReadOnlyList value, string nextLink) + internal AutomationActivityListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of activities. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityOutputType.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityOutputType.Serialization.cs similarity index 76% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityOutputType.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityOutputType.Serialization.cs index 30bb051e6c215..31835d64cc74a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityOutputType.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityOutputType.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ActivityOutputType + public partial class AutomationActivityOutputType { - internal static ActivityOutputType DeserializeActivityOutputType(JsonElement element) + internal static AutomationActivityOutputType DeserializeAutomationActivityOutputType(JsonElement element) { Optional name = default; Optional type = default; @@ -29,7 +29,7 @@ internal static ActivityOutputType DeserializeActivityOutputType(JsonElement ele continue; } } - return new ActivityOutputType(name.Value, type.Value); + return new AutomationActivityOutputType(name.Value, type.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityOutputType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityOutputType.cs similarity index 52% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityOutputType.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityOutputType.cs index 21e82772c1e08..53ddb4eae2b58 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityOutputType.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityOutputType.cs @@ -8,25 +8,25 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the activity output type. - public partial class ActivityOutputType + public partial class AutomationActivityOutputType { - /// Initializes a new instance of ActivityOutputType. - internal ActivityOutputType() + /// Initializes a new instance of AutomationActivityOutputType. + internal AutomationActivityOutputType() { } - /// Initializes a new instance of ActivityOutputType. + /// Initializes a new instance of AutomationActivityOutputType. /// Gets or sets the name of the activity output type. - /// Gets or sets the type of the activity output type. - internal ActivityOutputType(string name, string activityOutputTypeValue) + /// Gets or sets the type of the activity output type. + internal AutomationActivityOutputType(string name, string activityOutputType) { Name = name; - ActivityOutputTypeValue = activityOutputTypeValue; + ActivityOutputType = activityOutputType; } /// Gets or sets the name of the activity output type. public string Name { get; } /// Gets or sets the type of the activity output type. - public string ActivityOutputTypeValue { get; } + public string ActivityOutputType { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameter.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterDefinition.Serialization.cs similarity index 82% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameter.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterDefinition.Serialization.cs index c0cf025103ead..49fa5f7fe053d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameter.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterDefinition.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ActivityParameter + public partial class AutomationActivityParameterDefinition { - internal static ActivityParameter DeserializeActivityParameter(JsonElement element) + internal static AutomationActivityParameterDefinition DeserializeAutomationActivityParameterDefinition(JsonElement element) { Optional name = default; Optional type = default; @@ -24,7 +24,7 @@ internal static ActivityParameter DeserializeActivityParameter(JsonElement eleme Optional valueFromPipelineByPropertyName = default; Optional valueFromRemainingArguments = default; Optional description = default; - Optional> validationSet = default; + Optional> validationSet = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name")) @@ -109,16 +109,16 @@ internal static ActivityParameter DeserializeActivityParameter(JsonElement eleme property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityParameterValidationSet.DeserializeActivityParameterValidationSet(item)); + array.Add(AutomationActivityParameterValidationSet.DeserializeAutomationActivityParameterValidationSet(item)); } validationSet = array; continue; } } - return new ActivityParameter(name.Value, type.Value, Optional.ToNullable(isMandatory), Optional.ToNullable(isDynamic), Optional.ToNullable(position), Optional.ToNullable(valueFromPipeline), Optional.ToNullable(valueFromPipelineByPropertyName), Optional.ToNullable(valueFromRemainingArguments), description.Value, Optional.ToList(validationSet)); + return new AutomationActivityParameterDefinition(name.Value, type.Value, Optional.ToNullable(isMandatory), Optional.ToNullable(isDynamic), Optional.ToNullable(position), Optional.ToNullable(valueFromPipeline), Optional.ToNullable(valueFromPipelineByPropertyName), Optional.ToNullable(valueFromRemainingArguments), description.Value, Optional.ToList(validationSet)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameter.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterDefinition.cs similarity index 58% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameter.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterDefinition.cs index 9c391ef557ef1..a66ffa0f0bcc6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameter.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterDefinition.cs @@ -11,35 +11,35 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the activity parameter. - public partial class ActivityParameter + public partial class AutomationActivityParameterDefinition { - /// Initializes a new instance of ActivityParameter. - internal ActivityParameter() + /// Initializes a new instance of AutomationActivityParameterDefinition. + internal AutomationActivityParameterDefinition() { - ValidationSet = new ChangeTrackingList(); + ValidationSet = new ChangeTrackingList(); } - /// Initializes a new instance of ActivityParameter. + /// Initializes a new instance of AutomationActivityParameterDefinition. /// Gets or sets the name of the activity parameter. /// Gets or sets the type of the activity parameter. /// Gets or sets a Boolean value that indicates true if the parameter is required. If the value is false, the parameter is optional. /// Gets or sets a Boolean value that indicates true if the parameter is dynamic. /// Gets or sets the position of the activity parameter. - /// Gets or sets a Boolean value that indicates true if the parameter can take values from the incoming pipeline objects. This setting is used if the cmdlet must access the complete input object. false indicates that the parameter cannot take values from the complete input object. - /// Gets or sets a Boolean value that indicates true if the parameter can be filled from a property of the incoming pipeline object that has the same name as this parameter. false indicates that the parameter cannot be filled from the incoming pipeline object property with the same name. - /// Gets or sets a Boolean value that indicates true if the cmdlet parameter accepts all the remaining command-line arguments that are associated with this parameter in the form of an array. false if the cmdlet parameter does not accept all the remaining argument values. + /// Gets or sets a Boolean value that indicates true if the parameter can take values from the incoming pipeline objects. This setting is used if the cmdlet must access the complete input object. false indicates that the parameter cannot take values from the complete input object. + /// Gets or sets a Boolean value that indicates true if the parameter can be filled from a property of the incoming pipeline object that has the same name as this parameter. false indicates that the parameter cannot be filled from the incoming pipeline object property with the same name. + /// Gets or sets a Boolean value that indicates true if the cmdlet parameter accepts all the remaining command-line arguments that are associated with this parameter in the form of an array. false if the cmdlet parameter does not accept all the remaining argument values. /// Gets or sets the description of the activity parameter. /// Gets or sets the validation set of activity parameter. - internal ActivityParameter(string name, string activityParameterType, bool? isMandatory, bool? isDynamic, long? position, bool? valueFromPipeline, bool? valueFromPipelineByPropertyName, bool? valueFromRemainingArguments, string description, IReadOnlyList validationSet) + internal AutomationActivityParameterDefinition(string name, string activityParameterType, bool? isMandatory, bool? isDynamic, long? position, bool? canTakeValueFromPipeline, bool? canTakeValueFromPipelineByPropertyName, bool? canTakeValueValueFromRemainingArguments, string description, IReadOnlyList validationSet) { Name = name; ActivityParameterType = activityParameterType; IsMandatory = isMandatory; IsDynamic = isDynamic; Position = position; - ValueFromPipeline = valueFromPipeline; - ValueFromPipelineByPropertyName = valueFromPipelineByPropertyName; - ValueFromRemainingArguments = valueFromRemainingArguments; + CanTakeValueFromPipeline = canTakeValueFromPipeline; + CanTakeValueFromPipelineByPropertyName = canTakeValueFromPipelineByPropertyName; + CanTakeValueValueFromRemainingArguments = canTakeValueValueFromRemainingArguments; Description = description; ValidationSet = validationSet; } @@ -55,14 +55,14 @@ internal ActivityParameter(string name, string activityParameterType, bool? isMa /// Gets or sets the position of the activity parameter. public long? Position { get; } /// Gets or sets a Boolean value that indicates true if the parameter can take values from the incoming pipeline objects. This setting is used if the cmdlet must access the complete input object. false indicates that the parameter cannot take values from the complete input object. - public bool? ValueFromPipeline { get; } + public bool? CanTakeValueFromPipeline { get; } /// Gets or sets a Boolean value that indicates true if the parameter can be filled from a property of the incoming pipeline object that has the same name as this parameter. false indicates that the parameter cannot be filled from the incoming pipeline object property with the same name. - public bool? ValueFromPipelineByPropertyName { get; } + public bool? CanTakeValueFromPipelineByPropertyName { get; } /// Gets or sets a Boolean value that indicates true if the cmdlet parameter accepts all the remaining command-line arguments that are associated with this parameter in the form of an array. false if the cmdlet parameter does not accept all the remaining argument values. - public bool? ValueFromRemainingArguments { get; } + public bool? CanTakeValueValueFromRemainingArguments { get; } /// Gets or sets the description of the activity parameter. public string Description { get; } /// Gets or sets the validation set of activity parameter. - public IReadOnlyList ValidationSet { get; } + public IReadOnlyList ValidationSet { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterSet.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterSet.Serialization.cs similarity index 64% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterSet.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterSet.Serialization.cs index 4c5dae45ba3c9..88db92feb872c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterSet.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterSet.Serialization.cs @@ -11,12 +11,12 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ActivityParameterSet + public partial class AutomationActivityParameterSet { - internal static ActivityParameterSet DeserializeActivityParameterSet(JsonElement element) + internal static AutomationActivityParameterSet DeserializeAutomationActivityParameterSet(JsonElement element) { Optional name = default; - Optional> parameters = default; + Optional> parameters = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name")) @@ -31,16 +31,16 @@ internal static ActivityParameterSet DeserializeActivityParameterSet(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ActivityParameter.DeserializeActivityParameter(item)); + array.Add(AutomationActivityParameterDefinition.DeserializeAutomationActivityParameterDefinition(item)); } parameters = array; continue; } } - return new ActivityParameterSet(name.Value, Optional.ToList(parameters)); + return new AutomationActivityParameterSet(name.Value, Optional.ToList(parameters)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterSet.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterSet.cs similarity index 58% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterSet.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterSet.cs index f0d02b3369fe8..5b1b80521fc94 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterSet.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterSet.cs @@ -11,18 +11,18 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the activity parameter set. - public partial class ActivityParameterSet + public partial class AutomationActivityParameterSet { - /// Initializes a new instance of ActivityParameterSet. - internal ActivityParameterSet() + /// Initializes a new instance of AutomationActivityParameterSet. + internal AutomationActivityParameterSet() { - Parameters = new ChangeTrackingList(); + Parameters = new ChangeTrackingList(); } - /// Initializes a new instance of ActivityParameterSet. + /// Initializes a new instance of AutomationActivityParameterSet. /// Gets or sets the name of the activity parameter set. /// Gets or sets the parameters of the activity parameter set. - internal ActivityParameterSet(string name, IReadOnlyList parameters) + internal AutomationActivityParameterSet(string name, IReadOnlyList parameters) { Name = name; Parameters = parameters; @@ -31,6 +31,6 @@ internal ActivityParameterSet(string name, IReadOnlyList para /// Gets or sets the name of the activity parameter set. public string Name { get; } /// Gets or sets the parameters of the activity parameter set. - public IReadOnlyList Parameters { get; } + public IReadOnlyList Parameters { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterValidationSet.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterValidationSet.Serialization.cs similarity index 67% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterValidationSet.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterValidationSet.Serialization.cs index e735e680d0f56..bfaba1621752e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterValidationSet.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterValidationSet.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ActivityParameterValidationSet + public partial class AutomationActivityParameterValidationSet { - internal static ActivityParameterValidationSet DeserializeActivityParameterValidationSet(JsonElement element) + internal static AutomationActivityParameterValidationSet DeserializeAutomationActivityParameterValidationSet(JsonElement element) { Optional memberValue = default; foreach (var property in element.EnumerateObject()) @@ -23,7 +23,7 @@ internal static ActivityParameterValidationSet DeserializeActivityParameterValid continue; } } - return new ActivityParameterValidationSet(memberValue.Value); + return new AutomationActivityParameterValidationSet(memberValue.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterValidationSet.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterValidationSet.cs similarity index 60% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterValidationSet.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterValidationSet.cs index 11d222d2f0595..2b534658a2a8f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ActivityParameterValidationSet.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationActivityParameterValidationSet.cs @@ -8,16 +8,16 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the activity parameter validation set. - public partial class ActivityParameterValidationSet + public partial class AutomationActivityParameterValidationSet { - /// Initializes a new instance of ActivityParameterValidationSet. - internal ActivityParameterValidationSet() + /// Initializes a new instance of AutomationActivityParameterValidationSet. + internal AutomationActivityParameterValidationSet() { } - /// Initializes a new instance of ActivityParameterValidationSet. + /// Initializes a new instance of AutomationActivityParameterValidationSet. /// Gets or sets the name of the activity parameter validation set member. - internal ActivityParameterValidationSet(string memberValue) + internal AutomationActivityParameterValidationSet(string memberValue) { MemberValue = memberValue; } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedSchedule.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedSchedule.Serialization.cs similarity index 83% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedSchedule.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedSchedule.Serialization.cs index 77b5ff775b15c..6b04800921049 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedSchedule.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedSchedule.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class AdvancedSchedule : IUtf8JsonSerializable + public partial class AutomationAdvancedSchedule : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -49,11 +49,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AdvancedSchedule DeserializeAdvancedSchedule(JsonElement element) + internal static AutomationAdvancedSchedule DeserializeAutomationAdvancedSchedule(JsonElement element) { Optional> weekDays = default; Optional> monthDays = default; - Optional> monthlyOccurrences = default; + Optional> monthlyOccurrences = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("weekDays")) @@ -93,16 +93,16 @@ internal static AdvancedSchedule DeserializeAdvancedSchedule(JsonElement element property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(AdvancedScheduleMonthlyOccurrence.DeserializeAdvancedScheduleMonthlyOccurrence(item)); + array.Add(AutomationAdvancedScheduleMonthlyOccurrence.DeserializeAutomationAdvancedScheduleMonthlyOccurrence(item)); } monthlyOccurrences = array; continue; } } - return new AdvancedSchedule(Optional.ToList(weekDays), Optional.ToList(monthDays), Optional.ToList(monthlyOccurrences)); + return new AutomationAdvancedSchedule(Optional.ToList(weekDays), Optional.ToList(monthDays), Optional.ToList(monthlyOccurrences)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedSchedule.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedSchedule.cs similarity index 66% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedSchedule.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedSchedule.cs index 098f0455bc067..529cd5d5fca48 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedSchedule.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedSchedule.cs @@ -11,21 +11,21 @@ namespace Azure.ResourceManager.Automation.Models { /// The properties of the create Advanced Schedule. - public partial class AdvancedSchedule + public partial class AutomationAdvancedSchedule { - /// Initializes a new instance of AdvancedSchedule. - public AdvancedSchedule() + /// Initializes a new instance of AutomationAdvancedSchedule. + public AutomationAdvancedSchedule() { WeekDays = new ChangeTrackingList(); MonthDays = new ChangeTrackingList(); - MonthlyOccurrences = new ChangeTrackingList(); + MonthlyOccurrences = new ChangeTrackingList(); } - /// Initializes a new instance of AdvancedSchedule. + /// Initializes a new instance of AutomationAdvancedSchedule. /// Days of the week that the job should execute on. /// Days of the month that the job should execute on. Must be between 1 and 31. /// Occurrences of days within a month. - internal AdvancedSchedule(IList weekDays, IList monthDays, IList monthlyOccurrences) + internal AutomationAdvancedSchedule(IList weekDays, IList monthDays, IList monthlyOccurrences) { WeekDays = weekDays; MonthDays = monthDays; @@ -37,6 +37,6 @@ internal AdvancedSchedule(IList weekDays, IList monthDays, IList Days of the month that the job should execute on. Must be between 1 and 31. public IList MonthDays { get; } /// Occurrences of days within a month. - public IList MonthlyOccurrences { get; } + public IList MonthlyOccurrences { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedScheduleMonthlyOccurrence.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedScheduleMonthlyOccurrence.Serialization.cs similarity index 76% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedScheduleMonthlyOccurrence.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedScheduleMonthlyOccurrence.Serialization.cs index f7684f0e3b33e..daab2b5e97597 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedScheduleMonthlyOccurrence.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedScheduleMonthlyOccurrence.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class AdvancedScheduleMonthlyOccurrence : IUtf8JsonSerializable + public partial class AutomationAdvancedScheduleMonthlyOccurrence : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,10 +28,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static AdvancedScheduleMonthlyOccurrence DeserializeAdvancedScheduleMonthlyOccurrence(JsonElement element) + internal static AutomationAdvancedScheduleMonthlyOccurrence DeserializeAutomationAdvancedScheduleMonthlyOccurrence(JsonElement element) { Optional occurrence = default; - Optional day = default; + Optional day = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("occurrence")) @@ -51,11 +51,11 @@ internal static AdvancedScheduleMonthlyOccurrence DeserializeAdvancedScheduleMon property.ThrowNonNullablePropertyIsNull(); continue; } - day = new ScheduleDay(property.Value.GetString()); + day = new AutomationDayOfWeek(property.Value.GetString()); continue; } } - return new AdvancedScheduleMonthlyOccurrence(Optional.ToNullable(occurrence), Optional.ToNullable(day)); + return new AutomationAdvancedScheduleMonthlyOccurrence(Optional.ToNullable(occurrence), Optional.ToNullable(day)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedScheduleMonthlyOccurrence.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedScheduleMonthlyOccurrence.cs similarity index 65% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedScheduleMonthlyOccurrence.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedScheduleMonthlyOccurrence.cs index 9204e2b1ade74..e2985b04f7b42 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AdvancedScheduleMonthlyOccurrence.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationAdvancedScheduleMonthlyOccurrence.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.Automation.Models { /// The properties of the create advanced schedule monthly occurrence. - public partial class AdvancedScheduleMonthlyOccurrence + public partial class AutomationAdvancedScheduleMonthlyOccurrence { - /// Initializes a new instance of AdvancedScheduleMonthlyOccurrence. - public AdvancedScheduleMonthlyOccurrence() + /// Initializes a new instance of AutomationAdvancedScheduleMonthlyOccurrence. + public AutomationAdvancedScheduleMonthlyOccurrence() { } - /// Initializes a new instance of AdvancedScheduleMonthlyOccurrence. + /// Initializes a new instance of AutomationAdvancedScheduleMonthlyOccurrence. /// Occurrence of the week within the month. Must be between 1 and 5. /// Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday. - internal AdvancedScheduleMonthlyOccurrence(int? occurrence, ScheduleDay? day) + internal AutomationAdvancedScheduleMonthlyOccurrence(int? occurrence, AutomationDayOfWeek? day) { Occurrence = occurrence; Day = day; @@ -27,6 +27,6 @@ internal AdvancedScheduleMonthlyOccurrence(int? occurrence, ScheduleDay? day) /// Occurrence of the week within the month. Must be between 1 and 5. public int? Occurrence { get; set; } /// Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday. - public ScheduleDay? Day { get; set; } + public AutomationDayOfWeek? Day { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateCreateOrUpdateContent.Serialization.cs similarity index 82% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateCreateOrUpdateContent.Serialization.cs index b3d8d5814321b..eeaca4f267292 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class CertificateCreateOrUpdateContent : IUtf8JsonSerializable + public partial class AutomationCertificateCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -29,7 +29,11 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) if (Optional.IsDefined(Thumbprint)) { writer.WritePropertyName("thumbprint"); - writer.WriteStringValue(Thumbprint); +#if NET6_0_OR_GREATER + writer.WriteRawValue(Thumbprint); +#else + JsonSerializer.Serialize(writer, JsonDocument.Parse(Thumbprint.ToString()).RootElement); +#endif } if (Optional.IsDefined(IsExportable)) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateCreateOrUpdateContent.cs new file mode 100644 index 0000000000000..871685eda9d5a --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateCreateOrUpdateContent.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The parameters supplied to the create or update or replace certificate operation. + public partial class AutomationCertificateCreateOrUpdateContent + { + /// Initializes a new instance of AutomationCertificateCreateOrUpdateContent. + /// Gets or sets the name of the certificate. + /// Gets or sets the base64 encoded value of the certificate. + /// or is null. + public AutomationCertificateCreateOrUpdateContent(string name, string base64Value) + { + Argument.AssertNotNull(name, nameof(name)); + Argument.AssertNotNull(base64Value, nameof(base64Value)); + + Name = name; + Base64Value = base64Value; + } + + /// Gets or sets the name of the certificate. + public string Name { get; } + /// Gets or sets the base64 encoded value of the certificate. + public string Base64Value { get; } + /// Gets or sets the description of the certificate. + public string Description { get; set; } + /// + /// Gets or sets the thumbprint of the certificate. + /// + /// To assign an object to this property use . + /// + /// + /// To assign an already formated json string to this property use . + /// + /// + /// Examples: + /// + /// + /// BinaryData.FromObjectAsJson("foo") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromString("\"foo\"") + /// Creates a payload of "foo". + /// + /// + /// BinaryData.FromObjectAsJson(new { key = "value" }) + /// Creates a payload of { "key": "value" }. + /// + /// + /// BinaryData.FromString("{\"key\": \"value\"}") + /// Creates a payload of { "key": "value" }. + /// + /// + /// + /// + public BinaryData Thumbprint { get; set; } + /// Gets or sets the is exportable flag of the certificate. + public bool? IsExportable { get; set; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateData.Serialization.cs similarity index 85% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateData.Serialization.cs index 1985fdebc90bb..f324ce9ecddb1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Automation { - public partial class CertificateData : IUtf8JsonSerializable + public partial class AutomationCertificateData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,13 +28,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static CertificateData DeserializeCertificateData(JsonElement element) + internal static AutomationCertificateData DeserializeAutomationCertificateData(JsonElement element) { ResourceIdentifier id = default; string name = default; ResourceType type = default; Optional systemData = default; - Optional thumbprint = default; + Optional thumbprint = default; Optional expiryTime = default; Optional isExportable = default; Optional creationTime = default; @@ -78,7 +78,12 @@ internal static CertificateData DeserializeCertificateData(JsonElement element) { if (property0.NameEquals("thumbprint")) { - thumbprint = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + thumbprint = BinaryData.FromString(property0.Value.GetRawText()); continue; } if (property0.NameEquals("expiryTime")) @@ -130,7 +135,7 @@ internal static CertificateData DeserializeCertificateData(JsonElement element) continue; } } - return new CertificateData(id, name, type, systemData.Value, thumbprint.Value, Optional.ToNullable(expiryTime), Optional.ToNullable(isExportable), Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); + return new AutomationCertificateData(id, name, type, systemData.Value, thumbprint.Value, Optional.ToNullable(expiryTime), Optional.ToNullable(isExportable), Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateListResult.Serialization.cs new file mode 100644 index 0000000000000..612e32b8fd98a --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Automation; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class AutomationCertificateListResult + { + internal static AutomationCertificateListResult DeserializeAutomationCertificateListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AutomationCertificateData.DeserializeAutomationCertificateData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new AutomationCertificateListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateListResult.cs similarity index 59% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateListResult.cs index eac8c6d95ca14..cec31965082a7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificateListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list certificate operation. - internal partial class CertificateListResult + internal partial class AutomationCertificateListResult { - /// Initializes a new instance of CertificateListResult. - internal CertificateListResult() + /// Initializes a new instance of AutomationCertificateListResult. + internal AutomationCertificateListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of CertificateListResult. + /// Initializes a new instance of AutomationCertificateListResult. /// Gets or sets a list of certificates. /// Gets or sets the next link. - internal CertificateListResult(IReadOnlyList value, string nextLink) + internal AutomationCertificateListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of certificates. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificatePatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificatePatch.Serialization.cs similarity index 92% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificatePatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificatePatch.Serialization.cs index 5381f3ca57449..1393734f19e56 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificatePatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificatePatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class CertificatePatch : IUtf8JsonSerializable + public partial class AutomationCertificatePatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificatePatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificatePatch.cs similarity index 75% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificatePatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificatePatch.cs index 31b13685096ee..baa3ae7f92937 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificatePatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCertificatePatch.cs @@ -8,10 +8,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the update certificate operation. - public partial class CertificatePatch + public partial class AutomationCertificatePatch { - /// Initializes a new instance of CertificatePatch. - public CertificatePatch() + /// Initializes a new instance of AutomationCertificatePatch. + public AutomationCertificatePatch() { } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionCreateOrUpdateContent.Serialization.cs similarity index 93% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionCreateOrUpdateContent.Serialization.cs index 139a00cf0d209..b4552828048c7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ConnectionCreateOrUpdateContent : IUtf8JsonSerializable + public partial class AutomationConnectionCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionCreateOrUpdateContent.cs similarity index 85% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionCreateOrUpdateContent.cs index c30b14eda4348..6bd60b01aed28 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionCreateOrUpdateContent.cs @@ -12,13 +12,13 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create or update connection operation. - public partial class ConnectionCreateOrUpdateContent + public partial class AutomationConnectionCreateOrUpdateContent { - /// Initializes a new instance of ConnectionCreateOrUpdateContent. + /// Initializes a new instance of AutomationConnectionCreateOrUpdateContent. /// Gets or sets the name of the connection. /// Gets or sets the connectionType of the connection. /// or is null. - public ConnectionCreateOrUpdateContent(string name, ConnectionTypeAssociationProperty connectionType) + public AutomationConnectionCreateOrUpdateContent(string name, ConnectionTypeAssociationProperty connectionType) { Argument.AssertNotNull(name, nameof(name)); Argument.AssertNotNull(connectionType, nameof(connectionType)); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionData.Serialization.cs similarity index 93% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionData.Serialization.cs index d111c353bb5eb..d811cb1deaebf 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Automation { - public partial class ConnectionData : IUtf8JsonSerializable + public partial class AutomationConnectionData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,7 +35,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ConnectionData DeserializeConnectionData(JsonElement element) + internal static AutomationConnectionData DeserializeAutomationConnectionData(JsonElement element) { ResourceIdentifier id = default; string name = default; @@ -136,7 +136,7 @@ internal static ConnectionData DeserializeConnectionData(JsonElement element) continue; } } - return new ConnectionData(id, name, type, systemData.Value, connectionType.Value, Optional.ToDictionary(fieldDefinitionValues), Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); + return new AutomationConnectionData(id, name, type, systemData.Value, connectionType.Value, Optional.ToDictionary(fieldDefinitionValues), Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/FieldDefinition.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionFieldDefinition.Serialization.cs similarity index 85% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/FieldDefinition.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionFieldDefinition.Serialization.cs index 5479029f3a2ab..32396ff649b4e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/FieldDefinition.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionFieldDefinition.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class FieldDefinition : IUtf8JsonSerializable + public partial class AutomationConnectionFieldDefinition : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -30,7 +30,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static FieldDefinition DeserializeFieldDefinition(JsonElement element) + internal static AutomationConnectionFieldDefinition DeserializeAutomationConnectionFieldDefinition(JsonElement element) { Optional isEncrypted = default; Optional isOptional = default; @@ -63,7 +63,7 @@ internal static FieldDefinition DeserializeFieldDefinition(JsonElement element) continue; } } - return new FieldDefinition(Optional.ToNullable(isEncrypted), Optional.ToNullable(isOptional), type); + return new AutomationConnectionFieldDefinition(Optional.ToNullable(isEncrypted), Optional.ToNullable(isOptional), type); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/FieldDefinition.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionFieldDefinition.cs similarity index 78% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/FieldDefinition.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionFieldDefinition.cs index 3b1ee682183d8..71742325b8590 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/FieldDefinition.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionFieldDefinition.cs @@ -11,23 +11,23 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the connection fields. - public partial class FieldDefinition + public partial class AutomationConnectionFieldDefinition { - /// Initializes a new instance of FieldDefinition. + /// Initializes a new instance of AutomationConnectionFieldDefinition. /// Gets or sets the type of the connection field definition. /// is null. - public FieldDefinition(string fieldDefinitionType) + public AutomationConnectionFieldDefinition(string fieldDefinitionType) { Argument.AssertNotNull(fieldDefinitionType, nameof(fieldDefinitionType)); FieldDefinitionType = fieldDefinitionType; } - /// Initializes a new instance of FieldDefinition. + /// Initializes a new instance of AutomationConnectionFieldDefinition. /// Gets or sets the isEncrypted flag of the connection field definition. /// Gets or sets the isOptional flag of the connection field definition. /// Gets or sets the type of the connection field definition. - internal FieldDefinition(bool? isEncrypted, bool? isOptional, string fieldDefinitionType) + internal AutomationConnectionFieldDefinition(bool? isEncrypted, bool? isOptional, string fieldDefinitionType) { IsEncrypted = isEncrypted; IsOptional = isOptional; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionListResult.Serialization.cs new file mode 100644 index 0000000000000..245a7d6efd8bb --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Automation; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class AutomationConnectionListResult + { + internal static AutomationConnectionListResult DeserializeAutomationConnectionListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AutomationConnectionData.DeserializeAutomationConnectionData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new AutomationConnectionListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionListResult.cs similarity index 59% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionListResult.cs index af0684e7867c1..272e700199be6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list connection operation. - internal partial class ConnectionListResult + internal partial class AutomationConnectionListResult { - /// Initializes a new instance of ConnectionListResult. - internal ConnectionListResult() + /// Initializes a new instance of AutomationConnectionListResult. + internal AutomationConnectionListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of ConnectionListResult. + /// Initializes a new instance of AutomationConnectionListResult. /// Gets or sets a list of connection. /// Gets or sets the next link. - internal ConnectionListResult(IReadOnlyList value, string nextLink) + internal AutomationConnectionListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of connection. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionPatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionPatch.Serialization.cs similarity index 94% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionPatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionPatch.Serialization.cs index 776d6d07f372d..223ffab03024e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionPatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ConnectionPatch : IUtf8JsonSerializable + public partial class AutomationConnectionPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionPatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionPatch.cs similarity index 82% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionPatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionPatch.cs index b6e81bbb07bb5..69a307eb9e2f1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionPatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionPatch.cs @@ -11,10 +11,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the update connection operation. - public partial class ConnectionPatch + public partial class AutomationConnectionPatch { - /// Initializes a new instance of ConnectionPatch. - public ConnectionPatch() + /// Initializes a new instance of AutomationConnectionPatch. + public AutomationConnectionPatch() { FieldDefinitionValues = new ChangeTrackingDictionary(); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeCreateOrUpdateContent.Serialization.cs similarity index 92% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeCreateOrUpdateContent.Serialization.cs index aab8e3058a6b5..21c8b706a6587 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ConnectionTypeCreateOrUpdateContent : IUtf8JsonSerializable + public partial class AutomationConnectionTypeCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeCreateOrUpdateContent.cs similarity index 75% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeCreateOrUpdateContent.cs index c248a888e8301..d93b48f9245e5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeCreateOrUpdateContent.cs @@ -12,13 +12,13 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create or update connection type operation. - public partial class ConnectionTypeCreateOrUpdateContent + public partial class AutomationConnectionTypeCreateOrUpdateContent { - /// Initializes a new instance of ConnectionTypeCreateOrUpdateContent. + /// Initializes a new instance of AutomationConnectionTypeCreateOrUpdateContent. /// Gets or sets the name of the connection type. /// Gets or sets the field definitions of the connection type. /// or is null. - public ConnectionTypeCreateOrUpdateContent(string name, IDictionary fieldDefinitions) + public AutomationConnectionTypeCreateOrUpdateContent(string name, IDictionary fieldDefinitions) { Argument.AssertNotNull(name, nameof(name)); Argument.AssertNotNull(fieldDefinitions, nameof(fieldDefinitions)); @@ -32,6 +32,6 @@ public ConnectionTypeCreateOrUpdateContent(string name, IDictionary Gets or sets a Boolean value to indicate if the connection type is global. public bool? IsGlobal { get; set; } /// Gets or sets the field definitions of the connection type. - public IDictionary FieldDefinitions { get; } + public IDictionary FieldDefinitions { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeData.Serialization.cs similarity index 84% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeData.Serialization.cs index 9d7a6f4913329..4375ed67b899b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeData.Serialization.cs @@ -14,16 +14,16 @@ namespace Azure.ResourceManager.Automation { - public partial class ConnectionTypeData + public partial class AutomationConnectionTypeData { - internal static ConnectionTypeData DeserializeConnectionTypeData(JsonElement element) + internal static AutomationConnectionTypeData DeserializeAutomationConnectionTypeData(JsonElement element) { ResourceIdentifier id = default; string name = default; ResourceType type = default; Optional systemData = default; Optional isGlobal = default; - Optional> fieldDefinitions = default; + Optional> fieldDefinitions = default; Optional creationTime = default; Optional lastModifiedTime = default; Optional description = default; @@ -80,10 +80,10 @@ internal static ConnectionTypeData DeserializeConnectionTypeData(JsonElement ele property0.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property1 in property0.Value.EnumerateObject()) { - dictionary.Add(property1.Name, FieldDefinition.DeserializeFieldDefinition(property1.Value)); + dictionary.Add(property1.Name, AutomationConnectionFieldDefinition.DeserializeAutomationConnectionFieldDefinition(property1.Value)); } fieldDefinitions = dictionary; continue; @@ -117,7 +117,7 @@ internal static ConnectionTypeData DeserializeConnectionTypeData(JsonElement ele continue; } } - return new ConnectionTypeData(id, name, type, systemData.Value, Optional.ToNullable(isGlobal), Optional.ToDictionary(fieldDefinitions), Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); + return new AutomationConnectionTypeData(id, name, type, systemData.Value, Optional.ToNullable(isGlobal), Optional.ToDictionary(fieldDefinitions), Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeListResult.Serialization.cs new file mode 100644 index 0000000000000..99d238ea9cae3 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Automation; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class AutomationConnectionTypeListResult + { + internal static AutomationConnectionTypeListResult DeserializeAutomationConnectionTypeListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AutomationConnectionTypeData.DeserializeAutomationConnectionTypeData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new AutomationConnectionTypeListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeListResult.cs similarity index 58% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeListResult.cs index 3e744012e5d70..f5e3301c48bf1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationConnectionTypeListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list connection type operation. - internal partial class ConnectionTypeListResult + internal partial class AutomationConnectionTypeListResult { - /// Initializes a new instance of ConnectionTypeListResult. - internal ConnectionTypeListResult() + /// Initializes a new instance of AutomationConnectionTypeListResult. + internal AutomationConnectionTypeListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of ConnectionTypeListResult. + /// Initializes a new instance of AutomationConnectionTypeListResult. /// Gets or sets a list of connection types. /// Gets or sets the next link. - internal ConnectionTypeListResult(IReadOnlyList value, string nextLink) + internal AutomationConnectionTypeListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of connection types. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentHash.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentHash.Serialization.cs similarity index 82% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentHash.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentHash.Serialization.cs index 0264d25781dcc..1fa7f013a8362 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentHash.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentHash.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ContentHash : IUtf8JsonSerializable + public partial class AutomationContentHash : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -22,7 +22,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ContentHash DeserializeContentHash(JsonElement element) + internal static AutomationContentHash DeserializeAutomationContentHash(JsonElement element) { string algorithm = default; string value = default; @@ -39,7 +39,7 @@ internal static ContentHash DeserializeContentHash(JsonElement element) continue; } } - return new ContentHash(algorithm, value); + return new AutomationContentHash(algorithm, value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentHash.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentHash.cs similarity index 84% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentHash.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentHash.cs index 4ea76fbadb3b2..b8ac980d4a7f7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentHash.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentHash.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the runbook property type. - public partial class ContentHash + public partial class AutomationContentHash { - /// Initializes a new instance of ContentHash. + /// Initializes a new instance of AutomationContentHash. /// Gets or sets the content hash algorithm used to hash the content. /// Gets or sets expected hash value of the content. /// or is null. - public ContentHash(string algorithm, string value) + public AutomationContentHash(string algorithm, string value) { Argument.AssertNotNull(algorithm, nameof(algorithm)); Argument.AssertNotNull(value, nameof(value)); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentLink.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.Serialization.cs similarity index 82% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentLink.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.Serialization.cs index b4e6f22f8db64..5c95b6a427582 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentLink.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ContentLink : IUtf8JsonSerializable + public partial class AutomationContentLink : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -34,10 +34,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ContentLink DeserializeContentLink(JsonElement element) + internal static AutomationContentLink DeserializeAutomationContentLink(JsonElement element) { Optional uri = default; - Optional contentHash = default; + Optional contentHash = default; Optional version = default; foreach (var property in element.EnumerateObject()) { @@ -58,7 +58,7 @@ internal static ContentLink DeserializeContentLink(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - contentHash = ContentHash.DeserializeContentHash(property.Value); + contentHash = AutomationContentHash.DeserializeAutomationContentHash(property.Value); continue; } if (property.NameEquals("version")) @@ -67,7 +67,7 @@ internal static ContentLink DeserializeContentLink(JsonElement element) continue; } } - return new ContentLink(uri.Value, contentHash.Value, version.Value); + return new AutomationContentLink(uri.Value, contentHash.Value, version.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentLink.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.cs similarity index 69% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentLink.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.cs index e9b41313a589c..8db527e9e5270 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentLink.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentLink.cs @@ -10,18 +10,18 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the content link. - public partial class ContentLink + public partial class AutomationContentLink { - /// Initializes a new instance of ContentLink. - public ContentLink() + /// Initializes a new instance of AutomationContentLink. + public AutomationContentLink() { } - /// Initializes a new instance of ContentLink. + /// Initializes a new instance of AutomationContentLink. /// Gets or sets the uri of the runbook content. /// Gets or sets the hash. /// Gets or sets the version of the content. - internal ContentLink(Uri uri, ContentHash contentHash, string version) + internal AutomationContentLink(Uri uri, AutomationContentHash contentHash, string version) { Uri = uri; ContentHash = contentHash; @@ -31,7 +31,7 @@ internal ContentLink(Uri uri, ContentHash contentHash, string version) /// Gets or sets the uri of the runbook content. public Uri Uri { get; set; } /// Gets or sets the hash. - public ContentHash ContentHash { get; set; } + public AutomationContentHash ContentHash { get; set; } /// Gets or sets the version of the content. public string Version { get; set; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentSource.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentSource.Serialization.cs similarity index 79% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentSource.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentSource.Serialization.cs index 7a4dfbb35439f..50e50cd15f9d4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentSource.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentSource.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ContentSource : IUtf8JsonSerializable + public partial class AutomationContentSource : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -38,10 +38,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ContentSource DeserializeContentSource(JsonElement element) + internal static AutomationContentSource DeserializeAutomationContentSource(JsonElement element) { - Optional hash = default; - Optional type = default; + Optional hash = default; + Optional type = default; Optional value = default; Optional version = default; foreach (var property in element.EnumerateObject()) @@ -53,7 +53,7 @@ internal static ContentSource DeserializeContentSource(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - hash = ContentHash.DeserializeContentHash(property.Value); + hash = AutomationContentHash.DeserializeAutomationContentHash(property.Value); continue; } if (property.NameEquals("type")) @@ -63,7 +63,7 @@ internal static ContentSource DeserializeContentSource(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - type = new ContentSourceType(property.Value.GetString()); + type = new AutomationContentSourceType(property.Value.GetString()); continue; } if (property.NameEquals("value")) @@ -77,7 +77,7 @@ internal static ContentSource DeserializeContentSource(JsonElement element) continue; } } - return new ContentSource(hash.Value, Optional.ToNullable(type), value.Value, version.Value); + return new AutomationContentSource(hash.Value, Optional.ToNullable(type), value.Value, version.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentSource.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentSource.cs similarity index 69% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentSource.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentSource.cs index 98498ee4e360f..0ead8a46894d3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentSource.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentSource.cs @@ -8,19 +8,19 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the content source. - public partial class ContentSource + public partial class AutomationContentSource { - /// Initializes a new instance of ContentSource. - public ContentSource() + /// Initializes a new instance of AutomationContentSource. + public AutomationContentSource() { } - /// Initializes a new instance of ContentSource. + /// Initializes a new instance of AutomationContentSource. /// Gets or sets the hash. /// Gets or sets the content source type. /// Gets or sets the value of the content. This is based on the content source type. /// Gets or sets the version of the content. - internal ContentSource(ContentHash hash, ContentSourceType? sourceType, string value, string version) + internal AutomationContentSource(AutomationContentHash hash, AutomationContentSourceType? sourceType, string value, string version) { Hash = hash; SourceType = sourceType; @@ -29,9 +29,9 @@ internal ContentSource(ContentHash hash, ContentSourceType? sourceType, string v } /// Gets or sets the hash. - public ContentHash Hash { get; set; } + public AutomationContentHash Hash { get; set; } /// Gets or sets the content source type. - public ContentSourceType? SourceType { get; set; } + public AutomationContentSourceType? SourceType { get; set; } /// Gets or sets the value of the content. This is based on the content source type. public string Value { get; set; } /// Gets or sets the version of the content. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentSourceType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentSourceType.cs new file mode 100644 index 0000000000000..c085a2cb7e7e5 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationContentSourceType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Gets or sets the content source type. + public readonly partial struct AutomationContentSourceType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutomationContentSourceType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string EmbeddedContentValue = "embeddedContent"; + private const string UriValue = "uri"; + + /// embeddedContent. + public static AutomationContentSourceType EmbeddedContent { get; } = new AutomationContentSourceType(EmbeddedContentValue); + /// uri. + public static AutomationContentSourceType Uri { get; } = new AutomationContentSourceType(UriValue); + /// Determines if two values are the same. + public static bool operator ==(AutomationContentSourceType left, AutomationContentSourceType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutomationContentSourceType left, AutomationContentSourceType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AutomationContentSourceType(string value) => new AutomationContentSourceType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutomationContentSourceType other && Equals(other); + /// + public bool Equals(AutomationContentSourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCountType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCountType.cs new file mode 100644 index 0000000000000..3e5eaa2132444 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCountType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The AutomationCountType. + public readonly partial struct AutomationCountType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutomationCountType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string StatusValue = "status"; + private const string NodeConfigurationValue = "nodeconfiguration"; + + /// status. + public static AutomationCountType Status { get; } = new AutomationCountType(StatusValue); + /// nodeconfiguration. + public static AutomationCountType NodeConfiguration { get; } = new AutomationCountType(NodeConfigurationValue); + /// Determines if two values are the same. + public static bool operator ==(AutomationCountType left, AutomationCountType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutomationCountType left, AutomationCountType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AutomationCountType(string value) => new AutomationCountType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutomationCountType other && Equals(other); + /// + public bool Equals(AutomationCountType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialCreateOrUpdateContent.Serialization.cs similarity index 91% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialCreateOrUpdateContent.Serialization.cs index ea64d3130fef3..a51f29e4ddc3d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class CredentialCreateOrUpdateContent : IUtf8JsonSerializable + public partial class AutomationCredentialCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialCreateOrUpdateContent.cs similarity index 84% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialCreateOrUpdateContent.cs index 3bc7c8e062011..9435e1765e995 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialCreateOrUpdateContent.cs @@ -11,14 +11,14 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create or update credential operation. - public partial class CredentialCreateOrUpdateContent + public partial class AutomationCredentialCreateOrUpdateContent { - /// Initializes a new instance of CredentialCreateOrUpdateContent. + /// Initializes a new instance of AutomationCredentialCreateOrUpdateContent. /// Gets or sets the name of the credential. /// Gets or sets the user name of the credential. /// Gets or sets the password of the credential. /// , or is null. - public CredentialCreateOrUpdateContent(string name, string userName, string password) + public AutomationCredentialCreateOrUpdateContent(string name, string userName, string password) { Argument.AssertNotNull(name, nameof(name)); Argument.AssertNotNull(userName, nameof(userName)); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialData.Serialization.cs similarity index 91% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialData.Serialization.cs index a3da2405637eb..2c1458d710252 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Automation { - public partial class CredentialData : IUtf8JsonSerializable + public partial class AutomationCredentialData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static CredentialData DeserializeCredentialData(JsonElement element) + internal static AutomationCredentialData DeserializeAutomationCredentialData(JsonElement element) { ResourceIdentifier id = default; string name = default; @@ -108,7 +108,7 @@ internal static CredentialData DeserializeCredentialData(JsonElement element) continue; } } - return new CredentialData(id, name, type, systemData.Value, userName.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); + return new AutomationCredentialData(id, name, type, systemData.Value, userName.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialListResult.Serialization.cs new file mode 100644 index 0000000000000..558b0821d5599 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Automation; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class AutomationCredentialListResult + { + internal static AutomationCredentialListResult DeserializeAutomationCredentialListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AutomationCredentialData.DeserializeAutomationCredentialData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new AutomationCredentialListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialListResult.cs similarity index 59% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialListResult.cs index 890b015e4c14e..e37d8404c3f4a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list credential operation. - internal partial class CredentialListResult + internal partial class AutomationCredentialListResult { - /// Initializes a new instance of CredentialListResult. - internal CredentialListResult() + /// Initializes a new instance of AutomationCredentialListResult. + internal AutomationCredentialListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of CredentialListResult. + /// Initializes a new instance of AutomationCredentialListResult. /// Gets or sets a list of credentials. /// Gets or sets the next link. - internal CredentialListResult(IReadOnlyList value, string nextLink) + internal AutomationCredentialListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of credentials. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialPatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialPatch.Serialization.cs similarity index 94% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialPatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialPatch.Serialization.cs index 43aba78e9b9b2..a2562c6431558 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialPatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class CredentialPatch : IUtf8JsonSerializable + public partial class AutomationCredentialPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialPatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialPatch.cs similarity index 81% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialPatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialPatch.cs index 8bb2d5f9ffd7f..2a9531c5200e4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialPatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationCredentialPatch.cs @@ -8,10 +8,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the Update credential operation. - public partial class CredentialPatch + public partial class AutomationCredentialPatch { - /// Initializes a new instance of CredentialPatch. - public CredentialPatch() + /// Initializes a new instance of AutomationCredentialPatch. + public AutomationCredentialPatch() { } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationDayOfWeek.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationDayOfWeek.cs new file mode 100644 index 0000000000000..0bdf16863ce3e --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationDayOfWeek.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday. + public readonly partial struct AutomationDayOfWeek : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutomationDayOfWeek(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string MondayValue = "Monday"; + private const string TuesdayValue = "Tuesday"; + private const string WednesdayValue = "Wednesday"; + private const string ThursdayValue = "Thursday"; + private const string FridayValue = "Friday"; + private const string SaturdayValue = "Saturday"; + private const string SundayValue = "Sunday"; + + /// Monday. + public static AutomationDayOfWeek Monday { get; } = new AutomationDayOfWeek(MondayValue); + /// Tuesday. + public static AutomationDayOfWeek Tuesday { get; } = new AutomationDayOfWeek(TuesdayValue); + /// Wednesday. + public static AutomationDayOfWeek Wednesday { get; } = new AutomationDayOfWeek(WednesdayValue); + /// Thursday. + public static AutomationDayOfWeek Thursday { get; } = new AutomationDayOfWeek(ThursdayValue); + /// Friday. + public static AutomationDayOfWeek Friday { get; } = new AutomationDayOfWeek(FridayValue); + /// Saturday. + public static AutomationDayOfWeek Saturday { get; } = new AutomationDayOfWeek(SaturdayValue); + /// Sunday. + public static AutomationDayOfWeek Sunday { get; } = new AutomationDayOfWeek(SundayValue); + /// Determines if two values are the same. + public static bool operator ==(AutomationDayOfWeek left, AutomationDayOfWeek right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutomationDayOfWeek left, AutomationDayOfWeek right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AutomationDayOfWeek(string value) => new AutomationDayOfWeek(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutomationDayOfWeek other && Equals(other); + /// + public bool Equals(AutomationDayOfWeek other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/EncryptionProperties.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationEncryptionProperties.Serialization.cs similarity index 82% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/EncryptionProperties.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationEncryptionProperties.Serialization.cs index f554aa75b23b1..5079ebb39dfe5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/EncryptionProperties.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationEncryptionProperties.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class EncryptionProperties : IUtf8JsonSerializable + public partial class AutomationEncryptionProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -33,9 +33,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static EncryptionProperties DeserializeEncryptionProperties(JsonElement element) + internal static AutomationEncryptionProperties DeserializeAutomationEncryptionProperties(JsonElement element) { - Optional keyVaultProperties = default; + Optional keyVaultProperties = default; Optional keySource = default; Optional identity = default; foreach (var property in element.EnumerateObject()) @@ -47,7 +47,7 @@ internal static EncryptionProperties DeserializeEncryptionProperties(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - keyVaultProperties = KeyVaultProperties.DeserializeKeyVaultProperties(property.Value); + keyVaultProperties = AutomationKeyVaultProperties.DeserializeAutomationKeyVaultProperties(property.Value); continue; } if (property.NameEquals("keySource")) @@ -71,7 +71,7 @@ internal static EncryptionProperties DeserializeEncryptionProperties(JsonElement continue; } } - return new EncryptionProperties(keyVaultProperties.Value, Optional.ToNullable(keySource), identity.Value); + return new AutomationEncryptionProperties(keyVaultProperties.Value, Optional.ToNullable(keySource), identity.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/EncryptionProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationEncryptionProperties.cs similarity index 83% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/EncryptionProperties.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationEncryptionProperties.cs index 75f97097d161c..d088041799a67 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/EncryptionProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationEncryptionProperties.cs @@ -10,18 +10,18 @@ namespace Azure.ResourceManager.Automation.Models { /// The encryption settings for automation account. - public partial class EncryptionProperties + public partial class AutomationEncryptionProperties { - /// Initializes a new instance of EncryptionProperties. - public EncryptionProperties() + /// Initializes a new instance of AutomationEncryptionProperties. + public AutomationEncryptionProperties() { } - /// Initializes a new instance of EncryptionProperties. + /// Initializes a new instance of AutomationEncryptionProperties. /// Key vault properties. /// Encryption Key Source. /// User identity used for CMK. - internal EncryptionProperties(KeyVaultProperties keyVaultProperties, EncryptionKeySourceType? keySource, EncryptionPropertiesIdentity identity) + internal AutomationEncryptionProperties(AutomationKeyVaultProperties keyVaultProperties, EncryptionKeySourceType? keySource, EncryptionPropertiesIdentity identity) { KeyVaultProperties = keyVaultProperties; KeySource = keySource; @@ -29,7 +29,7 @@ internal EncryptionProperties(KeyVaultProperties keyVaultProperties, EncryptionK } /// Key vault properties. - public KeyVaultProperties KeyVaultProperties { get; set; } + public AutomationKeyVaultProperties KeyVaultProperties { get; set; } /// Encryption Key Source. public EncryptionKeySourceType? KeySource { get; set; } /// User identity used for CMK. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationHttpStatusCode.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationHttpStatusCode.cs new file mode 100644 index 0000000000000..cb62f3278499f --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationHttpStatusCode.cs @@ -0,0 +1,186 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The AutomationHttpStatusCode. + public readonly partial struct AutomationHttpStatusCode : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutomationHttpStatusCode(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ContinueValue = "Continue"; + private const string SwitchingProtocolsValue = "SwitchingProtocols"; + private const string OKValue = "OK"; + private const string CreatedValue = "Created"; + private const string AcceptedValue = "Accepted"; + private const string NonAuthoritativeInformationValue = "NonAuthoritativeInformation"; + private const string NoContentValue = "NoContent"; + private const string ResetContentValue = "ResetContent"; + private const string PartialContentValue = "PartialContent"; + private const string MultipleChoicesValue = "MultipleChoices"; + private const string AmbiguousValue = "Ambiguous"; + private const string MovedPermanentlyValue = "MovedPermanently"; + private const string MovedValue = "Moved"; + private const string FoundValue = "Found"; + private const string RedirectValue = "Redirect"; + private const string SeeOtherValue = "SeeOther"; + private const string RedirectMethodValue = "RedirectMethod"; + private const string NotModifiedValue = "NotModified"; + private const string UseProxyValue = "UseProxy"; + private const string UnusedValue = "Unused"; + private const string TemporaryRedirectValue = "TemporaryRedirect"; + private const string RedirectKeepVerbValue = "RedirectKeepVerb"; + private const string BadRequestValue = "BadRequest"; + private const string UnauthorizedValue = "Unauthorized"; + private const string PaymentRequiredValue = "PaymentRequired"; + private const string ForbiddenValue = "Forbidden"; + private const string NotFoundValue = "NotFound"; + private const string MethodNotAllowedValue = "MethodNotAllowed"; + private const string NotAcceptableValue = "NotAcceptable"; + private const string ProxyAuthenticationRequiredValue = "ProxyAuthenticationRequired"; + private const string RequestTimeoutValue = "RequestTimeout"; + private const string ConflictValue = "Conflict"; + private const string GoneValue = "Gone"; + private const string LengthRequiredValue = "LengthRequired"; + private const string PreconditionFailedValue = "PreconditionFailed"; + private const string RequestEntityTooLargeValue = "RequestEntityTooLarge"; + private const string RequestUriTooLongValue = "RequestUriTooLong"; + private const string UnsupportedMediaTypeValue = "UnsupportedMediaType"; + private const string RequestedRangeNotSatisfiableValue = "RequestedRangeNotSatisfiable"; + private const string ExpectationFailedValue = "ExpectationFailed"; + private const string UpgradeRequiredValue = "UpgradeRequired"; + private const string InternalServerErrorValue = "InternalServerError"; + private const string NotImplementedValue = "NotImplemented"; + private const string BadGatewayValue = "BadGateway"; + private const string ServiceUnavailableValue = "ServiceUnavailable"; + private const string GatewayTimeoutValue = "GatewayTimeout"; + private const string HttpVersionNotSupportedValue = "HttpVersionNotSupported"; + + /// Continue. + public static AutomationHttpStatusCode Continue { get; } = new AutomationHttpStatusCode(ContinueValue); + /// SwitchingProtocols. + public static AutomationHttpStatusCode SwitchingProtocols { get; } = new AutomationHttpStatusCode(SwitchingProtocolsValue); + /// OK. + public static AutomationHttpStatusCode OK { get; } = new AutomationHttpStatusCode(OKValue); + /// Created. + public static AutomationHttpStatusCode Created { get; } = new AutomationHttpStatusCode(CreatedValue); + /// Accepted. + public static AutomationHttpStatusCode Accepted { get; } = new AutomationHttpStatusCode(AcceptedValue); + /// NonAuthoritativeInformation. + public static AutomationHttpStatusCode NonAuthoritativeInformation { get; } = new AutomationHttpStatusCode(NonAuthoritativeInformationValue); + /// NoContent. + public static AutomationHttpStatusCode NoContent { get; } = new AutomationHttpStatusCode(NoContentValue); + /// ResetContent. + public static AutomationHttpStatusCode ResetContent { get; } = new AutomationHttpStatusCode(ResetContentValue); + /// PartialContent. + public static AutomationHttpStatusCode PartialContent { get; } = new AutomationHttpStatusCode(PartialContentValue); + /// MultipleChoices. + public static AutomationHttpStatusCode MultipleChoices { get; } = new AutomationHttpStatusCode(MultipleChoicesValue); + /// Ambiguous. + public static AutomationHttpStatusCode Ambiguous { get; } = new AutomationHttpStatusCode(AmbiguousValue); + /// MovedPermanently. + public static AutomationHttpStatusCode MovedPermanently { get; } = new AutomationHttpStatusCode(MovedPermanentlyValue); + /// Moved. + public static AutomationHttpStatusCode Moved { get; } = new AutomationHttpStatusCode(MovedValue); + /// Found. + public static AutomationHttpStatusCode Found { get; } = new AutomationHttpStatusCode(FoundValue); + /// Redirect. + public static AutomationHttpStatusCode Redirect { get; } = new AutomationHttpStatusCode(RedirectValue); + /// SeeOther. + public static AutomationHttpStatusCode SeeOther { get; } = new AutomationHttpStatusCode(SeeOtherValue); + /// RedirectMethod. + public static AutomationHttpStatusCode RedirectMethod { get; } = new AutomationHttpStatusCode(RedirectMethodValue); + /// NotModified. + public static AutomationHttpStatusCode NotModified { get; } = new AutomationHttpStatusCode(NotModifiedValue); + /// UseProxy. + public static AutomationHttpStatusCode UseProxy { get; } = new AutomationHttpStatusCode(UseProxyValue); + /// Unused. + public static AutomationHttpStatusCode Unused { get; } = new AutomationHttpStatusCode(UnusedValue); + /// TemporaryRedirect. + public static AutomationHttpStatusCode TemporaryRedirect { get; } = new AutomationHttpStatusCode(TemporaryRedirectValue); + /// RedirectKeepVerb. + public static AutomationHttpStatusCode RedirectKeepVerb { get; } = new AutomationHttpStatusCode(RedirectKeepVerbValue); + /// BadRequest. + public static AutomationHttpStatusCode BadRequest { get; } = new AutomationHttpStatusCode(BadRequestValue); + /// Unauthorized. + public static AutomationHttpStatusCode Unauthorized { get; } = new AutomationHttpStatusCode(UnauthorizedValue); + /// PaymentRequired. + public static AutomationHttpStatusCode PaymentRequired { get; } = new AutomationHttpStatusCode(PaymentRequiredValue); + /// Forbidden. + public static AutomationHttpStatusCode Forbidden { get; } = new AutomationHttpStatusCode(ForbiddenValue); + /// NotFound. + public static AutomationHttpStatusCode NotFound { get; } = new AutomationHttpStatusCode(NotFoundValue); + /// MethodNotAllowed. + public static AutomationHttpStatusCode MethodNotAllowed { get; } = new AutomationHttpStatusCode(MethodNotAllowedValue); + /// NotAcceptable. + public static AutomationHttpStatusCode NotAcceptable { get; } = new AutomationHttpStatusCode(NotAcceptableValue); + /// ProxyAuthenticationRequired. + public static AutomationHttpStatusCode ProxyAuthenticationRequired { get; } = new AutomationHttpStatusCode(ProxyAuthenticationRequiredValue); + /// RequestTimeout. + public static AutomationHttpStatusCode RequestTimeout { get; } = new AutomationHttpStatusCode(RequestTimeoutValue); + /// Conflict. + public static AutomationHttpStatusCode Conflict { get; } = new AutomationHttpStatusCode(ConflictValue); + /// Gone. + public static AutomationHttpStatusCode Gone { get; } = new AutomationHttpStatusCode(GoneValue); + /// LengthRequired. + public static AutomationHttpStatusCode LengthRequired { get; } = new AutomationHttpStatusCode(LengthRequiredValue); + /// PreconditionFailed. + public static AutomationHttpStatusCode PreconditionFailed { get; } = new AutomationHttpStatusCode(PreconditionFailedValue); + /// RequestEntityTooLarge. + public static AutomationHttpStatusCode RequestEntityTooLarge { get; } = new AutomationHttpStatusCode(RequestEntityTooLargeValue); + /// RequestUriTooLong. + public static AutomationHttpStatusCode RequestUriTooLong { get; } = new AutomationHttpStatusCode(RequestUriTooLongValue); + /// UnsupportedMediaType. + public static AutomationHttpStatusCode UnsupportedMediaType { get; } = new AutomationHttpStatusCode(UnsupportedMediaTypeValue); + /// RequestedRangeNotSatisfiable. + public static AutomationHttpStatusCode RequestedRangeNotSatisfiable { get; } = new AutomationHttpStatusCode(RequestedRangeNotSatisfiableValue); + /// ExpectationFailed. + public static AutomationHttpStatusCode ExpectationFailed { get; } = new AutomationHttpStatusCode(ExpectationFailedValue); + /// UpgradeRequired. + public static AutomationHttpStatusCode UpgradeRequired { get; } = new AutomationHttpStatusCode(UpgradeRequiredValue); + /// InternalServerError. + public static AutomationHttpStatusCode InternalServerError { get; } = new AutomationHttpStatusCode(InternalServerErrorValue); + /// NotImplemented. + public static AutomationHttpStatusCode NotImplemented { get; } = new AutomationHttpStatusCode(NotImplementedValue); + /// BadGateway. + public static AutomationHttpStatusCode BadGateway { get; } = new AutomationHttpStatusCode(BadGatewayValue); + /// ServiceUnavailable. + public static AutomationHttpStatusCode ServiceUnavailable { get; } = new AutomationHttpStatusCode(ServiceUnavailableValue); + /// GatewayTimeout. + public static AutomationHttpStatusCode GatewayTimeout { get; } = new AutomationHttpStatusCode(GatewayTimeoutValue); + /// HttpVersionNotSupported. + public static AutomationHttpStatusCode HttpVersionNotSupported { get; } = new AutomationHttpStatusCode(HttpVersionNotSupportedValue); + /// Determines if two values are the same. + public static bool operator ==(AutomationHttpStatusCode left, AutomationHttpStatusCode right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutomationHttpStatusCode left, AutomationHttpStatusCode right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AutomationHttpStatusCode(string value) => new AutomationHttpStatusCode(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutomationHttpStatusCode other && Equals(other); + /// + public bool Equals(AutomationHttpStatusCode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCollectionItem.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.Serialization.cs similarity index 90% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCollectionItem.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.Serialization.cs index 7fd89c14f80e8..c88fb3154ebed 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCollectionItem.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class JobCollectionItem : IUtf8JsonSerializable + public partial class AutomationJobCollectionItemData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static JobCollectionItem DeserializeJobCollectionItem(JsonElement element) + internal static AutomationJobCollectionItemData DeserializeAutomationJobCollectionItemData(JsonElement element) { ResourceIdentifier id = default; string name = default; @@ -37,7 +37,7 @@ internal static JobCollectionItem DeserializeJobCollectionItem(JsonElement eleme Optional runbook = default; Optional jobId = default; Optional creationTime = default; - Optional status = default; + Optional status = default; Optional startTime = default; Optional endTime = default; Optional lastModifiedTime = default; @@ -116,7 +116,7 @@ internal static JobCollectionItem DeserializeJobCollectionItem(JsonElement eleme property0.ThrowNonNullablePropertyIsNull(); continue; } - status = new JobStatus(property0.Value.GetString()); + status = new AutomationJobStatus(property0.Value.GetString()); continue; } if (property0.NameEquals("startTime")) @@ -163,7 +163,7 @@ internal static JobCollectionItem DeserializeJobCollectionItem(JsonElement eleme continue; } } - return new JobCollectionItem(id, name, type, systemData.Value, runbook.Value, Optional.ToNullable(jobId), Optional.ToNullable(creationTime), Optional.ToNullable(status), Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToNullable(lastModifiedTime), provisioningState.Value, runOn.Value); + return new AutomationJobCollectionItemData(id, name, type, systemData.Value, runbook.Value, Optional.ToNullable(jobId), Optional.ToNullable(creationTime), Optional.ToNullable(status), Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToNullable(lastModifiedTime), provisioningState.Value, runOn.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCollectionItem.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.cs similarity index 77% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCollectionItem.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.cs index 5d65e40ed1c59..0ddd6683165d5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCollectionItem.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCollectionItemData.cs @@ -12,14 +12,14 @@ namespace Azure.ResourceManager.Automation.Models { /// Job collection item properties. - public partial class JobCollectionItem : ResourceData + public partial class AutomationJobCollectionItemData : ResourceData { - /// Initializes a new instance of JobCollectionItem. - public JobCollectionItem() + /// Initializes a new instance of AutomationJobCollectionItemData. + public AutomationJobCollectionItemData() { } - /// Initializes a new instance of JobCollectionItem. + /// Initializes a new instance of AutomationJobCollectionItemData. /// The id. /// The name. /// The resourceType. @@ -33,7 +33,7 @@ public JobCollectionItem() /// The last modified time of the job. /// The provisioning state of a resource. /// Specifies the runOn group name where the job was executed. - internal JobCollectionItem(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RunbookAssociationProperty runbook, Guid? jobId, DateTimeOffset? createdOn, JobStatus? status, DateTimeOffset? startOn, DateTimeOffset? endOn, DateTimeOffset? lastModifiedOn, string provisioningState, string runOn) : base(id, name, resourceType, systemData) + internal AutomationJobCollectionItemData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, RunbookAssociationProperty runbook, Guid? jobId, DateTimeOffset? createdOn, AutomationJobStatus? status, DateTimeOffset? startOn, DateTimeOffset? endOn, DateTimeOffset? lastModifiedOn, string provisioningState, string runOn) : base(id, name, resourceType, systemData) { Runbook = runbook; JobId = jobId; @@ -59,7 +59,7 @@ public string RunbookName /// The creation time of the job. public DateTimeOffset? CreatedOn { get; } /// The status of the job. - public JobStatus? Status { get; } + public AutomationJobStatus? Status { get; } /// The start time of the job. public DateTimeOffset? StartOn { get; } /// The end time of the job. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCreateOrUpdateContent.Serialization.cs similarity index 93% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCreateOrUpdateContent.Serialization.cs index 6e9a7b2102c02..78f0591ed1d19 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class JobCreateOrUpdateContent : IUtf8JsonSerializable + public partial class AutomationJobCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCreateOrUpdateContent.cs similarity index 85% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCreateOrUpdateContent.cs index 742e83091d5d0..9732f6a68ceed 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobCreateOrUpdateContent.cs @@ -11,10 +11,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create job operation. - public partial class JobCreateOrUpdateContent + public partial class AutomationJobCreateOrUpdateContent { - /// Initializes a new instance of JobCreateOrUpdateContent. - public JobCreateOrUpdateContent() + /// Initializes a new instance of AutomationJobCreateOrUpdateContent. + public AutomationJobCreateOrUpdateContent() { Parameters = new ChangeTrackingDictionary(); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobData.Serialization.cs similarity index 94% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobData.Serialization.cs index e9e78f5792979..9049424fdb183 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Automation { - public partial class JobData : IUtf8JsonSerializable + public partial class AutomationJobData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -129,7 +129,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static JobData DeserializeJobData(JsonElement element) + internal static AutomationJobData DeserializeAutomationJobData(JsonElement element) { ResourceIdentifier id = default; string name = default; @@ -140,7 +140,7 @@ internal static JobData DeserializeJobData(JsonElement element) Optional runOn = default; Optional jobId = default; Optional creationTime = default; - Optional status = default; + Optional status = default; Optional statusDetails = default; Optional startTime = default; Optional endTime = default; @@ -232,7 +232,7 @@ internal static JobData DeserializeJobData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - status = new JobStatus(property0.Value.GetString()); + status = new AutomationJobStatus(property0.Value.GetString()); continue; } if (property0.NameEquals("statusDetails")) @@ -314,7 +314,7 @@ internal static JobData DeserializeJobData(JsonElement element) continue; } } - return new JobData(id, name, type, systemData.Value, runbook.Value, startedBy.Value, runOn.Value, Optional.ToNullable(jobId), Optional.ToNullable(creationTime), Optional.ToNullable(status), statusDetails.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), exception.Value, Optional.ToNullable(lastModifiedTime), Optional.ToNullable(lastStatusModifiedTime), Optional.ToDictionary(parameters), Optional.ToNullable(provisioningState)); + return new AutomationJobData(id, name, type, systemData.Value, runbook.Value, startedBy.Value, runOn.Value, Optional.ToNullable(jobId), Optional.ToNullable(creationTime), Optional.ToNullable(status), statusDetails.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), exception.Value, Optional.ToNullable(lastModifiedTime), Optional.ToNullable(lastStatusModifiedTime), Optional.ToDictionary(parameters), Optional.ToNullable(provisioningState)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobListResultV2.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobListResultV2.Serialization.cs new file mode 100644 index 0000000000000..aaae89683dc74 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobListResultV2.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class AutomationJobListResultV2 + { + internal static AutomationJobListResultV2 DeserializeAutomationJobListResultV2(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AutomationJobCollectionItemData.DeserializeAutomationJobCollectionItemData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new AutomationJobListResultV2(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobListResultV2.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobListResultV2.cs similarity index 56% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobListResultV2.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobListResultV2.cs index d2a3648858587..de5675278703e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobListResultV2.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobListResultV2.cs @@ -11,25 +11,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list job operation. - internal partial class JobListResultV2 + internal partial class AutomationJobListResultV2 { - /// Initializes a new instance of JobListResultV2. - internal JobListResultV2() + /// Initializes a new instance of AutomationJobListResultV2. + internal AutomationJobListResultV2() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of JobListResultV2. + /// Initializes a new instance of AutomationJobListResultV2. /// List of jobs. /// The link to the next page. - internal JobListResultV2(IReadOnlyList value, string nextLink) + internal AutomationJobListResultV2(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// List of jobs. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The link to the next page. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleCreateOrUpdateContent.Serialization.cs similarity index 93% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleCreateOrUpdateContent.Serialization.cs index 00c4b5ebacf74..5cab3b1779d48 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class JobScheduleCreateOrUpdateContent : IUtf8JsonSerializable + public partial class AutomationJobScheduleCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleCreateOrUpdateContent.cs similarity index 85% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleCreateOrUpdateContent.cs index 76fe543fccc38..5533f6854c2ce 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleCreateOrUpdateContent.cs @@ -12,13 +12,13 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create job schedule operation. - public partial class JobScheduleCreateOrUpdateContent + public partial class AutomationJobScheduleCreateOrUpdateContent { - /// Initializes a new instance of JobScheduleCreateOrUpdateContent. + /// Initializes a new instance of AutomationJobScheduleCreateOrUpdateContent. /// Gets or sets the schedule. /// Gets or sets the runbook. /// or is null. - public JobScheduleCreateOrUpdateContent(ScheduleAssociationProperty schedule, RunbookAssociationProperty runbook) + public AutomationJobScheduleCreateOrUpdateContent(ScheduleAssociationProperty schedule, RunbookAssociationProperty runbook) { Argument.AssertNotNull(schedule, nameof(schedule)); Argument.AssertNotNull(runbook, nameof(runbook)); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleData.Serialization.cs similarity index 85% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleData.Serialization.cs index 8f9a767cf91bb..503c2e9569709 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleData.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Collections.Generic; using System.Text.Json; using Azure.Core; @@ -13,15 +14,15 @@ namespace Azure.ResourceManager.Automation { - public partial class JobScheduleData + public partial class AutomationJobScheduleData { - internal static JobScheduleData DeserializeJobScheduleData(JsonElement element) + internal static AutomationJobScheduleData DeserializeAutomationJobScheduleData(JsonElement element) { ResourceIdentifier id = default; string name = default; ResourceType type = default; Optional systemData = default; - Optional jobScheduleId = default; + Optional jobScheduleId = default; Optional schedule = default; Optional runbook = default; Optional runOn = default; @@ -64,7 +65,12 @@ internal static JobScheduleData DeserializeJobScheduleData(JsonElement element) { if (property0.NameEquals("jobScheduleId")) { - jobScheduleId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + jobScheduleId = property0.Value.GetGuid(); continue; } if (property0.NameEquals("schedule")) @@ -111,7 +117,7 @@ internal static JobScheduleData DeserializeJobScheduleData(JsonElement element) continue; } } - return new JobScheduleData(id, name, type, systemData.Value, jobScheduleId.Value, schedule.Value, runbook.Value, runOn.Value, Optional.ToDictionary(parameters)); + return new AutomationJobScheduleData(id, name, type, systemData.Value, Optional.ToNullable(jobScheduleId), schedule.Value, runbook.Value, runOn.Value, Optional.ToDictionary(parameters)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleListResult.Serialization.cs new file mode 100644 index 0000000000000..5e13c3eff5b19 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Automation; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class AutomationJobScheduleListResult + { + internal static AutomationJobScheduleListResult DeserializeAutomationJobScheduleListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AutomationJobScheduleData.DeserializeAutomationJobScheduleData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new AutomationJobScheduleListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleListResult.cs similarity index 59% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleListResult.cs index c5a314c3f9e1d..c23af96131d9a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobScheduleListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list job schedule operation. - internal partial class JobScheduleListResult + internal partial class AutomationJobScheduleListResult { - /// Initializes a new instance of JobScheduleListResult. - internal JobScheduleListResult() + /// Initializes a new instance of AutomationJobScheduleListResult. + internal AutomationJobScheduleListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of JobScheduleListResult. + /// Initializes a new instance of AutomationJobScheduleListResult. /// Gets or sets a list of job schedules. /// Gets or sets the next link. - internal JobScheduleListResult(IReadOnlyList value, string nextLink) + internal AutomationJobScheduleListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of job schedules. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStatus.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStatus.cs new file mode 100644 index 0000000000000..ee93e6cd7afed --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStatus.cs @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Gets or sets the status of the job. + public readonly partial struct AutomationJobStatus : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutomationJobStatus(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string NewValue = "New"; + private const string ActivatingValue = "Activating"; + private const string RunningValue = "Running"; + private const string CompletedValue = "Completed"; + private const string FailedValue = "Failed"; + private const string StoppedValue = "Stopped"; + private const string BlockedValue = "Blocked"; + private const string SuspendedValue = "Suspended"; + private const string DisconnectedValue = "Disconnected"; + private const string SuspendingValue = "Suspending"; + private const string StoppingValue = "Stopping"; + private const string ResumingValue = "Resuming"; + private const string RemovingValue = "Removing"; + + /// New. + public static AutomationJobStatus New { get; } = new AutomationJobStatus(NewValue); + /// Activating. + public static AutomationJobStatus Activating { get; } = new AutomationJobStatus(ActivatingValue); + /// Running. + public static AutomationJobStatus Running { get; } = new AutomationJobStatus(RunningValue); + /// Completed. + public static AutomationJobStatus Completed { get; } = new AutomationJobStatus(CompletedValue); + /// Failed. + public static AutomationJobStatus Failed { get; } = new AutomationJobStatus(FailedValue); + /// Stopped. + public static AutomationJobStatus Stopped { get; } = new AutomationJobStatus(StoppedValue); + /// Blocked. + public static AutomationJobStatus Blocked { get; } = new AutomationJobStatus(BlockedValue); + /// Suspended. + public static AutomationJobStatus Suspended { get; } = new AutomationJobStatus(SuspendedValue); + /// Disconnected. + public static AutomationJobStatus Disconnected { get; } = new AutomationJobStatus(DisconnectedValue); + /// Suspending. + public static AutomationJobStatus Suspending { get; } = new AutomationJobStatus(SuspendingValue); + /// Stopping. + public static AutomationJobStatus Stopping { get; } = new AutomationJobStatus(StoppingValue); + /// Resuming. + public static AutomationJobStatus Resuming { get; } = new AutomationJobStatus(ResumingValue); + /// Removing. + public static AutomationJobStatus Removing { get; } = new AutomationJobStatus(RemovingValue); + /// Determines if two values are the same. + public static bool operator ==(AutomationJobStatus left, AutomationJobStatus right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutomationJobStatus left, AutomationJobStatus right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AutomationJobStatus(string value) => new AutomationJobStatus(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutomationJobStatus other && Equals(other); + /// + public bool Equals(AutomationJobStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStream.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStream.Serialization.cs similarity index 81% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStream.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStream.Serialization.cs index 298b7a87dda15..874ff5853fe2a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStream.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStream.Serialization.cs @@ -12,14 +12,14 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class JobStream + public partial class AutomationJobStream { - internal static JobStream DeserializeJobStream(JsonElement element) + internal static AutomationJobStream DeserializeAutomationJobStream(JsonElement element) { - Optional id = default; + Optional id = default; Optional jobStreamId = default; Optional time = default; - Optional streamType = default; + Optional streamType = default; Optional streamText = default; Optional summary = default; Optional> value = default; @@ -27,7 +27,12 @@ internal static JobStream DeserializeJobStream(JsonElement element) { if (property.NameEquals("id")) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("properties")) @@ -61,7 +66,7 @@ internal static JobStream DeserializeJobStream(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - streamType = new JobStreamType(property0.Value.GetString()); + streamType = new AutomationJobStreamType(property0.Value.GetString()); continue; } if (property0.NameEquals("streamText")) @@ -93,7 +98,7 @@ internal static JobStream DeserializeJobStream(JsonElement element) continue; } } - return new JobStream(id.Value, jobStreamId.Value, Optional.ToNullable(time), Optional.ToNullable(streamType), streamText.Value, summary.Value, Optional.ToDictionary(value)); + return new AutomationJobStream(id.Value, jobStreamId.Value, Optional.ToNullable(time), Optional.ToNullable(streamType), streamText.Value, summary.Value, Optional.ToDictionary(value)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStream.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStream.cs similarity index 84% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStream.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStream.cs index ae11fe73bc459..91a89d96d55bf 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStream.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStream.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the job stream. - public partial class JobStream + public partial class AutomationJobStream { - /// Initializes a new instance of JobStream. - internal JobStream() + /// Initializes a new instance of AutomationJobStream. + internal AutomationJobStream() { Value = new ChangeTrackingDictionary(); } - /// Initializes a new instance of JobStream. + /// Initializes a new instance of AutomationJobStream. /// Gets or sets the id of the resource. /// Gets or sets the id of the job stream. /// Gets or sets the creation time of the job. @@ -28,7 +28,7 @@ internal JobStream() /// Gets or sets the stream text. /// Gets or sets the summary. /// Gets or sets the values of the job stream. - internal JobStream(string id, string jobStreamId, DateTimeOffset? time, JobStreamType? streamType, string streamText, string summary, IReadOnlyDictionary value) + internal AutomationJobStream(ResourceIdentifier id, string jobStreamId, DateTimeOffset? time, AutomationJobStreamType? streamType, string streamText, string summary, IReadOnlyDictionary value) { Id = id; JobStreamId = jobStreamId; @@ -40,13 +40,13 @@ internal JobStream(string id, string jobStreamId, DateTimeOffset? time, JobStrea } /// Gets or sets the id of the resource. - public string Id { get; } + public ResourceIdentifier Id { get; } /// Gets or sets the id of the job stream. public string JobStreamId { get; } /// Gets or sets the creation time of the job. public DateTimeOffset? Time { get; } /// Gets or sets the stream type. - public JobStreamType? StreamType { get; } + public AutomationJobStreamType? StreamType { get; } /// Gets or sets the stream text. public string StreamText { get; } /// Gets or sets the summary. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamListResult.Serialization.cs new file mode 100644 index 0000000000000..801c16040f39b --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamListResult.Serialization.cs @@ -0,0 +1,46 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class AutomationJobStreamListResult + { + internal static AutomationJobStreamListResult DeserializeAutomationJobStreamListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AutomationJobStream.DeserializeAutomationJobStream(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new AutomationJobStreamListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStreamListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamListResult.cs similarity index 58% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStreamListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamListResult.cs index ce1e2b36677a2..90de81c690866 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStreamListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamListResult.cs @@ -11,25 +11,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list job stream operation. - internal partial class JobStreamListResult + internal partial class AutomationJobStreamListResult { - /// Initializes a new instance of JobStreamListResult. - internal JobStreamListResult() + /// Initializes a new instance of AutomationJobStreamListResult. + internal AutomationJobStreamListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of JobStreamListResult. + /// Initializes a new instance of AutomationJobStreamListResult. /// A list of job streams. /// Gets or sets the next link. - internal JobStreamListResult(IReadOnlyList value, string nextLink) + internal AutomationJobStreamListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// A list of job streams. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamType.cs new file mode 100644 index 0000000000000..9cd571c343123 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationJobStreamType.cs @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Gets or sets the stream type. + public readonly partial struct AutomationJobStreamType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutomationJobStreamType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ProgressValue = "Progress"; + private const string OutputValue = "Output"; + private const string WarningValue = "Warning"; + private const string ErrorValue = "Error"; + private const string DebugValue = "Debug"; + private const string VerboseValue = "Verbose"; + private const string AnyValue = "Any"; + + /// Progress. + public static AutomationJobStreamType Progress { get; } = new AutomationJobStreamType(ProgressValue); + /// Output. + public static AutomationJobStreamType Output { get; } = new AutomationJobStreamType(OutputValue); + /// Warning. + public static AutomationJobStreamType Warning { get; } = new AutomationJobStreamType(WarningValue); + /// Error. + public static AutomationJobStreamType Error { get; } = new AutomationJobStreamType(ErrorValue); + /// Debug. + public static AutomationJobStreamType Debug { get; } = new AutomationJobStreamType(DebugValue); + /// Verbose. + public static AutomationJobStreamType Verbose { get; } = new AutomationJobStreamType(VerboseValue); + /// Any. + public static AutomationJobStreamType Any { get; } = new AutomationJobStreamType(AnyValue); + /// Determines if two values are the same. + public static bool operator ==(AutomationJobStreamType left, AutomationJobStreamType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutomationJobStreamType left, AutomationJobStreamType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AutomationJobStreamType(string value) => new AutomationJobStreamType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutomationJobStreamType other && Equals(other); + /// + public bool Equals(AutomationJobStreamType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Key.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKey.Serialization.cs similarity index 86% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Key.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKey.Serialization.cs index a72765d470fa9..c4bed59ddb414 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Key.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKey.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class Key + public partial class AutomationKey { - internal static Key DeserializeKey(JsonElement element) + internal static AutomationKey DeserializeAutomationKey(JsonElement element) { Optional keyName = default; Optional permissions = default; @@ -45,7 +45,7 @@ internal static Key DeserializeKey(JsonElement element) continue; } } - return new Key(Optional.ToNullable(keyName), Optional.ToNullable(permissions), value.Value); + return new AutomationKey(Optional.ToNullable(keyName), Optional.ToNullable(permissions), value.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Key.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKey.cs similarity index 74% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Key.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKey.cs index 71a05accb2e48..2715d63005ecf 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/Key.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKey.cs @@ -8,18 +8,18 @@ namespace Azure.ResourceManager.Automation.Models { /// Automation key which is used to register a DSC Node. - public partial class Key + public partial class AutomationKey { - /// Initializes a new instance of Key. - internal Key() + /// Initializes a new instance of AutomationKey. + internal AutomationKey() { } - /// Initializes a new instance of Key. + /// Initializes a new instance of AutomationKey. /// Automation key name. /// Automation key permissions. /// Value of the Automation Key used for registration. - internal Key(AutomationKeyName? keyName, AutomationKeyPermission? permissions, string value) + internal AutomationKey(AutomationKeyName? keyName, AutomationKeyPermission? permissions, string value) { KeyName = keyName; Permissions = permissions; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyListResult.Serialization.cs similarity index 66% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyListResult.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyListResult.Serialization.cs index ff3fbd58ef41e..f3261627883b8 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyListResult.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyListResult.Serialization.cs @@ -11,11 +11,11 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class KeyListResult + internal partial class AutomationKeyListResult { - internal static KeyListResult DeserializeKeyListResult(JsonElement element) + internal static AutomationKeyListResult DeserializeAutomationKeyListResult(JsonElement element) { - Optional> keys = default; + Optional> keys = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("keys")) @@ -25,16 +25,16 @@ internal static KeyListResult DeserializeKeyListResult(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(Key.DeserializeKey(item)); + array.Add(AutomationKey.DeserializeAutomationKey(item)); } keys = array; continue; } } - return new KeyListResult(Optional.ToList(keys)); + return new AutomationKeyListResult(Optional.ToList(keys)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyListResult.cs new file mode 100644 index 0000000000000..991c97385c150 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyListResult.cs @@ -0,0 +1,32 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The AutomationKeyListResult. + internal partial class AutomationKeyListResult + { + /// Initializes a new instance of AutomationKeyListResult. + internal AutomationKeyListResult() + { + Keys = new ChangeTrackingList(); + } + + /// Initializes a new instance of AutomationKeyListResult. + /// Lists the automation keys. + internal AutomationKeyListResult(IReadOnlyList keys) + { + Keys = keys; + } + + /// Lists the automation keys. + public IReadOnlyList Keys { get; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyVaultProperties.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyVaultProperties.Serialization.cs similarity index 87% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyVaultProperties.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyVaultProperties.Serialization.cs index ef688abd8ab85..73698890ffdb8 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyVaultProperties.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyVaultProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class KeyVaultProperties : IUtf8JsonSerializable + public partial class AutomationKeyVaultProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -34,7 +34,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static KeyVaultProperties DeserializeKeyVaultProperties(JsonElement element) + internal static AutomationKeyVaultProperties DeserializeAutomationKeyVaultProperties(JsonElement element) { Optional keyvaultUri = default; Optional keyName = default; @@ -62,7 +62,7 @@ internal static KeyVaultProperties DeserializeKeyVaultProperties(JsonElement ele continue; } } - return new KeyVaultProperties(keyvaultUri.Value, keyName.Value, keyVersion.Value); + return new AutomationKeyVaultProperties(keyvaultUri.Value, keyName.Value, keyVersion.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyVaultProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyVaultProperties.cs similarity index 74% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyVaultProperties.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyVaultProperties.cs index f7a6fe30939ed..eaf0a40db6bd8 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyVaultProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationKeyVaultProperties.cs @@ -10,18 +10,18 @@ namespace Azure.ResourceManager.Automation.Models { /// Settings concerning key vault encryption for a configuration store. - public partial class KeyVaultProperties + public partial class AutomationKeyVaultProperties { - /// Initializes a new instance of KeyVaultProperties. - public KeyVaultProperties() + /// Initializes a new instance of AutomationKeyVaultProperties. + public AutomationKeyVaultProperties() { } - /// Initializes a new instance of KeyVaultProperties. + /// Initializes a new instance of AutomationKeyVaultProperties. /// The URI of the key vault key used to encrypt data. /// The name of key used to encrypt data. /// The key version of the key used to encrypt data. - internal KeyVaultProperties(Uri keyvaultUri, string keyName, string keyVersion) + internal AutomationKeyVaultProperties(Uri keyvaultUri, string keyName, string keyVersion) { KeyvaultUri = keyvaultUri; KeyName = keyName; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinkedWorkspace.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationLinkedWorkspace.Serialization.cs similarity index 72% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinkedWorkspace.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationLinkedWorkspace.Serialization.cs index b93d3b2c5553f..c03b0ddc3dba5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinkedWorkspace.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationLinkedWorkspace.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class LinkedWorkspace + public partial class AutomationLinkedWorkspace { - internal static LinkedWorkspace DeserializeLinkedWorkspace(JsonElement element) + internal static AutomationLinkedWorkspace DeserializeAutomationLinkedWorkspace(JsonElement element) { Optional id = default; foreach (var property in element.EnumerateObject()) @@ -23,7 +23,7 @@ internal static LinkedWorkspace DeserializeLinkedWorkspace(JsonElement element) continue; } } - return new LinkedWorkspace(id.Value); + return new AutomationLinkedWorkspace(id.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinkedWorkspace.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationLinkedWorkspace.cs similarity index 60% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinkedWorkspace.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationLinkedWorkspace.cs index 1af6ff7e1bca4..6e32af4c9f473 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinkedWorkspace.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationLinkedWorkspace.cs @@ -8,16 +8,16 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the linked workspace. - public partial class LinkedWorkspace + public partial class AutomationLinkedWorkspace { - /// Initializes a new instance of LinkedWorkspace. - internal LinkedWorkspace() + /// Initializes a new instance of AutomationLinkedWorkspace. + internal AutomationLinkedWorkspace() { } - /// Initializes a new instance of LinkedWorkspace. + /// Initializes a new instance of AutomationLinkedWorkspace. /// Gets the id of the linked workspace. - internal LinkedWorkspace(string id) + internal AutomationLinkedWorkspace(string id) { Id = id; } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleData.Serialization.cs similarity index 92% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleData.Serialization.cs index 91a9dd946c5c7..1e265cb538173 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleData.Serialization.cs @@ -15,7 +15,7 @@ namespace Azure.ResourceManager.Automation { - public partial class ModuleData : IUtf8JsonSerializable + public partial class AutomationModuleData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -99,7 +99,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ModuleData DeserializeModuleData(JsonElement element) + internal static AutomationModuleData DeserializeAutomationModuleData(JsonElement element) { Optional etag = default; Optional> tags = default; @@ -113,8 +113,8 @@ internal static ModuleData DeserializeModuleData(JsonElement element) Optional sizeInBytes = default; Optional activityCount = default; Optional provisioningState = default; - Optional contentLink = default; - Optional error = default; + Optional contentLink = default; + Optional error = default; Optional creationTime = default; Optional lastModifiedTime = default; Optional description = default; @@ -237,7 +237,7 @@ internal static ModuleData DeserializeModuleData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - contentLink = ContentLink.DeserializeContentLink(property0.Value); + contentLink = AutomationContentLink.DeserializeAutomationContentLink(property0.Value); continue; } if (property0.NameEquals("error")) @@ -247,7 +247,7 @@ internal static ModuleData DeserializeModuleData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - error = ModuleErrorInfo.DeserializeModuleErrorInfo(property0.Value); + error = AutomationModuleErrorInfo.DeserializeAutomationModuleErrorInfo(property0.Value); continue; } if (property0.NameEquals("creationTime")) @@ -289,7 +289,7 @@ internal static ModuleData DeserializeModuleData(JsonElement element) continue; } } - return new ModuleData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(etag), Optional.ToNullable(isGlobal), version.Value, Optional.ToNullable(sizeInBytes), Optional.ToNullable(activityCount), Optional.ToNullable(provisioningState), contentLink.Value, error.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value, Optional.ToNullable(isComposite)); + return new AutomationModuleData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(etag), Optional.ToNullable(isGlobal), version.Value, Optional.ToNullable(sizeInBytes), Optional.ToNullable(activityCount), Optional.ToNullable(provisioningState), contentLink.Value, error.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value, Optional.ToNullable(isComposite)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ErrorResponse.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleErrorInfo.Serialization.cs similarity index 83% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ErrorResponse.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleErrorInfo.Serialization.cs index e3a2ed90d4ca9..ce8db39c8b3ec 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ErrorResponse.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleErrorInfo.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ErrorResponse : IUtf8JsonSerializable + public partial class AutomationModuleErrorInfo : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ErrorResponse DeserializeErrorResponse(JsonElement element) + internal static AutomationModuleErrorInfo DeserializeAutomationModuleErrorInfo(JsonElement element) { Optional code = default; Optional message = default; @@ -45,7 +45,7 @@ internal static ErrorResponse DeserializeErrorResponse(JsonElement element) continue; } } - return new ErrorResponse(code.Value, message.Value); + return new AutomationModuleErrorInfo(code.Value, message.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleErrorInfo.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleErrorInfo.cs similarity index 67% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleErrorInfo.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleErrorInfo.cs index 2e3f0bac33aa2..cea325d74b8b2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleErrorInfo.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleErrorInfo.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the module error info type. - public partial class ModuleErrorInfo + public partial class AutomationModuleErrorInfo { - /// Initializes a new instance of ModuleErrorInfo. - public ModuleErrorInfo() + /// Initializes a new instance of AutomationModuleErrorInfo. + public AutomationModuleErrorInfo() { } - /// Initializes a new instance of ModuleErrorInfo. + /// Initializes a new instance of AutomationModuleErrorInfo. /// Gets or sets the error code. /// Gets or sets the error message. - internal ModuleErrorInfo(string code, string message) + internal AutomationModuleErrorInfo(string code, string message) { Code = code; Message = message; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeField.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleField.Serialization.cs similarity index 78% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeField.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleField.Serialization.cs index 7909475dc2746..ba59fc30379cc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeField.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleField.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class TypeField + public partial class AutomationModuleField { - internal static TypeField DeserializeTypeField(JsonElement element) + internal static AutomationModuleField DeserializeAutomationModuleField(JsonElement element) { Optional name = default; Optional type = default; @@ -29,7 +29,7 @@ internal static TypeField DeserializeTypeField(JsonElement element) continue; } } - return new TypeField(name.Value, type.Value); + return new AutomationModuleField(name.Value, type.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeField.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleField.cs similarity index 54% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeField.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleField.cs index e942f519b7350..4e9cae59eb9e8 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeField.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleField.cs @@ -8,25 +8,25 @@ namespace Azure.ResourceManager.Automation.Models { /// Information about a field of a type. - public partial class TypeField + public partial class AutomationModuleField { - /// Initializes a new instance of TypeField. - internal TypeField() + /// Initializes a new instance of AutomationModuleField. + internal AutomationModuleField() { } - /// Initializes a new instance of TypeField. + /// Initializes a new instance of AutomationModuleField. /// Gets or sets the name of the field. - /// Gets or sets the type of the field. - internal TypeField(string name, string typeFieldType) + /// Gets or sets the type of the field. + internal AutomationModuleField(string name, string fieldType) { Name = name; - TypeFieldType = typeFieldType; + FieldType = fieldType; } /// Gets or sets the name of the field. public string Name { get; } /// Gets or sets the type of the field. - public string TypeFieldType { get; } + public string FieldType { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/StatisticsListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleFieldListResult.Serialization.cs similarity index 62% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/StatisticsListResult.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleFieldListResult.Serialization.cs index cb9060789b99b..a39aadba6cdcf 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/StatisticsListResult.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleFieldListResult.Serialization.cs @@ -11,11 +11,11 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class StatisticsListResult + internal partial class AutomationModuleFieldListResult { - internal static StatisticsListResult DeserializeStatisticsListResult(JsonElement element) + internal static AutomationModuleFieldListResult DeserializeAutomationModuleFieldListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("value")) @@ -25,16 +25,16 @@ internal static StatisticsListResult DeserializeStatisticsListResult(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(Statistics.DeserializeStatistics(item)); + array.Add(AutomationModuleField.DeserializeAutomationModuleField(item)); } value = array; continue; } } - return new StatisticsListResult(Optional.ToList(value)); + return new AutomationModuleFieldListResult(Optional.ToList(value)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeFieldListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleFieldListResult.cs similarity index 50% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeFieldListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleFieldListResult.cs index f38aa7d3020dd..b19ea62f415a2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TypeFieldListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleFieldListResult.cs @@ -11,22 +11,22 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list fields operation. - internal partial class TypeFieldListResult + internal partial class AutomationModuleFieldListResult { - /// Initializes a new instance of TypeFieldListResult. - internal TypeFieldListResult() + /// Initializes a new instance of AutomationModuleFieldListResult. + internal AutomationModuleFieldListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of TypeFieldListResult. + /// Initializes a new instance of AutomationModuleFieldListResult. /// Gets or sets a list of fields. - internal TypeFieldListResult(IReadOnlyList value) + internal AutomationModuleFieldListResult(IReadOnlyList value) { Value = value; } /// Gets or sets a list of fields. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.Serialization.cs similarity index 69% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialListResult.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.Serialization.cs index e8546652d392e..5d88a9723bd37 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CredentialListResult.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.Serialization.cs @@ -12,11 +12,11 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class CredentialListResult + internal partial class AutomationModuleListResult { - internal static CredentialListResult DeserializeCredentialListResult(JsonElement element) + internal static AutomationModuleListResult DeserializeAutomationModuleListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static CredentialListResult DeserializeCredentialListResult(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(CredentialData.DeserializeCredentialData(item)); + array.Add(AutomationModuleData.DeserializeAutomationModuleData(item)); } value = array; continue; @@ -41,7 +41,7 @@ internal static CredentialListResult DeserializeCredentialListResult(JsonElement continue; } } - return new CredentialListResult(Optional.ToList(value), nextLink.Value); + return new AutomationModuleListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.cs similarity index 60% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.cs index 2d0c061600497..c7f61a092bd24 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationModuleListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list module operation. - internal partial class ModuleListResult + internal partial class AutomationModuleListResult { - /// Initializes a new instance of ModuleListResult. - internal ModuleListResult() + /// Initializes a new instance of AutomationModuleListResult. + internal AutomationModuleListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of ModuleListResult. + /// Initializes a new instance of AutomationModuleListResult. /// Gets or sets a list of modules. /// Gets or sets the next link. - internal ModuleListResult(IReadOnlyList value, string nextLink) + internal AutomationModuleListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of modules. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleErrorInfo.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationResponseError.Serialization.cs similarity index 83% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleErrorInfo.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationResponseError.Serialization.cs index 09d8b204bb942..645d06dbc6818 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleErrorInfo.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationResponseError.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ModuleErrorInfo : IUtf8JsonSerializable + public partial class AutomationResponseError : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -28,7 +28,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ModuleErrorInfo DeserializeModuleErrorInfo(JsonElement element) + internal static AutomationResponseError DeserializeAutomationResponseError(JsonElement element) { Optional code = default; Optional message = default; @@ -45,7 +45,7 @@ internal static ModuleErrorInfo DeserializeModuleErrorInfo(JsonElement element) continue; } } - return new ModuleErrorInfo(code.Value, message.Value); + return new AutomationResponseError(code.Value, message.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ErrorResponse.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationResponseError.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ErrorResponse.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationResponseError.cs index 99e106f379bf0..ded494bd14536 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ErrorResponse.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationResponseError.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.Automation.Models { /// Error response of an operation failure. - public partial class ErrorResponse + public partial class AutomationResponseError { - /// Initializes a new instance of ErrorResponse. - public ErrorResponse() + /// Initializes a new instance of AutomationResponseError. + public AutomationResponseError() { } - /// Initializes a new instance of ErrorResponse. + /// Initializes a new instance of AutomationResponseError. /// Error code. /// Error message indicating why the operation failed. - internal ErrorResponse(string code, string message) + internal AutomationResponseError(string code, string message) { Code = code; Message = message; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.Serialization.cs similarity index 87% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.Serialization.cs index 687d7d915c59e..4e4ae2dd89278 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class RunbookCreateOrUpdateContent : IUtf8JsonSerializable + public partial class AutomationRunbookCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -38,15 +38,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("properties"); writer.WriteStartObject(); - if (Optional.IsDefined(LogVerbose)) + if (Optional.IsDefined(IsLogVerboseEnabled)) { writer.WritePropertyName("logVerbose"); - writer.WriteBooleanValue(LogVerbose.Value); + writer.WriteBooleanValue(IsLogVerboseEnabled.Value); } - if (Optional.IsDefined(LogProgress)) + if (Optional.IsDefined(IsLogProgressEnabled)) { writer.WritePropertyName("logProgress"); - writer.WriteBooleanValue(LogProgress.Value); + writer.WriteBooleanValue(IsLogProgressEnabled.Value); } writer.WritePropertyName("runbookType"); writer.WriteStringValue(RunbookType.ToString()); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.cs similarity index 74% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.cs index ea591c69ca875..f8012b028697e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookCreateOrUpdateContent.cs @@ -11,11 +11,11 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create or update runbook operation. - public partial class RunbookCreateOrUpdateContent + public partial class AutomationRunbookCreateOrUpdateContent { - /// Initializes a new instance of RunbookCreateOrUpdateContent. + /// Initializes a new instance of AutomationRunbookCreateOrUpdateContent. /// Gets or sets the type of the runbook. - public RunbookCreateOrUpdateContent(RunbookTypeEnum runbookType) + public AutomationRunbookCreateOrUpdateContent(AutomationRunbookType runbookType) { Tags = new ChangeTrackingDictionary(); RunbookType = runbookType; @@ -28,15 +28,15 @@ public RunbookCreateOrUpdateContent(RunbookTypeEnum runbookType) /// Gets or sets the tags attached to the resource. public IDictionary Tags { get; } /// Gets or sets verbose log option. - public bool? LogVerbose { get; set; } + public bool? IsLogVerboseEnabled { get; set; } /// Gets or sets progress log option. - public bool? LogProgress { get; set; } + public bool? IsLogProgressEnabled { get; set; } /// Gets or sets the type of the runbook. - public RunbookTypeEnum RunbookType { get; } + public AutomationRunbookType RunbookType { get; } /// Gets or sets the draft runbook properties. - public RunbookDraft Draft { get; set; } + public AutomationRunbookDraft Draft { get; set; } /// Gets or sets the published runbook content link. - public ContentLink PublishContentLink { get; set; } + public AutomationContentLink PublishContentLink { get; set; } /// Gets or sets the description of the runbook. public string Description { get; set; } /// Gets or sets the activity-level tracing options of the runbook. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookData.Serialization.cs similarity index 89% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookData.Serialization.cs index 380bd3dbffb1b..257b8703270ae 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookData.Serialization.cs @@ -15,7 +15,7 @@ namespace Azure.ResourceManager.Automation { - public partial class RunbookData : IUtf8JsonSerializable + public partial class AutomationRunbookData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -55,15 +55,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("state"); writer.WriteStringValue(State.Value.ToString()); } - if (Optional.IsDefined(LogVerbose)) + if (Optional.IsDefined(IsLogVerboseEnabled)) { writer.WritePropertyName("logVerbose"); - writer.WriteBooleanValue(LogVerbose.Value); + writer.WriteBooleanValue(IsLogVerboseEnabled.Value); } - if (Optional.IsDefined(LogProgress)) + if (Optional.IsDefined(IsLogProgressEnabled)) { writer.WritePropertyName("logProgress"); - writer.WriteBooleanValue(LogProgress.Value); + writer.WriteBooleanValue(IsLogProgressEnabled.Value); } if (Optional.IsDefined(LogActivityTrace)) { @@ -130,7 +130,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static RunbookData DeserializeRunbookData(JsonElement element) + internal static AutomationRunbookData DeserializeAutomationRunbookData(JsonElement element) { Optional etag = default; Optional> tags = default; @@ -139,16 +139,16 @@ internal static RunbookData DeserializeRunbookData(JsonElement element) string name = default; ResourceType type = default; Optional systemData = default; - Optional runbookType = default; - Optional publishContentLink = default; + Optional runbookType = default; + Optional publishContentLink = default; Optional state = default; Optional logVerbose = default; Optional logProgress = default; Optional logActivityTrace = default; Optional jobCount = default; - Optional> parameters = default; + Optional> parameters = default; Optional> outputTypes = default; - Optional draft = default; + Optional draft = default; Optional provisioningState = default; Optional lastModifiedBy = default; Optional creationTime = default; @@ -227,7 +227,7 @@ internal static RunbookData DeserializeRunbookData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - runbookType = new RunbookTypeEnum(property0.Value.GetString()); + runbookType = new AutomationRunbookType(property0.Value.GetString()); continue; } if (property0.NameEquals("publishContentLink")) @@ -237,7 +237,7 @@ internal static RunbookData DeserializeRunbookData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - publishContentLink = ContentLink.DeserializeContentLink(property0.Value); + publishContentLink = AutomationContentLink.DeserializeAutomationContentLink(property0.Value); continue; } if (property0.NameEquals("state")) @@ -297,10 +297,10 @@ internal static RunbookData DeserializeRunbookData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property1 in property0.Value.EnumerateObject()) { - dictionary.Add(property1.Name, RunbookParameter.DeserializeRunbookParameter(property1.Value)); + dictionary.Add(property1.Name, RunbookParameterDefinition.DeserializeRunbookParameterDefinition(property1.Value)); } parameters = dictionary; continue; @@ -327,7 +327,7 @@ internal static RunbookData DeserializeRunbookData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - draft = RunbookDraft.DeserializeRunbookDraft(property0.Value); + draft = AutomationRunbookDraft.DeserializeAutomationRunbookDraft(property0.Value); continue; } if (property0.NameEquals("provisioningState")) @@ -374,7 +374,7 @@ internal static RunbookData DeserializeRunbookData(JsonElement element) continue; } } - return new RunbookData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(etag), Optional.ToNullable(runbookType), publishContentLink.Value, Optional.ToNullable(state), Optional.ToNullable(logVerbose), Optional.ToNullable(logProgress), Optional.ToNullable(logActivityTrace), Optional.ToNullable(jobCount), Optional.ToDictionary(parameters), Optional.ToList(outputTypes), draft.Value, Optional.ToNullable(provisioningState), lastModifiedBy.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); + return new AutomationRunbookData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(etag), Optional.ToNullable(runbookType), publishContentLink.Value, Optional.ToNullable(state), Optional.ToNullable(logVerbose), Optional.ToNullable(logProgress), Optional.ToNullable(logActivityTrace), Optional.ToNullable(jobCount), Optional.ToDictionary(parameters), Optional.ToList(outputTypes), draft.Value, Optional.ToNullable(provisioningState), lastModifiedBy.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraft.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookDraft.Serialization.cs similarity index 83% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraft.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookDraft.Serialization.cs index be289833e1e7d..620aea5b83379 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraft.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookDraft.Serialization.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class RunbookDraft : IUtf8JsonSerializable + public partial class AutomationRunbookDraft : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { writer.WriteStartObject(); - if (Optional.IsDefined(InEdit)) + if (Optional.IsDefined(IsInEditMode)) { writer.WritePropertyName("inEdit"); - writer.WriteBooleanValue(InEdit.Value); + writer.WriteBooleanValue(IsInEditMode.Value); } if (Optional.IsDefined(DraftContentLink)) { @@ -61,13 +61,13 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static RunbookDraft DeserializeRunbookDraft(JsonElement element) + internal static AutomationRunbookDraft DeserializeAutomationRunbookDraft(JsonElement element) { Optional inEdit = default; - Optional draftContentLink = default; + Optional draftContentLink = default; Optional creationTime = default; Optional lastModifiedTime = default; - Optional> parameters = default; + Optional> parameters = default; Optional> outputTypes = default; foreach (var property in element.EnumerateObject()) { @@ -88,7 +88,7 @@ internal static RunbookDraft DeserializeRunbookDraft(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - draftContentLink = ContentLink.DeserializeContentLink(property.Value); + draftContentLink = AutomationContentLink.DeserializeAutomationContentLink(property.Value); continue; } if (property.NameEquals("creationTime")) @@ -118,10 +118,10 @@ internal static RunbookDraft DeserializeRunbookDraft(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property0 in property.Value.EnumerateObject()) { - dictionary.Add(property0.Name, RunbookParameter.DeserializeRunbookParameter(property0.Value)); + dictionary.Add(property0.Name, RunbookParameterDefinition.DeserializeRunbookParameterDefinition(property0.Value)); } parameters = dictionary; continue; @@ -142,7 +142,7 @@ internal static RunbookDraft DeserializeRunbookDraft(JsonElement element) continue; } } - return new RunbookDraft(Optional.ToNullable(inEdit), draftContentLink.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), Optional.ToDictionary(parameters), Optional.ToList(outputTypes)); + return new AutomationRunbookDraft(Optional.ToNullable(inEdit), draftContentLink.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), Optional.ToDictionary(parameters), Optional.ToList(outputTypes)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraft.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookDraft.cs similarity index 65% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraft.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookDraft.cs index a08621af4954f..0aea8744bf470 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraft.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookDraft.cs @@ -11,26 +11,26 @@ namespace Azure.ResourceManager.Automation.Models { - /// The RunbookDraft. - public partial class RunbookDraft + /// The AutomationRunbookDraft. + public partial class AutomationRunbookDraft { - /// Initializes a new instance of RunbookDraft. - public RunbookDraft() + /// Initializes a new instance of AutomationRunbookDraft. + public AutomationRunbookDraft() { - Parameters = new ChangeTrackingDictionary(); + Parameters = new ChangeTrackingDictionary(); OutputTypes = new ChangeTrackingList(); } - /// Initializes a new instance of RunbookDraft. - /// Gets or sets whether runbook is in edit mode. + /// Initializes a new instance of AutomationRunbookDraft. + /// Gets or sets whether runbook is in edit mode. /// Gets or sets the draft runbook content link. /// Gets or sets the creation time of the runbook draft. /// Gets or sets the last modified time of the runbook draft. /// Gets or sets the runbook draft parameters. /// Gets or sets the runbook output types. - internal RunbookDraft(bool? inEdit, ContentLink draftContentLink, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, IDictionary parameters, IList outputTypes) + internal AutomationRunbookDraft(bool? isInEditMode, AutomationContentLink draftContentLink, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, IDictionary parameters, IList outputTypes) { - InEdit = inEdit; + IsInEditMode = isInEditMode; DraftContentLink = draftContentLink; CreatedOn = createdOn; LastModifiedOn = lastModifiedOn; @@ -39,15 +39,15 @@ internal RunbookDraft(bool? inEdit, ContentLink draftContentLink, DateTimeOffset } /// Gets or sets whether runbook is in edit mode. - public bool? InEdit { get; set; } + public bool? IsInEditMode { get; set; } /// Gets or sets the draft runbook content link. - public ContentLink DraftContentLink { get; set; } + public AutomationContentLink DraftContentLink { get; set; } /// Gets or sets the creation time of the runbook draft. public DateTimeOffset? CreatedOn { get; set; } /// Gets or sets the last modified time of the runbook draft. public DateTimeOffset? LastModifiedOn { get; set; } /// Gets or sets the runbook draft parameters. - public IDictionary Parameters { get; } + public IDictionary Parameters { get; } /// Gets or sets the runbook output types. public IList OutputTypes { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookListResult.Serialization.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateListResult.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookListResult.Serialization.cs index 6615b6e032126..be42df44aace0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateListResult.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookListResult.Serialization.cs @@ -12,11 +12,11 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class CertificateListResult + internal partial class AutomationRunbookListResult { - internal static CertificateListResult DeserializeCertificateListResult(JsonElement element) + internal static AutomationRunbookListResult DeserializeAutomationRunbookListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static CertificateListResult DeserializeCertificateListResult(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(CertificateData.DeserializeCertificateData(item)); + array.Add(AutomationRunbookData.DeserializeAutomationRunbookData(item)); } value = array; continue; @@ -41,7 +41,7 @@ internal static CertificateListResult DeserializeCertificateListResult(JsonEleme continue; } } - return new CertificateListResult(Optional.ToList(value), nextLink.Value); + return new AutomationRunbookListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookListResult.cs similarity index 60% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookListResult.cs index 7383858dff87d..8de623cf79db1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list runbook operation. - internal partial class RunbookListResult + internal partial class AutomationRunbookListResult { - /// Initializes a new instance of RunbookListResult. - internal RunbookListResult() + /// Initializes a new instance of AutomationRunbookListResult. + internal AutomationRunbookListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of RunbookListResult. + /// Initializes a new instance of AutomationRunbookListResult. /// Gets or sets a list of runbooks. /// Gets or sets the next link. - internal RunbookListResult(IReadOnlyList value, string nextLink) + internal AutomationRunbookListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of runbooks. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookPatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookPatch.Serialization.cs similarity index 85% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookPatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookPatch.Serialization.cs index 1aadf295fc3f2..6d5bed7b2d619 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookPatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class RunbookPatch : IUtf8JsonSerializable + public partial class AutomationRunbookPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -43,15 +43,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("description"); writer.WriteStringValue(Description); } - if (Optional.IsDefined(LogVerbose)) + if (Optional.IsDefined(IsLogVerboseEnabled)) { writer.WritePropertyName("logVerbose"); - writer.WriteBooleanValue(LogVerbose.Value); + writer.WriteBooleanValue(IsLogVerboseEnabled.Value); } - if (Optional.IsDefined(LogProgress)) + if (Optional.IsDefined(IsLogProgressEnabled)) { writer.WritePropertyName("logProgress"); - writer.WriteBooleanValue(LogProgress.Value); + writer.WriteBooleanValue(IsLogProgressEnabled.Value); } if (Optional.IsDefined(LogActivityTrace)) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookPatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookPatch.cs similarity index 80% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookPatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookPatch.cs index 9a9a3b36ea01a..9ceb493997f65 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookPatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookPatch.cs @@ -11,10 +11,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the update runbook operation. - public partial class RunbookPatch + public partial class AutomationRunbookPatch { - /// Initializes a new instance of RunbookPatch. - public RunbookPatch() + /// Initializes a new instance of AutomationRunbookPatch. + public AutomationRunbookPatch() { Tags = new ChangeTrackingDictionary(); } @@ -28,9 +28,9 @@ public RunbookPatch() /// Gets or sets the description of the runbook. public string Description { get; set; } /// Gets or sets verbose log option. - public bool? LogVerbose { get; set; } + public bool? IsLogVerboseEnabled { get; set; } /// Gets or sets progress log option. - public bool? LogProgress { get; set; } + public bool? IsLogProgressEnabled { get; set; } /// Gets or sets the activity-level tracing options of the runbook. public int? LogActivityTrace { get; set; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookType.cs new file mode 100644 index 0000000000000..3fd7d4bd640e2 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationRunbookType.cs @@ -0,0 +1,69 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Gets or sets the type of the runbook. + public readonly partial struct AutomationRunbookType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutomationRunbookType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ScriptValue = "Script"; + private const string GraphValue = "Graph"; + private const string PowerShellWorkflowValue = "PowerShellWorkflow"; + private const string PowerShellValue = "PowerShell"; + private const string GraphPowerShellWorkflowValue = "GraphPowerShellWorkflow"; + private const string GraphPowerShellValue = "GraphPowerShell"; + private const string Python2Value = "Python2"; + private const string Python3Value = "Python3"; + + /// Script. + public static AutomationRunbookType Script { get; } = new AutomationRunbookType(ScriptValue); + /// Graph. + public static AutomationRunbookType Graph { get; } = new AutomationRunbookType(GraphValue); + /// PowerShellWorkflow. + public static AutomationRunbookType PowerShellWorkflow { get; } = new AutomationRunbookType(PowerShellWorkflowValue); + /// PowerShell. + public static AutomationRunbookType PowerShell { get; } = new AutomationRunbookType(PowerShellValue); + /// GraphPowerShellWorkflow. + public static AutomationRunbookType GraphPowerShellWorkflow { get; } = new AutomationRunbookType(GraphPowerShellWorkflowValue); + /// GraphPowerShell. + public static AutomationRunbookType GraphPowerShell { get; } = new AutomationRunbookType(GraphPowerShellValue); + /// Python2. + public static AutomationRunbookType Python2 { get; } = new AutomationRunbookType(Python2Value); + /// Python3. + public static AutomationRunbookType Python3 { get; } = new AutomationRunbookType(Python3Value); + /// Determines if two values are the same. + public static bool operator ==(AutomationRunbookType left, AutomationRunbookType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutomationRunbookType left, AutomationRunbookType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AutomationRunbookType(string value) => new AutomationRunbookType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutomationRunbookType other && Equals(other); + /// + public bool Equals(AutomationRunbookType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleCreateOrUpdateContent.Serialization.cs similarity index 89% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleCreateOrUpdateContent.Serialization.cs index 738d677fe49a3..a969d161d72e2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class ScheduleCreateOrUpdateContent : IUtf8JsonSerializable + public partial class AutomationScheduleCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -26,12 +26,12 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("startTime"); writer.WriteStringValue(StartOn, "O"); - if (Optional.IsDefined(ExpiryOn)) + if (Optional.IsDefined(ExpireOn)) { - if (ExpiryOn != null) + if (ExpireOn != null) { writer.WritePropertyName("expiryTime"); - writer.WriteStringValue(ExpiryOn.Value, "O"); + writer.WriteStringValue(ExpireOn.Value, "O"); } else { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleCreateOrUpdateContent.cs similarity index 85% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleCreateOrUpdateContent.cs index a2f6defd70f7d..11275292f29a8 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleCreateOrUpdateContent.cs @@ -11,14 +11,14 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create or update schedule operation. - public partial class ScheduleCreateOrUpdateContent + public partial class AutomationScheduleCreateOrUpdateContent { - /// Initializes a new instance of ScheduleCreateOrUpdateContent. + /// Initializes a new instance of AutomationScheduleCreateOrUpdateContent. /// Gets or sets the name of the Schedule. /// Gets or sets the start time of the schedule. /// Gets or sets the frequency of the schedule. /// is null. - public ScheduleCreateOrUpdateContent(string name, DateTimeOffset startOn, ScheduleFrequency frequency) + public AutomationScheduleCreateOrUpdateContent(string name, DateTimeOffset startOn, AutomationScheduleFrequency frequency) { Argument.AssertNotNull(name, nameof(name)); @@ -34,7 +34,7 @@ public ScheduleCreateOrUpdateContent(string name, DateTimeOffset startOn, Schedu /// Gets or sets the start time of the schedule. public DateTimeOffset StartOn { get; } /// Gets or sets the end time of the schedule. - public DateTimeOffset? ExpiryOn { get; set; } + public DateTimeOffset? ExpireOn { get; set; } /// /// Gets or sets the interval of the schedule. /// @@ -67,10 +67,10 @@ public ScheduleCreateOrUpdateContent(string name, DateTimeOffset startOn, Schedu /// public BinaryData Interval { get; set; } /// Gets or sets the frequency of the schedule. - public ScheduleFrequency Frequency { get; } + public AutomationScheduleFrequency Frequency { get; } /// Gets or sets the time zone of the schedule. public string TimeZone { get; set; } /// Gets or sets the AdvancedSchedule. - public AdvancedSchedule AdvancedSchedule { get; set; } + public AutomationAdvancedSchedule AdvancedSchedule { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleData.Serialization.cs similarity index 87% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleData.Serialization.cs index 31a0ed88e562a..eacf3d914b6d2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleData.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Automation { - public partial class ScheduleData : IUtf8JsonSerializable + public partial class AutomationScheduleData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -25,44 +25,44 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("startTime"); writer.WriteStringValue(StartOn.Value, "O"); } - if (Optional.IsDefined(ExpiryOn)) + if (Optional.IsDefined(ExpireOn)) { - if (ExpiryOn != null) + if (ExpireOn != null) { writer.WritePropertyName("expiryTime"); - writer.WriteStringValue(ExpiryOn.Value, "O"); + writer.WriteStringValue(ExpireOn.Value, "O"); } else { writer.WriteNull("expiryTime"); } } - if (Optional.IsDefined(ExpiryTimeOffsetMinutes)) + if (Optional.IsDefined(ExpireInMinutes)) { writer.WritePropertyName("expiryTimeOffsetMinutes"); - writer.WriteNumberValue(ExpiryTimeOffsetMinutes.Value); + writer.WriteNumberValue(ExpireInMinutes.Value); } if (Optional.IsDefined(IsEnabled)) { writer.WritePropertyName("isEnabled"); writer.WriteBooleanValue(IsEnabled.Value); } - if (Optional.IsDefined(NextRun)) + if (Optional.IsDefined(NextRunOn)) { - if (NextRun != null) + if (NextRunOn != null) { writer.WritePropertyName("nextRun"); - writer.WriteStringValue(NextRun.Value, "O"); + writer.WriteStringValue(NextRunOn.Value, "O"); } else { writer.WriteNull("nextRun"); } } - if (Optional.IsDefined(NextRunOffsetMinutes)) + if (Optional.IsDefined(NextRunInMinutes)) { writer.WritePropertyName("nextRunOffsetMinutes"); - writer.WriteNumberValue(NextRunOffsetMinutes.Value); + writer.WriteNumberValue(NextRunInMinutes.Value); } if (Optional.IsDefined(Interval)) { @@ -107,7 +107,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static ScheduleData DeserializeScheduleData(JsonElement element) + internal static AutomationScheduleData DeserializeAutomationScheduleData(JsonElement element) { ResourceIdentifier id = default; string name = default; @@ -121,9 +121,9 @@ internal static ScheduleData DeserializeScheduleData(JsonElement element) Optional nextRun = default; Optional nextRunOffsetMinutes = default; Optional interval = default; - Optional frequency = default; + Optional frequency = default; Optional timeZone = default; - Optional advancedSchedule = default; + Optional advancedSchedule = default; Optional creationTime = default; Optional lastModifiedTime = default; Optional description = default; @@ -250,7 +250,7 @@ internal static ScheduleData DeserializeScheduleData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - frequency = new ScheduleFrequency(property0.Value.GetString()); + frequency = new AutomationScheduleFrequency(property0.Value.GetString()); continue; } if (property0.NameEquals("timeZone")) @@ -265,7 +265,7 @@ internal static ScheduleData DeserializeScheduleData(JsonElement element) property0.ThrowNonNullablePropertyIsNull(); continue; } - advancedSchedule = AdvancedSchedule.DeserializeAdvancedSchedule(property0.Value); + advancedSchedule = AutomationAdvancedSchedule.DeserializeAutomationAdvancedSchedule(property0.Value); continue; } if (property0.NameEquals("creationTime")) @@ -297,7 +297,7 @@ internal static ScheduleData DeserializeScheduleData(JsonElement element) continue; } } - return new ScheduleData(id, name, type, systemData.Value, Optional.ToNullable(startTime), Optional.ToNullable(startTimeOffsetMinutes), Optional.ToNullable(expiryTime), Optional.ToNullable(expiryTimeOffsetMinutes), Optional.ToNullable(isEnabled), Optional.ToNullable(nextRun), Optional.ToNullable(nextRunOffsetMinutes), interval.Value, Optional.ToNullable(frequency), timeZone.Value, advancedSchedule.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); + return new AutomationScheduleData(id, name, type, systemData.Value, Optional.ToNullable(startTime), Optional.ToNullable(startTimeOffsetMinutes), Optional.ToNullable(expiryTime), Optional.ToNullable(expiryTimeOffsetMinutes), Optional.ToNullable(isEnabled), Optional.ToNullable(nextRun), Optional.ToNullable(nextRunOffsetMinutes), interval.Value, Optional.ToNullable(frequency), timeZone.Value, advancedSchedule.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleFrequency.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleFrequency.cs new file mode 100644 index 0000000000000..28a3989522dc9 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleFrequency.cs @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Gets or sets the frequency of the schedule. + public readonly partial struct AutomationScheduleFrequency : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutomationScheduleFrequency(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string OneTimeValue = "OneTime"; + private const string DayValue = "Day"; + private const string HourValue = "Hour"; + private const string WeekValue = "Week"; + private const string MonthValue = "Month"; + private const string MinuteValue = "Minute"; + + /// OneTime. + public static AutomationScheduleFrequency OneTime { get; } = new AutomationScheduleFrequency(OneTimeValue); + /// Day. + public static AutomationScheduleFrequency Day { get; } = new AutomationScheduleFrequency(DayValue); + /// Hour. + public static AutomationScheduleFrequency Hour { get; } = new AutomationScheduleFrequency(HourValue); + /// Week. + public static AutomationScheduleFrequency Week { get; } = new AutomationScheduleFrequency(WeekValue); + /// Month. + public static AutomationScheduleFrequency Month { get; } = new AutomationScheduleFrequency(MonthValue); + /// The minimum allowed interval for Minute schedules is 15 minutes. + public static AutomationScheduleFrequency Minute { get; } = new AutomationScheduleFrequency(MinuteValue); + /// Determines if two values are the same. + public static bool operator ==(AutomationScheduleFrequency left, AutomationScheduleFrequency right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutomationScheduleFrequency left, AutomationScheduleFrequency right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AutomationScheduleFrequency(string value) => new AutomationScheduleFrequency(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutomationScheduleFrequency other && Equals(other); + /// + public bool Equals(AutomationScheduleFrequency other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleListResult.Serialization.cs new file mode 100644 index 0000000000000..c43b7389d897c --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Automation; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class AutomationScheduleListResult + { + internal static AutomationScheduleListResult DeserializeAutomationScheduleListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AutomationScheduleData.DeserializeAutomationScheduleData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new AutomationScheduleListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleListResult.cs similarity index 59% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleListResult.cs index 3d29768166c2a..67670c04c93ef 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationScheduleListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list schedule operation. - internal partial class ScheduleListResult + internal partial class AutomationScheduleListResult { - /// Initializes a new instance of ScheduleListResult. - internal ScheduleListResult() + /// Initializes a new instance of AutomationScheduleListResult. + internal AutomationScheduleListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of ScheduleListResult. + /// Initializes a new instance of AutomationScheduleListResult. /// Gets or sets a list of schedules. /// Gets or sets the next link. - internal ScheduleListResult(IReadOnlyList value, string nextLink) + internal AutomationScheduleListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of schedules. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SchedulePatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSchedulePatch.Serialization.cs similarity index 93% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SchedulePatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSchedulePatch.Serialization.cs index d308f4e670f97..fe99e2b4e1648 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SchedulePatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSchedulePatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class SchedulePatch : IUtf8JsonSerializable + public partial class AutomationSchedulePatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SchedulePatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSchedulePatch.cs similarity index 79% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SchedulePatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSchedulePatch.cs index eac98d74b0e58..fef45ab1cdce6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SchedulePatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSchedulePatch.cs @@ -8,10 +8,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the update schedule operation. - public partial class SchedulePatch + public partial class AutomationSchedulePatch { - /// Initializes a new instance of SchedulePatch. - public SchedulePatch() + /// Initializes a new instance of AutomationSchedulePatch. + public AutomationSchedulePatch() { } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSku.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSku.Serialization.cs index aa809e728fdb4..7fcba2152b742 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSku.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSku.Serialization.cs @@ -32,14 +32,14 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static AutomationSku DeserializeAutomationSku(JsonElement element) { - SkuNameEnum name = default; + AutomationSkuName name = default; Optional family = default; Optional capacity = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name")) { - name = new SkuNameEnum(property.Value.GetString()); + name = new AutomationSkuName(property.Value.GetString()); continue; } if (property.NameEquals("family")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSku.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSku.cs index 59335667f8993..0cb829937fb89 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSku.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSku.cs @@ -12,7 +12,7 @@ public partial class AutomationSku { /// Initializes a new instance of AutomationSku. /// Gets or sets the SKU name of the account. - public AutomationSku(SkuNameEnum name) + public AutomationSku(AutomationSkuName name) { Name = name; } @@ -21,7 +21,7 @@ public AutomationSku(SkuNameEnum name) /// Gets or sets the SKU name of the account. /// Gets or sets the SKU family. /// Gets or sets the SKU capacity. - internal AutomationSku(SkuNameEnum name, string family, int? capacity) + internal AutomationSku(AutomationSkuName name, string family, int? capacity) { Name = name; Family = family; @@ -29,7 +29,7 @@ internal AutomationSku(SkuNameEnum name, string family, int? capacity) } /// Gets or sets the SKU name of the account. - public SkuNameEnum Name { get; set; } + public AutomationSkuName Name { get; set; } /// Gets or sets the SKU family. public string Family { get; set; } /// Gets or sets the SKU capacity. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSkuName.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSkuName.cs new file mode 100644 index 0000000000000..1c418a7c0ab3f --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSkuName.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Gets or sets the SKU name of the account. + public readonly partial struct AutomationSkuName : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public AutomationSkuName(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string FreeValue = "Free"; + private const string BasicValue = "Basic"; + + /// Free. + public static AutomationSkuName Free { get; } = new AutomationSkuName(FreeValue); + /// Basic. + public static AutomationSkuName Basic { get; } = new AutomationSkuName(BasicValue); + /// Determines if two values are the same. + public static bool operator ==(AutomationSkuName left, AutomationSkuName right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(AutomationSkuName left, AutomationSkuName right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator AutomationSkuName(string value) => new AutomationSkuName(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is AutomationSkuName other && Equals(other); + /// + public bool Equals(AutomationSkuName other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlCreateOrUpdateContent.Serialization.cs similarity index 83% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlCreateOrUpdateContent.Serialization.cs index 509183d38c7ea..3d06456f712c5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class SourceControlCreateOrUpdateContent : IUtf8JsonSerializable + public partial class AutomationSourceControlCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -32,15 +32,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("folderPath"); writer.WriteStringValue(FolderPath); } - if (Optional.IsDefined(AutoSync)) + if (Optional.IsDefined(IsAutoSyncEnabled)) { writer.WritePropertyName("autoSync"); - writer.WriteBooleanValue(AutoSync.Value); + writer.WriteBooleanValue(IsAutoSyncEnabled.Value); } - if (Optional.IsDefined(PublishRunbook)) + if (Optional.IsDefined(IsAutoPublishRunbookEnabled)) { writer.WritePropertyName("publishRunbook"); - writer.WriteBooleanValue(PublishRunbook.Value); + writer.WriteBooleanValue(IsAutoPublishRunbookEnabled.Value); } if (Optional.IsDefined(SourceType)) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlCreateOrUpdateContent.cs similarity index 76% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlCreateOrUpdateContent.cs index e861a17eb0ac8..f62de7f7e80c2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlCreateOrUpdateContent.cs @@ -10,10 +10,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create or update source control operation. - public partial class SourceControlCreateOrUpdateContent + public partial class AutomationSourceControlCreateOrUpdateContent { - /// Initializes a new instance of SourceControlCreateOrUpdateContent. - public SourceControlCreateOrUpdateContent() + /// Initializes a new instance of AutomationSourceControlCreateOrUpdateContent. + public AutomationSourceControlCreateOrUpdateContent() { } @@ -24,11 +24,11 @@ public SourceControlCreateOrUpdateContent() /// The folder path of the source control. Path must be relative. public string FolderPath { get; set; } /// The auto async of the source control. Default is false. - public bool? AutoSync { get; set; } + public bool? IsAutoSyncEnabled { get; set; } /// The auto publish of the source control. Default is true. - public bool? PublishRunbook { get; set; } + public bool? IsAutoPublishRunbookEnabled { get; set; } /// The source type. Must be one of VsoGit, VsoTfvc, GitHub, case sensitive. - public SourceType? SourceType { get; set; } + public SourceControlSourceType? SourceType { get; set; } /// The authorization token for the repo of the source control. public SourceControlSecurityTokenProperties SecurityToken { get; set; } /// The user description of the source control. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlData.Serialization.cs similarity index 89% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlData.Serialization.cs index 91527081f54a9..38f76d2a3717f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlData.Serialization.cs @@ -13,7 +13,7 @@ namespace Azure.ResourceManager.Automation { - public partial class SourceControlData : IUtf8JsonSerializable + public partial class AutomationSourceControlData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,15 +35,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("folderPath"); writer.WriteStringValue(FolderPath); } - if (Optional.IsDefined(AutoSync)) + if (Optional.IsDefined(IsAutoSyncEnabled)) { writer.WritePropertyName("autoSync"); - writer.WriteBooleanValue(AutoSync.Value); + writer.WriteBooleanValue(IsAutoSyncEnabled.Value); } - if (Optional.IsDefined(PublishRunbook)) + if (Optional.IsDefined(IsAutoPublishRunbookEnabled)) { writer.WritePropertyName("publishRunbook"); - writer.WriteBooleanValue(PublishRunbook.Value); + writer.WriteBooleanValue(IsAutoPublishRunbookEnabled.Value); } if (Optional.IsDefined(SourceType)) { @@ -69,7 +69,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static SourceControlData DeserializeSourceControlData(JsonElement element) + internal static AutomationSourceControlData DeserializeAutomationSourceControlData(JsonElement element) { ResourceIdentifier id = default; string name = default; @@ -80,7 +80,7 @@ internal static SourceControlData DeserializeSourceControlData(JsonElement eleme Optional folderPath = default; Optional autoSync = default; Optional publishRunbook = default; - Optional sourceType = default; + Optional sourceType = default; Optional description = default; Optional creationTime = default; Optional lastModifiedTime = default; @@ -167,7 +167,7 @@ internal static SourceControlData DeserializeSourceControlData(JsonElement eleme property0.ThrowNonNullablePropertyIsNull(); continue; } - sourceType = new SourceType(property0.Value.GetString()); + sourceType = new SourceControlSourceType(property0.Value.GetString()); continue; } if (property0.NameEquals("description")) @@ -199,7 +199,7 @@ internal static SourceControlData DeserializeSourceControlData(JsonElement eleme continue; } } - return new SourceControlData(id, name, type, systemData.Value, repoUrl.Value, branch.Value, folderPath.Value, Optional.ToNullable(autoSync), Optional.ToNullable(publishRunbook), Optional.ToNullable(sourceType), description.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime)); + return new AutomationSourceControlData(id, name, type, systemData.Value, repoUrl.Value, branch.Value, folderPath.Value, Optional.ToNullable(autoSync), Optional.ToNullable(publishRunbook), Optional.ToNullable(sourceType), description.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlListResult.Serialization.cs new file mode 100644 index 0000000000000..e71709cea9d82 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Automation; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class AutomationSourceControlListResult + { + internal static AutomationSourceControlListResult DeserializeAutomationSourceControlListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AutomationSourceControlData.DeserializeAutomationSourceControlData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new AutomationSourceControlListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlListResult.cs similarity index 57% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlListResult.cs index 7902c7cee3f24..2d740f18e25a0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list source controls operation. - internal partial class SourceControlListResult + internal partial class AutomationSourceControlListResult { - /// Initializes a new instance of SourceControlListResult. - internal SourceControlListResult() + /// Initializes a new instance of AutomationSourceControlListResult. + internal AutomationSourceControlListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of SourceControlListResult. + /// Initializes a new instance of AutomationSourceControlListResult. /// The list of source controls. /// The next link. - internal SourceControlListResult(IReadOnlyList value, string nextLink) + internal AutomationSourceControlListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// The list of source controls. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// The next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlPatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlPatch.Serialization.cs similarity index 80% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlPatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlPatch.Serialization.cs index 945aa6ae52996..98e2d7e1f4cf5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlPatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class SourceControlPatch : IUtf8JsonSerializable + public partial class AutomationSourceControlPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -27,15 +27,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("folderPath"); writer.WriteStringValue(FolderPath); } - if (Optional.IsDefined(AutoSync)) + if (Optional.IsDefined(IsAutoSyncEnabled)) { writer.WritePropertyName("autoSync"); - writer.WriteBooleanValue(AutoSync.Value); + writer.WriteBooleanValue(IsAutoSyncEnabled.Value); } - if (Optional.IsDefined(PublishRunbook)) + if (Optional.IsDefined(IsAutoPublishRunbookEnabled)) { writer.WritePropertyName("publishRunbook"); - writer.WriteBooleanValue(PublishRunbook.Value); + writer.WriteBooleanValue(IsAutoPublishRunbookEnabled.Value); } if (Optional.IsDefined(SecurityToken)) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlPatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlPatch.cs similarity index 77% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlPatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlPatch.cs index b0d24303eeef5..4cec72a0af7f7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlPatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationSourceControlPatch.cs @@ -8,10 +8,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the update source control operation. - public partial class SourceControlPatch + public partial class AutomationSourceControlPatch { - /// Initializes a new instance of SourceControlPatch. - public SourceControlPatch() + /// Initializes a new instance of AutomationSourceControlPatch. + public AutomationSourceControlPatch() { } @@ -20,9 +20,9 @@ public SourceControlPatch() /// The folder path of the source control. Path must be relative. public string FolderPath { get; set; } /// The auto sync of the source control. Default is false. - public bool? AutoSync { get; set; } + public bool? IsAutoSyncEnabled { get; set; } /// The auto publish of the source control. Default is true. - public bool? PublishRunbook { get; set; } + public bool? IsAutoPublishRunbookEnabled { get; set; } /// The authorization token for the repo of the source control. public SourceControlSecurityTokenProperties SecurityToken { get; set; } /// The user description of the source control. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsage.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsage.Serialization.cs index 77d647abfc08c..0efd73701d406 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsage.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsage.Serialization.cs @@ -15,7 +15,7 @@ public partial class AutomationUsage internal static AutomationUsage DeserializeAutomationUsage(JsonElement element) { Optional id = default; - Optional name = default; + Optional name = default; Optional unit = default; Optional currentValue = default; Optional limit = default; @@ -34,7 +34,7 @@ internal static AutomationUsage DeserializeAutomationUsage(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - name = UsageCounterName.DeserializeUsageCounterName(property.Value); + name = AutomationUsageCounterName.DeserializeAutomationUsageCounterName(property.Value); continue; } if (property.NameEquals("unit")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsage.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsage.cs index 126da886129ec..95b58cd6503e6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsage.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsage.cs @@ -22,7 +22,7 @@ internal AutomationUsage() /// Gets or sets the current usage value. /// Gets or sets max limit. -1 for unlimited. /// Gets or sets the throttle status. - internal AutomationUsage(string id, UsageCounterName name, string unit, double? currentValue, long? limit, string throttleStatus) + internal AutomationUsage(string id, AutomationUsageCounterName name, string unit, double? currentValue, long? limit, string throttleStatus) { Id = id; Name = name; @@ -35,7 +35,7 @@ internal AutomationUsage(string id, UsageCounterName name, string unit, double? /// Gets or sets the id of the resource. public string Id { get; } /// Gets or sets the usage counter name. - public UsageCounterName Name { get; } + public AutomationUsageCounterName Name { get; } /// Gets or sets the usage unit name. public string Unit { get; } /// Gets or sets the current usage value. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageCounterName.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageCounterName.Serialization.cs similarity index 76% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageCounterName.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageCounterName.Serialization.cs index c208aba7e2ee4..2c86a83934d90 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageCounterName.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageCounterName.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class UsageCounterName + public partial class AutomationUsageCounterName { - internal static UsageCounterName DeserializeUsageCounterName(JsonElement element) + internal static AutomationUsageCounterName DeserializeAutomationUsageCounterName(JsonElement element) { Optional value = default; Optional localizedValue = default; @@ -29,7 +29,7 @@ internal static UsageCounterName DeserializeUsageCounterName(JsonElement element continue; } } - return new UsageCounterName(value.Value, localizedValue.Value); + return new AutomationUsageCounterName(value.Value, localizedValue.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageCounterName.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageCounterName.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageCounterName.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageCounterName.cs index 9887a9ee007c4..83999272e8ead 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageCounterName.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageCounterName.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of usage counter name. - public partial class UsageCounterName + public partial class AutomationUsageCounterName { - /// Initializes a new instance of UsageCounterName. - internal UsageCounterName() + /// Initializes a new instance of AutomationUsageCounterName. + internal AutomationUsageCounterName() { } - /// Initializes a new instance of UsageCounterName. + /// Initializes a new instance of AutomationUsageCounterName. /// Gets or sets the usage counter name. /// Gets or sets the localized usage counter name. - internal UsageCounterName(string value, string localizedValue) + internal AutomationUsageCounterName(string value, string localizedValue) { Value = value; LocalizedValue = localizedValue; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageListResult.Serialization.cs similarity index 82% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageListResult.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageListResult.Serialization.cs index 40c34b98b3f42..92edc16022b90 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageListResult.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageListResult.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class UsageListResult + internal partial class AutomationUsageListResult { - internal static UsageListResult DeserializeUsageListResult(JsonElement element) + internal static AutomationUsageListResult DeserializeAutomationUsageListResult(JsonElement element) { Optional> value = default; foreach (var property in element.EnumerateObject()) @@ -34,7 +34,7 @@ internal static UsageListResult DeserializeUsageListResult(JsonElement element) continue; } } - return new UsageListResult(Optional.ToList(value)); + return new AutomationUsageListResult(Optional.ToList(value)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageListResult.cs similarity index 64% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageListResult.cs index e3267c053eae7..9d4da31930f2e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UsageListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationUsageListResult.cs @@ -11,17 +11,17 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the get usage operation. - internal partial class UsageListResult + internal partial class AutomationUsageListResult { - /// Initializes a new instance of UsageListResult. - internal UsageListResult() + /// Initializes a new instance of AutomationUsageListResult. + internal AutomationUsageListResult() { Value = new ChangeTrackingList(); } - /// Initializes a new instance of UsageListResult. + /// Initializes a new instance of AutomationUsageListResult. /// Gets or sets usage. - internal UsageListResult(IReadOnlyList value) + internal AutomationUsageListResult(IReadOnlyList value) { Value = value; } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableCreateOrUpdateContent.Serialization.cs similarity index 92% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableCreateOrUpdateContent.Serialization.cs index 52033023fb277..5a0521f85d465 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class VariableCreateOrUpdateContent : IUtf8JsonSerializable + public partial class AutomationVariableCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableCreateOrUpdateContent.cs similarity index 82% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableCreateOrUpdateContent.cs index 0ca4f8d74a574..9eb743cc9895f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableCreateOrUpdateContent.cs @@ -11,12 +11,12 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create or update variable operation. - public partial class VariableCreateOrUpdateContent + public partial class AutomationVariableCreateOrUpdateContent { - /// Initializes a new instance of VariableCreateOrUpdateContent. + /// Initializes a new instance of AutomationVariableCreateOrUpdateContent. /// Gets or sets the name of the variable. /// is null. - public VariableCreateOrUpdateContent(string name) + public AutomationVariableCreateOrUpdateContent(string name) { Argument.AssertNotNull(name, nameof(name)); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableData.Serialization.cs similarity index 93% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableData.Serialization.cs index c16ea333eb6d9..6ed3f1c590121 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableData.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Automation { - public partial class VariableData : IUtf8JsonSerializable + public partial class AutomationVariableData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -55,7 +55,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static VariableData DeserializeVariableData(JsonElement element) + internal static AutomationVariableData DeserializeAutomationVariableData(JsonElement element) { ResourceIdentifier id = default; string name = default; @@ -146,7 +146,7 @@ internal static VariableData DeserializeVariableData(JsonElement element) continue; } } - return new VariableData(id, name, type, systemData.Value, value.Value, Optional.ToNullable(isEncrypted), Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); + return new AutomationVariableData(id, name, type, systemData.Value, value.Value, Optional.ToNullable(isEncrypted), Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableListResult.Serialization.cs new file mode 100644 index 0000000000000..7041a3d6347da --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableListResult.Serialization.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System.Collections.Generic; +using System.Text.Json; +using Azure.Core; +using Azure.ResourceManager.Automation; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class AutomationVariableListResult + { + internal static AutomationVariableListResult DeserializeAutomationVariableListResult(JsonElement element) + { + Optional> value = default; + Optional nextLink = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("value")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + List array = new List(); + foreach (var item in property.Value.EnumerateArray()) + { + array.Add(AutomationVariableData.DeserializeAutomationVariableData(item)); + } + value = array; + continue; + } + if (property.NameEquals("nextLink")) + { + nextLink = property.Value.GetString(); + continue; + } + } + return new AutomationVariableListResult(Optional.ToList(value), nextLink.Value); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableListResult.cs similarity index 59% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableListResult.cs index 69c58bfc3c31e..eb5ccc5e75c8a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariableListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list variables operation. - internal partial class VariableListResult + internal partial class AutomationVariableListResult { - /// Initializes a new instance of VariableListResult. - internal VariableListResult() + /// Initializes a new instance of AutomationVariableListResult. + internal AutomationVariableListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of VariableListResult. + /// Initializes a new instance of AutomationVariableListResult. /// Gets or sets a list of variables. /// Gets or sets the next link. - internal VariableListResult(IReadOnlyList value, string nextLink) + internal AutomationVariableListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of variables. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariablePatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariablePatch.Serialization.cs similarity index 93% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariablePatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariablePatch.Serialization.cs index 468a22f702f50..5a3d074083c65 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariablePatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariablePatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class VariablePatch : IUtf8JsonSerializable + public partial class AutomationVariablePatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariablePatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariablePatch.cs similarity index 78% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariablePatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariablePatch.cs index b59cae731aebb..b1194efc064e9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariablePatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationVariablePatch.cs @@ -8,10 +8,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the update variable operation. - public partial class VariablePatch + public partial class AutomationVariablePatch { - /// Initializes a new instance of VariablePatch. - public VariablePatch() + /// Initializes a new instance of AutomationVariablePatch. + public AutomationVariablePatch() { } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherData.Serialization.cs similarity index 94% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherData.Serialization.cs index b052dddde3b2b..01ea00c65c21f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Automation { - public partial class WatcherData : IUtf8JsonSerializable + public partial class AutomationWatcherData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -74,7 +74,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static WatcherData DeserializeWatcherData(JsonElement element) + internal static AutomationWatcherData DeserializeAutomationWatcherData(JsonElement element) { Optional etag = default; Optional> tags = default; @@ -232,7 +232,7 @@ internal static WatcherData DeserializeWatcherData(JsonElement element) continue; } } - return new WatcherData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(etag), Optional.ToNullable(executionFrequencyInSeconds), scriptName.Value, Optional.ToDictionary(scriptParameters), scriptRunOn.Value, status.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), lastModifiedBy.Value, description.Value); + return new AutomationWatcherData(id, name, type, systemData.Value, Optional.ToDictionary(tags), location, Optional.ToNullable(etag), Optional.ToNullable(executionFrequencyInSeconds), scriptName.Value, Optional.ToDictionary(scriptParameters), scriptRunOn.Value, status.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), lastModifiedBy.Value, description.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherListResult.Serialization.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionListResult.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherListResult.Serialization.cs index 16e7d43f5a25e..70015511cc167 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionListResult.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherListResult.Serialization.cs @@ -12,11 +12,11 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class ConnectionListResult + internal partial class AutomationWatcherListResult { - internal static ConnectionListResult DeserializeConnectionListResult(JsonElement element) + internal static AutomationWatcherListResult DeserializeAutomationWatcherListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static ConnectionListResult DeserializeConnectionListResult(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ConnectionData.DeserializeConnectionData(item)); + array.Add(AutomationWatcherData.DeserializeAutomationWatcherData(item)); } value = array; continue; @@ -41,7 +41,7 @@ internal static ConnectionListResult DeserializeConnectionListResult(JsonElement continue; } } - return new ConnectionListResult(Optional.ToList(value), nextLink.Value); + return new AutomationWatcherListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherListResult.cs similarity index 60% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherListResult.cs index 490cb6e1c7ab7..49b4f153f68dd 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list watcher operation. - internal partial class WatcherListResult + internal partial class AutomationWatcherListResult { - /// Initializes a new instance of WatcherListResult. - internal WatcherListResult() + /// Initializes a new instance of AutomationWatcherListResult. + internal AutomationWatcherListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of WatcherListResult. + /// Initializes a new instance of AutomationWatcherListResult. /// Gets or sets a list of watchers. /// Gets or sets the next link. - internal WatcherListResult(IReadOnlyList value, string nextLink) + internal AutomationWatcherListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of watchers. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherPatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherPatch.Serialization.cs similarity index 92% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherPatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherPatch.Serialization.cs index 3bc199e24b093..71a5808a07905 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherPatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class WatcherPatch : IUtf8JsonSerializable + public partial class AutomationWatcherPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherPatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherPatch.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherPatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherPatch.cs index fffdf2cc8971b..48e2e54e535bc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherPatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWatcherPatch.cs @@ -7,11 +7,11 @@ namespace Azure.ResourceManager.Automation.Models { - /// The WatcherPatch. - public partial class WatcherPatch + /// The AutomationWatcherPatch. + public partial class AutomationWatcherPatch { - /// Initializes a new instance of WatcherPatch. - public WatcherPatch() + /// Initializes a new instance of AutomationWatcherPatch. + public AutomationWatcherPatch() { } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookCreateOrUpdateContent.Serialization.cs similarity index 90% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookCreateOrUpdateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookCreateOrUpdateContent.Serialization.cs index 8e1468d1555c5..86e4a8a24331c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class WebhookCreateOrUpdateContent : IUtf8JsonSerializable + public partial class AutomationWebhookCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -29,10 +29,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("uri"); writer.WriteStringValue(Uri.AbsoluteUri); } - if (Optional.IsDefined(ExpiryOn)) + if (Optional.IsDefined(ExpireOn)) { writer.WritePropertyName("expiryTime"); - writer.WriteStringValue(ExpiryOn.Value, "O"); + writer.WriteStringValue(ExpireOn.Value, "O"); } if (Optional.IsCollectionDefined(Parameters)) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookCreateOrUpdateContent.cs similarity index 86% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookCreateOrUpdateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookCreateOrUpdateContent.cs index 64050dd15c35a..0c0d9d72d509d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookCreateOrUpdateContent.cs @@ -12,12 +12,12 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create or update webhook operation. - public partial class WebhookCreateOrUpdateContent + public partial class AutomationWebhookCreateOrUpdateContent { - /// Initializes a new instance of WebhookCreateOrUpdateContent. + /// Initializes a new instance of AutomationWebhookCreateOrUpdateContent. /// Gets or sets the name of the webhook. /// is null. - public WebhookCreateOrUpdateContent(string name) + public AutomationWebhookCreateOrUpdateContent(string name) { Argument.AssertNotNull(name, nameof(name)); @@ -32,7 +32,7 @@ public WebhookCreateOrUpdateContent(string name) /// Gets or sets the uri. public Uri Uri { get; set; } /// Gets or sets the expiry time. - public DateTimeOffset? ExpiryOn { get; set; } + public DateTimeOffset? ExpireOn { get; set; } /// Gets or sets the parameters of the job. public IDictionary Parameters { get; } /// Gets or sets the runbook. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookData.Serialization.cs similarity index 94% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookData.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookData.Serialization.cs index c0f3bba265ef7..8fb924f6c5273 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookData.Serialization.cs @@ -14,7 +14,7 @@ namespace Azure.ResourceManager.Automation { - public partial class WebhookData : IUtf8JsonSerializable + public partial class AutomationWebhookData : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -31,10 +31,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("uri"); writer.WriteStringValue(Uri.AbsoluteUri); } - if (Optional.IsDefined(ExpiryOn)) + if (Optional.IsDefined(ExpireOn)) { writer.WritePropertyName("expiryTime"); - writer.WriteStringValue(ExpiryOn.Value, "O"); + writer.WriteStringValue(ExpireOn.Value, "O"); } if (Optional.IsDefined(LastInvokedOn)) { @@ -93,7 +93,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static WebhookData DeserializeWebhookData(JsonElement element) + internal static AutomationWebhookData DeserializeAutomationWebhookData(JsonElement element) { ResourceIdentifier id = default; string name = default; @@ -250,7 +250,7 @@ internal static WebhookData DeserializeWebhookData(JsonElement element) continue; } } - return new WebhookData(id, name, type, systemData.Value, Optional.ToNullable(isEnabled), uri.Value, Optional.ToNullable(expiryTime), Optional.ToNullable(lastInvokedTime), Optional.ToDictionary(parameters), runbook.Value, runOn.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), lastModifiedBy.Value, description.Value); + return new AutomationWebhookData(id, name, type, systemData.Value, Optional.ToNullable(isEnabled), uri.Value, Optional.ToNullable(expiryTime), Optional.ToNullable(lastInvokedTime), Optional.ToDictionary(parameters), runbook.Value, runOn.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), lastModifiedBy.Value, description.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookListResult.Serialization.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeListResult.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookListResult.Serialization.cs index 68241548c4e26..dcc8593d98487 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ConnectionTypeListResult.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookListResult.Serialization.cs @@ -12,11 +12,11 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class ConnectionTypeListResult + internal partial class AutomationWebhookListResult { - internal static ConnectionTypeListResult DeserializeConnectionTypeListResult(JsonElement element) + internal static AutomationWebhookListResult DeserializeAutomationWebhookListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional nextLink = default; foreach (var property in element.EnumerateObject()) { @@ -27,10 +27,10 @@ internal static ConnectionTypeListResult DeserializeConnectionTypeListResult(Jso property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(ConnectionTypeData.DeserializeConnectionTypeData(item)); + array.Add(AutomationWebhookData.DeserializeAutomationWebhookData(item)); } value = array; continue; @@ -41,7 +41,7 @@ internal static ConnectionTypeListResult DeserializeConnectionTypeListResult(Jso continue; } } - return new ConnectionTypeListResult(Optional.ToList(value), nextLink.Value); + return new AutomationWebhookListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookListResult.cs similarity index 60% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookListResult.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookListResult.cs index 4a38d774a9e98..53d8de150d2df 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookListResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookListResult.cs @@ -12,25 +12,25 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list webhook operation. - internal partial class WebhookListResult + internal partial class AutomationWebhookListResult { - /// Initializes a new instance of WebhookListResult. - internal WebhookListResult() + /// Initializes a new instance of AutomationWebhookListResult. + internal AutomationWebhookListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of WebhookListResult. + /// Initializes a new instance of AutomationWebhookListResult. /// Gets or sets a list of webhooks. /// Gets or sets the next link. - internal WebhookListResult(IReadOnlyList value, string nextLink) + internal AutomationWebhookListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; } /// Gets or sets a list of webhooks. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets or sets the next link. public string NextLink { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookPatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookPatch.Serialization.cs similarity index 95% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookPatch.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookPatch.Serialization.cs index 8502cb9f4ff7e..3f34ae6c4b63c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookPatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookPatch.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class WebhookPatch : IUtf8JsonSerializable + public partial class AutomationWebhookPatch : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookPatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookPatch.cs similarity index 86% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookPatch.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookPatch.cs index 13cfde2c8c81b..fcf260d12f4e5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookPatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AutomationWebhookPatch.cs @@ -11,10 +11,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the update webhook operation. - public partial class WebhookPatch + public partial class AutomationWebhookPatch { - /// Initializes a new instance of WebhookPatch. - public WebhookPatch() + /// Initializes a new instance of AutomationWebhookPatch. + public AutomationWebhookPatch() { Parameters = new ChangeTrackingDictionary(); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.Serialization.cs index 9ebe7a3aa4a64..3351fa733d448 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.Serialization.cs @@ -47,8 +47,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static AzureQueryProperties DeserializeAzureQueryProperties(JsonElement element) { Optional> scope = default; - Optional> locations = default; - Optional tagSettings = default; + Optional> locations = default; + Optional tagSettings = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("scope")) @@ -73,10 +73,10 @@ internal static AzureQueryProperties DeserializeAzureQueryProperties(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(item.GetString()); + array.Add(new AzureLocation(item.GetString())); } locations = array; continue; @@ -88,7 +88,7 @@ internal static AzureQueryProperties DeserializeAzureQueryProperties(JsonElement property.ThrowNonNullablePropertyIsNull(); continue; } - tagSettings = TagSettingsProperties.DeserializeTagSettingsProperties(property.Value); + tagSettings = QueryTagSettingsProperties.DeserializeQueryTagSettingsProperties(property.Value); continue; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.cs index 0de56b1ca15c7..453e587437dc6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/AzureQueryProperties.cs @@ -17,14 +17,14 @@ public partial class AzureQueryProperties public AzureQueryProperties() { Scope = new ChangeTrackingList(); - Locations = new ChangeTrackingList(); + Locations = new ChangeTrackingList(); } /// Initializes a new instance of AzureQueryProperties. /// List of Subscription or Resource Group ARM Ids. /// List of locations to scope the query to. /// Tag settings for the VM. - internal AzureQueryProperties(IList scope, IList locations, TagSettingsProperties tagSettings) + internal AzureQueryProperties(IList scope, IList locations, QueryTagSettingsProperties tagSettings) { Scope = scope; Locations = locations; @@ -34,8 +34,8 @@ internal AzureQueryProperties(IList scope, IList locations, TagS /// List of Subscription or Resource Group ARM Ids. public IList Scope { get; } /// List of locations to scope the query to. - public IList Locations { get; } + public IList Locations { get; } /// Tag settings for the VM. - public TagSettingsProperties TagSettings { get; set; } + public QueryTagSettingsProperties TagSettings { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateCreateOrUpdateContent.cs deleted file mode 100644 index cac4cc8320e84..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CertificateCreateOrUpdateContent.cs +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using Azure.Core; - -namespace Azure.ResourceManager.Automation.Models -{ - /// The parameters supplied to the create or update or replace certificate operation. - public partial class CertificateCreateOrUpdateContent - { - /// Initializes a new instance of CertificateCreateOrUpdateContent. - /// Gets or sets the name of the certificate. - /// Gets or sets the base64 encoded value of the certificate. - /// or is null. - public CertificateCreateOrUpdateContent(string name, string base64Value) - { - Argument.AssertNotNull(name, nameof(name)); - Argument.AssertNotNull(base64Value, nameof(base64Value)); - - Name = name; - Base64Value = base64Value; - } - - /// Gets or sets the name of the certificate. - public string Name { get; } - /// Gets or sets the base64 encoded value of the certificate. - public string Base64Value { get; } - /// Gets or sets the description of the certificate. - public string Description { get; set; } - /// Gets or sets the thumbprint of the certificate. - public string Thumbprint { get; set; } - /// Gets or sets the is exportable flag of the certificate. - public bool? IsExportable { get; set; } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentSourceType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentSourceType.cs deleted file mode 100644 index e877e8f44295c..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ContentSourceType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// Gets or sets the content source type. - public readonly partial struct ContentSourceType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ContentSourceType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string EmbeddedContentValue = "embeddedContent"; - private const string UriValue = "uri"; - - /// embeddedContent. - public static ContentSourceType EmbeddedContent { get; } = new ContentSourceType(EmbeddedContentValue); - /// uri. - public static ContentSourceType Uri { get; } = new ContentSourceType(UriValue); - /// Determines if two values are the same. - public static bool operator ==(ContentSourceType left, ContentSourceType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ContentSourceType left, ContentSourceType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ContentSourceType(string value) => new ContentSourceType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ContentSourceType other && Equals(other); - /// - public bool Equals(ContentSourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CountType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CountType.cs deleted file mode 100644 index 7db1dae5f6c55..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/CountType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// The CountType. - public readonly partial struct CountType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public CountType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string StatusValue = "status"; - private const string NodeconfigurationValue = "nodeconfiguration"; - - /// status. - public static CountType Status { get; } = new CountType(StatusValue); - /// nodeconfiguration. - public static CountType Nodeconfiguration { get; } = new CountType(NodeconfigurationValue); - /// Determines if two values are the same. - public static bool operator ==(CountType left, CountType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(CountType left, CountType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator CountType(string value) => new CountType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is CountType other && Equals(other); - /// - public bool Equals(CountType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccount.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccount.Serialization.cs index cd873a84481dd..c89b22ec4bc26 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccount.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccount.Serialization.cs @@ -21,7 +21,7 @@ internal static DeletedAutomationAccount DeserializeDeletedAutomationAccount(Jso string name = default; ResourceType type = default; Optional systemData = default; - Optional automationAccountResourceId = default; + Optional automationAccountResourceId = default; Optional automationAccountId = default; Optional location0 = default; Optional deletionTime = default; @@ -73,7 +73,12 @@ internal static DeletedAutomationAccount DeserializeDeletedAutomationAccount(Jso { if (property0.NameEquals("automationAccountResourceId")) { - automationAccountResourceId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + automationAccountResourceId = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("automationAccountId")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccount.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccount.cs index 2a42131f51431..636e1f7cf6b78 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccount.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DeletedAutomationAccount.cs @@ -29,7 +29,7 @@ internal DeletedAutomationAccount() /// Gets or sets the Automation Account Id. /// Gets or sets the location of the resource. /// Gets the deletion time. - internal DeletedAutomationAccount(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, string automationAccountResourceId, string automationAccountId, string locationPropertiesLocation, DateTimeOffset? deletedOn) : base(id, name, resourceType, systemData) + internal DeletedAutomationAccount(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, AzureLocation? location, ResourceIdentifier automationAccountResourceId, string automationAccountId, string locationPropertiesLocation, DateTimeOffset? deletedOn) : base(id, name, resourceType, systemData) { Location = location; AutomationAccountResourceId = automationAccountResourceId; @@ -41,7 +41,7 @@ internal DeletedAutomationAccount(ResourceIdentifier id, string name, ResourceTy /// Gets or sets the location of the resource. public AzureLocation? Location { get; } /// Gets or sets the Automation Account Resource Id. - public string AutomationAccountResourceId { get; } + public ResourceIdentifier AutomationAccountResourceId { get; } /// Gets or sets the Automation Account Id. public string AutomationAccountId { get; } /// Gets or sets the location of the resource. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.Serialization.cs index bb80754ac14ee..20270cba69e18 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.Serialization.cs @@ -51,10 +51,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WriteEndObject(); } - if (Optional.IsDefined(IncrementNodeConfigurationBuild)) + if (Optional.IsDefined(IsIncrementNodeConfigurationBuildRequired)) { writer.WritePropertyName("incrementNodeConfigurationBuild"); - writer.WriteBooleanValue(IncrementNodeConfigurationBuild.Value); + writer.WriteBooleanValue(IsIncrementNodeConfigurationBuildRequired.Value); } writer.WriteEndObject(); writer.WriteEndObject(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.cs index 95a7b9fb877ce..5d7658bde0fa1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobCreateOrUpdateContent.cs @@ -43,6 +43,6 @@ public string ConfigurationName /// Gets or sets the parameters of the job. public IDictionary Parameters { get; } /// If a new build version of NodeConfiguration is required. - public bool? IncrementNodeConfigurationBuild { get; set; } + public bool? IsIncrementNodeConfigurationBuildRequired { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobData.Serialization.cs index 1164f243d8184..e1da351679198 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscCompilationJobData.Serialization.cs @@ -73,7 +73,7 @@ internal static DscCompilationJobData DeserializeDscCompilationJobData(JsonEleme Optional creationTime = default; Optional provisioningState = default; Optional runOn = default; - Optional status = default; + Optional status = default; Optional statusDetails = default; Optional startTime = default; Optional endTime = default; @@ -174,7 +174,7 @@ internal static DscCompilationJobData DeserializeDscCompilationJobData(JsonEleme property0.ThrowNonNullablePropertyIsNull(); continue; } - status = new JobStatus(property0.Value.GetString()); + status = new AutomationJobStatus(property0.Value.GetString()); continue; } if (property0.NameEquals("statusDetails")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationCreateOrUpdateContent.Serialization.cs index afc2e330c3bc8..5d47ff15e3ac5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationCreateOrUpdateContent.Serialization.cs @@ -38,15 +38,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("properties"); writer.WriteStartObject(); - if (Optional.IsDefined(LogVerbose)) + if (Optional.IsDefined(IsLogVerboseEnabled)) { writer.WritePropertyName("logVerbose"); - writer.WriteBooleanValue(LogVerbose.Value); + writer.WriteBooleanValue(IsLogVerboseEnabled.Value); } - if (Optional.IsDefined(LogProgress)) + if (Optional.IsDefined(IsLogProgressEnabled)) { writer.WritePropertyName("logProgress"); - writer.WriteBooleanValue(LogProgress.Value); + writer.WriteBooleanValue(IsLogProgressEnabled.Value); } writer.WritePropertyName("source"); writer.WriteObjectValue(Source); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationCreateOrUpdateContent.cs index 18d127ec90ee8..9df9934b04db6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationCreateOrUpdateContent.cs @@ -17,13 +17,13 @@ public partial class DscConfigurationCreateOrUpdateContent /// Initializes a new instance of DscConfigurationCreateOrUpdateContent. /// Gets or sets the source. /// is null. - public DscConfigurationCreateOrUpdateContent(ContentSource source) + public DscConfigurationCreateOrUpdateContent(AutomationContentSource source) { Argument.AssertNotNull(source, nameof(source)); Tags = new ChangeTrackingDictionary(); Source = source; - Parameters = new ChangeTrackingDictionary(); + Parameters = new ChangeTrackingDictionary(); } /// Gets or sets name of the resource. @@ -33,13 +33,13 @@ public DscConfigurationCreateOrUpdateContent(ContentSource source) /// Gets or sets the tags attached to the resource. public IDictionary Tags { get; } /// Gets or sets verbose log option. - public bool? LogVerbose { get; set; } + public bool? IsLogVerboseEnabled { get; set; } /// Gets or sets progress log option. - public bool? LogProgress { get; set; } + public bool? IsLogProgressEnabled { get; set; } /// Gets or sets the source. - public ContentSource Source { get; } + public AutomationContentSource Source { get; } /// Gets or sets the configuration parameters. - public IDictionary Parameters { get; } + public IDictionary Parameters { get; } /// Gets or sets the description of the configuration. public string Description { get; set; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationData.Serialization.cs index 9e5463627a511..e7d2bacce965d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationData.Serialization.cs @@ -71,10 +71,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("state"); writer.WriteStringValue(State.Value.ToString()); } - if (Optional.IsDefined(LogVerbose)) + if (Optional.IsDefined(IsLogVerboseEnabled)) { writer.WritePropertyName("logVerbose"); - writer.WriteBooleanValue(LogVerbose.Value); + writer.WriteBooleanValue(IsLogVerboseEnabled.Value); } if (Optional.IsDefined(CreatedOn)) { @@ -111,8 +111,8 @@ internal static DscConfigurationData DeserializeDscConfigurationData(JsonElement Optional systemData = default; Optional provisioningState = default; Optional jobCount = default; - Optional> parameters = default; - Optional source = default; + Optional> parameters = default; + Optional source = default; Optional state = default; Optional logVerbose = default; Optional creationTime = default; @@ -212,10 +212,10 @@ internal static DscConfigurationData DeserializeDscConfigurationData(JsonElement property0.ThrowNonNullablePropertyIsNull(); continue; } - Dictionary dictionary = new Dictionary(); + Dictionary dictionary = new Dictionary(); foreach (var property1 in property0.Value.EnumerateObject()) { - dictionary.Add(property1.Name, DscConfigurationParameter.DeserializeDscConfigurationParameter(property1.Value)); + dictionary.Add(property1.Name, DscConfigurationParameterDefinition.DeserializeDscConfigurationParameterDefinition(property1.Value)); } parameters = dictionary; continue; @@ -227,7 +227,7 @@ internal static DscConfigurationData DeserializeDscConfigurationData(JsonElement property0.ThrowNonNullablePropertyIsNull(); continue; } - source = ContentSource.DeserializeContentSource(property0.Value); + source = AutomationContentSource.DeserializeAutomationContentSource(property0.Value); continue; } if (property0.NameEquals("state")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameter.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameterDefinition.Serialization.cs similarity index 87% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameter.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameterDefinition.Serialization.cs index 5197a97e374b7..d1d235e0500da 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameter.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameterDefinition.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class DscConfigurationParameter : IUtf8JsonSerializable + public partial class DscConfigurationParameterDefinition : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -38,7 +38,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static DscConfigurationParameter DeserializeDscConfigurationParameter(JsonElement element) + internal static DscConfigurationParameterDefinition DeserializeDscConfigurationParameterDefinition(JsonElement element) { Optional type = default; Optional isMandatory = default; @@ -77,7 +77,7 @@ internal static DscConfigurationParameter DeserializeDscConfigurationParameter(J continue; } } - return new DscConfigurationParameter(type.Value, Optional.ToNullable(isMandatory), Optional.ToNullable(position), defaultValue.Value); + return new DscConfigurationParameterDefinition(type.Value, Optional.ToNullable(isMandatory), Optional.ToNullable(position), defaultValue.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameter.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameterDefinition.cs similarity index 82% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameter.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameterDefinition.cs index 7240179ca9f84..464a43b57922b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameter.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationParameterDefinition.cs @@ -8,19 +8,19 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the configuration parameter type. - public partial class DscConfigurationParameter + public partial class DscConfigurationParameterDefinition { - /// Initializes a new instance of DscConfigurationParameter. - public DscConfigurationParameter() + /// Initializes a new instance of DscConfigurationParameterDefinition. + public DscConfigurationParameterDefinition() { } - /// Initializes a new instance of DscConfigurationParameter. + /// Initializes a new instance of DscConfigurationParameterDefinition. /// Gets or sets the type of the parameter. /// Gets or sets a Boolean value to indicate whether the parameter is mandatory or not. /// Get or sets the position of the parameter. /// Gets or sets the default value of parameter. - internal DscConfigurationParameter(string dscConfigurationParameterType, bool? isMandatory, int? position, string defaultValue) + internal DscConfigurationParameterDefinition(string dscConfigurationParameterType, bool? isMandatory, int? position, string defaultValue) { DscConfigurationParameterType = dscConfigurationParameterType; IsMandatory = isMandatory; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationPatch.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationPatch.Serialization.cs index 0d64fb1b28422..149117ffe61e5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationPatch.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationPatch.Serialization.cs @@ -33,15 +33,15 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) } writer.WritePropertyName("properties"); writer.WriteStartObject(); - if (Optional.IsDefined(LogVerbose)) + if (Optional.IsDefined(IsLogVerboseEnabled)) { writer.WritePropertyName("logVerbose"); - writer.WriteBooleanValue(LogVerbose.Value); + writer.WriteBooleanValue(IsLogVerboseEnabled.Value); } - if (Optional.IsDefined(LogProgress)) + if (Optional.IsDefined(IsLogProgressEnabled)) { writer.WritePropertyName("logProgress"); - writer.WriteBooleanValue(LogProgress.Value); + writer.WriteBooleanValue(IsLogProgressEnabled.Value); } if (Optional.IsDefined(Source)) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationPatch.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationPatch.cs index 68d296f426ae0..952048bedd204 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationPatch.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscConfigurationPatch.cs @@ -17,7 +17,7 @@ public partial class DscConfigurationPatch public DscConfigurationPatch() { Tags = new ChangeTrackingDictionary(); - Parameters = new ChangeTrackingDictionary(); + Parameters = new ChangeTrackingDictionary(); } /// Gets or sets name of the resource. @@ -25,13 +25,13 @@ public DscConfigurationPatch() /// Gets or sets the tags attached to the resource. public IDictionary Tags { get; } /// Gets or sets verbose log option. - public bool? LogVerbose { get; set; } + public bool? IsLogVerboseEnabled { get; set; } /// Gets or sets progress log option. - public bool? LogProgress { get; set; } + public bool? IsLogProgressEnabled { get; set; } /// Gets or sets the source. - public ContentSource Source { get; set; } + public AutomationContentSource Source { get; set; } /// Gets or sets the configuration parameters. - public IDictionary Parameters { get; } + public IDictionary Parameters { get; } /// Gets or sets the description of the configuration. public string Description { get; set; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationCreateOrUpdateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationCreateOrUpdateContent.Serialization.cs index f031c0c9e1d0d..e8a1332ecaeb4 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationCreateOrUpdateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationCreateOrUpdateContent.Serialization.cs @@ -43,10 +43,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("configuration"); writer.WriteObjectValue(Configuration); } - if (Optional.IsDefined(IncrementNodeConfigurationBuild)) + if (Optional.IsDefined(IsIncrementNodeConfigurationBuildRequired)) { writer.WritePropertyName("incrementNodeConfigurationBuild"); - writer.WriteBooleanValue(IncrementNodeConfigurationBuild.Value); + writer.WriteBooleanValue(IsIncrementNodeConfigurationBuildRequired.Value); } writer.WriteEndObject(); writer.WriteEndObject(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationCreateOrUpdateContent.cs index 462bf28cea83d..2779e807d1ce5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationCreateOrUpdateContent.cs @@ -24,7 +24,7 @@ public DscNodeConfigurationCreateOrUpdateContent() /// Gets or sets the tags attached to the resource. public IDictionary Tags { get; } /// Gets or sets the source. - public ContentSource Source { get; set; } + public AutomationContentSource Source { get; set; } /// Gets or sets the configuration of the node. internal DscConfigurationAssociationProperty Configuration { get; set; } /// Gets or sets the name of the Dsc configuration. @@ -40,6 +40,6 @@ public string ConfigurationName } /// If a new build version of NodeConfiguration is required. - public bool? IncrementNodeConfigurationBuild { get; set; } + public bool? IsIncrementNodeConfigurationBuildRequired { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationData.Serialization.cs index 3fe6a1d1832cf..bdb86d8c14668 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeConfigurationData.Serialization.cs @@ -45,10 +45,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("nodeCount"); writer.WriteNumberValue(NodeCount.Value); } - if (Optional.IsDefined(IncrementNodeConfigurationBuild)) + if (Optional.IsDefined(IsIncrementNodeConfigurationBuildRequired)) { writer.WritePropertyName("incrementNodeConfigurationBuild"); - writer.WriteBooleanValue(IncrementNodeConfigurationBuild.Value); + writer.WriteBooleanValue(IsIncrementNodeConfigurationBuildRequired.Value); } writer.WriteEndObject(); writer.WriteEndObject(); diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCount.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCount.Serialization.cs similarity index 71% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCount.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCount.Serialization.cs index 946e6029089c2..3fbd61258f4f5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCount.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCount.Serialization.cs @@ -10,12 +10,12 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class NodeCount + public partial class DscNodeCount { - internal static NodeCount DeserializeNodeCount(JsonElement element) + internal static DscNodeCount DeserializeDscNodeCount(JsonElement element) { Optional name = default; - Optional properties = default; + Optional properties = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name")) @@ -30,11 +30,11 @@ internal static NodeCount DeserializeNodeCount(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - properties = NodeCountProperties.DeserializeNodeCountProperties(property.Value); + properties = DscNodeCountProperties.DeserializeDscNodeCountProperties(property.Value); continue; } } - return new NodeCount(name.Value, properties.Value); + return new DscNodeCount(name.Value, properties.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCount.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCount.cs similarity index 68% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCount.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCount.cs index 7592255000ff2..d24b59a2b7174 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCount.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCount.cs @@ -8,17 +8,17 @@ namespace Azure.ResourceManager.Automation.Models { /// Number of nodes based on the Filter. - public partial class NodeCount + public partial class DscNodeCount { - /// Initializes a new instance of NodeCount. - internal NodeCount() + /// Initializes a new instance of DscNodeCount. + internal DscNodeCount() { } - /// Initializes a new instance of NodeCount. + /// Initializes a new instance of DscNodeCount. /// Gets the name of a count type. /// - internal NodeCount(string name, NodeCountProperties properties) + internal DscNodeCount(string name, DscNodeCountProperties properties) { Name = name; Properties = properties; @@ -27,7 +27,7 @@ internal NodeCount(string name, NodeCountProperties properties) /// Gets the name of a count type. public string Name { get; } /// Gets the properties. - internal NodeCountProperties Properties { get; } + internal DscNodeCountProperties Properties { get; } /// Gets the count for the name. public int? NameCount { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCounts.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountListResult.Serialization.cs similarity index 73% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCounts.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountListResult.Serialization.cs index 973dfda4b1dbc..7e78db0f0fdb5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCounts.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountListResult.Serialization.cs @@ -11,11 +11,11 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class NodeCounts + internal partial class DscNodeCountListResult { - internal static NodeCounts DeserializeNodeCounts(JsonElement element) + internal static DscNodeCountListResult DeserializeDscNodeCountListResult(JsonElement element) { - Optional> value = default; + Optional> value = default; Optional totalCount = default; foreach (var property in element.EnumerateObject()) { @@ -26,10 +26,10 @@ internal static NodeCounts DeserializeNodeCounts(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - List array = new List(); + List array = new List(); foreach (var item in property.Value.EnumerateArray()) { - array.Add(NodeCount.DeserializeNodeCount(item)); + array.Add(DscNodeCount.DeserializeDscNodeCount(item)); } value = array; continue; @@ -45,7 +45,7 @@ internal static NodeCounts DeserializeNodeCounts(JsonElement element) continue; } } - return new NodeCounts(Optional.ToList(value), Optional.ToNullable(totalCount)); + return new DscNodeCountListResult(Optional.ToList(value), Optional.ToNullable(totalCount)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCounts.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountListResult.cs similarity index 62% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCounts.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountListResult.cs index 464df8d64320a..30ce2348e850e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCounts.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountListResult.cs @@ -11,25 +11,25 @@ namespace Azure.ResourceManager.Automation.Models { /// Gets the count of nodes by count type. - internal partial class NodeCounts + internal partial class DscNodeCountListResult { - /// Initializes a new instance of NodeCounts. - internal NodeCounts() + /// Initializes a new instance of DscNodeCountListResult. + internal DscNodeCountListResult() { - Value = new ChangeTrackingList(); + Value = new ChangeTrackingList(); } - /// Initializes a new instance of NodeCounts. + /// Initializes a new instance of DscNodeCountListResult. /// Gets an array of counts. /// Gets the total number of records matching countType criteria. - internal NodeCounts(IReadOnlyList value, int? totalCount) + internal DscNodeCountListResult(IReadOnlyList value, int? totalCount) { Value = value; TotalCount = totalCount; } /// Gets an array of counts. - public IReadOnlyList Value { get; } + public IReadOnlyList Value { get; } /// Gets the total number of records matching countType criteria. public int? TotalCount { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCountProperties.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountProperties.Serialization.cs similarity index 77% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCountProperties.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountProperties.Serialization.cs index 0c37fab6b80b6..00082b1297c20 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCountProperties.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountProperties.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class NodeCountProperties + internal partial class DscNodeCountProperties { - internal static NodeCountProperties DeserializeNodeCountProperties(JsonElement element) + internal static DscNodeCountProperties DeserializeDscNodeCountProperties(JsonElement element) { Optional count = default; foreach (var property in element.EnumerateObject()) @@ -28,7 +28,7 @@ internal static NodeCountProperties DeserializeNodeCountProperties(JsonElement e continue; } } - return new NodeCountProperties(Optional.ToNullable(count)); + return new DscNodeCountProperties(Optional.ToNullable(count)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCountProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountProperties.cs similarity index 54% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCountProperties.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountProperties.cs index 2130cd1ece656..a77a62df12e96 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/NodeCountProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeCountProperties.cs @@ -7,17 +7,17 @@ namespace Azure.ResourceManager.Automation.Models { - /// The NodeCountProperties. - internal partial class NodeCountProperties + /// The DscNodeCountProperties. + internal partial class DscNodeCountProperties { - /// Initializes a new instance of NodeCountProperties. - internal NodeCountProperties() + /// Initializes a new instance of DscNodeCountProperties. + internal DscNodeCountProperties() { } - /// Initializes a new instance of NodeCountProperties. + /// Initializes a new instance of DscNodeCountProperties. /// Gets the count for the name. - internal NodeCountProperties(int? nameCount) + internal DscNodeCountProperties(int? nameCount) { NameCount = nameCount; } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeData.Serialization.cs index d7560d863314a..adffd5a35e6da 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/DscNodeData.Serialization.cs @@ -22,10 +22,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteStartObject(); writer.WritePropertyName("properties"); writer.WriteStartObject(); - if (Optional.IsDefined(LastSeen)) + if (Optional.IsDefined(LastSeenOn)) { writer.WritePropertyName("lastSeen"); - writer.WriteStringValue(LastSeen.Value, "O"); + writer.WriteStringValue(LastSeenOn.Value, "O"); } if (Optional.IsDefined(RegistrationOn)) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/GroupTypeEnum.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/GroupTypeEnum.cs deleted file mode 100644 index bdb10bf3093c6..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/GroupTypeEnum.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// Type of the HybridWorkerGroup. - public readonly partial struct GroupTypeEnum : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public GroupTypeEnum(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string UserValue = "User"; - private const string SystemValue = "System"; - - /// User. - public static GroupTypeEnum User { get; } = new GroupTypeEnum(UserValue); - /// System. - public static GroupTypeEnum System { get; } = new GroupTypeEnum(SystemValue); - /// Determines if two values are the same. - public static bool operator ==(GroupTypeEnum left, GroupTypeEnum right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(GroupTypeEnum left, GroupTypeEnum right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator GroupTypeEnum(string value) => new GroupTypeEnum(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is GroupTypeEnum other && Equals(other); - /// - public bool Equals(GroupTypeEnum other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HttpStatusCode.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HttpStatusCode.cs deleted file mode 100644 index 39f464f6ae2d8..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HttpStatusCode.cs +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// The HttpStatusCode. - public readonly partial struct HttpStatusCode : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public HttpStatusCode(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ContinueValue = "Continue"; - private const string SwitchingProtocolsValue = "SwitchingProtocols"; - private const string OKValue = "OK"; - private const string CreatedValue = "Created"; - private const string AcceptedValue = "Accepted"; - private const string NonAuthoritativeInformationValue = "NonAuthoritativeInformation"; - private const string NoContentValue = "NoContent"; - private const string ResetContentValue = "ResetContent"; - private const string PartialContentValue = "PartialContent"; - private const string MultipleChoicesValue = "MultipleChoices"; - private const string AmbiguousValue = "Ambiguous"; - private const string MovedPermanentlyValue = "MovedPermanently"; - private const string MovedValue = "Moved"; - private const string FoundValue = "Found"; - private const string RedirectValue = "Redirect"; - private const string SeeOtherValue = "SeeOther"; - private const string RedirectMethodValue = "RedirectMethod"; - private const string NotModifiedValue = "NotModified"; - private const string UseProxyValue = "UseProxy"; - private const string UnusedValue = "Unused"; - private const string TemporaryRedirectValue = "TemporaryRedirect"; - private const string RedirectKeepVerbValue = "RedirectKeepVerb"; - private const string BadRequestValue = "BadRequest"; - private const string UnauthorizedValue = "Unauthorized"; - private const string PaymentRequiredValue = "PaymentRequired"; - private const string ForbiddenValue = "Forbidden"; - private const string NotFoundValue = "NotFound"; - private const string MethodNotAllowedValue = "MethodNotAllowed"; - private const string NotAcceptableValue = "NotAcceptable"; - private const string ProxyAuthenticationRequiredValue = "ProxyAuthenticationRequired"; - private const string RequestTimeoutValue = "RequestTimeout"; - private const string ConflictValue = "Conflict"; - private const string GoneValue = "Gone"; - private const string LengthRequiredValue = "LengthRequired"; - private const string PreconditionFailedValue = "PreconditionFailed"; - private const string RequestEntityTooLargeValue = "RequestEntityTooLarge"; - private const string RequestUriTooLongValue = "RequestUriTooLong"; - private const string UnsupportedMediaTypeValue = "UnsupportedMediaType"; - private const string RequestedRangeNotSatisfiableValue = "RequestedRangeNotSatisfiable"; - private const string ExpectationFailedValue = "ExpectationFailed"; - private const string UpgradeRequiredValue = "UpgradeRequired"; - private const string InternalServerErrorValue = "InternalServerError"; - private const string NotImplementedValue = "NotImplemented"; - private const string BadGatewayValue = "BadGateway"; - private const string ServiceUnavailableValue = "ServiceUnavailable"; - private const string GatewayTimeoutValue = "GatewayTimeout"; - private const string HttpVersionNotSupportedValue = "HttpVersionNotSupported"; - - /// Continue. - public static HttpStatusCode Continue { get; } = new HttpStatusCode(ContinueValue); - /// SwitchingProtocols. - public static HttpStatusCode SwitchingProtocols { get; } = new HttpStatusCode(SwitchingProtocolsValue); - /// OK. - public static HttpStatusCode OK { get; } = new HttpStatusCode(OKValue); - /// Created. - public static HttpStatusCode Created { get; } = new HttpStatusCode(CreatedValue); - /// Accepted. - public static HttpStatusCode Accepted { get; } = new HttpStatusCode(AcceptedValue); - /// NonAuthoritativeInformation. - public static HttpStatusCode NonAuthoritativeInformation { get; } = new HttpStatusCode(NonAuthoritativeInformationValue); - /// NoContent. - public static HttpStatusCode NoContent { get; } = new HttpStatusCode(NoContentValue); - /// ResetContent. - public static HttpStatusCode ResetContent { get; } = new HttpStatusCode(ResetContentValue); - /// PartialContent. - public static HttpStatusCode PartialContent { get; } = new HttpStatusCode(PartialContentValue); - /// MultipleChoices. - public static HttpStatusCode MultipleChoices { get; } = new HttpStatusCode(MultipleChoicesValue); - /// Ambiguous. - public static HttpStatusCode Ambiguous { get; } = new HttpStatusCode(AmbiguousValue); - /// MovedPermanently. - public static HttpStatusCode MovedPermanently { get; } = new HttpStatusCode(MovedPermanentlyValue); - /// Moved. - public static HttpStatusCode Moved { get; } = new HttpStatusCode(MovedValue); - /// Found. - public static HttpStatusCode Found { get; } = new HttpStatusCode(FoundValue); - /// Redirect. - public static HttpStatusCode Redirect { get; } = new HttpStatusCode(RedirectValue); - /// SeeOther. - public static HttpStatusCode SeeOther { get; } = new HttpStatusCode(SeeOtherValue); - /// RedirectMethod. - public static HttpStatusCode RedirectMethod { get; } = new HttpStatusCode(RedirectMethodValue); - /// NotModified. - public static HttpStatusCode NotModified { get; } = new HttpStatusCode(NotModifiedValue); - /// UseProxy. - public static HttpStatusCode UseProxy { get; } = new HttpStatusCode(UseProxyValue); - /// Unused. - public static HttpStatusCode Unused { get; } = new HttpStatusCode(UnusedValue); - /// TemporaryRedirect. - public static HttpStatusCode TemporaryRedirect { get; } = new HttpStatusCode(TemporaryRedirectValue); - /// RedirectKeepVerb. - public static HttpStatusCode RedirectKeepVerb { get; } = new HttpStatusCode(RedirectKeepVerbValue); - /// BadRequest. - public static HttpStatusCode BadRequest { get; } = new HttpStatusCode(BadRequestValue); - /// Unauthorized. - public static HttpStatusCode Unauthorized { get; } = new HttpStatusCode(UnauthorizedValue); - /// PaymentRequired. - public static HttpStatusCode PaymentRequired { get; } = new HttpStatusCode(PaymentRequiredValue); - /// Forbidden. - public static HttpStatusCode Forbidden { get; } = new HttpStatusCode(ForbiddenValue); - /// NotFound. - public static HttpStatusCode NotFound { get; } = new HttpStatusCode(NotFoundValue); - /// MethodNotAllowed. - public static HttpStatusCode MethodNotAllowed { get; } = new HttpStatusCode(MethodNotAllowedValue); - /// NotAcceptable. - public static HttpStatusCode NotAcceptable { get; } = new HttpStatusCode(NotAcceptableValue); - /// ProxyAuthenticationRequired. - public static HttpStatusCode ProxyAuthenticationRequired { get; } = new HttpStatusCode(ProxyAuthenticationRequiredValue); - /// RequestTimeout. - public static HttpStatusCode RequestTimeout { get; } = new HttpStatusCode(RequestTimeoutValue); - /// Conflict. - public static HttpStatusCode Conflict { get; } = new HttpStatusCode(ConflictValue); - /// Gone. - public static HttpStatusCode Gone { get; } = new HttpStatusCode(GoneValue); - /// LengthRequired. - public static HttpStatusCode LengthRequired { get; } = new HttpStatusCode(LengthRequiredValue); - /// PreconditionFailed. - public static HttpStatusCode PreconditionFailed { get; } = new HttpStatusCode(PreconditionFailedValue); - /// RequestEntityTooLarge. - public static HttpStatusCode RequestEntityTooLarge { get; } = new HttpStatusCode(RequestEntityTooLargeValue); - /// RequestUriTooLong. - public static HttpStatusCode RequestUriTooLong { get; } = new HttpStatusCode(RequestUriTooLongValue); - /// UnsupportedMediaType. - public static HttpStatusCode UnsupportedMediaType { get; } = new HttpStatusCode(UnsupportedMediaTypeValue); - /// RequestedRangeNotSatisfiable. - public static HttpStatusCode RequestedRangeNotSatisfiable { get; } = new HttpStatusCode(RequestedRangeNotSatisfiableValue); - /// ExpectationFailed. - public static HttpStatusCode ExpectationFailed { get; } = new HttpStatusCode(ExpectationFailedValue); - /// UpgradeRequired. - public static HttpStatusCode UpgradeRequired { get; } = new HttpStatusCode(UpgradeRequiredValue); - /// InternalServerError. - public static HttpStatusCode InternalServerError { get; } = new HttpStatusCode(InternalServerErrorValue); - /// NotImplemented. - public static HttpStatusCode NotImplemented { get; } = new HttpStatusCode(NotImplementedValue); - /// BadGateway. - public static HttpStatusCode BadGateway { get; } = new HttpStatusCode(BadGatewayValue); - /// ServiceUnavailable. - public static HttpStatusCode ServiceUnavailable { get; } = new HttpStatusCode(ServiceUnavailableValue); - /// GatewayTimeout. - public static HttpStatusCode GatewayTimeout { get; } = new HttpStatusCode(GatewayTimeoutValue); - /// HttpVersionNotSupported. - public static HttpStatusCode HttpVersionNotSupported { get; } = new HttpStatusCode(HttpVersionNotSupportedValue); - /// Determines if two values are the same. - public static bool operator ==(HttpStatusCode left, HttpStatusCode right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(HttpStatusCode left, HttpStatusCode right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator HttpStatusCode(string value) => new HttpStatusCode(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is HttpStatusCode other && Equals(other); - /// - public bool Equals(HttpStatusCode other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateOrUpdateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateOrUpdateContent.cs index 43bdf36dafd48..b44d52ebd9c10 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateOrUpdateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerCreateOrUpdateContent.cs @@ -5,6 +5,8 @@ #nullable disable +using Azure.Core; + namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create hybrid runbook worker operation. @@ -18,6 +20,6 @@ public HybridRunbookWorkerCreateOrUpdateContent() /// Gets or sets the name of the resource. public string Name { get; set; } /// Azure Resource Manager Id for a virtual machine. - public string VmResourceId { get; set; } + public ResourceIdentifier VmResourceId { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerData.Serialization.cs index 003aa3547c5c1..ba118527aa7af 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerData.Serialization.cs @@ -63,8 +63,8 @@ internal static HybridRunbookWorkerData DeserializeHybridRunbookWorkerData(JsonE Optional ip = default; Optional registeredDateTime = default; Optional lastSeenDateTime = default; - Optional vmResourceId = default; - Optional workerType = default; + Optional vmResourceId = default; + Optional workerType = default; Optional workerName = default; foreach (var property in element.EnumerateObject()) { @@ -129,7 +129,12 @@ internal static HybridRunbookWorkerData DeserializeHybridRunbookWorkerData(JsonE } if (property0.NameEquals("vmResourceId")) { - vmResourceId = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + vmResourceId = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("workerType")) @@ -139,7 +144,7 @@ internal static HybridRunbookWorkerData DeserializeHybridRunbookWorkerData(JsonE property0.ThrowNonNullablePropertyIsNull(); continue; } - workerType = new WorkerType(property0.Value.GetString()); + workerType = new HybridWorkerType(property0.Value.GetString()); continue; } if (property0.NameEquals("workerName")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateParameters.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateContent.Serialization.cs similarity index 90% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateParameters.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateContent.Serialization.cs index 4866082d45b4e..264516d2fed25 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateParameters.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class HybridRunbookWorkerGroupCreateOrUpdateParameters : IUtf8JsonSerializable + public partial class HybridRunbookWorkerGroupCreateOrUpdateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateParameters.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateContent.cs similarity index 84% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateParameters.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateContent.cs index 0b186a7d55b73..4e82b55201646 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateParameters.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupCreateOrUpdateContent.cs @@ -8,10 +8,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create hybrid runbook worker group operation. - public partial class HybridRunbookWorkerGroupCreateOrUpdateParameters + public partial class HybridRunbookWorkerGroupCreateOrUpdateContent { - /// Initializes a new instance of HybridRunbookWorkerGroupCreateOrUpdateParameters. - public HybridRunbookWorkerGroupCreateOrUpdateParameters() + /// Initializes a new instance of HybridRunbookWorkerGroupCreateOrUpdateContent. + public HybridRunbookWorkerGroupCreateOrUpdateContent() { } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupData.Serialization.cs index d78a113ec7767..b7efcb0bf68f0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridRunbookWorkerGroupData.Serialization.cs @@ -39,7 +39,7 @@ internal static HybridRunbookWorkerGroupData DeserializeHybridRunbookWorkerGroup string name = default; ResourceType type = default; Optional systemData = default; - Optional groupType = default; + Optional groupType = default; Optional credential = default; foreach (var property in element.EnumerateObject()) { @@ -84,7 +84,7 @@ internal static HybridRunbookWorkerGroupData DeserializeHybridRunbookWorkerGroup property0.ThrowNonNullablePropertyIsNull(); continue; } - groupType = new GroupTypeEnum(property0.Value.GetString()); + groupType = new HybridWorkerGroup(property0.Value.GetString()); continue; } if (property0.NameEquals("credential")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridWorkerGroup.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridWorkerGroup.cs new file mode 100644 index 0000000000000..0138f4e8d0646 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridWorkerGroup.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Type of the HybridWorkerGroup. + public readonly partial struct HybridWorkerGroup : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public HybridWorkerGroup(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string UserValue = "User"; + private const string SystemValue = "System"; + + /// User. + public static HybridWorkerGroup User { get; } = new HybridWorkerGroup(UserValue); + /// System. + public static HybridWorkerGroup System { get; } = new HybridWorkerGroup(SystemValue); + /// Determines if two values are the same. + public static bool operator ==(HybridWorkerGroup left, HybridWorkerGroup right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(HybridWorkerGroup left, HybridWorkerGroup right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator HybridWorkerGroup(string value) => new HybridWorkerGroup(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HybridWorkerGroup other && Equals(other); + /// + public bool Equals(HybridWorkerGroup other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridWorkerType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridWorkerType.cs new file mode 100644 index 0000000000000..f06aabf3b7912 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/HybridWorkerType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Type of the HybridWorker. + public readonly partial struct HybridWorkerType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public HybridWorkerType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string HybridV1Value = "HybridV1"; + private const string HybridV2Value = "HybridV2"; + + /// HybridV1. + public static HybridWorkerType HybridV1 { get; } = new HybridWorkerType(HybridV1Value); + /// HybridV2. + public static HybridWorkerType HybridV2 { get; } = new HybridWorkerType(HybridV2Value); + /// Determines if two values are the same. + public static bool operator ==(HybridWorkerType left, HybridWorkerType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(HybridWorkerType left, HybridWorkerType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator HybridWorkerType(string value) => new HybridWorkerType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is HybridWorkerType other && Equals(other); + /// + public bool Equals(HybridWorkerType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobListResultV2.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobListResultV2.Serialization.cs deleted file mode 100644 index c6e8ead4c1af5..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobListResultV2.Serialization.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.Automation.Models -{ - internal partial class JobListResultV2 - { - internal static JobListResultV2 DeserializeJobListResultV2(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(JobCollectionItem.DeserializeJobCollectionItem(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new JobListResultV2(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobNavigation.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobNavigation.Serialization.cs new file mode 100644 index 0000000000000..8aeee5573d9a1 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobNavigation.Serialization.cs @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.Text.Json; +using Azure.Core; + +namespace Azure.ResourceManager.Automation.Models +{ + internal partial class JobNavigation + { + internal static JobNavigation DeserializeJobNavigation(JsonElement element) + { + Optional id = default; + foreach (var property in element.EnumerateObject()) + { + if (property.NameEquals("id")) + { + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = property.Value.GetGuid(); + continue; + } + } + return new JobNavigation(Optional.ToNullable(id)); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobNavigation.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobNavigation.cs new file mode 100644 index 0000000000000..8d7a6b66a1671 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobNavigation.cs @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Automation.Models +{ + /// Software update configuration machine run job navigation properties. + internal partial class JobNavigation + { + /// Initializes a new instance of JobNavigation. + internal JobNavigation() + { + } + + /// Initializes a new instance of JobNavigation. + /// Id of the job associated with the software update configuration run. + internal JobNavigation(Guid? id) + { + Id = id; + } + + /// Id of the job associated with the software update configuration run. + public Guid? Id { get; } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleListResult.Serialization.cs deleted file mode 100644 index 9b025d8c7ded4..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobScheduleListResult.Serialization.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Automation; - -namespace Azure.ResourceManager.Automation.Models -{ - internal partial class JobScheduleListResult - { - internal static JobScheduleListResult DeserializeJobScheduleListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(JobScheduleData.DeserializeJobScheduleData(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new JobScheduleListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStatus.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStatus.cs deleted file mode 100644 index 623c07a12920d..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStatus.cs +++ /dev/null @@ -1,84 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// Gets or sets the status of the job. - public readonly partial struct JobStatus : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public JobStatus(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string NewValue = "New"; - private const string ActivatingValue = "Activating"; - private const string RunningValue = "Running"; - private const string CompletedValue = "Completed"; - private const string FailedValue = "Failed"; - private const string StoppedValue = "Stopped"; - private const string BlockedValue = "Blocked"; - private const string SuspendedValue = "Suspended"; - private const string DisconnectedValue = "Disconnected"; - private const string SuspendingValue = "Suspending"; - private const string StoppingValue = "Stopping"; - private const string ResumingValue = "Resuming"; - private const string RemovingValue = "Removing"; - - /// New. - public static JobStatus New { get; } = new JobStatus(NewValue); - /// Activating. - public static JobStatus Activating { get; } = new JobStatus(ActivatingValue); - /// Running. - public static JobStatus Running { get; } = new JobStatus(RunningValue); - /// Completed. - public static JobStatus Completed { get; } = new JobStatus(CompletedValue); - /// Failed. - public static JobStatus Failed { get; } = new JobStatus(FailedValue); - /// Stopped. - public static JobStatus Stopped { get; } = new JobStatus(StoppedValue); - /// Blocked. - public static JobStatus Blocked { get; } = new JobStatus(BlockedValue); - /// Suspended. - public static JobStatus Suspended { get; } = new JobStatus(SuspendedValue); - /// Disconnected. - public static JobStatus Disconnected { get; } = new JobStatus(DisconnectedValue); - /// Suspending. - public static JobStatus Suspending { get; } = new JobStatus(SuspendingValue); - /// Stopping. - public static JobStatus Stopping { get; } = new JobStatus(StoppingValue); - /// Resuming. - public static JobStatus Resuming { get; } = new JobStatus(ResumingValue); - /// Removing. - public static JobStatus Removing { get; } = new JobStatus(RemovingValue); - /// Determines if two values are the same. - public static bool operator ==(JobStatus left, JobStatus right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(JobStatus left, JobStatus right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator JobStatus(string value) => new JobStatus(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is JobStatus other && Equals(other); - /// - public bool Equals(JobStatus other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStreamListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStreamListResult.Serialization.cs deleted file mode 100644 index 5eeb78d0b7a41..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStreamListResult.Serialization.cs +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; - -namespace Azure.ResourceManager.Automation.Models -{ - internal partial class JobStreamListResult - { - internal static JobStreamListResult DeserializeJobStreamListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(JobStream.DeserializeJobStream(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new JobStreamListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStreamType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStreamType.cs deleted file mode 100644 index 0b2d221f7a123..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/JobStreamType.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// Gets or sets the stream type. - public readonly partial struct JobStreamType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public JobStreamType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ProgressValue = "Progress"; - private const string OutputValue = "Output"; - private const string WarningValue = "Warning"; - private const string ErrorValue = "Error"; - private const string DebugValue = "Debug"; - private const string VerboseValue = "Verbose"; - private const string AnyValue = "Any"; - - /// Progress. - public static JobStreamType Progress { get; } = new JobStreamType(ProgressValue); - /// Output. - public static JobStreamType Output { get; } = new JobStreamType(OutputValue); - /// Warning. - public static JobStreamType Warning { get; } = new JobStreamType(WarningValue); - /// Error. - public static JobStreamType Error { get; } = new JobStreamType(ErrorValue); - /// Debug. - public static JobStreamType Debug { get; } = new JobStreamType(DebugValue); - /// Verbose. - public static JobStreamType Verbose { get; } = new JobStreamType(VerboseValue); - /// Any. - public static JobStreamType Any { get; } = new JobStreamType(AnyValue); - /// Determines if two values are the same. - public static bool operator ==(JobStreamType left, JobStreamType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(JobStreamType left, JobStreamType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator JobStreamType(string value) => new JobStreamType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is JobStreamType other && Equals(other); - /// - public bool Equals(JobStreamType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyListResult.cs deleted file mode 100644 index 398eac4073497..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/KeyListResult.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.Automation.Models -{ - /// The KeyListResult. - public partial class KeyListResult - { - /// Initializes a new instance of KeyListResult. - internal KeyListResult() - { - Keys = new ChangeTrackingList(); - } - - /// Initializes a new instance of KeyListResult. - /// Lists the automation keys. - internal KeyListResult(IReadOnlyList keys) - { - Keys = keys; - } - - /// Lists the automation keys. - public IReadOnlyList Keys { get; } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateClass.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateClassification.cs similarity index 55% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateClass.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateClassification.cs index 5071e6538e89f..c9ec17e40c01b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateClass.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateClassification.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.Automation.Models { /// Update classifications included in the software update configuration. - public readonly partial struct LinuxUpdateClass : IEquatable + public readonly partial struct LinuxUpdateClassification : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public LinuxUpdateClass(string value) + public LinuxUpdateClassification(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -28,25 +28,25 @@ public LinuxUpdateClass(string value) private const string OtherValue = "Other"; /// Unclassified. - public static LinuxUpdateClass Unclassified { get; } = new LinuxUpdateClass(UnclassifiedValue); + public static LinuxUpdateClassification Unclassified { get; } = new LinuxUpdateClassification(UnclassifiedValue); /// Critical. - public static LinuxUpdateClass Critical { get; } = new LinuxUpdateClass(CriticalValue); + public static LinuxUpdateClassification Critical { get; } = new LinuxUpdateClassification(CriticalValue); /// Security. - public static LinuxUpdateClass Security { get; } = new LinuxUpdateClass(SecurityValue); + public static LinuxUpdateClassification Security { get; } = new LinuxUpdateClassification(SecurityValue); /// Other. - public static LinuxUpdateClass Other { get; } = new LinuxUpdateClass(OtherValue); - /// Determines if two values are the same. - public static bool operator ==(LinuxUpdateClass left, LinuxUpdateClass right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(LinuxUpdateClass left, LinuxUpdateClass right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator LinuxUpdateClass(string value) => new LinuxUpdateClass(value); + public static LinuxUpdateClassification Other { get; } = new LinuxUpdateClassification(OtherValue); + /// Determines if two values are the same. + public static bool operator ==(LinuxUpdateClassification left, LinuxUpdateClassification right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(LinuxUpdateClassification left, LinuxUpdateClassification right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator LinuxUpdateClassification(string value) => new LinuxUpdateClassification(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is LinuxUpdateClass other && Equals(other); + public override bool Equals(object obj) => obj is LinuxUpdateClassification other && Equals(other); /// - public bool Equals(LinuxUpdateClass other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(LinuxUpdateClassification other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxProperties.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateConfigurationProperties.Serialization.cs similarity index 87% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxProperties.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateConfigurationProperties.Serialization.cs index 34487331d74ba..1044d262601e9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxProperties.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateConfigurationProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class LinuxProperties : IUtf8JsonSerializable + public partial class LinuxUpdateConfigurationProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -49,9 +49,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static LinuxProperties DeserializeLinuxProperties(JsonElement element) + internal static LinuxUpdateConfigurationProperties DeserializeLinuxUpdateConfigurationProperties(JsonElement element) { - Optional includedPackageClassifications = default; + Optional includedPackageClassifications = default; Optional> excludedPackageNameMasks = default; Optional> includedPackageNameMasks = default; Optional rebootSetting = default; @@ -64,7 +64,7 @@ internal static LinuxProperties DeserializeLinuxProperties(JsonElement element) property.ThrowNonNullablePropertyIsNull(); continue; } - includedPackageClassifications = new LinuxUpdateClass(property.Value.GetString()); + includedPackageClassifications = new LinuxUpdateClassification(property.Value.GetString()); continue; } if (property.NameEquals("excludedPackageNameMasks")) @@ -103,7 +103,7 @@ internal static LinuxProperties DeserializeLinuxProperties(JsonElement element) continue; } } - return new LinuxProperties(Optional.ToNullable(includedPackageClassifications), Optional.ToList(excludedPackageNameMasks), Optional.ToList(includedPackageNameMasks), rebootSetting.Value); + return new LinuxUpdateConfigurationProperties(Optional.ToNullable(includedPackageClassifications), Optional.ToList(excludedPackageNameMasks), Optional.ToList(includedPackageNameMasks), rebootSetting.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateConfigurationProperties.cs similarity index 74% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxProperties.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateConfigurationProperties.cs index e06503e313a66..ebb31a4f0f972 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/LinuxUpdateConfigurationProperties.cs @@ -11,21 +11,21 @@ namespace Azure.ResourceManager.Automation.Models { /// Linux specific update configuration. - public partial class LinuxProperties + public partial class LinuxUpdateConfigurationProperties { - /// Initializes a new instance of LinuxProperties. - public LinuxProperties() + /// Initializes a new instance of LinuxUpdateConfigurationProperties. + public LinuxUpdateConfigurationProperties() { ExcludedPackageNameMasks = new ChangeTrackingList(); IncludedPackageNameMasks = new ChangeTrackingList(); } - /// Initializes a new instance of LinuxProperties. + /// Initializes a new instance of LinuxUpdateConfigurationProperties. /// Update classifications included in the software update configuration. /// packages excluded from the software update configuration. /// packages included from the software update configuration. /// Reboot setting for the software update configuration. - internal LinuxProperties(LinuxUpdateClass? includedPackageClassifications, IList excludedPackageNameMasks, IList includedPackageNameMasks, string rebootSetting) + internal LinuxUpdateConfigurationProperties(LinuxUpdateClassification? includedPackageClassifications, IList excludedPackageNameMasks, IList includedPackageNameMasks, string rebootSetting) { IncludedPackageClassifications = includedPackageClassifications; ExcludedPackageNameMasks = excludedPackageNameMasks; @@ -34,7 +34,7 @@ internal LinuxProperties(LinuxUpdateClass? includedPackageClassifications, IList } /// Update classifications included in the software update configuration. - public LinuxUpdateClass? IncludedPackageClassifications { get; set; } + public LinuxUpdateClassification? IncludedPackageClassifications { get; set; } /// packages excluded from the software update configuration. public IList ExcludedPackageNameMasks { get; } /// packages included from the software update configuration. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleListResult.Serialization.cs deleted file mode 100644 index 37a35ffb4401d..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ModuleListResult.Serialization.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Automation; - -namespace Azure.ResourceManager.Automation.Models -{ - internal partial class ModuleListResult - { - internal static ModuleListResult DeserializeModuleListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(ModuleData.DeserializeModuleData(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new ModuleListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/OperatingSystemType.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/OperatingSystemType.Serialization.cs deleted file mode 100644 index 16780507435c2..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/OperatingSystemType.Serialization.cs +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; - -namespace Azure.ResourceManager.Automation.Models -{ - internal static partial class OperatingSystemTypeExtensions - { - public static string ToSerialString(this OperatingSystemType value) => value switch - { - OperatingSystemType.Windows => "Windows", - OperatingSystemType.Linux => "Linux", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown OperatingSystemType value.") - }; - - public static OperatingSystemType ToOperatingSystemType(this string value) - { - if (string.Equals(value, "Windows", StringComparison.InvariantCultureIgnoreCase)) return OperatingSystemType.Windows; - if (string.Equals(value, "Linux", StringComparison.InvariantCultureIgnoreCase)) return OperatingSystemType.Linux; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown OperatingSystemType value."); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ProvisioningState.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ProvisioningState.cs deleted file mode 100644 index 8ad8cd6fefe45..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ProvisioningState.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// The provisioning state of the job. - public readonly partial struct ProvisioningState : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ProvisioningState(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string CompletedValue = "Completed"; - private const string FailedValue = "Failed"; - private const string RunningValue = "Running"; - - /// Completed. - public static ProvisioningState Completed { get; } = new ProvisioningState(CompletedValue); - /// Failed. - public static ProvisioningState Failed { get; } = new ProvisioningState(FailedValue); - /// Running. - public static ProvisioningState Running { get; } = new ProvisioningState(RunningValue); - /// Determines if two values are the same. - public static bool operator ==(ProvisioningState left, ProvisioningState right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ProvisioningState left, ProvisioningState right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ProvisioningState(string value) => new ProvisioningState(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ProvisioningState other && Equals(other); - /// - public bool Equals(ProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagOperator.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagOperator.Serialization.cs similarity index 50% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagOperator.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagOperator.Serialization.cs index 922d485f4ade6..a8eeed5621320 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagOperator.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagOperator.Serialization.cs @@ -9,20 +9,20 @@ namespace Azure.ResourceManager.Automation.Models { - internal static partial class TagOperatorExtensions + internal static partial class QueryTagOperatorExtensions { - public static string ToSerialString(this TagOperator value) => value switch + public static string ToSerialString(this QueryTagOperator value) => value switch { - TagOperator.All => "All", - TagOperator.Any => "Any", - _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TagOperator value.") + QueryTagOperator.All => "All", + QueryTagOperator.Any => "Any", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown QueryTagOperator value.") }; - public static TagOperator ToTagOperator(this string value) + public static QueryTagOperator ToQueryTagOperator(this string value) { - if (string.Equals(value, "All", StringComparison.InvariantCultureIgnoreCase)) return TagOperator.All; - if (string.Equals(value, "Any", StringComparison.InvariantCultureIgnoreCase)) return TagOperator.Any; - throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown TagOperator value."); + if (string.Equals(value, "All", StringComparison.InvariantCultureIgnoreCase)) return QueryTagOperator.All; + if (string.Equals(value, "Any", StringComparison.InvariantCultureIgnoreCase)) return QueryTagOperator.Any; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown QueryTagOperator value."); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagOperator.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagOperator.cs similarity index 91% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagOperator.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagOperator.cs index 2ceacd831275f..f3fa683d8fda3 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagOperator.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagOperator.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.Automation.Models { /// Filter VMs by Any or All specified tags. - public enum TagOperator + public enum QueryTagOperator { /// All. All, diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagSettingsProperties.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagSettingsProperties.Serialization.cs similarity index 87% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagSettingsProperties.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagSettingsProperties.Serialization.cs index 03e85e09edbd7..79811fc140d65 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagSettingsProperties.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagSettingsProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class TagSettingsProperties : IUtf8JsonSerializable + public partial class QueryTagSettingsProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -40,10 +40,10 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static TagSettingsProperties DeserializeTagSettingsProperties(JsonElement element) + internal static QueryTagSettingsProperties DeserializeQueryTagSettingsProperties(JsonElement element) { Optional>> tags = default; - Optional filterOperator = default; + Optional filterOperator = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("tags")) @@ -73,11 +73,11 @@ internal static TagSettingsProperties DeserializeTagSettingsProperties(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - filterOperator = property.Value.GetString().ToTagOperator(); + filterOperator = property.Value.GetString().ToQueryTagOperator(); continue; } } - return new TagSettingsProperties(Optional.ToDictionary(tags), Optional.ToNullable(filterOperator)); + return new QueryTagSettingsProperties(Optional.ToDictionary(tags), Optional.ToNullable(filterOperator)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagSettingsProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagSettingsProperties.cs similarity index 66% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagSettingsProperties.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagSettingsProperties.cs index e89463e6b5def..3b4a14f97b53d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TagSettingsProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/QueryTagSettingsProperties.cs @@ -11,18 +11,18 @@ namespace Azure.ResourceManager.Automation.Models { /// Tag filter information for the VM. - public partial class TagSettingsProperties + public partial class QueryTagSettingsProperties { - /// Initializes a new instance of TagSettingsProperties. - public TagSettingsProperties() + /// Initializes a new instance of QueryTagSettingsProperties. + public QueryTagSettingsProperties() { Tags = new ChangeTrackingDictionary>(); } - /// Initializes a new instance of TagSettingsProperties. + /// Initializes a new instance of QueryTagSettingsProperties. /// Dictionary of tags with its list of values. /// Filter VMs by Any or All specified tags. - internal TagSettingsProperties(IDictionary> tags, TagOperator? filterOperator) + internal QueryTagSettingsProperties(IDictionary> tags, QueryTagOperator? filterOperator) { Tags = tags; FilterOperator = filterOperator; @@ -31,6 +31,6 @@ internal TagSettingsProperties(IDictionary> tags, TagOpera /// Dictionary of tags with its list of values. public IDictionary> Tags { get; } /// Filter VMs by Any or All specified tags. - public TagOperator? FilterOperator { get; set; } + public QueryTagOperator? FilterOperator { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraftUndoEditResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraftUndoEditResult.Serialization.cs index 505bb0569e472..a5b1cbbdae406 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraftUndoEditResult.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraftUndoEditResult.Serialization.cs @@ -14,7 +14,7 @@ public partial class RunbookDraftUndoEditResult { internal static RunbookDraftUndoEditResult DeserializeRunbookDraftUndoEditResult(JsonElement element) { - Optional statusCode = default; + Optional statusCode = default; Optional requestId = default; foreach (var property in element.EnumerateObject()) { @@ -25,7 +25,7 @@ internal static RunbookDraftUndoEditResult DeserializeRunbookDraftUndoEditResult property.ThrowNonNullablePropertyIsNull(); continue; } - statusCode = new HttpStatusCode(property.Value.GetString()); + statusCode = new AutomationHttpStatusCode(property.Value.GetString()); continue; } if (property.NameEquals("requestId")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraftUndoEditResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraftUndoEditResult.cs index b81ca87b5800d..87339862de81b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraftUndoEditResult.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookDraftUndoEditResult.cs @@ -18,14 +18,14 @@ internal RunbookDraftUndoEditResult() /// Initializes a new instance of RunbookDraftUndoEditResult. /// /// - internal RunbookDraftUndoEditResult(HttpStatusCode? statusCode, string requestId) + internal RunbookDraftUndoEditResult(AutomationHttpStatusCode? statusCode, string requestId) { StatusCode = statusCode; RequestId = requestId; } /// Gets the status code. - public HttpStatusCode? StatusCode { get; } + public AutomationHttpStatusCode? StatusCode { get; } /// Gets the request id. public string RequestId { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookListResult.Serialization.cs deleted file mode 100644 index 00564b4aefad4..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookListResult.Serialization.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Automation; - -namespace Azure.ResourceManager.Automation.Models -{ - internal partial class RunbookListResult - { - internal static RunbookListResult DeserializeRunbookListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(RunbookData.DeserializeRunbookData(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new RunbookListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameter.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameterDefinition.Serialization.cs similarity index 88% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameter.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameterDefinition.Serialization.cs index 3a3ebc7b93fb1..169e9c25e4e3b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameter.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameterDefinition.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class RunbookParameter : IUtf8JsonSerializable + public partial class RunbookParameterDefinition : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -38,7 +38,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static RunbookParameter DeserializeRunbookParameter(JsonElement element) + internal static RunbookParameterDefinition DeserializeRunbookParameterDefinition(JsonElement element) { Optional type = default; Optional isMandatory = default; @@ -77,7 +77,7 @@ internal static RunbookParameter DeserializeRunbookParameter(JsonElement element continue; } } - return new RunbookParameter(type.Value, Optional.ToNullable(isMandatory), Optional.ToNullable(position), defaultValue.Value); + return new RunbookParameterDefinition(type.Value, Optional.ToNullable(isMandatory), Optional.ToNullable(position), defaultValue.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameter.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameterDefinition.cs similarity index 84% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameter.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameterDefinition.cs index 835616735ed1c..b08330d64ca53 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameter.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookParameterDefinition.cs @@ -8,19 +8,19 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the runbook parameter type. - public partial class RunbookParameter + public partial class RunbookParameterDefinition { - /// Initializes a new instance of RunbookParameter. - public RunbookParameter() + /// Initializes a new instance of RunbookParameterDefinition. + public RunbookParameterDefinition() { } - /// Initializes a new instance of RunbookParameter. + /// Initializes a new instance of RunbookParameterDefinition. /// Gets or sets the type of the parameter. /// Gets or sets a Boolean value to indicate whether the parameter is mandatory or not. /// Get or sets the position of the parameter. /// Gets or sets the default value of parameter. - internal RunbookParameter(string runbookParameterType, bool? isMandatory, int? position, string defaultValue) + internal RunbookParameterDefinition(string runbookParameterType, bool? isMandatory, int? position, string defaultValue) { RunbookParameterType = runbookParameterType; IsMandatory = isMandatory; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJob.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJob.Serialization.cs similarity index 90% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJob.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJob.Serialization.cs index 0dcf2a25786f2..ab6b1b0373873 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJob.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJob.Serialization.cs @@ -12,9 +12,9 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class TestJob + public partial class RunbookTestJob { - internal static TestJob DeserializeTestJob(JsonElement element) + internal static RunbookTestJob DeserializeRunbookTestJob(JsonElement element) { Optional creationTime = default; Optional status = default; @@ -125,7 +125,7 @@ internal static TestJob DeserializeTestJob(JsonElement element) continue; } } - return new TestJob(Optional.ToNullable(creationTime), status.Value, statusDetails.Value, runOn.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), exception.Value, Optional.ToNullable(lastModifiedTime), Optional.ToNullable(lastStatusModifiedTime), Optional.ToDictionary(parameters), Optional.ToNullable(logActivityTrace)); + return new RunbookTestJob(Optional.ToNullable(creationTime), status.Value, statusDetails.Value, runOn.Value, Optional.ToNullable(startTime), Optional.ToNullable(endTime), exception.Value, Optional.ToNullable(lastModifiedTime), Optional.ToNullable(lastStatusModifiedTime), Optional.ToDictionary(parameters), Optional.ToNullable(logActivityTrace)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJob.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJob.cs similarity index 86% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJob.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJob.cs index 48f6231d0da9a..5fadfedec5864 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJob.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJob.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the test job. - public partial class TestJob + public partial class RunbookTestJob { - /// Initializes a new instance of TestJob. - internal TestJob() + /// Initializes a new instance of RunbookTestJob. + internal RunbookTestJob() { Parameters = new ChangeTrackingDictionary(); } - /// Initializes a new instance of TestJob. + /// Initializes a new instance of RunbookTestJob. /// Gets or sets the creation time of the test job. /// Gets or sets the status of the test job. /// Gets or sets the status details of the test job. @@ -32,7 +32,7 @@ internal TestJob() /// Gets or sets the last status modified time of the test job. /// Gets or sets the parameters of the test job. /// The activity-level tracing options of the runbook. - internal TestJob(DateTimeOffset? createdOn, string status, string statusDetails, string runOn, DateTimeOffset? startOn, DateTimeOffset? endOn, string exception, DateTimeOffset? lastModifiedOn, DateTimeOffset? lastStatusModifiedOn, IReadOnlyDictionary parameters, int? logActivityTrace) + internal RunbookTestJob(DateTimeOffset? createdOn, string status, string statusDetails, string runOn, DateTimeOffset? startOn, DateTimeOffset? endOn, string exception, DateTimeOffset? lastModifiedOn, DateTimeOffset? lastStatusModifiedOn, IReadOnlyDictionary parameters, int? logActivityTrace) { CreatedOn = createdOn; Status = status; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJobCreateContent.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.Serialization.cs similarity index 92% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJobCreateContent.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.Serialization.cs index c681d19e26808..1e27e8fed1e86 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJobCreateContent.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.Serialization.cs @@ -10,7 +10,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class TestJobCreateContent : IUtf8JsonSerializable + public partial class RunbookTestJobCreateContent : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJobCreateContent.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.cs similarity index 79% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJobCreateContent.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.cs index d501fa5e3363e..05eb744bd64c6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TestJobCreateContent.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTestJobCreateContent.cs @@ -11,10 +11,10 @@ namespace Azure.ResourceManager.Automation.Models { /// The parameters supplied to the create test job operation. - public partial class TestJobCreateContent + public partial class RunbookTestJobCreateContent { - /// Initializes a new instance of TestJobCreateContent. - public TestJobCreateContent() + /// Initializes a new instance of RunbookTestJobCreateContent. + public RunbookTestJobCreateContent() { Parameters = new ChangeTrackingDictionary(); } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTypeEnum.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTypeEnum.cs deleted file mode 100644 index 85a4dda4e03a1..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/RunbookTypeEnum.cs +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// Gets or sets the type of the runbook. - public readonly partial struct RunbookTypeEnum : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public RunbookTypeEnum(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ScriptValue = "Script"; - private const string GraphValue = "Graph"; - private const string PowerShellWorkflowValue = "PowerShellWorkflow"; - private const string PowerShellValue = "PowerShell"; - private const string GraphPowerShellWorkflowValue = "GraphPowerShellWorkflow"; - private const string GraphPowerShellValue = "GraphPowerShell"; - private const string Python2Value = "Python2"; - private const string Python3Value = "Python3"; - - /// Script. - public static RunbookTypeEnum Script { get; } = new RunbookTypeEnum(ScriptValue); - /// Graph. - public static RunbookTypeEnum Graph { get; } = new RunbookTypeEnum(GraphValue); - /// PowerShellWorkflow. - public static RunbookTypeEnum PowerShellWorkflow { get; } = new RunbookTypeEnum(PowerShellWorkflowValue); - /// PowerShell. - public static RunbookTypeEnum PowerShell { get; } = new RunbookTypeEnum(PowerShellValue); - /// GraphPowerShellWorkflow. - public static RunbookTypeEnum GraphPowerShellWorkflow { get; } = new RunbookTypeEnum(GraphPowerShellWorkflowValue); - /// GraphPowerShell. - public static RunbookTypeEnum GraphPowerShell { get; } = new RunbookTypeEnum(GraphPowerShellValue); - /// Python2. - public static RunbookTypeEnum Python2 { get; } = new RunbookTypeEnum(Python2Value); - /// Python3. - public static RunbookTypeEnum Python3 { get; } = new RunbookTypeEnum(Python3Value); - /// Determines if two values are the same. - public static bool operator ==(RunbookTypeEnum left, RunbookTypeEnum right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(RunbookTypeEnum left, RunbookTypeEnum right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator RunbookTypeEnum(string value) => new RunbookTypeEnum(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is RunbookTypeEnum other && Equals(other); - /// - public bool Equals(RunbookTypeEnum other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleDay.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleDay.cs deleted file mode 100644 index 3a0dea90be034..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleDay.cs +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// Day of the occurrence. Must be one of monday, tuesday, wednesday, thursday, friday, saturday, sunday. - public readonly partial struct ScheduleDay : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ScheduleDay(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string MondayValue = "Monday"; - private const string TuesdayValue = "Tuesday"; - private const string WednesdayValue = "Wednesday"; - private const string ThursdayValue = "Thursday"; - private const string FridayValue = "Friday"; - private const string SaturdayValue = "Saturday"; - private const string SundayValue = "Sunday"; - - /// Monday. - public static ScheduleDay Monday { get; } = new ScheduleDay(MondayValue); - /// Tuesday. - public static ScheduleDay Tuesday { get; } = new ScheduleDay(TuesdayValue); - /// Wednesday. - public static ScheduleDay Wednesday { get; } = new ScheduleDay(WednesdayValue); - /// Thursday. - public static ScheduleDay Thursday { get; } = new ScheduleDay(ThursdayValue); - /// Friday. - public static ScheduleDay Friday { get; } = new ScheduleDay(FridayValue); - /// Saturday. - public static ScheduleDay Saturday { get; } = new ScheduleDay(SaturdayValue); - /// Sunday. - public static ScheduleDay Sunday { get; } = new ScheduleDay(SundayValue); - /// Determines if two values are the same. - public static bool operator ==(ScheduleDay left, ScheduleDay right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ScheduleDay left, ScheduleDay right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ScheduleDay(string value) => new ScheduleDay(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ScheduleDay other && Equals(other); - /// - public bool Equals(ScheduleDay other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleFrequency.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleFrequency.cs deleted file mode 100644 index 1c0e454759039..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleFrequency.cs +++ /dev/null @@ -1,63 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// Gets or sets the frequency of the schedule. - public readonly partial struct ScheduleFrequency : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public ScheduleFrequency(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string OneTimeValue = "OneTime"; - private const string DayValue = "Day"; - private const string HourValue = "Hour"; - private const string WeekValue = "Week"; - private const string MonthValue = "Month"; - private const string MinuteValue = "Minute"; - - /// OneTime. - public static ScheduleFrequency OneTime { get; } = new ScheduleFrequency(OneTimeValue); - /// Day. - public static ScheduleFrequency Day { get; } = new ScheduleFrequency(DayValue); - /// Hour. - public static ScheduleFrequency Hour { get; } = new ScheduleFrequency(HourValue); - /// Week. - public static ScheduleFrequency Week { get; } = new ScheduleFrequency(WeekValue); - /// Month. - public static ScheduleFrequency Month { get; } = new ScheduleFrequency(MonthValue); - /// The minimum allowed interval for Minute schedules is 15 minutes. - public static ScheduleFrequency Minute { get; } = new ScheduleFrequency(MinuteValue); - /// Determines if two values are the same. - public static bool operator ==(ScheduleFrequency left, ScheduleFrequency right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(ScheduleFrequency left, ScheduleFrequency right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator ScheduleFrequency(string value) => new ScheduleFrequency(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is ScheduleFrequency other && Equals(other); - /// - public bool Equals(ScheduleFrequency other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleListResult.Serialization.cs deleted file mode 100644 index 99c5209e85410..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/ScheduleListResult.Serialization.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Automation; - -namespace Azure.ResourceManager.Automation.Models -{ - internal partial class ScheduleListResult - { - internal static ScheduleListResult DeserializeScheduleListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(ScheduleData.DeserializeScheduleData(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new ScheduleListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SkuNameEnum.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SkuNameEnum.cs deleted file mode 100644 index 38c7765847c5d..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SkuNameEnum.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// Gets or sets the SKU name of the account. - public readonly partial struct SkuNameEnum : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public SkuNameEnum(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string FreeValue = "Free"; - private const string BasicValue = "Basic"; - - /// Free. - public static SkuNameEnum Free { get; } = new SkuNameEnum(FreeValue); - /// Basic. - public static SkuNameEnum Basic { get; } = new SkuNameEnum(BasicValue); - /// Determines if two values are the same. - public static bool operator ==(SkuNameEnum left, SkuNameEnum right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(SkuNameEnum left, SkuNameEnum right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator SkuNameEnum(string value) => new SkuNameEnum(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SkuNameEnum other && Equals(other); - /// - public bool Equals(SkuNameEnum other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationCollectionItem.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationCollectionItem.Serialization.cs index 8d6c1a7d160d7..9bad443062080 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationCollectionItem.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationCollectionItem.Serialization.cs @@ -16,10 +16,10 @@ public partial class SoftwareUpdateConfigurationCollectionItem internal static SoftwareUpdateConfigurationCollectionItem DeserializeSoftwareUpdateConfigurationCollectionItem(JsonElement element) { Optional name = default; - Optional id = default; - Optional updateConfiguration = default; + Optional id = default; + Optional updateConfiguration = default; Optional tasks = default; - Optional frequency = default; + Optional frequency = default; Optional startTime = default; Optional creationTime = default; Optional lastModifiedTime = default; @@ -34,7 +34,12 @@ internal static SoftwareUpdateConfigurationCollectionItem DeserializeSoftwareUpd } if (property.NameEquals("id")) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("properties")) @@ -53,7 +58,7 @@ internal static SoftwareUpdateConfigurationCollectionItem DeserializeSoftwareUpd property0.ThrowNonNullablePropertyIsNull(); continue; } - updateConfiguration = UpdateConfiguration.DeserializeUpdateConfiguration(property0.Value); + updateConfiguration = SoftwareUpdateConfigurationSpecificProperties.DeserializeSoftwareUpdateConfigurationSpecificProperties(property0.Value); continue; } if (property0.NameEquals("tasks")) @@ -73,7 +78,7 @@ internal static SoftwareUpdateConfigurationCollectionItem DeserializeSoftwareUpd property0.ThrowNonNullablePropertyIsNull(); continue; } - frequency = new ScheduleFrequency(property0.Value.GetString()); + frequency = new AutomationScheduleFrequency(property0.Value.GetString()); continue; } if (property0.NameEquals("startTime")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationCollectionItem.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationCollectionItem.cs index d0a388d2b9670..9d909ca04c7f0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationCollectionItem.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationCollectionItem.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.Automation.Models { @@ -27,8 +28,8 @@ internal SoftwareUpdateConfigurationCollectionItem() /// Creation time of the software update configuration, which only appears in the response. /// Last time software update configuration was modified, which only appears in the response. /// Provisioning state for the software update configuration, which only appears in the response. - /// ext run time of the update. - internal SoftwareUpdateConfigurationCollectionItem(string name, string id, UpdateConfiguration updateConfiguration, SoftwareUpdateConfigurationTasks tasks, ScheduleFrequency? frequency, DateTimeOffset? startOn, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string provisioningState, DateTimeOffset? nextRun) + /// ext run time of the update. + internal SoftwareUpdateConfigurationCollectionItem(string name, ResourceIdentifier id, SoftwareUpdateConfigurationSpecificProperties updateConfiguration, SoftwareUpdateConfigurationTasks tasks, AutomationScheduleFrequency? frequency, DateTimeOffset? startOn, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string provisioningState, DateTimeOffset? nextRunOn) { Name = name; Id = id; @@ -39,19 +40,19 @@ internal SoftwareUpdateConfigurationCollectionItem(string name, string id, Updat CreatedOn = createdOn; LastModifiedOn = lastModifiedOn; ProvisioningState = provisioningState; - NextRun = nextRun; + NextRunOn = nextRunOn; } /// Name of the software update configuration. public string Name { get; } /// Resource Id of the software update configuration. - public string Id { get; } + public ResourceIdentifier Id { get; } /// Update specific properties of the software update configuration. - public UpdateConfiguration UpdateConfiguration { get; } + public SoftwareUpdateConfigurationSpecificProperties UpdateConfiguration { get; } /// Pre and Post Tasks defined. public SoftwareUpdateConfigurationTasks Tasks { get; } /// execution frequency of the schedule associated with the software update configuration. - public ScheduleFrequency? Frequency { get; } + public AutomationScheduleFrequency? Frequency { get; } /// the start time of the update. public DateTimeOffset? StartOn { get; } /// Creation time of the software update configuration, which only appears in the response. @@ -61,6 +62,6 @@ internal SoftwareUpdateConfigurationCollectionItem(string name, string id, Updat /// Provisioning state for the software update configuration, which only appears in the response. public string ProvisioningState { get; } /// ext run time of the update. - public DateTimeOffset? NextRun { get; } + public DateTimeOffset? NextRunOn { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationData.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationData.Serialization.cs index f91170e9ca106..97ba5d6ea3275 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationData.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationData.Serialization.cs @@ -44,10 +44,10 @@ internal static SoftwareUpdateConfigurationData DeserializeSoftwareUpdateConfigu string name = default; ResourceType type = default; Optional systemData = default; - UpdateConfiguration updateConfiguration = default; - SUCScheduleProperties scheduleInfo = default; + SoftwareUpdateConfigurationSpecificProperties updateConfiguration = default; + SoftwareUpdateConfigurationScheduleProperties scheduleInfo = default; Optional provisioningState = default; - Optional error = default; + Optional error = default; Optional creationTime = default; Optional createdBy = default; Optional lastModifiedTime = default; @@ -91,12 +91,12 @@ internal static SoftwareUpdateConfigurationData DeserializeSoftwareUpdateConfigu { if (property0.NameEquals("updateConfiguration")) { - updateConfiguration = UpdateConfiguration.DeserializeUpdateConfiguration(property0.Value); + updateConfiguration = SoftwareUpdateConfigurationSpecificProperties.DeserializeSoftwareUpdateConfigurationSpecificProperties(property0.Value); continue; } if (property0.NameEquals("scheduleInfo")) { - scheduleInfo = SUCScheduleProperties.DeserializeSUCScheduleProperties(property0.Value); + scheduleInfo = SoftwareUpdateConfigurationScheduleProperties.DeserializeSoftwareUpdateConfigurationScheduleProperties(property0.Value); continue; } if (property0.NameEquals("provisioningState")) @@ -111,7 +111,7 @@ internal static SoftwareUpdateConfigurationData DeserializeSoftwareUpdateConfigu property0.ThrowNonNullablePropertyIsNull(); continue; } - error = ErrorResponse.DeserializeErrorResponse(property0.Value); + error = AutomationResponseError.DeserializeAutomationResponseError(property0.Value); continue; } if (property0.NameEquals("creationTime")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRun.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRun.Serialization.cs index 589d19fa23c71..4c7c8952227fc 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRun.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRun.Serialization.cs @@ -8,7 +8,6 @@ using System; using System.Text.Json; using Azure.Core; -using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Automation.Models { @@ -17,10 +16,10 @@ public partial class SoftwareUpdateConfigurationMachineRun internal static SoftwareUpdateConfigurationMachineRun DeserializeSoftwareUpdateConfigurationMachineRun(JsonElement element) { Optional name = default; - Optional id = default; - Optional targetComputer = default; + Optional id = default; + Optional targetComputer = default; Optional targetComputerType = default; - Optional softwareUpdateConfiguration = default; + Optional softwareUpdateConfiguration = default; Optional status = default; Optional osType = default; Optional correlationId = default; @@ -28,12 +27,12 @@ internal static SoftwareUpdateConfigurationMachineRun DeserializeSoftwareUpdateC Optional startTime = default; Optional endTime = default; Optional configuredDuration = default; - Optional job = default; + Optional job = default; Optional creationTime = default; Optional createdBy = default; Optional lastModifiedTime = default; Optional lastModifiedBy = default; - Optional error = default; + Optional error = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("name")) @@ -43,7 +42,12 @@ internal static SoftwareUpdateConfigurationMachineRun DeserializeSoftwareUpdateC } if (property.NameEquals("id")) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("properties")) @@ -57,7 +61,12 @@ internal static SoftwareUpdateConfigurationMachineRun DeserializeSoftwareUpdateC { if (property0.NameEquals("targetComputer")) { - targetComputer = property0.Value.GetString(); + if (property0.Value.ValueKind == JsonValueKind.Null) + { + property0.ThrowNonNullablePropertyIsNull(); + continue; + } + targetComputer = new ResourceIdentifier(property0.Value.GetString()); continue; } if (property0.NameEquals("targetComputerType")) @@ -72,7 +81,7 @@ internal static SoftwareUpdateConfigurationMachineRun DeserializeSoftwareUpdateC property0.ThrowNonNullablePropertyIsNull(); continue; } - softwareUpdateConfiguration = UpdateConfigurationNavigation.DeserializeUpdateConfigurationNavigation(property0.Value); + softwareUpdateConfiguration = SoftwareUpdateConfigurationNavigation.DeserializeSoftwareUpdateConfigurationNavigation(property0.Value); continue; } if (property0.NameEquals("status")) @@ -142,7 +151,7 @@ internal static SoftwareUpdateConfigurationMachineRun DeserializeSoftwareUpdateC property0.ThrowNonNullablePropertyIsNull(); continue; } - job = JsonSerializer.Deserialize(property0.Value.ToString()); + job = JobNavigation.DeserializeJobNavigation(property0.Value); continue; } if (property0.NameEquals("creationTime")) @@ -182,14 +191,14 @@ internal static SoftwareUpdateConfigurationMachineRun DeserializeSoftwareUpdateC property0.ThrowNonNullablePropertyIsNull(); continue; } - error = ErrorResponse.DeserializeErrorResponse(property0.Value); + error = AutomationResponseError.DeserializeAutomationResponseError(property0.Value); continue; } } continue; } } - return new SoftwareUpdateConfigurationMachineRun(name.Value, id.Value, targetComputer.Value, targetComputerType.Value, softwareUpdateConfiguration.Value, status.Value, osType.Value, Optional.ToNullable(correlationId), Optional.ToNullable(sourceComputerId), Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToNullable(configuredDuration), job, Optional.ToNullable(creationTime), createdBy.Value, Optional.ToNullable(lastModifiedTime), lastModifiedBy.Value, error.Value); + return new SoftwareUpdateConfigurationMachineRun(name.Value, id.Value, targetComputer.Value, targetComputerType.Value, softwareUpdateConfiguration.Value, status.Value, osType.Value, Optional.ToNullable(correlationId), Optional.ToNullable(sourceComputerId), Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToNullable(configuredDuration), job.Value, Optional.ToNullable(creationTime), createdBy.Value, Optional.ToNullable(lastModifiedTime), lastModifiedBy.Value, error.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRun.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRun.cs index 3e99ac39a81c7..7560f822a1d46 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRun.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationMachineRun.cs @@ -7,7 +7,6 @@ using System; using Azure.Core; -using Azure.ResourceManager.Resources.Models; namespace Azure.ResourceManager.Automation.Models { @@ -22,7 +21,7 @@ internal SoftwareUpdateConfigurationMachineRun() /// Initializes a new instance of SoftwareUpdateConfigurationMachineRun. /// Name of the software update configuration machine run. /// Resource Id of the software update configuration machine run. - /// name of the updated computer. + /// name of the updated computer. /// type of the updated computer. /// software update configuration triggered this run. /// Status of the software update configuration machine run. @@ -38,11 +37,11 @@ internal SoftwareUpdateConfigurationMachineRun() /// Last time resource was modified, which only appears in the response. /// lastModifiedBy property, which only appears in the response. /// Details of provisioning error. - internal SoftwareUpdateConfigurationMachineRun(string name, string id, string targetComputer, string targetComputerType, UpdateConfigurationNavigation softwareUpdateConfiguration, string status, string osType, Guid? correlationId, Guid? sourceComputerId, DateTimeOffset? startOn, DateTimeOffset? endOn, TimeSpan? configuredDuration, SubResource job, DateTimeOffset? createdOn, string createdBy, DateTimeOffset? lastModifiedOn, string lastModifiedBy, ErrorResponse error) + internal SoftwareUpdateConfigurationMachineRun(string name, ResourceIdentifier id, ResourceIdentifier targetComputerId, string targetComputerType, SoftwareUpdateConfigurationNavigation softwareUpdateConfiguration, string status, string osType, Guid? correlationId, Guid? sourceComputerId, DateTimeOffset? startOn, DateTimeOffset? endOn, TimeSpan? configuredDuration, JobNavigation job, DateTimeOffset? createdOn, string createdBy, DateTimeOffset? lastModifiedOn, string lastModifiedBy, AutomationResponseError error) { Name = name; Id = id; - TargetComputer = targetComputer; + TargetComputerId = targetComputerId; TargetComputerType = targetComputerType; SoftwareUpdateConfiguration = softwareUpdateConfiguration; Status = status; @@ -63,13 +62,13 @@ internal SoftwareUpdateConfigurationMachineRun(string name, string id, string ta /// Name of the software update configuration machine run. public string Name { get; } /// Resource Id of the software update configuration machine run. - public string Id { get; } + public ResourceIdentifier Id { get; } /// name of the updated computer. - public string TargetComputer { get; } + public ResourceIdentifier TargetComputerId { get; } /// type of the updated computer. public string TargetComputerType { get; } /// software update configuration triggered this run. - internal UpdateConfigurationNavigation SoftwareUpdateConfiguration { get; } + internal SoftwareUpdateConfigurationNavigation SoftwareUpdateConfiguration { get; } /// Name of the software update configuration triggered the software update configuration run. public string SoftwareUpdateName { @@ -91,9 +90,9 @@ public string SoftwareUpdateName /// configured duration for the software update configuration run. public TimeSpan? ConfiguredDuration { get; } /// Job associated with the software update configuration machine run. - internal SubResource Job { get; } - /// Gets Id. - public ResourceIdentifier JobId + internal JobNavigation Job { get; } + /// Id of the job associated with the software update configuration run. + public Guid? JobId { get => Job?.Id; } @@ -107,6 +106,6 @@ public ResourceIdentifier JobId /// lastModifiedBy property, which only appears in the response. public string LastModifiedBy { get; } /// Details of provisioning error. - public ErrorResponse Error { get; } + public AutomationResponseError Error { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfigurationNavigation.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationNavigation.Serialization.cs similarity index 67% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfigurationNavigation.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationNavigation.Serialization.cs index 7286a6bd23d15..6124a51da0130 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfigurationNavigation.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationNavigation.Serialization.cs @@ -10,9 +10,9 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class UpdateConfigurationNavigation + internal partial class SoftwareUpdateConfigurationNavigation { - internal static UpdateConfigurationNavigation DeserializeUpdateConfigurationNavigation(JsonElement element) + internal static SoftwareUpdateConfigurationNavigation DeserializeSoftwareUpdateConfigurationNavigation(JsonElement element) { Optional name = default; foreach (var property in element.EnumerateObject()) @@ -23,7 +23,7 @@ internal static UpdateConfigurationNavigation DeserializeUpdateConfigurationNavi continue; } } - return new UpdateConfigurationNavigation(name.Value); + return new SoftwareUpdateConfigurationNavigation(name.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfigurationNavigation.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationNavigation.cs similarity index 62% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfigurationNavigation.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationNavigation.cs index 6d80830a53ae8..4f5f190e3a8d0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfigurationNavigation.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationNavigation.cs @@ -8,16 +8,16 @@ namespace Azure.ResourceManager.Automation.Models { /// Software update configuration Run Navigation model. - internal partial class UpdateConfigurationNavigation + internal partial class SoftwareUpdateConfigurationNavigation { - /// Initializes a new instance of UpdateConfigurationNavigation. - internal UpdateConfigurationNavigation() + /// Initializes a new instance of SoftwareUpdateConfigurationNavigation. + internal SoftwareUpdateConfigurationNavigation() { } - /// Initializes a new instance of UpdateConfigurationNavigation. + /// Initializes a new instance of SoftwareUpdateConfigurationNavigation. /// Name of the software update configuration triggered the software update configuration run. - internal UpdateConfigurationNavigation(string name) + internal SoftwareUpdateConfigurationNavigation(string name) { Name = name; } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationOperatingSystemType.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationOperatingSystemType.Serialization.cs new file mode 100644 index 0000000000000..603e9092dd8e8 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationOperatingSystemType.Serialization.cs @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; + +namespace Azure.ResourceManager.Automation.Models +{ + internal static partial class SoftwareUpdateConfigurationOperatingSystemTypeExtensions + { + public static string ToSerialString(this SoftwareUpdateConfigurationOperatingSystemType value) => value switch + { + SoftwareUpdateConfigurationOperatingSystemType.Windows => "Windows", + SoftwareUpdateConfigurationOperatingSystemType.Linux => "Linux", + _ => throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SoftwareUpdateConfigurationOperatingSystemType value.") + }; + + public static SoftwareUpdateConfigurationOperatingSystemType ToSoftwareUpdateConfigurationOperatingSystemType(this string value) + { + if (string.Equals(value, "Windows", StringComparison.InvariantCultureIgnoreCase)) return SoftwareUpdateConfigurationOperatingSystemType.Windows; + if (string.Equals(value, "Linux", StringComparison.InvariantCultureIgnoreCase)) return SoftwareUpdateConfigurationOperatingSystemType.Linux; + throw new ArgumentOutOfRangeException(nameof(value), value, "Unknown SoftwareUpdateConfigurationOperatingSystemType value."); + } + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/OperatingSystemType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationOperatingSystemType.cs similarity index 86% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/OperatingSystemType.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationOperatingSystemType.cs index 85e3ffff93d63..6620918342ff8 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/OperatingSystemType.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationOperatingSystemType.cs @@ -8,7 +8,7 @@ namespace Azure.ResourceManager.Automation.Models { /// Target operating system for the software update configuration. - public enum OperatingSystemType + public enum SoftwareUpdateConfigurationOperatingSystemType { /// Windows. Windows, diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRun.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRun.Serialization.cs index 4ca1a16b4a6df..6040711d554f5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRun.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRun.Serialization.cs @@ -16,8 +16,8 @@ public partial class SoftwareUpdateConfigurationRun internal static SoftwareUpdateConfigurationRun DeserializeSoftwareUpdateConfigurationRun(JsonElement element) { Optional name = default; - Optional id = default; - Optional softwareUpdateConfiguration = default; + Optional id = default; + Optional softwareUpdateConfiguration = default; Optional status = default; Optional configuredDuration = default; Optional osType = default; @@ -39,7 +39,12 @@ internal static SoftwareUpdateConfigurationRun DeserializeSoftwareUpdateConfigur } if (property.NameEquals("id")) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("properties")) @@ -58,7 +63,7 @@ internal static SoftwareUpdateConfigurationRun DeserializeSoftwareUpdateConfigur property0.ThrowNonNullablePropertyIsNull(); continue; } - softwareUpdateConfiguration = UpdateConfigurationNavigation.DeserializeUpdateConfigurationNavigation(property0.Value); + softwareUpdateConfiguration = SoftwareUpdateConfigurationNavigation.DeserializeSoftwareUpdateConfigurationNavigation(property0.Value); continue; } if (property0.NameEquals("status")) diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRun.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRun.cs index 70e41cae83727..243c661093364 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRun.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRun.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.Automation.Models { @@ -33,7 +34,7 @@ internal SoftwareUpdateConfigurationRun() /// Last time resource was modified, which only appears in the response. /// LastModifiedBy property, which only appears in the response. /// Software update configuration tasks triggered in this run. - internal SoftwareUpdateConfigurationRun(string name, string id, UpdateConfigurationNavigation softwareUpdateConfiguration, string status, TimeSpan? configuredDuration, string osType, DateTimeOffset? startOn, DateTimeOffset? endOn, int? computerCount, int? failedCount, DateTimeOffset? createdOn, string createdBy, DateTimeOffset? lastModifiedOn, string lastModifiedBy, SoftwareUpdateConfigurationRunTasks tasks) + internal SoftwareUpdateConfigurationRun(string name, ResourceIdentifier id, SoftwareUpdateConfigurationNavigation softwareUpdateConfiguration, string status, TimeSpan? configuredDuration, string osType, DateTimeOffset? startOn, DateTimeOffset? endOn, int? computerCount, int? failedCount, DateTimeOffset? createdOn, string createdBy, DateTimeOffset? lastModifiedOn, string lastModifiedBy, SoftwareUpdateConfigurationRunTasks tasks) { Name = name; Id = id; @@ -55,9 +56,9 @@ internal SoftwareUpdateConfigurationRun(string name, string id, UpdateConfigurat /// Name of the software update configuration run. public string Name { get; } /// Resource Id of the software update configuration run. - public string Id { get; } + public ResourceIdentifier Id { get; } /// software update configuration triggered this run. - internal UpdateConfigurationNavigation SoftwareUpdateConfiguration { get; } + internal SoftwareUpdateConfigurationNavigation SoftwareUpdateConfiguration { get; } /// Name of the software update configuration triggered the software update configuration run. public string SoftwareUpdateName { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunTaskProperties.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunTaskProperties.Serialization.cs index ec34891b0d7f3..7e16a419405ba 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunTaskProperties.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunTaskProperties.Serialization.cs @@ -5,6 +5,7 @@ #nullable disable +using System; using System.Text.Json; using Azure.Core; @@ -16,7 +17,7 @@ internal static SoftwareUpdateConfigurationRunTaskProperties DeserializeSoftware { Optional status = default; Optional source = default; - Optional jobId = default; + Optional jobId = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("status")) @@ -31,11 +32,16 @@ internal static SoftwareUpdateConfigurationRunTaskProperties DeserializeSoftware } if (property.NameEquals("jobId")) { - jobId = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + jobId = property.Value.GetGuid(); continue; } } - return new SoftwareUpdateConfigurationRunTaskProperties(status.Value, source.Value, jobId.Value); + return new SoftwareUpdateConfigurationRunTaskProperties(status.Value, source.Value, Optional.ToNullable(jobId)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunTaskProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunTaskProperties.cs index 45572963d3875..2d42af86140f0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunTaskProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationRunTaskProperties.cs @@ -5,6 +5,8 @@ #nullable disable +using System; + namespace Azure.ResourceManager.Automation.Models { /// Task properties of the software update configuration. @@ -19,7 +21,7 @@ internal SoftwareUpdateConfigurationRunTaskProperties() /// The status of the task. /// The name of the source of the task. /// The job id of the task. - internal SoftwareUpdateConfigurationRunTaskProperties(string status, string source, string jobId) + internal SoftwareUpdateConfigurationRunTaskProperties(string status, string source, Guid? jobId) { Status = status; Source = source; @@ -31,6 +33,6 @@ internal SoftwareUpdateConfigurationRunTaskProperties(string status, string sour /// The name of the source of the task. public string Source { get; } /// The job id of the task. - public string JobId { get; } + public Guid? JobId { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SUCScheduleProperties.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationScheduleProperties.Serialization.cs similarity index 83% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SUCScheduleProperties.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationScheduleProperties.Serialization.cs index 68abf0f053395..00d9cf9fdc60d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SUCScheduleProperties.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationScheduleProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class SUCScheduleProperties : IUtf8JsonSerializable + public partial class SoftwareUpdateConfigurationScheduleProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -21,44 +21,44 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("startTime"); writer.WriteStringValue(StartOn.Value, "O"); } - if (Optional.IsDefined(ExpiryOn)) + if (Optional.IsDefined(ExpireOn)) { - if (ExpiryOn != null) + if (ExpireOn != null) { writer.WritePropertyName("expiryTime"); - writer.WriteStringValue(ExpiryOn.Value, "O"); + writer.WriteStringValue(ExpireOn.Value, "O"); } else { writer.WriteNull("expiryTime"); } } - if (Optional.IsDefined(ExpiryTimeOffsetMinutes)) + if (Optional.IsDefined(ExpireInMinutes)) { writer.WritePropertyName("expiryTimeOffsetMinutes"); - writer.WriteNumberValue(ExpiryTimeOffsetMinutes.Value); + writer.WriteNumberValue(ExpireInMinutes.Value); } if (Optional.IsDefined(IsEnabled)) { writer.WritePropertyName("isEnabled"); writer.WriteBooleanValue(IsEnabled.Value); } - if (Optional.IsDefined(NextRun)) + if (Optional.IsDefined(NextRunOn)) { - if (NextRun != null) + if (NextRunOn != null) { writer.WritePropertyName("nextRun"); - writer.WriteStringValue(NextRun.Value, "O"); + writer.WriteStringValue(NextRunOn.Value, "O"); } else { writer.WriteNull("nextRun"); } } - if (Optional.IsDefined(NextRunOffsetMinutes)) + if (Optional.IsDefined(NextRunInMinutes)) { writer.WritePropertyName("nextRunOffsetMinutes"); - writer.WriteNumberValue(NextRunOffsetMinutes.Value); + writer.WriteNumberValue(NextRunInMinutes.Value); } if (Optional.IsDefined(Interval)) { @@ -98,7 +98,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static SUCScheduleProperties DeserializeSUCScheduleProperties(JsonElement element) + internal static SoftwareUpdateConfigurationScheduleProperties DeserializeSoftwareUpdateConfigurationScheduleProperties(JsonElement element) { Optional startTime = default; Optional startTimeOffsetMinutes = default; @@ -108,9 +108,9 @@ internal static SUCScheduleProperties DeserializeSUCScheduleProperties(JsonEleme Optional nextRun = default; Optional nextRunOffsetMinutes = default; Optional interval = default; - Optional frequency = default; + Optional frequency = default; Optional timeZone = default; - Optional advancedSchedule = default; + Optional advancedSchedule = default; Optional creationTime = default; Optional lastModifiedTime = default; Optional description = default; @@ -203,7 +203,7 @@ internal static SUCScheduleProperties DeserializeSUCScheduleProperties(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - frequency = new ScheduleFrequency(property.Value.GetString()); + frequency = new AutomationScheduleFrequency(property.Value.GetString()); continue; } if (property.NameEquals("timeZone")) @@ -218,7 +218,7 @@ internal static SUCScheduleProperties DeserializeSUCScheduleProperties(JsonEleme property.ThrowNonNullablePropertyIsNull(); continue; } - advancedSchedule = AdvancedSchedule.DeserializeAdvancedSchedule(property.Value); + advancedSchedule = AutomationAdvancedSchedule.DeserializeAutomationAdvancedSchedule(property.Value); continue; } if (property.NameEquals("creationTime")) @@ -247,7 +247,7 @@ internal static SUCScheduleProperties DeserializeSUCScheduleProperties(JsonEleme continue; } } - return new SUCScheduleProperties(Optional.ToNullable(startTime), Optional.ToNullable(startTimeOffsetMinutes), Optional.ToNullable(expiryTime), Optional.ToNullable(expiryTimeOffsetMinutes), Optional.ToNullable(isEnabled), Optional.ToNullable(nextRun), Optional.ToNullable(nextRunOffsetMinutes), Optional.ToNullable(interval), Optional.ToNullable(frequency), timeZone.Value, advancedSchedule.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); + return new SoftwareUpdateConfigurationScheduleProperties(Optional.ToNullable(startTime), Optional.ToNullable(startTimeOffsetMinutes), Optional.ToNullable(expiryTime), Optional.ToNullable(expiryTimeOffsetMinutes), Optional.ToNullable(isEnabled), Optional.ToNullable(nextRun), Optional.ToNullable(nextRunOffsetMinutes), Optional.ToNullable(interval), Optional.ToNullable(frequency), timeZone.Value, advancedSchedule.Value, Optional.ToNullable(creationTime), Optional.ToNullable(lastModifiedTime), description.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SUCScheduleProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationScheduleProperties.cs similarity index 60% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SUCScheduleProperties.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationScheduleProperties.cs index f59473309984b..7e0dc64c812db 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SUCScheduleProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationScheduleProperties.cs @@ -10,21 +10,21 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of schedule parameters. - public partial class SUCScheduleProperties + public partial class SoftwareUpdateConfigurationScheduleProperties { - /// Initializes a new instance of SUCScheduleProperties. - public SUCScheduleProperties() + /// Initializes a new instance of SoftwareUpdateConfigurationScheduleProperties. + public SoftwareUpdateConfigurationScheduleProperties() { } - /// Initializes a new instance of SUCScheduleProperties. + /// Initializes a new instance of SoftwareUpdateConfigurationScheduleProperties. /// Gets or sets the start time of the schedule. - /// Gets the start time's offset in minutes. - /// Gets or sets the end time of the schedule. - /// Gets or sets the expiry time's offset in minutes. + /// Gets the start time's offset in minutes. + /// Gets or sets the end time of the schedule. + /// Gets or sets the expiry time's offset in minutes. /// Gets or sets a value indicating whether this schedule is enabled. - /// Gets or sets the next run time of the schedule. - /// Gets or sets the next run time's offset in minutes. + /// Gets or sets the next run time of the schedule. + /// Gets or sets the next run time's offset in minutes. /// Gets or sets the interval of the schedule. /// Gets or sets the frequency of the schedule. /// Gets or sets the time zone of the schedule. @@ -32,15 +32,15 @@ public SUCScheduleProperties() /// Gets or sets the creation time. /// Gets or sets the last modified time. /// Gets or sets the description. - internal SUCScheduleProperties(DateTimeOffset? startOn, double? startTimeOffsetMinutes, DateTimeOffset? expiryOn, double? expiryTimeOffsetMinutes, bool? isEnabled, DateTimeOffset? nextRun, double? nextRunOffsetMinutes, long? interval, ScheduleFrequency? frequency, string timeZone, AdvancedSchedule advancedSchedule, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) + internal SoftwareUpdateConfigurationScheduleProperties(DateTimeOffset? startOn, double? startInMinutes, DateTimeOffset? expireOn, double? expireInMinutes, bool? isEnabled, DateTimeOffset? nextRunOn, double? nextRunInMinutes, long? interval, AutomationScheduleFrequency? frequency, string timeZone, AutomationAdvancedSchedule advancedSchedule, DateTimeOffset? createdOn, DateTimeOffset? lastModifiedOn, string description) { StartOn = startOn; - StartTimeOffsetMinutes = startTimeOffsetMinutes; - ExpiryOn = expiryOn; - ExpiryTimeOffsetMinutes = expiryTimeOffsetMinutes; + StartInMinutes = startInMinutes; + ExpireOn = expireOn; + ExpireInMinutes = expireInMinutes; IsEnabled = isEnabled; - NextRun = nextRun; - NextRunOffsetMinutes = nextRunOffsetMinutes; + NextRunOn = nextRunOn; + NextRunInMinutes = nextRunInMinutes; Interval = interval; Frequency = frequency; TimeZone = timeZone; @@ -53,25 +53,25 @@ internal SUCScheduleProperties(DateTimeOffset? startOn, double? startTimeOffsetM /// Gets or sets the start time of the schedule. public DateTimeOffset? StartOn { get; set; } /// Gets the start time's offset in minutes. - public double? StartTimeOffsetMinutes { get; } + public double? StartInMinutes { get; } /// Gets or sets the end time of the schedule. - public DateTimeOffset? ExpiryOn { get; set; } + public DateTimeOffset? ExpireOn { get; set; } /// Gets or sets the expiry time's offset in minutes. - public double? ExpiryTimeOffsetMinutes { get; set; } + public double? ExpireInMinutes { get; set; } /// Gets or sets a value indicating whether this schedule is enabled. public bool? IsEnabled { get; set; } /// Gets or sets the next run time of the schedule. - public DateTimeOffset? NextRun { get; set; } + public DateTimeOffset? NextRunOn { get; set; } /// Gets or sets the next run time's offset in minutes. - public double? NextRunOffsetMinutes { get; set; } + public double? NextRunInMinutes { get; set; } /// Gets or sets the interval of the schedule. public long? Interval { get; set; } /// Gets or sets the frequency of the schedule. - public ScheduleFrequency? Frequency { get; set; } + public AutomationScheduleFrequency? Frequency { get; set; } /// Gets or sets the time zone of the schedule. public string TimeZone { get; set; } /// Gets or sets the advanced schedule. - public AdvancedSchedule AdvancedSchedule { get; set; } + public AutomationAdvancedSchedule AdvancedSchedule { get; set; } /// Gets or sets the creation time. public DateTimeOffset? CreatedOn { get; set; } /// Gets or sets the last modified time. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfiguration.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationSpecificProperties.Serialization.cs similarity index 80% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfiguration.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationSpecificProperties.Serialization.cs index 4ad3ffb01ffa7..8a16d36a274b5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfiguration.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationSpecificProperties.Serialization.cs @@ -12,7 +12,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class UpdateConfiguration : IUtf8JsonSerializable + public partial class SoftwareUpdateConfigurationSpecificProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -62,20 +62,20 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static UpdateConfiguration DeserializeUpdateConfiguration(JsonElement element) + internal static SoftwareUpdateConfigurationSpecificProperties DeserializeSoftwareUpdateConfigurationSpecificProperties(JsonElement element) { - OperatingSystemType operatingSystem = default; - Optional windows = default; - Optional linux = default; + SoftwareUpdateConfigurationOperatingSystemType operatingSystem = default; + Optional windows = default; + Optional linux = default; Optional duration = default; Optional> azureVirtualMachines = default; Optional> nonAzureComputerNames = default; - Optional targets = default; + Optional targets = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("operatingSystem")) { - operatingSystem = property.Value.GetString().ToOperatingSystemType(); + operatingSystem = property.Value.GetString().ToSoftwareUpdateConfigurationOperatingSystemType(); continue; } if (property.NameEquals("windows")) @@ -85,7 +85,7 @@ internal static UpdateConfiguration DeserializeUpdateConfiguration(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - windows = WindowsProperties.DeserializeWindowsProperties(property.Value); + windows = WindowsUpdateConfigurationProperties.DeserializeWindowsUpdateConfigurationProperties(property.Value); continue; } if (property.NameEquals("linux")) @@ -95,7 +95,7 @@ internal static UpdateConfiguration DeserializeUpdateConfiguration(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - linux = LinuxProperties.DeserializeLinuxProperties(property.Value); + linux = LinuxUpdateConfigurationProperties.DeserializeLinuxUpdateConfigurationProperties(property.Value); continue; } if (property.NameEquals("duration")) @@ -145,11 +145,11 @@ internal static UpdateConfiguration DeserializeUpdateConfiguration(JsonElement e property.ThrowNonNullablePropertyIsNull(); continue; } - targets = TargetProperties.DeserializeTargetProperties(property.Value); + targets = SoftwareUpdateConfigurationTargetProperties.DeserializeSoftwareUpdateConfigurationTargetProperties(property.Value); continue; } } - return new UpdateConfiguration(operatingSystem, windows.Value, linux.Value, Optional.ToNullable(duration), Optional.ToList(azureVirtualMachines), Optional.ToList(nonAzureComputerNames), targets.Value); + return new SoftwareUpdateConfigurationSpecificProperties(operatingSystem, windows.Value, linux.Value, Optional.ToNullable(duration), Optional.ToList(azureVirtualMachines), Optional.ToList(nonAzureComputerNames), targets.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfiguration.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationSpecificProperties.cs similarity index 71% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfiguration.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationSpecificProperties.cs index 2b997582b61f4..69c692e2189a7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/UpdateConfiguration.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationSpecificProperties.cs @@ -12,18 +12,18 @@ namespace Azure.ResourceManager.Automation.Models { /// Update specific properties of the software update configuration. - public partial class UpdateConfiguration + public partial class SoftwareUpdateConfigurationSpecificProperties { - /// Initializes a new instance of UpdateConfiguration. + /// Initializes a new instance of SoftwareUpdateConfigurationSpecificProperties. /// operating system of target machines. - public UpdateConfiguration(OperatingSystemType operatingSystem) + public SoftwareUpdateConfigurationSpecificProperties(SoftwareUpdateConfigurationOperatingSystemType operatingSystem) { OperatingSystem = operatingSystem; AzureVirtualMachines = new ChangeTrackingList(); NonAzureComputerNames = new ChangeTrackingList(); } - /// Initializes a new instance of UpdateConfiguration. + /// Initializes a new instance of SoftwareUpdateConfigurationSpecificProperties. /// operating system of target machines. /// Windows specific update configuration. /// Linux specific update configuration. @@ -31,7 +31,7 @@ public UpdateConfiguration(OperatingSystemType operatingSystem) /// List of azure resource Ids for azure virtual machines targeted by the software update configuration. /// List of names of non-azure machines targeted by the software update configuration. /// Group targets for the software update configuration. - internal UpdateConfiguration(OperatingSystemType operatingSystem, WindowsProperties windows, LinuxProperties linux, TimeSpan? duration, IList azureVirtualMachines, IList nonAzureComputerNames, TargetProperties targets) + internal SoftwareUpdateConfigurationSpecificProperties(SoftwareUpdateConfigurationOperatingSystemType operatingSystem, WindowsUpdateConfigurationProperties windows, LinuxUpdateConfigurationProperties linux, TimeSpan? duration, IList azureVirtualMachines, IList nonAzureComputerNames, SoftwareUpdateConfigurationTargetProperties targets) { OperatingSystem = operatingSystem; Windows = windows; @@ -43,11 +43,11 @@ internal UpdateConfiguration(OperatingSystemType operatingSystem, WindowsPropert } /// operating system of target machines. - public OperatingSystemType OperatingSystem { get; set; } + public SoftwareUpdateConfigurationOperatingSystemType OperatingSystem { get; set; } /// Windows specific update configuration. - public WindowsProperties Windows { get; set; } + public WindowsUpdateConfigurationProperties Windows { get; set; } /// Linux specific update configuration. - public LinuxProperties Linux { get; set; } + public LinuxUpdateConfigurationProperties Linux { get; set; } /// Maximum time allowed for the software update configuration run. Duration needs to be specified using the format PT[n]H[n]M[n]S as per ISO8601. public TimeSpan? Duration { get; set; } /// List of azure resource Ids for azure virtual machines targeted by the software update configuration. @@ -55,6 +55,6 @@ internal UpdateConfiguration(OperatingSystemType operatingSystem, WindowsPropert /// List of names of non-azure machines targeted by the software update configuration. public IList NonAzureComputerNames { get; } /// Group targets for the software update configuration. - public TargetProperties Targets { get; set; } + public SoftwareUpdateConfigurationTargetProperties Targets { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TargetProperties.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTargetProperties.Serialization.cs similarity index 88% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TargetProperties.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTargetProperties.Serialization.cs index e7018ad7f28a8..f171d2cb301ba 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TargetProperties.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTargetProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class TargetProperties : IUtf8JsonSerializable + public partial class SoftwareUpdateConfigurationTargetProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -39,7 +39,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static TargetProperties DeserializeTargetProperties(JsonElement element) + internal static SoftwareUpdateConfigurationTargetProperties DeserializeSoftwareUpdateConfigurationTargetProperties(JsonElement element) { Optional> azureQueries = default; Optional> nonAzureQueries = default; @@ -76,7 +76,7 @@ internal static TargetProperties DeserializeTargetProperties(JsonElement element continue; } } - return new TargetProperties(Optional.ToList(azureQueries), Optional.ToList(nonAzureQueries)); + return new SoftwareUpdateConfigurationTargetProperties(Optional.ToList(azureQueries), Optional.ToList(nonAzureQueries)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TargetProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTargetProperties.cs similarity index 70% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TargetProperties.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTargetProperties.cs index 9387ef1db3276..8241a3a37cbc0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TargetProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTargetProperties.cs @@ -11,19 +11,19 @@ namespace Azure.ResourceManager.Automation.Models { /// Group specific to the update configuration. - public partial class TargetProperties + public partial class SoftwareUpdateConfigurationTargetProperties { - /// Initializes a new instance of TargetProperties. - public TargetProperties() + /// Initializes a new instance of SoftwareUpdateConfigurationTargetProperties. + public SoftwareUpdateConfigurationTargetProperties() { AzureQueries = new ChangeTrackingList(); NonAzureQueries = new ChangeTrackingList(); } - /// Initializes a new instance of TargetProperties. + /// Initializes a new instance of SoftwareUpdateConfigurationTargetProperties. /// List of Azure queries in the software update configuration. /// List of non Azure queries in the software update configuration. - internal TargetProperties(IList azureQueries, IList nonAzureQueries) + internal SoftwareUpdateConfigurationTargetProperties(IList azureQueries, IList nonAzureQueries) { AzureQueries = azureQueries; NonAzureQueries = nonAzureQueries; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TaskProperties.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTaskProperties.Serialization.cs similarity index 86% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TaskProperties.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTaskProperties.Serialization.cs index abb8c6ccffdfb..bdf0415ed7428 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TaskProperties.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTaskProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class TaskProperties : IUtf8JsonSerializable + public partial class SoftwareUpdateConfigurationTaskProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -35,7 +35,7 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static TaskProperties DeserializeTaskProperties(JsonElement element) + internal static SoftwareUpdateConfigurationTaskProperties DeserializeSoftwareUpdateConfigurationTaskProperties(JsonElement element) { Optional> parameters = default; Optional source = default; @@ -62,7 +62,7 @@ internal static TaskProperties DeserializeTaskProperties(JsonElement element) continue; } } - return new TaskProperties(Optional.ToDictionary(parameters), source.Value); + return new SoftwareUpdateConfigurationTaskProperties(Optional.ToDictionary(parameters), source.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TaskProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTaskProperties.cs similarity index 67% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TaskProperties.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTaskProperties.cs index 3faa4d0ee320e..c23daa507f6f6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TaskProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTaskProperties.cs @@ -11,18 +11,18 @@ namespace Azure.ResourceManager.Automation.Models { /// Task properties of the software update configuration. - public partial class TaskProperties + public partial class SoftwareUpdateConfigurationTaskProperties { - /// Initializes a new instance of TaskProperties. - public TaskProperties() + /// Initializes a new instance of SoftwareUpdateConfigurationTaskProperties. + public SoftwareUpdateConfigurationTaskProperties() { Parameters = new ChangeTrackingDictionary(); } - /// Initializes a new instance of TaskProperties. + /// Initializes a new instance of SoftwareUpdateConfigurationTaskProperties. /// Gets or sets the parameters of the task. /// Gets or sets the name of the runbook. - internal TaskProperties(IDictionary parameters, string source) + internal SoftwareUpdateConfigurationTaskProperties(IDictionary parameters, string source) { Parameters = parameters; Source = source; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTasks.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTasks.Serialization.cs index 368dbd0b75c3e..a2eb49f49751a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTasks.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTasks.Serialization.cs @@ -30,8 +30,8 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) internal static SoftwareUpdateConfigurationTasks DeserializeSoftwareUpdateConfigurationTasks(JsonElement element) { - Optional preTask = default; - Optional postTask = default; + Optional preTask = default; + Optional postTask = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("preTask")) @@ -41,7 +41,7 @@ internal static SoftwareUpdateConfigurationTasks DeserializeSoftwareUpdateConfig property.ThrowNonNullablePropertyIsNull(); continue; } - preTask = TaskProperties.DeserializeTaskProperties(property.Value); + preTask = SoftwareUpdateConfigurationTaskProperties.DeserializeSoftwareUpdateConfigurationTaskProperties(property.Value); continue; } if (property.NameEquals("postTask")) @@ -51,7 +51,7 @@ internal static SoftwareUpdateConfigurationTasks DeserializeSoftwareUpdateConfig property.ThrowNonNullablePropertyIsNull(); continue; } - postTask = TaskProperties.DeserializeTaskProperties(property.Value); + postTask = SoftwareUpdateConfigurationTaskProperties.DeserializeSoftwareUpdateConfigurationTaskProperties(property.Value); continue; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTasks.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTasks.cs index c4f5025743fc0..944717d2d7494 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTasks.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SoftwareUpdateConfigurationTasks.cs @@ -18,15 +18,15 @@ public SoftwareUpdateConfigurationTasks() /// Initializes a new instance of SoftwareUpdateConfigurationTasks. /// Pre task properties. /// Post task properties. - internal SoftwareUpdateConfigurationTasks(TaskProperties preTask, TaskProperties postTask) + internal SoftwareUpdateConfigurationTasks(SoftwareUpdateConfigurationTaskProperties preTask, SoftwareUpdateConfigurationTaskProperties postTask) { PreTask = preTask; PostTask = postTask; } /// Pre task properties. - public TaskProperties PreTask { get; set; } + public SoftwareUpdateConfigurationTaskProperties PreTask { get; set; } /// Post task properties. - public TaskProperties PostTask { get; set; } + public SoftwareUpdateConfigurationTaskProperties PostTask { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlListResult.Serialization.cs deleted file mode 100644 index b5ed5476c162a..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlListResult.Serialization.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Automation; - -namespace Azure.ResourceManager.Automation.Models -{ - internal partial class SourceControlListResult - { - internal static SourceControlListResult DeserializeSourceControlListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(SourceControlData.DeserializeSourceControlData(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new SourceControlListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlProvisioningState.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlProvisioningState.cs new file mode 100644 index 0000000000000..bd21056994a63 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlProvisioningState.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The provisioning state of the job. + public readonly partial struct SourceControlProvisioningState : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SourceControlProvisioningState(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string CompletedValue = "Completed"; + private const string FailedValue = "Failed"; + private const string RunningValue = "Running"; + + /// Completed. + public static SourceControlProvisioningState Completed { get; } = new SourceControlProvisioningState(CompletedValue); + /// Failed. + public static SourceControlProvisioningState Failed { get; } = new SourceControlProvisioningState(FailedValue); + /// Running. + public static SourceControlProvisioningState Running { get; } = new SourceControlProvisioningState(RunningValue); + /// Determines if two values are the same. + public static bool operator ==(SourceControlProvisioningState left, SourceControlProvisioningState right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SourceControlProvisioningState left, SourceControlProvisioningState right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SourceControlProvisioningState(string value) => new SourceControlProvisioningState(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SourceControlProvisioningState other && Equals(other); + /// + public bool Equals(SourceControlProvisioningState other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSecurityTokenProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSecurityTokenProperties.cs index 8e0e2f4f06644..c9c83417498e1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSecurityTokenProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSecurityTokenProperties.cs @@ -20,6 +20,6 @@ public SourceControlSecurityTokenProperties() /// The refresh token. public string RefreshToken { get; set; } /// The token type. Must be either PersonalAccessToken or Oauth. - public TokenType? TokenType { get; set; } + public SourceControlTokenType? TokenType { get; set; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSourceType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSourceType.cs new file mode 100644 index 0000000000000..6d3a88a81fa28 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSourceType.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The source type. Must be one of VsoGit, VsoTfvc, GitHub. + public readonly partial struct SourceControlSourceType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SourceControlSourceType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string VsoGitValue = "VsoGit"; + private const string VsoTfvcValue = "VsoTfvc"; + private const string GitHubValue = "GitHub"; + + /// VsoGit. + public static SourceControlSourceType VsoGit { get; } = new SourceControlSourceType(VsoGitValue); + /// VsoTfvc. + public static SourceControlSourceType VsoTfvc { get; } = new SourceControlSourceType(VsoTfvcValue); + /// GitHub. + public static SourceControlSourceType GitHub { get; } = new SourceControlSourceType(GitHubValue); + /// Determines if two values are the same. + public static bool operator ==(SourceControlSourceType left, SourceControlSourceType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SourceControlSourceType left, SourceControlSourceType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SourceControlSourceType(string value) => new SourceControlSourceType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SourceControlSourceType other && Equals(other); + /// + public bool Equals(SourceControlSourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlStreamType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlStreamType.cs new file mode 100644 index 0000000000000..3501800685f47 --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlStreamType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The type of the sync job stream. + public readonly partial struct SourceControlStreamType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SourceControlStreamType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string ErrorValue = "Error"; + private const string OutputValue = "Output"; + + /// Error. + public static SourceControlStreamType Error { get; } = new SourceControlStreamType(ErrorValue); + /// Output. + public static SourceControlStreamType Output { get; } = new SourceControlStreamType(OutputValue); + /// Determines if two values are the same. + public static bool operator ==(SourceControlStreamType left, SourceControlStreamType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SourceControlStreamType left, SourceControlStreamType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SourceControlStreamType(string value) => new SourceControlStreamType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SourceControlStreamType other && Equals(other); + /// + public bool Equals(SourceControlStreamType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJob.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJob.Serialization.cs index fb1a912f209b2..ae9b029c66487 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJob.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJob.Serialization.cs @@ -22,10 +22,10 @@ internal static SourceControlSyncJob DeserializeSourceControlSyncJob(JsonElement Optional systemData = default; Optional sourceControlSyncJobId = default; Optional creationTime = default; - Optional provisioningState = default; + Optional provisioningState = default; Optional startTime = default; Optional endTime = default; - Optional syncType = default; + Optional syncType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) @@ -84,7 +84,7 @@ internal static SourceControlSyncJob DeserializeSourceControlSyncJob(JsonElement property0.ThrowNonNullablePropertyIsNull(); continue; } - provisioningState = new ProvisioningState(property0.Value.GetString()); + provisioningState = new SourceControlProvisioningState(property0.Value.GetString()); continue; } if (property0.NameEquals("startTime")) @@ -114,7 +114,7 @@ internal static SourceControlSyncJob DeserializeSourceControlSyncJob(JsonElement property0.ThrowNonNullablePropertyIsNull(); continue; } - syncType = new SyncType(property0.Value.GetString()); + syncType = new SourceControlSyncType(property0.Value.GetString()); continue; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJob.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJob.cs index 74fc2f320caa9..390a5c10e011b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJob.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJob.cs @@ -30,7 +30,7 @@ internal SourceControlSyncJob() /// The start time of the job. /// The end time of the job. /// The sync type. - internal SourceControlSyncJob(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string sourceControlSyncJobId, DateTimeOffset? createdOn, ProvisioningState? provisioningState, DateTimeOffset? startOn, DateTimeOffset? endOn, SyncType? syncType) : base(id, name, resourceType, systemData) + internal SourceControlSyncJob(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, string sourceControlSyncJobId, DateTimeOffset? createdOn, SourceControlProvisioningState? provisioningState, DateTimeOffset? startOn, DateTimeOffset? endOn, SourceControlSyncType? syncType) : base(id, name, resourceType, systemData) { SourceControlSyncJobId = sourceControlSyncJobId; CreatedOn = createdOn; @@ -45,12 +45,12 @@ internal SourceControlSyncJob(ResourceIdentifier id, string name, ResourceType r /// The creation time of the job. public DateTimeOffset? CreatedOn { get; } /// The provisioning state of the job. - public ProvisioningState? ProvisioningState { get; } + public SourceControlProvisioningState? ProvisioningState { get; } /// The start time of the job. public DateTimeOffset? StartOn { get; } /// The end time of the job. public DateTimeOffset? EndOn { get; } /// The sync type. - public SyncType? SyncType { get; } + public SourceControlSyncType? SyncType { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobById.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobResult.Serialization.cs similarity index 77% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobById.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobResult.Serialization.cs index 22d58be8fca7b..86f97466b127c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobById.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobResult.Serialization.cs @@ -11,23 +11,28 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class SourceControlSyncJobById + public partial class SourceControlSyncJobResult { - internal static SourceControlSyncJobById DeserializeSourceControlSyncJobById(JsonElement element) + internal static SourceControlSyncJobResult DeserializeSourceControlSyncJobResult(JsonElement element) { - Optional id = default; + Optional id = default; Optional sourceControlSyncJobId = default; Optional creationTime = default; - Optional provisioningState = default; + Optional provisioningState = default; Optional startTime = default; Optional endTime = default; - Optional syncType = default; + Optional syncType = default; Optional exception = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("properties")) @@ -61,7 +66,7 @@ internal static SourceControlSyncJobById DeserializeSourceControlSyncJobById(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - provisioningState = new ProvisioningState(property0.Value.GetString()); + provisioningState = new SourceControlProvisioningState(property0.Value.GetString()); continue; } if (property0.NameEquals("startTime")) @@ -91,7 +96,7 @@ internal static SourceControlSyncJobById DeserializeSourceControlSyncJobById(Jso property0.ThrowNonNullablePropertyIsNull(); continue; } - syncType = new SyncType(property0.Value.GetString()); + syncType = new SourceControlSyncType(property0.Value.GetString()); continue; } if (property0.NameEquals("exception")) @@ -103,7 +108,7 @@ internal static SourceControlSyncJobById DeserializeSourceControlSyncJobById(Jso continue; } } - return new SourceControlSyncJobById(id.Value, sourceControlSyncJobId.Value, Optional.ToNullable(creationTime), Optional.ToNullable(provisioningState), Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToNullable(syncType), exception.Value); + return new SourceControlSyncJobResult(id.Value, sourceControlSyncJobId.Value, Optional.ToNullable(creationTime), Optional.ToNullable(provisioningState), Optional.ToNullable(startTime), Optional.ToNullable(endTime), Optional.ToNullable(syncType), exception.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobById.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobResult.cs similarity index 77% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobById.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobResult.cs index 6f6bdabe4aa73..be031579f2b1f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobById.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobResult.cs @@ -6,18 +6,19 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.Automation.Models { /// Definition of the source control sync job. - public partial class SourceControlSyncJobById + public partial class SourceControlSyncJobResult { - /// Initializes a new instance of SourceControlSyncJobById. - internal SourceControlSyncJobById() + /// Initializes a new instance of SourceControlSyncJobResult. + internal SourceControlSyncJobResult() { } - /// Initializes a new instance of SourceControlSyncJobById. + /// Initializes a new instance of SourceControlSyncJobResult. /// The id of the job. /// The source control sync job id. /// The creation time of the job. @@ -26,7 +27,7 @@ internal SourceControlSyncJobById() /// The end time of the job. /// The sync type. /// The exceptions that occurred while running the sync job. - internal SourceControlSyncJobById(string id, string sourceControlSyncJobId, DateTimeOffset? createdOn, ProvisioningState? provisioningState, DateTimeOffset? startOn, DateTimeOffset? endOn, SyncType? syncType, string exception) + internal SourceControlSyncJobResult(ResourceIdentifier id, string sourceControlSyncJobId, DateTimeOffset? createdOn, SourceControlProvisioningState? provisioningState, DateTimeOffset? startOn, DateTimeOffset? endOn, SourceControlSyncType? syncType, string exception) { Id = id; SourceControlSyncJobId = sourceControlSyncJobId; @@ -39,19 +40,19 @@ internal SourceControlSyncJobById(string id, string sourceControlSyncJobId, Date } /// The id of the job. - public string Id { get; } + public ResourceIdentifier Id { get; } /// The source control sync job id. public string SourceControlSyncJobId { get; } /// The creation time of the job. public DateTimeOffset? CreatedOn { get; } /// The provisioning state of the job. - public ProvisioningState? ProvisioningState { get; } + public SourceControlProvisioningState? ProvisioningState { get; } /// The start time of the job. public DateTimeOffset? StartOn { get; } /// The end time of the job. public DateTimeOffset? EndOn { get; } /// The sync type. - public SyncType? SyncType { get; } + public SourceControlSyncType? SyncType { get; } /// The exceptions that occurred while running the sync job. public string Exception { get; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStream.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStream.Serialization.cs index 5e5b8a0f21b0f..60eb6222375e7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStream.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStream.Serialization.cs @@ -15,16 +15,21 @@ public partial class SourceControlSyncJobStream { internal static SourceControlSyncJobStream DeserializeSourceControlSyncJobStream(JsonElement element) { - Optional id = default; + Optional id = default; Optional sourceControlSyncJobStreamId = default; Optional summary = default; Optional time = default; - Optional streamType = default; + Optional streamType = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("properties")) @@ -63,7 +68,7 @@ internal static SourceControlSyncJobStream DeserializeSourceControlSyncJobStream property0.ThrowNonNullablePropertyIsNull(); continue; } - streamType = new StreamType(property0.Value.GetString()); + streamType = new SourceControlStreamType(property0.Value.GetString()); continue; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStream.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStream.cs index 1465d372efa43..692bd2e6dae90 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStream.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStream.cs @@ -6,6 +6,7 @@ #nullable disable using System; +using Azure.Core; namespace Azure.ResourceManager.Automation.Models { @@ -23,7 +24,7 @@ internal SourceControlSyncJobStream() /// The summary of the sync job stream. /// The time of the sync job stream. /// The type of the sync job stream. - internal SourceControlSyncJobStream(string id, string sourceControlSyncJobStreamId, string summary, DateTimeOffset? time, StreamType? streamType) + internal SourceControlSyncJobStream(ResourceIdentifier id, string sourceControlSyncJobStreamId, string summary, DateTimeOffset? time, SourceControlStreamType? streamType) { Id = id; SourceControlSyncJobStreamId = sourceControlSyncJobStreamId; @@ -33,7 +34,7 @@ internal SourceControlSyncJobStream(string id, string sourceControlSyncJobStream } /// Resource id. - public string Id { get; } + public ResourceIdentifier Id { get; } /// The sync job stream id. public string SourceControlSyncJobStreamId { get; } /// The summary of the sync job stream. @@ -41,6 +42,6 @@ internal SourceControlSyncJobStream(string id, string sourceControlSyncJobStream /// The time of the sync job stream. public DateTimeOffset? Time { get; } /// The type of the sync job stream. - public StreamType? StreamType { get; } + public SourceControlStreamType? StreamType { get; } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamsListBySyncJob.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamListResult.Serialization.cs similarity index 81% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamsListBySyncJob.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamListResult.Serialization.cs index 809fcf51aa699..e1091da6bdc11 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamsListBySyncJob.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamListResult.Serialization.cs @@ -11,9 +11,9 @@ namespace Azure.ResourceManager.Automation.Models { - internal partial class SourceControlSyncJobStreamsListBySyncJob + internal partial class SourceControlSyncJobStreamListResult { - internal static SourceControlSyncJobStreamsListBySyncJob DeserializeSourceControlSyncJobStreamsListBySyncJob(JsonElement element) + internal static SourceControlSyncJobStreamListResult DeserializeSourceControlSyncJobStreamListResult(JsonElement element) { Optional> value = default; Optional nextLink = default; @@ -40,7 +40,7 @@ internal static SourceControlSyncJobStreamsListBySyncJob DeserializeSourceContro continue; } } - return new SourceControlSyncJobStreamsListBySyncJob(Optional.ToList(value), nextLink.Value); + return new SourceControlSyncJobStreamListResult(Optional.ToList(value), nextLink.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamsListBySyncJob.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamListResult.cs similarity index 75% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamsListBySyncJob.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamListResult.cs index f4d077d5abc87..8318a53065fa9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamsListBySyncJob.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamListResult.cs @@ -11,18 +11,18 @@ namespace Azure.ResourceManager.Automation.Models { /// The response model for the list source control sync job streams operation. - internal partial class SourceControlSyncJobStreamsListBySyncJob + internal partial class SourceControlSyncJobStreamListResult { - /// Initializes a new instance of SourceControlSyncJobStreamsListBySyncJob. - internal SourceControlSyncJobStreamsListBySyncJob() + /// Initializes a new instance of SourceControlSyncJobStreamListResult. + internal SourceControlSyncJobStreamListResult() { Value = new ChangeTrackingList(); } - /// Initializes a new instance of SourceControlSyncJobStreamsListBySyncJob. + /// Initializes a new instance of SourceControlSyncJobStreamListResult. /// The list of source control sync job streams. /// The next link. - internal SourceControlSyncJobStreamsListBySyncJob(IReadOnlyList value, string nextLink) + internal SourceControlSyncJobStreamListResult(IReadOnlyList value, string nextLink) { Value = value; NextLink = nextLink; diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamById.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamResult.Serialization.cs similarity index 79% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamById.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamResult.Serialization.cs index d909308e8eb00..75252709efa4e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamById.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamResult.Serialization.cs @@ -12,22 +12,27 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class SourceControlSyncJobStreamById + public partial class SourceControlSyncJobStreamResult { - internal static SourceControlSyncJobStreamById DeserializeSourceControlSyncJobStreamById(JsonElement element) + internal static SourceControlSyncJobStreamResult DeserializeSourceControlSyncJobStreamResult(JsonElement element) { - Optional id = default; + Optional id = default; Optional sourceControlSyncJobStreamId = default; Optional summary = default; Optional time = default; - Optional streamType = default; + Optional streamType = default; Optional streamText = default; Optional> value = default; foreach (var property in element.EnumerateObject()) { if (property.NameEquals("id")) { - id = property.Value.GetString(); + if (property.Value.ValueKind == JsonValueKind.Null) + { + property.ThrowNonNullablePropertyIsNull(); + continue; + } + id = new ResourceIdentifier(property.Value.GetString()); continue; } if (property.NameEquals("properties")) @@ -66,7 +71,7 @@ internal static SourceControlSyncJobStreamById DeserializeSourceControlSyncJobSt property0.ThrowNonNullablePropertyIsNull(); continue; } - streamType = new StreamType(property0.Value.GetString()); + streamType = new SourceControlStreamType(property0.Value.GetString()); continue; } if (property0.NameEquals("streamText")) @@ -93,7 +98,7 @@ internal static SourceControlSyncJobStreamById DeserializeSourceControlSyncJobSt continue; } } - return new SourceControlSyncJobStreamById(id.Value, sourceControlSyncJobStreamId.Value, summary.Value, Optional.ToNullable(time), Optional.ToNullable(streamType), streamText.Value, Optional.ToDictionary(value)); + return new SourceControlSyncJobStreamResult(id.Value, sourceControlSyncJobStreamId.Value, summary.Value, Optional.ToNullable(time), Optional.ToNullable(streamType), streamText.Value, Optional.ToDictionary(value)); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamById.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamResult.cs similarity index 85% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamById.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamResult.cs index f397a598759a6..039e9e5825fbf 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamById.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncJobStreamResult.cs @@ -12,15 +12,15 @@ namespace Azure.ResourceManager.Automation.Models { /// Definition of the source control sync job stream by id. - public partial class SourceControlSyncJobStreamById + public partial class SourceControlSyncJobStreamResult { - /// Initializes a new instance of SourceControlSyncJobStreamById. - internal SourceControlSyncJobStreamById() + /// Initializes a new instance of SourceControlSyncJobStreamResult. + internal SourceControlSyncJobStreamResult() { Value = new ChangeTrackingDictionary(); } - /// Initializes a new instance of SourceControlSyncJobStreamById. + /// Initializes a new instance of SourceControlSyncJobStreamResult. /// Resource id. /// The sync job stream id. /// The summary of the sync job stream. @@ -28,7 +28,7 @@ internal SourceControlSyncJobStreamById() /// The type of the sync job stream. /// The text of the sync job stream. /// The values of the job stream. - internal SourceControlSyncJobStreamById(string id, string sourceControlSyncJobStreamId, string summary, DateTimeOffset? time, StreamType? streamType, string streamText, IReadOnlyDictionary value) + internal SourceControlSyncJobStreamResult(ResourceIdentifier id, string sourceControlSyncJobStreamId, string summary, DateTimeOffset? time, SourceControlStreamType? streamType, string streamText, IReadOnlyDictionary value) { Id = id; SourceControlSyncJobStreamId = sourceControlSyncJobStreamId; @@ -40,7 +40,7 @@ internal SourceControlSyncJobStreamById(string id, string sourceControlSyncJobSt } /// Resource id. - public string Id { get; } + public ResourceIdentifier Id { get; } /// The sync job stream id. public string SourceControlSyncJobStreamId { get; } /// The summary of the sync job stream. @@ -48,7 +48,7 @@ internal SourceControlSyncJobStreamById(string id, string sourceControlSyncJobSt /// The time of the sync job stream. public DateTimeOffset? Time { get; } /// The type of the sync job stream. - public StreamType? StreamType { get; } + public SourceControlStreamType? StreamType { get; } /// The text of the sync job stream. public string StreamText { get; } /// diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncType.cs new file mode 100644 index 0000000000000..039a58c8ef1ae --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlSyncType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The sync type. + public readonly partial struct SourceControlSyncType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SourceControlSyncType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PartialSyncValue = "PartialSync"; + private const string FullSyncValue = "FullSync"; + + /// PartialSync. + public static SourceControlSyncType PartialSync { get; } = new SourceControlSyncType(PartialSyncValue); + /// FullSync. + public static SourceControlSyncType FullSync { get; } = new SourceControlSyncType(FullSyncValue); + /// Determines if two values are the same. + public static bool operator ==(SourceControlSyncType left, SourceControlSyncType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SourceControlSyncType left, SourceControlSyncType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SourceControlSyncType(string value) => new SourceControlSyncType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SourceControlSyncType other && Equals(other); + /// + public bool Equals(SourceControlSyncType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlTokenType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlTokenType.cs new file mode 100644 index 0000000000000..ea81f25e88e7c --- /dev/null +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceControlTokenType.cs @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +// + +#nullable disable + +using System; +using System.ComponentModel; + +namespace Azure.ResourceManager.Automation.Models +{ + /// The token type. Must be either PersonalAccessToken or Oauth. + public readonly partial struct SourceControlTokenType : IEquatable + { + private readonly string _value; + + /// Initializes a new instance of . + /// is null. + public SourceControlTokenType(string value) + { + _value = value ?? throw new ArgumentNullException(nameof(value)); + } + + private const string PersonalAccessTokenValue = "PersonalAccessToken"; + private const string OAuthValue = "Oauth"; + + /// PersonalAccessToken. + public static SourceControlTokenType PersonalAccessToken { get; } = new SourceControlTokenType(PersonalAccessTokenValue); + /// Oauth. + public static SourceControlTokenType OAuth { get; } = new SourceControlTokenType(OAuthValue); + /// Determines if two values are the same. + public static bool operator ==(SourceControlTokenType left, SourceControlTokenType right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(SourceControlTokenType left, SourceControlTokenType right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator SourceControlTokenType(string value) => new SourceControlTokenType(value); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override bool Equals(object obj) => obj is SourceControlTokenType other && Equals(other); + /// + public bool Equals(SourceControlTokenType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + + /// + [EditorBrowsable(EditorBrowsableState.Never)] + public override int GetHashCode() => _value?.GetHashCode() ?? 0; + /// + public override string ToString() => _value; + } +} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceType.cs deleted file mode 100644 index af9e16da42da2..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SourceType.cs +++ /dev/null @@ -1,54 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// The source type. Must be one of VsoGit, VsoTfvc, GitHub. - public readonly partial struct SourceType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public SourceType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string VsoGitValue = "VsoGit"; - private const string VsoTfvcValue = "VsoTfvc"; - private const string GitHubValue = "GitHub"; - - /// VsoGit. - public static SourceType VsoGit { get; } = new SourceType(VsoGitValue); - /// VsoTfvc. - public static SourceType VsoTfvc { get; } = new SourceType(VsoTfvcValue); - /// GitHub. - public static SourceType GitHub { get; } = new SourceType(GitHubValue); - /// Determines if two values are the same. - public static bool operator ==(SourceType left, SourceType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(SourceType left, SourceType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator SourceType(string value) => new SourceType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SourceType other && Equals(other); - /// - public bool Equals(SourceType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/StatisticsListResult.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/StatisticsListResult.cs deleted file mode 100644 index d092eb373287c..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/StatisticsListResult.cs +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using Azure.Core; - -namespace Azure.ResourceManager.Automation.Models -{ - /// The response model for the list statistics operation. - internal partial class StatisticsListResult - { - /// Initializes a new instance of StatisticsListResult. - internal StatisticsListResult() - { - Value = new ChangeTrackingList(); - } - - /// Initializes a new instance of StatisticsListResult. - /// Gets or sets a list of statistics. - internal StatisticsListResult(IReadOnlyList value) - { - Value = value; - } - - /// Gets or sets a list of statistics. - public IReadOnlyList Value { get; } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/StreamType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/StreamType.cs deleted file mode 100644 index d0c0d73c3324d..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/StreamType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// The type of the sync job stream. - public readonly partial struct StreamType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public StreamType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string ErrorValue = "Error"; - private const string OutputValue = "Output"; - - /// Error. - public static StreamType Error { get; } = new StreamType(ErrorValue); - /// Output. - public static StreamType Output { get; } = new StreamType(OutputValue); - /// Determines if two values are the same. - public static bool operator ==(StreamType left, StreamType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(StreamType left, StreamType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator StreamType(string value) => new StreamType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is StreamType other && Equals(other); - /// - public bool Equals(StreamType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SyncType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SyncType.cs deleted file mode 100644 index 4d7a2cef89496..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/SyncType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// The sync type. - public readonly partial struct SyncType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public SyncType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string PartialSyncValue = "PartialSync"; - private const string FullSyncValue = "FullSync"; - - /// PartialSync. - public static SyncType PartialSync { get; } = new SyncType(PartialSyncValue); - /// FullSync. - public static SyncType FullSync { get; } = new SyncType(FullSyncValue); - /// Determines if two values are the same. - public static bool operator ==(SyncType left, SyncType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(SyncType left, SyncType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator SyncType(string value) => new SyncType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is SyncType other && Equals(other); - /// - public bool Equals(SyncType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TokenType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TokenType.cs deleted file mode 100644 index bab688acc72aa..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/TokenType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// The token type. Must be either PersonalAccessToken or Oauth. - public readonly partial struct TokenType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public TokenType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string PersonalAccessTokenValue = "PersonalAccessToken"; - private const string OauthValue = "Oauth"; - - /// PersonalAccessToken. - public static TokenType PersonalAccessToken { get; } = new TokenType(PersonalAccessTokenValue); - /// Oauth. - public static TokenType Oauth { get; } = new TokenType(OauthValue); - /// Determines if two values are the same. - public static bool operator ==(TokenType left, TokenType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(TokenType left, TokenType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator TokenType(string value) => new TokenType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is TokenType other && Equals(other); - /// - public bool Equals(TokenType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableListResult.Serialization.cs deleted file mode 100644 index 94d3fad420dcf..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/VariableListResult.Serialization.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Automation; - -namespace Azure.ResourceManager.Automation.Models -{ - internal partial class VariableListResult - { - internal static VariableListResult DeserializeVariableListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(VariableData.DeserializeVariableData(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new VariableListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherListResult.Serialization.cs deleted file mode 100644 index 891059e076607..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WatcherListResult.Serialization.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Automation; - -namespace Azure.ResourceManager.Automation.Models -{ - internal partial class WatcherListResult - { - internal static WatcherListResult DeserializeWatcherListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(WatcherData.DeserializeWatcherData(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new WatcherListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookListResult.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookListResult.Serialization.cs deleted file mode 100644 index b8dc0db6a1999..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WebhookListResult.Serialization.cs +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System.Collections.Generic; -using System.Text.Json; -using Azure.Core; -using Azure.ResourceManager.Automation; - -namespace Azure.ResourceManager.Automation.Models -{ - internal partial class WebhookListResult - { - internal static WebhookListResult DeserializeWebhookListResult(JsonElement element) - { - Optional> value = default; - Optional nextLink = default; - foreach (var property in element.EnumerateObject()) - { - if (property.NameEquals("value")) - { - if (property.Value.ValueKind == JsonValueKind.Null) - { - property.ThrowNonNullablePropertyIsNull(); - continue; - } - List array = new List(); - foreach (var item in property.Value.EnumerateArray()) - { - array.Add(WebhookData.DeserializeWebhookData(item)); - } - value = array; - continue; - } - if (property.NameEquals("nextLink")) - { - nextLink = property.Value.GetString(); - continue; - } - } - return new WebhookListResult(Optional.ToList(value), nextLink.Value); - } - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateClass.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateClassification.cs similarity index 52% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateClass.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateClassification.cs index 20abf5d949be1..97e8288a386db 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateClass.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateClassification.cs @@ -11,13 +11,13 @@ namespace Azure.ResourceManager.Automation.Models { /// Update classification included in the software update configuration. A comma separated string with required values. - public readonly partial struct WindowsUpdateClass : IEquatable + public readonly partial struct WindowsUpdateClassification : IEquatable { private readonly string _value; - /// Initializes a new instance of . + /// Initializes a new instance of . /// is null. - public WindowsUpdateClass(string value) + public WindowsUpdateClassification(string value) { _value = value ?? throw new ArgumentNullException(nameof(value)); } @@ -33,35 +33,35 @@ public WindowsUpdateClass(string value) private const string UpdatesValue = "Updates"; /// Unclassified. - public static WindowsUpdateClass Unclassified { get; } = new WindowsUpdateClass(UnclassifiedValue); + public static WindowsUpdateClassification Unclassified { get; } = new WindowsUpdateClassification(UnclassifiedValue); /// Critical. - public static WindowsUpdateClass Critical { get; } = new WindowsUpdateClass(CriticalValue); + public static WindowsUpdateClassification Critical { get; } = new WindowsUpdateClassification(CriticalValue); /// Security. - public static WindowsUpdateClass Security { get; } = new WindowsUpdateClass(SecurityValue); + public static WindowsUpdateClassification Security { get; } = new WindowsUpdateClassification(SecurityValue); /// UpdateRollup. - public static WindowsUpdateClass UpdateRollup { get; } = new WindowsUpdateClass(UpdateRollupValue); + public static WindowsUpdateClassification UpdateRollup { get; } = new WindowsUpdateClassification(UpdateRollupValue); /// FeaturePack. - public static WindowsUpdateClass FeaturePack { get; } = new WindowsUpdateClass(FeaturePackValue); + public static WindowsUpdateClassification FeaturePack { get; } = new WindowsUpdateClassification(FeaturePackValue); /// ServicePack. - public static WindowsUpdateClass ServicePack { get; } = new WindowsUpdateClass(ServicePackValue); + public static WindowsUpdateClassification ServicePack { get; } = new WindowsUpdateClassification(ServicePackValue); /// Definition. - public static WindowsUpdateClass Definition { get; } = new WindowsUpdateClass(DefinitionValue); + public static WindowsUpdateClassification Definition { get; } = new WindowsUpdateClassification(DefinitionValue); /// Tools. - public static WindowsUpdateClass Tools { get; } = new WindowsUpdateClass(ToolsValue); + public static WindowsUpdateClassification Tools { get; } = new WindowsUpdateClassification(ToolsValue); /// Updates. - public static WindowsUpdateClass Updates { get; } = new WindowsUpdateClass(UpdatesValue); - /// Determines if two values are the same. - public static bool operator ==(WindowsUpdateClass left, WindowsUpdateClass right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(WindowsUpdateClass left, WindowsUpdateClass right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator WindowsUpdateClass(string value) => new WindowsUpdateClass(value); + public static WindowsUpdateClassification Updates { get; } = new WindowsUpdateClassification(UpdatesValue); + /// Determines if two values are the same. + public static bool operator ==(WindowsUpdateClassification left, WindowsUpdateClassification right) => left.Equals(right); + /// Determines if two values are not the same. + public static bool operator !=(WindowsUpdateClassification left, WindowsUpdateClassification right) => !left.Equals(right); + /// Converts a string to a . + public static implicit operator WindowsUpdateClassification(string value) => new WindowsUpdateClassification(value); /// [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is WindowsUpdateClass other && Equals(other); + public override bool Equals(object obj) => obj is WindowsUpdateClassification other && Equals(other); /// - public bool Equals(WindowsUpdateClass other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); + public bool Equals(WindowsUpdateClassification other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); /// [EditorBrowsable(EditorBrowsableState.Never)] diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsProperties.Serialization.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateConfigurationProperties.Serialization.cs similarity index 81% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsProperties.Serialization.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateConfigurationProperties.Serialization.cs index a27ab5b3e2b26..0579781c8d246 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsProperties.Serialization.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateConfigurationProperties.Serialization.cs @@ -11,7 +11,7 @@ namespace Azure.ResourceManager.Automation.Models { - public partial class WindowsProperties : IUtf8JsonSerializable + public partial class WindowsUpdateConfigurationProperties : IUtf8JsonSerializable { void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) { @@ -21,21 +21,21 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WritePropertyName("includedUpdateClassifications"); writer.WriteStringValue(IncludedUpdateClassifications.Value.ToString()); } - if (Optional.IsCollectionDefined(ExcludedKbNumbers)) + if (Optional.IsCollectionDefined(ExcludedKBNumbers)) { writer.WritePropertyName("excludedKbNumbers"); writer.WriteStartArray(); - foreach (var item in ExcludedKbNumbers) + foreach (var item in ExcludedKBNumbers) { writer.WriteStringValue(item); } writer.WriteEndArray(); } - if (Optional.IsCollectionDefined(IncludedKbNumbers)) + if (Optional.IsCollectionDefined(IncludedKBNumbers)) { writer.WritePropertyName("includedKbNumbers"); writer.WriteStartArray(); - foreach (var item in IncludedKbNumbers) + foreach (var item in IncludedKBNumbers) { writer.WriteStringValue(item); } @@ -49,9 +49,9 @@ void IUtf8JsonSerializable.Write(Utf8JsonWriter writer) writer.WriteEndObject(); } - internal static WindowsProperties DeserializeWindowsProperties(JsonElement element) + internal static WindowsUpdateConfigurationProperties DeserializeWindowsUpdateConfigurationProperties(JsonElement element) { - Optional includedUpdateClassifications = default; + Optional includedUpdateClassifications = default; Optional> excludedKbNumbers = default; Optional> includedKbNumbers = default; Optional rebootSetting = default; @@ -64,7 +64,7 @@ internal static WindowsProperties DeserializeWindowsProperties(JsonElement eleme property.ThrowNonNullablePropertyIsNull(); continue; } - includedUpdateClassifications = new WindowsUpdateClass(property.Value.GetString()); + includedUpdateClassifications = new WindowsUpdateClassification(property.Value.GetString()); continue; } if (property.NameEquals("excludedKbNumbers")) @@ -103,7 +103,7 @@ internal static WindowsProperties DeserializeWindowsProperties(JsonElement eleme continue; } } - return new WindowsProperties(Optional.ToNullable(includedUpdateClassifications), Optional.ToList(excludedKbNumbers), Optional.ToList(includedKbNumbers), rebootSetting.Value); + return new WindowsUpdateConfigurationProperties(Optional.ToNullable(includedUpdateClassifications), Optional.ToList(excludedKbNumbers), Optional.ToList(includedKbNumbers), rebootSetting.Value); } } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsProperties.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateConfigurationProperties.cs similarity index 55% rename from sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsProperties.cs rename to sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateConfigurationProperties.cs index f1e0b2719a6d1..0459b95e592e9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsProperties.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WindowsUpdateConfigurationProperties.cs @@ -11,34 +11,34 @@ namespace Azure.ResourceManager.Automation.Models { /// Windows specific update configuration. - public partial class WindowsProperties + public partial class WindowsUpdateConfigurationProperties { - /// Initializes a new instance of WindowsProperties. - public WindowsProperties() + /// Initializes a new instance of WindowsUpdateConfigurationProperties. + public WindowsUpdateConfigurationProperties() { - ExcludedKbNumbers = new ChangeTrackingList(); - IncludedKbNumbers = new ChangeTrackingList(); + ExcludedKBNumbers = new ChangeTrackingList(); + IncludedKBNumbers = new ChangeTrackingList(); } - /// Initializes a new instance of WindowsProperties. + /// Initializes a new instance of WindowsUpdateConfigurationProperties. /// Update classification included in the software update configuration. A comma separated string with required values. - /// KB numbers excluded from the software update configuration. - /// KB numbers included from the software update configuration. + /// KB numbers excluded from the software update configuration. + /// KB numbers included from the software update configuration. /// Reboot setting for the software update configuration. - internal WindowsProperties(WindowsUpdateClass? includedUpdateClassifications, IList excludedKbNumbers, IList includedKbNumbers, string rebootSetting) + internal WindowsUpdateConfigurationProperties(WindowsUpdateClassification? includedUpdateClassifications, IList excludedKBNumbers, IList includedKBNumbers, string rebootSetting) { IncludedUpdateClassifications = includedUpdateClassifications; - ExcludedKbNumbers = excludedKbNumbers; - IncludedKbNumbers = includedKbNumbers; + ExcludedKBNumbers = excludedKBNumbers; + IncludedKBNumbers = includedKBNumbers; RebootSetting = rebootSetting; } /// Update classification included in the software update configuration. A comma separated string with required values. - public WindowsUpdateClass? IncludedUpdateClassifications { get; set; } + public WindowsUpdateClassification? IncludedUpdateClassifications { get; set; } /// KB numbers excluded from the software update configuration. - public IList ExcludedKbNumbers { get; } + public IList ExcludedKBNumbers { get; } /// KB numbers included from the software update configuration. - public IList IncludedKbNumbers { get; } + public IList IncludedKBNumbers { get; } /// Reboot setting for the software update configuration. public string RebootSetting { get; set; } } diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WorkerType.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WorkerType.cs deleted file mode 100644 index 782848bb2307a..0000000000000 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/Models/WorkerType.cs +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. - -// - -#nullable disable - -using System; -using System.ComponentModel; - -namespace Azure.ResourceManager.Automation.Models -{ - /// Type of the HybridWorker. - public readonly partial struct WorkerType : IEquatable - { - private readonly string _value; - - /// Initializes a new instance of . - /// is null. - public WorkerType(string value) - { - _value = value ?? throw new ArgumentNullException(nameof(value)); - } - - private const string HybridV1Value = "HybridV1"; - private const string HybridV2Value = "HybridV2"; - - /// HybridV1. - public static WorkerType HybridV1 { get; } = new WorkerType(HybridV1Value); - /// HybridV2. - public static WorkerType HybridV2 { get; } = new WorkerType(HybridV2Value); - /// Determines if two values are the same. - public static bool operator ==(WorkerType left, WorkerType right) => left.Equals(right); - /// Determines if two values are not the same. - public static bool operator !=(WorkerType left, WorkerType right) => !left.Equals(right); - /// Converts a string to a . - public static implicit operator WorkerType(string value) => new WorkerType(value); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override bool Equals(object obj) => obj is WorkerType other && Equals(other); - /// - public bool Equals(WorkerType other) => string.Equals(_value, other._value, StringComparison.InvariantCultureIgnoreCase); - - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public override int GetHashCode() => _value?.GetHashCode() ?? 0; - /// - public override string ToString() => _value; - } -} diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs index 52e8e998f2d37..730c4bf28060f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ActivityRestOperations.cs @@ -70,7 +70,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string activityName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string activityName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -84,9 +84,9 @@ public async Task> GetAsync(string subscriptionId, string res { case 200: { - Activity value = default; + AutomationActivity value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = Activity.DeserializeActivity(document.RootElement); + value = AutomationActivity.DeserializeAutomationActivity(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -103,7 +103,7 @@ public async Task> GetAsync(string subscriptionId, string res /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string activityName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string activityName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -117,9 +117,9 @@ public Response Get(string subscriptionId, string resourceGroupName, s { case 200: { - Activity value = default; + AutomationActivity value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = Activity.DeserializeActivity(document.RootElement); + value = AutomationActivity.DeserializeAutomationActivity(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -158,7 +158,7 @@ internal HttpMessage CreateListByModuleRequest(string subscriptionId, string res /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListByModuleAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) + public async Task> ListByModuleAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -171,9 +171,9 @@ public async Task> ListByModuleAsync(string subscri { case 200: { - ActivityListResult value = default; + AutomationActivityListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ActivityListResult.DeserializeActivityListResult(document.RootElement); + value = AutomationActivityListResult.DeserializeAutomationActivityListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -189,7 +189,7 @@ public async Task> ListByModuleAsync(string subscri /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListByModule(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) + public Response ListByModule(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -202,9 +202,9 @@ public Response ListByModule(string subscriptionId, string r { case 200: { - ActivityListResult value = default; + AutomationActivityListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ActivityListResult.DeserializeActivityListResult(document.RootElement); + value = AutomationActivityListResult.DeserializeAutomationActivityListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -235,7 +235,7 @@ internal HttpMessage CreateListByModuleNextPageRequest(string nextLink, string s /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListByModuleNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) + public async Task> ListByModuleNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -249,9 +249,9 @@ public async Task> ListByModuleNextPageAsync(string { case 200: { - ActivityListResult value = default; + AutomationActivityListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ActivityListResult.DeserializeActivityListResult(document.RootElement); + value = AutomationActivityListResult.DeserializeAutomationActivityListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -268,7 +268,7 @@ public async Task> ListByModuleNextPageAsync(string /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListByModuleNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) + public Response ListByModuleNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -282,9 +282,9 @@ public Response ListByModuleNextPage(string nextLink, string { case 200: { - ActivityListResult value = default; + AutomationActivityListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ActivityListResult.DeserializeActivityListResult(document.RootElement); + value = AutomationActivityListResult.DeserializeAutomationActivityListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs index 4827d78593769..d0ee93d384149 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/AgentRegistrationInformationRestOperations.cs @@ -116,7 +116,7 @@ public Response Get(string subscriptionId, string resourceGro } } - internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyParameter agentRegistrationRegenerateKeyParameter) + internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -134,9 +134,9 @@ internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string re request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(agentRegistrationRegenerateKeyParameter); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; _userAgent.Apply(message); return message; } @@ -145,18 +145,18 @@ internal HttpMessage CreateRegenerateKeyRequest(string subscriptionId, string re /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The name of the agent registration key to be regenerated. + /// The name of the agent registration key to be regenerated. /// The cancellation token to use. - /// , , or is null. + /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> RegenerateKeyAsync(string subscriptionId, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyParameter agentRegistrationRegenerateKeyParameter, CancellationToken cancellationToken = default) + public async Task> RegenerateKeyAsync(string subscriptionId, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - Argument.AssertNotNull(agentRegistrationRegenerateKeyParameter, nameof(agentRegistrationRegenerateKeyParameter)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateRegenerateKeyRequest(subscriptionId, resourceGroupName, automationAccountName, agentRegistrationRegenerateKeyParameter); + using var message = CreateRegenerateKeyRequest(subscriptionId, resourceGroupName, automationAccountName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -176,18 +176,18 @@ public async Task> RegenerateKeyAsync(string subscri /// Gets subscription credentials which uniquely identify Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. /// Name of an Azure Resource group. /// The name of the automation account. - /// The name of the agent registration key to be regenerated. + /// The name of the agent registration key to be regenerated. /// The cancellation token to use. - /// , , or is null. + /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response RegenerateKey(string subscriptionId, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyParameter agentRegistrationRegenerateKeyParameter, CancellationToken cancellationToken = default) + public Response RegenerateKey(string subscriptionId, string resourceGroupName, string automationAccountName, AgentRegistrationRegenerateKeyContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); - Argument.AssertNotNull(agentRegistrationRegenerateKeyParameter, nameof(agentRegistrationRegenerateKeyParameter)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateRegenerateKeyRequest(subscriptionId, resourceGroupName, automationAccountName, agentRegistrationRegenerateKeyParameter); + using var message = CreateRegenerateKeyRequest(subscriptionId, resourceGroupName, automationAccountName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs index 3d8f8d0baebea..4c6fa807f5c51 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CertificateRestOperations.cs @@ -141,7 +141,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -154,13 +154,13 @@ public async Task> GetAsync(string subscriptionId, str { case 200: { - CertificateData value = default; + AutomationCertificateData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CertificateData.DeserializeCertificateData(document.RootElement); + value = AutomationCertificateData.DeserializeAutomationCertificateData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((CertificateData)null, message.Response); + return Response.FromValue((AutomationCertificateData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -174,7 +174,7 @@ public async Task> GetAsync(string subscriptionId, str /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -187,19 +187,19 @@ public Response Get(string subscriptionId, string resourceGroup { case 200: { - CertificateData value = default; + AutomationCertificateData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CertificateData.DeserializeCertificateData(document.RootElement); + value = AutomationCertificateData.DeserializeAutomationCertificateData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((CertificateData)null, message.Response); + return Response.FromValue((AutomationCertificateData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, CertificateCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, AutomationCertificateCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -234,7 +234,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, CertificateCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, AutomationCertificateCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -249,9 +249,9 @@ public async Task> CreateOrUpdateAsync(string subscrip case 200: case 201: { - CertificateData value = default; + AutomationCertificateData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CertificateData.DeserializeCertificateData(document.RootElement); + value = AutomationCertificateData.DeserializeAutomationCertificateData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -268,7 +268,7 @@ public async Task> CreateOrUpdateAsync(string subscrip /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, CertificateCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, AutomationCertificateCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -283,9 +283,9 @@ public Response CreateOrUpdate(string subscriptionId, string re case 200: case 201: { - CertificateData value = default; + AutomationCertificateData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CertificateData.DeserializeCertificateData(document.RootElement); + value = AutomationCertificateData.DeserializeAutomationCertificateData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -293,7 +293,7 @@ public Response CreateOrUpdate(string subscriptionId, string re } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, CertificatePatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, AutomationCertificatePatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -328,7 +328,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, CertificatePatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, AutomationCertificatePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -342,9 +342,9 @@ public async Task> UpdateAsync(string subscriptionId, { case 200: { - CertificateData value = default; + AutomationCertificateData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CertificateData.DeserializeCertificateData(document.RootElement); + value = AutomationCertificateData.DeserializeAutomationCertificateData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -361,7 +361,7 @@ public async Task> UpdateAsync(string subscriptionId, /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, CertificatePatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string certificateName, AutomationCertificatePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -375,9 +375,9 @@ public Response Update(string subscriptionId, string resourceGr { case 200: { - CertificateData value = default; + AutomationCertificateData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CertificateData.DeserializeCertificateData(document.RootElement); + value = AutomationCertificateData.DeserializeAutomationCertificateData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -413,7 +413,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -425,9 +425,9 @@ public async Task> ListByAutomationAccountAsync( { case 200: { - CertificateListResult value = default; + AutomationCertificateListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CertificateListResult.DeserializeCertificateListResult(document.RootElement); + value = AutomationCertificateListResult.DeserializeAutomationCertificateListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -442,7 +442,7 @@ public async Task> ListByAutomationAccountAsync( /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -454,9 +454,9 @@ public Response ListByAutomationAccount(string subscripti { case 200: { - CertificateListResult value = default; + AutomationCertificateListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CertificateListResult.DeserializeCertificateListResult(document.RootElement); + value = AutomationCertificateListResult.DeserializeAutomationCertificateListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -486,7 +486,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -499,9 +499,9 @@ public async Task> ListByAutomationAccountNextPa { case 200: { - CertificateListResult value = default; + AutomationCertificateListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CertificateListResult.DeserializeCertificateListResult(document.RootElement); + value = AutomationCertificateListResult.DeserializeAutomationCertificateListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -517,7 +517,7 @@ public async Task> ListByAutomationAccountNextPa /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -530,9 +530,9 @@ public Response ListByAutomationAccountNextPage(string ne { case 200: { - CertificateListResult value = default; + AutomationCertificateListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CertificateListResult.DeserializeCertificateListResult(document.RootElement); + value = AutomationCertificateListResult.DeserializeAutomationCertificateListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs index 4db99ae4bf95b..9dac78844eae5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionRestOperations.cs @@ -143,7 +143,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -156,13 +156,13 @@ public async Task> GetAsync(string subscriptionId, stri { case 200: { - ConnectionData value = default; + AutomationConnectionData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConnectionData.DeserializeConnectionData(document.RootElement); + value = AutomationConnectionData.DeserializeAutomationConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ConnectionData)null, message.Response); + return Response.FromValue((AutomationConnectionData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -176,7 +176,7 @@ public async Task> GetAsync(string subscriptionId, stri /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -189,19 +189,19 @@ public Response Get(string subscriptionId, string resourceGroupN { case 200: { - ConnectionData value = default; + AutomationConnectionData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConnectionData.DeserializeConnectionData(document.RootElement); + value = AutomationConnectionData.DeserializeAutomationConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ConnectionData)null, message.Response); + return Response.FromValue((AutomationConnectionData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, AutomationConnectionCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -236,7 +236,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, AutomationConnectionCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -251,9 +251,9 @@ public async Task> CreateOrUpdateAsync(string subscript case 200: case 201: { - ConnectionData value = default; + AutomationConnectionData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConnectionData.DeserializeConnectionData(document.RootElement); + value = AutomationConnectionData.DeserializeAutomationConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -270,7 +270,7 @@ public async Task> CreateOrUpdateAsync(string subscript /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, ConnectionCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, AutomationConnectionCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -285,9 +285,9 @@ public Response CreateOrUpdate(string subscriptionId, string res case 200: case 201: { - ConnectionData value = default; + AutomationConnectionData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConnectionData.DeserializeConnectionData(document.RootElement); + value = AutomationConnectionData.DeserializeAutomationConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -295,7 +295,7 @@ public Response CreateOrUpdate(string subscriptionId, string res } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, ConnectionPatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, AutomationConnectionPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -330,7 +330,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, ConnectionPatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, AutomationConnectionPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -344,9 +344,9 @@ public async Task> UpdateAsync(string subscriptionId, s { case 200: { - ConnectionData value = default; + AutomationConnectionData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConnectionData.DeserializeConnectionData(document.RootElement); + value = AutomationConnectionData.DeserializeAutomationConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -363,7 +363,7 @@ public async Task> UpdateAsync(string subscriptionId, s /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, ConnectionPatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionName, AutomationConnectionPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -377,9 +377,9 @@ public Response Update(string subscriptionId, string resourceGro { case 200: { - ConnectionData value = default; + AutomationConnectionData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConnectionData.DeserializeConnectionData(document.RootElement); + value = AutomationConnectionData.DeserializeAutomationConnectionData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -415,7 +415,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -427,9 +427,9 @@ public async Task> ListByAutomationAccountAsync(s { case 200: { - ConnectionListResult value = default; + AutomationConnectionListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConnectionListResult.DeserializeConnectionListResult(document.RootElement); + value = AutomationConnectionListResult.DeserializeAutomationConnectionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -444,7 +444,7 @@ public async Task> ListByAutomationAccountAsync(s /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -456,9 +456,9 @@ public Response ListByAutomationAccount(string subscriptio { case 200: { - ConnectionListResult value = default; + AutomationConnectionListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConnectionListResult.DeserializeConnectionListResult(document.RootElement); + value = AutomationConnectionListResult.DeserializeAutomationConnectionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -488,7 +488,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -501,9 +501,9 @@ public async Task> ListByAutomationAccountNextPag { case 200: { - ConnectionListResult value = default; + AutomationConnectionListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConnectionListResult.DeserializeConnectionListResult(document.RootElement); + value = AutomationConnectionListResult.DeserializeAutomationConnectionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -519,7 +519,7 @@ public async Task> ListByAutomationAccountNextPag /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -532,9 +532,9 @@ public Response ListByAutomationAccountNextPage(string nex { case 200: { - ConnectionListResult value = default; + AutomationConnectionListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConnectionListResult.DeserializeConnectionListResult(document.RootElement); + value = AutomationConnectionListResult.DeserializeAutomationConnectionListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs index 7c3333f5560f7..61912b2814d9f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ConnectionTypeRestOperations.cs @@ -143,7 +143,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -156,13 +156,13 @@ public async Task> GetAsync(string subscriptionId, { case 200: { - ConnectionTypeData value = default; + AutomationConnectionTypeData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConnectionTypeData.DeserializeConnectionTypeData(document.RootElement); + value = AutomationConnectionTypeData.DeserializeAutomationConnectionTypeData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ConnectionTypeData)null, message.Response); + return Response.FromValue((AutomationConnectionTypeData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -176,7 +176,7 @@ public async Task> GetAsync(string subscriptionId, /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -189,19 +189,19 @@ public Response Get(string subscriptionId, string resourceGr { case 200: { - ConnectionTypeData value = default; + AutomationConnectionTypeData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConnectionTypeData.DeserializeConnectionTypeData(document.RootElement); + value = AutomationConnectionTypeData.DeserializeAutomationConnectionTypeData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ConnectionTypeData)null, message.Response); + return Response.FromValue((AutomationConnectionTypeData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, AutomationConnectionTypeCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -236,7 +236,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, AutomationConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -250,9 +250,9 @@ public async Task> CreateOrUpdateAsync(string subsc { case 201: { - ConnectionTypeData value = default; + AutomationConnectionTypeData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConnectionTypeData.DeserializeConnectionTypeData(document.RootElement); + value = AutomationConnectionTypeData.DeserializeAutomationConnectionTypeData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -269,7 +269,7 @@ public async Task> CreateOrUpdateAsync(string subsc /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, ConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string connectionTypeName, AutomationConnectionTypeCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -283,9 +283,9 @@ public Response CreateOrUpdate(string subscriptionId, string { case 201: { - ConnectionTypeData value = default; + AutomationConnectionTypeData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConnectionTypeData.DeserializeConnectionTypeData(document.RootElement); + value = AutomationConnectionTypeData.DeserializeAutomationConnectionTypeData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -321,7 +321,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -333,9 +333,9 @@ public async Task> ListByAutomationAccountAsy { case 200: { - ConnectionTypeListResult value = default; + AutomationConnectionTypeListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConnectionTypeListResult.DeserializeConnectionTypeListResult(document.RootElement); + value = AutomationConnectionTypeListResult.DeserializeAutomationConnectionTypeListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -350,7 +350,7 @@ public async Task> ListByAutomationAccountAsy /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -362,9 +362,9 @@ public Response ListByAutomationAccount(string subscri { case 200: { - ConnectionTypeListResult value = default; + AutomationConnectionTypeListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConnectionTypeListResult.DeserializeConnectionTypeListResult(document.RootElement); + value = AutomationConnectionTypeListResult.DeserializeAutomationConnectionTypeListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -394,7 +394,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -407,9 +407,9 @@ public async Task> ListByAutomationAccountNex { case 200: { - ConnectionTypeListResult value = default; + AutomationConnectionTypeListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ConnectionTypeListResult.DeserializeConnectionTypeListResult(document.RootElement); + value = AutomationConnectionTypeListResult.DeserializeAutomationConnectionTypeListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -425,7 +425,7 @@ public async Task> ListByAutomationAccountNex /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -438,9 +438,9 @@ public Response ListByAutomationAccountNextPage(string { case 200: { - ConnectionTypeListResult value = default; + AutomationConnectionTypeListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ConnectionTypeListResult.DeserializeConnectionTypeListResult(document.RootElement); + value = AutomationConnectionTypeListResult.DeserializeAutomationConnectionTypeListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs index 3394b0285738e..460f78381e05a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/CredentialRestOperations.cs @@ -141,7 +141,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -154,13 +154,13 @@ public async Task> GetAsync(string subscriptionId, stri { case 200: { - CredentialData value = default; + AutomationCredentialData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CredentialData.DeserializeCredentialData(document.RootElement); + value = AutomationCredentialData.DeserializeAutomationCredentialData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((CredentialData)null, message.Response); + return Response.FromValue((AutomationCredentialData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -174,7 +174,7 @@ public async Task> GetAsync(string subscriptionId, stri /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -187,19 +187,19 @@ public Response Get(string subscriptionId, string resourceGroupN { case 200: { - CredentialData value = default; + AutomationCredentialData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CredentialData.DeserializeCredentialData(document.RootElement); + value = AutomationCredentialData.DeserializeAutomationCredentialData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((CredentialData)null, message.Response); + return Response.FromValue((AutomationCredentialData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, CredentialCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, AutomationCredentialCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -234,7 +234,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, CredentialCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, AutomationCredentialCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -249,9 +249,9 @@ public async Task> CreateOrUpdateAsync(string subscript case 200: case 201: { - CredentialData value = default; + AutomationCredentialData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CredentialData.DeserializeCredentialData(document.RootElement); + value = AutomationCredentialData.DeserializeAutomationCredentialData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -268,7 +268,7 @@ public async Task> CreateOrUpdateAsync(string subscript /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, CredentialCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, AutomationCredentialCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -283,9 +283,9 @@ public Response CreateOrUpdate(string subscriptionId, string res case 200: case 201: { - CredentialData value = default; + AutomationCredentialData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CredentialData.DeserializeCredentialData(document.RootElement); + value = AutomationCredentialData.DeserializeAutomationCredentialData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -293,7 +293,7 @@ public Response CreateOrUpdate(string subscriptionId, string res } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, CredentialPatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, AutomationCredentialPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -328,7 +328,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, CredentialPatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, AutomationCredentialPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -342,9 +342,9 @@ public async Task> UpdateAsync(string subscriptionId, s { case 200: { - CredentialData value = default; + AutomationCredentialData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CredentialData.DeserializeCredentialData(document.RootElement); + value = AutomationCredentialData.DeserializeAutomationCredentialData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -361,7 +361,7 @@ public async Task> UpdateAsync(string subscriptionId, s /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, CredentialPatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string credentialName, AutomationCredentialPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -375,9 +375,9 @@ public Response Update(string subscriptionId, string resourceGro { case 200: { - CredentialData value = default; + AutomationCredentialData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CredentialData.DeserializeCredentialData(document.RootElement); + value = AutomationCredentialData.DeserializeAutomationCredentialData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -413,7 +413,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -425,9 +425,9 @@ public async Task> ListByAutomationAccountAsync(s { case 200: { - CredentialListResult value = default; + AutomationCredentialListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CredentialListResult.DeserializeCredentialListResult(document.RootElement); + value = AutomationCredentialListResult.DeserializeAutomationCredentialListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -442,7 +442,7 @@ public async Task> ListByAutomationAccountAsync(s /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -454,9 +454,9 @@ public Response ListByAutomationAccount(string subscriptio { case 200: { - CredentialListResult value = default; + AutomationCredentialListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CredentialListResult.DeserializeCredentialListResult(document.RootElement); + value = AutomationCredentialListResult.DeserializeAutomationCredentialListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -486,7 +486,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -499,9 +499,9 @@ public async Task> ListByAutomationAccountNextPag { case 200: { - CredentialListResult value = default; + AutomationCredentialListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = CredentialListResult.DeserializeCredentialListResult(document.RootElement); + value = AutomationCredentialListResult.DeserializeAutomationCredentialListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -517,7 +517,7 @@ public async Task> ListByAutomationAccountNextPag /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -530,9 +530,9 @@ public Response ListByAutomationAccountNextPage(string nex { case 200: { - CredentialListResult value = default; + AutomationCredentialListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = CredentialListResult.DeserializeCredentialListResult(document.RootElement); + value = AutomationCredentialListResult.DeserializeAutomationCredentialListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobRestOperations.cs index 100b5cb0177eb..1a18943ee1ce1 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobRestOperations.cs @@ -325,7 +325,7 @@ internal HttpMessage CreateGetStreamRequest(string subscriptionId, string resour /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetStreamAsync(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) + public async Task> GetStreamAsync(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -338,9 +338,9 @@ public async Task> GetStreamAsync(string subscriptionId, str { case 200: { - JobStream value = default; + AutomationJobStream value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobStream.DeserializeJobStream(document.RootElement); + value = AutomationJobStream.DeserializeAutomationJobStream(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -357,7 +357,7 @@ public async Task> GetStreamAsync(string subscriptionId, str /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response GetStream(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) + public Response GetStream(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, string jobStreamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -370,9 +370,9 @@ public Response GetStream(string subscriptionId, string resourceGroup { case 200: { - JobStream value = default; + AutomationJobStream value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobStream.DeserializeJobStream(document.RootElement); + value = AutomationJobStream.DeserializeAutomationJobStream(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobStreamRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobStreamRestOperations.cs index 183e773c2c7e6..54c9b07bf98ff 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobStreamRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/DscCompilationJobStreamRestOperations.cs @@ -68,7 +68,7 @@ internal HttpMessage CreateListByJobRequest(string subscriptionId, string resour /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByJobAsync(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, CancellationToken cancellationToken = default) + public async Task> ListByJobAsync(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -80,9 +80,9 @@ public async Task> ListByJobAsync(string subscript { case 200: { - JobStreamListResult value = default; + AutomationJobStreamListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobStreamListResult.DeserializeJobStreamListResult(document.RootElement); + value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -98,7 +98,7 @@ public async Task> ListByJobAsync(string subscript /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByJob(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, CancellationToken cancellationToken = default) + public Response ListByJob(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -110,9 +110,9 @@ public Response ListByJob(string subscriptionId, string res { case 200: { - JobStreamListResult value = default; + AutomationJobStreamListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobStreamListResult.DeserializeJobStreamListResult(document.RootElement); + value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs index 104bea848b111..a44f3f999984e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/FieldsRestOperations.cs @@ -71,7 +71,7 @@ internal HttpMessage CreateListByTypeRequest(string subscriptionId, string resou /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> ListByTypeAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default) + public async Task> ListByTypeAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -85,9 +85,9 @@ public async Task> ListByTypeAsync(string subscrip { case 200: { - TypeFieldListResult value = default; + AutomationModuleFieldListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = TypeFieldListResult.DeserializeTypeFieldListResult(document.RootElement); + value = AutomationModuleFieldListResult.DeserializeAutomationModuleFieldListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -104,7 +104,7 @@ public async Task> ListByTypeAsync(string subscrip /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response ListByType(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default) + public Response ListByType(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -118,9 +118,9 @@ public Response ListByType(string subscriptionId, string re { case 200: { - TypeFieldListResult value = default; + AutomationModuleFieldListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = TypeFieldListResult.DeserializeTypeFieldListResult(document.RootElement); + value = AutomationModuleFieldListResult.DeserializeAutomationModuleFieldListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs index 367d8d361a6ce..6c696bc751526 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/HybridRunbookWorkerGroupRestOperations.cs @@ -199,7 +199,7 @@ public Response Get(string subscriptionId, string } } - internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupCreationParameters) + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -218,9 +218,9 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(hybridRunbookWorkerGroupCreationParameters); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; _userAgent.Apply(message); return message; } @@ -230,19 +230,19 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG /// Name of an Azure Resource group. /// The name of the automation account. /// The hybrid runbook worker group name. - /// The create or update parameters for hybrid runbook worker group. + /// The create or update parameters for hybrid runbook worker group. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupCreationParameters, CancellationToken cancellationToken = default) + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(hybridRunbookWorkerGroupName, nameof(hybridRunbookWorkerGroupName)); - Argument.AssertNotNull(hybridRunbookWorkerGroupCreationParameters, nameof(hybridRunbookWorkerGroupCreationParameters)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerGroupCreationParameters); + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -263,19 +263,19 @@ public async Task> CreateAsync(string sub /// Name of an Azure Resource group. /// The name of the automation account. /// The hybrid runbook worker group name. - /// The create or update parameters for hybrid runbook worker group. + /// The create or update parameters for hybrid runbook worker group. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupCreationParameters, CancellationToken cancellationToken = default) + public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(hybridRunbookWorkerGroupName, nameof(hybridRunbookWorkerGroupName)); - Argument.AssertNotNull(hybridRunbookWorkerGroupCreationParameters, nameof(hybridRunbookWorkerGroupCreationParameters)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerGroupCreationParameters); + using var message = CreateCreateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { @@ -291,7 +291,7 @@ public Response Create(string subscriptionId, stri } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupUpdationParameters) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -310,9 +310,9 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG request.Uri = uri; request.Headers.Add("Accept", "application/json"); request.Headers.Add("Content-Type", "application/json"); - var content = new Utf8JsonRequestContent(); - content.JsonWriter.WriteObjectValue(hybridRunbookWorkerGroupUpdationParameters); - request.Content = content; + var content0 = new Utf8JsonRequestContent(); + content0.JsonWriter.WriteObjectValue(content); + request.Content = content0; _userAgent.Apply(message); return message; } @@ -322,19 +322,19 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// Name of an Azure Resource group. /// The name of the automation account. /// The hybrid runbook worker group name. - /// The hybrid runbook worker group. + /// The hybrid runbook worker group. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupUpdationParameters, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(hybridRunbookWorkerGroupName, nameof(hybridRunbookWorkerGroupName)); - Argument.AssertNotNull(hybridRunbookWorkerGroupUpdationParameters, nameof(hybridRunbookWorkerGroupUpdationParameters)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerGroupUpdationParameters); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, content); await _pipeline.SendAsync(message, cancellationToken).ConfigureAwait(false); switch (message.Response.Status) { @@ -355,19 +355,19 @@ public async Task> UpdateAsync(string sub /// Name of an Azure Resource group. /// The name of the automation account. /// The hybrid runbook worker group name. - /// The hybrid runbook worker group. + /// The hybrid runbook worker group. /// The cancellation token to use. - /// , , , or is null. + /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateParameters hybridRunbookWorkerGroupUpdationParameters, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string hybridRunbookWorkerGroupName, HybridRunbookWorkerGroupCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); Argument.AssertNotNullOrEmpty(automationAccountName, nameof(automationAccountName)); Argument.AssertNotNullOrEmpty(hybridRunbookWorkerGroupName, nameof(hybridRunbookWorkerGroupName)); - Argument.AssertNotNull(hybridRunbookWorkerGroupUpdationParameters, nameof(hybridRunbookWorkerGroupUpdationParameters)); + Argument.AssertNotNull(content, nameof(content)); - using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, hybridRunbookWorkerGroupUpdationParameters); + using var message = CreateUpdateRequest(subscriptionId, resourceGroupName, automationAccountName, hybridRunbookWorkerGroupName, content); _pipeline.Send(message, cancellationToken); switch (message.Response.Status) { diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs index d77a99902b2ad..030001ee55f88 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobRestOperations.cs @@ -413,7 +413,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -426,13 +426,13 @@ public async Task> GetAsync(string subscriptionId, string reso { case 200: { - JobData value = default; + AutomationJobData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobData.DeserializeJobData(document.RootElement); + value = AutomationJobData.DeserializeAutomationJobData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((JobData)null, message.Response); + return Response.FromValue((AutomationJobData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -447,7 +447,7 @@ public async Task> GetAsync(string subscriptionId, string reso /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -460,19 +460,19 @@ public Response Get(string subscriptionId, string resourceGroupName, st { case 200: { - JobData value = default; + AutomationJobData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobData.DeserializeJobData(document.RootElement); + value = AutomationJobData.DeserializeAutomationJobData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((JobData)null, message.Response); + return Response.FromValue((AutomationJobData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, JobCreateOrUpdateContent content, string clientRequestId) + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, AutomationJobCreateOrUpdateContent content, string clientRequestId) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -512,7 +512,7 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, JobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, AutomationJobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -526,9 +526,9 @@ public async Task> CreateAsync(string subscriptionId, string r { case 201: { - JobData value = default; + AutomationJobData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobData.DeserializeJobData(document.RootElement); + value = AutomationJobData.DeserializeAutomationJobData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -546,7 +546,7 @@ public async Task> CreateAsync(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, JobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) + public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, AutomationJobCreateOrUpdateContent content, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -560,9 +560,9 @@ public Response Create(string subscriptionId, string resourceGroupName, { case 201: { - JobData value = default; + AutomationJobData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobData.DeserializeJobData(document.RootElement); + value = AutomationJobData.DeserializeAutomationJobData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -608,7 +608,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -620,9 +620,9 @@ public async Task> ListByAutomationAccountAsync(string { case 200: { - JobListResultV2 value = default; + AutomationJobListResultV2 value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobListResultV2.DeserializeJobListResultV2(document.RootElement); + value = AutomationJobListResultV2.DeserializeAutomationJobListResultV2(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -639,7 +639,7 @@ public async Task> ListByAutomationAccountAsync(string /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -651,9 +651,9 @@ public Response ListByAutomationAccount(string subscriptionId, { case 200: { - JobListResultV2 value = default; + AutomationJobListResultV2 value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobListResultV2.DeserializeJobListResultV2(document.RootElement); + value = AutomationJobListResultV2.DeserializeAutomationJobListResultV2(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -770,7 +770,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -783,9 +783,9 @@ public async Task> ListByAutomationAccountNextPageAsyn { case 200: { - JobListResultV2 value = default; + AutomationJobListResultV2 value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobListResultV2.DeserializeJobListResultV2(document.RootElement); + value = AutomationJobListResultV2.DeserializeAutomationJobListResultV2(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -803,7 +803,7 @@ public async Task> ListByAutomationAccountNextPageAsyn /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -816,9 +816,9 @@ public Response ListByAutomationAccountNextPage(string nextLink { case 200: { - JobListResultV2 value = default; + AutomationJobListResultV2 value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobListResultV2.DeserializeJobListResultV2(document.RootElement); + value = AutomationJobListResultV2.DeserializeAutomationJobListResultV2(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs index 938fc26adbd11..f5e1bbb64e46e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobScheduleRestOperations.cs @@ -139,7 +139,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -151,13 +151,13 @@ public async Task> GetAsync(string subscriptionId, str { case 200: { - JobScheduleData value = default; + AutomationJobScheduleData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobScheduleData.DeserializeJobScheduleData(document.RootElement); + value = AutomationJobScheduleData.DeserializeAutomationJobScheduleData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((JobScheduleData)null, message.Response); + return Response.FromValue((AutomationJobScheduleData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -171,7 +171,7 @@ public async Task> GetAsync(string subscriptionId, str /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -183,19 +183,19 @@ public Response Get(string subscriptionId, string resourceGroup { case 200: { - JobScheduleData value = default; + AutomationJobScheduleData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobScheduleData.DeserializeJobScheduleData(document.RootElement); + value = AutomationJobScheduleData.DeserializeAutomationJobScheduleData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((JobScheduleData)null, message.Response); + return Response.FromValue((AutomationJobScheduleData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, JobScheduleCreateOrUpdateContent content) + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, AutomationJobScheduleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -230,7 +230,7 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, JobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, AutomationJobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -243,9 +243,9 @@ public async Task> CreateAsync(string subscriptionId, { case 201: { - JobScheduleData value = default; + AutomationJobScheduleData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobScheduleData.DeserializeJobScheduleData(document.RootElement); + value = AutomationJobScheduleData.DeserializeAutomationJobScheduleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -262,7 +262,7 @@ public async Task> CreateAsync(string subscriptionId, /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, JobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, Guid jobScheduleId, AutomationJobScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -275,9 +275,9 @@ public Response Create(string subscriptionId, string resourceGr { case 201: { - JobScheduleData value = default; + AutomationJobScheduleData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobScheduleData.DeserializeJobScheduleData(document.RootElement); + value = AutomationJobScheduleData.DeserializeAutomationJobScheduleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -318,7 +318,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -330,9 +330,9 @@ public async Task> ListByAutomationAccountAsync( { case 200: { - JobScheduleListResult value = default; + AutomationJobScheduleListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobScheduleListResult.DeserializeJobScheduleListResult(document.RootElement); + value = AutomationJobScheduleListResult.DeserializeAutomationJobScheduleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -348,7 +348,7 @@ public async Task> ListByAutomationAccountAsync( /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -360,9 +360,9 @@ public Response ListByAutomationAccount(string subscripti { case 200: { - JobScheduleListResult value = default; + AutomationJobScheduleListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobScheduleListResult.DeserializeJobScheduleListResult(document.RootElement); + value = AutomationJobScheduleListResult.DeserializeAutomationJobScheduleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -393,7 +393,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -406,9 +406,9 @@ public async Task> ListByAutomationAccountNextPa { case 200: { - JobScheduleListResult value = default; + AutomationJobScheduleListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobScheduleListResult.DeserializeJobScheduleListResult(document.RootElement); + value = AutomationJobScheduleListResult.DeserializeAutomationJobScheduleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -425,7 +425,7 @@ public async Task> ListByAutomationAccountNextPa /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -438,9 +438,9 @@ public Response ListByAutomationAccountNextPage(string ne { case 200: { - JobScheduleListResult value = default; + AutomationJobScheduleListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobScheduleListResult.DeserializeJobScheduleListResult(document.RootElement); + value = AutomationJobScheduleListResult.DeserializeAutomationJobScheduleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs index 660ac2f407d14..31456023d2bc0 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/JobStreamRestOperations.cs @@ -75,7 +75,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string jobStreamId, string clientRequestId = null, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string jobStreamId, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -89,9 +89,9 @@ public async Task> GetAsync(string subscriptionId, string re { case 200: { - JobStream value = default; + AutomationJobStream value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobStream.DeserializeJobStream(document.RootElement); + value = AutomationJobStream.DeserializeAutomationJobStream(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -109,7 +109,7 @@ public async Task> GetAsync(string subscriptionId, string re /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string jobStreamId, string clientRequestId = null, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string jobStreamId, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -123,9 +123,9 @@ public Response Get(string subscriptionId, string resourceGroupName, { case 200: { - JobStream value = default; + AutomationJobStream value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobStream.DeserializeJobStream(document.RootElement); + value = AutomationJobStream.DeserializeAutomationJobStream(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -174,7 +174,7 @@ internal HttpMessage CreateListByJobRequest(string subscriptionId, string resour /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListByJobAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + public async Task> ListByJobAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -187,9 +187,9 @@ public async Task> ListByJobAsync(string subscript { case 200: { - JobStreamListResult value = default; + AutomationJobStreamListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobStreamListResult.DeserializeJobStreamListResult(document.RootElement); + value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -207,7 +207,7 @@ public async Task> ListByJobAsync(string subscript /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListByJob(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + public Response ListByJob(string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -220,9 +220,9 @@ public Response ListByJob(string subscriptionId, string res { case 200: { - JobStreamListResult value = default; + AutomationJobStreamListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobStreamListResult.DeserializeJobStreamListResult(document.RootElement); + value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -259,7 +259,7 @@ internal HttpMessage CreateListByJobNextPageRequest(string nextLink, string subs /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListByJobNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + public async Task> ListByJobNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -273,9 +273,9 @@ public async Task> ListByJobNextPageAsync(string n { case 200: { - JobStreamListResult value = default; + AutomationJobStreamListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobStreamListResult.DeserializeJobStreamListResult(document.RootElement); + value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -294,7 +294,7 @@ public async Task> ListByJobNextPageAsync(string n /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListByJobNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) + public Response ListByJobNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string jobName, string filter = null, string clientRequestId = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -308,9 +308,9 @@ public Response ListByJobNextPage(string nextLink, string s { case 200: { - JobStreamListResult value = default; + AutomationJobStreamListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobStreamListResult.DeserializeJobStreamListResult(document.RootElement); + value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs index 6784840c5b88d..7533178f3bfb6 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/KeysRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,9 +77,9 @@ public async Task> ListByAutomationAccountAsync(string s { case 200: { - KeyListResult value = default; + AutomationKeyListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = KeyListResult.DeserializeKeyListResult(document.RootElement); + value = AutomationKeyListResult.DeserializeAutomationKeyListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -94,7 +94,7 @@ public async Task> ListByAutomationAccountAsync(string s /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -106,9 +106,9 @@ public Response ListByAutomationAccount(string subscriptionId, st { case 200: { - KeyListResult value = default; + AutomationKeyListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = KeyListResult.DeserializeKeyListResult(document.RootElement); + value = AutomationKeyListResult.DeserializeAutomationKeyListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs index 6ba74f69691ad..e68393737e084 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/LinkedWorkspaceRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,9 +77,9 @@ public async Task> GetAsync(string subscriptionId, str { case 200: { - LinkedWorkspace value = default; + AutomationLinkedWorkspace value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = LinkedWorkspace.DeserializeLinkedWorkspace(document.RootElement); + value = AutomationLinkedWorkspace.DeserializeAutomationLinkedWorkspace(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -94,7 +94,7 @@ public async Task> GetAsync(string subscriptionId, str /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -106,9 +106,9 @@ public Response Get(string subscriptionId, string resourceGroup { case 200: { - LinkedWorkspace value = default; + AutomationLinkedWorkspace value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = LinkedWorkspace.DeserializeLinkedWorkspace(document.RootElement); + value = AutomationLinkedWorkspace.DeserializeAutomationLinkedWorkspace(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs index 493365b7cc4af..b532922dbd85c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ModuleRestOperations.cs @@ -141,7 +141,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -154,13 +154,13 @@ public async Task> GetAsync(string subscriptionId, string r { case 200: { - ModuleData value = default; + AutomationModuleData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ModuleData)null, message.Response); + return Response.FromValue((AutomationModuleData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -174,7 +174,7 @@ public async Task> GetAsync(string subscriptionId, string r /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -187,13 +187,13 @@ public Response Get(string subscriptionId, string resourceGroupName, { case 200: { - ModuleData value = default; + AutomationModuleData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ModuleData)null, message.Response); + return Response.FromValue((AutomationModuleData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -234,7 +234,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModuleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModuleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -249,9 +249,9 @@ public async Task> CreateOrUpdateAsync(string subscriptionI case 200: case 201: { - ModuleData value = default; + AutomationModuleData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -268,7 +268,7 @@ public async Task> CreateOrUpdateAsync(string subscriptionI /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModuleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModuleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -283,9 +283,9 @@ public Response CreateOrUpdate(string subscriptionId, string resourc case 200: case 201: { - ModuleData value = default; + AutomationModuleData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -328,7 +328,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModulePatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModulePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -342,9 +342,9 @@ public async Task> UpdateAsync(string subscriptionId, strin { case 200: { - ModuleData value = default; + AutomationModuleData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -361,7 +361,7 @@ public async Task> UpdateAsync(string subscriptionId, strin /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModulePatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, AutomationAccountModulePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -375,9 +375,9 @@ public Response Update(string subscriptionId, string resourceGroupNa { case 200: { - ModuleData value = default; + AutomationModuleData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -413,7 +413,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -425,9 +425,9 @@ public async Task> ListByAutomationAccountAsync(strin { case 200: { - ModuleListResult value = default; + AutomationModuleListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ModuleListResult.DeserializeModuleListResult(document.RootElement); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -442,7 +442,7 @@ public async Task> ListByAutomationAccountAsync(strin /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -454,9 +454,9 @@ public Response ListByAutomationAccount(string subscriptionId, { case 200: { - ModuleListResult value = default; + AutomationModuleListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ModuleListResult.DeserializeModuleListResult(document.RootElement); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -486,7 +486,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -499,9 +499,9 @@ public async Task> ListByAutomationAccountNextPageAsy { case 200: { - ModuleListResult value = default; + AutomationModuleListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ModuleListResult.DeserializeModuleListResult(document.RootElement); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -517,7 +517,7 @@ public async Task> ListByAutomationAccountNextPageAsy /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -530,9 +530,9 @@ public Response ListByAutomationAccountNextPage(string nextLin { case 200: { - ModuleListResult value = default; + AutomationModuleListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ModuleListResult.DeserializeModuleListResult(document.RootElement); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs index 81f8fe07acdd5..de26d76067c79 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/NodeCountInformationRestOperations.cs @@ -37,7 +37,7 @@ public NodeCountInformationRestOperations(HttpPipeline pipeline, string applicat _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, CountType countType) + internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGroupName, string automationAccountName, AutomationCountType countType) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -67,7 +67,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CountType countType, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, AutomationCountType countType, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -79,9 +79,9 @@ public async Task> GetAsync(string subscriptionId, string r { case 200: { - NodeCounts value = default; + DscNodeCountListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = NodeCounts.DeserializeNodeCounts(document.RootElement); + value = DscNodeCountListResult.DeserializeDscNodeCountListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -97,7 +97,7 @@ public async Task> GetAsync(string subscriptionId, string r /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, CountType countType, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, AutomationCountType countType, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -109,9 +109,9 @@ public Response Get(string subscriptionId, string resourceGroupName, { case 200: { - NodeCounts value = default; + DscNodeCountListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = NodeCounts.DeserializeNodeCounts(document.RootElement); + value = DscNodeCountListResult.DeserializeDscNodeCountListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs index 0f10585d160bd..a9f1dcd1a258a 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ObjectDataTypesRestOperations.cs @@ -71,7 +71,7 @@ internal HttpMessage CreateListFieldsByModuleAndTypeRequest(string subscriptionI /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> ListFieldsByModuleAndTypeAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default) + public async Task> ListFieldsByModuleAndTypeAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -85,9 +85,9 @@ public async Task> ListFieldsByModuleAndTypeAsync( { case 200: { - TypeFieldListResult value = default; + AutomationModuleFieldListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = TypeFieldListResult.DeserializeTypeFieldListResult(document.RootElement); + value = AutomationModuleFieldListResult.DeserializeAutomationModuleFieldListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -104,7 +104,7 @@ public async Task> ListFieldsByModuleAndTypeAsync( /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response ListFieldsByModuleAndType(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default) + public Response ListFieldsByModuleAndType(string subscriptionId, string resourceGroupName, string automationAccountName, string moduleName, string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -118,9 +118,9 @@ public Response ListFieldsByModuleAndType(string subscripti { case 200: { - TypeFieldListResult value = default; + AutomationModuleFieldListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = TypeFieldListResult.DeserializeTypeFieldListResult(document.RootElement); + value = AutomationModuleFieldListResult.DeserializeAutomationModuleFieldListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -159,7 +159,7 @@ internal HttpMessage CreateListFieldsByTypeRequest(string subscriptionId, string /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListFieldsByTypeAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string typeName, CancellationToken cancellationToken = default) + public async Task> ListFieldsByTypeAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -172,9 +172,9 @@ public async Task> ListFieldsByTypeAsync(string su { case 200: { - TypeFieldListResult value = default; + AutomationModuleFieldListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = TypeFieldListResult.DeserializeTypeFieldListResult(document.RootElement); + value = AutomationModuleFieldListResult.DeserializeAutomationModuleFieldListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -190,7 +190,7 @@ public async Task> ListFieldsByTypeAsync(string su /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListFieldsByType(string subscriptionId, string resourceGroupName, string automationAccountName, string typeName, CancellationToken cancellationToken = default) + public Response ListFieldsByType(string subscriptionId, string resourceGroupName, string automationAccountName, string typeName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -203,9 +203,9 @@ public Response ListFieldsByType(string subscriptionId, str { case 200: { - TypeFieldListResult value = default; + AutomationModuleFieldListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = TypeFieldListResult.DeserializeTypeFieldListResult(document.RootElement); + value = AutomationModuleFieldListResult.DeserializeAutomationModuleFieldListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs index 6c2bf80676885..fa26d06f1a2a5 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/Python2PackageRestOperations.cs @@ -141,7 +141,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -154,13 +154,13 @@ public async Task> GetAsync(string subscriptionId, string r { case 200: { - ModuleData value = default; + AutomationModuleData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ModuleData)null, message.Response); + return Response.FromValue((AutomationModuleData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -174,7 +174,7 @@ public async Task> GetAsync(string subscriptionId, string r /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -187,13 +187,13 @@ public Response Get(string subscriptionId, string resourceGroupName, { case 200: { - ModuleData value = default; + AutomationModuleData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ModuleData)null, message.Response); + return Response.FromValue((AutomationModuleData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -234,7 +234,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -249,9 +249,9 @@ public async Task> CreateOrUpdateAsync(string subscriptionI case 200: case 201: { - ModuleData value = default; + AutomationModuleData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -268,7 +268,7 @@ public async Task> CreateOrUpdateAsync(string subscriptionI /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackageCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -283,9 +283,9 @@ public Response CreateOrUpdate(string subscriptionId, string resourc case 200: case 201: { - ModuleData value = default; + AutomationModuleData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -328,7 +328,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -342,9 +342,9 @@ public async Task> UpdateAsync(string subscriptionId, strin { case 200: { - ModuleData value = default; + AutomationModuleData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -361,7 +361,7 @@ public async Task> UpdateAsync(string subscriptionId, strin /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string packageName, AutomationAccountPython2PackagePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -375,9 +375,9 @@ public Response Update(string subscriptionId, string resourceGroupNa { case 200: { - ModuleData value = default; + AutomationModuleData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ModuleData.DeserializeModuleData(document.RootElement); + value = AutomationModuleData.DeserializeAutomationModuleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -413,7 +413,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -425,9 +425,9 @@ public async Task> ListByAutomationAccountAsync(strin { case 200: { - ModuleListResult value = default; + AutomationModuleListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ModuleListResult.DeserializeModuleListResult(document.RootElement); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -442,7 +442,7 @@ public async Task> ListByAutomationAccountAsync(strin /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -454,9 +454,9 @@ public Response ListByAutomationAccount(string subscriptionId, { case 200: { - ModuleListResult value = default; + AutomationModuleListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ModuleListResult.DeserializeModuleListResult(document.RootElement); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -486,7 +486,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -499,9 +499,9 @@ public async Task> ListByAutomationAccountNextPageAsy { case 200: { - ModuleListResult value = default; + AutomationModuleListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ModuleListResult.DeserializeModuleListResult(document.RootElement); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -517,7 +517,7 @@ public async Task> ListByAutomationAccountNextPageAsy /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -530,9 +530,9 @@ public Response ListByAutomationAccountNextPage(string nextLin { case 200: { - ModuleListResult value = default; + AutomationModuleListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ModuleListResult.DeserializeModuleListResult(document.RootElement); + value = AutomationModuleListResult.DeserializeAutomationModuleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs index 7c650b04179ea..f929d0364bfeb 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookDraftRestOperations.cs @@ -235,7 +235,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -248,9 +248,9 @@ public async Task> GetAsync(string subscriptionId, string { case 200: { - RunbookDraft value = default; + AutomationRunbookDraft value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = RunbookDraft.DeserializeRunbookDraft(document.RootElement); + value = AutomationRunbookDraft.DeserializeAutomationRunbookDraft(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -266,7 +266,7 @@ public async Task> GetAsync(string subscriptionId, string /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -279,9 +279,9 @@ public Response Get(string subscriptionId, string resourceGroupNam { case 200: { - RunbookDraft value = default; + AutomationRunbookDraft value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = RunbookDraft.DeserializeRunbookDraft(document.RootElement); + value = AutomationRunbookDraft.DeserializeAutomationRunbookDraft(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs index 056e479ccfa4b..db97ed2c36b94 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/RunbookRestOperations.cs @@ -226,7 +226,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -239,13 +239,13 @@ public async Task> GetAsync(string subscriptionId, string { case 200: { - RunbookData value = default; + AutomationRunbookData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = RunbookData.DeserializeRunbookData(document.RootElement); + value = AutomationRunbookData.DeserializeAutomationRunbookData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((RunbookData)null, message.Response); + return Response.FromValue((AutomationRunbookData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -259,7 +259,7 @@ public async Task> GetAsync(string subscriptionId, string /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -272,19 +272,19 @@ public Response Get(string subscriptionId, string resourceGroupName { case 200: { - RunbookData value = default; + AutomationRunbookData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = RunbookData.DeserializeRunbookData(document.RootElement); + value = AutomationRunbookData.DeserializeAutomationRunbookData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((RunbookData)null, message.Response); + return Response.FromValue((AutomationRunbookData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, RunbookCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, AutomationRunbookCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -319,7 +319,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, RunbookCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, AutomationRunbookCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -334,9 +334,9 @@ public async Task> CreateOrUpdateAsync(string subscription case 200: case 201: { - RunbookData value = default; + AutomationRunbookData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = RunbookData.DeserializeRunbookData(document.RootElement); + value = AutomationRunbookData.DeserializeAutomationRunbookData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -353,7 +353,7 @@ public async Task> CreateOrUpdateAsync(string subscription /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, RunbookCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, AutomationRunbookCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -368,9 +368,9 @@ public Response CreateOrUpdate(string subscriptionId, string resour case 200: case 201: { - RunbookData value = default; + AutomationRunbookData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = RunbookData.DeserializeRunbookData(document.RootElement); + value = AutomationRunbookData.DeserializeAutomationRunbookData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -378,7 +378,7 @@ public Response CreateOrUpdate(string subscriptionId, string resour } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, RunbookPatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, AutomationRunbookPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -413,7 +413,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, RunbookPatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, AutomationRunbookPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -427,9 +427,9 @@ public async Task> UpdateAsync(string subscriptionId, stri { case 200: { - RunbookData value = default; + AutomationRunbookData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = RunbookData.DeserializeRunbookData(document.RootElement); + value = AutomationRunbookData.DeserializeAutomationRunbookData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -446,7 +446,7 @@ public async Task> UpdateAsync(string subscriptionId, stri /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, RunbookPatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, AutomationRunbookPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -460,9 +460,9 @@ public Response Update(string subscriptionId, string resourceGroupN { case 200: { - RunbookData value = default; + AutomationRunbookData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = RunbookData.DeserializeRunbookData(document.RootElement); + value = AutomationRunbookData.DeserializeAutomationRunbookData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -574,7 +574,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -586,9 +586,9 @@ public async Task> ListByAutomationAccountAsync(stri { case 200: { - RunbookListResult value = default; + AutomationRunbookListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = RunbookListResult.DeserializeRunbookListResult(document.RootElement); + value = AutomationRunbookListResult.DeserializeAutomationRunbookListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -603,7 +603,7 @@ public async Task> ListByAutomationAccountAsync(stri /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -615,9 +615,9 @@ public Response ListByAutomationAccount(string subscriptionId { case 200: { - RunbookListResult value = default; + AutomationRunbookListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = RunbookListResult.DeserializeRunbookListResult(document.RootElement); + value = AutomationRunbookListResult.DeserializeAutomationRunbookListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -647,7 +647,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -660,9 +660,9 @@ public async Task> ListByAutomationAccountNextPageAs { case 200: { - RunbookListResult value = default; + AutomationRunbookListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = RunbookListResult.DeserializeRunbookListResult(document.RootElement); + value = AutomationRunbookListResult.DeserializeAutomationRunbookListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -678,7 +678,7 @@ public async Task> ListByAutomationAccountNextPageAs /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -691,9 +691,9 @@ public Response ListByAutomationAccountNextPage(string nextLi { case 200: { - RunbookListResult value = default; + AutomationRunbookListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = RunbookListResult.DeserializeRunbookListResult(document.RootElement); + value = AutomationRunbookListResult.DeserializeAutomationRunbookListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs index 3df731e0fb48f..039481b56683d 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/ScheduleRestOperations.cs @@ -37,7 +37,7 @@ public ScheduleRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, ScheduleCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, AutomationScheduleCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -72,7 +72,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, ScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, AutomationScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -87,13 +87,13 @@ public async Task> CreateOrUpdateAsync(string subscriptio case 200: case 201: { - ScheduleData value = default; + AutomationScheduleData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ScheduleData.DeserializeScheduleData(document.RootElement); + value = AutomationScheduleData.DeserializeAutomationScheduleData(document.RootElement); return Response.FromValue(value, message.Response); } case 409: - return Response.FromValue((ScheduleData)null, message.Response); + return Response.FromValue((AutomationScheduleData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -108,7 +108,7 @@ public async Task> CreateOrUpdateAsync(string subscriptio /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, ScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, AutomationScheduleCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -123,19 +123,19 @@ public Response CreateOrUpdate(string subscriptionId, string resou case 200: case 201: { - ScheduleData value = default; + AutomationScheduleData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ScheduleData.DeserializeScheduleData(document.RootElement); + value = AutomationScheduleData.DeserializeAutomationScheduleData(document.RootElement); return Response.FromValue(value, message.Response); } case 409: - return Response.FromValue((ScheduleData)null, message.Response); + return Response.FromValue((AutomationScheduleData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, SchedulePatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, AutomationSchedulePatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -170,7 +170,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, SchedulePatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, AutomationSchedulePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -184,9 +184,9 @@ public async Task> UpdateAsync(string subscriptionId, str { case 200: { - ScheduleData value = default; + AutomationScheduleData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ScheduleData.DeserializeScheduleData(document.RootElement); + value = AutomationScheduleData.DeserializeAutomationScheduleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -203,7 +203,7 @@ public async Task> UpdateAsync(string subscriptionId, str /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, SchedulePatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, AutomationSchedulePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -217,9 +217,9 @@ public Response Update(string subscriptionId, string resourceGroup { case 200: { - ScheduleData value = default; + AutomationScheduleData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ScheduleData.DeserializeScheduleData(document.RootElement); + value = AutomationScheduleData.DeserializeAutomationScheduleData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -257,7 +257,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -270,13 +270,13 @@ public async Task> GetAsync(string subscriptionId, string { case 200: { - ScheduleData value = default; + AutomationScheduleData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ScheduleData.DeserializeScheduleData(document.RootElement); + value = AutomationScheduleData.DeserializeAutomationScheduleData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ScheduleData)null, message.Response); + return Response.FromValue((AutomationScheduleData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -290,7 +290,7 @@ public async Task> GetAsync(string subscriptionId, string /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string scheduleName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -303,13 +303,13 @@ public Response Get(string subscriptionId, string resourceGroupNam { case 200: { - ScheduleData value = default; + AutomationScheduleData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ScheduleData.DeserializeScheduleData(document.RootElement); + value = AutomationScheduleData.DeserializeAutomationScheduleData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((ScheduleData)null, message.Response); + return Response.FromValue((AutomationScheduleData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -417,7 +417,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -429,9 +429,9 @@ public async Task> ListByAutomationAccountAsync(str { case 200: { - ScheduleListResult value = default; + AutomationScheduleListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ScheduleListResult.DeserializeScheduleListResult(document.RootElement); + value = AutomationScheduleListResult.DeserializeAutomationScheduleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -446,7 +446,7 @@ public async Task> ListByAutomationAccountAsync(str /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -458,9 +458,9 @@ public Response ListByAutomationAccount(string subscriptionI { case 200: { - ScheduleListResult value = default; + AutomationScheduleListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ScheduleListResult.DeserializeScheduleListResult(document.RootElement); + value = AutomationScheduleListResult.DeserializeAutomationScheduleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -490,7 +490,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -503,9 +503,9 @@ public async Task> ListByAutomationAccountNextPageA { case 200: { - ScheduleListResult value = default; + AutomationScheduleListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = ScheduleListResult.DeserializeScheduleListResult(document.RootElement); + value = AutomationScheduleListResult.DeserializeAutomationScheduleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -521,7 +521,7 @@ public async Task> ListByAutomationAccountNextPageA /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -534,9 +534,9 @@ public Response ListByAutomationAccountNextPage(string nextL { case 200: { - ScheduleListResult value = default; + AutomationScheduleListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = ScheduleListResult.DeserializeScheduleListResult(document.RootElement); + value = AutomationScheduleListResult.DeserializeAutomationScheduleListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs index 605839e80fd65..4c088b7c4aca7 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlRestOperations.cs @@ -37,7 +37,7 @@ public SourceControlRestOperations(HttpPipeline pipeline, string applicationId, _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, SourceControlCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, AutomationSourceControlCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -72,7 +72,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, SourceControlCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, AutomationSourceControlCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -87,9 +87,9 @@ public async Task> CreateOrUpdateAsync(string subscr case 200: case 201: { - SourceControlData value = default; + AutomationSourceControlData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SourceControlData.DeserializeSourceControlData(document.RootElement); + value = AutomationSourceControlData.DeserializeAutomationSourceControlData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -106,7 +106,7 @@ public async Task> CreateOrUpdateAsync(string subscr /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, SourceControlCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, AutomationSourceControlCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -121,9 +121,9 @@ public Response CreateOrUpdate(string subscriptionId, string case 200: case 201: { - SourceControlData value = default; + AutomationSourceControlData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SourceControlData.DeserializeSourceControlData(document.RootElement); + value = AutomationSourceControlData.DeserializeAutomationSourceControlData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -131,7 +131,7 @@ public Response CreateOrUpdate(string subscriptionId, string } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, SourceControlPatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, AutomationSourceControlPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -166,7 +166,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, SourceControlPatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, AutomationSourceControlPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -180,9 +180,9 @@ public async Task> UpdateAsync(string subscriptionId { case 200: { - SourceControlData value = default; + AutomationSourceControlData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SourceControlData.DeserializeSourceControlData(document.RootElement); + value = AutomationSourceControlData.DeserializeAutomationSourceControlData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -199,7 +199,7 @@ public async Task> UpdateAsync(string subscriptionId /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, SourceControlPatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, AutomationSourceControlPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -213,9 +213,9 @@ public Response Update(string subscriptionId, string resource { case 200: { - SourceControlData value = default; + AutomationSourceControlData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SourceControlData.DeserializeSourceControlData(document.RootElement); + value = AutomationSourceControlData.DeserializeAutomationSourceControlData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -327,7 +327,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -340,13 +340,13 @@ public async Task> GetAsync(string subscriptionId, s { case 200: { - SourceControlData value = default; + AutomationSourceControlData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SourceControlData.DeserializeSourceControlData(document.RootElement); + value = AutomationSourceControlData.DeserializeAutomationSourceControlData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((SourceControlData)null, message.Response); + return Response.FromValue((AutomationSourceControlData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -360,7 +360,7 @@ public async Task> GetAsync(string subscriptionId, s /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -373,13 +373,13 @@ public Response Get(string subscriptionId, string resourceGro { case 200: { - SourceControlData value = default; + AutomationSourceControlData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SourceControlData.DeserializeSourceControlData(document.RootElement); + value = AutomationSourceControlData.DeserializeAutomationSourceControlData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((SourceControlData)null, message.Response); + return Response.FromValue((AutomationSourceControlData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -418,7 +418,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -430,9 +430,9 @@ public async Task> ListByAutomationAccountAsyn { case 200: { - SourceControlListResult value = default; + AutomationSourceControlListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SourceControlListResult.DeserializeSourceControlListResult(document.RootElement); + value = AutomationSourceControlListResult.DeserializeAutomationSourceControlListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -448,7 +448,7 @@ public async Task> ListByAutomationAccountAsyn /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -460,9 +460,9 @@ public Response ListByAutomationAccount(string subscrip { case 200: { - SourceControlListResult value = default; + AutomationSourceControlListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SourceControlListResult.DeserializeSourceControlListResult(document.RootElement); + value = AutomationSourceControlListResult.DeserializeAutomationSourceControlListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -493,7 +493,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -506,9 +506,9 @@ public async Task> ListByAutomationAccountNext { case 200: { - SourceControlListResult value = default; + AutomationSourceControlListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SourceControlListResult.DeserializeSourceControlListResult(document.RootElement); + value = AutomationSourceControlListResult.DeserializeAutomationSourceControlListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -525,7 +525,7 @@ public async Task> ListByAutomationAccountNext /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -538,9 +538,9 @@ public Response ListByAutomationAccountNextPage(string { case 200: { - SourceControlListResult value = default; + AutomationSourceControlListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SourceControlListResult.DeserializeSourceControlListResult(document.RootElement); + value = AutomationSourceControlListResult.DeserializeAutomationSourceControlListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs index 238f5feadcac2..f61bf8c8d4455 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobRestOperations.cs @@ -166,7 +166,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -179,9 +179,9 @@ public async Task> GetAsync(string subscripti { case 200: { - SourceControlSyncJobById value = default; + SourceControlSyncJobResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SourceControlSyncJobById.DeserializeSourceControlSyncJobById(document.RootElement); + value = SourceControlSyncJobResult.DeserializeSourceControlSyncJobResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -198,7 +198,7 @@ public async Task> GetAsync(string subscripti /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -211,9 +211,9 @@ public Response Get(string subscriptionId, string reso { case 200: { - SourceControlSyncJobById value = default; + SourceControlSyncJobResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SourceControlSyncJobById.DeserializeSourceControlSyncJobById(document.RootElement); + value = SourceControlSyncJobResult.DeserializeSourceControlSyncJobResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs index 77ee7bb19c065..d0155cca67511 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/SourceControlSyncJobStreamsRestOperations.cs @@ -76,7 +76,7 @@ internal HttpMessage CreateListBySyncJobRequest(string subscriptionId, string re /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListBySyncJobAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListBySyncJobAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -89,9 +89,9 @@ public async Task> ListBySync { case 200: { - SourceControlSyncJobStreamsListBySyncJob value = default; + SourceControlSyncJobStreamListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SourceControlSyncJobStreamsListBySyncJob.DeserializeSourceControlSyncJobStreamsListBySyncJob(document.RootElement); + value = SourceControlSyncJobStreamListResult.DeserializeSourceControlSyncJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -109,7 +109,7 @@ public async Task> ListBySync /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListBySyncJob(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) + public Response ListBySyncJob(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -122,9 +122,9 @@ public Response ListBySyncJob(string s { case 200: { - SourceControlSyncJobStreamsListBySyncJob value = default; + SourceControlSyncJobStreamListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SourceControlSyncJobStreamsListBySyncJob.DeserializeSourceControlSyncJobStreamsListBySyncJob(document.RootElement); + value = SourceControlSyncJobStreamListResult.DeserializeSourceControlSyncJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -168,7 +168,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string streamId, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string streamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -182,9 +182,9 @@ public async Task> GetAsync(string subs { case 200: { - SourceControlSyncJobStreamById value = default; + SourceControlSyncJobStreamResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SourceControlSyncJobStreamById.DeserializeSourceControlSyncJobStreamById(document.RootElement); + value = SourceControlSyncJobStreamResult.DeserializeSourceControlSyncJobStreamResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -202,7 +202,7 @@ public async Task> GetAsync(string subs /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string streamId, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string streamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -216,9 +216,9 @@ public Response Get(string subscriptionId, strin { case 200: { - SourceControlSyncJobStreamById value = default; + SourceControlSyncJobStreamResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SourceControlSyncJobStreamById.DeserializeSourceControlSyncJobStreamById(document.RootElement); + value = SourceControlSyncJobStreamResult.DeserializeSourceControlSyncJobStreamResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -251,7 +251,7 @@ internal HttpMessage CreateListBySyncJobNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListBySyncJobNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListBySyncJobNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -265,9 +265,9 @@ public async Task> ListBySync { case 200: { - SourceControlSyncJobStreamsListBySyncJob value = default; + SourceControlSyncJobStreamListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = SourceControlSyncJobStreamsListBySyncJob.DeserializeSourceControlSyncJobStreamsListBySyncJob(document.RootElement); + value = SourceControlSyncJobStreamListResult.DeserializeSourceControlSyncJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -286,7 +286,7 @@ public async Task> ListBySync /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListBySyncJobNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) + public Response ListBySyncJobNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string sourceControlName, Guid sourceControlSyncJobId, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -300,9 +300,9 @@ public Response ListBySyncJobNextPage( { case 200: { - SourceControlSyncJobStreamsListBySyncJob value = default; + SourceControlSyncJobStreamListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = SourceControlSyncJobStreamsListBySyncJob.DeserializeSourceControlSyncJobStreamsListBySyncJob(document.RootElement); + value = SourceControlSyncJobStreamListResult.DeserializeSourceControlSyncJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs index 36515bb4969ca..0b19c3b3b5f9b 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/StatisticsRestOperations.cs @@ -70,7 +70,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -82,9 +82,9 @@ public async Task> ListByAutomationAccountAsync(s { case 200: { - StatisticsListResult value = default; + AutomationAccountStatisticsListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = StatisticsListResult.DeserializeStatisticsListResult(document.RootElement); + value = AutomationAccountStatisticsListResult.DeserializeAutomationAccountStatisticsListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -100,7 +100,7 @@ public async Task> ListByAutomationAccountAsync(s /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -112,9 +112,9 @@ public Response ListByAutomationAccount(string subscriptio { case 200: { - StatisticsListResult value = default; + AutomationAccountStatisticsListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = StatisticsListResult.DeserializeStatisticsListResult(document.RootElement); + value = AutomationAccountStatisticsListResult.DeserializeAutomationAccountStatisticsListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs index a1a1c4ba48142..e051e18faf2d9 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobRestOperations.cs @@ -37,7 +37,7 @@ public TestJobRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, TestJobCreateContent content) + internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, RunbookTestJobCreateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -73,7 +73,7 @@ internal HttpMessage CreateCreateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, TestJobCreateContent content, CancellationToken cancellationToken = default) + public async Task> CreateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, RunbookTestJobCreateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -87,9 +87,9 @@ public async Task> CreateAsync(string subscriptionId, string r { case 201: { - TestJob value = default; + RunbookTestJob value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = TestJob.DeserializeTestJob(document.RootElement); + value = RunbookTestJob.DeserializeRunbookTestJob(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -106,7 +106,7 @@ public async Task> CreateAsync(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, TestJobCreateContent content, CancellationToken cancellationToken = default) + public Response Create(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, RunbookTestJobCreateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -120,9 +120,9 @@ public Response Create(string subscriptionId, string resourceGroupName, { case 201: { - TestJob value = default; + RunbookTestJob value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = TestJob.DeserializeTestJob(document.RootElement); + value = RunbookTestJob.DeserializeRunbookTestJob(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -161,7 +161,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -174,9 +174,9 @@ public async Task> GetAsync(string subscriptionId, string reso { case 200: { - TestJob value = default; + RunbookTestJob value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = TestJob.DeserializeTestJob(document.RootElement); + value = RunbookTestJob.DeserializeRunbookTestJob(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -192,7 +192,7 @@ public async Task> GetAsync(string subscriptionId, string reso /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -205,9 +205,9 @@ public Response Get(string subscriptionId, string resourceGroupName, st { case 200: { - TestJob value = default; + RunbookTestJob value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = TestJob.DeserializeTestJob(document.RootElement); + value = RunbookTestJob.DeserializeRunbookTestJob(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs index f5715c9eb2347..4f02c96457fd2 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/TestJobStreamsRestOperations.cs @@ -70,7 +70,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string jobStreamId, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string jobStreamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -84,9 +84,9 @@ public async Task> GetAsync(string subscriptionId, string re { case 200: { - JobStream value = default; + AutomationJobStream value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobStream.DeserializeJobStream(document.RootElement); + value = AutomationJobStream.DeserializeAutomationJobStream(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -103,7 +103,7 @@ public async Task> GetAsync(string subscriptionId, string re /// The cancellation token to use. /// , , , or is null. /// , , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string jobStreamId, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string jobStreamId, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -117,9 +117,9 @@ public Response Get(string subscriptionId, string resourceGroupName, { case 200: { - JobStream value = default; + AutomationJobStream value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobStream.DeserializeJobStream(document.RootElement); + value = AutomationJobStream.DeserializeAutomationJobStream(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -163,7 +163,7 @@ internal HttpMessage CreateListByTestJobRequest(string subscriptionId, string re /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListByTestJobAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByTestJobAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -176,9 +176,9 @@ public async Task> ListByTestJobAsync(string subsc { case 200: { - JobStreamListResult value = default; + AutomationJobStreamListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobStreamListResult.DeserializeJobStreamListResult(document.RootElement); + value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -195,7 +195,7 @@ public async Task> ListByTestJobAsync(string subsc /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListByTestJob(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByTestJob(string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -208,9 +208,9 @@ public Response ListByTestJob(string subscriptionId, string { case 200: { - JobStreamListResult value = default; + AutomationJobStreamListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobStreamListResult.DeserializeJobStreamListResult(document.RootElement); + value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -242,7 +242,7 @@ internal HttpMessage CreateListByTestJobNextPageRequest(string nextLink, string /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> ListByTestJobNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByTestJobNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -256,9 +256,9 @@ public async Task> ListByTestJobNextPageAsync(stri { case 200: { - JobStreamListResult value = default; + AutomationJobStreamListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = JobStreamListResult.DeserializeJobStreamListResult(document.RootElement); + value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -276,7 +276,7 @@ public async Task> ListByTestJobNextPageAsync(stri /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response ListByTestJobNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByTestJobNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string runbookName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -290,9 +290,9 @@ public Response ListByTestJobNextPage(string nextLink, stri { case 200: { - JobStreamListResult value = default; + AutomationJobStreamListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = JobStreamListResult.DeserializeJobStreamListResult(document.RootElement); + value = AutomationJobStreamListResult.DeserializeAutomationJobStreamListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs index 1949f4fe90285..6e617a03bf322 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/UsagesRestOperations.cs @@ -65,7 +65,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -77,9 +77,9 @@ public async Task> ListByAutomationAccountAsync(string { case 200: { - UsageListResult value = default; + AutomationUsageListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = UsageListResult.DeserializeUsageListResult(document.RootElement); + value = AutomationUsageListResult.DeserializeAutomationUsageListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -94,7 +94,7 @@ public async Task> ListByAutomationAccountAsync(string /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -106,9 +106,9 @@ public Response ListByAutomationAccount(string subscriptionId, { case 200: { - UsageListResult value = default; + AutomationUsageListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = UsageListResult.DeserializeUsageListResult(document.RootElement); + value = AutomationUsageListResult.DeserializeAutomationUsageListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs index 1501b2667fadf..070768c9cc0fd 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/VariableRestOperations.cs @@ -37,7 +37,7 @@ public VariableRestOperations(HttpPipeline pipeline, string applicationId, Uri e _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, VariableCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, AutomationVariableCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -72,7 +72,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, VariableCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, AutomationVariableCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -87,9 +87,9 @@ public async Task> CreateOrUpdateAsync(string subscriptio case 200: case 201: { - VariableData value = default; + AutomationVariableData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = VariableData.DeserializeVariableData(document.RootElement); + value = AutomationVariableData.DeserializeAutomationVariableData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -106,7 +106,7 @@ public async Task> CreateOrUpdateAsync(string subscriptio /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, VariableCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, AutomationVariableCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -121,9 +121,9 @@ public Response CreateOrUpdate(string subscriptionId, string resou case 200: case 201: { - VariableData value = default; + AutomationVariableData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = VariableData.DeserializeVariableData(document.RootElement); + value = AutomationVariableData.DeserializeAutomationVariableData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -131,7 +131,7 @@ public Response CreateOrUpdate(string subscriptionId, string resou } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, VariablePatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, AutomationVariablePatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -166,7 +166,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, VariablePatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, AutomationVariablePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -180,9 +180,9 @@ public async Task> UpdateAsync(string subscriptionId, str { case 200: { - VariableData value = default; + AutomationVariableData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = VariableData.DeserializeVariableData(document.RootElement); + value = AutomationVariableData.DeserializeAutomationVariableData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -199,7 +199,7 @@ public async Task> UpdateAsync(string subscriptionId, str /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, VariablePatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, AutomationVariablePatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -213,9 +213,9 @@ public Response Update(string subscriptionId, string resourceGroup { case 200: { - VariableData value = default; + AutomationVariableData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = VariableData.DeserializeVariableData(document.RootElement); + value = AutomationVariableData.DeserializeAutomationVariableData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -327,7 +327,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -340,13 +340,13 @@ public async Task> GetAsync(string subscriptionId, string { case 200: { - VariableData value = default; + AutomationVariableData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = VariableData.DeserializeVariableData(document.RootElement); + value = AutomationVariableData.DeserializeAutomationVariableData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((VariableData)null, message.Response); + return Response.FromValue((AutomationVariableData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -360,7 +360,7 @@ public async Task> GetAsync(string subscriptionId, string /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string variableName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -373,13 +373,13 @@ public Response Get(string subscriptionId, string resourceGroupNam { case 200: { - VariableData value = default; + AutomationVariableData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = VariableData.DeserializeVariableData(document.RootElement); + value = AutomationVariableData.DeserializeAutomationVariableData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((VariableData)null, message.Response); + return Response.FromValue((AutomationVariableData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -413,7 +413,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -425,9 +425,9 @@ public async Task> ListByAutomationAccountAsync(str { case 200: { - VariableListResult value = default; + AutomationVariableListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = VariableListResult.DeserializeVariableListResult(document.RootElement); + value = AutomationVariableListResult.DeserializeAutomationVariableListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -442,7 +442,7 @@ public async Task> ListByAutomationAccountAsync(str /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -454,9 +454,9 @@ public Response ListByAutomationAccount(string subscriptionI { case 200: { - VariableListResult value = default; + AutomationVariableListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = VariableListResult.DeserializeVariableListResult(document.RootElement); + value = AutomationVariableListResult.DeserializeAutomationVariableListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -486,7 +486,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -499,9 +499,9 @@ public async Task> ListByAutomationAccountNextPageA { case 200: { - VariableListResult value = default; + AutomationVariableListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = VariableListResult.DeserializeVariableListResult(document.RootElement); + value = AutomationVariableListResult.DeserializeAutomationVariableListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -517,7 +517,7 @@ public async Task> ListByAutomationAccountNextPageA /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -530,9 +530,9 @@ public Response ListByAutomationAccountNextPage(string nextL { case 200: { - VariableListResult value = default; + AutomationVariableListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = VariableListResult.DeserializeVariableListResult(document.RootElement); + value = AutomationVariableListResult.DeserializeAutomationVariableListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs index 22b5f6e073f49..57f377785a973 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WatcherRestOperations.cs @@ -37,7 +37,7 @@ public WatcherRestOperations(HttpPipeline pipeline, string applicationId, Uri en _userAgent = new TelemetryDetails(GetType().Assembly, applicationId); } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, WatcherData data) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, AutomationWatcherData data) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -72,7 +72,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, WatcherData data, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, AutomationWatcherData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -87,9 +87,9 @@ public async Task> CreateOrUpdateAsync(string subscription case 200: case 201: { - WatcherData value = default; + AutomationWatcherData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WatcherData.DeserializeWatcherData(document.RootElement); + value = AutomationWatcherData.DeserializeAutomationWatcherData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -106,7 +106,7 @@ public async Task> CreateOrUpdateAsync(string subscription /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, WatcherData data, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, AutomationWatcherData data, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -121,9 +121,9 @@ public Response CreateOrUpdate(string subscriptionId, string resour case 200: case 201: { - WatcherData value = default; + AutomationWatcherData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WatcherData.DeserializeWatcherData(document.RootElement); + value = AutomationWatcherData.DeserializeAutomationWatcherData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -161,7 +161,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -174,13 +174,13 @@ public async Task> GetAsync(string subscriptionId, string { case 200: { - WatcherData value = default; + AutomationWatcherData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WatcherData.DeserializeWatcherData(document.RootElement); + value = AutomationWatcherData.DeserializeAutomationWatcherData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WatcherData)null, message.Response); + return Response.FromValue((AutomationWatcherData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -194,7 +194,7 @@ public async Task> GetAsync(string subscriptionId, string /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -207,19 +207,19 @@ public Response Get(string subscriptionId, string resourceGroupName { case 200: { - WatcherData value = default; + AutomationWatcherData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WatcherData.DeserializeWatcherData(document.RootElement); + value = AutomationWatcherData.DeserializeAutomationWatcherData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WatcherData)null, message.Response); + return Response.FromValue((AutomationWatcherData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, WatcherPatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, AutomationWatcherPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -254,7 +254,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, WatcherPatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, AutomationWatcherPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -268,9 +268,9 @@ public async Task> UpdateAsync(string subscriptionId, stri { case 200: { - WatcherData value = default; + AutomationWatcherData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WatcherData.DeserializeWatcherData(document.RootElement); + value = AutomationWatcherData.DeserializeAutomationWatcherData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -287,7 +287,7 @@ public async Task> UpdateAsync(string subscriptionId, stri /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, WatcherPatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string watcherName, AutomationWatcherPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -301,9 +301,9 @@ public Response Update(string subscriptionId, string resourceGroupN { case 200: { - WatcherData value = default; + AutomationWatcherData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WatcherData.DeserializeWatcherData(document.RootElement); + value = AutomationWatcherData.DeserializeAutomationWatcherData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -568,7 +568,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -580,9 +580,9 @@ public async Task> ListByAutomationAccountAsync(stri { case 200: { - WatcherListResult value = default; + AutomationWatcherListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WatcherListResult.DeserializeWatcherListResult(document.RootElement); + value = AutomationWatcherListResult.DeserializeAutomationWatcherListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -598,7 +598,7 @@ public async Task> ListByAutomationAccountAsync(stri /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -610,9 +610,9 @@ public Response ListByAutomationAccount(string subscriptionId { case 200: { - WatcherListResult value = default; + AutomationWatcherListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WatcherListResult.DeserializeWatcherListResult(document.RootElement); + value = AutomationWatcherListResult.DeserializeAutomationWatcherListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -643,7 +643,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -656,9 +656,9 @@ public async Task> ListByAutomationAccountNextPageAs { case 200: { - WatcherListResult value = default; + AutomationWatcherListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WatcherListResult.DeserializeWatcherListResult(document.RootElement); + value = AutomationWatcherListResult.DeserializeAutomationWatcherListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -675,7 +675,7 @@ public async Task> ListByAutomationAccountNextPageAs /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -688,9 +688,9 @@ public Response ListByAutomationAccountNextPage(string nextLi { case 200: { - WatcherListResult value = default; + AutomationWatcherListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WatcherListResult.DeserializeWatcherListResult(document.RootElement); + value = AutomationWatcherListResult.DeserializeAutomationWatcherListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs index a4dd75d1bfe75..1fc18b8f9d58e 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/RestOperations/WebhookRestOperations.cs @@ -220,7 +220,7 @@ internal HttpMessage CreateGetRequest(string subscriptionId, string resourceGrou /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, CancellationToken cancellationToken = default) + public async Task> GetAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -233,13 +233,13 @@ public async Task> GetAsync(string subscriptionId, string { case 200: { - WebhookData value = default; + AutomationWebhookData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WebhookData.DeserializeWebhookData(document.RootElement); + value = AutomationWebhookData.DeserializeAutomationWebhookData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WebhookData)null, message.Response); + return Response.FromValue((AutomationWebhookData)null, message.Response); default: throw new RequestFailedException(message.Response); } @@ -253,7 +253,7 @@ public async Task> GetAsync(string subscriptionId, string /// The cancellation token to use. /// , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, CancellationToken cancellationToken = default) + public Response Get(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -266,19 +266,19 @@ public Response Get(string subscriptionId, string resourceGroupName { case 200: { - WebhookData value = default; + AutomationWebhookData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WebhookData.DeserializeWebhookData(document.RootElement); + value = AutomationWebhookData.DeserializeAutomationWebhookData(document.RootElement); return Response.FromValue(value, message.Response); } case 404: - return Response.FromValue((WebhookData)null, message.Response); + return Response.FromValue((AutomationWebhookData)null, message.Response); default: throw new RequestFailedException(message.Response); } } - internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, WebhookCreateOrUpdateContent content) + internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, AutomationWebhookCreateOrUpdateContent content) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -313,7 +313,7 @@ internal HttpMessage CreateCreateOrUpdateRequest(string subscriptionId, string r /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, WebhookCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public async Task> CreateOrUpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, AutomationWebhookCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -328,9 +328,9 @@ public async Task> CreateOrUpdateAsync(string subscription case 200: case 201: { - WebhookData value = default; + AutomationWebhookData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WebhookData.DeserializeWebhookData(document.RootElement); + value = AutomationWebhookData.DeserializeAutomationWebhookData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -347,7 +347,7 @@ public async Task> CreateOrUpdateAsync(string subscription /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, WebhookCreateOrUpdateContent content, CancellationToken cancellationToken = default) + public Response CreateOrUpdate(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, AutomationWebhookCreateOrUpdateContent content, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -362,9 +362,9 @@ public Response CreateOrUpdate(string subscriptionId, string resour case 200: case 201: { - WebhookData value = default; + AutomationWebhookData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WebhookData.DeserializeWebhookData(document.RootElement); + value = AutomationWebhookData.DeserializeAutomationWebhookData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -372,7 +372,7 @@ public Response CreateOrUpdate(string subscriptionId, string resour } } - internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, WebhookPatch patch) + internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, AutomationWebhookPatch patch) { var message = _pipeline.CreateMessage(); var request = message.Request; @@ -407,7 +407,7 @@ internal HttpMessage CreateUpdateRequest(string subscriptionId, string resourceG /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, WebhookPatch patch, CancellationToken cancellationToken = default) + public async Task> UpdateAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, AutomationWebhookPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -421,9 +421,9 @@ public async Task> UpdateAsync(string subscriptionId, stri { case 200: { - WebhookData value = default; + AutomationWebhookData value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WebhookData.DeserializeWebhookData(document.RootElement); + value = AutomationWebhookData.DeserializeAutomationWebhookData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -440,7 +440,7 @@ public async Task> UpdateAsync(string subscriptionId, stri /// The cancellation token to use. /// , , , or is null. /// , , or is an empty string, and was expected to be non-empty. - public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, WebhookPatch patch, CancellationToken cancellationToken = default) + public Response Update(string subscriptionId, string resourceGroupName, string automationAccountName, string webhookName, AutomationWebhookPatch patch, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -454,9 +454,9 @@ public Response Update(string subscriptionId, string resourceGroupN { case 200: { - WebhookData value = default; + AutomationWebhookData value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WebhookData.DeserializeWebhookData(document.RootElement); + value = AutomationWebhookData.DeserializeAutomationWebhookData(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -497,7 +497,7 @@ internal HttpMessage CreateListByAutomationAccountRequest(string subscriptionId, /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountAsync(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -509,9 +509,9 @@ public async Task> ListByAutomationAccountAsync(stri { case 200: { - WebhookListResult value = default; + AutomationWebhookListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WebhookListResult.DeserializeWebhookListResult(document.RootElement); + value = AutomationWebhookListResult.DeserializeAutomationWebhookListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -527,7 +527,7 @@ public async Task> ListByAutomationAccountAsync(stri /// The cancellation token to use. /// , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccount(string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); Argument.AssertNotNullOrEmpty(resourceGroupName, nameof(resourceGroupName)); @@ -539,9 +539,9 @@ public Response ListByAutomationAccount(string subscriptionId { case 200: { - WebhookListResult value = default; + AutomationWebhookListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WebhookListResult.DeserializeWebhookListResult(document.RootElement); + value = AutomationWebhookListResult.DeserializeAutomationWebhookListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -572,7 +572,7 @@ internal HttpMessage CreateListByAutomationAccountNextPageRequest(string nextLin /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public async Task> ListByAutomationAccountNextPageAsync(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -585,9 +585,9 @@ public async Task> ListByAutomationAccountNextPageAs { case 200: { - WebhookListResult value = default; + AutomationWebhookListResult value = default; using var document = await JsonDocument.ParseAsync(message.Response.ContentStream, default, cancellationToken).ConfigureAwait(false); - value = WebhookListResult.DeserializeWebhookListResult(document.RootElement); + value = AutomationWebhookListResult.DeserializeAutomationWebhookListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: @@ -604,7 +604,7 @@ public async Task> ListByAutomationAccountNextPageAs /// The cancellation token to use. /// , , or is null. /// , or is an empty string, and was expected to be non-empty. - public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) + public Response ListByAutomationAccountNextPage(string nextLink, string subscriptionId, string resourceGroupName, string automationAccountName, string filter = null, CancellationToken cancellationToken = default) { Argument.AssertNotNull(nextLink, nameof(nextLink)); Argument.AssertNotNullOrEmpty(subscriptionId, nameof(subscriptionId)); @@ -617,9 +617,9 @@ public Response ListByAutomationAccountNextPage(string nextLi { case 200: { - WebhookListResult value = default; + AutomationWebhookListResult value = default; using var document = JsonDocument.Parse(message.Response.ContentStream); - value = WebhookListResult.DeserializeWebhookListResult(document.RootElement); + value = AutomationWebhookListResult.DeserializeAutomationWebhookListResult(document.RootElement); return Response.FromValue(value, message.Response); } default: diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationData.cs b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationData.cs index 94d54ac264b3c..32b254395651f 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationData.cs +++ b/sdk/automation/Azure.ResourceManager.Automation/src/Generated/SoftwareUpdateConfigurationData.cs @@ -19,7 +19,7 @@ public partial class SoftwareUpdateConfigurationData : ResourceData /// update specific properties for the Software update configuration. /// Schedule information for the Software update configuration. /// or is null. - public SoftwareUpdateConfigurationData(UpdateConfiguration updateConfiguration, SUCScheduleProperties scheduleInfo) + public SoftwareUpdateConfigurationData(SoftwareUpdateConfigurationSpecificProperties updateConfiguration, SoftwareUpdateConfigurationScheduleProperties scheduleInfo) { Argument.AssertNotNull(updateConfiguration, nameof(updateConfiguration)); Argument.AssertNotNull(scheduleInfo, nameof(scheduleInfo)); @@ -42,7 +42,7 @@ public SoftwareUpdateConfigurationData(UpdateConfiguration updateConfiguration, /// Last time resource was modified, which only appears in the response. /// LastModifiedBy property, which only appears in the response. /// Tasks information for the Software update configuration. - internal SoftwareUpdateConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, UpdateConfiguration updateConfiguration, SUCScheduleProperties scheduleInfo, string provisioningState, ErrorResponse error, DateTimeOffset? createdOn, string createdBy, DateTimeOffset? lastModifiedOn, string lastModifiedBy, SoftwareUpdateConfigurationTasks tasks) : base(id, name, resourceType, systemData) + internal SoftwareUpdateConfigurationData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, SoftwareUpdateConfigurationSpecificProperties updateConfiguration, SoftwareUpdateConfigurationScheduleProperties scheduleInfo, string provisioningState, AutomationResponseError error, DateTimeOffset? createdOn, string createdBy, DateTimeOffset? lastModifiedOn, string lastModifiedBy, SoftwareUpdateConfigurationTasks tasks) : base(id, name, resourceType, systemData) { UpdateConfiguration = updateConfiguration; ScheduleInfo = scheduleInfo; @@ -56,13 +56,13 @@ internal SoftwareUpdateConfigurationData(ResourceIdentifier id, string name, Res } /// update specific properties for the Software update configuration. - public UpdateConfiguration UpdateConfiguration { get; set; } + public SoftwareUpdateConfigurationSpecificProperties UpdateConfiguration { get; set; } /// Schedule information for the Software update configuration. - public SUCScheduleProperties ScheduleInfo { get; set; } + public SoftwareUpdateConfigurationScheduleProperties ScheduleInfo { get; set; } /// Provisioning state for the software update configuration, which only appears in the response. public string ProvisioningState { get; } /// Details of provisioning error. - public ErrorResponse Error { get; set; } + public AutomationResponseError Error { get; set; } /// Creation time of the resource, which only appears in the response. public DateTimeOffset? CreatedOn { get; } /// CreatedBy property, which only appears in the response. diff --git a/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md b/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md index 974ecaea37348..c79a4d3ea372c 100644 --- a/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md +++ b/sdk/automation/Azure.ResourceManager.Automation/src/autorest.md @@ -16,8 +16,174 @@ modelerfour: flatten-payloads: false rename-mapping: + AutomationAccount.properties.publicNetworkAccess: IsPublicNetworkAccessAllowed + AutomationAccount.properties.disableLocalAuth: IsLocalAuthDisabled + DscConfiguration.properties.logVerbose: IsLogVerboseEnabled + DscNodeConfiguration.properties.incrementNodeConfigurationBuild: IsIncrementNodeConfigurationBuildRequired + Runbook.properties.logVerbose: IsLogVerboseEnabled + Runbook.properties.logProgress: IsLogProgressEnabled + SourceControl.properties.autoSync: IsAutoSyncEnabled + SourceControl.properties.publishRunbook: IsAutoPublishRunbookEnabled + ActivityParameter.valueFromPipeline: CanTakeValueFromPipeline + ActivityParameter.valueFromPipelineByPropertyName: CanTakeValueFromPipelineByPropertyName + ActivityParameter.valueFromRemainingArguments: CanTakeValueValueFromRemainingArguments + AutomationAccountCreateOrUpdateParameters.properties.publicNetworkAccess: IsPublicNetworkAccessAllowed + AutomationAccountCreateOrUpdateParameters.properties.disableLocalAuth: IsLocalAuthDisabled + AutomationAccountUpdateParameters.properties.publicNetworkAccess: IsPublicNetworkAccessAllowed + AutomationAccountUpdateParameters.properties.disableLocalAuth: IsLocalAuthDisabled + DscCompilationJobCreateParameters.properties.incrementNodeConfigurationBuild: IsIncrementNodeConfigurationBuildRequired + DscConfigurationCreateOrUpdateParameters.properties.logVerbose: IsLogVerboseEnabled + DscConfigurationCreateOrUpdateParameters.properties.logProgress: IsLogProgressEnabled + DscConfigurationUpdateParameters.properties.logVerbose: IsLogVerboseEnabled + DscConfigurationUpdateParameters.properties.logProgress: IsLogProgressEnabled + DscNodeConfigurationCreateOrUpdateParameters.properties.incrementNodeConfigurationBuild: IsIncrementNodeConfigurationBuildRequired + RunbookCreateOrUpdateParameters.properties.logVerbose: IsLogVerboseEnabled + RunbookCreateOrUpdateParameters.properties.logProgress: IsLogProgressEnabled + RunbookDraft.inEdit: IsInEditMode + RunbookUpdateParameters.properties.logVerbose: IsLogVerboseEnabled + RunbookUpdateParameters.properties.logProgress: IsLogProgressEnabled + SourceControlCreateOrUpdateParameters.properties.autoSync: IsAutoSyncEnabled + SourceControlCreateOrUpdateParameters.properties.publishRunbook: IsAutoPublishRunbookEnabled + SourceControlUpdateParameters.properties.autoSync: IsAutoSyncEnabled + SourceControlUpdateParameters.properties.publishRunbook: IsAutoPublishRunbookEnabled DscConfigurationAssociationProperty.name: ConfigurationName NodeCountProperties.count: NameCount + ScheduleDay: AutomationDayOfWeek + FieldDefinition: AutomationConnectionFieldDefinition + GroupTypeEnum: HybridWorkerGroup + JobCollectionItem: AutomationJobCollectionItemData + LinuxProperties: LinuxUpdateConfigurationProperties + NodeCount: DscNodeCount + NodeCountProperties: DscNodeCountProperties + NodeCounts: DscNodeCountListResult + OperatingSystemType: SoftwareUpdateConfigurationOperatingSystemType + ProvisioningState: SourceControlProvisioningState + SourceType: SourceControlSourceType + SkuNameEnum: AutomationSkuName + Statistics: AutomationAccountStatistics + StatisticsListResult: AutomationAccountStatisticsListResult + StreamType: SourceControlStreamType + SUCScheduleProperties: SoftwareUpdateConfigurationScheduleProperties + SyncType: SourceControlSyncType + TagSettingsProperties: QueryTagSettingsProperties + TagOperators: QueryTagOperator + TargetProperties: SoftwareUpdateConfigurationTargetProperties + TaskProperties: SoftwareUpdateConfigurationTaskProperties + TestJob: RunbookTestJob + TestJobCreateParameters: RunbookTestJobCreateContent + TokenType: SourceControlTokenType + TypeField: AutomationModuleField + TypeFieldListResult: AutomationModuleFieldListResult + UpdateConfiguration: SoftwareUpdateConfigurationSpecificProperties + UpdateConfigurationNavigation: SoftwareUpdateConfigurationNavigation + WindowsProperties: WindowsUpdateConfigurationProperties + WorkerType: HybridWorkerType + SourceControlSyncJobById: SourceControlSyncJobResult + SourceControlSyncJobStreamById: SourceControlSyncJobStreamResult + SourceControlSyncJobStreamsListBySyncJob: SourceControlSyncJobStreamListResult + DscNode.properties.lastSeen: LastSeenOn + HybridRunbookWorker.properties.vmResourceId: -|arm-id + HybridRunbookWorkerCreateParameters.properties.vmResourceId: -|arm-id + Certificate.properties.expiryTime: ExpireOn + Schedule.properties.startTimeOffsetMinutes: StartInMinutes + Schedule.properties.expiryTime: ExpireOn + Schedule.properties.expiryTimeOffsetMinutes: ExpireInMinutes + Schedule.properties.nextRun: NextRunOn + Schedule.properties.nextRunOffsetMinutes: NextRunInMinutes + SoftwareUpdateConfigurationCollectionItem.properties.nextRun: NextRunOn + SUCScheduleProperties.startTimeOffsetMinutes: StartInMinutes + SUCScheduleProperties.expiryTime: ExpireOn + SUCScheduleProperties.expiryTimeOffsetMinutes: ExpireInMinutes + SUCScheduleProperties.nextRun: NextRunOn + SUCScheduleProperties.nextRunOffsetMinutes: NextRunInMinutes + Webhook.properties.expiryTime: ExpireOn + WebhookCreateOrUpdateParameters.properties.expiryTime: ExpireOn + ScheduleCreateOrUpdateParameters.properties.expiryTime: ExpireOn + Activity.id: -|arm-id + AgentRegistration.id: -|arm-id + AgentRegistration.endpoint: -|uri + AzureQueryProperties.locations: -|azure-location + DeletedAutomationAccount.properties.automationAccountResourceId: -|arm-id + JobStream.id: -|arm-id + SoftwareUpdateConfigurationCollectionItem.id: -|arm-id + SoftwareUpdateConfigurationMachineRun.id: -|arm-id + SoftwareUpdateConfigurationMachineRun.properties.targetComputer: TargetComputerId|arm-id + SoftwareUpdateConfigurationRun.id: -|arm-id + SoftwareUpdateConfigurationRunTaskProperties.jobId: -|uuid + SourceControlSyncJobById.id: -|arm-id + SourceControlSyncJobStream.id: -|arm-id + SourceControlSyncJobStreamById.id: -|arm-id + JobNavigation.id: -|uuid + TokenType.Oauth: OAuth + JobSchedule.properties.jobScheduleId: -|uuid + RunbookTypeEnum: AutomationRunbookType + AgentRegistrationRegenerateKeyParameter: AgentRegistrationRegenerateKeyContent + HybridRunbookWorkerGroupCreateOrUpdateParameters: HybridRunbookWorkerGroupCreateOrUpdateContent + RunbookParameter: RunbookParameterDefinition + DscConfigurationParameter: DscConfigurationParameterDefinition + ActivityParameter: AutomationActivityParameterDefinition + CountType.nodeconfiguration: NodeConfiguration + ErrorResponse: AutomationResponseError + TypeField.type: FieldType + LinuxUpdateClasses: LinuxUpdateClassification + WindowsUpdateClasses: WindowsUpdateClassification + WindowsProperties.excludedKbNumbers: ExcludedKBNumbers + WindowsProperties.includedKbNumbers: IncludedKBNumbers + +prepend-rp-prefix: + - Certificate + - Connection + - ConnectionType + - Credential + - Job + - JobSchedule + - Module + - Runbook + - RunbookDraft + - RunbookListResult + - Schedule + - ScheduleListResult + - SourceControl + - SourceControlListResult + - Variable + - VariableListResult + - Watcher + - WatcherListResult + - Webhook + - WebhookListResult + - Activity + - ActivityListResult + - ActivityOutputType + - ActivityParameterSet + - ActivityParameterValidationSet + - AdvancedSchedule + - AdvancedScheduleMonthlyOccurrence + - CertificateListResult + - ConnectionListResult + - ConnectionTypeListResult + - ContentHash + - ContentLink + - ContentSource + - ContentSourceType + - CountType + - CredentialListResult + - EncryptionProperties + - HttpStatusCode + - JobListResultV2 + - JobScheduleListResult + - JobStatus + - JobStream + - JobStreamListResult + - JobStreamType + - Key + - KeyListResult + - KeyVaultProperties + - LinkedWorkspace + - ModuleErrorInfo + - ModuleListResult + - ScheduleFrequency + - UsageListResult + - UsageCounterName format-by-name-rules: 'tenantId': 'uuid' @@ -25,6 +191,7 @@ format-by-name-rules: 'location': 'azure-location' '*Uri': 'Uri' '*Uris': 'Uri' + 'thumbprint': 'any' rename-rules: CPU: Cpu @@ -49,11 +216,25 @@ rename-rules: URI: Uri Etag: ETag|etag +no-property-type-replacement: + - JobNavigation + +request-path-to-resource-name: + /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/objectDataTypes/{typeName}/fields: AutomationAccountResource request-path-to-parent: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/jobs/{jobName} /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations: /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/softwareUpdateConfigurations/{softwareUpdateConfigurationName} override-operation-name: Job_ListByAutomationAccount: GetAll + ObjectDataTypes_ListFieldsByModuleAndType: GetFieldsByModuleAndType + Keys_ListByAutomationAccount: GetAutomationAccountKeys + SoftwareUpdateConfigurationMachineRuns_GetById: GetSoftwareUpdateConfigurationMachineRun + SoftwareUpdateConfigurationRuns_GetById: GetSoftwareUpdateConfigurationRun + DscCompilationJobStream_ListByJob: GetDscCompilationJobStreams + ObjectDataTypes_ListFieldsByType: GetFieldsByType + TestJobStreams_ListByTestJob: GetTestJobStreams + SourceControlSyncJob_ListByAutomationAccount: GetSourceControlSyncJobs + SourceControlSyncJobStreams_ListBySyncJob: GetSourceControlSyncJobStreams operation-positions: Job_ListByAutomationAccount: collection SoftwareUpdateConfigurations_List: collection @@ -78,4 +259,12 @@ directive: $['x-ms-pageable'] = { 'nextLinkName': null }; + - from: account.json + where: $.paths['/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Automation/automationAccounts/{automationAccountName}/listKeys'].post + transform: > + $['x-ms-pageable'] = { + 'nextLinkName': null, + 'itemName': 'keys' + } + ```