Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AutoPr-Monitor-jhendrixMSFT-REST Spec PrNumber 5373 #5433

Merged
merged 1 commit into from
Mar 21, 2019
Merged
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 src/SDKs/Monitor/AzSdk.RP.props
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<Project ToolsVersion="15.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<!--This file and it's contents are updated at build time moving or editing might result in build failure. Take due deligence while editing this file-->
<PropertyGroup>
<AzureApiTag>Insights_2018-03-01;insights_2017-04-01;insights_2015-04-01;insights_2016-03-01;insights_2017-05-01-preview;insights_2017-11-01-preview;insights_2018-01-01;insights_2018-04-16;</AzureApiTag>
<AzureApiTag>Insights_2018-03-01;Insights_2018-11-27-preview;insights_2018-09-01;insights_2017-04-01;insights_2015-04-01;insights_2016-03-01;insights_2017-05-01-preview;insights_2017-11-01-preview;insights_2018-01-01;insights_2017-12-01-preview;insights_2018-04-16;</AzureApiTag>
<PackageTags>$(PackageTags);$(CommonTags);$(AzureApiTag);</PackageTags>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ internal ActionGroupsOperations(MonitorManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-03-01";
string apiVersion = "2018-09-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -319,7 +319,7 @@ internal ActionGroupsOperations(MonitorManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-03-01";
string apiVersion = "2018-09-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -505,7 +505,7 @@ internal ActionGroupsOperations(MonitorManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-03-01";
string apiVersion = "2018-09-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -684,7 +684,7 @@ internal ActionGroupsOperations(MonitorManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "actionGroupPatch");
}
string apiVersion = "2018-03-01";
string apiVersion = "2018-09-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -866,7 +866,7 @@ internal ActionGroupsOperations(MonitorManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-03-01";
string apiVersion = "2018-09-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1044,7 +1044,7 @@ internal ActionGroupsOperations(MonitorManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
}
string apiVersion = "2018-03-01";
string apiVersion = "2018-09-01";
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
string _invocationId = null;
Expand Down Expand Up @@ -1237,7 +1237,7 @@ internal ActionGroupsOperations(MonitorManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "receiverName");
}
string apiVersion = "2018-03-01";
string apiVersion = "2018-09-01";
EnableRequest enableRequest = new EnableRequest();
if (receiverName != null)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public partial interface IMetricAlertsOperations
/// </exception>
Task<AzureOperationResponse<IEnumerable<MetricAlertResource>>> ListBySubscriptionWithHttpMessagesAsync(Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Retrieve alert rule defintions in a resource group.
/// Retrieve alert rule definitions in a resource group.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
Expand All @@ -65,7 +65,7 @@ public partial interface IMetricAlertsOperations
/// </exception>
Task<AzureOperationResponse<IEnumerable<MetricAlertResource>>> ListByResourceGroupWithHttpMessagesAsync(string resourceGroupName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Retrieve an alert rule definiton.
/// Retrieve an alert rule definition.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
Expand Down Expand Up @@ -146,7 +146,7 @@ public partial interface IMetricAlertsOperations
/// </exception>
Task<AzureOperationResponse<MetricAlertResource>> UpdateWithHttpMessagesAsync(string resourceGroupName, string ruleName, MetricAlertResourcePatch parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Delete an alert rule defitiniton.
/// Delete an alert rule definition.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
// <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.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>
/// MetricNamespacesOperations operations.
/// </summary>
public partial interface IMetricNamespacesOperations
{
/// <summary>
/// Lists the metric namespaces for the resource.
/// </summary>
/// <param name='resourceUri'>
/// The identifier of the resource.
/// </param>
/// <param name='startTime'>
/// The ISO 8601 conform Date start time from which to query for metric
/// namespaces.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ErrorResponseException">
/// 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<IEnumerable<MetricNamespace>>> ListWithHttpMessagesAsync(string resourceUri, string startTime = default(string), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -154,5 +154,15 @@ public partial interface IMonitorManagementClient : System.IDisposable
/// </summary>
IScheduledQueryRulesOperations ScheduledQueryRules { get; }

/// <summary>
/// Gets the IMetricNamespacesOperations.
/// </summary>
IMetricNamespacesOperations MetricNamespaces { get; }

/// <summary>
/// Gets the IVMInsightsOperations.
/// </summary>
IVMInsightsOperations VMInsights { get; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
// <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.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>
/// VMInsightsOperations operations.
/// </summary>
public partial interface IVMInsightsOperations
{
/// <summary>
/// Retrieves the VM Insights onboarding status for the specified
/// resource or resource scope.
/// </summary>
/// <param name='resourceUri'>
/// The fully qualified Azure Resource manager identifier of the
/// resource, or scope, whose status to retrieve.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
/// <exception cref="ResponseWithErrorException">
/// 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<VMInsightsOnboardingStatus>> GetOnboardingStatusWithHttpMessagesAsync(string resourceUri, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ internal MetricAlertsOperations(MonitorManagementClient client)
}

/// <summary>
/// Retrieve alert rule defintions in a resource group.
/// Retrieve alert rule definitions in a resource group.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
Expand Down Expand Up @@ -402,7 +402,7 @@ internal MetricAlertsOperations(MonitorManagementClient client)
}

/// <summary>
/// Retrieve an alert rule definiton.
/// Retrieve an alert rule definition.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
Expand Down Expand Up @@ -1001,7 +1001,7 @@ internal MetricAlertsOperations(MonitorManagementClient client)
}

/// <summary>
/// Delete an alert rule defitiniton.
/// Delete an alert rule definition.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public static IEnumerable<MetricAlertResource> ListBySubscription(this IMetricAl
}

/// <summary>
/// Retrieve alert rule defintions in a resource group.
/// Retrieve alert rule definitions in a resource group.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -66,7 +66,7 @@ public static IEnumerable<MetricAlertResource> ListByResourceGroup(this IMetricA
}

/// <summary>
/// Retrieve alert rule defintions in a resource group.
/// Retrieve alert rule definitions in a resource group.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -86,7 +86,7 @@ public static IEnumerable<MetricAlertResource> ListByResourceGroup(this IMetricA
}

/// <summary>
/// Retrieve an alert rule definiton.
/// Retrieve an alert rule definition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -103,7 +103,7 @@ public static MetricAlertResource Get(this IMetricAlertsOperations operations, s
}

/// <summary>
/// Retrieve an alert rule definiton.
/// Retrieve an alert rule definition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down Expand Up @@ -218,7 +218,7 @@ public static MetricAlertResource Update(this IMetricAlertsOperations operations
}

/// <summary>
/// Delete an alert rule defitiniton.
/// Delete an alert rule definition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand All @@ -235,7 +235,7 @@ public static void Delete(this IMetricAlertsOperations operations, string resour
}

/// <summary>
/// Delete an alert rule defitiniton.
/// Delete an alert rule definition.
/// </summary>
/// <param name='operations'>
/// The operations group for this extension method.
Expand Down
Loading