Skip to content

Commit 4a5540c

Browse files
committed
Move code around.
1 parent 81045cd commit 4a5540c

File tree

2 files changed

+11
-16
lines changed

2 files changed

+11
-16
lines changed

src/common/options.ts

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,6 @@
1919
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
22-
import { ManifestEndpoint } from "../runtime/manifest";
23-
2422
/**
2523
* Special configuration type to reset configuration to platform default.
2624
*
@@ -48,16 +46,3 @@ export const RESET_VALUE = ResetValue.getInstance();
4846
export type ResettableKeys<T> = Required<{
4947
[K in keyof T as [ResetValue] extends [T[K]] ? K : never]: null;
5048
}>;
51-
52-
/**
53-
* @internal
54-
*/
55-
export const RESETTABLE_OPTIONS: ResettableKeys<ManifestEndpoint> = {
56-
availableMemoryMb: null,
57-
timeoutSeconds: null,
58-
minInstances: null,
59-
maxInstances: null,
60-
ingressSettings: null,
61-
concurrency: null,
62-
serviceAccountEmail: null,
63-
};

src/runtime/manifest.ts

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
// SOFTWARE.
2222

23-
import { RESET_VALUE, RESETTABLE_OPTIONS, ResettableKeys, ResetValue } from "../common/options";
23+
import { RESET_VALUE, ResettableKeys, ResetValue } from "../common/options";
2424
import { Expression } from "../params";
2525
import { WireParamSpec } from "../params/types";
2626

@@ -138,6 +138,16 @@ export function stackToWire(stack: ManifestStack): Record<string, unknown> {
138138
return wireStack;
139139
}
140140

141+
const RESETTABLE_OPTIONS: ResettableKeys<ManifestEndpoint> = {
142+
availableMemoryMb: null,
143+
timeoutSeconds: null,
144+
minInstances: null,
145+
maxInstances: null,
146+
ingressSettings: null,
147+
concurrency: null,
148+
serviceAccountEmail: null,
149+
};
150+
141151
/**
142152
* @internal
143153
*/

0 commit comments

Comments
 (0)