Skip to content

Commit 217444c

Browse files
authored
Generated from 7168a53201579dfb220af64389495a2e83d6f5ef (#186)
Add suppressions for linting errors. Approved by Gaurav
1 parent e9b6d3f commit 217444c

21 files changed

+1650
-207
lines changed
Lines changed: 180 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,180 @@
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.notificationhubs;
10+
11+
import java.util.Map;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
14+
/**
15+
* Parameters supplied to the Check Name Availability for Namespace and
16+
* NotificationHubs.
17+
*/
18+
public class CheckAvailabilityParameters {
19+
/**
20+
* Resource Id.
21+
*/
22+
@JsonProperty(value = "id", access = JsonProperty.Access.WRITE_ONLY)
23+
private String id;
24+
25+
/**
26+
* Resource name.
27+
*/
28+
@JsonProperty(value = "name", required = true)
29+
private String name;
30+
31+
/**
32+
* Resource type.
33+
*/
34+
@JsonProperty(value = "type", access = JsonProperty.Access.WRITE_ONLY)
35+
private String type;
36+
37+
/**
38+
* Resource location.
39+
*/
40+
@JsonProperty(value = "location", required = true)
41+
private String location;
42+
43+
/**
44+
* Resource tags.
45+
*/
46+
@JsonProperty(value = "tags")
47+
private Map<String, String> tags;
48+
49+
/**
50+
* The sku of the created namespace.
51+
*/
52+
@JsonProperty(value = "sku")
53+
private Sku sku;
54+
55+
/**
56+
* True if the name is available and can be used to create new
57+
* Namespace/NotificationHub. Otherwise false.
58+
*/
59+
@JsonProperty(value = "isAvailiable")
60+
private Boolean isAvailiable;
61+
62+
/**
63+
* Get the id value.
64+
*
65+
* @return the id value
66+
*/
67+
public String id() {
68+
return this.id;
69+
}
70+
71+
/**
72+
* Get the name value.
73+
*
74+
* @return the name value
75+
*/
76+
public String name() {
77+
return this.name;
78+
}
79+
80+
/**
81+
* Set the name value.
82+
*
83+
* @param name the name value to set
84+
* @return the CheckAvailabilityParameters object itself.
85+
*/
86+
public CheckAvailabilityParameters withName(String name) {
87+
this.name = name;
88+
return this;
89+
}
90+
91+
/**
92+
* Get the type value.
93+
*
94+
* @return the type value
95+
*/
96+
public String type() {
97+
return this.type;
98+
}
99+
100+
/**
101+
* Get the location value.
102+
*
103+
* @return the location value
104+
*/
105+
public String location() {
106+
return this.location;
107+
}
108+
109+
/**
110+
* Set the location value.
111+
*
112+
* @param location the location value to set
113+
* @return the CheckAvailabilityParameters object itself.
114+
*/
115+
public CheckAvailabilityParameters withLocation(String location) {
116+
this.location = location;
117+
return this;
118+
}
119+
120+
/**
121+
* Get the tags value.
122+
*
123+
* @return the tags value
124+
*/
125+
public Map<String, String> tags() {
126+
return this.tags;
127+
}
128+
129+
/**
130+
* Set the tags value.
131+
*
132+
* @param tags the tags value to set
133+
* @return the CheckAvailabilityParameters object itself.
134+
*/
135+
public CheckAvailabilityParameters withTags(Map<String, String> tags) {
136+
this.tags = tags;
137+
return this;
138+
}
139+
140+
/**
141+
* Get the sku value.
142+
*
143+
* @return the sku value
144+
*/
145+
public Sku sku() {
146+
return this.sku;
147+
}
148+
149+
/**
150+
* Set the sku value.
151+
*
152+
* @param sku the sku value to set
153+
* @return the CheckAvailabilityParameters object itself.
154+
*/
155+
public CheckAvailabilityParameters withSku(Sku sku) {
156+
this.sku = sku;
157+
return this;
158+
}
159+
160+
/**
161+
* Get the isAvailiable value.
162+
*
163+
* @return the isAvailiable value
164+
*/
165+
public Boolean isAvailiable() {
166+
return this.isAvailiable;
167+
}
168+
169+
/**
170+
* Set the isAvailiable value.
171+
*
172+
* @param isAvailiable the isAvailiable value to set
173+
* @return the CheckAvailabilityParameters object itself.
174+
*/
175+
public CheckAvailabilityParameters withIsAvailiable(Boolean isAvailiable) {
176+
this.isAvailiable = isAvailiable;
177+
return this;
178+
}
179+
180+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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.notificationhubs;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* Error reponse indicates NotificationHubs service is not able to process the
15+
* incoming request. The reason is provided in the error message.
16+
*/
17+
public class ErrorResponse {
18+
/**
19+
* Error code.
20+
*/
21+
@JsonProperty(value = "code")
22+
private String code;
23+
24+
/**
25+
* Error message indicating why the operation failed.
26+
*/
27+
@JsonProperty(value = "message")
28+
private String message;
29+
30+
/**
31+
* Get the code value.
32+
*
33+
* @return the code value
34+
*/
35+
public String code() {
36+
return this.code;
37+
}
38+
39+
/**
40+
* Set the code value.
41+
*
42+
* @param code the code value to set
43+
* @return the ErrorResponse object itself.
44+
*/
45+
public ErrorResponse withCode(String code) {
46+
this.code = code;
47+
return this;
48+
}
49+
50+
/**
51+
* Get the message value.
52+
*
53+
* @return the message value
54+
*/
55+
public String message() {
56+
return this.message;
57+
}
58+
59+
/**
60+
* Set the message value.
61+
*
62+
* @param message the message value to set
63+
* @return the ErrorResponse object itself.
64+
*/
65+
public ErrorResponse withMessage(String message) {
66+
this.message = message;
67+
return this;
68+
}
69+
70+
}
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.notificationhubs;
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 ErrorResponse information.
17+
*/
18+
public class ErrorResponseException extends RestException {
19+
/**
20+
* Initializes a new instance of the ErrorResponseException 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 ErrorResponseException(final String message, final Response<ResponseBody> response) {
26+
super(message, response);
27+
}
28+
29+
/**
30+
* Initializes a new instance of the ErrorResponseException 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 ErrorResponseException(final String message, final Response<ResponseBody> response, final ErrorResponse body) {
37+
super(message, response, body);
38+
}
39+
40+
@Override
41+
public ErrorResponse body() {
42+
return (ErrorResponse) super.body();
43+
}
44+
}
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
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.notificationhubs;
10+
11+
import java.util.Map;
12+
import com.fasterxml.jackson.annotation.JsonProperty;
13+
14+
/**
15+
* Parameters supplied to the Patch Namespace operation.
16+
*/
17+
public class NamespacePatchParameters {
18+
/**
19+
* Resource tags.
20+
*/
21+
@JsonProperty(value = "tags")
22+
private Map<String, String> tags;
23+
24+
/**
25+
* The sku of the created namespace.
26+
*/
27+
@JsonProperty(value = "sku")
28+
private Sku sku;
29+
30+
/**
31+
* Get the tags value.
32+
*
33+
* @return the tags value
34+
*/
35+
public Map<String, String> tags() {
36+
return this.tags;
37+
}
38+
39+
/**
40+
* Set the tags value.
41+
*
42+
* @param tags the tags value to set
43+
* @return the NamespacePatchParameters object itself.
44+
*/
45+
public NamespacePatchParameters withTags(Map<String, String> tags) {
46+
this.tags = tags;
47+
return this;
48+
}
49+
50+
/**
51+
* Get the sku value.
52+
*
53+
* @return the sku value
54+
*/
55+
public Sku sku() {
56+
return this.sku;
57+
}
58+
59+
/**
60+
* Set the sku value.
61+
*
62+
* @param sku the sku value to set
63+
* @return the NamespacePatchParameters object itself.
64+
*/
65+
public NamespacePatchParameters withSku(Sku sku) {
66+
this.sku = sku;
67+
return this;
68+
}
69+
70+
}

0 commit comments

Comments
 (0)