Skip to content

Commit

Permalink
Generated from aaa4c2b2f3e69c7ca8cc3b25f87f91d67da846cf
Browse files Browse the repository at this point in the history
location is required param
  • Loading branch information
SDK Automation committed Dec 23, 2019
1 parent 614c238 commit a19dc00
Show file tree
Hide file tree
Showing 17 changed files with 913 additions and 39 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public partial interface INamespacesOperations
/// The namespace name.
/// </param>
/// <param name='authorizationRuleName'>
/// Aauthorization Rule Name.
/// Authorization Rule Name.
/// </param>
/// <param name='parameters'>
/// The shared access authorization rule.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,19 +53,20 @@ public partial interface INotificationHubsManagementClient : System.IDisposable
string ApiVersion { get; }

/// <summary>
/// Gets or sets the preferred language for the response.
/// The preferred language for the response.
/// </summary>
string AcceptLanguage { get; set; }

/// <summary>
/// Gets or sets the retry timeout in seconds for Long Running
/// Operations. Default value is 30.
/// The retry timeout in seconds for Long Running Operations. Default
/// value is 30.
/// </summary>
int? LongRunningOperationRetryTimeout { get; set; }

/// <summary>
/// When set to true a unique x-ms-client-request-id value is generated
/// and included in each request. Default is true.
/// Whether a unique x-ms-client-request-id should be generated. When
/// set to true a unique x-ms-client-request-id value is generated and
/// included in each request. Default is true.
/// </summary>
bool? GenerateClientRequestId { get; set; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,37 @@ public partial interface INotificationHubsOperations
/// </exception>
Task<AzureOperationResponse<NotificationHubResource>> CreateOrUpdateWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string notificationHubName, NotificationHubCreateOrUpdateParameters parameters, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Patch a NotificationHub in a namespace.
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='namespaceName'>
/// The namespace name.
/// </param>
/// <param name='notificationHubName'>
/// The notification hub name.
/// </param>
/// <param name='parameters'>
/// Parameters supplied to patch a NotificationHub Resource.
/// </param>
/// <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<NotificationHubResource>> PatchWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string notificationHubName, NotificationHubPatchParameters parameters = default(NotificationHubPatchParameters), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Deletes a notification hub associated with a namespace.
/// </summary>
/// <param name='resourceGroupName'>
Expand Down Expand Up @@ -138,6 +169,37 @@ public partial interface INotificationHubsOperations
/// </exception>
Task<AzureOperationResponse<NotificationHubResource>> GetWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string notificationHubName, Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// test send a push notification
/// </summary>
/// <param name='resourceGroupName'>
/// The name of the resource group.
/// </param>
/// <param name='namespaceName'>
/// The namespace name.
/// </param>
/// <param name='notificationHubName'>
/// The notification hub name.
/// </param>
/// <param name='parameters'>
/// Debug send parameters
/// </param>
/// <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<DebugSendResponse>> DebugSendWithHttpMessagesAsync(string resourceGroupName, string namespaceName, string notificationHubName, object parameters = default(object), Dictionary<string, List<string>> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Creates/Updates an authorization rule for a NotificationHub
/// </summary>
/// <param name='resourceGroupName'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public ApnsCredential()
/// <param name="apnsCertificate">The APNS certificate.</param>
/// <param name="certificateKey">The certificate key.</param>
/// <param name="endpoint">The endpoint of this credential.</param>
/// <param name="thumbprint">The Apns certificate Thumbprint</param>
/// <param name="thumbprint">The APNS certificate Thumbprint</param>
/// <param name="keyId">A 10-character key identifier (kid) key,
/// obtained from your developer account</param>
/// <param name="appName">The name of the application</param>
Expand Down Expand Up @@ -81,7 +81,7 @@ public ApnsCredential()
public string Endpoint { get; set; }

/// <summary>
/// Gets or sets the Apns certificate Thumbprint
/// Gets or sets the APNS certificate Thumbprint
/// </summary>
[JsonProperty(PropertyName = "properties.thumbprint")]
public string Thumbprint { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,15 +36,15 @@ public CheckAvailabilityParameters()
/// class.
/// </summary>
/// <param name="name">Resource name</param>
/// <param name="location">Resource location</param>
/// <param name="id">Resource Id</param>
/// <param name="type">Resource type</param>
/// <param name="location">Resource location</param>
/// <param name="tags">Resource tags</param>
/// <param name="sku">The sku of the created namespace</param>
/// <param name="isAvailiable">True if the name is available and can be
/// used to create new Namespace/NotificationHub. Otherwise
/// false.</param>
public CheckAvailabilityParameters(string name, string location, string id = default(string), string type = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), Sku sku = default(Sku), bool? isAvailiable = default(bool?))
public CheckAvailabilityParameters(string name, string id = default(string), string type = default(string), string location = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), Sku sku = default(Sku), bool? isAvailiable = default(bool?))
{
Id = id;
Name = name;
Expand Down Expand Up @@ -116,10 +116,6 @@ public virtual void Validate()
{
throw new ValidationException(ValidationRules.CannotBeNull, "Name");
}
if (Location == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "Location");
}
if (Sku != null)
{
Sku.Validate();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.NotificationHubs.Models
using System.Linq;

/// <summary>
/// Description of a CheckAvailibility resource.
/// Description of a CheckAvailability resource.
/// </summary>
public partial class CheckAvailabilityResult : Resource
{
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
// <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.NotificationHubs.Models
{
using Microsoft.Rest;
using Microsoft.Rest.Serialization;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using System.Linq;

/// <summary>
/// Description of a NotificationHub Resource.
/// </summary>
[Rest.Serialization.JsonTransformation]
public partial class DebugSendResponse : Resource
{
/// <summary>
/// Initializes a new instance of the DebugSendResponse class.
/// </summary>
public DebugSendResponse()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the DebugSendResponse class.
/// </summary>
/// <param name="id">Resource Id</param>
/// <param name="name">Resource name</param>
/// <param name="type">Resource type</param>
/// <param name="location">Resource location</param>
/// <param name="tags">Resource tags</param>
/// <param name="sku">The sku of the created namespace</param>
/// <param name="success">successful send</param>
/// <param name="failure">send failure</param>
/// <param name="results">actual failure description</param>
public DebugSendResponse(string id = default(string), string name = default(string), string type = default(string), string location = default(string), IDictionary<string, string> tags = default(IDictionary<string, string>), Sku sku = default(Sku), double? success = default(double?), double? failure = default(double?), object results = default(object))
: base(id, name, type, location, tags, sku)
{
Success = success;
Failure = failure;
Results = results;
CustomInit();
}

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

/// <summary>
/// Gets or sets successful send
/// </summary>
[JsonProperty(PropertyName = "properties.success")]
public double? Success { get; set; }

/// <summary>
/// Gets or sets send failure
/// </summary>
[JsonProperty(PropertyName = "properties.failure")]
public double? Failure { get; set; }

/// <summary>
/// Gets or sets actual failure description
/// </summary>
[JsonProperty(PropertyName = "properties.results")]
public object Results { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public override void Validate()
{
base.Validate();
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ namespace Microsoft.Azure.Management.NotificationHubs.Models
using System.Linq;

/// <summary>
/// Error reponse indicates NotificationHubs service is not able to process
/// the incoming request. The reason is provided in the error message.
/// Error response indicates NotificationHubs service is not able to
/// process the incoming request. The reason is provided in the error
/// message.
/// </summary>
public partial class ErrorResponse
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public MpnsCredential()
/// <param name="mpnsCertificate">The MPNS certificate.</param>
/// <param name="certificateKey">The certificate key for this
/// credential.</param>
/// <param name="thumbprint">The Mpns certificate Thumbprint</param>
/// <param name="thumbprint">The MPNS certificate Thumbprint</param>
public MpnsCredential(string mpnsCertificate = default(string), string certificateKey = default(string), string thumbprint = default(string))
{
MpnsCertificate = mpnsCertificate;
Expand All @@ -62,7 +62,7 @@ public MpnsCredential()
public string CertificateKey { get; set; }

/// <summary>
/// Gets or sets the Mpns certificate Thumbprint
/// Gets or sets the MPNS certificate Thumbprint
/// </summary>
[JsonProperty(PropertyName = "properties.thumbprint")]
public string Thumbprint { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,10 @@ public NamespaceCreateOrUpdateParameters()
/// Namespace.</param>
/// <param name="region">Specifies the targeted region in which the
/// namespace should be created. It can be any of the following values:
/// Australia EastAustralia SoutheastCentral USEast USEast US 2West
/// USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil
/// SouthJapan EastJapan WestNorth EuropeWest Europe</param>
/// Australia East, Australia Southeast, Central US, East US, East US
/// 2, West US, North Central US, South Central US, East Asia,
/// Southeast Asia, Brazil South, Japan East, Japan West, North Europe,
/// West Europe</param>
/// <param name="metricId">Identifier for Azure Insights
/// metrics</param>
/// <param name="status">Status of the namespace. It can be any of
Expand Down Expand Up @@ -111,9 +112,9 @@ public NamespaceCreateOrUpdateParameters()
/// <summary>
/// Gets or sets specifies the targeted region in which the namespace
/// should be created. It can be any of the following values: Australia
/// EastAustralia SoutheastCentral USEast USEast US 2West USNorth
/// Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan
/// EastJapan WestNorth EuropeWest Europe
/// East, Australia Southeast, Central US, East US, East US 2, West US,
/// North Central US, South Central US, East Asia, Southeast Asia,
/// Brazil South, Japan East, Japan West, North Europe, West Europe
/// </summary>
[JsonProperty(PropertyName = "properties.region")]
public string Region { get; set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,10 @@ public NamespaceResource()
/// Namespace.</param>
/// <param name="region">Specifies the targeted region in which the
/// namespace should be created. It can be any of the following values:
/// Australia EastAustralia SoutheastCentral USEast USEast US 2West
/// USNorth Central USSouth Central USEast AsiaSoutheast AsiaBrazil
/// SouthJapan EastJapan WestNorth EuropeWest Europe</param>
/// Australia East, Australia Southeast, Central US, East US, East US
/// 2, West US, North Central US, South Central US, East Asia,
/// Southeast Asia, Brazil South, Japan East, Japan West, North Europe,
/// West Europe</param>
/// <param name="metricId">Identifier for Azure Insights
/// metrics</param>
/// <param name="status">Status of the namespace. It can be any of
Expand Down Expand Up @@ -109,9 +110,9 @@ public NamespaceResource()
/// <summary>
/// Gets or sets specifies the targeted region in which the namespace
/// should be created. It can be any of the following values: Australia
/// EastAustralia SoutheastCentral USEast USEast US 2West USNorth
/// Central USSouth Central USEast AsiaSoutheast AsiaBrazil SouthJapan
/// EastJapan WestNorth EuropeWest Europe
/// East, Australia Southeast, Central US, East US, East US 2, West US,
/// North Central US, South Central US, East Asia, Southeast Asia,
/// Brazil South, Japan East, Japan West, North Europe, West Europe
/// </summary>
[JsonProperty(PropertyName = "properties.region")]
public string Region { get; set; }
Expand Down
Loading

0 comments on commit a19dc00

Please sign in to comment.