Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

[ReleasePR sdk/signalr/mgmt-v2018_10_01] MSI/ClientCert support in SignalR service #12904

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: 3 additions & 3 deletions sdk/signalr/mgmt-v2018_10_01/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
<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-signalr</artifactId>
<artifactId>azure-mgmt-signalrservice</artifactId>
<version>1.0.0-beta</version>
<packaging>jar</packaging>
<name>Microsoft Azure SDK for SignalRService Management</name>
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
/**
* 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.signalr.v2018_10_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Contains information about an API error.
*/
public class ErrorResponse {
/**
* Describes a particular API error with an error code and a message.
*/
@JsonProperty(value = "error")
private ErrorResponseBody error;

/**
* Get describes a particular API error with an error code and a message.
*
* @return the error value
*/
public ErrorResponseBody error() {
return this.error;
}

/**
* Set describes a particular API error with an error code and a message.
*
* @param error the error value to set
* @return the ErrorResponse object itself.
*/
public ErrorResponse withError(ErrorResponseBody error) {
this.error = error;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,128 @@
/**
* 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.signalr.v2018_10_01;

import java.util.List;
import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Describes a particular API error with an error code and a message.
*/
public class ErrorResponseBody {
/**
* An error code that describes the error condition more precisely than an
* HTTP status code.
* Can be used to programmatically handle specific error cases.
*/
@JsonProperty(value = "code", required = true)
private String code;

/**
* A message that describes the error in detail and provides debugging
* information.
*/
@JsonProperty(value = "message", required = true)
private String message;

/**
* The target of the particular error (for example, the name of the
* property in error).
*/
@JsonProperty(value = "target")
private String target;

/**
* Contains nested errors that are related to this error.
*/
@JsonProperty(value = "details")
private List<ErrorResponseBody> details;

/**
* Get an error code that describes the error condition more precisely than an HTTP status code.
Can be used to programmatically handle specific error cases.
*
* @return the code value
*/
public String code() {
return this.code;
}

/**
* Set an error code that describes the error condition more precisely than an HTTP status code.
Can be used to programmatically handle specific error cases.
*
* @param code the code value to set
* @return the ErrorResponseBody object itself.
*/
public ErrorResponseBody withCode(String code) {
this.code = code;
return this;
}

/**
* Get a message that describes the error in detail and provides debugging information.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Set a message that describes the error in detail and provides debugging information.
*
* @param message the message value to set
* @return the ErrorResponseBody object itself.
*/
public ErrorResponseBody withMessage(String message) {
this.message = message;
return this;
}

/**
* Get the target of the particular error (for example, the name of the property in error).
*
* @return the target value
*/
public String target() {
return this.target;
}

/**
* Set the target of the particular error (for example, the name of the property in error).
*
* @param target the target value to set
* @return the ErrorResponseBody object itself.
*/
public ErrorResponseBody withTarget(String target) {
this.target = target;
return this;
}

/**
* Get contains nested errors that are related to this error.
*
* @return the details value
*/
public List<ErrorResponseBody> details() {
return this.details;
}

/**
* Set contains nested errors that are related to this error.
*
* @param details the details value to set
* @return the ErrorResponseBody object itself.
*/
public ErrorResponseBody withDetails(List<ErrorResponseBody> details) {
this.details = details;
return this;
}

}
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
/**
* 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.signalr.v2018_10_01;

import com.microsoft.rest.RestException;
import okhttp3.ResponseBody;
import retrofit2.Response;

/**
* Exception thrown for an invalid response with ErrorResponse information.
*/
public class ErrorResponseException extends RestException {
/**
* Initializes a new instance of the ErrorResponseException class.
*
* @param message the exception message or the response content if a message is not available
* @param response the HTTP response
*/
public ErrorResponseException(final String message, final Response<ResponseBody> response) {
super(message, response);
}

/**
* Initializes a new instance of the ErrorResponseException class.
*
* @param message the exception message or the response content if a message is not available
* @param response the HTTP response
* @param body the deserialized response body
*/
public ErrorResponseException(final String message, final Response<ResponseBody> response, final ErrorResponse body) {
super(message, response, body);
}

@Override
public ErrorResponse body() {
return (ErrorResponse) super.body();
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
/**
* 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.signalr.v2018_10_01;

import java.util.Collection;
import com.fasterxml.jackson.annotation.JsonCreator;
import com.microsoft.rest.ExpandableStringEnum;

/**
* Defines values for FeatureFlags.
*/
public final class FeatureFlags extends ExpandableStringEnum<FeatureFlags> {
/** Static value ServiceMode for FeatureFlags. */
public static final FeatureFlags SERVICE_MODE = fromString("ServiceMode");

/** Static value EnableConnectivityLogs for FeatureFlags. */
public static final FeatureFlags ENABLE_CONNECTIVITY_LOGS = fromString("EnableConnectivityLogs");

/**
* Creates or finds a FeatureFlags from its string representation.
* @param name a name to look for
* @return the corresponding FeatureFlags
*/
@JsonCreator
public static FeatureFlags fromString(String name) {
return fromString(name, FeatureFlags.class);
}

/**
* @return known FeatureFlags values
*/
public static Collection<FeatureFlags> values() {
return values(FeatureFlags.class);
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
/**
* 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.signalr.v2018_10_01;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Specifications of the Logs for Azure Monitoring.
*/
public class LogSpecification {
/**
* Name of the log.
*/
@JsonProperty(value = "name")
private String name;

/**
* Localized friendly display name of the log.
*/
@JsonProperty(value = "displayName")
private String displayName;

/**
* Get name of the log.
*
* @return the name value
*/
public String name() {
return this.name;
}

/**
* Set name of the log.
*
* @param name the name value to set
* @return the LogSpecification object itself.
*/
public LogSpecification withName(String name) {
this.name = name;
return this;
}

/**
* Get localized friendly display name of the log.
*
* @return the displayName value
*/
public String displayName() {
return this.displayName;
}

/**
* Set localized friendly display name of the log.
*
* @param displayName the displayName value to set
* @return the LogSpecification object itself.
*/
public LogSpecification withDisplayName(String displayName) {
this.displayName = displayName;
return this;
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.signalr.v2018_10_01.implementation.SignalRManager;
import com.microsoft.azure.management.signalr.v2018_10_01.implementation.SignalRServiceManager;
import com.microsoft.azure.management.signalr.v2018_10_01.implementation.NameAvailabilityInner;

/**
* Type representing NameAvailability.
*/
public interface NameAvailability extends HasInner<NameAvailabilityInner>, HasManager<SignalRManager> {
public interface NameAvailability extends HasInner<NameAvailabilityInner>, HasManager<SignalRServiceManager> {
/**
* @return the message value.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,13 @@

import com.microsoft.azure.arm.model.HasInner;
import com.microsoft.azure.arm.resources.models.HasManager;
import com.microsoft.azure.management.signalr.v2018_10_01.implementation.SignalRManager;
import com.microsoft.azure.management.signalr.v2018_10_01.implementation.SignalRServiceManager;
import com.microsoft.azure.management.signalr.v2018_10_01.implementation.OperationInner;

/**
* Type representing Operation.
*/
public interface Operation extends HasInner<OperationInner>, HasManager<SignalRManager> {
public interface Operation extends HasInner<OperationInner>, HasManager<SignalRServiceManager> {
/**
* @return the display value.
*/
Expand Down
Loading