Skip to content

Commit

Permalink
Generated from 9771d96d4a2f4caa435cd59ae81736e910b8ee89 (#2826)
Browse files Browse the repository at this point in the history
Update Python version
  • Loading branch information
AutorestCI authored Jan 14, 2019
1 parent 48e59cb commit d8674c4
Show file tree
Hide file tree
Showing 10 changed files with 665 additions and 0 deletions.
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.monitor;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Information about a container with data for a given resource.
*/
public class DataContainer {
/**
* Log Analytics workspace information.
*/
@JsonProperty(value = "workspace", required = true)
private WorkspaceInfo workspace;

/**
* Get log Analytics workspace information.
*
* @return the workspace value
*/
public WorkspaceInfo workspace() {
return this.workspace;
}

/**
* Set log Analytics workspace information.
*
* @param workspace the workspace value to set
* @return the DataContainer object itself.
*/
public DataContainer withWorkspace(WorkspaceInfo workspace) {
this.workspace = workspace;
return this;
}

}
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.monitor;

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

/**
* Defines values for DataStatus.
*/
public final class DataStatus extends ExpandableStringEnum<DataStatus> {
/** Static value present for DataStatus. */
public static final DataStatus PRESENT = fromString("present");

/** Static value notPresent for DataStatus. */
public static final DataStatus NOT_PRESENT = fromString("notPresent");

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

/**
* @return known DataStatus values
*/
public static Collection<DataStatus> values() {
return values(DataStatus.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.monitor;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* Error details.
*/
public class Error {
/**
* Error code identifying the specific error.
*/
@JsonProperty(value = "code", required = true)
private String code;

/**
* Error message in the caller's locale.
*/
@JsonProperty(value = "message")
private String message;

/**
* Get error code identifying the specific error.
*
* @return the code value
*/
public String code() {
return this.code;
}

/**
* Set error code identifying the specific error.
*
* @param code the code value to set
* @return the Error object itself.
*/
public Error withCode(String code) {
this.code = code;
return this;
}

/**
* Get error message in the caller's locale.
*
* @return the message value
*/
public String message() {
return this.message;
}

/**
* Set error message in the caller's locale.
*
* @param message the message value to set
* @return the Error object itself.
*/
public Error withMessage(String message) {
this.message = message;
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.monitor;

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

/**
* Defines values for OnboardingStatus.
*/
public final class OnboardingStatus extends ExpandableStringEnum<OnboardingStatus> {
/** Static value onboarded for OnboardingStatus. */
public static final OnboardingStatus ONBOARDED = fromString("onboarded");

/** Static value notOnboarded for OnboardingStatus. */
public static final OnboardingStatus NOT_ONBOARDED = fromString("notOnboarded");

/** Static value unknown for OnboardingStatus. */
public static final OnboardingStatus UNKNOWN = fromString("unknown");

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

/**
* @return known OnboardingStatus values
*/
public static Collection<OnboardingStatus> values() {
return values(OnboardingStatus.class);
}
}
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.monitor;

import com.fasterxml.jackson.annotation.JsonProperty;

/**
* An error response from the API.
*/
public class ResponseWithError {
/**
* Error information.
*/
@JsonProperty(value = "error", required = true)
private Error error;

/**
* Get error information.
*
* @return the error value
*/
public Error error() {
return this.error;
}

/**
* Set error information.
*
* @param error the error value to set
* @return the ResponseWithError object itself.
*/
public ResponseWithError withError(Error error) {
this.error = error;
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.monitor;

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

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

/**
* Initializes a new instance of the ResponseWithErrorException 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 ResponseWithErrorException(final String message, final Response<ResponseBody> response, final ResponseWithError body) {
super(message, response, body);
}

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

import com.fasterxml.jackson.annotation.JsonProperty;
import com.microsoft.rest.serializer.JsonFlatten;

/**
* Information about a Log Analytics Workspace.
*/
@JsonFlatten
public class WorkspaceInfo {
/**
* Azure Resource Manager identifier of the Log Analytics Workspace.
*/
@JsonProperty(value = "id", required = true)
private String id;

/**
* Location of the Log Analytics workspace.
*/
@JsonProperty(value = "location", required = true)
private String location;

/**
* Log Analytics workspace identifier.
*/
@JsonProperty(value = "properties.customerId", required = true)
private String customerId;

/**
* Get azure Resource Manager identifier of the Log Analytics Workspace.
*
* @return the id value
*/
public String id() {
return this.id;
}

/**
* Set azure Resource Manager identifier of the Log Analytics Workspace.
*
* @param id the id value to set
* @return the WorkspaceInfo object itself.
*/
public WorkspaceInfo withId(String id) {
this.id = id;
return this;
}

/**
* Get location of the Log Analytics workspace.
*
* @return the location value
*/
public String location() {
return this.location;
}

/**
* Set location of the Log Analytics workspace.
*
* @param location the location value to set
* @return the WorkspaceInfo object itself.
*/
public WorkspaceInfo withLocation(String location) {
this.location = location;
return this;
}

/**
* Get log Analytics workspace identifier.
*
* @return the customerId value
*/
public String customerId() {
return this.customerId;
}

/**
* Set log Analytics workspace identifier.
*
* @param customerId the customerId value to set
* @return the WorkspaceInfo object itself.
*/
public WorkspaceInfo withCustomerId(String customerId) {
this.customerId = customerId;
return this;
}

}
Loading

0 comments on commit d8674c4

Please sign in to comment.