Skip to content

Commit d8674c4

Browse files
authored
Generated from 9771d96d4a2f4caa435cd59ae81736e910b8ee89 (#2826)
Update Python version
1 parent 48e59cb commit d8674c4

File tree

10 files changed

+665
-0
lines changed

10 files changed

+665
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.monitor;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* Information about a container with data for a given resource.
15+
*/
16+
public class DataContainer {
17+
/**
18+
* Log Analytics workspace information.
19+
*/
20+
@JsonProperty(value = "workspace", required = true)
21+
private WorkspaceInfo workspace;
22+
23+
/**
24+
* Get log Analytics workspace information.
25+
*
26+
* @return the workspace value
27+
*/
28+
public WorkspaceInfo workspace() {
29+
return this.workspace;
30+
}
31+
32+
/**
33+
* Set log Analytics workspace information.
34+
*
35+
* @param workspace the workspace value to set
36+
* @return the DataContainer object itself.
37+
*/
38+
public DataContainer withWorkspace(WorkspaceInfo workspace) {
39+
this.workspace = workspace;
40+
return this;
41+
}
42+
43+
}
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.monitor;
10+
11+
import java.util.Collection;
12+
import com.fasterxml.jackson.annotation.JsonCreator;
13+
import com.microsoft.rest.ExpandableStringEnum;
14+
15+
/**
16+
* Defines values for DataStatus.
17+
*/
18+
public final class DataStatus extends ExpandableStringEnum<DataStatus> {
19+
/** Static value present for DataStatus. */
20+
public static final DataStatus PRESENT = fromString("present");
21+
22+
/** Static value notPresent for DataStatus. */
23+
public static final DataStatus NOT_PRESENT = fromString("notPresent");
24+
25+
/**
26+
* Creates or finds a DataStatus from its string representation.
27+
* @param name a name to look for
28+
* @return the corresponding DataStatus
29+
*/
30+
@JsonCreator
31+
public static DataStatus fromString(String name) {
32+
return fromString(name, DataStatus.class);
33+
}
34+
35+
/**
36+
* @return known DataStatus values
37+
*/
38+
public static Collection<DataStatus> values() {
39+
return values(DataStatus.class);
40+
}
41+
}
Lines changed: 69 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.monitor;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* Error details.
15+
*/
16+
public class Error {
17+
/**
18+
* Error code identifying the specific error.
19+
*/
20+
@JsonProperty(value = "code", required = true)
21+
private String code;
22+
23+
/**
24+
* Error message in the caller's locale.
25+
*/
26+
@JsonProperty(value = "message")
27+
private String message;
28+
29+
/**
30+
* Get error code identifying the specific error.
31+
*
32+
* @return the code value
33+
*/
34+
public String code() {
35+
return this.code;
36+
}
37+
38+
/**
39+
* Set error code identifying the specific error.
40+
*
41+
* @param code the code value to set
42+
* @return the Error object itself.
43+
*/
44+
public Error withCode(String code) {
45+
this.code = code;
46+
return this;
47+
}
48+
49+
/**
50+
* Get error message in the caller's locale.
51+
*
52+
* @return the message value
53+
*/
54+
public String message() {
55+
return this.message;
56+
}
57+
58+
/**
59+
* Set error message in the caller's locale.
60+
*
61+
* @param message the message value to set
62+
* @return the Error object itself.
63+
*/
64+
public Error withMessage(String message) {
65+
this.message = message;
66+
return this;
67+
}
68+
69+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.monitor;
10+
11+
import java.util.Collection;
12+
import com.fasterxml.jackson.annotation.JsonCreator;
13+
import com.microsoft.rest.ExpandableStringEnum;
14+
15+
/**
16+
* Defines values for OnboardingStatus.
17+
*/
18+
public final class OnboardingStatus extends ExpandableStringEnum<OnboardingStatus> {
19+
/** Static value onboarded for OnboardingStatus. */
20+
public static final OnboardingStatus ONBOARDED = fromString("onboarded");
21+
22+
/** Static value notOnboarded for OnboardingStatus. */
23+
public static final OnboardingStatus NOT_ONBOARDED = fromString("notOnboarded");
24+
25+
/** Static value unknown for OnboardingStatus. */
26+
public static final OnboardingStatus UNKNOWN = fromString("unknown");
27+
28+
/**
29+
* Creates or finds a OnboardingStatus from its string representation.
30+
* @param name a name to look for
31+
* @return the corresponding OnboardingStatus
32+
*/
33+
@JsonCreator
34+
public static OnboardingStatus fromString(String name) {
35+
return fromString(name, OnboardingStatus.class);
36+
}
37+
38+
/**
39+
* @return known OnboardingStatus values
40+
*/
41+
public static Collection<OnboardingStatus> values() {
42+
return values(OnboardingStatus.class);
43+
}
44+
}
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.monitor;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* An error response from the API.
15+
*/
16+
public class ResponseWithError {
17+
/**
18+
* Error information.
19+
*/
20+
@JsonProperty(value = "error", required = true)
21+
private Error error;
22+
23+
/**
24+
* Get error information.
25+
*
26+
* @return the error value
27+
*/
28+
public Error error() {
29+
return this.error;
30+
}
31+
32+
/**
33+
* Set error information.
34+
*
35+
* @param error the error value to set
36+
* @return the ResponseWithError object itself.
37+
*/
38+
public ResponseWithError withError(Error error) {
39+
this.error = error;
40+
return this;
41+
}
42+
43+
}
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.monitor;
10+
11+
import com.microsoft.rest.RestException;
12+
import okhttp3.ResponseBody;
13+
import retrofit2.Response;
14+
15+
/**
16+
* Exception thrown for an invalid response with ResponseWithError information.
17+
*/
18+
public class ResponseWithErrorException extends RestException {
19+
/**
20+
* Initializes a new instance of the ResponseWithErrorException class.
21+
*
22+
* @param message the exception message or the response content if a message is not available
23+
* @param response the HTTP response
24+
*/
25+
public ResponseWithErrorException(final String message, final Response<ResponseBody> response) {
26+
super(message, response);
27+
}
28+
29+
/**
30+
* Initializes a new instance of the ResponseWithErrorException class.
31+
*
32+
* @param message the exception message or the response content if a message is not available
33+
* @param response the HTTP response
34+
* @param body the deserialized response body
35+
*/
36+
public ResponseWithErrorException(final String message, final Response<ResponseBody> response, final ResponseWithError body) {
37+
super(message, response, body);
38+
}
39+
40+
@Override
41+
public ResponseWithError body() {
42+
return (ResponseWithError) super.body();
43+
}
44+
}
Lines changed: 97 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,97 @@
1+
/**
2+
* Copyright (c) Microsoft Corporation. All rights reserved.
3+
* Licensed under the MIT License. See License.txt in the project root for
4+
* license information.
5+
*
6+
* Code generated by Microsoft (R) AutoRest Code Generator.
7+
*/
8+
9+
package com.microsoft.azure.management.monitor;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
import com.microsoft.rest.serializer.JsonFlatten;
13+
14+
/**
15+
* Information about a Log Analytics Workspace.
16+
*/
17+
@JsonFlatten
18+
public class WorkspaceInfo {
19+
/**
20+
* Azure Resource Manager identifier of the Log Analytics Workspace.
21+
*/
22+
@JsonProperty(value = "id", required = true)
23+
private String id;
24+
25+
/**
26+
* Location of the Log Analytics workspace.
27+
*/
28+
@JsonProperty(value = "location", required = true)
29+
private String location;
30+
31+
/**
32+
* Log Analytics workspace identifier.
33+
*/
34+
@JsonProperty(value = "properties.customerId", required = true)
35+
private String customerId;
36+
37+
/**
38+
* Get azure Resource Manager identifier of the Log Analytics Workspace.
39+
*
40+
* @return the id value
41+
*/
42+
public String id() {
43+
return this.id;
44+
}
45+
46+
/**
47+
* Set azure Resource Manager identifier of the Log Analytics Workspace.
48+
*
49+
* @param id the id value to set
50+
* @return the WorkspaceInfo object itself.
51+
*/
52+
public WorkspaceInfo withId(String id) {
53+
this.id = id;
54+
return this;
55+
}
56+
57+
/**
58+
* Get location of the Log Analytics workspace.
59+
*
60+
* @return the location value
61+
*/
62+
public String location() {
63+
return this.location;
64+
}
65+
66+
/**
67+
* Set location of the Log Analytics workspace.
68+
*
69+
* @param location the location value to set
70+
* @return the WorkspaceInfo object itself.
71+
*/
72+
public WorkspaceInfo withLocation(String location) {
73+
this.location = location;
74+
return this;
75+
}
76+
77+
/**
78+
* Get log Analytics workspace identifier.
79+
*
80+
* @return the customerId value
81+
*/
82+
public String customerId() {
83+
return this.customerId;
84+
}
85+
86+
/**
87+
* Set log Analytics workspace identifier.
88+
*
89+
* @param customerId the customerId value to set
90+
* @return the WorkspaceInfo object itself.
91+
*/
92+
public WorkspaceInfo withCustomerId(String customerId) {
93+
this.customerId = customerId;
94+
return this;
95+
}
96+
97+
}

0 commit comments

Comments
 (0)