Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sdk/notificationhubs/mgmt-v2017_04_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<parent>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-arm-parent</artifactId>
<version>1.2.0</version>
<relativePath>../../parents/azure-arm-parent</relativePath>
<version>1.1.0</version>
<relativePath>../../../pom.management.xml</relativePath>
</parent>
<artifactId>azure-mgmt-notificationhubs</artifactId>
<version>1.0.0-beta</version>
Expand Down Expand Up @@ -71,6 +71,8 @@
<artifactId>azure-arm-client-runtime</artifactId>
<type>test-jar</type>
<scope>test</scope>
<!--Below version for test jar needs to be removed, this will be done as part of v1-runtime 1.6.7-->
<version>1.6.5</version>
</dependency>
</dependencies>
<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,57 +17,68 @@
@JsonFlatten
public class ApnsCredential {
/**
* The APNS certificate.
* The APNS certificate. Specify if using Certificate Authentication Mode.
*/
@JsonProperty(value = "properties.apnsCertificate")
private String apnsCertificate;

/**
* The certificate key.
* The APNS certificate password if it exists.
*/
@JsonProperty(value = "properties.certificateKey")
private String certificateKey;

/**
* The endpoint of this credential.
* The APNS endpoint of this credential. If using Certificate
* Authentication Mode and Sandbox specify
* 'gateway.sandbox.push.apple.com'. If using Certificate Authentication
* Mode and Production specify 'gateway.push.apple.com'. If using Token
* Authentication Mode and Sandbox specify
* 'https://api.development.push.apple.com:443/3/device'. If using Token
* Authentication Mode and Production specify
* 'https://api.push.apple.com:443/3/device'.
*/
@JsonProperty(value = "properties.endpoint")
private String endpoint;

/**
* The Apns certificate Thumbprint.
* The APNS certificate thumbprint. Specify if using Certificate
* Authentication Mode.
*/
@JsonProperty(value = "properties.thumbprint")
private String thumbprint;

/**
* A 10-character key identifier (kid) key, obtained from your developer
* account.
* account. Specify if using Token Authentication Mode.
*/
@JsonProperty(value = "properties.keyId")
private String keyId;

/**
* The name of the application.
* The name of the application or BundleId. Specify if using Token
* Authentication Mode.
*/
@JsonProperty(value = "properties.appName")
private String appName;

/**
* The issuer (iss) registered claim key, whose value is your 10-character
* Team ID, obtained from your developer account.
* The issuer (iss) registered claim key. The value is a 10-character
* TeamId, obtained from your developer account. Specify if using Token
* Authentication Mode.
*/
@JsonProperty(value = "properties.appId")
private String appId;

/**
* Provider Authentication Token, obtained through your developer account.
* Specify if using Token Authentication Mode.
*/
@JsonProperty(value = "properties.token")
private String token;

/**
* Get the APNS certificate.
* Get the APNS certificate. Specify if using Certificate Authentication Mode.
*
* @return the apnsCertificate value
*/
Expand All @@ -76,7 +87,7 @@ public String apnsCertificate() {
}

/**
* Set the APNS certificate.
* Set the APNS certificate. Specify if using Certificate Authentication Mode.
*
* @param apnsCertificate the apnsCertificate value to set
* @return the ApnsCredential object itself.
Expand All @@ -87,7 +98,7 @@ public ApnsCredential withApnsCertificate(String apnsCertificate) {
}

/**
* Get the certificate key.
* Get the APNS certificate password if it exists.
*
* @return the certificateKey value
*/
Expand All @@ -96,7 +107,7 @@ public String certificateKey() {
}

/**
* Set the certificate key.
* Set the APNS certificate password if it exists.
*
* @param certificateKey the certificateKey value to set
* @return the ApnsCredential object itself.
Expand All @@ -107,7 +118,7 @@ public ApnsCredential withCertificateKey(String certificateKey) {
}

/**
* Get the endpoint of this credential.
* Get the APNS endpoint of this credential. If using Certificate Authentication Mode and Sandbox specify 'gateway.sandbox.push.apple.com'. If using Certificate Authentication Mode and Production specify 'gateway.push.apple.com'. If using Token Authentication Mode and Sandbox specify 'https://api.development.push.apple.com:443/3/device'. If using Token Authentication Mode and Production specify 'https://api.push.apple.com:443/3/device'.
*
* @return the endpoint value
*/
Expand All @@ -116,7 +127,7 @@ public String endpoint() {
}

/**
* Set the endpoint of this credential.
* Set the APNS endpoint of this credential. If using Certificate Authentication Mode and Sandbox specify 'gateway.sandbox.push.apple.com'. If using Certificate Authentication Mode and Production specify 'gateway.push.apple.com'. If using Token Authentication Mode and Sandbox specify 'https://api.development.push.apple.com:443/3/device'. If using Token Authentication Mode and Production specify 'https://api.push.apple.com:443/3/device'.
*
* @param endpoint the endpoint value to set
* @return the ApnsCredential object itself.
Expand All @@ -127,7 +138,7 @@ public ApnsCredential withEndpoint(String endpoint) {
}

/**
* Get the Apns certificate Thumbprint.
* Get the APNS certificate thumbprint. Specify if using Certificate Authentication Mode.
*
* @return the thumbprint value
*/
Expand All @@ -136,7 +147,7 @@ public String thumbprint() {
}

/**
* Set the Apns certificate Thumbprint.
* Set the APNS certificate thumbprint. Specify if using Certificate Authentication Mode.
*
* @param thumbprint the thumbprint value to set
* @return the ApnsCredential object itself.
Expand All @@ -147,7 +158,7 @@ public ApnsCredential withThumbprint(String thumbprint) {
}

/**
* Get a 10-character key identifier (kid) key, obtained from your developer account.
* Get a 10-character key identifier (kid) key, obtained from your developer account. Specify if using Token Authentication Mode.
*
* @return the keyId value
*/
Expand All @@ -156,7 +167,7 @@ public String keyId() {
}

/**
* Set a 10-character key identifier (kid) key, obtained from your developer account.
* Set a 10-character key identifier (kid) key, obtained from your developer account. Specify if using Token Authentication Mode.
*
* @param keyId the keyId value to set
* @return the ApnsCredential object itself.
Expand All @@ -167,7 +178,7 @@ public ApnsCredential withKeyId(String keyId) {
}

/**
* Get the name of the application.
* Get the name of the application or BundleId. Specify if using Token Authentication Mode.
*
* @return the appName value
*/
Expand All @@ -176,7 +187,7 @@ public String appName() {
}

/**
* Set the name of the application.
* Set the name of the application or BundleId. Specify if using Token Authentication Mode.
*
* @param appName the appName value to set
* @return the ApnsCredential object itself.
Expand All @@ -187,7 +198,7 @@ public ApnsCredential withAppName(String appName) {
}

/**
* Get the issuer (iss) registered claim key, whose value is your 10-character Team ID, obtained from your developer account.
* Get the issuer (iss) registered claim key. The value is a 10-character TeamId, obtained from your developer account. Specify if using Token Authentication Mode.
*
* @return the appId value
*/
Expand All @@ -196,7 +207,7 @@ public String appId() {
}

/**
* Set the issuer (iss) registered claim key, whose value is your 10-character Team ID, obtained from your developer account.
* Set the issuer (iss) registered claim key. The value is a 10-character TeamId, obtained from your developer account. Specify if using Token Authentication Mode.
*
* @param appId the appId value to set
* @return the ApnsCredential object itself.
Expand All @@ -207,7 +218,7 @@ public ApnsCredential withAppId(String appId) {
}

/**
* Get provider Authentication Token, obtained through your developer account.
* Get provider Authentication Token, obtained through your developer account. Specify if using Token Authentication Mode.
*
* @return the token value
*/
Expand All @@ -216,7 +227,7 @@ public String token() {
}

/**
* Set provider Authentication Token, obtained through your developer account.
* Set provider Authentication Token, obtained through your developer account. Specify if using Token Authentication Mode.
*
* @param token the token value to set
* @return the ApnsCredential object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Error reponse indicates NotificationHubs service is not able to process the
* Error response indicates NotificationHubs service is not able to process the
* incoming request. The reason is provided in the error message.
*/
public class ErrorResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@
@JsonFlatten
public class GcmCredential {
/**
* The GCM endpoint.
* The FCM legacy endpoint. Default value is
* 'https://fcm.googleapis.com/fcm/send'.
*/
@JsonProperty(value = "properties.gcmEndpoint")
private String gcmEndpoint;
Expand All @@ -29,7 +30,7 @@ public class GcmCredential {
private String googleApiKey;

/**
* Get the GCM endpoint.
* Get the FCM legacy endpoint. Default value is 'https://fcm.googleapis.com/fcm/send'.
*
* @return the gcmEndpoint value
*/
Expand All @@ -38,7 +39,7 @@ public String gcmEndpoint() {
}

/**
* Set the GCM endpoint.
* Set the FCM legacy endpoint. Default value is 'https://fcm.googleapis.com/fcm/send'.
*
* @param gcmEndpoint the gcmEndpoint value to set
* @return the GcmCredential object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class MpnsCredential {
private String certificateKey;

/**
* The Mpns certificate Thumbprint.
* The MPNS certificate Thumbprint.
*/
@JsonProperty(value = "properties.thumbprint")
private String thumbprint;
Expand Down Expand Up @@ -75,7 +75,7 @@ public MpnsCredential withCertificateKey(String certificateKey) {
}

/**
* Get the Mpns certificate Thumbprint.
* Get the MPNS certificate Thumbprint.
*
* @return the thumbprint value
*/
Expand All @@ -84,7 +84,7 @@ public String thumbprint() {
}

/**
* Set the Mpns certificate Thumbprint.
* Set the MPNS certificate Thumbprint.
*
* @param thumbprint the thumbprint value to set
* @return the MpnsCredential object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ public class NamespaceCreateOrUpdateParameters extends Resource {

/**
* 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.
* It can be any of the following values: Australia East, Australia
* Southeast, Central US, East US, East US 2, West US, North Central US,
* South Central US, East Asia, Southeast Asia, Brazil South, Japan East,
* Japan West, North Europe, West Europe.
*/
@JsonProperty(value = "properties.region")
private String region;
Expand Down Expand Up @@ -157,7 +157,7 @@ public NamespaceCreateOrUpdateParameters withProvisioningState(String provisioni
}

/**
* 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.
* Get specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe.
*
* @return the region value
*/
Expand All @@ -166,7 +166,7 @@ public String region() {
}

/**
* 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.
* Set specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe.
*
* @param region the region value to set
* @return the NamespaceCreateOrUpdateParameters object itself.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,11 @@ public interface NamespaceResource extends HasInner<NamespaceResourceInner>, Res
*/
String provisioningState();

/**
* @return the region value.
*/
String region();

/**
* @return the scaleUnit value.
*/
Expand Down Expand Up @@ -201,6 +206,18 @@ interface WithProvisioningState {
WithCreate withProvisioningState(String provisioningState);
}

/**
* The stage of the namespaceresource definition allowing to specify Region.
*/
interface WithRegion {
/**
* Specifies region.
* @param region Specifies the targeted region in which the namespace should be created. It can be any of the following values: Australia East, Australia Southeast, Central US, East US, East US 2, West US, North Central US, South Central US, East Asia, Southeast Asia, Brazil South, Japan East, Japan West, North Europe, West Europe
* @return the next definition stage
*/
WithCreate withRegion(String region);
}

/**
* The stage of the namespaceresource definition allowing to specify ScaleUnit.
*/
Expand Down Expand Up @@ -278,7 +295,7 @@ interface WithUpdatedAt {
* the resource to be created (via {@link WithCreate#create()}), but also allows
* for any other optional settings to be specified.
*/
interface WithCreate extends Creatable<NamespaceResource>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithCreatedAt, DefinitionStages.WithCritical, DefinitionStages.WithDataCenter, DefinitionStages.WithEnabled, DefinitionStages.WithNamespaceCreateOrUpdateParametersName, DefinitionStages.WithNamespaceType, DefinitionStages.WithProvisioningState, DefinitionStages.WithScaleUnit, DefinitionStages.WithServiceBusEndpoint, DefinitionStages.WithSku, DefinitionStages.WithStatus, DefinitionStages.WithSubscriptionId, DefinitionStages.WithUpdatedAt {
interface WithCreate extends Creatable<NamespaceResource>, Resource.DefinitionWithTags<WithCreate>, DefinitionStages.WithCreatedAt, DefinitionStages.WithCritical, DefinitionStages.WithDataCenter, DefinitionStages.WithEnabled, DefinitionStages.WithNamespaceCreateOrUpdateParametersName, DefinitionStages.WithNamespaceType, DefinitionStages.WithProvisioningState, DefinitionStages.WithRegion, DefinitionStages.WithScaleUnit, DefinitionStages.WithServiceBusEndpoint, DefinitionStages.WithSku, DefinitionStages.WithStatus, DefinitionStages.WithSubscriptionId, DefinitionStages.WithUpdatedAt {
}
}
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
import com.microsoft.azure.Resource;

/**
* Description of a CheckAvailibility resource.
* Description of a CheckAvailability resource.
*/
@SkipParentValidation
public class CheckAvailabilityResultInner extends Resource {
Expand Down
Loading