forked from Azure/azure-sdk-for-net
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Monitor] Adding Operations API and making DiagnosticSettings ProxyOn…
…ly resource (Azure#3705) * [Monitor] Sync with latest spec * [Monitor] Add tests for operations api
- Loading branch information
1 parent
26fd394
commit b64a28c
Showing
18 changed files
with
819 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
48 changes: 48 additions & 0 deletions
48
src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/IOperations.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
// 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. | ||
|
||
namespace Microsoft.Azure.Management.Monitor.Management | ||
{ | ||
using Microsoft.Azure; | ||
using Microsoft.Azure.Management; | ||
using Microsoft.Azure.Management.Monitor; | ||
using Microsoft.Rest; | ||
using Microsoft.Rest.Azure; | ||
using Models; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
using System.Threading; | ||
using System.Threading.Tasks; | ||
|
||
/// <summary> | ||
/// Operations operations. | ||
/// </summary> | ||
public partial interface IOperations | ||
{ | ||
/// <summary> | ||
/// Lists all of the available operations from Microsoft.Insights | ||
/// provider. | ||
/// </summary> | ||
/// <param name='customHeaders'> | ||
/// The headers that will be added to request. | ||
/// </param> | ||
/// <param name='cancellationToken'> | ||
/// The cancellation token. | ||
/// </param> | ||
/// <exception cref="Microsoft.Rest.Azure.CloudException"> | ||
/// Thrown when the operation returned an invalid status code | ||
/// </exception> | ||
/// <exception cref="Microsoft.Rest.SerializationException"> | ||
/// Thrown when unable to deserialize the response | ||
/// </exception> | ||
/// <exception cref="Microsoft.Rest.ValidationException"> | ||
/// Thrown when a required parameter is null | ||
/// </exception> | ||
Task<AzureOperationResponse<OperationListResult>> ListWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken)); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
63 changes: 63 additions & 0 deletions
63
src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/Operation.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
// 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. | ||
|
||
namespace Microsoft.Azure.Management.Monitor.Management.Models | ||
{ | ||
using Microsoft.Azure; | ||
using Microsoft.Azure.Management; | ||
using Microsoft.Azure.Management.Monitor; | ||
using Microsoft.Azure.Management.Monitor.Management; | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Microsoft Insights API operation definition. | ||
/// </summary> | ||
public partial class Operation | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the Operation class. | ||
/// </summary> | ||
public Operation() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the Operation class. | ||
/// </summary> | ||
/// <param name="name">Operation name: | ||
/// {provider}/{resource}/{operation}</param> | ||
/// <param name="display">Display metadata associated with the | ||
/// operation.</param> | ||
public Operation(string name = default(string), OperationDisplay display = default(OperationDisplay)) | ||
{ | ||
Name = name; | ||
Display = display; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets operation name: {provider}/{resource}/{operation} | ||
/// </summary> | ||
[JsonProperty(PropertyName = "name")] | ||
public string Name { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets display metadata associated with the operation. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "display")] | ||
public OperationDisplay Display { get; set; } | ||
|
||
} | ||
} |
72 changes: 72 additions & 0 deletions
72
src/SDKs/Monitor/Management.Monitor/Generated/Management/Monitor/Models/OperationDisplay.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
// 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. | ||
|
||
namespace Microsoft.Azure.Management.Monitor.Management.Models | ||
{ | ||
using Microsoft.Azure; | ||
using Microsoft.Azure.Management; | ||
using Microsoft.Azure.Management.Monitor; | ||
using Microsoft.Azure.Management.Monitor.Management; | ||
using Newtonsoft.Json; | ||
using System.Linq; | ||
|
||
/// <summary> | ||
/// Display metadata associated with the operation. | ||
/// </summary> | ||
public partial class OperationDisplay | ||
{ | ||
/// <summary> | ||
/// Initializes a new instance of the OperationDisplay class. | ||
/// </summary> | ||
public OperationDisplay() | ||
{ | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// Initializes a new instance of the OperationDisplay class. | ||
/// </summary> | ||
/// <param name="provider">Service provider: Microsoft.Insights</param> | ||
/// <param name="resource">Resource on which the operation is | ||
/// performed: AlertRules, Autoscale, etc.</param> | ||
/// <param name="operation">Operation type: Read, write, delete, | ||
/// etc.</param> | ||
public OperationDisplay(string provider = default(string), string resource = default(string), string operation = default(string)) | ||
{ | ||
Provider = provider; | ||
Resource = resource; | ||
Operation = operation; | ||
CustomInit(); | ||
} | ||
|
||
/// <summary> | ||
/// An initialization method that performs custom operations like setting defaults | ||
/// </summary> | ||
partial void CustomInit(); | ||
|
||
/// <summary> | ||
/// Gets or sets service provider: Microsoft.Insights | ||
/// </summary> | ||
[JsonProperty(PropertyName = "provider")] | ||
public string Provider { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets resource on which the operation is performed: | ||
/// AlertRules, Autoscale, etc. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "resource")] | ||
public string Resource { get; set; } | ||
|
||
/// <summary> | ||
/// Gets or sets operation type: Read, write, delete, etc. | ||
/// </summary> | ||
[JsonProperty(PropertyName = "operation")] | ||
public string Operation { get; set; } | ||
|
||
} | ||
} |
Oops, something went wrong.