forked from Azure/azure-sdk-for-java
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from 8cd403140e195276852a901679f8558843b95dee
Update error model
- Loading branch information
SDK Automation
committed
Feb 22, 2020
1 parent
508305d
commit 1ec1525
Showing
5 changed files
with
188 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
...01/src/main/java/com/microsoft/azure/management/resources/v2019_06_01/TenantCategory.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
/** | ||
* 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.resources.v2019_06_01; | ||
|
||
import com.fasterxml.jackson.annotation.JsonCreator; | ||
import com.fasterxml.jackson.annotation.JsonValue; | ||
|
||
/** | ||
* Defines values for TenantCategory. | ||
*/ | ||
public enum TenantCategory { | ||
/** Enum value Home. */ | ||
HOME("Home"), | ||
|
||
/** Enum value ProjectedBy. */ | ||
PROJECTED_BY("ProjectedBy"), | ||
|
||
/** Enum value ManagedBy. */ | ||
MANAGED_BY("ManagedBy"); | ||
|
||
/** The actual serialized value for a TenantCategory instance. */ | ||
private String value; | ||
|
||
TenantCategory(String value) { | ||
this.value = value; | ||
} | ||
|
||
/** | ||
* Parses a serialized value to a TenantCategory instance. | ||
* | ||
* @param value the serialized value to parse. | ||
* @return the parsed TenantCategory object, or null if unable to parse. | ||
*/ | ||
@JsonCreator | ||
public static TenantCategory fromString(String value) { | ||
TenantCategory[] items = TenantCategory.values(); | ||
for (TenantCategory item : items) { | ||
if (item.toString().equalsIgnoreCase(value)) { | ||
return item; | ||
} | ||
} | ||
return null; | ||
} | ||
|
||
@JsonValue | ||
@Override | ||
public String toString() { | ||
return this.value; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters