Skip to content

Commit

Permalink
mgmt, regen appplatform (Azure#15306)
Browse files Browse the repository at this point in the history
* regen appplatform

* add comments

* add missing file
  • Loading branch information
weidongxu-microsoft authored Sep 17, 2020
1 parent 60097ca commit b5c2a44
Show file tree
Hide file tree
Showing 4 changed files with 45 additions and 41 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.appplatform.models;

import com.azure.core.util.ExpandableStringEnum;
import com.fasterxml.jackson.annotation.JsonCreator;
import java.util.Collection;

/** Defines values for SupportedRuntimeValue. */
public final class SupportedRuntimeValue extends ExpandableStringEnum<SupportedRuntimeValue> {
/** Static value Java_8 for SupportedRuntimeValue. */
public static final SupportedRuntimeValue JAVA_8 = fromString("Java_8");

/** Static value Java_11 for SupportedRuntimeValue. */
public static final SupportedRuntimeValue JAVA_11 = fromString("Java_11");

/** Static value NetCore_31 for SupportedRuntimeValue. */
public static final SupportedRuntimeValue NET_CORE_31 = fromString("NetCore_31");

/**
* Creates or finds a SupportedRuntimeValue from its string representation.
*
* @param name a name to look for.
* @return the corresponding SupportedRuntimeValue.
*/
@JsonCreator
public static SupportedRuntimeValue fromString(String name) {
return fromString(name, SupportedRuntimeValue.class);
}

/** @return known SupportedRuntimeValue values. */
public static Collection<SupportedRuntimeValue> values() {
return values(SupportedRuntimeValue.class);
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public final class SupportedRuntimeVersion {
* The raw value which could be passed to deployment CRUD operations.
*/
@JsonProperty(value = "value")
private SupportedRuntimeVersionEnum value;
private SupportedRuntimeValue value;

/*
* The platform of this runtime version (possible values: "Java" or
Expand All @@ -38,7 +38,7 @@ public final class SupportedRuntimeVersion {
*
* @return the value value.
*/
public SupportedRuntimeVersionEnum value() {
public SupportedRuntimeValue value() {
return this.value;
}

Expand All @@ -48,7 +48,7 @@ public SupportedRuntimeVersionEnum value() {
* @param value the value value to set.
* @return the SupportedRuntimeVersion object itself.
*/
public SupportedRuntimeVersion withValue(SupportedRuntimeVersionEnum value) {
public SupportedRuntimeVersion withValue(SupportedRuntimeValue value) {
this.value = value;
return this;
}
Expand Down

This file was deleted.

6 changes: 5 additions & 1 deletion sdk/resourcemanager/gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -122,11 +122,15 @@ function codegen(project, cb) {

const regenManager = args['regenerate-manager'] ? ' --regenerate-manager ' : '';

// use following option in api-specs.json, if modelerfour reports PreCheck error (current seems occur to containerinstance, sql).
//--pipeline.modelerfour.additional-checks=false
//--pipeline.modelerfour.lenient-model-deduplication=true

const outDir = path.resolve(mappings[project].dir);
cmd = autoRestExe + ' ' + readmeFile +
' --java ' +
' --azure-arm ' +
' --track1-naming --implementation-subpackage=fluent --sync-methods=all --required-parameter-client-methods --add-context-parameter --context-client-method-parameter --client-side-validations --client-logger ' +
' --track1-naming --sync-methods=all --required-parameter-client-methods --add-context-parameter --context-client-method-parameter --client-side-validations --client-logger ' +
generator +
` --java.namespace=${mappings[project].package} ` +
` --java.output-folder=${outDir} ` +
Expand Down

0 comments on commit b5c2a44

Please sign in to comment.