Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion eng/ApiListing.exclude-attributes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ T:Azure.Core.CodeGenTypeAttribute
T:Azure.Core.CodeGenClientAttribute
T:Azure.Core.CodeGenMemberSerializationAttribute
T:Azure.Core.CodeGenMemberSerializationHooksAttribute
T:Azure.Core.CodeGenSuppressAttribute
T:Azure.Core.CodeGenSuppressTypeAttribute
T:Azure.Core.CodeGenSerializationAttribute
T:System.ClientModel.Primitives.ModelReaderWriterBuildableAttribute

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -151,5 +151,19 @@ public static StorageTaskAssignmentProperties StorageTaskAssignmentProperties(Re
[EditorBrowsable(EditorBrowsableState.Never)]
public static StorageTaskAssignmentPatchProperties StorageTaskAssignmentPatchProperties(string taskId, bool? isEnabled, string description, StorageTaskAssignmentUpdateExecutionContext executionContext, string reportPrefix, StorageProvisioningState? provisioningState, StorageTaskReportProperties runStatus)
=> StorageTaskAssignmentPatchProperties(taskId, isEnabled, description, executionContext, reportPrefix, provisioningState.ToString(), runStatus);

/// <summary> Initializes a new instance of <see cref="Storage.FileServiceData"/>. </summary>
/// <param name="id"> The id. </param>
/// <param name="name"> The name. </param>
/// <param name="resourceType"> The resourceType. </param>
/// <param name="systemData"> The systemData. </param>
/// <param name="sku"> Sku name and tier. </param>
/// <param name="corsRules"> Specifies CORS rules for the File service. You can include up to five CorsRule elements in the request. If no CorsRule elements are included in the request body, all CORS rules will be deleted, and CORS will be disabled for the File service. </param>
/// <param name="shareDeleteRetentionPolicy"> The file service properties for share soft delete. </param>
/// <param name="protocolSmbSetting"> Protocol settings for file service. </param>
/// <returns> A new <see cref="Storage.FileServiceData"/> instance for mocking. </returns>
[EditorBrowsable(EditorBrowsableState.Never)]
public static FileServiceData FileServiceData(ResourceIdentifier id, string name, ResourceType resourceType, SystemData systemData, StorageSku sku, IEnumerable<StorageCorsRule> corsRules, DeleteRetentionPolicy shareDeleteRetentionPolicy, SmbSetting protocolSmbSetting)
=> FileServiceData(id, name, resourceType, systemData, sku, corsRules, shareDeleteRetentionPolicy, new ProtocolSettings(protocolSmbSetting, null, null));
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System;
using System.Collections.Generic;
using Azure.Core;
using Azure.ResourceManager.Models;
using Azure.ResourceManager.Storage.Models;

namespace Azure.ResourceManager.Storage
{
/// <summary>
/// A class representing the FileService data model.
/// The properties of File services in storage account.
/// </summary>
public partial class FileServiceData : ResourceData
{
/// <summary> Setting for SMB protocol. </summary>
[WirePath("properties.protocolSettings.smb")]
public SmbSetting ProtocolSmbSetting
{
get => ProtocolSettings is null ? default : ProtocolSettings.SmbSetting;
set
{
if (ProtocolSettings is null)
ProtocolSettings = new ProtocolSettings();
ProtocolSettings.SmbSetting = value;
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System;
using System.ComponentModel;

namespace Azure.ResourceManager.Storage.Models
{
/// <summary> Execution trigger for storage task assignment. </summary>
public partial class ExecutionTrigger
{
/// <summary> Initializes a new instance of <see cref="ExecutionTrigger"/>. </summary>
/// <param name="triggerType"> The trigger type of the storage task assignment execution. </param>
/// <param name="parameters"> The trigger parameters of the storage task assignment execution. </param>
/// <exception cref="ArgumentNullException"> <paramref name="parameters"/> is null. </exception>
[EditorBrowsable(EditorBrowsableState.Never)]
public ExecutionTrigger(ExecutionTriggerType triggerType, ExecutionTriggerParameters parameters)
{
Argument.AssertNotNull(parameters, nameof(parameters));

TaskExecutionTriggerType = triggerType.ToString();
Parameters = parameters;
}

/// <summary> The trigger type of the storage task assignment execution. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[WirePath("type")]
public ExecutionTriggerType TriggerType
{
get => TaskExecutionTriggerType.ToString().ToExecutionTriggerType();
set => TaskExecutionTriggerType = value.ToString();
}
}
}
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

// <auto-generated/>

#nullable disable

using System.ComponentModel;

namespace Azure.ResourceManager.Storage.Models
{
/// <summary> The trigger type of the storage task assignment execution. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
public enum ExecutionTriggerType
{
/// <summary> RunOnce. </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.

#nullable disable

using System;
using System.ComponentModel;

namespace Azure.ResourceManager.Storage.Models
{
/// <summary> Execution trigger update for storage task assignment. </summary>
public partial class ExecutionTriggerUpdate
{
/// <summary> The trigger type of the storage task assignment execution. </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[WirePath("type")]
public ExecutionTriggerType? TriggerType
{
get => TaskExecutionTriggerType.ToString().ToExecutionTriggerType();
set => TaskExecutionTriggerType = value.ToString();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,26 +4,34 @@
#nullable disable

using System;
using System.Runtime.CompilerServices;
using System.Text.Json;
using Azure.Core;
using System.ComponentModel;

namespace Azure.ResourceManager.Storage.Models
{
[CodeGenSerialization(nameof(DomainGuid), DeserializationValueHook = nameof(DeserializeNullableGuid))]
public partial class StorageActiveDirectoryProperties
{
[MethodImpl(MethodImplOptions.AggressiveInlining)]
private static void DeserializeNullableGuid(JsonProperty property, ref Guid domainGuid)
/// <summary> Initializes a new instance of <see cref="StorageActiveDirectoryProperties"/>. </summary>
/// <param name="domainName"> Specifies the primary domain that the AD DNS server is authoritative for. </param>
/// <param name="domainGuid"> Specifies the domain GUID. </param>
/// <exception cref="ArgumentNullException"> <paramref name="domainName"/> is null. </exception>
[EditorBrowsable(EditorBrowsableState.Never)]
public StorageActiveDirectoryProperties(string domainName, Guid domainGuid)
{
if (string.IsNullOrEmpty(property.Value.GetString()))
{
domainGuid = Guid.Empty;
}
else
{
domainGuid = property.Value.GetGuid();
}
Argument.AssertNotNull(domainName, nameof(domainName));

DomainName = domainName;
DomainGuid = domainGuid;
}
/// <summary>
/// Specifies the domain GUID.
/// This property is deprecated. Use <see cref="ActiveDirectoryDomainGuid"/> instead.
/// </summary>
[EditorBrowsable(EditorBrowsableState.Never)]
[WirePath("domainGuid")]
public Guid DomainGuid
{
get => ActiveDirectoryDomainGuid ?? Guid.Empty;
set => ActiveDirectoryDomainGuid = value == Guid.Empty ? null : value;
}
}
}
Loading