diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/AdmCredential.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/AdmCredential.java index b4ad0a9ad2b..da0f77b0db6 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/AdmCredential.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/AdmCredential.java @@ -35,7 +35,7 @@ public class AdmCredential { private String authTokenUrl; /** - * Get the clientId value. + * Get the client identifier. * * @return the clientId value */ @@ -44,7 +44,7 @@ public String clientId() { } /** - * Set the clientId value. + * Set the client identifier. * * @param clientId the clientId value to set * @return the AdmCredential object itself. @@ -55,7 +55,7 @@ public AdmCredential withClientId(String clientId) { } /** - * Get the clientSecret value. + * Get the credential secret access key. * * @return the clientSecret value */ @@ -64,7 +64,7 @@ public String clientSecret() { } /** - * Set the clientSecret value. + * Set the credential secret access key. * * @param clientSecret the clientSecret value to set * @return the AdmCredential object itself. @@ -75,7 +75,7 @@ public AdmCredential withClientSecret(String clientSecret) { } /** - * Get the authTokenUrl value. + * Get the URL of the authorization token. * * @return the authTokenUrl value */ @@ -84,7 +84,7 @@ public String authTokenUrl() { } /** - * Set the authTokenUrl value. + * Set the URL of the authorization token. * * @param authTokenUrl the authTokenUrl value to set * @return the AdmCredential object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/ApnsCredential.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/ApnsCredential.java index 031d1136c55..a8f59e0e231 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/ApnsCredential.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/ApnsCredential.java @@ -67,7 +67,7 @@ public class ApnsCredential { private String token; /** - * Get the apnsCertificate value. + * Get the APNS certificate. * * @return the apnsCertificate value */ @@ -76,7 +76,7 @@ public String apnsCertificate() { } /** - * Set the apnsCertificate value. + * Set the APNS certificate. * * @param apnsCertificate the apnsCertificate value to set * @return the ApnsCredential object itself. @@ -87,7 +87,7 @@ public ApnsCredential withApnsCertificate(String apnsCertificate) { } /** - * Get the certificateKey value. + * Get the certificate key. * * @return the certificateKey value */ @@ -96,7 +96,7 @@ public String certificateKey() { } /** - * Set the certificateKey value. + * Set the certificate key. * * @param certificateKey the certificateKey value to set * @return the ApnsCredential object itself. @@ -107,7 +107,7 @@ public ApnsCredential withCertificateKey(String certificateKey) { } /** - * Get the endpoint value. + * Get the endpoint of this credential. * * @return the endpoint value */ @@ -116,7 +116,7 @@ public String endpoint() { } /** - * Set the endpoint value. + * Set the endpoint of this credential. * * @param endpoint the endpoint value to set * @return the ApnsCredential object itself. @@ -127,7 +127,7 @@ public ApnsCredential withEndpoint(String endpoint) { } /** - * Get the thumbprint value. + * Get the Apns certificate Thumbprint. * * @return the thumbprint value */ @@ -136,7 +136,7 @@ public String thumbprint() { } /** - * Set the thumbprint value. + * Set the Apns certificate Thumbprint. * * @param thumbprint the thumbprint value to set * @return the ApnsCredential object itself. @@ -147,7 +147,7 @@ public ApnsCredential withThumbprint(String thumbprint) { } /** - * Get the keyId value. + * Get a 10-character key identifier (kid) key, obtained from your developer account. * * @return the keyId value */ @@ -156,7 +156,7 @@ public String keyId() { } /** - * Set the keyId value. + * Set a 10-character key identifier (kid) key, obtained from your developer account. * * @param keyId the keyId value to set * @return the ApnsCredential object itself. @@ -167,7 +167,7 @@ public ApnsCredential withKeyId(String keyId) { } /** - * Get the appName value. + * Get the name of the application. * * @return the appName value */ @@ -176,7 +176,7 @@ public String appName() { } /** - * Set the appName value. + * Set the name of the application. * * @param appName the appName value to set * @return the ApnsCredential object itself. @@ -187,7 +187,7 @@ public ApnsCredential withAppName(String appName) { } /** - * Get the appId value. + * Get the issuer (iss) registered claim key, whose value is your 10-character Team ID, obtained from your developer account. * * @return the appId value */ @@ -196,7 +196,7 @@ public String appId() { } /** - * Set the appId value. + * Set the issuer (iss) registered claim key, whose value is your 10-character Team ID, obtained from your developer account. * * @param appId the appId value to set * @return the ApnsCredential object itself. @@ -207,7 +207,7 @@ public ApnsCredential withAppId(String appId) { } /** - * Get the token value. + * Get provider Authentication Token, obtained through your developer account. * * @return the token value */ @@ -216,7 +216,7 @@ public String token() { } /** - * Set the token value. + * Set provider Authentication Token, obtained through your developer account. * * @param token the token value to set * @return the ApnsCredential object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/BaiduCredential.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/BaiduCredential.java index 01a72cc75cc..00f9d855450 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/BaiduCredential.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/BaiduCredential.java @@ -35,7 +35,7 @@ public class BaiduCredential { private String baiduSecretKey; /** - * Get the baiduApiKey value. + * Get baidu Api Key. * * @return the baiduApiKey value */ @@ -44,7 +44,7 @@ public String baiduApiKey() { } /** - * Set the baiduApiKey value. + * Set baidu Api Key. * * @param baiduApiKey the baiduApiKey value to set * @return the BaiduCredential object itself. @@ -55,7 +55,7 @@ public BaiduCredential withBaiduApiKey(String baiduApiKey) { } /** - * Get the baiduEndPoint value. + * Get baidu Endpoint. * * @return the baiduEndPoint value */ @@ -64,7 +64,7 @@ public String baiduEndPoint() { } /** - * Set the baiduEndPoint value. + * Set baidu Endpoint. * * @param baiduEndPoint the baiduEndPoint value to set * @return the BaiduCredential object itself. @@ -75,7 +75,7 @@ public BaiduCredential withBaiduEndPoint(String baiduEndPoint) { } /** - * Get the baiduSecretKey value. + * Get baidu Secret Key. * * @return the baiduSecretKey value */ @@ -84,7 +84,7 @@ public String baiduSecretKey() { } /** - * Set the baiduSecretKey value. + * Set baidu Secret Key. * * @param baiduSecretKey the baiduSecretKey value to set * @return the BaiduCredential object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/CheckAvailabilityParameters.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/CheckAvailabilityParameters.java index 1d6ceef597a..a1de6194872 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/CheckAvailabilityParameters.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/CheckAvailabilityParameters.java @@ -37,7 +37,7 @@ public class CheckAvailabilityParameters { /** * Resource location. */ - @JsonProperty(value = "location", required = true) + @JsonProperty(value = "location") private String location; /** @@ -60,7 +60,7 @@ public class CheckAvailabilityParameters { private Boolean isAvailiable; /** - * Get the id value. + * Get resource Id. * * @return the id value */ @@ -69,7 +69,7 @@ public String id() { } /** - * Get the name value. + * Get resource name. * * @return the name value */ @@ -78,7 +78,7 @@ public String name() { } /** - * Set the name value. + * Set resource name. * * @param name the name value to set * @return the CheckAvailabilityParameters object itself. @@ -89,7 +89,7 @@ public CheckAvailabilityParameters withName(String name) { } /** - * Get the type value. + * Get resource type. * * @return the type value */ @@ -98,7 +98,7 @@ public String type() { } /** - * Get the location value. + * Get resource location. * * @return the location value */ @@ -107,7 +107,7 @@ public String location() { } /** - * Set the location value. + * Set resource location. * * @param location the location value to set * @return the CheckAvailabilityParameters object itself. @@ -118,7 +118,7 @@ public CheckAvailabilityParameters withLocation(String location) { } /** - * Get the tags value. + * Get resource tags. * * @return the tags value */ @@ -127,7 +127,7 @@ public Map tags() { } /** - * Set the tags value. + * Set resource tags. * * @param tags the tags value to set * @return the CheckAvailabilityParameters object itself. @@ -138,7 +138,7 @@ public CheckAvailabilityParameters withTags(Map tags) { } /** - * Get the sku value. + * Get the sku of the created namespace. * * @return the sku value */ @@ -147,7 +147,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the sku of the created namespace. * * @param sku the sku value to set * @return the CheckAvailabilityParameters object itself. @@ -158,7 +158,7 @@ public CheckAvailabilityParameters withSku(Sku sku) { } /** - * Get the isAvailiable value. + * Get true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. * * @return the isAvailiable value */ @@ -167,7 +167,7 @@ public Boolean isAvailiable() { } /** - * Set the isAvailiable value. + * Set true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. * * @param isAvailiable the isAvailiable value to set * @return the CheckAvailabilityParameters object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/ErrorResponse.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/ErrorResponse.java index ba7b33e17c5..469106be1a2 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/ErrorResponse.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/ErrorResponse.java @@ -28,7 +28,7 @@ public class ErrorResponse { private String message; /** - * Get the code value. + * Get error code. * * @return the code value */ @@ -37,7 +37,7 @@ public String code() { } /** - * Set the code value. + * Set error code. * * @param code the code value to set * @return the ErrorResponse object itself. @@ -48,7 +48,7 @@ public ErrorResponse withCode(String code) { } /** - * Get the message value. + * Get error message indicating why the operation failed. * * @return the message value */ @@ -57,7 +57,7 @@ public String message() { } /** - * Set the message value. + * Set error message indicating why the operation failed. * * @param message the message value to set * @return the ErrorResponse object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/GcmCredential.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/GcmCredential.java index ff843a9a8b8..1ce239ad655 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/GcmCredential.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/GcmCredential.java @@ -29,7 +29,7 @@ public class GcmCredential { private String googleApiKey; /** - * Get the gcmEndpoint value. + * Get the GCM endpoint. * * @return the gcmEndpoint value */ @@ -38,7 +38,7 @@ public String gcmEndpoint() { } /** - * Set the gcmEndpoint value. + * Set the GCM endpoint. * * @param gcmEndpoint the gcmEndpoint value to set * @return the GcmCredential object itself. @@ -49,7 +49,7 @@ public GcmCredential withGcmEndpoint(String gcmEndpoint) { } /** - * Get the googleApiKey value. + * Get the Google API key. * * @return the googleApiKey value */ @@ -58,7 +58,7 @@ public String googleApiKey() { } /** - * Set the googleApiKey value. + * Set the Google API key. * * @param googleApiKey the googleApiKey value to set * @return the GcmCredential object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/MpnsCredential.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/MpnsCredential.java index 339dd4bb5a1..5957c051233 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/MpnsCredential.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/MpnsCredential.java @@ -35,7 +35,7 @@ public class MpnsCredential { private String thumbprint; /** - * Get the mpnsCertificate value. + * Get the MPNS certificate. * * @return the mpnsCertificate value */ @@ -44,7 +44,7 @@ public String mpnsCertificate() { } /** - * Set the mpnsCertificate value. + * Set the MPNS certificate. * * @param mpnsCertificate the mpnsCertificate value to set * @return the MpnsCredential object itself. @@ -55,7 +55,7 @@ public MpnsCredential withMpnsCertificate(String mpnsCertificate) { } /** - * Get the certificateKey value. + * Get the certificate key for this credential. * * @return the certificateKey value */ @@ -64,7 +64,7 @@ public String certificateKey() { } /** - * Set the certificateKey value. + * Set the certificate key for this credential. * * @param certificateKey the certificateKey value to set * @return the MpnsCredential object itself. @@ -75,7 +75,7 @@ public MpnsCredential withCertificateKey(String certificateKey) { } /** - * Get the thumbprint value. + * Get the Mpns certificate Thumbprint. * * @return the thumbprint value */ @@ -84,7 +84,7 @@ public String thumbprint() { } /** - * Set the thumbprint value. + * Set the Mpns certificate Thumbprint. * * @param thumbprint the thumbprint value to set * @return the MpnsCredential object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/NamespacePatchParameters.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/NamespacePatchParameters.java index 57f4e86d86d..fbdf9332d2a 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/NamespacePatchParameters.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/NamespacePatchParameters.java @@ -28,7 +28,7 @@ public class NamespacePatchParameters { private Sku sku; /** - * Get the tags value. + * Get resource tags. * * @return the tags value */ @@ -37,7 +37,7 @@ public Map tags() { } /** - * Set the tags value. + * Set resource tags. * * @param tags the tags value to set * @return the NamespacePatchParameters object itself. @@ -48,7 +48,7 @@ public NamespacePatchParameters withTags(Map tags) { } /** - * Get the sku value. + * Get the sku of the created namespace. * * @return the sku value */ @@ -57,7 +57,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the sku of the created namespace. * * @param sku the sku value to set * @return the NamespacePatchParameters object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/OperationDisplay.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/OperationDisplay.java index 273c01c125d..3a5d0e9a809 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/OperationDisplay.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/OperationDisplay.java @@ -33,7 +33,7 @@ public class OperationDisplay { private String operation; /** - * Get the provider value. + * Get service provider: Microsoft.NotificationHubs. * * @return the provider value */ @@ -42,7 +42,7 @@ public String provider() { } /** - * Get the resource value. + * Get resource on which the operation is performed: Invoice, etc. * * @return the resource value */ @@ -51,7 +51,7 @@ public String resource() { } /** - * Get the operation value. + * Get operation type: Read, write, delete, etc. * * @return the operation value */ diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/PolicykeyResource.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/PolicykeyResource.java index 2db39a75544..1b0c75afeeb 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/PolicykeyResource.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/PolicykeyResource.java @@ -23,7 +23,7 @@ public class PolicykeyResource { private String policyKey; /** - * Get the policyKey value. + * Get name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. * * @return the policyKey value */ @@ -32,7 +32,7 @@ public String policyKey() { } /** - * Set the policyKey value. + * Set name of the key that has to be regenerated for the Namespace/Notification Hub Authorization Rule. The value can be Primary Key/Secondary Key. * * @param policyKey the policyKey value to set * @return the PolicykeyResource object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java index 56d60792298..8041a36dd0c 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/SharedAccessAuthorizationRuleCreateOrUpdateParameters.java @@ -21,7 +21,7 @@ public class SharedAccessAuthorizationRuleCreateOrUpdateParameters { private SharedAccessAuthorizationRuleProperties properties; /** - * Get the properties value. + * Get properties of the Namespace AuthorizationRules. * * @return the properties value */ @@ -30,7 +30,7 @@ public SharedAccessAuthorizationRuleProperties properties() { } /** - * Set the properties value. + * Set properties of the Namespace AuthorizationRules. * * @param properties the properties value to set * @return the SharedAccessAuthorizationRuleCreateOrUpdateParameters object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/SharedAccessAuthorizationRuleProperties.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/SharedAccessAuthorizationRuleProperties.java index 326eb1efde2..7a58f8d6ba5 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/SharedAccessAuthorizationRuleProperties.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/SharedAccessAuthorizationRuleProperties.java @@ -72,7 +72,7 @@ public class SharedAccessAuthorizationRuleProperties { private Integer revision; /** - * Get the rights value. + * Get the rights associated with the rule. * * @return the rights value */ @@ -81,7 +81,7 @@ public List rights() { } /** - * Set the rights value. + * Set the rights associated with the rule. * * @param rights the rights value to set * @return the SharedAccessAuthorizationRuleProperties object itself. @@ -92,7 +92,7 @@ public SharedAccessAuthorizationRuleProperties withRights(List rig } /** - * Get the primaryKey value. + * Get a base64-encoded 256-bit primary key for signing and validating the SAS token. * * @return the primaryKey value */ @@ -101,7 +101,7 @@ public String primaryKey() { } /** - * Get the secondaryKey value. + * Get a base64-encoded 256-bit primary key for signing and validating the SAS token. * * @return the secondaryKey value */ @@ -110,7 +110,7 @@ public String secondaryKey() { } /** - * Get the keyName value. + * Get a string that describes the authorization rule. * * @return the keyName value */ @@ -119,7 +119,7 @@ public String keyName() { } /** - * Get the claimType value. + * Get a string that describes the claim type. * * @return the claimType value */ @@ -128,7 +128,7 @@ public String claimType() { } /** - * Get the claimValue value. + * Get a string that describes the claim value. * * @return the claimValue value */ @@ -137,7 +137,7 @@ public String claimValue() { } /** - * Get the modifiedTime value. + * Get the last modified time for this rule. * * @return the modifiedTime value */ @@ -146,7 +146,7 @@ public String modifiedTime() { } /** - * Get the createdTime value. + * Get the created time for this rule. * * @return the createdTime value */ @@ -155,7 +155,7 @@ public String createdTime() { } /** - * Get the revision value. + * Get the revision number for the rule. * * @return the revision value */ diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/Sku.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/Sku.java index 9a0310d7486..9eda1cd3d13 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/Sku.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/Sku.java @@ -46,7 +46,7 @@ public class Sku { private Integer capacity; /** - * Get the name value. + * Get name of the notification hub sku. Possible values include: 'Free', 'Basic', 'Standard'. * * @return the name value */ @@ -55,7 +55,7 @@ public SkuName name() { } /** - * Set the name value. + * Set name of the notification hub sku. Possible values include: 'Free', 'Basic', 'Standard'. * * @param name the name value to set * @return the Sku object itself. @@ -66,7 +66,7 @@ public Sku withName(SkuName name) { } /** - * Get the tier value. + * Get the tier of particular sku. * * @return the tier value */ @@ -75,7 +75,7 @@ public String tier() { } /** - * Set the tier value. + * Set the tier of particular sku. * * @param tier the tier value to set * @return the Sku object itself. @@ -86,7 +86,7 @@ public Sku withTier(String tier) { } /** - * Get the size value. + * Get the Sku size. * * @return the size value */ @@ -95,7 +95,7 @@ public String size() { } /** - * Set the size value. + * Set the Sku size. * * @param size the size value to set * @return the Sku object itself. @@ -106,7 +106,7 @@ public Sku withSize(String size) { } /** - * Get the family value. + * Get the Sku Family. * * @return the family value */ @@ -115,7 +115,7 @@ public String family() { } /** - * Set the family value. + * Set the Sku Family. * * @param family the family value to set * @return the Sku object itself. @@ -126,7 +126,7 @@ public Sku withFamily(String family) { } /** - * Get the capacity value. + * Get the capacity of the resource. * * @return the capacity value */ @@ -135,7 +135,7 @@ public Integer capacity() { } /** - * Set the capacity value. + * Set the capacity of the resource. * * @param capacity the capacity value to set * @return the Sku object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/WnsCredential.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/WnsCredential.java index 72da56f715a..42188a9c5d0 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/WnsCredential.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/WnsCredential.java @@ -35,7 +35,7 @@ public class WnsCredential { private String windowsLiveEndpoint; /** - * Get the packageSid value. + * Get the package ID for this credential. * * @return the packageSid value */ @@ -44,7 +44,7 @@ public String packageSid() { } /** - * Set the packageSid value. + * Set the package ID for this credential. * * @param packageSid the packageSid value to set * @return the WnsCredential object itself. @@ -55,7 +55,7 @@ public WnsCredential withPackageSid(String packageSid) { } /** - * Get the secretKey value. + * Get the secret key. * * @return the secretKey value */ @@ -64,7 +64,7 @@ public String secretKey() { } /** - * Set the secretKey value. + * Set the secret key. * * @param secretKey the secretKey value to set * @return the WnsCredential object itself. @@ -75,7 +75,7 @@ public WnsCredential withSecretKey(String secretKey) { } /** - * Get the windowsLiveEndpoint value. + * Get the Windows Live endpoint. * * @return the windowsLiveEndpoint value */ @@ -84,7 +84,7 @@ public String windowsLiveEndpoint() { } /** - * Set the windowsLiveEndpoint value. + * Set the Windows Live endpoint. * * @param windowsLiveEndpoint the windowsLiveEndpoint value to set * @return the WnsCredential object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/CheckAvailabilityResultInner.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/CheckAvailabilityResultInner.java index 2b67eaa426d..406cc10c37e 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/CheckAvailabilityResultInner.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/CheckAvailabilityResultInner.java @@ -32,7 +32,7 @@ public class CheckAvailabilityResultInner extends Resource { private Sku sku; /** - * Get the isAvailiable value. + * Get true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. * * @return the isAvailiable value */ @@ -41,7 +41,7 @@ public Boolean isAvailiable() { } /** - * Set the isAvailiable value. + * Set true if the name is available and can be used to create new Namespace/NotificationHub. Otherwise false. * * @param isAvailiable the isAvailiable value to set * @return the CheckAvailabilityResultInner object itself. @@ -52,7 +52,7 @@ public CheckAvailabilityResultInner withIsAvailiable(Boolean isAvailiable) { } /** - * Get the sku value. + * Get the sku of the created namespace. * * @return the sku value */ @@ -61,7 +61,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the sku of the created namespace. * * @param sku the sku value to set * @return the CheckAvailabilityResultInner object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/DebugSendResponseInner.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/DebugSendResponseInner.java new file mode 100644 index 00000000000..1ed7b38d587 --- /dev/null +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/DebugSendResponseInner.java @@ -0,0 +1,127 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.notificationhubs.implementation; + +import com.microsoft.azure.management.notificationhubs.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Description of a NotificationHub Resource. + */ +@JsonFlatten +@SkipParentValidation +public class DebugSendResponseInner extends Resource { + /** + * successful send. + */ + @JsonProperty(value = "properties.success") + private Double success; + + /** + * send failure. + */ + @JsonProperty(value = "properties.failure") + private Double failure; + + /** + * actual failure description. + */ + @JsonProperty(value = "properties.results") + private Object results; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get successful send. + * + * @return the success value + */ + public Double success() { + return this.success; + } + + /** + * Set successful send. + * + * @param success the success value to set + * @return the DebugSendResponseInner object itself. + */ + public DebugSendResponseInner withSuccess(Double success) { + this.success = success; + return this; + } + + /** + * Get send failure. + * + * @return the failure value + */ + public Double failure() { + return this.failure; + } + + /** + * Set send failure. + * + * @param failure the failure value to set + * @return the DebugSendResponseInner object itself. + */ + public DebugSendResponseInner withFailure(Double failure) { + this.failure = failure; + return this; + } + + /** + * Get actual failure description. + * + * @return the results value + */ + public Object results() { + return this.results; + } + + /** + * Set actual failure description. + * + * @param results the results value to set + * @return the DebugSendResponseInner object itself. + */ + public DebugSendResponseInner withResults(Object results) { + this.results = results; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the DebugSendResponseInner object itself. + */ + public DebugSendResponseInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NamespaceCreateOrUpdateParametersInner.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NamespaceCreateOrUpdateParametersInner.java index 1aa3464debc..c42012f9478 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NamespaceCreateOrUpdateParametersInner.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NamespaceCreateOrUpdateParametersInner.java @@ -119,7 +119,7 @@ public class NamespaceCreateOrUpdateParametersInner extends Resource { private Sku sku; /** - * Get the namespaceCreateOrUpdateParametersName value. + * Get the name of the namespace. * * @return the namespaceCreateOrUpdateParametersName value */ @@ -128,7 +128,7 @@ public String namespaceCreateOrUpdateParametersName() { } /** - * Set the namespaceCreateOrUpdateParametersName value. + * Set the name of the namespace. * * @param namespaceCreateOrUpdateParametersName the namespaceCreateOrUpdateParametersName value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -139,7 +139,7 @@ public NamespaceCreateOrUpdateParametersInner withNamespaceCreateOrUpdateParamet } /** - * Get the provisioningState value. + * Get provisioning state of the Namespace. * * @return the provisioningState value */ @@ -148,7 +148,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set provisioning state of the Namespace. * * @param provisioningState the provisioningState value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -159,7 +159,7 @@ public NamespaceCreateOrUpdateParametersInner withProvisioningState(String provi } /** - * Get the region value. + * Get 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. * * @return the region value */ @@ -168,7 +168,7 @@ public String region() { } /** - * Set the region value. + * Set 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 region the region value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -179,7 +179,7 @@ public NamespaceCreateOrUpdateParametersInner withRegion(String region) { } /** - * Get the metricId value. + * Get identifier for Azure Insights metrics. * * @return the metricId value */ @@ -188,7 +188,7 @@ public String metricId() { } /** - * Get the status value. + * Get status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. * * @return the status value */ @@ -197,7 +197,7 @@ public String status() { } /** - * Set the status value. + * Set status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. * * @param status the status value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -208,7 +208,7 @@ public NamespaceCreateOrUpdateParametersInner withStatus(String status) { } /** - * Get the createdAt value. + * Get the time the namespace was created. * * @return the createdAt value */ @@ -217,7 +217,7 @@ public DateTime createdAt() { } /** - * Set the createdAt value. + * Set the time the namespace was created. * * @param createdAt the createdAt value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -228,7 +228,7 @@ public NamespaceCreateOrUpdateParametersInner withCreatedAt(DateTime createdAt) } /** - * Get the updatedAt value. + * Get the time the namespace was updated. * * @return the updatedAt value */ @@ -237,7 +237,7 @@ public DateTime updatedAt() { } /** - * Set the updatedAt value. + * Set the time the namespace was updated. * * @param updatedAt the updatedAt value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -248,7 +248,7 @@ public NamespaceCreateOrUpdateParametersInner withUpdatedAt(DateTime updatedAt) } /** - * Get the serviceBusEndpoint value. + * Get endpoint you can use to perform NotificationHub operations. * * @return the serviceBusEndpoint value */ @@ -257,7 +257,7 @@ public String serviceBusEndpoint() { } /** - * Set the serviceBusEndpoint value. + * Set endpoint you can use to perform NotificationHub operations. * * @param serviceBusEndpoint the serviceBusEndpoint value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -268,7 +268,7 @@ public NamespaceCreateOrUpdateParametersInner withServiceBusEndpoint(String serv } /** - * Get the subscriptionId value. + * Get the Id of the Azure subscription associated with the namespace. * * @return the subscriptionId value */ @@ -277,7 +277,7 @@ public String subscriptionId() { } /** - * Set the subscriptionId value. + * Set the Id of the Azure subscription associated with the namespace. * * @param subscriptionId the subscriptionId value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -288,7 +288,7 @@ public NamespaceCreateOrUpdateParametersInner withSubscriptionId(String subscrip } /** - * Get the scaleUnit value. + * Get scaleUnit where the namespace gets created. * * @return the scaleUnit value */ @@ -297,7 +297,7 @@ public String scaleUnit() { } /** - * Set the scaleUnit value. + * Set scaleUnit where the namespace gets created. * * @param scaleUnit the scaleUnit value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -308,7 +308,7 @@ public NamespaceCreateOrUpdateParametersInner withScaleUnit(String scaleUnit) { } /** - * Get the enabled value. + * Get whether or not the namespace is currently enabled. * * @return the enabled value */ @@ -317,7 +317,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set whether or not the namespace is currently enabled. * * @param enabled the enabled value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -328,7 +328,7 @@ public NamespaceCreateOrUpdateParametersInner withEnabled(Boolean enabled) { } /** - * Get the critical value. + * Get whether or not the namespace is set as Critical. * * @return the critical value */ @@ -337,7 +337,7 @@ public Boolean critical() { } /** - * Set the critical value. + * Set whether or not the namespace is set as Critical. * * @param critical the critical value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -348,7 +348,7 @@ public NamespaceCreateOrUpdateParametersInner withCritical(Boolean critical) { } /** - * Get the dataCenter value. + * Get data center for the namespace. * * @return the dataCenter value */ @@ -357,7 +357,7 @@ public String dataCenter() { } /** - * Set the dataCenter value. + * Set data center for the namespace. * * @param dataCenter the dataCenter value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -368,7 +368,7 @@ public NamespaceCreateOrUpdateParametersInner withDataCenter(String dataCenter) } /** - * Get the namespaceType value. + * Get the namespace type. Possible values include: 'Messaging', 'NotificationHub'. * * @return the namespaceType value */ @@ -377,7 +377,7 @@ public NamespaceType namespaceType() { } /** - * Set the namespaceType value. + * Set the namespace type. Possible values include: 'Messaging', 'NotificationHub'. * * @param namespaceType the namespaceType value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. @@ -388,7 +388,7 @@ public NamespaceCreateOrUpdateParametersInner withNamespaceType(NamespaceType na } /** - * Get the sku value. + * Get the sku of the created namespace. * * @return the sku value */ @@ -397,7 +397,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the sku of the created namespace. * * @param sku the sku value to set * @return the NamespaceCreateOrUpdateParametersInner object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NamespaceResourceInner.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NamespaceResourceInner.java index 38fe4115426..49de12ff6a1 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NamespaceResourceInner.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NamespaceResourceInner.java @@ -119,7 +119,7 @@ public class NamespaceResourceInner extends Resource { private Sku sku; /** - * Get the namespaceResourceName value. + * Get the name of the namespace. * * @return the namespaceResourceName value */ @@ -128,7 +128,7 @@ public String namespaceResourceName() { } /** - * Set the namespaceResourceName value. + * Set the name of the namespace. * * @param namespaceResourceName the namespaceResourceName value to set * @return the NamespaceResourceInner object itself. @@ -139,7 +139,7 @@ public NamespaceResourceInner withNamespaceResourceName(String namespaceResource } /** - * Get the provisioningState value. + * Get provisioning state of the Namespace. * * @return the provisioningState value */ @@ -148,7 +148,7 @@ public String provisioningState() { } /** - * Set the provisioningState value. + * Set provisioning state of the Namespace. * * @param provisioningState the provisioningState value to set * @return the NamespaceResourceInner object itself. @@ -159,7 +159,7 @@ public NamespaceResourceInner withProvisioningState(String provisioningState) { } /** - * Get the region value. + * Get 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. * * @return the region value */ @@ -168,7 +168,7 @@ public String region() { } /** - * Set the region value. + * Set 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 region the region value to set * @return the NamespaceResourceInner object itself. @@ -179,7 +179,7 @@ public NamespaceResourceInner withRegion(String region) { } /** - * Get the metricId value. + * Get identifier for Azure Insights metrics. * * @return the metricId value */ @@ -188,7 +188,7 @@ public String metricId() { } /** - * Get the status value. + * Get status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. * * @return the status value */ @@ -197,7 +197,7 @@ public String status() { } /** - * Set the status value. + * Set status of the namespace. It can be any of these values:1 = Created/Active2 = Creating3 = Suspended4 = Deleting. * * @param status the status value to set * @return the NamespaceResourceInner object itself. @@ -208,7 +208,7 @@ public NamespaceResourceInner withStatus(String status) { } /** - * Get the createdAt value. + * Get the time the namespace was created. * * @return the createdAt value */ @@ -217,7 +217,7 @@ public DateTime createdAt() { } /** - * Set the createdAt value. + * Set the time the namespace was created. * * @param createdAt the createdAt value to set * @return the NamespaceResourceInner object itself. @@ -228,7 +228,7 @@ public NamespaceResourceInner withCreatedAt(DateTime createdAt) { } /** - * Get the updatedAt value. + * Get the time the namespace was updated. * * @return the updatedAt value */ @@ -237,7 +237,7 @@ public DateTime updatedAt() { } /** - * Set the updatedAt value. + * Set the time the namespace was updated. * * @param updatedAt the updatedAt value to set * @return the NamespaceResourceInner object itself. @@ -248,7 +248,7 @@ public NamespaceResourceInner withUpdatedAt(DateTime updatedAt) { } /** - * Get the serviceBusEndpoint value. + * Get endpoint you can use to perform NotificationHub operations. * * @return the serviceBusEndpoint value */ @@ -257,7 +257,7 @@ public String serviceBusEndpoint() { } /** - * Set the serviceBusEndpoint value. + * Set endpoint you can use to perform NotificationHub operations. * * @param serviceBusEndpoint the serviceBusEndpoint value to set * @return the NamespaceResourceInner object itself. @@ -268,7 +268,7 @@ public NamespaceResourceInner withServiceBusEndpoint(String serviceBusEndpoint) } /** - * Get the subscriptionId value. + * Get the Id of the Azure subscription associated with the namespace. * * @return the subscriptionId value */ @@ -277,7 +277,7 @@ public String subscriptionId() { } /** - * Set the subscriptionId value. + * Set the Id of the Azure subscription associated with the namespace. * * @param subscriptionId the subscriptionId value to set * @return the NamespaceResourceInner object itself. @@ -288,7 +288,7 @@ public NamespaceResourceInner withSubscriptionId(String subscriptionId) { } /** - * Get the scaleUnit value. + * Get scaleUnit where the namespace gets created. * * @return the scaleUnit value */ @@ -297,7 +297,7 @@ public String scaleUnit() { } /** - * Set the scaleUnit value. + * Set scaleUnit where the namespace gets created. * * @param scaleUnit the scaleUnit value to set * @return the NamespaceResourceInner object itself. @@ -308,7 +308,7 @@ public NamespaceResourceInner withScaleUnit(String scaleUnit) { } /** - * Get the enabled value. + * Get whether or not the namespace is currently enabled. * * @return the enabled value */ @@ -317,7 +317,7 @@ public Boolean enabled() { } /** - * Set the enabled value. + * Set whether or not the namespace is currently enabled. * * @param enabled the enabled value to set * @return the NamespaceResourceInner object itself. @@ -328,7 +328,7 @@ public NamespaceResourceInner withEnabled(Boolean enabled) { } /** - * Get the critical value. + * Get whether or not the namespace is set as Critical. * * @return the critical value */ @@ -337,7 +337,7 @@ public Boolean critical() { } /** - * Set the critical value. + * Set whether or not the namespace is set as Critical. * * @param critical the critical value to set * @return the NamespaceResourceInner object itself. @@ -348,7 +348,7 @@ public NamespaceResourceInner withCritical(Boolean critical) { } /** - * Get the dataCenter value. + * Get data center for the namespace. * * @return the dataCenter value */ @@ -357,7 +357,7 @@ public String dataCenter() { } /** - * Set the dataCenter value. + * Set data center for the namespace. * * @param dataCenter the dataCenter value to set * @return the NamespaceResourceInner object itself. @@ -368,7 +368,7 @@ public NamespaceResourceInner withDataCenter(String dataCenter) { } /** - * Get the namespaceType value. + * Get the namespace type. Possible values include: 'Messaging', 'NotificationHub'. * * @return the namespaceType value */ @@ -377,7 +377,7 @@ public NamespaceType namespaceType() { } /** - * Set the namespaceType value. + * Set the namespace type. Possible values include: 'Messaging', 'NotificationHub'. * * @param namespaceType the namespaceType value to set * @return the NamespaceResourceInner object itself. @@ -388,7 +388,7 @@ public NamespaceResourceInner withNamespaceType(NamespaceType namespaceType) { } /** - * Get the sku value. + * Get the sku of the created namespace. * * @return the sku value */ @@ -397,7 +397,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the sku of the created namespace. * * @param sku the sku value to set * @return the NamespaceResourceInner object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NotificationHubCreateOrUpdateParametersInner.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NotificationHubCreateOrUpdateParametersInner.java index a1c2584d14f..65d150ceba0 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NotificationHubCreateOrUpdateParametersInner.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NotificationHubCreateOrUpdateParametersInner.java @@ -89,7 +89,7 @@ public class NotificationHubCreateOrUpdateParametersInner extends Resource { private Sku sku; /** - * Get the notificationHubCreateOrUpdateParametersName value. + * Get the NotificationHub name. * * @return the notificationHubCreateOrUpdateParametersName value */ @@ -98,7 +98,7 @@ public String notificationHubCreateOrUpdateParametersName() { } /** - * Set the notificationHubCreateOrUpdateParametersName value. + * Set the NotificationHub name. * * @param notificationHubCreateOrUpdateParametersName the notificationHubCreateOrUpdateParametersName value to set * @return the NotificationHubCreateOrUpdateParametersInner object itself. @@ -109,7 +109,7 @@ public NotificationHubCreateOrUpdateParametersInner withNotificationHubCreateOrU } /** - * Get the registrationTtl value. + * Get the RegistrationTtl of the created NotificationHub. * * @return the registrationTtl value */ @@ -118,7 +118,7 @@ public String registrationTtl() { } /** - * Set the registrationTtl value. + * Set the RegistrationTtl of the created NotificationHub. * * @param registrationTtl the registrationTtl value to set * @return the NotificationHubCreateOrUpdateParametersInner object itself. @@ -129,7 +129,7 @@ public NotificationHubCreateOrUpdateParametersInner withRegistrationTtl(String r } /** - * Get the authorizationRules value. + * Get the AuthorizationRules of the created NotificationHub. * * @return the authorizationRules value */ @@ -138,7 +138,7 @@ public List authorizationRules() { } /** - * Set the authorizationRules value. + * Set the AuthorizationRules of the created NotificationHub. * * @param authorizationRules the authorizationRules value to set * @return the NotificationHubCreateOrUpdateParametersInner object itself. @@ -149,7 +149,7 @@ public NotificationHubCreateOrUpdateParametersInner withAuthorizationRules(List< } /** - * Get the apnsCredential value. + * Get the ApnsCredential of the created NotificationHub. * * @return the apnsCredential value */ @@ -158,7 +158,7 @@ public ApnsCredential apnsCredential() { } /** - * Set the apnsCredential value. + * Set the ApnsCredential of the created NotificationHub. * * @param apnsCredential the apnsCredential value to set * @return the NotificationHubCreateOrUpdateParametersInner object itself. @@ -169,7 +169,7 @@ public NotificationHubCreateOrUpdateParametersInner withApnsCredential(ApnsCrede } /** - * Get the wnsCredential value. + * Get the WnsCredential of the created NotificationHub. * * @return the wnsCredential value */ @@ -178,7 +178,7 @@ public WnsCredential wnsCredential() { } /** - * Set the wnsCredential value. + * Set the WnsCredential of the created NotificationHub. * * @param wnsCredential the wnsCredential value to set * @return the NotificationHubCreateOrUpdateParametersInner object itself. @@ -189,7 +189,7 @@ public NotificationHubCreateOrUpdateParametersInner withWnsCredential(WnsCredent } /** - * Get the gcmCredential value. + * Get the GcmCredential of the created NotificationHub. * * @return the gcmCredential value */ @@ -198,7 +198,7 @@ public GcmCredential gcmCredential() { } /** - * Set the gcmCredential value. + * Set the GcmCredential of the created NotificationHub. * * @param gcmCredential the gcmCredential value to set * @return the NotificationHubCreateOrUpdateParametersInner object itself. @@ -209,7 +209,7 @@ public NotificationHubCreateOrUpdateParametersInner withGcmCredential(GcmCredent } /** - * Get the mpnsCredential value. + * Get the MpnsCredential of the created NotificationHub. * * @return the mpnsCredential value */ @@ -218,7 +218,7 @@ public MpnsCredential mpnsCredential() { } /** - * Set the mpnsCredential value. + * Set the MpnsCredential of the created NotificationHub. * * @param mpnsCredential the mpnsCredential value to set * @return the NotificationHubCreateOrUpdateParametersInner object itself. @@ -229,7 +229,7 @@ public NotificationHubCreateOrUpdateParametersInner withMpnsCredential(MpnsCrede } /** - * Get the admCredential value. + * Get the AdmCredential of the created NotificationHub. * * @return the admCredential value */ @@ -238,7 +238,7 @@ public AdmCredential admCredential() { } /** - * Set the admCredential value. + * Set the AdmCredential of the created NotificationHub. * * @param admCredential the admCredential value to set * @return the NotificationHubCreateOrUpdateParametersInner object itself. @@ -249,7 +249,7 @@ public NotificationHubCreateOrUpdateParametersInner withAdmCredential(AdmCredent } /** - * Get the baiduCredential value. + * Get the BaiduCredential of the created NotificationHub. * * @return the baiduCredential value */ @@ -258,7 +258,7 @@ public BaiduCredential baiduCredential() { } /** - * Set the baiduCredential value. + * Set the BaiduCredential of the created NotificationHub. * * @param baiduCredential the baiduCredential value to set * @return the NotificationHubCreateOrUpdateParametersInner object itself. @@ -269,7 +269,7 @@ public NotificationHubCreateOrUpdateParametersInner withBaiduCredential(BaiduCre } /** - * Get the sku value. + * Get the sku of the created namespace. * * @return the sku value */ @@ -278,7 +278,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the sku of the created namespace. * * @param sku the sku value to set * @return the NotificationHubCreateOrUpdateParametersInner object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NotificationHubPatchParametersInner.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NotificationHubPatchParametersInner.java new file mode 100644 index 00000000000..b06d845e41b --- /dev/null +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NotificationHubPatchParametersInner.java @@ -0,0 +1,291 @@ +/** + * 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. + */ + +package com.microsoft.azure.management.notificationhubs.implementation; + +import java.util.List; +import com.microsoft.azure.management.notificationhubs.SharedAccessAuthorizationRuleProperties; +import com.microsoft.azure.management.notificationhubs.ApnsCredential; +import com.microsoft.azure.management.notificationhubs.WnsCredential; +import com.microsoft.azure.management.notificationhubs.GcmCredential; +import com.microsoft.azure.management.notificationhubs.MpnsCredential; +import com.microsoft.azure.management.notificationhubs.AdmCredential; +import com.microsoft.azure.management.notificationhubs.BaiduCredential; +import com.microsoft.azure.management.notificationhubs.Sku; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.microsoft.rest.serializer.JsonFlatten; +import com.microsoft.rest.SkipParentValidation; +import com.microsoft.azure.Resource; + +/** + * Parameters supplied to the patch NotificationHub operation. + */ +@JsonFlatten +@SkipParentValidation +public class NotificationHubPatchParametersInner extends Resource { + /** + * The NotificationHub name. + */ + @JsonProperty(value = "properties.name") + private String notificationHubPatchParametersName; + + /** + * The RegistrationTtl of the created NotificationHub. + */ + @JsonProperty(value = "properties.registrationTtl") + private String registrationTtl; + + /** + * The AuthorizationRules of the created NotificationHub. + */ + @JsonProperty(value = "properties.authorizationRules") + private List authorizationRules; + + /** + * The ApnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.apnsCredential") + private ApnsCredential apnsCredential; + + /** + * The WnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.wnsCredential") + private WnsCredential wnsCredential; + + /** + * The GcmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.gcmCredential") + private GcmCredential gcmCredential; + + /** + * The MpnsCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.mpnsCredential") + private MpnsCredential mpnsCredential; + + /** + * The AdmCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.admCredential") + private AdmCredential admCredential; + + /** + * The BaiduCredential of the created NotificationHub. + */ + @JsonProperty(value = "properties.baiduCredential") + private BaiduCredential baiduCredential; + + /** + * The sku of the created namespace. + */ + @JsonProperty(value = "sku") + private Sku sku; + + /** + * Get the NotificationHub name. + * + * @return the notificationHubPatchParametersName value + */ + public String notificationHubPatchParametersName() { + return this.notificationHubPatchParametersName; + } + + /** + * Set the NotificationHub name. + * + * @param notificationHubPatchParametersName the notificationHubPatchParametersName value to set + * @return the NotificationHubPatchParametersInner object itself. + */ + public NotificationHubPatchParametersInner withNotificationHubPatchParametersName(String notificationHubPatchParametersName) { + this.notificationHubPatchParametersName = notificationHubPatchParametersName; + return this; + } + + /** + * Get the RegistrationTtl of the created NotificationHub. + * + * @return the registrationTtl value + */ + public String registrationTtl() { + return this.registrationTtl; + } + + /** + * Set the RegistrationTtl of the created NotificationHub. + * + * @param registrationTtl the registrationTtl value to set + * @return the NotificationHubPatchParametersInner object itself. + */ + public NotificationHubPatchParametersInner withRegistrationTtl(String registrationTtl) { + this.registrationTtl = registrationTtl; + return this; + } + + /** + * Get the AuthorizationRules of the created NotificationHub. + * + * @return the authorizationRules value + */ + public List authorizationRules() { + return this.authorizationRules; + } + + /** + * Set the AuthorizationRules of the created NotificationHub. + * + * @param authorizationRules the authorizationRules value to set + * @return the NotificationHubPatchParametersInner object itself. + */ + public NotificationHubPatchParametersInner withAuthorizationRules(List authorizationRules) { + this.authorizationRules = authorizationRules; + return this; + } + + /** + * Get the ApnsCredential of the created NotificationHub. + * + * @return the apnsCredential value + */ + public ApnsCredential apnsCredential() { + return this.apnsCredential; + } + + /** + * Set the ApnsCredential of the created NotificationHub. + * + * @param apnsCredential the apnsCredential value to set + * @return the NotificationHubPatchParametersInner object itself. + */ + public NotificationHubPatchParametersInner withApnsCredential(ApnsCredential apnsCredential) { + this.apnsCredential = apnsCredential; + return this; + } + + /** + * Get the WnsCredential of the created NotificationHub. + * + * @return the wnsCredential value + */ + public WnsCredential wnsCredential() { + return this.wnsCredential; + } + + /** + * Set the WnsCredential of the created NotificationHub. + * + * @param wnsCredential the wnsCredential value to set + * @return the NotificationHubPatchParametersInner object itself. + */ + public NotificationHubPatchParametersInner withWnsCredential(WnsCredential wnsCredential) { + this.wnsCredential = wnsCredential; + return this; + } + + /** + * Get the GcmCredential of the created NotificationHub. + * + * @return the gcmCredential value + */ + public GcmCredential gcmCredential() { + return this.gcmCredential; + } + + /** + * Set the GcmCredential of the created NotificationHub. + * + * @param gcmCredential the gcmCredential value to set + * @return the NotificationHubPatchParametersInner object itself. + */ + public NotificationHubPatchParametersInner withGcmCredential(GcmCredential gcmCredential) { + this.gcmCredential = gcmCredential; + return this; + } + + /** + * Get the MpnsCredential of the created NotificationHub. + * + * @return the mpnsCredential value + */ + public MpnsCredential mpnsCredential() { + return this.mpnsCredential; + } + + /** + * Set the MpnsCredential of the created NotificationHub. + * + * @param mpnsCredential the mpnsCredential value to set + * @return the NotificationHubPatchParametersInner object itself. + */ + public NotificationHubPatchParametersInner withMpnsCredential(MpnsCredential mpnsCredential) { + this.mpnsCredential = mpnsCredential; + return this; + } + + /** + * Get the AdmCredential of the created NotificationHub. + * + * @return the admCredential value + */ + public AdmCredential admCredential() { + return this.admCredential; + } + + /** + * Set the AdmCredential of the created NotificationHub. + * + * @param admCredential the admCredential value to set + * @return the NotificationHubPatchParametersInner object itself. + */ + public NotificationHubPatchParametersInner withAdmCredential(AdmCredential admCredential) { + this.admCredential = admCredential; + return this; + } + + /** + * Get the BaiduCredential of the created NotificationHub. + * + * @return the baiduCredential value + */ + public BaiduCredential baiduCredential() { + return this.baiduCredential; + } + + /** + * Set the BaiduCredential of the created NotificationHub. + * + * @param baiduCredential the baiduCredential value to set + * @return the NotificationHubPatchParametersInner object itself. + */ + public NotificationHubPatchParametersInner withBaiduCredential(BaiduCredential baiduCredential) { + this.baiduCredential = baiduCredential; + return this; + } + + /** + * Get the sku of the created namespace. + * + * @return the sku value + */ + public Sku sku() { + return this.sku; + } + + /** + * Set the sku of the created namespace. + * + * @param sku the sku value to set + * @return the NotificationHubPatchParametersInner object itself. + */ + public NotificationHubPatchParametersInner withSku(Sku sku) { + this.sku = sku; + return this; + } + +} diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NotificationHubResourceInner.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NotificationHubResourceInner.java index 2cd30fe2ad4..cea9529cc6e 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NotificationHubResourceInner.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/NotificationHubResourceInner.java @@ -89,7 +89,7 @@ public class NotificationHubResourceInner extends Resource { private Sku sku; /** - * Get the notificationHubResourceName value. + * Get the NotificationHub name. * * @return the notificationHubResourceName value */ @@ -98,7 +98,7 @@ public String notificationHubResourceName() { } /** - * Set the notificationHubResourceName value. + * Set the NotificationHub name. * * @param notificationHubResourceName the notificationHubResourceName value to set * @return the NotificationHubResourceInner object itself. @@ -109,7 +109,7 @@ public NotificationHubResourceInner withNotificationHubResourceName(String notif } /** - * Get the registrationTtl value. + * Get the RegistrationTtl of the created NotificationHub. * * @return the registrationTtl value */ @@ -118,7 +118,7 @@ public String registrationTtl() { } /** - * Set the registrationTtl value. + * Set the RegistrationTtl of the created NotificationHub. * * @param registrationTtl the registrationTtl value to set * @return the NotificationHubResourceInner object itself. @@ -129,7 +129,7 @@ public NotificationHubResourceInner withRegistrationTtl(String registrationTtl) } /** - * Get the authorizationRules value. + * Get the AuthorizationRules of the created NotificationHub. * * @return the authorizationRules value */ @@ -138,7 +138,7 @@ public List authorizationRules() { } /** - * Set the authorizationRules value. + * Set the AuthorizationRules of the created NotificationHub. * * @param authorizationRules the authorizationRules value to set * @return the NotificationHubResourceInner object itself. @@ -149,7 +149,7 @@ public NotificationHubResourceInner withAuthorizationRules(List> createOrUpdate(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Body NotificationHubCreateOrUpdateParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.NotificationHubs patch" }) + @PATCH("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}") + Observable> patch(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Body NotificationHubPatchParametersInner parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.NotificationHubs delete" }) @HTTP(path = "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}", method = "DELETE", hasBody = true) Observable> delete(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); @@ -82,6 +87,10 @@ interface NotificationHubsService { @GET("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}") Observable> get(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.NotificationHubs debugSend" }) + @POST("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/debugsend") + Observable> debugSend(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("subscriptionId") String subscriptionId, @Body Object parameters, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Header("User-Agent") String userAgent); + @Headers({ "Content-Type: application/json; charset=utf-8", "x-ms-logging-context: com.microsoft.azure.management.notificationhubs.NotificationHubs createOrUpdateAuthorizationRule" }) @PUT("subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NotificationHubs/namespaces/{namespaceName}/notificationHubs/{notificationHubName}/AuthorizationRules/{authorizationRuleName}") Observable> createOrUpdateAuthorizationRule(@Path("resourceGroupName") String resourceGroupName, @Path("namespaceName") String namespaceName, @Path("notificationHubName") String notificationHubName, @Path("authorizationRuleName") String authorizationRuleName, @Path("subscriptionId") String subscriptionId, @Query("api-version") String apiVersion, @Header("accept-language") String acceptLanguage, @Body SharedAccessAuthorizationRuleCreateOrUpdateParameters parameters, @Header("User-Agent") String userAgent); @@ -320,6 +329,191 @@ private ServiceResponse createOrUpdateDelegate(Res .build(response); } + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NotificationHubResourceInner object if successful. + */ + public NotificationHubResourceInner patch(String resourceGroupName, String namespaceName, String notificationHubName) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).toBlocking().single().body(); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture patchAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable patchAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, NotificationHubResourceInner>() { + @Override + public NotificationHubResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable> patchWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final NotificationHubPatchParametersInner parameters = null; + return service.patch(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = patchDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to patch a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the NotificationHubResourceInner object if successful. + */ + public NotificationHubResourceInner patch(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubPatchParametersInner parameters) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).toBlocking().single().body(); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to patch a NotificationHub Resource. + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture patchAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubPatchParametersInner parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters), serviceCallback); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to patch a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable patchAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubPatchParametersInner parameters) { + return patchWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).map(new Func1, NotificationHubResourceInner>() { + @Override + public NotificationHubResourceInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * Patch a NotificationHub in a namespace. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Parameters supplied to patch a NotificationHub Resource. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the NotificationHubResourceInner object + */ + public Observable> patchWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, NotificationHubPatchParametersInner parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + Validator.validate(parameters); + return service.patch(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = patchDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse patchDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(200, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** * Deletes a notification hub associated with a namespace. * @@ -505,6 +699,190 @@ private ServiceResponse getDelegate(Response debugSendAsync(String resourceGroupName, String namespaceName, String notificationHubName, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(debugSendWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName), serviceCallback); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DebugSendResponseInner object + */ + public Observable debugSendAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + return debugSendWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName).map(new Func1, DebugSendResponseInner>() { + @Override + public DebugSendResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DebugSendResponseInner object + */ + public Observable> debugSendWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + final Object parameters = null; + return service.debugSend(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = debugSendDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Debug send parameters + * @throws IllegalArgumentException thrown if parameters fail the validation + * @throws CloudException thrown if the request is rejected by server + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent + * @return the DebugSendResponseInner object if successful. + */ + public DebugSendResponseInner debugSend(String resourceGroupName, String namespaceName, String notificationHubName, Object parameters) { + return debugSendWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).toBlocking().single().body(); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Debug send parameters + * @param serviceCallback the async ServiceCallback to handle successful and failed responses. + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the {@link ServiceFuture} object + */ + public ServiceFuture debugSendAsync(String resourceGroupName, String namespaceName, String notificationHubName, Object parameters, final ServiceCallback serviceCallback) { + return ServiceFuture.fromResponse(debugSendWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters), serviceCallback); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Debug send parameters + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DebugSendResponseInner object + */ + public Observable debugSendAsync(String resourceGroupName, String namespaceName, String notificationHubName, Object parameters) { + return debugSendWithServiceResponseAsync(resourceGroupName, namespaceName, notificationHubName, parameters).map(new Func1, DebugSendResponseInner>() { + @Override + public DebugSendResponseInner call(ServiceResponse response) { + return response.body(); + } + }); + } + + /** + * test send a push notification. + * + * @param resourceGroupName The name of the resource group. + * @param namespaceName The namespace name. + * @param notificationHubName The notification hub name. + * @param parameters Debug send parameters + * @throws IllegalArgumentException thrown if parameters fail the validation + * @return the observable to the DebugSendResponseInner object + */ + public Observable> debugSendWithServiceResponseAsync(String resourceGroupName, String namespaceName, String notificationHubName, Object parameters) { + if (resourceGroupName == null) { + throw new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null."); + } + if (namespaceName == null) { + throw new IllegalArgumentException("Parameter namespaceName is required and cannot be null."); + } + if (notificationHubName == null) { + throw new IllegalArgumentException("Parameter notificationHubName is required and cannot be null."); + } + if (this.client.subscriptionId() == null) { + throw new IllegalArgumentException("Parameter this.client.subscriptionId() is required and cannot be null."); + } + if (this.client.apiVersion() == null) { + throw new IllegalArgumentException("Parameter this.client.apiVersion() is required and cannot be null."); + } + return service.debugSend(resourceGroupName, namespaceName, notificationHubName, this.client.subscriptionId(), parameters, this.client.apiVersion(), this.client.acceptLanguage(), this.client.userAgent()) + .flatMap(new Func1, Observable>>() { + @Override + public Observable> call(Response response) { + try { + ServiceResponse clientResponse = debugSendDelegate(response); + return Observable.just(clientResponse); + } catch (Throwable t) { + return Observable.error(t); + } + } + }); + } + + private ServiceResponse debugSendDelegate(Response response) throws CloudException, IOException, IllegalArgumentException { + return this.client.restClient().responseBuilderFactory().newInstance(this.client.serializerAdapter()) + .register(201, new TypeToken() { }.getType()) + .registerError(CloudException.class) + .build(response); + } + /** * Creates/Updates an authorization rule for a NotificationHub. * diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/OperationInner.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/OperationInner.java index a4c214c40ea..2ba61731046 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/OperationInner.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/OperationInner.java @@ -28,7 +28,7 @@ public class OperationInner { private OperationDisplay display; /** - * Get the name value. + * Get operation name: {provider}/{resource}/{operation}. * * @return the name value */ @@ -37,7 +37,7 @@ public String name() { } /** - * Get the display value. + * Get the object that represents the operation. * * @return the display value */ @@ -46,7 +46,7 @@ public OperationDisplay display() { } /** - * Set the display value. + * Set the object that represents the operation. * * @param display the display value to set * @return the OperationInner object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/PnsCredentialsResourceInner.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/PnsCredentialsResourceInner.java index 67222c60a12..ce03d7cd70e 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/PnsCredentialsResourceInner.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/PnsCredentialsResourceInner.java @@ -69,7 +69,7 @@ public class PnsCredentialsResourceInner extends Resource { private Sku sku; /** - * Get the apnsCredential value. + * Get the ApnsCredential of the created NotificationHub. * * @return the apnsCredential value */ @@ -78,7 +78,7 @@ public ApnsCredential apnsCredential() { } /** - * Set the apnsCredential value. + * Set the ApnsCredential of the created NotificationHub. * * @param apnsCredential the apnsCredential value to set * @return the PnsCredentialsResourceInner object itself. @@ -89,7 +89,7 @@ public PnsCredentialsResourceInner withApnsCredential(ApnsCredential apnsCredent } /** - * Get the wnsCredential value. + * Get the WnsCredential of the created NotificationHub. * * @return the wnsCredential value */ @@ -98,7 +98,7 @@ public WnsCredential wnsCredential() { } /** - * Set the wnsCredential value. + * Set the WnsCredential of the created NotificationHub. * * @param wnsCredential the wnsCredential value to set * @return the PnsCredentialsResourceInner object itself. @@ -109,7 +109,7 @@ public PnsCredentialsResourceInner withWnsCredential(WnsCredential wnsCredential } /** - * Get the gcmCredential value. + * Get the GcmCredential of the created NotificationHub. * * @return the gcmCredential value */ @@ -118,7 +118,7 @@ public GcmCredential gcmCredential() { } /** - * Set the gcmCredential value. + * Set the GcmCredential of the created NotificationHub. * * @param gcmCredential the gcmCredential value to set * @return the PnsCredentialsResourceInner object itself. @@ -129,7 +129,7 @@ public PnsCredentialsResourceInner withGcmCredential(GcmCredential gcmCredential } /** - * Get the mpnsCredential value. + * Get the MpnsCredential of the created NotificationHub. * * @return the mpnsCredential value */ @@ -138,7 +138,7 @@ public MpnsCredential mpnsCredential() { } /** - * Set the mpnsCredential value. + * Set the MpnsCredential of the created NotificationHub. * * @param mpnsCredential the mpnsCredential value to set * @return the PnsCredentialsResourceInner object itself. @@ -149,7 +149,7 @@ public PnsCredentialsResourceInner withMpnsCredential(MpnsCredential mpnsCredent } /** - * Get the admCredential value. + * Get the AdmCredential of the created NotificationHub. * * @return the admCredential value */ @@ -158,7 +158,7 @@ public AdmCredential admCredential() { } /** - * Set the admCredential value. + * Set the AdmCredential of the created NotificationHub. * * @param admCredential the admCredential value to set * @return the PnsCredentialsResourceInner object itself. @@ -169,7 +169,7 @@ public PnsCredentialsResourceInner withAdmCredential(AdmCredential admCredential } /** - * Get the baiduCredential value. + * Get the BaiduCredential of the created NotificationHub. * * @return the baiduCredential value */ @@ -178,7 +178,7 @@ public BaiduCredential baiduCredential() { } /** - * Set the baiduCredential value. + * Set the BaiduCredential of the created NotificationHub. * * @param baiduCredential the baiduCredential value to set * @return the PnsCredentialsResourceInner object itself. @@ -189,7 +189,7 @@ public PnsCredentialsResourceInner withBaiduCredential(BaiduCredential baiduCred } /** - * Get the sku value. + * Get the sku of the created namespace. * * @return the sku value */ @@ -198,7 +198,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the sku of the created namespace. * * @param sku the sku value to set * @return the PnsCredentialsResourceInner object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/ResourceListKeysInner.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/ResourceListKeysInner.java index 040868fbcd7..34b95ee6bde 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/ResourceListKeysInner.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/ResourceListKeysInner.java @@ -45,7 +45,7 @@ public class ResourceListKeysInner { private String keyName; /** - * Get the primaryConnectionString value. + * Get primaryConnectionString of the AuthorizationRule. * * @return the primaryConnectionString value */ @@ -54,7 +54,7 @@ public String primaryConnectionString() { } /** - * Set the primaryConnectionString value. + * Set primaryConnectionString of the AuthorizationRule. * * @param primaryConnectionString the primaryConnectionString value to set * @return the ResourceListKeysInner object itself. @@ -65,7 +65,7 @@ public ResourceListKeysInner withPrimaryConnectionString(String primaryConnectio } /** - * Get the secondaryConnectionString value. + * Get secondaryConnectionString of the created AuthorizationRule. * * @return the secondaryConnectionString value */ @@ -74,7 +74,7 @@ public String secondaryConnectionString() { } /** - * Set the secondaryConnectionString value. + * Set secondaryConnectionString of the created AuthorizationRule. * * @param secondaryConnectionString the secondaryConnectionString value to set * @return the ResourceListKeysInner object itself. @@ -85,7 +85,7 @@ public ResourceListKeysInner withSecondaryConnectionString(String secondaryConne } /** - * Get the primaryKey value. + * Get primaryKey of the created AuthorizationRule. * * @return the primaryKey value */ @@ -94,7 +94,7 @@ public String primaryKey() { } /** - * Set the primaryKey value. + * Set primaryKey of the created AuthorizationRule. * * @param primaryKey the primaryKey value to set * @return the ResourceListKeysInner object itself. @@ -105,7 +105,7 @@ public ResourceListKeysInner withPrimaryKey(String primaryKey) { } /** - * Get the secondaryKey value. + * Get secondaryKey of the created AuthorizationRule. * * @return the secondaryKey value */ @@ -114,7 +114,7 @@ public String secondaryKey() { } /** - * Set the secondaryKey value. + * Set secondaryKey of the created AuthorizationRule. * * @param secondaryKey the secondaryKey value to set * @return the ResourceListKeysInner object itself. @@ -125,7 +125,7 @@ public ResourceListKeysInner withSecondaryKey(String secondaryKey) { } /** - * Get the keyName value. + * Get keyName of the created AuthorizationRule. * * @return the keyName value */ @@ -134,7 +134,7 @@ public String keyName() { } /** - * Set the keyName value. + * Set keyName of the created AuthorizationRule. * * @param keyName the keyName value to set * @return the ResourceListKeysInner object itself. diff --git a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/SharedAccessAuthorizationRuleListResultInner.java b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/SharedAccessAuthorizationRuleListResultInner.java index 8b5268b0343..94c6ba4d958 100644 --- a/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/SharedAccessAuthorizationRuleListResultInner.java +++ b/azure-mgmt-notificationhubs/src/main/java/com/microsoft/azure/management/notificationhubs/implementation/SharedAccessAuthorizationRuleListResultInner.java @@ -29,7 +29,7 @@ public class SharedAccessAuthorizationRuleListResultInner { private String nextLink; /** - * Get the value value. + * Get result of the List AuthorizationRules operation. * * @return the value value */ @@ -38,7 +38,7 @@ public List value() { } /** - * Set the value value. + * Set result of the List AuthorizationRules operation. * * @param value the value value to set * @return the SharedAccessAuthorizationRuleListResultInner object itself. @@ -49,7 +49,7 @@ public SharedAccessAuthorizationRuleListResultInner withValue(List rights() { } /** - * Set the rights value. + * Set the rights associated with the rule. * * @param rights the rights value to set * @return the SharedAccessAuthorizationRuleResourceInner object itself. @@ -105,7 +105,7 @@ public SharedAccessAuthorizationRuleResourceInner withRights(List } /** - * Get the primaryKey value. + * Get a base64-encoded 256-bit primary key for signing and validating the SAS token. * * @return the primaryKey value */ @@ -114,7 +114,7 @@ public String primaryKey() { } /** - * Get the secondaryKey value. + * Get a base64-encoded 256-bit primary key for signing and validating the SAS token. * * @return the secondaryKey value */ @@ -123,7 +123,7 @@ public String secondaryKey() { } /** - * Get the keyName value. + * Get a string that describes the authorization rule. * * @return the keyName value */ @@ -132,7 +132,7 @@ public String keyName() { } /** - * Get the claimType value. + * Get a string that describes the claim type. * * @return the claimType value */ @@ -141,7 +141,7 @@ public String claimType() { } /** - * Get the claimValue value. + * Get a string that describes the claim value. * * @return the claimValue value */ @@ -150,7 +150,7 @@ public String claimValue() { } /** - * Get the modifiedTime value. + * Get the last modified time for this rule. * * @return the modifiedTime value */ @@ -159,7 +159,7 @@ public String modifiedTime() { } /** - * Get the createdTime value. + * Get the created time for this rule. * * @return the createdTime value */ @@ -168,7 +168,7 @@ public String createdTime() { } /** - * Get the revision value. + * Get the revision number for the rule. * * @return the revision value */ @@ -177,7 +177,7 @@ public Integer revision() { } /** - * Get the sku value. + * Get the sku of the created namespace. * * @return the sku value */ @@ -186,7 +186,7 @@ public Sku sku() { } /** - * Set the sku value. + * Set the sku of the created namespace. * * @param sku the sku value to set * @return the SharedAccessAuthorizationRuleResourceInner object itself.