Skip to content

Commit 787775f

Browse files
authored
Generated from f54b36deb73654dd59a4d4b3571371268b1414ae (#2231)
BugFix: defaultSinkRefs is an array of string
1 parent 498ba0b commit 787775f

File tree

54 files changed

+8498
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

54 files changed

+8498
-0
lines changed
Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,204 @@
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.servicefabricmesh;
10+
11+
import java.util.List;
12+
import com.microsoft.azure.management.servicefabricmesh.implementation.ServiceResourceDescriptionInner;
13+
import com.fasterxml.jackson.annotation.JsonProperty;
14+
15+
/**
16+
* This type describes properties of an application resource.
17+
*/
18+
public class ApplicationProperties {
19+
/**
20+
* User readable description of the application.
21+
*/
22+
@JsonProperty(value = "description")
23+
private String description;
24+
25+
/**
26+
* Internal use.
27+
*/
28+
@JsonProperty(value = "debugParams")
29+
private String debugParams;
30+
31+
/**
32+
* describes the services in the application.
33+
*/
34+
@JsonProperty(value = "services")
35+
private List<ServiceResourceDescriptionInner> services;
36+
37+
/**
38+
* Describes the health state of an application resource. Possible values
39+
* include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'.
40+
*/
41+
@JsonProperty(value = "healthState", access = JsonProperty.Access.WRITE_ONLY)
42+
private HealthState healthState;
43+
44+
/**
45+
* When the application's health state is not 'Ok', this additional details
46+
* from service fabric Health Manager for the user to know why the
47+
* application is marked unhealthy.
48+
*/
49+
@JsonProperty(value = "unhealthyEvaluation", access = JsonProperty.Access.WRITE_ONLY)
50+
private String unhealthyEvaluation;
51+
52+
/**
53+
* Status of the application resource. Possible values include: 'Invalid',
54+
* 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'.
55+
*/
56+
@JsonProperty(value = "status", access = JsonProperty.Access.WRITE_ONLY)
57+
private ApplicationResourceStatus status;
58+
59+
/**
60+
* Gives additional information about the current status of the application
61+
* deployment.
62+
*/
63+
@JsonProperty(value = "statusDetails", access = JsonProperty.Access.WRITE_ONLY)
64+
private String statusDetails;
65+
66+
/**
67+
* Names of the services in the application.
68+
*/
69+
@JsonProperty(value = "serviceNames", access = JsonProperty.Access.WRITE_ONLY)
70+
private List<String> serviceNames;
71+
72+
/**
73+
* Describes the diagnostics definition and usage for an application
74+
* resource.
75+
*/
76+
@JsonProperty(value = "diagnostics")
77+
private DiagnosticsDescription diagnostics;
78+
79+
/**
80+
* Get user readable description of the application.
81+
*
82+
* @return the description value
83+
*/
84+
public String description() {
85+
return this.description;
86+
}
87+
88+
/**
89+
* Set user readable description of the application.
90+
*
91+
* @param description the description value to set
92+
* @return the ApplicationProperties object itself.
93+
*/
94+
public ApplicationProperties withDescription(String description) {
95+
this.description = description;
96+
return this;
97+
}
98+
99+
/**
100+
* Get internal use.
101+
*
102+
* @return the debugParams value
103+
*/
104+
public String debugParams() {
105+
return this.debugParams;
106+
}
107+
108+
/**
109+
* Set internal use.
110+
*
111+
* @param debugParams the debugParams value to set
112+
* @return the ApplicationProperties object itself.
113+
*/
114+
public ApplicationProperties withDebugParams(String debugParams) {
115+
this.debugParams = debugParams;
116+
return this;
117+
}
118+
119+
/**
120+
* Get describes the services in the application.
121+
*
122+
* @return the services value
123+
*/
124+
public List<ServiceResourceDescriptionInner> services() {
125+
return this.services;
126+
}
127+
128+
/**
129+
* Set describes the services in the application.
130+
*
131+
* @param services the services value to set
132+
* @return the ApplicationProperties object itself.
133+
*/
134+
public ApplicationProperties withServices(List<ServiceResourceDescriptionInner> services) {
135+
this.services = services;
136+
return this;
137+
}
138+
139+
/**
140+
* Get describes the health state of an application resource. Possible values include: 'Invalid', 'Ok', 'Warning', 'Error', 'Unknown'.
141+
*
142+
* @return the healthState value
143+
*/
144+
public HealthState healthState() {
145+
return this.healthState;
146+
}
147+
148+
/**
149+
* Get when the application's health state is not 'Ok', this additional details from service fabric Health Manager for the user to know why the application is marked unhealthy.
150+
*
151+
* @return the unhealthyEvaluation value
152+
*/
153+
public String unhealthyEvaluation() {
154+
return this.unhealthyEvaluation;
155+
}
156+
157+
/**
158+
* Get status of the application resource. Possible values include: 'Invalid', 'Ready', 'Upgrading', 'Creating', 'Deleting', 'Failed'.
159+
*
160+
* @return the status value
161+
*/
162+
public ApplicationResourceStatus status() {
163+
return this.status;
164+
}
165+
166+
/**
167+
* Get gives additional information about the current status of the application deployment.
168+
*
169+
* @return the statusDetails value
170+
*/
171+
public String statusDetails() {
172+
return this.statusDetails;
173+
}
174+
175+
/**
176+
* Get names of the services in the application.
177+
*
178+
* @return the serviceNames value
179+
*/
180+
public List<String> serviceNames() {
181+
return this.serviceNames;
182+
}
183+
184+
/**
185+
* Get describes the diagnostics definition and usage for an application resource.
186+
*
187+
* @return the diagnostics value
188+
*/
189+
public DiagnosticsDescription diagnostics() {
190+
return this.diagnostics;
191+
}
192+
193+
/**
194+
* Set describes the diagnostics definition and usage for an application resource.
195+
*
196+
* @param diagnostics the diagnostics value to set
197+
* @return the ApplicationProperties object itself.
198+
*/
199+
public ApplicationProperties withDiagnostics(DiagnosticsDescription diagnostics) {
200+
this.diagnostics = diagnostics;
201+
return this;
202+
}
203+
204+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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.servicefabricmesh;
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 ApplicationResourceStatus.
17+
*/
18+
public final class ApplicationResourceStatus extends ExpandableStringEnum<ApplicationResourceStatus> {
19+
/** Static value Invalid for ApplicationResourceStatus. */
20+
public static final ApplicationResourceStatus INVALID = fromString("Invalid");
21+
22+
/** Static value Ready for ApplicationResourceStatus. */
23+
public static final ApplicationResourceStatus READY = fromString("Ready");
24+
25+
/** Static value Upgrading for ApplicationResourceStatus. */
26+
public static final ApplicationResourceStatus UPGRADING = fromString("Upgrading");
27+
28+
/** Static value Creating for ApplicationResourceStatus. */
29+
public static final ApplicationResourceStatus CREATING = fromString("Creating");
30+
31+
/** Static value Deleting for ApplicationResourceStatus. */
32+
public static final ApplicationResourceStatus DELETING = fromString("Deleting");
33+
34+
/** Static value Failed for ApplicationResourceStatus. */
35+
public static final ApplicationResourceStatus FAILED = fromString("Failed");
36+
37+
/**
38+
* Creates or finds a ApplicationResourceStatus from its string representation.
39+
* @param name a name to look for
40+
* @return the corresponding ApplicationResourceStatus
41+
*/
42+
@JsonCreator
43+
public static ApplicationResourceStatus fromString(String name) {
44+
return fromString(name, ApplicationResourceStatus.class);
45+
}
46+
47+
/**
48+
* @return known ApplicationResourceStatus values
49+
*/
50+
public static Collection<ApplicationResourceStatus> values() {
51+
return values(ApplicationResourceStatus.class);
52+
}
53+
}
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
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.servicefabricmesh;
10+
11+
import com.fasterxml.jackson.annotation.JsonProperty;
12+
13+
/**
14+
* An operation available at the listed Azure resource provider.
15+
*/
16+
public class AvailableOperationDisplay {
17+
/**
18+
* Name of the operation provider.
19+
*/
20+
@JsonProperty(value = "provider")
21+
private String provider;
22+
23+
/**
24+
* Name of the resource on which the operation is available.
25+
*/
26+
@JsonProperty(value = "resource")
27+
private String resource;
28+
29+
/**
30+
* Name of the available operation.
31+
*/
32+
@JsonProperty(value = "operation")
33+
private String operation;
34+
35+
/**
36+
* Description of the available operation.
37+
*/
38+
@JsonProperty(value = "description")
39+
private String description;
40+
41+
/**
42+
* Get name of the operation provider.
43+
*
44+
* @return the provider value
45+
*/
46+
public String provider() {
47+
return this.provider;
48+
}
49+
50+
/**
51+
* Set name of the operation provider.
52+
*
53+
* @param provider the provider value to set
54+
* @return the AvailableOperationDisplay object itself.
55+
*/
56+
public AvailableOperationDisplay withProvider(String provider) {
57+
this.provider = provider;
58+
return this;
59+
}
60+
61+
/**
62+
* Get name of the resource on which the operation is available.
63+
*
64+
* @return the resource value
65+
*/
66+
public String resource() {
67+
return this.resource;
68+
}
69+
70+
/**
71+
* Set name of the resource on which the operation is available.
72+
*
73+
* @param resource the resource value to set
74+
* @return the AvailableOperationDisplay object itself.
75+
*/
76+
public AvailableOperationDisplay withResource(String resource) {
77+
this.resource = resource;
78+
return this;
79+
}
80+
81+
/**
82+
* Get name of the available operation.
83+
*
84+
* @return the operation value
85+
*/
86+
public String operation() {
87+
return this.operation;
88+
}
89+
90+
/**
91+
* Set name of the available operation.
92+
*
93+
* @param operation the operation value to set
94+
* @return the AvailableOperationDisplay object itself.
95+
*/
96+
public AvailableOperationDisplay withOperation(String operation) {
97+
this.operation = operation;
98+
return this;
99+
}
100+
101+
/**
102+
* Get description of the available operation.
103+
*
104+
* @return the description value
105+
*/
106+
public String description() {
107+
return this.description;
108+
}
109+
110+
/**
111+
* Set description of the available operation.
112+
*
113+
* @param description the description value to set
114+
* @return the AvailableOperationDisplay object itself.
115+
*/
116+
public AvailableOperationDisplay withDescription(String description) {
117+
this.description = description;
118+
return this;
119+
}
120+
121+
}

0 commit comments

Comments
 (0)