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
Expand Up @@ -14,6 +14,10 @@ namespace Microsoft.Azure.Management.OperationalInsights
using Microsoft.Rest.Azure;
using Models;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Threading;
using System.Threading.Tasks;

/// <summary>
/// Operational Insights Client
Expand Down Expand Up @@ -91,5 +95,22 @@ public partial interface IOperationalInsightsManagementClient : System.IDisposab
/// </summary>
IOperations Operations { get; }

/// <summary>
/// Get the status of an azure asynchronous operation.
/// </summary>
/// <param name='location'>
/// The region name of operation.
/// </param>
/// <param name='asyncOperationId'>
/// The operation Id.
/// </param>
/// <param name='customHeaders'>
/// The headers that will be added to request.
/// </param>
/// <param name='cancellationToken'>
/// The cancellation token.
/// </param>
Task<AzureOperationResponse<OperationStatus>> GetAsyncOperationsStatusWithHttpMessagesAsync(string location, string asyncOperationId, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
// <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.OperationalInsights.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Describes the format of Error response.
/// </summary>
public partial class ErrorResponse
{
/// <summary>
/// Initializes a new instance of the ErrorResponse class.
/// </summary>
public ErrorResponse()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the ErrorResponse class.
/// </summary>
/// <param name="code">Error code</param>
/// <param name="message">Error message indicating why the operation
/// failed.</param>
public ErrorResponse(string code = default(string), string message = default(string))
{
Code = code;
Message = message;
CustomInit();
}

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

/// <summary>
/// Gets or sets error code
/// </summary>
[JsonProperty(PropertyName = "code")]
public string Code { get; set; }

/// <summary>
/// Gets or sets error message indicating why the operation failed.
/// </summary>
[JsonProperty(PropertyName = "message")]
public string Message { get; set; }

}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
// <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.OperationalInsights.Models
{
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// The status of operation.
/// </summary>
public partial class OperationStatus
{
/// <summary>
/// Initializes a new instance of the OperationStatus class.
/// </summary>
public OperationStatus()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the OperationStatus class.
/// </summary>
/// <param name="id">The operation Id.</param>
/// <param name="name">The operation name.</param>
/// <param name="startTime">The start time of the operation.</param>
/// <param name="endTime">The end time of the operation.</param>
/// <param name="status">The status of the operation.</param>
/// <param name="error">The error detail of the operation if
/// any.</param>
public OperationStatus(string id = default(string), string name = default(string), string startTime = default(string), string endTime = default(string), string status = default(string), ErrorResponse error = default(ErrorResponse))
{
Id = id;
Name = name;
StartTime = startTime;
EndTime = endTime;
Status = status;
Error = error;
CustomInit();
}

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

/// <summary>
/// Gets or sets the operation Id.
/// </summary>
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }

/// <summary>
/// Gets or sets the operation name.
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }

/// <summary>
/// Gets or sets the start time of the operation.
/// </summary>
[JsonProperty(PropertyName = "startTime")]
public string StartTime { get; set; }

/// <summary>
/// Gets or sets the end time of the operation.
/// </summary>
[JsonProperty(PropertyName = "endTime")]
public string EndTime { get; set; }

/// <summary>
/// Gets or sets the status of the operation.
/// </summary>
[JsonProperty(PropertyName = "status")]
public string Status { get; set; }

/// <summary>
/// Gets or sets the error detail of the operation if any.
/// </summary>
[JsonProperty(PropertyName = "error")]
public ErrorResponse Error { get; set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public Sku()
/// </summary>
/// <param name="name">The name of the SKU. Possible values include:
/// 'Free', 'Standard', 'Premium', 'PerNode', 'PerGB2018',
/// 'Standalone'</param>
/// 'Standalone', 'CapacityReservation'</param>
public Sku(string name)
{
Name = name;
Expand All @@ -46,7 +46,8 @@ public Sku(string name)

/// <summary>
/// Gets or sets the name of the SKU. Possible values include: 'Free',
/// 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone'
/// 'Standard', 'Premium', 'PerNode', 'PerGB2018', 'Standalone',
/// 'CapacityReservation'
/// </summary>
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ public static class SkuNameEnum
public const string PerNode = "PerNode";
public const string PerGB2018 = "PerGB2018";
public const string Standalone = "Standalone";
public const string CapacityReservation = "CapacityReservation";
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,17 +36,13 @@ public Workspace()
/// <param name="provisioningState">The provisioning state of the
/// workspace. Possible values include: 'Creating', 'Succeeded',
/// 'Failed', 'Canceled', 'Deleting', 'ProvisioningAccount'</param>
/// <param name="source">The source of the workspace. Source defines
/// where the workspace was created. 'Azure' implies it was created in
/// Azure. 'External' implies it was created via the Operational
/// Insights Portal. This value is set on the service side and
/// read-only on the client side.</param>
/// <param name="customerId">The ID associated with the workspace.
/// Setting this value at creation time allows the workspace being
/// created to be linked to an existing workspace.</param>
/// <param name="portalUrl">The URL of the Operational Insights portal
/// for this workspace. This value is set on the service side and
/// read-only on the client side.</param>
/// <param name="source">This is a read-only legacy property. It is
/// always set to 'Azure' by the service. Kept here for backward
/// compatibility.</param>
/// <param name="customerId">This is a read-only property. Represents
/// the ID associated with the workspace.</param>
/// <param name="portalUrl">This is a legacy property and is not used
/// anymore. Kept here for backward compatibility.</param>
/// <param name="sku">The SKU of the workspace.</param>
/// <param name="retentionInDays">The workspace data retention in days.
/// -1 means Unlimited retention for the Unlimited Sku. 730 days is the
Expand Down Expand Up @@ -78,30 +74,25 @@ public Workspace()
public string ProvisioningState { get; set; }

/// <summary>
/// Gets or sets the source of the workspace. Source defines where the
/// workspace was created. 'Azure' implies it was created in Azure.
/// 'External' implies it was created via the Operational Insights
/// Portal. This value is set on the service side and read-only on the
/// client side.
/// Gets this is a read-only legacy property. It is always set to
/// 'Azure' by the service. Kept here for backward compatibility.
/// </summary>
[JsonProperty(PropertyName = "properties.source")]
public string Source { get; set; }
public string Source { get; private set; }

/// <summary>
/// Gets or sets the ID associated with the workspace. Setting this
/// value at creation time allows the workspace being created to be
/// linked to an existing workspace.
/// Gets this is a read-only property. Represents the ID associated
/// with the workspace.
/// </summary>
[JsonProperty(PropertyName = "properties.customerId")]
public string CustomerId { get; set; }
public string CustomerId { get; private set; }

/// <summary>
/// Gets or sets the URL of the Operational Insights portal for this
/// workspace. This value is set on the service side and read-only on
/// the client side.
/// Gets this is a legacy property and is not used anymore. Kept here
/// for backward compatibility.
/// </summary>
[JsonProperty(PropertyName = "properties.portalUrl")]
public string PortalUrl { get; set; }
public string PortalUrl { get; private set; }

/// <summary>
/// Gets or sets the SKU of the workspace.
Expand Down
Loading