Skip to content
Closed
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
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.HealthcareApis.Models
{

/// <summary>
/// Defines values for ManagedServiceIdentityType.
/// </summary>
public static class ManagedServiceIdentityType
{
public const string SystemAssigned = "SystemAssigned";
public const string None = "None";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,9 @@ public Resource()
/// <param name="tags">The resource tags.</param>
/// <param name="etag">An etag associated with the resource, used for
/// optimistic concurrency when editing it.</param>
public Resource(Kind kind, string location, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), string etag = default(string))
/// <param name="identity">Setting indicating whether the service has a
/// managed identity associated with it.</param>
public Resource(Kind kind, string location, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), string etag = default(string), ResourceIdentity identity = default(ResourceIdentity))
{
Id = id;
Name = name;
Expand All @@ -51,6 +53,7 @@ public Resource()
Location = location;
Tags = tags;
Etag = etag;
Identity = identity;
CustomInit();
}

Expand Down Expand Up @@ -103,6 +106,13 @@ public Resource()
[JsonProperty(PropertyName = "etag")]
public string Etag { get; set; }

/// <summary>
/// Gets or sets setting indicating whether the service has a managed
/// identity associated with it.
/// </summary>
[JsonProperty(PropertyName = "identity")]
public ResourceIdentity Identity { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
// <auto-generated>
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License. See License.txt in the project root for
// license information.
//
// Code generated by Microsoft (R) AutoRest Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is
// regenerated.
// </auto-generated>

namespace Microsoft.Azure.Management.HealthcareApis.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Setting indicating whether the service has a managed identity
/// associated with it.
/// </summary>
public partial class ResourceIdentity
{
/// <summary>
/// Initializes a new instance of the ResourceIdentity class.
/// </summary>
public ResourceIdentity()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ResourceIdentity class.
/// </summary>
/// <param name="type">Type of identity being specified, currently
/// SystemAssigned and None are allowed. Possible values include:
/// 'SystemAssigned', 'None'</param>
public ResourceIdentity(string type = default(string))
{
Type = type;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets type of identity being specified, currently
/// SystemAssigned and None are allowed. Possible values include:
/// 'SystemAssigned', 'None'
/// </summary>
[JsonProperty(PropertyName = "type")]
public string Type { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,12 @@ public ServicesDescription()
/// <param name="tags">The resource tags.</param>
/// <param name="etag">An etag associated with the resource, used for
/// optimistic concurrency when editing it.</param>
/// <param name="identity">Setting indicating whether the service has a
/// managed identity associated with it.</param>
/// <param name="properties">The common properties of a
/// service.</param>
public ServicesDescription(Kind kind, string location, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), string etag = default(string), ServicesProperties properties = default(ServicesProperties))
: base(kind, location, id, name, type, tags, etag)
public ServicesDescription(Kind kind, string location, string id = default(string), string name = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), string etag = default(string), ResourceIdentity identity = default(ResourceIdentity), ServicesProperties properties = default(ServicesProperties))
: base(kind, location, id, name, type, tags, etag, identity)
{
Properties = properties;
CustomInit();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,5 @@ public static IEnumerable<Tuple<string, string, string>> ApiInfo_HealthcareApisM
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/healthcareapis/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=C:\\Repo\\azuresdk\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
public static readonly String GithubCommidId = "8a02736ee4e89d8115d4ed5d2001e8c8d78ca878";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
}
}