Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions sdk/resourcemanager/api-specs.json
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@
"dir": "azure-resourcemanager-resources",
"source": "specification/resources/resource-manager/readme.md",
"package": "com.azure.resourcemanager.resources",
"args": "--tag=package-features-2021-07"
"args": "--tag=package-features-2021-07 --graalvm-config-suffix=feature"
},
"features-hybrid": {
"dir": "../resourcemanagerhybrid/azure-resourcemanager-resources",
Expand All @@ -126,7 +126,7 @@
"dir": "azure-resourcemanager-authorization",
"source": "azure-resourcemanager-authorization/swagger/swagger.md",
"package": "com.azure.resourcemanager.authorization",
"args": "--tag=v1.0 --title=MicrosoftGraphClient --models-subpackage=fluent.models"
"args": "--tag=v1.0 --graalvm-config-suffix=msgraph --title=MicrosoftGraphClient --models-subpackage=fluent.models"
},
"msgraph-hybrid": {
"dir": "../resourcemanagerhybrid/azure-resourcemanager-authorization",
Expand All @@ -151,7 +151,7 @@
"dir": "azure-resourcemanager-resources",
"source": "specification/resources/resource-manager/readme.md",
"package": "com.azure.resourcemanager.resources",
"args": "--tag=package-locks-2017-04"
"args": "--tag=package-locks-2017-04 --graalvm-config-suffix=lock"
},
"locks-hybrid": {
"dir": "../resourcemanagerhybrid/azure-resourcemanager-resources",
Expand Down Expand Up @@ -188,7 +188,7 @@
"dir": "azure-resourcemanager-resources",
"source": "specification/resources/resource-manager/readme.md",
"package": "com.azure.resourcemanager.resources",
"args": "--tag=package-policy-2022-06 --rename-model=UserAssignedIdentitiesValue:IdentityUserAssignedIdentitiesValue",
"args": "--tag=package-policy-2022-06-java --graalvm-config-suffix=policy --rename-model=UserAssignedIdentitiesValue:IdentityUserAssignedIdentitiesValue",
"note": "Remove policyVariables.json and policyVariableValues.json from tag, as they are still in preview."
},
"policy-hybrid": {
Expand Down Expand Up @@ -264,7 +264,7 @@
"dir": "azure-resourcemanager-resources",
"source": "specification/resources/resource-manager/readme.md",
"package": "com.azure.resourcemanager.resources",
"args": "--tag=package-subscriptions-2022-12 --modelerfour.lenient-model-deduplication --name-for-ungrouped-operations=ResourceName --remove-operation-group=Operations"
"args": "--tag=package-subscriptions-2022-12 --graalvm-config-suffix=subscription --modelerfour.lenient-model-deduplication --name-for-ungrouped-operations=ResourceName --remove-operation-group=Operations"
},
"subscriptions-hybrid": {
"dir": "../resourcemanagerhybrid/azure-resourcemanager-resources",
Expand All @@ -288,6 +288,6 @@
"dir": "azure-resourcemanager-resources",
"source": "specification/resources/resource-manager/readme.md",
"package": "com.azure.resourcemanager.resources",
"args": "--tag=package-changes-2022-05 --rename-model=ChangeType:ResourceChangeType,PropertyChangeType:ResourcePropertyChangeType"
"args": "--tag=package-changes-2022-05 --graalvm-config-suffix=change --rename-model=ChangeType:ResourceChangeType,PropertyChangeType:ResourcePropertyChangeType"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ public final class ApplicationsExpand extends ExpandableStringEnum<ApplicationsE
/** Static value appliesTo for ApplicationsExpand. */
public static final ApplicationsExpand APPLIES_TO = fromString("appliesTo");

/**
* Creates a new instance of ApplicationsExpand value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public ApplicationsExpand() {
}

/**
* Creates or finds a ApplicationsExpand from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,15 @@ public final class ApplicationsOrderby extends ExpandableStringEnum<Applications
/** Static value targetObjects desc for ApplicationsOrderby. */
public static final ApplicationsOrderby TARGET_OBJECTS_DESC = fromString("targetObjects desc");

/**
* Creates a new instance of ApplicationsOrderby value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public ApplicationsOrderby() {
}

/**
* Creates or finds a ApplicationsOrderby from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ public final class ApplicationsSelect extends ExpandableStringEnum<ApplicationsS
/** Static value targetObjects for ApplicationsSelect. */
public static final ApplicationsSelect TARGET_OBJECTS = fromString("targetObjects");

/**
* Creates a new instance of ApplicationsSelect value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public ApplicationsSelect() {
}

/**
* Creates or finds a ApplicationsSelect from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,15 @@ public final class Get1ItemsItem extends ExpandableStringEnum<Get1ItemsItem> {
/** Static value verificationDnsRecords for Get1ItemsItem. */
public static final Get1ItemsItem VERIFICATION_DNS_RECORDS = fromString("verificationDnsRecords");

/**
* Creates a new instance of Get1ItemsItem value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public Get1ItemsItem() {
}

/**
* Creates or finds a Get1ItemsItem from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,15 @@ public final class Get2ItemsItem extends ExpandableStringEnum<Get2ItemsItem> {
/** Static value verificationDnsRecords for Get2ItemsItem. */
public static final Get2ItemsItem VERIFICATION_DNS_RECORDS = fromString("verificationDnsRecords");

/**
* Creates a new instance of Get2ItemsItem value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public Get2ItemsItem() {
}

/**
* Creates or finds a Get2ItemsItem from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ public final class Get3ItemsItem extends ExpandableStringEnum<Get3ItemsItem> {
/** Static value todo for Get3ItemsItem. */
public static final Get3ItemsItem TODO = fromString("todo");

/**
* Creates a new instance of Get3ItemsItem value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public Get3ItemsItem() {
}

/**
* Creates or finds a Get3ItemsItem from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,15 @@ public final class Get5ItemsItem extends ExpandableStringEnum<Get5ItemsItem> {
/** Static value supportedServices desc for Get5ItemsItem. */
public static final Get5ItemsItem SUPPORTED_SERVICES_DESC = fromString("supportedServices desc");

/**
* Creates a new instance of Get5ItemsItem value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public Get5ItemsItem() {
}

/**
* Creates or finds a Get5ItemsItem from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -784,6 +784,15 @@ public final class Get6ItemsItem extends ExpandableStringEnum<Get6ItemsItem> {
/** Static value verificationDnsRecords for Get6ItemsItem. */
public static final Get6ItemsItem VERIFICATION_DNS_RECORDS = fromString("verificationDnsRecords");

/**
* Creates a new instance of Get6ItemsItem value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public Get6ItemsItem() {
}

/**
* Creates or finds a Get6ItemsItem from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -562,6 +562,15 @@ public final class Get7ItemsItem extends ExpandableStringEnum<Get7ItemsItem> {
/** Static value verificationDnsRecords for Get7ItemsItem. */
public static final Get7ItemsItem VERIFICATION_DNS_RECORDS = fromString("verificationDnsRecords");

/**
* Creates a new instance of Get7ItemsItem value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public Get7ItemsItem() {
}

/**
* Creates or finds a Get7ItemsItem from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,15 @@ public final class Get8ItemsItem extends ExpandableStringEnum<Get8ItemsItem> {
/** Static value todo for Get8ItemsItem. */
public static final Get8ItemsItem TODO = fromString("todo");

/**
* Creates a new instance of Get8ItemsItem value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public Get8ItemsItem() {
}

/**
* Creates or finds a Get8ItemsItem from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,15 @@ public final class GroupsOrderby extends ExpandableStringEnum<GroupsOrderby> {
/** Static value deletedDateTime desc for GroupsOrderby. */
public static final GroupsOrderby DELETED_DATE_TIME_DESC = fromString("deletedDateTime desc");

/**
* Creates a new instance of GroupsOrderby value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public GroupsOrderby() {
}

/**
* Creates or finds a GroupsOrderby from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ public final class GroupsSelect extends ExpandableStringEnum<GroupsSelect> {
/** Static value deletedDateTime for GroupsSelect. */
public static final GroupsSelect DELETED_DATE_TIME = fromString("deletedDateTime");

/**
* Creates a new instance of GroupsSelect value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public GroupsSelect() {
}

/**
* Creates or finds a GroupsSelect from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,15 @@ public final class MicrosoftGraphActionState extends ExpandableStringEnum<Micros
/** Static value notSupported for MicrosoftGraphActionState. */
public static final MicrosoftGraphActionState NOT_SUPPORTED = fromString("notSupported");

/**
* Creates a new instance of MicrosoftGraphActionState value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public MicrosoftGraphActionState() {
}

/**
* Creates or finds a MicrosoftGraphActionState from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@
/** alternativeSecurityId. */
@Fluent
public final class MicrosoftGraphAlternativeSecurityId {
private static final byte[] EMPTY_BYTE_ARRAY = new byte[0];

/*
* For internal use only
*/
Expand Down Expand Up @@ -71,7 +73,7 @@ public MicrosoftGraphAlternativeSecurityId withIdentityProvider(String identityP
*/
public byte[] key() {
if (this.key == null) {
return new byte[0];
return EMPTY_BYTE_ARRAY;
}
return this.key.decodedBytes();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@
*/
@Fluent
public final class MicrosoftGraphApplicationInner extends MicrosoftGraphDirectoryObjectInner {
private static final byte[] EMPTY_BYTE_ARRAY = new byte[0];

/*
* Defines custom behavior that a consuming service can use to call an app in specific contexts. For example,
* applications that can render file streams may set the addIns property for its 'FileHandler' functionality. This
Expand Down Expand Up @@ -578,7 +580,7 @@ public MicrosoftGraphApplicationInner withKeyCredentials(List<MicrosoftGraphKeyC
*/
public byte[] logo() {
if (this.logo == null) {
return new byte[0];
return EMPTY_BYTE_ARRAY;
}
return this.logo.decodedBytes();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ public final class MicrosoftGraphAttachmentType extends ExpandableStringEnum<Mic
/** Static value reference for MicrosoftGraphAttachmentType. */
public static final MicrosoftGraphAttachmentType REFERENCE = fromString("reference");

/**
* Creates a new instance of MicrosoftGraphAttachmentType value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public MicrosoftGraphAttachmentType() {
}

/**
* Creates or finds a MicrosoftGraphAttachmentType from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,15 @@ public final class MicrosoftGraphAttendeeType extends ExpandableStringEnum<Micro
/** Static value resource for MicrosoftGraphAttendeeType. */
public static final MicrosoftGraphAttendeeType RESOURCE = fromString("resource");

/**
* Creates a new instance of MicrosoftGraphAttendeeType value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public MicrosoftGraphAttendeeType() {
}

/**
* Creates or finds a MicrosoftGraphAttendeeType from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,15 @@ public final class MicrosoftGraphAutomaticRepliesStatus
/** Static value scheduled for MicrosoftGraphAutomaticRepliesStatus. */
public static final MicrosoftGraphAutomaticRepliesStatus SCHEDULED = fromString("scheduled");

/**
* Creates a new instance of MicrosoftGraphAutomaticRepliesStatus value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public MicrosoftGraphAutomaticRepliesStatus() {
}

/**
* Creates or finds a MicrosoftGraphAutomaticRepliesStatus from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,15 @@ public final class MicrosoftGraphBodyType extends ExpandableStringEnum<Microsoft
/** Static value html for MicrosoftGraphBodyType. */
public static final MicrosoftGraphBodyType HTML = fromString("html");

/**
* Creates a new instance of MicrosoftGraphBodyType value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public MicrosoftGraphBodyType() {
}

/**
* Creates or finds a MicrosoftGraphBodyType from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,15 @@ public final class MicrosoftGraphCalendarColor extends ExpandableStringEnum<Micr
/** Static value maxColor for MicrosoftGraphCalendarColor. */
public static final MicrosoftGraphCalendarColor MAX_COLOR = fromString("maxColor");

/**
* Creates a new instance of MicrosoftGraphCalendarColor value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public MicrosoftGraphCalendarColor() {
}

/**
* Creates or finds a MicrosoftGraphCalendarColor from its string representation.
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,15 @@ public final class MicrosoftGraphCalendarRoleType extends ExpandableStringEnum<M
/** Static value custom for MicrosoftGraphCalendarRoleType. */
public static final MicrosoftGraphCalendarRoleType CUSTOM = fromString("custom");

/**
* Creates a new instance of MicrosoftGraphCalendarRoleType value.
*
* @deprecated Use the {@link #fromString(String)} factory method.
*/
@Deprecated
public MicrosoftGraphCalendarRoleType() {
}

/**
* Creates or finds a MicrosoftGraphCalendarRoleType from its string representation.
*
Expand Down
Loading