content stringlengths 4 1.04M | lang stringclasses 358 values | score int64 0 5 | repo_name stringlengths 5 114 | repo_path stringlengths 4 229 | repo_licenses listlengths 1 8 |
|---|---|---|---|---|---|
<mt:include widget="ウィジェット-ピックアップ-ヘッドライン"> | MTML | 0 | webbingstudio/mt_theme_echo_bootstrap | dist/themes/echo_bootstrap/templates/widgetset_contents_before_body_blog.mtml | [
"MIT"
] |
--TEST--
Only public and protected class constants should be inherited
--FILE--
<?php
class A {
public const X = 1;
protected const Y = 2;
private const Z = 3;
}
class B extends A {
static public function checkConstants() {
var_dump(self::X);
var_dump(self::Y);
var_dump(self::Z);
}
}
B::checkConstants();
?>
--EXPECTF--
int(1)
int(2)
Fatal error: Uncaught Error: Undefined constant B::Z in %s:%d
Stack trace:
#0 %s(15): B::checkConstants()
#1 {main}
thrown in %s on line 11
| PHP | 4 | NathanFreeman/php-src | tests/classes/constants_visibility_004.phpt | [
"PHP-3.01"
] |
function foo(...rest: number) { // error
var x: string = rest[0];
return x;
} | TypeScript | 3 | nilamjadhav/TypeScript | tests/cases/compiler/nonArrayRestArgs.ts | [
"Apache-2.0"
] |
<?Lassoscript
// Last modified 11/11/07 by ECL, Landmann InterActive
/*
Tagdocs;
{Tagname= LI_BuildCategorySelect }
{Description= Creates <select> list of all nodes in the Heirarchy }
{Author= Eric Landmann }
{AuthorEmail= support@iterate.ws }
{ModifiedBy= }
{ModifiedByEmail= }
{Date= 11/11/07 }
{Usage= LI_BuildCategorySelect: -Tooltip='Y'; }
{ExpectedResults= A <select> list of all heirarchy nodes }
{Dependencies= }
{DevelNotes= }
{ChangeNotes= 11/11/07 - Recoded for itPage v 3.0 }
/Tagdocs;
*/
// Define the system vars
Var:'svCTNamespace' = 'LI_';
Var:'svHeirarchyTable' = 'cms_heirarchy';
If: !(Lasso_TagExists:'LI_BuildCategorySelect');
Define_Tag: 'BuildCategorySelect',
-Namespace = $svCTNamespace,
-Required = 'Tooltip';
Local:'Result' = string;
Local:'DebugOutput' = string;
Local:'SQLSelectFullNode' = string;
#SQLSelectFullNode = '/* LI_BuildCategorySelect - Select full node */
SELECT node.id, node.name,
(COUNT(parent.name) - 1) AS depth
FROM ' $svHeirarchyTable ' AS node, ' $svHeirarchyTable ' AS parent
WHERE node.lft BETWEEN parent.lft AND parent.rgt
GROUP BY node.id
ORDER BY node.lft';
Inline: $IV_Heirarchy, -SQL=#SQLSelectFullNode, -Table=$svHeirarchyTable;
If: $svDebug == 'Y';
#DebugOutput += '<p class="debugCT">\n';
#DebugOutput += 'Found_Count = ' (Found_Count) '<br>\n';
#DebugOutput += 'Error_CurrentError = ' (Error_CurrentError) '<br>\n';
#DebugOutput += 'SQLSelectFullNode = ' (#SQLSelectFullNode) '<br>\n';
#DebugOutput += 'Records_Array = ' (Records_Array) '<br>\n';
#DebugOutput += '</p>\n';
/If;
#Result += '<select name="HeirarchyID">\n';
#Result += '\t<option value=""';
If: (Var:'vHeirarchyID') == '';
#Result += ' selected';
/If;
#Result+= '></option>\n';
Records;
If: (Field:'depth') == 0;
#Result += '\t<option value="'(Field:'ID')'" class="indent0"';
If: (Var:'vHeirarchyID') == (Field:'ID');
#Result += ' selected';
/If;
#Result+= ('>'(Field:'name')'</option>\n');
Else;
// This is a little oddular, but we are calling a style that matches the depth of the heirarchy
#Result += ('\t<option value="'(Field:'ID')'"');
If: (Var:'vHeirarchyID') == (Field:'ID');
#Result += ' selected';
/If;
#Result += '>';
// Output spaces to indicate level if not a root node
Loop: (Field:'depth');
#Result += ' ';
/Loop;
#Result += ((Field:'name')'</option>\n');
/If;
/Records;
/Inline;
#Result += '</select>\n';
// Append on the ToolTip
If: #Tooltip == 'Y';
#Result += (' <a class="jt" href="'($svToolTipsPath)'tt_heirarchyselect.html" rel="'($svToolTipsPath)'tt_heirarchyselect.html" title="How to Use the Heirarchy"><img src="'($svImagesPath)'question_16_trans.gif" width="16" height="16" alt="question icon"></a><br>\n');
/If;
// If Debug on, output debugging info
If: $svDebug == 'Y';
#DebugOutput += '<p class="debugCT"><strong>LI_BuildCategorySelect_CT</strong><br>\n';
#DebugOutput += 'Error_CurrentError = ' (Error_CurrentError) '<br>\n';
#DebugOutput += 'Custom Tag Loaded - LI_BuildCategorySelect</p>\n';
#DebugOutput += #Result;
Return: Encode_Smart:(#DebugOutput);
Else;
Return: Encode_Smart:(#Result);
/If;
/Define_Tag;
// Log tag loading
Log_Critical: 'Custom Tag Loaded - LI_BuildCategorySelect';
/If;
?>
| Lasso | 4 | fourplusone/SubEthaEdit | Documentation/ModeDevelopment/Reference Files/LassoScript-HTML/itpage/LassoStartup/LI_BuildCategorySelect.lasso | [
"MIT"
] |
maddy(1) "maddy mail server" "maddy reference documentation"
; TITLE Command line arguments
# Name
maddy - Composable all-in-one mail server.
# Synopsis
*maddy* [options...]
# Description
Maddy is Mail Transfer agent (MTA), Mail Delivery Agent (MDA), Mail Submission
Agent (MSA), IMAP server and a set of other essential protocols/schemes
necessary to run secure email server implemented in one executable.
# Command line arguments
*-h, -help*
Show help message and exit.
*-config* _path_
Path to the configuration file. Default is /etc/maddy/maddy.conf.
*-libexec* _path_
Path to the libexec directory. Helper executables will be searched here.
Default is /usr/lib/maddy.
*-log* _targets..._
Comma-separated list of logging targets. Valid values are the same as the
'log' config directive. Affects logging before configuration parsing
completes and after it, if the different value is not specified in the
configuration.
*-debug*
Enable debug log. You want to use it when reporting bugs.
*-v*
Print version & build metadata.
| SuperCollider | 3 | plq/maddy | docs/man/maddy.1.scd | [
"MIT"
] |
# Copyright 2021 The TensorFlow Authors. All Rights Reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
# Lint as: python3
"""Tests for nn_blocks."""
from typing import Any, Iterable, Tuple
# Import libraries
from absl.testing import parameterized
import tensorflow as tf
from tensorflow.python.distribute import combinations
from tensorflow.python.distribute import strategy_combinations
from official.vision.beta.modeling.layers import nn_blocks
def distribution_strategy_combinations() -> Iterable[Tuple[Any, ...]]:
"""Returns the combinations of end-to-end tests to run."""
return combinations.combine(
distribution=[
strategy_combinations.default_strategy,
strategy_combinations.cloud_tpu_strategy,
strategy_combinations.one_device_strategy_gpu,
],
)
class NNBlocksTest(parameterized.TestCase, tf.test.TestCase):
@parameterized.parameters(
(nn_blocks.ResidualBlock, 1, False, 0.0, None),
(nn_blocks.ResidualBlock, 2, True, 0.2, 0.25),
)
def test_residual_block_creation(self, block_fn, strides, use_projection,
stochastic_depth_drop_rate, se_ratio):
input_size = 128
filter_size = 256
inputs = tf.keras.Input(
shape=(input_size, input_size, filter_size), batch_size=1)
block = block_fn(
filter_size,
strides,
use_projection=use_projection,
se_ratio=se_ratio,
stochastic_depth_drop_rate=stochastic_depth_drop_rate,
)
features = block(inputs)
self.assertAllEqual(
[1, input_size // strides, input_size // strides, filter_size],
features.shape.as_list())
@parameterized.parameters(
(nn_blocks.BottleneckBlock, 1, False, 0.0, None),
(nn_blocks.BottleneckBlock, 2, True, 0.2, 0.25),
)
def test_bottleneck_block_creation(self, block_fn, strides, use_projection,
stochastic_depth_drop_rate, se_ratio):
input_size = 128
filter_size = 256
inputs = tf.keras.Input(
shape=(input_size, input_size, filter_size * 4), batch_size=1)
block = block_fn(
filter_size,
strides,
use_projection=use_projection,
se_ratio=se_ratio,
stochastic_depth_drop_rate=stochastic_depth_drop_rate)
features = block(inputs)
self.assertAllEqual(
[1, input_size // strides, input_size // strides, filter_size * 4],
features.shape.as_list())
@parameterized.parameters(
(nn_blocks.InvertedBottleneckBlock, 1, 1, None, None),
(nn_blocks.InvertedBottleneckBlock, 6, 1, None, None),
(nn_blocks.InvertedBottleneckBlock, 1, 2, None, None),
(nn_blocks.InvertedBottleneckBlock, 1, 1, 0.2, None),
(nn_blocks.InvertedBottleneckBlock, 1, 1, None, 0.2),
)
def test_invertedbottleneck_block_creation(
self, block_fn, expand_ratio, strides, se_ratio,
stochastic_depth_drop_rate):
input_size = 128
in_filters = 24
out_filters = 40
inputs = tf.keras.Input(
shape=(input_size, input_size, in_filters), batch_size=1)
block = block_fn(
in_filters=in_filters,
out_filters=out_filters,
expand_ratio=expand_ratio,
strides=strides,
se_ratio=se_ratio,
stochastic_depth_drop_rate=stochastic_depth_drop_rate)
features = block(inputs)
self.assertAllEqual(
[1, input_size // strides, input_size // strides, out_filters],
features.shape.as_list())
class ResidualInnerTest(parameterized.TestCase, tf.test.TestCase):
@combinations.generate(distribution_strategy_combinations())
def test_shape(self, distribution):
bsz, h, w, c = 8, 32, 32, 32
filters = 64
strides = 2
input_tensor = tf.random.uniform(shape=[bsz, h, w, c])
with distribution.scope():
test_layer = nn_blocks.ResidualInner(filters, strides)
output = test_layer(input_tensor)
expected_output_shape = [bsz, h // strides, w // strides, filters]
self.assertEqual(expected_output_shape, output.shape.as_list())
class BottleneckResidualInnerTest(parameterized.TestCase, tf.test.TestCase):
@combinations.generate(distribution_strategy_combinations())
def test_shape(self, distribution):
bsz, h, w, c = 8, 32, 32, 32
filters = 64
strides = 2
input_tensor = tf.random.uniform(shape=[bsz, h, w, c])
with distribution.scope():
test_layer = nn_blocks.BottleneckResidualInner(filters, strides)
output = test_layer(input_tensor)
expected_output_shape = [bsz, h // strides, w // strides, filters * 4]
self.assertEqual(expected_output_shape, output.shape.as_list())
class ReversibleLayerTest(parameterized.TestCase, tf.test.TestCase):
@combinations.generate(distribution_strategy_combinations())
def test_downsampling_non_reversible_step(self, distribution):
bsz, h, w, c = 8, 32, 32, 32
filters = 64
strides = 2
input_tensor = tf.random.uniform(shape=[bsz, h, w, c])
with distribution.scope():
f = nn_blocks.ResidualInner(
filters=filters // 2,
strides=strides,
batch_norm_first=True)
g = nn_blocks.ResidualInner(
filters=filters // 2,
strides=1,
batch_norm_first=True)
test_layer = nn_blocks.ReversibleLayer(f, g)
test_layer.build(input_tensor.shape)
optimizer = tf.keras.optimizers.SGD(learning_rate=0.01)
@tf.function
def step_fn():
with tf.GradientTape() as tape:
output = test_layer(input_tensor, training=True)
grads = tape.gradient(output, test_layer.trainable_variables)
# Test applying gradients with optimizer works
optimizer.apply_gradients(zip(grads, test_layer.trainable_variables))
return output
replica_output = distribution.run(step_fn)
outputs = distribution.experimental_local_results(replica_output)
# Assert forward pass shape
expected_output_shape = [bsz, h // strides, w // strides, filters]
for output in outputs:
self.assertEqual(expected_output_shape, output.shape.as_list())
@combinations.generate(distribution_strategy_combinations())
def test_reversible_step(self, distribution):
# Reversible layers satisfy: (a) strides = 1 (b) in_filter = out_filter
bsz, h, w, c = 8, 32, 32, 32
filters = c
strides = 1
input_tensor = tf.random.uniform(shape=[bsz, h, w, c])
with distribution.scope():
f = nn_blocks.ResidualInner(
filters=filters // 2,
strides=strides,
batch_norm_first=False)
g = nn_blocks.ResidualInner(
filters=filters // 2,
strides=1,
batch_norm_first=False)
test_layer = nn_blocks.ReversibleLayer(f, g)
test_layer(input_tensor, training=False) # init weights
optimizer = tf.keras.optimizers.SGD(learning_rate=0.01)
@tf.function
def step_fn():
with tf.GradientTape() as tape:
output = test_layer(input_tensor, training=True)
grads = tape.gradient(output, test_layer.trainable_variables)
# Test applying gradients with optimizer works
optimizer.apply_gradients(zip(grads, test_layer.trainable_variables))
return output
@tf.function
def fwd():
test_layer(input_tensor)
distribution.run(fwd) # Initialize variables
prev_variables = tf.identity_n(test_layer.trainable_variables)
replica_output = distribution.run(step_fn)
outputs = distribution.experimental_local_results(replica_output)
# Assert variables values have changed values
for v0, v1 in zip(prev_variables, test_layer.trainable_variables):
self.assertNotAllEqual(v0, v1)
# Assert forward pass shape
expected_output_shape = [bsz, h // strides, w // strides, filters]
for output in outputs:
self.assertEqual(expected_output_shape, output.shape.as_list())
@combinations.generate(distribution_strategy_combinations())
def test_manual_gradients_correctness(self, distribution):
bsz, h, w, c = 8, 32, 32, 32
filters = c
strides = 1
input_tensor = tf.random.uniform(shape=[bsz, h, w, c * 4]) # bottleneck
with distribution.scope():
f_manual = nn_blocks.BottleneckResidualInner(
filters=filters // 2,
strides=strides,
batch_norm_first=False)
g_manual = nn_blocks.BottleneckResidualInner(
filters=filters // 2,
strides=1,
batch_norm_first=False)
manual_grad_layer = nn_blocks.ReversibleLayer(f_manual, g_manual)
manual_grad_layer(input_tensor, training=False) # init weights
f_auto = nn_blocks.BottleneckResidualInner(
filters=filters // 2,
strides=strides,
batch_norm_first=False)
g_auto = nn_blocks.BottleneckResidualInner(
filters=filters // 2,
strides=1,
batch_norm_first=False)
auto_grad_layer = nn_blocks.ReversibleLayer(
f_auto, g_auto, manual_grads=False)
auto_grad_layer(input_tensor) # init weights
# Clone all weights (tf.keras.layers.Layer has no .clone())
auto_grad_layer._f.set_weights(manual_grad_layer._f.get_weights())
auto_grad_layer._g.set_weights(manual_grad_layer._g.get_weights())
@tf.function
def manual_fn():
with tf.GradientTape() as tape:
output = manual_grad_layer(input_tensor, training=True)
grads = tape.gradient(output, manual_grad_layer.trainable_variables)
return grads
@tf.function
def auto_fn():
with tf.GradientTape() as tape:
output = auto_grad_layer(input_tensor, training=True)
grads = tape.gradient(output, auto_grad_layer.trainable_variables)
return grads
manual_grads = distribution.run(manual_fn)
auto_grads = distribution.run(auto_fn)
# Assert gradients calculated manually are close to that from autograd
for manual_grad, auto_grad in zip(manual_grads, auto_grads):
self.assertAllClose(
distribution.experimental_local_results(manual_grad),
distribution.experimental_local_results(auto_grad),
atol=5e-3, rtol=5e-3)
# Verify that BN moving mean and variance is correct.
for manual_var, auto_var in zip(
manual_grad_layer.non_trainable_variables,
auto_grad_layer.non_trainable_variables):
self.assertAllClose(manual_var, auto_var)
if __name__ == '__main__':
tf.test.main()
| Python | 4 | akshit-protonn/models | official/vision/beta/modeling/layers/nn_blocks_test.py | [
"Apache-2.0"
] |
#layer {
polygon-fill:red;
image-filters:scale-hsla(.5,.5,.5,.5,.5,.5,.5,.5);
direct-image-filters:scale-hsla(.5,.5,.5,.5,.5,.5,.5,.5);
} | CartoCSS | 2 | nimix/carto | test/rendering-mss/scale-hsla-filter.mss | [
"Apache-2.0"
] |
Path {
:filePrefix = "file://"
equals(a string, b string) {
return string.equals(a, b)
}
isAbsolutePath(s string) {
return s.startsWith("/")
}
} | mupad | 4 | jturner/muon | language_server/path_linux_macos.mu | [
"MIT"
] |
func $fact (
var %n i32) i32 {
@fred2
if (ne i32 i32 (dread i32 %n, constval i32 1)) {
brfalse @fred2 (dread i32 %n)
@fred1
return (constval i32 0) }
else {
return (constval i32 1) } }
# EXEC: %irbuild Main.mpl
# EXEC: %irbuild Main.irb.mpl
# EXEC: %cmp Main.irb.mpl Main.irb.irb.mpl
| Maple | 3 | harmonyos-mirror/OpenArkCompiler-test | test/testsuite/irbuild_test/I0012-mapleall-irbuild-edge-br/Main.mpl | [
"MulanPSL-1.0"
] |
{"version":"1.0.0","what-is-a-this-file":"This is a exported Mercury note file. if Do you want use this file, You can download here https://github.com/cloverhearts/mercury/releases","id":"note-f5bb7da6-8578-4731-8ed3-8bc516f1c504","title":"04. npm module and collaborate backend libraries","description":"","paragraphs":[{"parentId":"note-f5bb7da6-8578-4731-8ed3-8bc516f1c504","id":"paragraph-a48cc829-0cd6-46f1-bda8-a7e0992d6229","title":"New Pragraph 2019-12-31T08:11:10.997Z","content":{"ops":[{"insert":"Mercury can use the npm module.\nYou can see below example about hello-mercury npm module.\nnpm repository is "},{"attributes":{"link":"https://www.npmjs.com/package/hello-mercury"},"insert":"here"},{"insert":"\n\n"},{"insert":{"code-editor-container":"code-editor-container-d05922fc-38d5-4b3b-9d7d-699aa4ed0955"}},{"insert":"\n\nnpmModule to install npm module from npm official repository.\nso, you can use the npm module anytime.\nand one more.\n\nMercury can use backend-side module.\nfor example, puppeteer\npuppeteer is backend-side module with chrome-headless\nso far, If use this module, we need to available backend-side node or make a some web app with package manager.\nBut, when you using mercury that is easy.\n\n\n"},{"insert":{"code-editor-container":"code-editor-container-15e98c5f-aae9-48c4-979d-505a3b68bb74"}},{"insert":"\n\nMercury has both the backend and browser app properties.\nThus, apart from the "},{"attributes":{"bold":true,"underline":true},"insert":"problem with CORS, you can analyze your data regardless of any domain restrictions."},{"insert":"\n\n"}]},"meta":{"config":{},"createdAt":"2019-12-31T08:11:10.997Z","updatedAt":"2019-12-31T08:11:10.997Z","deletedAt":null,"owner":"Anonymous","history":[]},"containers":[{"id":"code-editor-container-d05922fc-38d5-4b3b-9d7d-699aa4ed0955","language":"javascript","code":"const npmModule = _mercury.utils.npmModule\n\nconst me = await npmModule('hello-mercury')\n\nconst eng = me.say('Hello')\nconst ko = me.say('안녕')\nconst jp = me.say('こんにちは')\nconst cn = me.say('你好')\nconst fr = me.say('Salut')\n\nconsole.log(eng)\nconsole.log(ko)\nconsole.log(jp)\nconsole.log(cn)\nconsole.log(fr)","logs":[],"meta":{"config":{},"createdAt":"2019-12-31T08:15:33.316Z","updatedAt":"2019-12-31T08:15:33.317Z","deletedAt":null,"owner":"Anonymous","history":[]},"storage":"undefined"},{"id":"code-editor-container-15e98c5f-aae9-48c4-979d-505a3b68bb74","language":"javascript","code":"const npmModule = _mercury.utils.npmModule\nconst HTML = _mercury.appRender.html\nconst RENDER = _mercury.appRender.render\n\n// If there is no puppeteer, it will be installed with npm in local.\nconst puppeteer = await npmModule('puppeteer')\n\n// take to website snapshot with puppeteer\nconst browser = await puppeteer.launch();\nconst page = await browser.newPage();\nawait page.goto('https://github.com/cloverhearts/mercury');\nconst image = await page.screenshot({encoding: 'base64', fullPage: true});\nawait browser.close();\n\n// make a web app\nconst imageContainer = HTML`<img src=\"data:image/png;base64, ${image}\" />`\nconst content = HTML`\n<div style=\"text-align: center;\">\n <h2>Test of Puppeteer with npm</h2>\n ${imageContainer}\n</div>\n`\nRENDER(content)","logs":[],"meta":{"config":{},"createdAt":"2019-12-31T08:21:00.945Z","updatedAt":"2019-12-31T08:21:00.945Z","deletedAt":null,"owner":"Anonymous","history":[]},"storage":"undefined"}]}],"meta":{"config":{},"createdAt":"2019-12-31T08:11:10.998Z","updatedAt":"2019-12-31T08:11:10.998Z","deletedAt":null,"owner":"Anonymous","history":[]}} | MAXScript | 3 | cloverhearts/mercury | modules/server/initialize/Notes/04-npm-module-with-backend-libraries.mcr | [
"Apache-2.0"
] |
{% extends '@WebProfiler/Profiler/layout.html.twig' %}
{% import _self as helper %}
{% block toolbar %}
{% if collector.messages|length %}
{% set icon %}
{{ include('@WebProfiler/Icon/translation.svg') }}
{% set status_color = collector.countMissings ? 'red' : collector.countFallbacks ? 'yellow' %}
{% set error_count = collector.countMissings + collector.countFallbacks %}
<span class="sf-toolbar-value">{{ error_count ?: collector.countDefines }}</span>
{% endset %}
{% set text %}
<div class="sf-toolbar-info-piece">
<b>Default locale</b>
<span class="sf-toolbar-status">
{{ collector.locale|default('-') }}
</span>
</div>
<div class="sf-toolbar-info-piece">
<b>Missing messages</b>
<span class="sf-toolbar-status sf-toolbar-status-{{ collector.countMissings ? 'red' }}">
{{ collector.countMissings }}
</span>
</div>
<div class="sf-toolbar-info-piece">
<b>Fallback messages</b>
<span class="sf-toolbar-status sf-toolbar-status-{{ collector.countFallbacks ? 'yellow' }}">
{{ collector.countFallbacks }}
</span>
</div>
<div class="sf-toolbar-info-piece">
<b>Defined messages</b>
<span class="sf-toolbar-status">{{ collector.countDefines }}</span>
</div>
{% endset %}
{{ include('@WebProfiler/Profiler/toolbar_item.html.twig', { link: profiler_url, status: status_color }) }}
{% endif %}
{% endblock %}
{% block menu %}
<span class="label label-status-{{ collector.countMissings ? 'error' : collector.countFallbacks ? 'warning' }} {{ collector.messages is empty ? 'disabled' }}">
<span class="icon">{{ include('@WebProfiler/Icon/translation.svg') }}</span>
<strong>Translation</strong>
{% if collector.countMissings or collector.countFallbacks %}
{% set error_count = collector.countMissings + collector.countFallbacks %}
<span class="count">
<span>{{ error_count }}</span>
</span>
{% endif %}
</span>
{% endblock %}
{% block panel %}
<h2>Translation</h2>
<div class="metrics">
<div class="metric">
<span class="value">{{ collector.locale|default('-') }}</span>
<span class="label">Default locale</span>
</div>
<div class="metric">
<span class="value">{{ collector.fallbackLocales|join(', ')|default('-') }}</span>
<span class="label">Fallback locale{{ collector.fallbackLocales|length != 1 ? 's' }}</span>
</div>
</div>
<h2>Messages</h2>
{% if collector.messages is empty %}
<div class="empty">
<p>No translations have been called.</p>
</div>
{% else %}
{% block messages %}
{# sort translation messages in groups #}
{% set messages_defined, messages_missing, messages_fallback = [], [], [] %}
{% for message in collector.messages %}
{% if message.state == constant('Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_DEFINED') %}
{% set messages_defined = messages_defined|merge([message]) %}
{% elseif message.state == constant('Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_MISSING') %}
{% set messages_missing = messages_missing|merge([message]) %}
{% elseif message.state == constant('Symfony\\Component\\Translation\\DataCollectorTranslator::MESSAGE_EQUALS_FALLBACK') %}
{% set messages_fallback = messages_fallback|merge([message]) %}
{% endif %}
{% endfor %}
<div class="sf-tabs">
<div class="tab {{ collector.countMissings == 0 ? 'active' }}">
<h3 class="tab-title">Defined <span class="badge">{{ collector.countDefines }}</span></h3>
<div class="tab-content">
<p class="help">
These messages are correctly translated into the given locale.
</p>
{% if messages_defined is empty %}
<div class="empty">
<p>None of the used translation messages are defined for the given locale.</p>
</div>
{% else %}
{% block defined_messages %}
{{ helper.render_table(messages_defined) }}
{% endblock %}
{% endif %}
</div>
</div>
<div class="tab">
<h3 class="tab-title">Fallback <span class="badge {{ collector.countFallbacks ? 'status-warning' }}">{{ collector.countFallbacks }}</span></h3>
<div class="tab-content">
<p class="help">
These messages are not available for the given locale
but Symfony found them in the fallback locale catalog.
</p>
{% if messages_fallback is empty %}
<div class="empty">
<p>No fallback translation messages were used.</p>
</div>
{% else %}
{% block fallback_messages %}
{{ helper.render_table(messages_fallback, true) }}
{% endblock %}
{% endif %}
</div>
</div>
<div class="tab {{ collector.countMissings > 0 ? 'active' }}">
<h3 class="tab-title">Missing <span class="badge {{ collector.countMissings ? 'status-error' }}">{{ collector.countMissings }}</span></h3>
<div class="tab-content">
<p class="help">
These messages are not available for the given locale and cannot
be found in the fallback locales. Add them to the translation
catalogue to avoid Symfony outputting untranslated contents.
</p>
{% if messages_missing is empty %}
<div class="empty">
<p>There are no messages of this category.</p>
</div>
{% else %}
{% block missing_messages %}
{{ helper.render_table(messages_missing) }}
{% endblock %}
{% endif %}
</div>
</div>
</div>
<script>Sfjs.createFilters();</script>
{% endblock messages %}
{% endif %}
{% endblock %}
{% macro render_table(messages, is_fallback) %}
<table data-filters>
<thead>
<tr>
<th data-filter="locale">Locale</th>
{% if is_fallback %}
<th>Fallback locale</th>
{% endif %}
<th data-filter="domain">Domain</th>
<th>Times used</th>
<th>Message ID</th>
<th>Message Preview</th>
</tr>
</thead>
<tbody>
{% for message in messages %}
<tr data-filter-locale="{{ message.locale }}" data-filter-domain="{{ message.domain }}">
<td class="font-normal text-small nowrap">{{ message.locale }}</td>
{% if is_fallback %}
<td class="font-normal text-small nowrap">{{ message.fallbackLocale|default('-') }}</td>
{% endif %}
<td class="font-normal text-small text-bold nowrap">{{ message.domain }}</td>
<td class="font-normal text-small nowrap">{{ message.count }}</td>
<td>
<span class="nowrap">{{ message.id }}</span>
{% if message.transChoiceNumber is not null %}
<small class="newline">(pluralization is used)</small>
{% endif %}
{% if message.parameters|length > 0 %}
<button class="btn-link newline text-small sf-toggle" data-toggle-selector="#parameters-{{ loop.index }}" data-toggle-alt-content="Hide parameters">Show parameters</button>
<div id="parameters-{{ loop.index }}" class="hidden">
{% for parameters in message.parameters %}
{{ profiler_dump(parameters, maxDepth=1) }}
{% endfor %}
</div>
{% endif %}
</td>
<td class="prewrap">{{ message.translation }}</td>
</tr>
{% endfor %}
</tbody>
</table>
{% endmacro %}
| Twig | 5 | simonberger/symfony | src/Symfony/Bundle/WebProfilerBundle/Resources/views/Collector/translation.html.twig | [
"MIT"
] |
(module
(type $0 (func (param i32) (result i32)))
(type $1 (func (result i32)))
(type $2 (func))
(import "env" "puts" (func $puts1 (param i32) (result i32)))
(import "env" "puts" (func $puts2 (param i64) (result i32)))
(import "env" "invoke_ffd" (func $invoke_ffd (param i32 f32 f64) (result f32)))
(import "env" "invoke_ffd" (func $invoke_ffd2 (param i32 f64 f64) (result f32)))
(global $global$0 (mut i32) (i32.const 66128))
(global $global$1 i32 (i32.const 66128))
(global $global$2 i32 (i32.const 581))
(table 1 1 funcref)
(memory $0 2)
(data (i32.const 568) "Hello, world\00")
(export "memory" (memory $0))
(export "__wasm_call_ctors" (func $__wasm_call_ctors))
(export "main" (func $main))
(export "__heap_base" (global $global$1))
(export "__data_end" (global $global$2))
(func $main (; 1 ;) (type $1) (result i32)
(drop
(call $puts1
(i32.const 568)
)
)
(i32.const 0)
)
(func $__wasm_call_ctors (; 2 ;) (type $2)
)
;; custom section "linking", size 3
)
| WebAssembly | 3 | phated/binaryen | test/lld/duplicate_imports.wat | [
"Apache-2.0"
] |
data Vect : Nat -> Type -> Type where
Nil : Vect Z a
(::) : a -> (1 xs : Vect k a) -> Vect (S k) a
partial
append : (1 _ : Vect n a) -> Vect m a -> Vect (n + m) a
append (x :: zs@(y :: ws)) ys = ?foo -- zs usable, y+ws not
cappend : (1 _ : Vect n a) -> Vect m a -> Vect (plus n m) $a
cappend xs ys
= case xs of
Nil => ys
x :: zs => ?bar -- zs usable, xs not
cappend2 : (1 _ : Vect n a) -> Vect m a -> Vect (plus n m) a
cappend2 xs ys
= case xs of
Nil => ys
x :: zs => let ts = zs in ?baz -- ts usable, xs+zs not
| Idris | 3 | ska80/idris-jvm | tests/idris2/linear009/qtt.idr | [
"BSD-3-Clause"
] |
;; -*- no-byte-compile: t; -*-
;;; core/test/test-core-modules.el
(xdescribe "core-modules"
(require 'core-modules)
(describe "doom!")
(describe "doom-modules")
(describe "doom-module-p")
(describe "doom-module-get")
(describe "doom-module-put")
(describe "doom-module-set")
(describe "doom-module-path")
(describe "doom-module-locate-path")
(describe "doom-module-from-path")
(describe "doom-module-load-path")
(describe "require!")
(describe "featurep!")
(describe "after!")
(describe "use-package!")
(describe "use-package-hook!"))
| Emacs Lisp | 3 | leezu/doom-emacs | core/test/test-core-modules.el | [
"MIT"
] |
#ifndef LIGHTING_INSTANT_UPDATES
#undef LIGHTING_INTERVAL
#endif
#undef LIGHTING_INSTANT_UPDATES
#undef LIGHTING_FALLOFF
#undef LIGHTING_LAMBERTIAN
#undef LIGHTING_HEIGHT
#undef LIGHTING_LAYER
#undef LIGHTING_BASE_MATRIX
#undef RR
#undef RG
#undef RB
#undef RA
#undef GR
#undef GG
#undef GB
#undef GA
#undef BR
#undef BG
#undef BB
#undef BA
#undef AR
#undef AG
#undef AB
#undef AA
#undef CR
#undef CG
#undef CB
#undef CA
| DM | 1 | PJB3005/GoonLight-Heist | Lighting/~lighting_undefs.dm | [
"MIT"
] |
#include "EXTERN.h"
#include "perl.h"
#include "XSUB.h"
#ifdef I_SYSLOG
#include <syslog.h>
#endif
static double
constant_LOG_NO(char *name, int len)
{
switch (name[6 + 0]) {
case 'T':
if (strEQ(name + 6, "TICE")) { /* LOG_NO removed */
#ifdef LOG_NOTICE
return LOG_NOTICE;
#else
goto not_there;
#endif
}
case 'W':
if (strEQ(name + 6, "WAIT")) { /* LOG_NO removed */
#ifdef LOG_NOWAIT
return LOG_NOWAIT;
#else
goto not_there;
#endif
}
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_N(char *name, int len)
{
switch (name[5 + 0]) {
case 'D':
if (strEQ(name + 5, "DELAY")) { /* LOG_N removed */
#ifdef LOG_NDELAY
return LOG_NDELAY;
#else
goto not_there;
#endif
}
case 'E':
if (strEQ(name + 5, "EWS")) { /* LOG_N removed */
#ifdef LOG_NEWS
return LOG_NEWS;
#else
goto not_there;
#endif
}
case 'F':
if (strEQ(name + 5, "FACILITIES")) { /* LOG_N removed */
#ifdef LOG_NFACILITIES
return LOG_NFACILITIES;
#else
goto not_there;
#endif
}
case 'O':
return constant_LOG_NO(name, len);
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_P(char *name, int len)
{
switch (name[5 + 0]) {
case 'I':
if (strEQ(name + 5, "ID")) { /* LOG_P removed */
#ifdef LOG_PID
return LOG_PID;
#else
goto not_there;
#endif
}
case 'R':
if (strEQ(name + 5, "RIMASK")) { /* LOG_P removed */
#ifdef LOG_PRIMASK
return LOG_PRIMASK;
#else
goto not_there;
#endif
}
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_AU(char *name, int len)
{
if (6 + 2 >= len ) {
errno = EINVAL;
return 0;
}
switch (name[6 + 2]) {
case '\0':
if (strEQ(name + 6, "TH")) { /* LOG_AU removed */
#ifdef LOG_AUTH
return LOG_AUTH;
#else
goto not_there;
#endif
}
case 'P':
if (strEQ(name + 6, "THPRIV")) { /* LOG_AU removed */
#ifdef LOG_AUTHPRIV
return LOG_AUTHPRIV;
#else
goto not_there;
#endif
}
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_A(char *name, int len)
{
switch (name[5 + 0]) {
case 'L':
if (strEQ(name + 5, "LERT")) { /* LOG_A removed */
#ifdef LOG_ALERT
return LOG_ALERT;
#else
goto not_there;
#endif
}
case 'U':
return constant_LOG_AU(name, len);
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_CR(char *name, int len)
{
switch (name[6 + 0]) {
case 'I':
if (strEQ(name + 6, "IT")) { /* LOG_CR removed */
#ifdef LOG_CRIT
return LOG_CRIT;
#else
goto not_there;
#endif
}
case 'O':
if (strEQ(name + 6, "ON")) { /* LOG_CR removed */
#ifdef LOG_CRON
return LOG_CRON;
#else
goto not_there;
#endif
}
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_C(char *name, int len)
{
switch (name[5 + 0]) {
case 'O':
if (strEQ(name + 5, "ONS")) { /* LOG_C removed */
#ifdef LOG_CONS
return LOG_CONS;
#else
goto not_there;
#endif
}
case 'R':
return constant_LOG_CR(name, len);
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_D(char *name, int len)
{
switch (name[5 + 0]) {
case 'A':
if (strEQ(name + 5, "AEMON")) { /* LOG_D removed */
#ifdef LOG_DAEMON
return LOG_DAEMON;
#else
goto not_there;
#endif
}
case 'E':
if (strEQ(name + 5, "EBUG")) { /* LOG_D removed */
#ifdef LOG_DEBUG
return LOG_DEBUG;
#else
goto not_there;
#endif
}
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_U(char *name, int len)
{
switch (name[5 + 0]) {
case 'S':
if (strEQ(name + 5, "SER")) { /* LOG_U removed */
#ifdef LOG_USER
return LOG_USER;
#else
goto not_there;
#endif
}
case 'U':
if (strEQ(name + 5, "UCP")) { /* LOG_U removed */
#ifdef LOG_UUCP
return LOG_UUCP;
#else
goto not_there;
#endif
}
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_E(char *name, int len)
{
switch (name[5 + 0]) {
case 'M':
if (strEQ(name + 5, "MERG")) { /* LOG_E removed */
#ifdef LOG_EMERG
return LOG_EMERG;
#else
goto not_there;
#endif
}
case 'R':
if (strEQ(name + 5, "RR")) { /* LOG_E removed */
#ifdef LOG_ERR
return LOG_ERR;
#else
goto not_there;
#endif
}
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_F(char *name, int len)
{
switch (name[5 + 0]) {
case 'A':
if (strEQ(name + 5, "ACMASK")) { /* LOG_F removed */
#ifdef LOG_FACMASK
return LOG_FACMASK;
#else
goto not_there;
#endif
}
case 'T':
if (strEQ(name + 5, "TP")) { /* LOG_F removed */
#ifdef LOG_FTP
return LOG_FTP;
#else
goto not_there;
#endif
}
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_LO(char *name, int len)
{
if (6 + 3 >= len ) {
errno = EINVAL;
return 0;
}
switch (name[6 + 3]) {
case '0':
if (strEQ(name + 6, "CAL0")) { /* LOG_LO removed */
#ifdef LOG_LOCAL0
return LOG_LOCAL0;
#else
goto not_there;
#endif
}
case '1':
if (strEQ(name + 6, "CAL1")) { /* LOG_LO removed */
#ifdef LOG_LOCAL1
return LOG_LOCAL1;
#else
goto not_there;
#endif
}
case '2':
if (strEQ(name + 6, "CAL2")) { /* LOG_LO removed */
#ifdef LOG_LOCAL2
return LOG_LOCAL2;
#else
goto not_there;
#endif
}
case '3':
if (strEQ(name + 6, "CAL3")) { /* LOG_LO removed */
#ifdef LOG_LOCAL3
return LOG_LOCAL3;
#else
goto not_there;
#endif
}
case '4':
if (strEQ(name + 6, "CAL4")) { /* LOG_LO removed */
#ifdef LOG_LOCAL4
return LOG_LOCAL4;
#else
goto not_there;
#endif
}
case '5':
if (strEQ(name + 6, "CAL5")) { /* LOG_LO removed */
#ifdef LOG_LOCAL5
return LOG_LOCAL5;
#else
goto not_there;
#endif
}
case '6':
if (strEQ(name + 6, "CAL6")) { /* LOG_LO removed */
#ifdef LOG_LOCAL6
return LOG_LOCAL6;
#else
goto not_there;
#endif
}
case '7':
if (strEQ(name + 6, "CAL7")) { /* LOG_LO removed */
#ifdef LOG_LOCAL7
return LOG_LOCAL7;
#else
goto not_there;
#endif
}
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant_LOG_L(char *name, int len)
{
switch (name[5 + 0]) {
case 'F':
if (strEQ(name + 5, "FMT")) { /* LOG_L removed */
#ifdef LOG_LFMT
return LOG_LFMT;
#else
goto not_there;
#endif
}
case 'O':
return constant_LOG_LO(name, len);
case 'P':
if (strEQ(name + 5, "PR")) { /* LOG_L removed */
#ifdef LOG_LPR
return LOG_LPR;
#else
goto not_there;
#endif
}
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
static double
constant(char *name, int len)
{
errno = 0;
if (0 + 4 >= len ) {
errno = EINVAL;
return 0;
}
switch (name[0 + 4]) {
case 'A':
if (!strnEQ(name + 0,"LOG_", 4))
break;
return constant_LOG_A(name, len);
case 'C':
if (!strnEQ(name + 0,"LOG_", 4))
break;
return constant_LOG_C(name, len);
case 'D':
if (!strnEQ(name + 0,"LOG_", 4))
break;
return constant_LOG_D(name, len);
case 'E':
if (!strnEQ(name + 0,"LOG_", 4))
break;
return constant_LOG_E(name, len);
case 'F':
if (!strnEQ(name + 0,"LOG_", 4))
break;
return constant_LOG_F(name, len);
case 'I':
if (strEQ(name + 0, "LOG_INFO")) { /* removed */
#ifdef LOG_INFO
return LOG_INFO;
#else
goto not_there;
#endif
}
case 'K':
if (strEQ(name + 0, "LOG_KERN")) { /* removed */
#ifdef LOG_KERN
return LOG_KERN;
#else
goto not_there;
#endif
}
case 'L':
if (!strnEQ(name + 0,"LOG_", 4))
break;
return constant_LOG_L(name, len);
case 'M':
if (strEQ(name + 0, "LOG_MAIL")) { /* removed */
#ifdef LOG_MAIL
return LOG_MAIL;
#else
goto not_there;
#endif
}
case 'N':
if (!strnEQ(name + 0,"LOG_", 4))
break;
return constant_LOG_N(name, len);
case 'O':
if (strEQ(name + 0, "LOG_ODELAY")) { /* removed */
#ifdef LOG_ODELAY
return LOG_ODELAY;
#else
goto not_there;
#endif
}
case 'P':
if (!strnEQ(name + 0,"LOG_", 4))
break;
return constant_LOG_P(name, len);
case 'S':
if (strEQ(name + 0, "LOG_SYSLOG")) { /* removed */
#ifdef LOG_SYSLOG
return LOG_SYSLOG;
#else
goto not_there;
#endif
}
case 'U':
if (!strnEQ(name + 0,"LOG_", 4))
break;
return constant_LOG_U(name, len);
case 'W':
if (strEQ(name + 0, "LOG_WARNING")) { /* removed */
#ifdef LOG_WARNING
return LOG_WARNING;
#else
goto not_there;
#endif
}
}
errno = EINVAL;
return 0;
not_there:
errno = ENOENT;
return 0;
}
MODULE = Sys::Syslog PACKAGE = Sys::Syslog
char *
_PATH_LOG()
CODE:
#ifdef _PATH_LOG
RETVAL = _PATH_LOG;
#else
RETVAL = "";
#endif
OUTPUT:
RETVAL
int
LOG_FAC(p)
INPUT:
int p
CODE:
#ifdef LOG_FAC
RETVAL = LOG_FAC(p);
#else
croak("Your vendor has not defined the Sys::Syslog macro LOG_FAC");
RETVAL = -1;
#endif
OUTPUT:
RETVAL
int
LOG_PRI(p)
INPUT:
int p
CODE:
#ifdef LOG_PRI
RETVAL = LOG_PRI(p);
#else
croak("Your vendor has not defined the Sys::Syslog macro LOG_PRI");
RETVAL = -1;
#endif
OUTPUT:
RETVAL
int
LOG_MAKEPRI(fac,pri)
INPUT:
int fac
int pri
CODE:
#ifdef LOG_MAKEPRI
RETVAL = LOG_MAKEPRI(fac,pri);
#else
croak("Your vendor has not defined the Sys::Syslog macro LOG_MAKEPRI");
RETVAL = -1;
#endif
OUTPUT:
RETVAL
int
LOG_MASK(pri)
INPUT:
int pri
CODE:
#ifdef LOG_MASK
RETVAL = LOG_MASK(pri);
#else
croak("Your vendor has not defined the Sys::Syslog macro LOG_MASK");
RETVAL = -1;
#endif
OUTPUT:
RETVAL
int
LOG_UPTO(pri)
INPUT:
int pri
CODE:
#ifdef LOG_UPTO
RETVAL = LOG_UPTO(pri);
#else
croak("Your vendor has not defined the Sys::Syslog macro LOG_UPTO");
RETVAL = -1;
#endif
OUTPUT:
RETVAL
double
constant(sv)
PREINIT:
STRLEN len;
INPUT:
SV * sv
char * s = SvPV(sv, len);
CODE:
RETVAL = constant(s,len);
OUTPUT:
RETVAL
| XS | 3 | tharindusathis/sourcecodes-of-CodeReadingTheOpenSourcePerspective | perl/ext/Sys/Syslog/Syslog.xs | [
"Apache-1.1"
] |
# Copyright (c) 2018-2021, Carnegie Mellon University
# See LICENSE for details
Declare(StreamGath);
Declare(StreamScat);
Declare(STensor);
Declare(SIterDirectSum);
Import(compiler);
Class(RootsOfUnity, Sym, rec(
abbrevs := [ (n) -> [n]],
def := (n) -> let(j := Ind(n),
Diag(Lambda(j, omega(n, j)).setRange(Complexes))),
tolist := self >> self.lambda().tolist(),
lambda := self >> self.obj.element,
sums := self >> Diag(self),
isFunction := true,
range := self >> TComplex,
domain := self >> self.params[1],
transpose := self >> self,
isReal := self >> (self.params[1] <= 2),
exportParams := self >> self.params
));
Class(streamDiagFunc, FuncClass, rec(
def := (N, n, r) -> rec(
N := N/2,
n := N,
r := r,
),
tolist := self >> self.lambda().tolist(),
lambda := self >> let(
i := Ind(self.n),
Lambda(i, imod(i, self.params[2]) * idiv(i, self.params[2]))),
domain := self >> self.n,
range := self >> self.N
));
# ==========================================================================
# StreamGath(<i>, <range>, <bs>) - vector gather (read) matrix
# ==========================================================================
Class(StreamGath, BaseMat, SumsBase, rec(
#-----------------------------------------------------------------------
# rChildren := self >> [self.func],
# rSetChild := rSetChildFields("func"),
rChildren := self >> [self.i],
rSetChild := rSetChildFields("i"),
#-----------------------------------------------------------------------
new := (self, i, range, bs) >> SPL(WithBases(self,
rec(dimensions := [bs, bs*range], bs := bs, i := i, range := range))),
#-----------------------------------------------------------------------
sums := self >> self,
area := self >> self.bs * self.range,
isReal := self >> true,
transpose := self >> StreamScat(self.i, self.range, self.bs),
#-----------------------------------------------------------------------
print := (self,i,is) >> Print(self.name, "(", self.i, ", ", self.range,", ", self.bs,")"),
#-----------------------------------------------------------------------
toAMat := self >> Gath(fTensor(fBase(self.range, self.i), fId(self.bs))).toAMat()
# make verilog
));
# ==========================================================================
# StreamScat(<func>, <v>) - vector scatter (write) matrix
# ==========================================================================
Class(StreamScat, BaseMat, SumsBase, rec(
#-----------------------------------------------------------------------
rChildren := self >> [self.i],
rSetChild := rSetChildFields("i"),
#-----------------------------------------------------------------------
new := (self, i, range, bs) >> SPL(WithBases(self,
rec(dimensions := [bs*range, bs], bs := bs, i := i, range := range))),
#-----------------------------------------------------------------------
sums := self >> self,
area := self >> self.func.domain() * self.v,
isReal := self >> true,
transpose := self >> StreamGath(self.i, self.range, self.bs),
#-----------------------------------------------------------------------
print := (self,i,is) >> Print(self.name, "(", self.i, ", ", self.range,", ", self.bs,")"),
#-----------------------------------------------------------------------
toAMat := self >> TransposedAMat(StreamGath(self.i, self.range, self.bs).toAMat())
# code := (self, y, x) >> VTensor(Scat(self.func), self.v).code(y,x)
));
RCExpandData := function(value)
return ConcatList(value.v, x->[ReComplex(Complex(x.v)), ImComplex(Complex(x.v))]);
end;
#FixLocalize := (o) -> SubstBottomUpRules(o, [
# [[Diag, @(1)], e -> Diag(GenerateData(ResolveMemos(e.element))), "FixLocalize" ]]);
Declare(BRAMPerm);
# ===============================================
# CodeBlock(<SPL>)
# ==============================================
Class(CodeBlock, BaseContainer, SumsBase, rec(
isBlock:=true,
sums := self >> CopyFields(self, rec(_children := [self.child(1).sums()])),
code := false,
createCode := meth(self)
local i, s, res, d, dl;
if (IsBound(self._children[1].isBlock)) then
res := self._children[1].createCode();
else
s := self.child(1);
res := CopyFields(self, rec(code := CodeSums(s, StreamDefaults)));
fi;
res.code := BinSplit(res.code);
return res;
end,
rChildren := self >> [self._children[1], self.code],
rSetChild := meth(self, n, what)
if n=1 then
self._children[1] := what;
elif n=2 then
self.code := what;
else Error("<n> must be in [1,2]");
fi;
end,
from_rChildren := (self, rch) >> CopyFields(ObjId(self)(rch[1]), rec(code:=rch[2])),
print := (self,i,is) >> Print(self.name, "(", Cond(self.code<>false, self.code.print(i,is), self._children[1]), ")")
));
Class(StreamSum, ISum, BaseIterative, SumsBase);
# A streaming I tensor J primitive
Class(StreamIxJ, BaseMat, SumsBase, rec(
new := (self, k, p, bs) >> SPL(WithBases(self, rec(dimensions:=[k*p,k*p], element:=k, p:=p, bs:=bs))),
print := (self,i,is) >> Print(self.name, "(", self.element, ", ", self.p, ", ", self.bs, ")"),
toAMat := self >> let(J := When(self.element = 2, I(2), Compose(Tensor(I(2), L(self.element/2, self.element/4)), L(self.element, 2))), Tensor(I(self.p), J).toAMat()),
transpose := self >> self,
area := self >> self.element,
sums := self >> self,
rChildren := self >> [],
dimensions := self >> [self.element * self.p, self.element * self.p],
dims := self >> self.dimensions,
isReal := True
));
# parameters:
# L[1]: SPL
# L[2]: p: p in I_p x SPL
# L[3]: bs: stream buffer size
Class(STensor, Tensor,
rec(
new := (self, L) >> SPL(WithBases(self, rec(
bs := L[3],
dimensions := L[1].dimensions * Cond(IsValue(L[2]), L[2].ev(), L[2]),
p := Cond(L[1].dims()[1] >= L[3], L[2], L[2]*L[1].dims()[1]/L[3]),
_children := [Checked(L[1].dims()[1] = L[1].dims()[2],
Cond(L[1].dims()[1] >= L[3], L[1], Tensor(I(L[3] / L[1].dims()[1]), L[1]))), Cond(L[1].dims()[1] >= L[3], L[2], L[2]*L[1].dims()[1]/L[3]), L[3]]
# _children := [Checked(L[1].dims()[1] = L[1].dims()[2],
# Cond(L[1].dims()[1] >= L[3], L[1], Tensor(I(L[3] / L[1].dims()[1]), L[1])))]
))),
print := (self,i,is) >> Print(self.name, "(", self.child(1), ", ", self.p, ", ", self.bs, ")"),
createCode := self >> Cond(IsBound(self.child(1).createCode), STensor(self.child(1).createCode(), self.p, self.bs), self),
isPermutation := False,
toAMat := self >> Tensor(I(self.p), self.child(1)).toAMat(),
sums := self >> self,
dims := self >> Cond(IsValue(self.p), self.p.ev(), self.p) * self.child(1).dims()
));
# parameters: I_m x L^n_r x I_p
# L[1]: n
# L[2]: r
# L[3]: p
# L[4]: m
# L[5]: stream buffer size
Class(SIxLxI, Tensor,
rec(
new := (self, l) >> SPL(WithBases(self, rec(
_children := [],
dimensions := [l[1] * l[3] * l[4], l[1] * l[3] * l[4]],
bs := l[5],
p := l[3],
m := l[4],
createCode := self >> self,
print := (self,i,is) >> Print(self.name, "(", l[1], ", ", l[2], ", ", self.p, ", ", self.m, ", ", self.bs, ")"),
isPermutation := False,
toAMat := self >> Tensor(Tensor(I(self.m), L(l[1], l[2]), I(self.p))).toAMat(),
transpose := self >> self,
dims := self >> self.dimensions,
# dimensions := l[1] * l[3] * l[4],
sums := self >> self,
)))));
# ==========================================================================
# Streaming iterative direct sum
# SIterDirectSum(<var>, <range>, <spl>, <stream buffer size>)
# Size of the <spl> must not depend on <var>.
# ==========================================================================
Class(SIterDirectSum, BaseIterative, rec(
abbrevs := [ (v,d,e, bs) -> [v,d,e,bs],
(v,e,bs) -> [v, v.range, e, bs]],
new := meth(self, var, domain, expr, bs)
local res;
var.isLoopIndex := true;
res := SPL(WithBases(self, rec(
# _children := [Checked(expr.dims()[1] <= bs and
_children := [Checked(expr.dims()[1] = expr.dims()[2],
Cond(expr.dims()[1] >= bs,
expr,
IterDirectSum(Ind(bs/expr.dims()[1]), expr)))],
var := var,
bs := bs,
dimensions := expr.dimensions * domain,
domain := domain)));
return res;
end,
rChildren := self >> self._children,
rSetChild := meth(self, n, what) self._children[n] := what; end,
child := (self, n) >> self._children[n],
children := self >> self._children,
# Constraint(IsSPL(expr));
# Constraint(not IsList(domain));
# #domain := toRange(domain);
# if domain = 1 then
# return SubstBottomUp(expr, @.cond(e->Same(e,var)), e->V(0));
# fi;
# var.range := domain;
# return SPL(WithBases( self,
# rec( expr := expr,
# var := var,
# domain := domain,
# dimensions := domain * Dimensions(expr) )));
# end,
print := (self, i, is) >> Print(self.name, "(", self.var, ", ", self.domain, ", ", self.child(1).print(i+is, is), ", ", self.bs, ")"),
toAMat := self >> self.unroll().toAMat(),
unroll := self >> DirectSum(
List([ 0 .. self.domain - 1 ],
index_value -> SubstBottomUp(
Copy(self._children[1]), self.var,
e -> V(index_value)))),
dims := self >> self.dimensions,
#-----------------------------------------------------------------------
isPermutation := False,
#-----------------------------------------------------------------------
createCode := self >> Cond(IsBound(self._children[1].createCode),
SIterDirectSum(self.var, self.domain, self._children[1].createCode(), self.bs), self),
transpose := # we use inherit to copy all fields of self
self >> Inherit(self, rec(
expr := TransposedSPL(self._children[1]),
dimensions := Reversed(self.dimensions))),
sums := self >> self
));
NoPull.createCode := meth ( self )
local i, s, res, d, dl;
if IsBound(self._children[1].isBlock) then
res := self._children[1].createCode();
else
s := self.child(1);
res := SPL(CopyFields(self, rec(
code := CodeSums(self.dims()[1] * 2, s) )));
fi;
for i in [ 1 .. 10 ] do
BinSplit(res.code);
od;
return res;
end;
Class(Omega, BaseIterative, rec(
abbrevs := [ (N,n,i) ->[N, n, i] ],
new := (self, N, n, i) >> let(j := Ind(n),
Lambda(j, omega(N, i*j)).setRange(TComplex)),
rChildren := self >> self._children,
rSetChild := meth(self, n, what) self._children[n] := what; end,
child := (self, n) >> self._children[1],
children := self >> self._children,
tolist := self >> self.lambda().tolist(),
lambda := self >> self.obj.element,
sums := self >> Diag(self),
isFunction := true,
range := self >> TComplex,
domain := self >> self.params[1],
transpose := self >> self,
# isReal := self >> (self.params[1] = self.params[2] or self.params[2] = 1),
exportParams := self >> self.params
));
Prm.createCode := (self) >> SPL(CopyFields(self, rec(code := CodeSums(self, StreamDefaults))));
ISum.createCode := (self) >> CodeBlock(self).createCode();
Tensor.createCode := self >>
Tensor(
List([1..Length(self.children())], i->
Cond(IsBound(self.child(i).createCode),
self.child(i).createCode(),
self.child(i)
)
)
);
Tw1Stride := (n,d,k,which,stride) -> Checked(IsPosIntSym(n), IsPosIntSym(d), IsPosIntSym(k),
fCompose(dOmega(n,k), diagTensor(dLin(n/d, 1, 0, TInt), dLin(d/stride, 1, which, TInt))));
# fReal := (f) -> fCompose(RCData(f), fTensor(fId(f.n), fBase(2, 0)));
Class(fReal, FuncClass, rec(
def := (f) -> rec(N := f.range(), n := f.domain(), f := f),
tolist := self >> self.lambda().tolist(),
lambda := self >> fCompose(RCData(self.f), fTensor(fId(self.n), fBase(2,0))).lambda(),
domain := self >> self.n,
range := self >> self.N
));
# fImag := (f) -> fCompose(RCData(f), fTensor(fId(f.n), fBase(2, 1)));
Class(fImag, FuncClass, rec(
def := (f) -> rec(N := f.range(), n := f.domain(), f := f),
tolist := self >> self.lambda().tolist(),
lambda := self >> fCompose(RCData(self.f), fTensor(fId(self.n), fBase(2,1))).lambda(),
domain := self >> self.n,
range := self >> self.N
));
Class(Stream1DFT2, BaseMat, SumsBase, rec(
new := (self) >> SPL(WithBases(self, rec(dimensions:=[2,2]))),
print := (self,i,is) >> Print(self.name),
toAMat := self >> DFT(2,1).toAMat(),
transpose := self >> self,
sums := self >> self,
rChildren := self >> [],
dimensions := [2,2],
dims := self >> self.dimensions,
));
Class(StreamPadDiscard, BaseMat, SumsBase, rec(
abbrevs := [(n, m, w_in, w_out) -> [n, m, w_in, w_out]],
new := (self, n, m, w_in, w_out) >> SPL(WithBases(self, rec(
_children := [n,m, w_in, w_out],
dimensions := [n, m],
))),
rChildren := self >> self._children,
rSetChild := meth(self, n, what) self._children[n] := what; end,
child := (self, n) >> self._children[n],
children := self >> self._children,
toAMat := self >> RI(self.child(1), self.child(2)).toAMat(),
dims := self >> [self.child(1), self.child(2)],
)); | GAP | 4 | sr7cb/spiral-software | namespaces/spiral/paradigms/stream/sums.gi | [
"BSD-2-Clause-FreeBSD"
] |
0.5023926621077173 0.8042541581712315 0.7838999633606931
0.7134368194642242 0.39196811983258106 0.5193911071642561
0.8409352907613437 0.9565063780323217 0.877624859055002
0.3769362952294186 0.7648734292258867 0.2828567770273738
0.2974229058164479 0.7688950941860562 0.8361831833250799
0.022060786470761817 0.619934879626918 0.7963858045070911
0.26554394503866297 0.7852547540535662 0.427506785108686
0.4565475761806501 0.6205746874757754 0.3831342346058415
0.32776937005959006 0.9659193778561912 0.5231446301944465
0.24551137752058683 0.047783654395516795 0.6660251235065395
| IDL | 0 | JuliaTagBot/FMMTrees.jl | test/points.dlm | [
"MIT"
] |
"""Queue represented by a Python list"""
class Queue:
def __init__(self):
self.entries = []
self.length = 0
self.front = 0
def __str__(self):
printed = "<" + str(self.entries)[1:-1] + ">"
return printed
"""Enqueues {@code item}
@param item
item to enqueue"""
def put(self, item):
self.entries.append(item)
self.length = self.length + 1
"""Dequeues {@code item}
@requirement: |self.length| > 0
@return dequeued
item that was dequeued"""
def get(self):
self.length = self.length - 1
dequeued = self.entries[self.front]
# self.front-=1
# self.entries = self.entries[self.front:]
self.entries = self.entries[1:]
return dequeued
"""Rotates the queue {@code rotation} times
@param rotation
number of times to rotate queue"""
def rotate(self, rotation):
for i in range(rotation):
self.put(self.get())
"""Enqueues {@code item}
@return item at front of self.entries"""
def get_front(self):
return self.entries[0]
"""Returns the length of this.entries"""
def size(self):
return self.length
| Python | 4 | JB1959/Python | data_structures/queue/queue_on_list.py | [
"MIT"
] |
template(name='notification')
li.notification(class="{{#if read}}read{{/if}}")
.read-status
.materialCheckBox(class="{{#if read}}is-checked{{/if}}")
+notificationIcon(activityData)
.details
+activity(activity=activityData mode='none')
if read
.remove
a.fa.fa-trash
| Jade | 3 | moqmar/wekan | client/components/notifications/notification.jade | [
"MIT"
] |
lexer grammar TreeRewrite;
options {
language=ObjC;
}
// $ANTLR src "TreeRewrite.g" 15
INT : ('0'..'9')+
;
// $ANTLR src "TreeRewrite.g" 18
WS : ' ' {$channel=99;}
;
| G-code | 3 | DanielMabadeje/Artificial-Intelligence-Deep-Learning-Machine-Learning-Tutorials | java/java2py/antlr-3.1.3/runtime/ObjC/Framework/examples/treerewrite/TreeRewrite__.g | [
"Apache-2.0"
] |
A ← 2 3 4 ⍴ ⍳ 24
⎕ ← 'A:'
⎕ ← A
B ← 2 1 3 ⍉ A ⍝ ⍴B = 3 2 4
⎕ ← 'B:'
⎕ ← B
⎕ ← +/B ⍝ --> 10 58
⍝ 26 74
⍝ 42 90
⍝ The following example requires a correct definition of exchange - see ARRAY'14
⍝ paper is wrong wrt the specification of exchange - here is a correct
⍝ specification:
⍝ exchange_p(q) = r where r(p(i)) = q(i)
C ← 3 1 2 ⍉ A ⍝ ⍴C = 3 4 2
⎕ ← 'C:'
⎕ ← C
⎕ ← +/C ⍝ --> 14 16 18 20
⍝ 22 24 26 28
⍝ 30 32 34 36
0
| APL | 5 | melsman/apltail | tests/dtransp.apl | [
"MIT"
] |
# Module reporter implements hits reporting strategies.
module reporter
import circular_buffer
import standard::console
# Hit is a matching hit in a file.
class Hit
# start_line is the line number of the first line in the buffer.
var start_line: Int
# TODO : will need a collection of hit_lines, since other hits may
# occur in the contextual before/after lines.
var hit_line: Int
# lines is the circular buffer holding the hit and potentially some
# contextual lines before and after the hit.
var lines: CircularBuffer
end
# Reporter is the interface the defines the report method.
interface Reporter
# report is the method that reports search hits for a single file.
fun report(path: String, hits: Array[Hit]) is abstract
end
# AckReporter is an ack-style reporter that displays colorized hits
# to stdout.
class AckReporter
super Reporter
private var reported_once = false
private var has_ctx = false
# create a reporter with the specified contextual lines.
init with_ctx_lines(before, after: Int) do
has_ctx = (before + after) > 0
end
redef fun report(path, hits) do
if reported_once then print("")
reported_once = true
if path.has_prefix("./") then path = path.substring_from(2)
print(path.green.bold)
# no need to sort hits by start_line, assume they are stored
# in the right order.
var line_no = 0
for hit in hits do
if has_ctx and line_no > 0 and hit.start_line != line_no then print("--".yellow)
line_no = hit.start_line
for line in hit.lines do
if line_no == hit.hit_line then
print("{line_no}:".yellow.bold + line)
else
print("{line_no}-".yellow.bold + line)
end
end
line_no += 1
end
end
end
| Nit | 5 | PuerkitoBio/nitfind | reporter.nit | [
"BSD-3-Clause"
] |
AddressInfo(real_interface 198.18.2.50 00:02:B3:BF:26:7A);
from :: FromHost(fake0, 198.18.2.50/28);
from_cl :: Classifier(12/0806 20/0001, // ARP request
12/0806 20/0002, // ARP response
12/0800); // IP packets
host_cl :: Classifier(12/0806 20/0001, // ARP request
12/0806 20/0002, // ARP response
12/0800); // IP packets
arpQ :: ARPQuerier(real_interface);
out :: Queue(200) -> LinkUnqueue(0.04s, 10000Mbps)
-> Queue(200)
-> ToDevice(eth1);
in :: PollDevice(eth1, PROMISC true);
from -> host_cl; // separate IP and ARP packets
// Just generate a bogus response. This is needed for the
// OS to just give us frames with the 1:1:1:1:1:1 dst
// and 0:1:2:3:4:5 src (default for fake0 device)
host_cl[0] //-> ARPPrint("Kernel ARP")
-> ARPResponder(0.0.0.0/0 1:1:1:1:1:1)
-> ToHost;
host_cl[1] -> Discard;
// ARPQuerier will make the right ethernet header for us
// we need to strip the prev eth header and check the IP
// packet validity. as arpQ expects well formed IP packets
host_cl[2] -> Strip(14)
-> CheckIPHeader(0, CHECKSUM true)
-> [0]arpQ
-> out;
//Idle -> arpQ -> Discard;
in -> Queue(200)
-> LinkUnqueue(0.04s, 10000Mbps)
-> from_cl;
// respond with the real MAC and not the fake
from_cl[0] //-> ARPPrint("Req")
-> ARPResponder(real_interface)
-> out;
// add comments
from_cl[1] //-> ARPPrint("Real ARP resp")
-> [1]arpQ;
// send out ARP queries from the Click ARPQuerier
arpQ[1] -> out;
// These are just non-ARP packets going to the host
from_cl[2] -> ToHost;
| Click | 4 | MacWR/Click-changed-for-ParaGraph | conf/localdelay.click | [
"Apache-2.0"
] |
' Licensed to the .NET Foundation under one or more agreements.
' The .NET Foundation licenses this file to you under the MIT license.
' See the LICENSE file in the project root for more information.
Imports System.Threading
Imports Microsoft.CodeAnalysis.CodeActions
Imports Microsoft.CodeAnalysis.CodeRefactorings
Imports Microsoft.CodeAnalysis.Editor.Implementation.Preview
Imports Microsoft.CodeAnalysis.Editor.UnitTests.Workspaces
Imports Microsoft.CodeAnalysis.Text
Namespace Microsoft.CodeAnalysis.Editor.VisualBasic.UnitTests.CodeRefactorings
Public Class PreviewTests
Inherits AbstractVisualBasicCodeActionTest
Private Const s_addedDocumentName As String = "AddedDocument"
Private Const s_addedDocumentText As String = "Class C1 : End Class"
Private Shared s_removedMetadataReferenceDisplayName As String = ""
Private Const s_addedProjectName As String = "AddedProject"
Private Shared ReadOnly s_addedProjectId As ProjectId = ProjectId.CreateNewId()
Private Const s_changedDocumentText As String = "Class C : End Class"
Protected Overrides Function CreateCodeRefactoringProvider(workspace As Workspace, parameters As TestParameters) As CodeRefactoringProvider
Return New MyCodeRefactoringProvider()
End Function
Private Class MyCodeRefactoringProvider : Inherits CodeRefactoringProvider
Public NotOverridable Overrides Function ComputeRefactoringsAsync(context As CodeRefactoringContext) As Task
Dim codeAction = New MyCodeAction(context.Document)
context.RegisterRefactoring(codeAction, context.Span)
Return Task.CompletedTask
End Function
Private Class MyCodeAction : Inherits CodeAction
Private ReadOnly _oldDocument As Document
Public Sub New(oldDocument As Document)
Me._oldDocument = oldDocument
End Sub
Public Overrides ReadOnly Property Title As String
Get
Return "Title"
End Get
End Property
Protected Overrides Function GetChangedSolutionAsync(cancellationToken As CancellationToken) As Task(Of Solution)
Dim solution = _oldDocument.Project.Solution
' Add a document - This will result in IWpfTextView previews.
solution = solution.AddDocument(DocumentId.CreateNewId(_oldDocument.Project.Id, s_addedDocumentName), s_addedDocumentName, s_addedDocumentText)
' Remove a reference - This will result in a string preview.
Dim removedReference = _oldDocument.Project.MetadataReferences.Last()
s_removedMetadataReferenceDisplayName = removedReference.Display
solution = solution.RemoveMetadataReference(_oldDocument.Project.Id, removedReference)
' Add a project - This will result in a string preview.
solution = solution.AddProject(ProjectInfo.Create(s_addedProjectId, VersionStamp.Create(), s_addedProjectName, s_addedProjectName, LanguageNames.CSharp))
' Change a document - This will result in IWpfTextView previews.
solution = solution.WithDocumentSyntaxRoot(_oldDocument.Id, VisualBasicSyntaxTree.ParseText(s_changedDocumentText).GetRoot())
Return Task.FromResult(solution)
End Function
End Class
End Class
Private Async Function GetMainDocumentAndPreviewsAsync(
parameters As TestParameters,
workspace As TestWorkspace) As Task(Of (document As Document, previews As SolutionPreviewResult))
Dim document = GetDocument(workspace)
Dim provider = CreateCodeRefactoringProvider(workspace, parameters)
Dim span = document.GetSyntaxRootAsync().Result.Span
Dim refactorings = New List(Of CodeAction)()
Dim context = New CodeRefactoringContext(document, span, Sub(a) refactorings.Add(a), CancellationToken.None)
provider.ComputeRefactoringsAsync(context).Wait()
Dim action = refactorings.Single()
Dim editHandler = workspace.ExportProvider.GetExportedValue(Of ICodeActionEditHandlerService)()
Dim previews = Await editHandler.GetPreviewsAsync(workspace, action.GetPreviewOperationsAsync(CancellationToken.None).Result, CancellationToken.None)
Return (document, previews)
End Function
<WpfFact(Skip:="https://github.com/dotnet/roslyn/issues/14421")>
Public Async Function TestPickTheRightPreview_NoPreference() As Task
Dim parameters As New TestParameters()
Using workspace = CreateWorkspaceFromOptions("Class D : End Class", parameters)
Dim tuple = Await GetMainDocumentAndPreviewsAsync(parameters, workspace)
Dim document = tuple.document
Dim previews = tuple.previews
' The changed document comes first.
Dim previewObjects = Await previews.GetPreviewsAsync()
Dim preview = previewObjects(0)
Assert.NotNull(preview)
Assert.True(TypeOf preview Is DifferenceViewerPreview)
Dim diffView = DirectCast(preview, DifferenceViewerPreview)
Dim text = diffView.Viewer.RightView.TextBuffer.AsTextContainer().CurrentText.ToString()
Assert.Equal(s_changedDocumentText, text)
diffView.Dispose()
' Then comes the removed metadata reference.
preview = previewObjects(1)
Assert.NotNull(preview)
Assert.True(TypeOf preview Is String)
text = DirectCast(preview, String)
Assert.Contains(s_removedMetadataReferenceDisplayName, text, StringComparison.Ordinal)
' And finally the added project.
preview = previewObjects(2)
Assert.NotNull(preview)
Assert.True(TypeOf preview Is String)
text = DirectCast(preview, String)
Assert.Contains(s_addedProjectName, text, StringComparison.Ordinal)
End Using
End Function
End Class
End Namespace
| Visual Basic | 4 | frandesc/roslyn | src/EditorFeatures/VisualBasicTest/CodeActions/Preview/PreviewTests.vb | [
"MIT"
] |
/*##############################################################################
HPCC SYSTEMS software Copyright (C) 2012 HPCC Systems®.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
############################################################################## */
outputRow(boolean showA = false, boolean showB = false, boolean showC = false, string aValue = 'abc', integer bValue = 10, boolean cValue = true) :=
output(IF(showA,' a='+aValue,'')+if(showB,' b='+(string)bValue,'')+if(showc,' c='+(string)cValue,''));
outputRow();
outputRow(true);
outputRow(,,true);
outputRow(named showB := true);
outputRow(true, named aValue := 'Changed value');
outputRow(,,,'Changed value2',named showA := true);
outputRow(showB := true);
outputRow(true, aValue := 'Changed value');
outputRow(,,,'Changed value2',showA := true);
boolean showA := false;
string showB := '';
outputRow(showB := true);
outputRow(true, aValue := 'Changed value',showB:=true);
outputRow(,,,'Changed value2',showA := true);
| ECL | 3 | miguelvazq/HPCC-Platform | ecl/regress/optional.ecl | [
"Apache-2.0"
] |
/****************************************************************************
*
* (c) 2009-2020 QGROUNDCONTROL PROJECT <http://www.qgroundcontrol.org>
*
* QGroundControl is licensed according to the terms in the file
* COPYING.md in the root of the source code directory.
*
****************************************************************************/
import QtQuick 2.3
import QtQuick.Controls 1.2
import QtQuick.Layouts 1.2
import QGroundControl 1.0
import QGroundControl.ScreenTools 1.0
import QGroundControl.Controls 1.0
import QGroundControl.FlightDisplay 1.0
import QGroundControl.Palette 1.0
/// Dialog showing list of available guided actions
Rectangle {
id: _root
width: actionColumn.width + (_margins * 4)
height: actionColumn.height + (_margins * 4)
radius: _margins / 2
color: qgcPal.window
opacity: 0.9
visible: false
property var guidedController
property var altitudeSlider
function show() {
visible = true
}
property real _margins: Math.round(ScreenTools.defaultFontPixelHeight * 0.66)
property real _actionWidth: ScreenTools.defaultFontPixelWidth * 25
property real _actionHorizSpacing: ScreenTools.defaultFontPixelHeight * 2
property var _model: [
{
title: guidedController.startMissionTitle,
text: guidedController.startMissionMessage,
action: guidedController.actionStartMission,
visible: guidedController.showStartMission
},
{
title: guidedController.continueMissionTitle,
text: guidedController.continueMissionMessage,
action: guidedController.actionContinueMission,
visible: guidedController.showContinueMission
},
{
title: guidedController.changeAltTitle,
text: guidedController.changeAltMessage,
action: guidedController.actionChangeAlt,
visible: guidedController.showChangeAlt
},
{
title: guidedController.landAbortTitle,
text: guidedController.landAbortMessage,
action: guidedController.actionLandAbort,
visible: guidedController.showLandAbort
}
]
QGCPalette { id: qgcPal }
DeadMouseArea {
anchors.fill: parent
}
ColumnLayout {
id: actionColumn
anchors.margins: _root._margins
anchors.centerIn: parent
spacing: _margins
QGCLabel {
text: qsTr("Select Action")
Layout.alignment: Qt.AlignHCenter
}
QGCFlickable {
contentWidth: actionRow.width
contentHeight: actionRow.height
Layout.minimumHeight: actionRow.height
Layout.maximumHeight: actionRow.height
Layout.minimumWidth: _width
Layout.maximumWidth: _width
property real _width: Math.min((_actionWidth * 2) + _actionHorizSpacing, actionRow.width)
RowLayout {
id: actionRow
spacing: _actionHorizSpacing
Repeater {
id: actionRepeater
model: _model
ColumnLayout {
spacing: ScreenTools.defaultFontPixelHeight / 2
visible: modelData.visible
Layout.fillHeight: true
QGCLabel {
id: actionMessage
text: modelData.text
horizontalAlignment: Text.AlignHCenter
wrapMode: Text.WordWrap
Layout.minimumWidth: _actionWidth
Layout.maximumWidth: _actionWidth
Layout.fillHeight: true
property real _width: ScreenTools.defaultFontPixelWidth * 25
}
QGCButton {
id: actionButton
text: modelData.title
Layout.alignment: Qt.AlignCenter
onClicked: {
_root.visible = false
guidedController.confirmAction(modelData.action)
}
}
}
}
}
}
}
QGCColoredImage {
anchors.margins: _margins
anchors.top: parent.top
anchors.right: parent.right
width: ScreenTools.defaultFontPixelHeight
height: width
sourceSize.height: width
source: "/res/XDelete.svg"
fillMode: Image.PreserveAspectFit
color: qgcPal.text
QGCMouseArea {
fillItem: parent
onClicked: _root.visible = false
}
}
}
| QML | 4 | uav-operation-system/qgroundcontrol | src/FlightDisplay/GuidedActionList.qml | [
"Apache-2.0"
] |
if ! (( $+commands[curl] )); then
echo "hitokoto plugin needs curl to work" >&2
return
fi
function hitokoto {
emulate -L zsh
Q=$(curl -s --connect-timeout 2 "https://v1.hitokoto.cn" | jq -j '.hitokoto+"\t"+.from')
TXT=$(echo "$Q" | awk -F '\t' '{print $1}')
WHO=$(echo "$Q" | awk -F '\t' '{print $2}')
[[ -n "$WHO" && -n "$TXT" ]] && print -P "%F{3}${WHO}%f: “%F{5}${TXT}%f”"
}
| Shell | 4 | chensanle/ohmyzsh | plugins/hitokoto/hitokoto.plugin.zsh | [
"MIT"
] |
FROM centos:latest
MAINTAINER hjkuijf
RUN yum update -y \
&& yum install wget unzip libXext libXt-devel libXmu -y \
&& mkdir /mcr-install \
&& cd /mcr-install \
&& wget -nv http://www.mathworks.com/supportfiles/downloads/R2016a/deployment_files/R2016a/installers/glnxa64/MCR_R2016a_glnxa64_installer.zip \
&& unzip MCR_R2016a_glnxa64_installer.zip \
&& ./install -mode silent -agreeToLicense yes \
&& rm -Rf /mcr-install
ENV LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/MATLAB/MATLAB_Runtime/v901/runtime/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/bin/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/os/glnxa64:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/java/jre/glnxa64/jre/lib/amd64/native_threads:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/java/jre/glnxa64/jre/lib/amd64/server:/usr/local/MATLAB/MATLAB_Runtime/v901/sys/java/jre/glnxa64/jre/lib/amd64
ENV XAPPLRESDIR=/usr/local/MATLAB/MATLAB_Runtime/v901/X11/app-defaults
ENV MCR_CACHE_VERBOSE=true
ENV MCR_CACHE_ROOT=/tmp
ADD matlab/bin/for_redistribution_files_only /wmhseg_example
RUN ["chmod", "+x", "/wmhseg_example/example"] | Matlab | 3 | hjkuijf/wmhchallenge | Dockerfile.matlab | [
"MIT"
] |
variable "project" {
type = string
description = "The project to manage resources in."
}
variable "region" {
type = string
description = "The region to manage resources in."
default = "us-central1"
}
variable "zone" {
type = string
description = "The zone to manage resources in."
default = "us-central1-a"
}
variable "nodes_per_zone" {
type = number
description = "The number of kubernetes nodes per zone"
default = 1
}
variable "cluster_name" {
type = string
description = "The name of the cluster, unique within the project and location."
default = "loadtest"
}
variable "node_locations" {
type = set(string)
description = "The list of zones in which the node pool's nodes should be located."
default = ["us-central1-b", "us-central1-f", "us-central1-c"]
}
variable "network" {
type = string
description = "The network to be used by the cluster"
default = "default-us-central1"
} | HCL | 4 | zouxifeng/teleport | assets/loadtest/cluster/variables.tf | [
"Apache-2.0"
] |
exec("swigtest.start", -1);
try
x = add(3, 4);
catch
swigtesterror();
end
if x <> 7 then swigtesterror(); end
try
y = subtract(3,4);
catch
swigtesterror();
end
if y <> -1 then swigtesterror(); end
try
z = mul(3,4);
catch
swigtesterror();
end
if z <> 12 then swigtesterror(); end
try
w = divide(3,4);
catch
swigtesterror();
end
if w <> 0 then swigtesterror(); end
exec("swigtest.quit", -1);
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/sneaky1_runme.sci | [
"BSD-3-Clause"
] |
.outer-container {
display: -ms-flexbox;
display: flex;
}
.HomePage-experiment-list-container {
width: 10%;
min-width: 333px;
}
.experiment-view-container {
width: 80%;
}
.experiment-view-right {
width: 10%;
}
/* BEGIN css for when experiment list collapsed */
.experiment-page-container {
width: 80%;
margin: 0 auto;
}
.collapsed-expander-container {
float: left;
}
.expander {
display: inline-block;
background-color: #082142d6;
color: #FFFFFF;
font-size: 16px;
line-height: 24px;
width: 24px;
height: 24px;
text-align: center;
vertical-align: bottom;
} | CSS | 4 | firebolt55439/ray | python/ray/tune/automlboard/static/css/HomePage.css | [
"Apache-2.0"
] |
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<html>
<head>
<script>
//<![CDATA[
if (window.testRunner)
testRunner.dumpAsText();
//]]>
</script>
</head>
<body>
Here is an image:
<img src="../resources/abe.png"/>
</body>
</html>
</xsl:template>
</xsl:stylesheet>
| XSLT | 3 | zealoussnow/chromium | third_party/blink/web_tests/http/tests/security/contentSecurityPolicy/resources/transform-to-img.xsl | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
.a {
color: red;
}
body {
background: orange;
}
| CSS | 2 | acidburn0zzz/parcel | packages/core/integration-tests/test/integration/shared-sibling/a.module.css | [
"MIT"
] |
@###############################################
@#
@# EmPy template for generating microRTPS_timesync.h file
@#
@###############################################
@# Start of Template
@#
@# Context:
@# - package (List[str]) messages package name. Defaulted to 'px4'
@# - ros2_distro (List[str]) ROS2 distro name
@###############################################
@{
import genmsg.msgs
from packaging import version
from px_generate_uorb_topic_files import MsgScope # this is in Tools/
package = package[0]
fastrtps_version = fastrtps_version[0]
try:
ros2_distro = ros2_distro[0].decode("utf-8")
except AttributeError:
ros2_distro = ros2_distro[0]
}@
/****************************************************************************
*
* Copyright (c) 2020-2021 PX4 Development Team. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are met:
*
* 1. Redistributions of source code must retain the above copyright notice, this
* list of conditions and the following disclaimer.
*
* 2. Redistributions in binary form must reproduce the above copyright notice,
* this list of conditions and the following disclaimer in the documentation
* and/or other materials provided with the distribution.
*
* 3. Neither the name of the copyright holder nor the names of its contributors
* may be used to endorse or promote products derived from this software without
* specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
* LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
* CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
* SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
* CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
* ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
****************************************************************************/
/*!
* @@file microRTPS_timesync.h
* @@brief Adds time sync for the microRTPS bridge
* @@author Nuno Marques <nuno.marques@@dronesolutions.io>
* @@author Julian Kent <julian@@auterion.com>
*/
#pragma once
#include <atomic>
#include <functional>
#include <thread>
@[if ros2_distro]@
#include "Timesync_Publisher.h"
#include "TimesyncStatus_Publisher.h"
#include <rcl/time.h>
#include <rclcpp/clock.hpp>
#include <rclcpp/rclcpp.hpp>
@[else]@
#include "timesync_Publisher.h"
#include "timesync_status_Publisher.h"
@[end if]@
static constexpr double ALPHA_INITIAL = 0.05;
static constexpr double ALPHA_FINAL = 0.003;
static constexpr double BETA_INITIAL = 0.05;
static constexpr double BETA_FINAL = 0.003;
static constexpr int WINDOW_SIZE = 500;
static constexpr int64_t UNKNOWN = 0;
static constexpr int64_t TRIGGER_RESET_THRESHOLD_NS = 100ll * 1000ll * 1000ll;
static constexpr int REQUEST_RESET_COUNTER_THRESHOLD = 5;
@# Sets the timesync DDS type according to the FastRTPS and ROS2 version
@[if version.parse(fastrtps_version) <= version.parse('1.7.2')]@
@[ if ros2_distro]@
using timesync_msg_t = @(package)::msg::dds_::Timesync_;
using timesync_status_msg_t = @(package)::msg::dds_::TimesyncStatus_;
@[ else]@
using timesync_msg_t = timesync_;
using timesync_status_msg_t = timesync_status_;
@[ end if]@
@[else]@
@[ if ros2_distro]@
using timesync_msg_t = @(package)::msg::Timesync;
using timesync_status_msg_t = @(package)::msg::TimesyncStatus;
@[ else]@
using timesync_msg_t = timesync;
using timesync_status_msg_t = timesync_status;
@[ end if]@
@[end if]@
@# Sets the timesync publisher entity depending on using ROS2 or not
@[if ros2_distro]@
using TimesyncPublisher = Timesync_Publisher;
using TimesyncStatusPublisher = TimesyncStatus_Publisher;
@[else]@
using TimesyncPublisher = timesync_Publisher;
using TimesyncStatusPublisher = timesync_status_Publisher;
@[end if]@
class TimeSync
{
public:
TimeSync(bool debug);
virtual ~TimeSync();
/**
* @@brief Starts the timesync publishing thread
* @@param[in] pub The timesync publisher entity to use
*/
void start(TimesyncPublisher *pub);
/**
* @@brief Init and run the timesync status publisher thread
* @@param[in] pub The timesync status publisher entity to use
*/
void init_status_pub(TimesyncStatusPublisher *status_pub);
/**
* @@brief Resets the filter
*/
void reset();
/**
* @@brief Stops the timesync publishing thread
*/
void stop();
@[if ros2_distro]@
/**
* @@brief Get ROS time in nanoseconds. This will match the system time, which
* corresponds to the system-wide real time since epoch. If use_sim_time
* is set, the simulation time is grabbed by the node and used instead
* More info about ROS2 clock and time in:
* https://design.ros2.org/articles/clock_and_time.html
* @@return ROS time in nanoseconds
*/
uint64_t getROSTimeNSec() const;
/**
* @@brief Get ROS time in microseconds. Fetches the time from getROSTimeNSec()
* and converts it to microseconds
* @@return ROS time in microseconds
*/
uint64_t getROSTimeUSec() const;
@[else]@
/**
* @@brief Get clock monotonic time (raw) in nanoseconds
* @@return Steady CLOCK_MONOTONIC time in nanoseconds
*/
uint64_t getSteadyTimeNSec() const;
/**
* @@brief Get clock monotonic time (raw) in microseconds
* @@return Steady CLOCK_MONOTONIC time in microseconds
*/
uint64_t getSteadyTimeUSec() const;
@[end if]@
/**
* @@brief Adds a time offset measurement to be filtered
* @@param[in] local_t1_ns The agent CLOCK_MONOTONIC_RAW time in nanoseconds when the message was sent
* @@param[in] remote_t2_ns The (client) remote CLOCK_MONOTONIC time in nanoseconds
* @@param[in] local_t3_ns The agent current CLOCK_MONOTONIC time in nanoseconds
* @@return true or false depending if the time offset was updated
*/
bool addMeasurement(int64_t local_t1_ns, int64_t remote_t2_ns, int64_t local_t3_ns);
/**
* @@brief Processes DDS timesync message
* @@param[in,out] msg The timestamp msg to be processed
*/
void processTimesyncMsg(timesync_msg_t *msg, TimesyncPublisher *pub);
/**
* @@brief Creates a new timesync DDS message to be sent from the agent to the client
* @@return A new timesync message with the origin in the agent and with the agent timestamp
*/
timesync_msg_t newTimesyncMsg();
/**
* @@brief Creates a new timesync status DDS message to be sent from the agent to the client
* @@return A new timesync status message with the origin in the agent and with the agent timestamp
*/
timesync_status_msg_t newTimesyncStatusMsg();
/**
* @@brief Get the time sync offset in nanoseconds
* @@return The offset in nanoseconds
*/
inline int64_t getOffset() { return _offset_ns.load(); }
/**
* @@brief Sums the time sync offset to the timestamp
* @@param[in,out] timestamp The timestamp to add the offset to
*/
inline void addOffset(uint64_t ×tamp) { timestamp = (timestamp * 1000LL + _offset_ns.load()) / 1000ULL; }
/**
* @@brief Substracts the time sync offset to the timestamp
* @@param[in,out] timestamp The timestamp to subtract the offset of
*/
inline void subtractOffset(uint64_t ×tamp) { timestamp = (timestamp * 1000LL - _offset_ns.load()) / 1000ULL; }
private:
std::atomic<int64_t> _offset_ns;
std::atomic<int64_t> _offset_prev;
std::atomic<uint64_t> _remote_time_stamp;
std::atomic<uint32_t> _rtti;
@[if ros2_distro]@
/**
* @@brief A ROS2 node to fetch the ROS time to be used for timesync
*/
std::shared_ptr<rclcpp::Node> _timesync_node;
@[end if]@
int64_t _skew_ns_per_sync;
int64_t _num_samples;
int32_t _request_reset_counter;
uint8_t _last_msg_seq;
uint8_t _last_remote_msg_seq;
bool _debug;
std::unique_ptr<std::thread> _send_timesync_thread;
std::unique_ptr<std::thread> _send_timesync_status_thread;
@[if ros2_distro]@
std::unique_ptr<std::thread> _timesync_node_thread;
@[end if]@
std::atomic<bool> _request_stop{false};
/**
* @@brief Updates the offset of the time sync filter
* @@param[in] offset The value of the offset to update to
*/
inline void updateOffset(const uint64_t &offset) { _offset_ns.store(offset, std::memory_order_relaxed); }
/** Timesync msg Getters **/
@[if version.parse(fastrtps_version) <= version.parse('1.7.2') or not ros2_distro]@
inline uint64_t getMsgTimestamp(const timesync_msg_t *msg) { return msg->timestamp_(); }
inline uint8_t getMsgSeq(const timesync_msg_t *msg) { return msg->seq_(); }
inline int64_t getMsgTC1(const timesync_msg_t *msg) { return msg->tc1_(); }
inline int64_t getMsgTS1(const timesync_msg_t *msg) { return msg->ts1_(); }
@[elif ros2_distro]@
inline uint64_t getMsgTimestamp(const timesync_msg_t *msg) { return msg->timestamp(); }
inline uint8_t getMsgSeq(const timesync_msg_t *msg) { return msg->seq(); }
inline int64_t getMsgTC1(const timesync_msg_t *msg) { return msg->tc1(); }
inline int64_t getMsgTS1(const timesync_msg_t *msg) { return msg->ts1(); }
@[end if]@
/** Common timestamp setter **/
@[if version.parse(fastrtps_version) <= version.parse('1.7.2') or not ros2_distro]@
template <typename T>
inline void setMsgTimestamp(T *msg, const uint64_t ×tamp) { msg->timestamp_() = timestamp; }
@[elif ros2_distro]@
template <typename T>
inline void setMsgTimestamp(T *msg, const uint64_t ×tamp) { msg->timestamp() = timestamp; }
@[end if]@
/** Timesync msg Setters **/
@[if version.parse(fastrtps_version) <= version.parse('1.7.2') or not ros2_distro]@
inline void setMsgSeq(timesync_msg_t *msg, const uint8_t &seq) { msg->seq_() = seq; }
inline void setMsgTC1(timesync_msg_t *msg, const int64_t &tc1) { msg->tc1_() = tc1; }
inline void setMsgTS1(timesync_msg_t *msg, const int64_t &ts1) { msg->ts1_() = ts1; }
@[elif ros2_distro]@
inline void setMsgSeq(timesync_msg_t *msg, const uint8_t &seq) { msg->seq() = seq; }
inline void setMsgTC1(timesync_msg_t *msg, const int64_t &tc1) { msg->tc1() = tc1; }
inline void setMsgTS1(timesync_msg_t *msg, const int64_t &ts1) { msg->ts1() = ts1; }
@[end if]@
/** Timesync Status msg Setters **/
@[if version.parse(fastrtps_version) <= version.parse('1.7.2') or not ros2_distro]@
inline void setMsgSourceProtocol(timesync_status_msg_t *msg, const uint8_t &source_protocol) { msg->source_protocol_() = source_protocol; }
inline void setMsgRemoteTimeStamp(timesync_status_msg_t *msg, const uint64_t &remote_timestamp) { msg->remote_timestamp_() = remote_timestamp; }
inline void setMsgObservedOffset(timesync_status_msg_t *msg, const int64_t &observed_offset) { msg->observed_offset_() = observed_offset; }
inline void setMsgEstimatedOffset(timesync_status_msg_t *msg, const int64_t &estimated_offset) { msg->estimated_offset_() = estimated_offset; }
inline void setMsgRoundTripTime(timesync_status_msg_t *msg, const uint32_t &round_trip_time) { msg->round_trip_time_() = round_trip_time; }
@[elif ros2_distro]@
inline void setMsgSourceProtocol(timesync_status_msg_t *msg, const uint8_t &source_protocol) { msg->source_protocol() = source_protocol; }
inline void setMsgRemoteTimeStamp(timesync_status_msg_t *msg, const uint64_t &remote_timestamp) { msg->remote_timestamp() = remote_timestamp; }
inline void setMsgObservedOffset(timesync_status_msg_t *msg, const int64_t &observed_offset) { msg->observed_offset() = observed_offset; }
inline void setMsgEstimatedOffset(timesync_status_msg_t *msg, const int64_t &estimated_offset) { msg->estimated_offset() = estimated_offset; }
inline void setMsgRoundTripTime(timesync_status_msg_t *msg, const uint32_t &round_trip_time) { msg->round_trip_time() = round_trip_time; }
@[end if]@
};
| EmberScript | 5 | lgarciaos/Firmware | msg/templates/urtps/microRTPS_timesync.h.em | [
"BSD-3-Clause"
] |
hibernate.connection.driver_class=org.h2.Driver
hibernate.connection.url=jdbc:h2:mem:mydb1;DB_CLOSE_DELAY=-1
hibernate.connection.username=sa
hibernate.connection.autocommit=true
jdbc.password=
hibernate.dialect=org.hibernate.dialect.H2Dialect
hibernate.show_sql=true
hibernate.hbm2ddl.auto=create-drop
hibernate.c3p0.min_size=5
hibernate.c3p0.max_size=20
hibernate.c3p0.acquire_increment=5
hibernate.c3p0.timeout=1800
| INI | 3 | DBatOWL/tutorials | persistence-modules/hibernate-queries/src/test/resources/hibernate.properties | [
"MIT"
] |
/**
*
*/
import Util;
import OpenApi;
import OpenApiUtil;
import EndpointUtil;
extends OpenApi;
init(config: OpenApi.Config){
super(config);
@endpointRule = 'regional';
checkConfig(config);
@endpoint = getEndpoint('gemp', @regionId, @endpointRule, @network, @suffix, @endpointMap, @endpoint);
}
function getEndpoint(productId: string, regionId: string, endpointRule: string, network: string, suffix: string, endpointMap: map[string]string, endpoint: string) throws: string{
if (!Util.empty(endpoint)) {
return endpoint;
}
if (!Util.isUnset(endpointMap) && !Util.empty(endpointMap[regionId])) {
return endpointMap[regionId];
}
return EndpointUtil.getEndpointRules(productId, regionId, endpointRule, network, suffix);
}
model ListIncidentTimelinesRequest {
clientToken?: string(name='clientToken', description='幂等校验Id'),
pageNumber?: long(name='pageNumber', description='页'),
pageSize?: long(name='pageSize', description='行'),
}
model ListIncidentTimelinesResponseBody = {
requestId?: string(name='requestId'),
data?: [
{
title?: string(name='title', description='动态'),
description?: long(name='description', description='描述'),
remark?: string(name='remark', description='备注'),
relatedServiceName?: string(name='relatedServiceName', description='服务名称'),
createTime?: string(name='createTime', description='创建时间'),
incidentTitle?: string(name='incidentTitle', description='事件标题'),
action?: string(name='action', description='动态类型 触发新增 INCIDENT_ADD 响应 INCIDENT_RESPONSE 转交 INCIDENT_DELIVER 变更 INCIDENT_UPDATE 添加小计 INCIDENT_ADD_SUBTOTAL 完结 INCIDENT_FINISH 分配 INCIDENT_ASSIGN 升级 INCIDENT_UPGRAD'),
incidentId?: long(name='incidentId', description='事件Id'),
}
](name='data'),
totalCount?: int32(name='totalCount', description='总数'),
pageNumber?: int32(name='pageNumber'),
pageSize?: int32(name='pageSize'),
}
model ListIncidentTimelinesResponse = {
headers: map[string]string(name='headers'),
body: ListIncidentTimelinesResponseBody(name='body'),
}
async function listIncidentTimelines(request: ListIncidentTimelinesRequest): ListIncidentTimelinesResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listIncidentTimelinesWithOptions(request, headers, runtime);
}
async function listIncidentTimelinesWithOptions(request: ListIncidentTimelinesRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListIncidentTimelinesResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListIncidentTimelines', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/timeline`, 'json', req, runtime);
}
model ListUsersRequest {
username?: string(name='username', description='人员名称'),
phone?: string(name='phone', description='人员手机号'),
ramId?: string(name='ramId', description='ramID'),
scene?: long(name='scene', description='USER_LIST列表 ALL_USERS下拉'),
clientToken?: string(name='clientToken', description='clientToken'),
pageNumber?: long(name='pageNumber', description='分页参数'),
pageSize?: long(name='pageSize', description='分页参数'),
synergyChannel?: string(name='synergyChannel', description='移动应用协同渠道'),
}
model ListUsersResponseBody = {
requestId?: string(name='requestId', description='id of the request'),
data?: [
{
userId?: long(name='userId', description='用户id'),
ramId?: long(name='ramId', description='子账号ramId'),
username?: string(name='username', description='用户名'),
phone?: string(name='phone', description='手机'),
email?: string(name='email', description='邮箱'),
isEditableUser?: long(name='isEditableUser', description='是否可编辑'),
accountType?: long(name='accountType', description='账户类型'),
appAccount?: string(name='appAccount', description='移动应用账户'),
synergyChannel?: string(name='synergyChannel', description='移动应用协同渠道'),
isRelated?: string(name='isRelated', description='是否关联'),
}
](name='data', description='data'),
totalCount?: long(name='totalCount', description='总条数'),
pageNumber?: long(name='pageNumber', description='分页'),
pageSize?: long(name='pageSize', description='分页'),
}
model ListUsersResponse = {
headers: map[string]string(name='headers'),
body: ListUsersResponseBody(name='body'),
}
async function listUsers(request: ListUsersRequest): ListUsersResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listUsersWithOptions(request, headers, runtime);
}
async function listUsersWithOptions(request: ListUsersRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListUsersResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.username)) {
body.username = request.username;
}
if (!Util.isUnset(request.phone)) {
body.phone = request.phone;
}
if (!Util.isUnset(request.ramId)) {
body.ramId = request.ramId;
}
if (!Util.isUnset(request.scene)) {
body.scene = request.scene;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
if (!Util.isUnset(request.synergyChannel)) {
body.synergyChannel = request.synergyChannel;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListUsers', '2021-04-13', 'HTTPS', 'POST', 'AK', `/user/list`, 'json', req, runtime);
}
model UpdateServiceGroupSchedulingRequest {
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
schedulingWay?: string(name='schedulingWay', description='排班方式 FAST 快速排班 FINE 精细排班'),
fastScheduling?: {
singleDuration?: int32(name='singleDuration', description='每人排班时长'),
dutyPlan?: string(name='dutyPlan', description='值班方案 dutyPlan FAST_CHOICE 快速选择 CUSTOM 自定义'),
singleDurationUnit?: string(name='singleDurationUnit', description='每人排班时长单位 HOUR 小时 DAY 天'),
schedulingUsers?: [
{
schedulingUserId?: long(name='schedulingUserId', description='轮班用户ID'),
schedulingOrder?: int32(name='schedulingOrder', description='排班顺序'),
}
](name='schedulingUsers', description='快速轮班用户'),
id?: long(name='id', description='快速排班ID'),
}(name='fastScheduling', description='快速排班'),
fineScheduling?: {
period?: int32(name='period', description='循环周期'),
periodUnit?: string(name='periodUnit', description='循环周期单位 HOUR 小时 DAY 天'),
shiftType?: string(name='shiftType', description='班次类型 MORNING_NIGHT 早晚班 MORNING_NOON_NIGHT 早中晚班 CUSTOM 自定义'),
schedulingFineShifts?: [
{
schedulingStartTime?: string(name='schedulingStartTime', description='排班开始时间'),
schedulingEndTime?: string(name='schedulingEndTime', description='排班结束时间'),
schedulingOrder?: long(name='schedulingOrder', description='排班顺序'),
shiftName?: string(name='shiftName', description='班次名称'),
skipOneDay?: boolean(name='skipOneDay', description='是否跨天'),
schedulingUserId?: long(name='schedulingUserId', description='排班用户ID'),
cycleOrder?: int32(name='cycleOrder', description='轮训次序'),
}
](name='schedulingFineShifts', description='精细排班班次人员信息'),
schedulingTemplateFineShifts?: [
{
schedulingStartTime?: string(name='schedulingStartTime', description='排班开始时间'),
schedulingEndTime?: string(name='schedulingEndTime', description='排班结束时间'),
schedulingOrder?: int32(name='schedulingOrder', description='排班顺序'),
schedulingUserId?: long(name='schedulingUserId', description='排班用户ID'),
shiftName?: string(name='shiftName', description='班次名称'),
skipOneDay?: boolean(name='skipOneDay', description='是否跨天'),
}
](name='schedulingTemplateFineShifts', description='精细排班模版'),
id?: long(name='id', description='精细排班ID'),
}(name='fineScheduling', description='精细排班'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model UpdateServiceGroupSchedulingResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model UpdateServiceGroupSchedulingResponse = {
headers: map[string]string(name='headers'),
body: UpdateServiceGroupSchedulingResponseBody(name='body'),
}
async function updateServiceGroupScheduling(request: UpdateServiceGroupSchedulingRequest): UpdateServiceGroupSchedulingResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateServiceGroupSchedulingWithOptions(request, headers, runtime);
}
async function updateServiceGroupSchedulingWithOptions(request: UpdateServiceGroupSchedulingRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateServiceGroupSchedulingResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.schedulingWay)) {
body.schedulingWay = request.schedulingWay;
}
if (!Util.isUnset(request.fastScheduling)) {
body.fastScheduling = request.fastScheduling;
}
if (!Util.isUnset(request.fineScheduling)) {
body.fineScheduling = request.fineScheduling;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateServiceGroupScheduling', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/scheduling/update`, 'json', req, runtime);
}
model ListRouteRulesRequest {
ruleName?: bytes(name='ruleName', description='规则名称'),
serviceName?: bytes(name='serviceName', description='服务名称'),
pageNumber?: int32(name='pageNumber', description='第几页'),
pageSize?: int32(name='pageSize', description='页的大小'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model ListRouteRulesResponseBody = {
requestId?: string(name='requestId', description='请求ID'),
data?: [
{
routeRuleId?: long(name='routeRuleId', description='规则ID'),
tenantRamId?: long(name='tenantRamId', description='租户ID'),
ruleName?: string(name='ruleName', description='规则名称'),
relatedServiceName?: string(name='relatedServiceName', description='服务名称'),
timeWindow?: long(name='timeWindow', description='时间窗口'),
matchCount?: long(name='matchCount', description='命中次数'),
timeWindowUnit?: long(name='timeWindowUnit', description='时间窗口单位 MINUTE 分钟 SECOND 秒'),
relatedServiceId?: long(name='relatedServiceId', description='关联服务ID'),
routeType?: string(name='routeType', description='路由类型:INCIDENT 触发事件 ALERT 仅触发报警'),
incidentLevel?: string(name='incidentLevel', description='事件级别 P1 P2 P3 P4'),
assignObjectId?: long(name='assignObjectId', description='事件分派对象ID(服务组ID 或用户ID)'),
assignObjectType?: string(name='assignObjectType', description='事件分派对象类型 SERVICEGROUP 服务组 USER 单个用户'),
effection?: string(name='effection', description='影响程度 LOW-一般 HIGH-严重'),
createTime?: string(name='createTime', description='创建时间'),
updateTime?: string(name='updateTime', description='修改时间'),
enableStatus?: string(name='enableStatus', description='是否启用 DISABLE禁用. ENABLE 启用'),
}
](name='data', description='规则列表'),
totalCount?: long(name='totalCount', description='总条数'),
pageNumber?: long(name='pageNumber', description='第几页'),
pageSize?: long(name='pageSize', description='分页大小'),
}
model ListRouteRulesResponse = {
headers: map[string]string(name='headers'),
body: ListRouteRulesResponseBody(name='body'),
}
async function listRouteRules(request: ListRouteRulesRequest): ListRouteRulesResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listRouteRulesWithOptions(request, headers, runtime);
}
async function listRouteRulesWithOptions(request: ListRouteRulesRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListRouteRulesResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.ruleName)) {
body.ruleName = request.ruleName;
}
if (!Util.isUnset(request.serviceName)) {
body.serviceName = request.serviceName;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListRouteRules', '2021-04-13', 'HTTPS', 'POST', 'AK', `/routeRule/list`, 'json', req, runtime);
}
model DisableSubscriptionRequest {
subscriptionId?: long(name='subscriptionId'),
}
model DisableSubscriptionResponseBody = {
requestId?: string(name='requestId'),
}
model DisableSubscriptionResponse = {
headers: map[string]string(name='headers'),
body: DisableSubscriptionResponseBody(name='body'),
}
async function disableSubscription(request: DisableSubscriptionRequest): DisableSubscriptionResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return disableSubscriptionWithOptions(request, headers, runtime);
}
async function disableSubscriptionWithOptions(request: DisableSubscriptionRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DisableSubscriptionResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.subscriptionId)) {
body.subscriptionId = request.subscriptionId;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DisableSubscription', '2021-04-13', 'HTTPS', 'POST', 'AK', `/notify/subscription/doDisable`, 'json', req, runtime);
}
model ListProblemSubtotalsRequest {
problemId?: long(name='problemId', description='故障Id'),
clientToken?: string(name='clientToken', description='幂等校验token'),
}
model ListProblemSubtotalsResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: [
{
description?: string(name='description', description='描述'),
createTime?: string(name='createTime', description='创建时间'),
createRamName?: string(name='createRamName', description='操作人'),
createUserPhone?: string(name='createUserPhone', description='操作人手机号'),
}
](name='data'),
}
model ListProblemSubtotalsResponse = {
headers: map[string]string(name='headers'),
body: ListProblemSubtotalsResponseBody(name='body'),
}
async function listProblemSubtotals(request: ListProblemSubtotalsRequest): ListProblemSubtotalsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listProblemSubtotalsWithOptions(request, headers, runtime);
}
async function listProblemSubtotalsWithOptions(request: ListProblemSubtotalsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListProblemSubtotalsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListProblemSubtotals', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/list/subtotal`, 'json', req, runtime);
}
model ListEscalationPlanServicesRequest {
clientToken?: string(name='clientToken', description='clientToken'),
}
model ListEscalationPlanServicesResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: [
{
scope?: string(name='scope', description='范围类型'),
scopeObjectId?: long(name='scopeObjectId', description='范围对象id'),
}
](name='data', description='data'),
}
model ListEscalationPlanServicesResponse = {
headers: map[string]string(name='headers'),
body: ListEscalationPlanServicesResponseBody(name='body'),
}
async function listEscalationPlanServices(request: ListEscalationPlanServicesRequest): ListEscalationPlanServicesResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listEscalationPlanServicesWithOptions(request, headers, runtime);
}
async function listEscalationPlanServicesWithOptions(request: ListEscalationPlanServicesRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListEscalationPlanServicesResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListEscalationPlanServices', '2021-04-13', 'HTTPS', 'POST', 'AK', `/escalationPlan/services`, 'json', req, runtime);
}
model GetResourceStatisticsRequest {
clientToken?: string(name='clientToken', description='幂等校验'),
}
model GetResourceStatisticsResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
incidentCount?: int32(name='incidentCount', description='事件总数'),
alertCount?: int32(name='alertCount', description='报警总数'),
problemCount?: int32(name='problemCount', description='故障总数'),
integrationCount?: int32(name='integrationCount', description='集成总数'),
}(name='data', description='data'),
}
model GetResourceStatisticsResponse = {
headers: map[string]string(name='headers'),
body: GetResourceStatisticsResponseBody(name='body'),
}
async function getResourceStatistics(request: GetResourceStatisticsRequest): GetResourceStatisticsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getResourceStatisticsWithOptions(request, headers, runtime);
}
async function getResourceStatisticsWithOptions(request: GetResourceStatisticsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetResourceStatisticsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetResourceStatistics', '2021-04-13', 'HTTPS', 'POST', 'AK', `/config/resource/count`, 'json', req, runtime);
}
model CreateRouteRuleRequest {
ruleName?: bytes(name='ruleName', description='规则名称'),
enableStatus?: string(name='enableStatus', description='启用状态'),
relatedServiceId?: long(name='relatedServiceId', description='关联服务ID'),
routeType?: string(name='routeType', description='路由类型:INCIDENT 触发事件 ALERT仅触发报警'),
incidentLevel?: string(name='incidentLevel', description='事件级别 P1 P2 P3 P4'),
assignObjectId?: long(name='assignObjectId', description='事件分派对象ID(服务组ID 或用户ID)'),
assignObjectType?: string(name='assignObjectType', description='事件分派对象类型 SERVICEGROUP服务组 USER 单个用户'),
effection?: string(name='effection', description='影响程度 LOW-一般 HIGH-严重'),
timeWindow?: long(name='timeWindow', description='时间窗口'),
matchCount?: int32(name='matchCount', description='命中次数'),
timeWindowUnit?: string(name='timeWindowUnit', description='时间窗口单位 MINUTE 分钟 SECOND 秒'),
routeChildRules?: [
{
monitorSourceId?: long(name='monitorSourceId', description='监控源ID'),
conditions?: [
{
key?: string(name='key', description='字段名称'),
value?: string(name='value', description='字段值'),
operationSymbol?: string(name='operationSymbol', description='操作符号:notContain 不包含;contain 包含;equals 等于;notEquals 不等于;'),
}
](name='conditions', description='条件'),
}
](name='routeChildRules', description='子规则'),
notifyChannels?: [ string ](name='notifyChannels', description='通知渠道。 SMS 短信 EMAIL 邮件 PHONE电话 WEIXIN_GROUP 企微群 DING_GROUP钉钉群'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model CreateRouteRuleResponseBody = {
requestId?: string(name='requestId', description='请求'),
data?: {
routeRuleId?: long(name='routeRuleId', description='规则ID'),
}(name='data', description='结果'),
}
model CreateRouteRuleResponse = {
headers: map[string]string(name='headers'),
body: CreateRouteRuleResponseBody(name='body'),
}
async function createRouteRule(request: CreateRouteRuleRequest): CreateRouteRuleResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createRouteRuleWithOptions(request, headers, runtime);
}
async function createRouteRuleWithOptions(request: CreateRouteRuleRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateRouteRuleResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.ruleName)) {
body.ruleName = request.ruleName;
}
if (!Util.isUnset(request.enableStatus)) {
body.enableStatus = request.enableStatus;
}
if (!Util.isUnset(request.relatedServiceId)) {
body.relatedServiceId = request.relatedServiceId;
}
if (!Util.isUnset(request.routeType)) {
body.routeType = request.routeType;
}
if (!Util.isUnset(request.incidentLevel)) {
body.incidentLevel = request.incidentLevel;
}
if (!Util.isUnset(request.assignObjectId)) {
body.assignObjectId = request.assignObjectId;
}
if (!Util.isUnset(request.assignObjectType)) {
body.assignObjectType = request.assignObjectType;
}
if (!Util.isUnset(request.effection)) {
body.effection = request.effection;
}
if (!Util.isUnset(request.timeWindow)) {
body.timeWindow = request.timeWindow;
}
if (!Util.isUnset(request.matchCount)) {
body.matchCount = request.matchCount;
}
if (!Util.isUnset(request.timeWindowUnit)) {
body.timeWindowUnit = request.timeWindowUnit;
}
if (!Util.isUnset(request.routeChildRules)) {
body.routeChildRules = request.routeChildRules;
}
if (!Util.isUnset(request.notifyChannels)) {
body.notifyChannels = request.notifyChannels;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateRouteRule', '2021-04-13', 'HTTPS', 'POST', 'AK', `/routeRule/save`, 'json', req, runtime);
}
model UpdateProblemTimelineRequest {
problemTimelineId?: long(name='problemTimelineId', description='时间节点id'),
keyNode?: string(name='keyNode', description='关键节点 码表:PROBLEM_KEY_NODE (逗号分隔)'),
content?: string(name='content', description='节点内容'),
time?: string(name='time', description='发生时间'),
problemId?: long(name='problemId', description='故障id'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model UpdateProblemTimelineResponseBody = {
requestId?: string(name='requestId'),
}
model UpdateProblemTimelineResponse = {
headers: map[string]string(name='headers'),
body: UpdateProblemTimelineResponseBody(name='body'),
}
async function updateProblemTimeline(request: UpdateProblemTimelineRequest): UpdateProblemTimelineResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateProblemTimelineWithOptions(request, headers, runtime);
}
async function updateProblemTimelineWithOptions(request: UpdateProblemTimelineRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateProblemTimelineResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemTimelineId)) {
body.problemTimelineId = request.problemTimelineId;
}
if (!Util.isUnset(request.keyNode)) {
body.keyNode = request.keyNode;
}
if (!Util.isUnset(request.content)) {
body.content = request.content;
}
if (!Util.isUnset(request.time)) {
body.time = request.time;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateProblemTimeline', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/process/timeline/update`, 'json', req, runtime);
}
model DisableRouteRuleRequest {
routeRuleId?: long(name='routeRuleId', description='请求ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model DisableRouteRuleResponseBody = {
requestId?: string(name='requestId', description='请求ID'),
data?: long(name='data', description='C4BE3837-1A13-413B-A225-2C88188E8A43'),
}
model DisableRouteRuleResponse = {
headers: map[string]string(name='headers'),
body: DisableRouteRuleResponseBody(name='body'),
}
async function disableRouteRule(request: DisableRouteRuleRequest): DisableRouteRuleResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return disableRouteRuleWithOptions(request, headers, runtime);
}
async function disableRouteRuleWithOptions(request: DisableRouteRuleRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DisableRouteRuleResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.routeRuleId)) {
body.routeRuleId = request.routeRuleId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DisableRouteRule', '2021-04-13', 'HTTPS', 'POST', 'AK', `/routeRule/disable`, 'json', req, runtime);
}
model GetTenantApplicationRequest {
clientToken?: string(name='clientToken', description='幂等标识'),
}
model GetTenantApplicationResponseBody = {
data?: {
corporationId?: string(name='corporationId', description='企业id'),
bizId?: string(name='bizId', description='业务id'),
progress?: string(name='progress', description='进度'),
channel?: string(name='channel', description='云钉协同渠道'),
}(name='data', description='data'),
requestId?: string(name='requestId', description='id of the request'),
}
model GetTenantApplicationResponse = {
headers: map[string]string(name='headers'),
body: GetTenantApplicationResponseBody(name='body'),
}
async function getTenantApplication(request: GetTenantApplicationRequest): GetTenantApplicationResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getTenantApplicationWithOptions(request, headers, runtime);
}
async function getTenantApplicationWithOptions(request: GetTenantApplicationRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetTenantApplicationResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetTenantApplication', '2021-04-13', 'HTTPS', 'POST', 'AK', `/mobileApp/detail`, 'json', req, runtime);
}
model GenerateProblemPictureUploadSignRequest {
fileName?: string(name='fileName', description='文件名'),
fileType?: string(name='fileType', description='文件类型'),
fileSize?: long(name='fileSize', description='文件大小KB'),
problemId?: long(name='problemId', description='故障id'),
}
model GenerateProblemPictureUploadSignResponseBody = {
requestId?: string(name='requestId', description='requestId'),
data?: {
bucketName?: string(name='bucketName', description='oss bucket name'),
key?: string(name='key', description='oss key'),
policy?: string(name='policy', description='policy'),
signature?: string(name='signature', description='signature'),
url?: string(name='url', description='url'),
accessKeyId?: string(name='accessKeyId', description='ossaccessKeyId'),
}(name='data'),
}
model GenerateProblemPictureUploadSignResponse = {
headers: map[string]string(name='headers'),
body: GenerateProblemPictureUploadSignResponseBody(name='body'),
}
async function generateProblemPictureUploadSign(request: GenerateProblemPictureUploadSignRequest): GenerateProblemPictureUploadSignResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return generateProblemPictureUploadSignWithOptions(request, headers, runtime);
}
async function generateProblemPictureUploadSignWithOptions(request: GenerateProblemPictureUploadSignRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GenerateProblemPictureUploadSignResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.fileName)) {
body.fileName = request.fileName;
}
if (!Util.isUnset(request.fileType)) {
body.fileType = request.fileType;
}
if (!Util.isUnset(request.fileSize)) {
body.fileSize = request.fileSize;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GenerateProblemPictureUploadSign', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/process/oss/generatePostPolicy`, 'json', req, runtime);
}
model DeliverIncidentRequest {
incidentId?: long(name='incidentId', description='事件ID'),
assignUserId?: long(name='assignUserId', description='转交用户ID'),
clientToken?: string(name='clientToken', description='幂等校验id'),
}
model DeliverIncidentResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DeliverIncidentResponse = {
headers: map[string]string(name='headers'),
body: DeliverIncidentResponseBody(name='body'),
}
async function deliverIncident(request: DeliverIncidentRequest): DeliverIncidentResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deliverIncidentWithOptions(request, headers, runtime);
}
async function deliverIncidentWithOptions(request: DeliverIncidentRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeliverIncidentResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentId)) {
body.incidentId = request.incidentId;
}
if (!Util.isUnset(request.assignUserId)) {
body.assignUserId = request.assignUserId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeliverIncident', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/deliver`, 'json', req, runtime);
}
model GetEscalationPlanRequest {
escalationPlanId?: long(name='escalationPlanId', description='升级计划id'),
clientToken?: string(name='clientToken', description='幂等标识'),
}
model GetEscalationPlanResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
escalationPlanId?: long(name='escalationPlanId', description='升级计划id'),
escalationPlanName?: string(name='escalationPlanName', description='升级计划名称'),
escalationPlanDescription?: string(name='escalationPlanDescription', description='升级计划描述'),
escalationPlanScopeObjects?: [
{
scopeObjectId?: long(name='scopeObjectId', description='范围对象id'),
scope?: string(name='scope', description='范围对象类型'),
scopeObjectName?: string(name='scopeObjectName', description='范围对象名称'),
}
](name='escalationPlanScopeObjects', description='升级计划范围对象列表'),
escalationPlanRules?: [
{
escalationPlanRuleId?: long(name='escalationPlanRuleId', description='升级计划id'),
escalationPlanConditions?: [
{
level?: string(name='level', description='事件等级'),
effection?: string(name='effection', description='影响等级'),
}
](name='escalationPlanConditions', description='升级计划条件'),
escalationPlanStrategies?: [
{
noticeTime?: long(name='noticeTime', description='通知时间'),
escalationPlanType?: string(name='escalationPlanType', description='升级计划类型'),
noticeObjectList?: [
{
noticeObjectId?: long(name='noticeObjectId', description='通知对象id'),
noticeObjectName?: string(name='noticeObjectName', description='通知对象名称'),
}
](name='noticeObjectList', description='通知对象列表'),
noticeChannels?: string(name='noticeChannels', description='通知对象渠道'),
}
](name='escalationPlanStrategies', description='升级计划策略'),
}
](name='escalationPlanRules', description='升级计划规则列表'),
createTime?: string(name='createTime', description='创建时间'),
}(name='data', description='data'),
}
model GetEscalationPlanResponse = {
headers: map[string]string(name='headers'),
body: GetEscalationPlanResponseBody(name='body'),
}
async function getEscalationPlan(request: GetEscalationPlanRequest): GetEscalationPlanResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getEscalationPlanWithOptions(request, headers, runtime);
}
async function getEscalationPlanWithOptions(request: GetEscalationPlanRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetEscalationPlanResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.escalationPlanId)) {
body.escalationPlanId = request.escalationPlanId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetEscalationPlan', '2021-04-13', 'HTTPS', 'POST', 'AK', `/escalationPlan/detail`, 'json', req, runtime);
}
model DeleteProblemEffectionServiceRequest {
effectionServiceId?: long(name='effectionServiceId', description='影响服务ID'),
problemId?: long(name='problemId', description='故障id'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model DeleteProblemEffectionServiceResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DeleteProblemEffectionServiceResponse = {
headers: map[string]string(name='headers'),
body: DeleteProblemEffectionServiceResponseBody(name='body'),
}
async function deleteProblemEffectionService(request: DeleteProblemEffectionServiceRequest): DeleteProblemEffectionServiceResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteProblemEffectionServiceWithOptions(request, headers, runtime);
}
async function deleteProblemEffectionServiceWithOptions(request: DeleteProblemEffectionServiceRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteProblemEffectionServiceResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.effectionServiceId)) {
body.effectionServiceId = request.effectionServiceId;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteProblemEffectionService', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/process/effectionService/delete`, 'json', req, runtime);
}
model ListIncidentsRequest {
incidentLevel?: string(name='incidentLevel', description='事件级别 P1 P2 P3 P4'),
pageNumber?: int32(name='pageNumber', description='页'),
pageSize?: int32(name='pageSize', description='行'),
effect?: string(name='effect', description='影响等级 高:HIGH 低 LOW'),
relationServiceId?: long(name='relationServiceId', description='关联服务ID'),
incidentStatus?: string(name='incidentStatus', description='事件状态 ASSIGNED已分派 RESPONDED已响应 FINISHED已完结'),
me?: int32(name='me', description='是否自己 1是 0不是'),
clientToken?: string(name='clientToken', description='幂等校验id'),
}
model ListIncidentsResponseBody = {
requestId?: string(name='requestId', description='requestId'),
data?: [
{
incidentId?: long(name='incidentId'),
routeRuleId?: long(name='routeRuleId', description='流转规则ID'),
routeRuleName?: string(name='routeRuleName'),
incidentStatus?: string(name='incidentStatus', description='事件状态 0已分派 1已响应 2已完结'),
incidentLevel?: string(name='incidentLevel', description='事件级别 P1 P2 P3 P4'),
relatedServiceId?: long(name='relatedServiceId', description='关联服务ID'),
relatedServiceName?: string(name='relatedServiceName', description='关联服务名称'),
effect?: string(name='effect', description='影响等级 高:HIGH 低 LOW'),
assignUserId?: long(name='assignUserId', description='分派的用户ID'),
assignUserName?: string(name='assignUserName', description='分派的用户姓名'),
assignUserPhone?: string(name='assignUserPhone', description='分派人手机号'),
incidentTitle?: string(name='incidentTitle', description='事件标题'),
createTime?: string(name='createTime', description='创建时间'),
isManual?: boolean(name='isManual', description='事件来源 是=手动 否=自动'),
}
](name='data'),
totalCount?: int32(name='totalCount', description='总数'),
pageNumber?: int32(name='pageNumber', description='页'),
pageSize?: int32(name='pageSize', description='行'),
}
model ListIncidentsResponse = {
headers: map[string]string(name='headers'),
body: ListIncidentsResponseBody(name='body'),
}
async function listIncidents(request: ListIncidentsRequest): ListIncidentsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listIncidentsWithOptions(request, headers, runtime);
}
async function listIncidentsWithOptions(request: ListIncidentsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListIncidentsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentLevel)) {
body.incidentLevel = request.incidentLevel;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
if (!Util.isUnset(request.effect)) {
body.effect = request.effect;
}
if (!Util.isUnset(request.relationServiceId)) {
body.relationServiceId = request.relationServiceId;
}
if (!Util.isUnset(request.incidentStatus)) {
body.incidentStatus = request.incidentStatus;
}
if (!Util.isUnset(request.me)) {
body.me = request.me;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListIncidents', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/list`, 'json', req, runtime);
}
model CreateServiceRequest {
serviceDescription?: string(name='serviceDescription', description='服务描述'),
serviceName?: string(name='serviceName', description='服务名称'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model CreateServiceResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
serviceId?: long(name='serviceId', description='服务ID'),
}(name='data', description='服务ID'),
}
model CreateServiceResponse = {
headers: map[string]string(name='headers'),
body: CreateServiceResponseBody(name='body'),
}
async function createService(request: CreateServiceRequest): CreateServiceResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createServiceWithOptions(request, headers, runtime);
}
async function createServiceWithOptions(request: CreateServiceRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateServiceResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceDescription)) {
body.serviceDescription = request.serviceDescription;
}
if (!Util.isUnset(request.serviceName)) {
body.serviceName = request.serviceName;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateService', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/save`, 'json', req, runtime);
}
model UpdateServiceRequest {
serviceDescription?: string(name='serviceDescription', description='服务描述'),
serviceName?: string(name='serviceName', description='服务名字'),
serviceId?: long(name='serviceId', description='服务ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model UpdateServiceResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: long(name='data'),
}
model UpdateServiceResponse = {
headers: map[string]string(name='headers'),
body: UpdateServiceResponseBody(name='body'),
}
async function updateService(request: UpdateServiceRequest): UpdateServiceResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateServiceWithOptions(request, headers, runtime);
}
async function updateServiceWithOptions(request: UpdateServiceRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateServiceResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceDescription)) {
body.serviceDescription = request.serviceDescription;
}
if (!Util.isUnset(request.serviceName)) {
body.serviceName = request.serviceName;
}
if (!Util.isUnset(request.serviceId)) {
body.serviceId = request.serviceId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateService', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/update`, 'json', req, runtime);
}
model CreateServiceGroupSchedulingRequest {
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
schedulingWay?: string(name='schedulingWay', description='排班方式 FAST 快速排班 FINE 精细排班'),
fastScheduling?: {
singleDuration?: int32(name='singleDuration', description='每人排班时长'),
dutyPlan?: string(name='dutyPlan', description='值班方案 dutyPlan FAST_CHOICE 快速选择 CUSTOM 自定义'),
singleDurationUnit?: string(name='singleDurationUnit', description='每人排班时常单位 HOUR 小时 DAY 天'),
schedulingUsers?: [
{
schedulingUserId?: long(name='schedulingUserId', description='轮班用户ID'),
schedulingOrder?: long(name='schedulingOrder', description='排班顺序'),
}
](name='schedulingUsers', description='快速轮班用户'),
}(name='fastScheduling', description='快速排班'),
fineScheduling?: {
period?: int32(name='period', description='循环周期'),
periodUnit?: string(name='periodUnit', description='循环周期单位 HOUR 小时 DAY 天'),
shiftType?: string(name='shiftType', description='班次类型 MORNING_NIGHT 早晚班 MORNING_NOON_NIGHT 早中晚班 CUSTOM 自定义'),
schedulingFineShifts?: [
{
schedulingStartTime?: string(name='schedulingStartTime', description='排班开始时间'),
schedulingEndTime?: string(name='schedulingEndTime', description='排班结束时间'),
schedulingOrder?: int32(name='schedulingOrder', description='排班顺序'),
skipOneDay?: boolean(name='skipOneDay', description='是否跨天'),
cycleOrder?: int32(name='cycleOrder', description='循环次序'),
shiftName?: string(name='shiftName', description='班次名称'),
schedulingUserId?: long(name='schedulingUserId', description='排班用户ID'),
}
](name='schedulingFineShifts', description='精细排班信息表'),
schedulingTemplateFineShifts?: [
{
schedulingStartTime?: string(name='schedulingStartTime', description='排班开始时间'),
schedulingEndTime?: string(name='schedulingEndTime', description='排班结束时间'),
schedulingOrder?: long(name='schedulingOrder', description='排班顺序'),
schedulingUserId?: long(name='schedulingUserId', description='用户ID'),
schedulingUserName?: string(name='schedulingUserName', description='用户名字'),
skipOneDay?: boolean(name='skipOneDay', description='是否跨天'),
}
](name='schedulingTemplateFineShifts', description='精细排班模版'),
}(name='fineScheduling', description='精细排班'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model CreateServiceGroupSchedulingResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model CreateServiceGroupSchedulingResponse = {
headers: map[string]string(name='headers'),
body: CreateServiceGroupSchedulingResponseBody(name='body'),
}
async function createServiceGroupScheduling(request: CreateServiceGroupSchedulingRequest): CreateServiceGroupSchedulingResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createServiceGroupSchedulingWithOptions(request, headers, runtime);
}
async function createServiceGroupSchedulingWithOptions(request: CreateServiceGroupSchedulingRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateServiceGroupSchedulingResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.schedulingWay)) {
body.schedulingWay = request.schedulingWay;
}
if (!Util.isUnset(request.fastScheduling)) {
body.fastScheduling = request.fastScheduling;
}
if (!Util.isUnset(request.fineScheduling)) {
body.fineScheduling = request.fineScheduling;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateServiceGroupScheduling', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/scheduling/save`, 'json', req, runtime);
}
model GetEventRequest {
monitorSourceId?: long(name='monitorSourceId', description='监控源ID不能为空'),
}
model GetEventResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
monitorSourceId?: long(name='monitorSourceId', description='告警源ID'),
monitorSourceName?: string(name='monitorSourceName', description='告警源名称'),
eventTime?: string(name='eventTime', description='告警上报时间'),
eventJson?: string(name='eventJson', description='告警内容'),
}(name='data', description='告警'),
}
model GetEventResponse = {
headers: map[string]string(name='headers'),
body: GetEventResponseBody(name='body'),
}
async function getEvent(request: GetEventRequest): GetEventResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getEventWithOptions(request, headers, runtime);
}
async function getEventWithOptions(request: GetEventRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetEventResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.monitorSourceId)) {
body.monitorSourceId = request.monitorSourceId;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetEvent', '2021-04-13', 'HTTPS', 'POST', 'AK', `/events/getLastTimeEvent`, 'json', req, runtime);
}
model ListProblemTimeLinesRequest {
problemId?: long(name='problemId', description='故障ID'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model ListProblemTimeLinesResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: [
{
createTime?: string(name='createTime', description='创建时间'),
keyNode?: string(name='keyNode', description='关键节点 码表:PROBLEM_KEY_NODE (逗号分隔)'),
content?: string(name='content', description='内容'),
isKey?: boolean(name='isKey', description='是否是关键字 true是 false不是 默认 false'),
updateTime?: string(name='updateTime', description='修改时间'),
time?: string(name='time', description='展示时间'),
problemTimelineId?: long(name='problemTimelineId', description='时间线id'),
}
](name='data'),
}
model ListProblemTimeLinesResponse = {
headers: map[string]string(name='headers'),
body: ListProblemTimeLinesResponseBody(name='body'),
}
async function listProblemTimeLines(request: ListProblemTimeLinesRequest): ListProblemTimeLinesResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listProblemTimeLinesWithOptions(request, headers, runtime);
}
async function listProblemTimeLinesWithOptions(request: ListProblemTimeLinesRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListProblemTimeLinesResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListProblemTimeLines', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/detail/timeLines`, 'json', req, runtime);
}
model CheckWebhookRequest {
clientToken?: string(name='clientToken', description='幂等校验token'),
webhook?: string(name='webhook', description='webook地址'),
webhookType?: string(name='webhookType', description='webhook地址类型 企业微信WEIXIN_GROUP 钉钉群 DING_GROUP 飞书 FEISHU_GROUP'),
}
model CheckWebhookResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model CheckWebhookResponse = {
headers: map[string]string(name='headers'),
body: CheckWebhookResponseBody(name='body'),
}
async function checkWebhook(request: CheckWebhookRequest): CheckWebhookResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return checkWebhookWithOptions(request, headers, runtime);
}
async function checkWebhookWithOptions(request: CheckWebhookRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CheckWebhookResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.webhook)) {
body.webhook = request.webhook;
}
if (!Util.isUnset(request.webhookType)) {
body.webhookType = request.webhookType;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CheckWebhook', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/check/webhook`, 'json', req, runtime);
}
model CreateEscalationPlanRequest {
escalationPlanName?: string(name='escalationPlanName', description='升级计划名称'),
escalationPlanDescription?: string(name='escalationPlanDescription', description='升级计划描述'),
escalationPlanScopeObjects?: [
{
scopeObjectId?: long(name='scopeObjectId', description='范围对象id'),
scope?: string(name='scope', description='范围对象类型'),
}
](name='escalationPlanScopeObjects', description='升级计划范围对象列表'),
escalationPlanRules?: [
{
escalationPlanType?: string(name='escalationPlanType', description='升级类型'),
escalationPlanConditions?: [
{
level?: string(name='level', description='事件等级'),
effection?: string(name='effection', description='影响等级'),
}
](name='escalationPlanConditions', description='升级条件'),
escalationPlanStrategies?: [
{
noticeTime?: string(name='noticeTime', description='通知时间'),
noticeObjects?: [ long ](name='noticeObjects', description='升级通知对象id列表'),
noticeChannels?: [ string ](name='noticeChannels', description='升级通知策略'),
}
](name='escalationPlanStrategies', description='升级策略'),
}
](name='escalationPlanRules', description='升级计划规则列表'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model CreateEscalationPlanResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
escalationPlanId?: long(name='escalationPlanId', description='升级计划id'),
}(name='data', description='data'),
}
model CreateEscalationPlanResponse = {
headers: map[string]string(name='headers'),
body: CreateEscalationPlanResponseBody(name='body'),
}
async function createEscalationPlan(request: CreateEscalationPlanRequest): CreateEscalationPlanResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createEscalationPlanWithOptions(request, headers, runtime);
}
async function createEscalationPlanWithOptions(request: CreateEscalationPlanRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateEscalationPlanResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.escalationPlanName)) {
body.escalationPlanName = request.escalationPlanName;
}
if (!Util.isUnset(request.escalationPlanDescription)) {
body.escalationPlanDescription = request.escalationPlanDescription;
}
if (!Util.isUnset(request.escalationPlanScopeObjects)) {
body.escalationPlanScopeObjects = request.escalationPlanScopeObjects;
}
if (!Util.isUnset(request.escalationPlanRules)) {
body.escalationPlanRules = request.escalationPlanRules;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateEscalationPlan', '2021-04-13', 'HTTPS', 'POST', 'AK', `/escalationPlan/create`, 'json', req, runtime);
}
model ListEscalationPlansRequest {
escalationPlanName?: string(name='escalationPlanName', description='升级计划名'),
serviceName?: string(name='serviceName', description='服务名称'),
clientToken?: string(name='clientToken', description='clientToken'),
pageNumber?: long(name='pageNumber', description='pageNumber'),
pageSize?: long(name='pageSize', description='pageSize'),
}
model ListEscalationPlansResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: [
{
escalationPlanId?: long(name='escalationPlanId', description='升级计划id'),
escalationPlanName?: string(name='escalationPlanName', description='升级计划名称'),
escalationPlanScopeObjects?: [
{
scopeObjectId?: long(name='scopeObjectId', description='范围对象id(服务id)'),
scopeObjectName?: string(name='scopeObjectName', description='范围对象名称'),
scope?: string(name='scope', description='范围对象类型'),
}
](name='escalationPlanScopeObjects', description='升级计划范围对象'),
status?: string(name='status', description='启用ENABLE 禁用DISABLE'),
modifyTime?: string(name='modifyTime', description='修改时间'),
}
](name='data', description='data'),
totalCount?: long(name='totalCount', description='总条数'),
pageNumber?: long(name='pageNumber', description='分页参数'),
pageSize?: long(name='pageSize', description='分页参数'),
}
model ListEscalationPlansResponse = {
headers: map[string]string(name='headers'),
body: ListEscalationPlansResponseBody(name='body'),
}
async function listEscalationPlans(request: ListEscalationPlansRequest): ListEscalationPlansResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listEscalationPlansWithOptions(request, headers, runtime);
}
async function listEscalationPlansWithOptions(request: ListEscalationPlansRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListEscalationPlansResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.escalationPlanName)) {
body.escalationPlanName = request.escalationPlanName;
}
if (!Util.isUnset(request.serviceName)) {
body.serviceName = request.serviceName;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListEscalationPlans', '2021-04-13', 'HTTPS', 'POST', 'AK', `/escalationPlan/list`, 'json', req, runtime);
}
model GetIncidentRequest {
incidentId?: long(name='incidentId', description='事件ID'),
clientToken?: string(name='clientToken', description='幂等校验'),
}
model GetIncidentResponseBody = {
requestId?: string(name='requestId'),
data?: {
incidentId?: long(name='incidentId', description='事件Id'),
routeRuleId?: long(name='routeRuleId', description='流转规则ID'),
routeRuleName?: string(name='routeRuleName', description='流转规则名称'),
relatedServiceId?: long(name='relatedServiceId', description='关联服务ID'),
relatedServiceName?: string(name='relatedServiceName', description='关联服务名称'),
relatedServiceDescription?: string(name='relatedServiceDescription', description='关联服务描述'),
incidentStatus?: string(name='incidentStatus', description='事件状态 ASSIGNED已分派 RESPONDED已响应 FINISHED已完结'),
incidentLevel?: string(name='incidentLevel', description='事件级别 P1 P2 P3 P4'),
effect?: string(name='effect', description='HIGH 影响等级 高:HIGH 低 LOW'),
assignUserId?: long(name='assignUserId', description='分派的用户ID'),
assignUserName?: string(name='assignUserName', description='分派的用户姓名 (用户表获取)'),
assignUserPhone?: string(name='assignUserPhone', description='分派的用户手机号'),
incidentNumber?: string(name='incidentNumber', description='事件编号'),
incidentTitle?: string(name='incidentTitle', description='事件标题'),
createTime?: string(name='createTime', description='创建时间'),
isManual?: boolean(name='isManual', description='事件来源 是:手动 否:自动'),
isUpgrade?: boolean(name='isUpgrade', description='是否升级 是 否'),
incidentDescription?: string(name='incidentDescription', description='事件描述'),
problemId?: long(name='problemId', description='故障Id'),
problemNumber?: string(name='problemNumber', description='故障编号'),
durationTime?: long(name='durationTime', description='持续时间'),
}(name='data'),
}
model GetIncidentResponse = {
headers: map[string]string(name='headers'),
body: GetIncidentResponseBody(name='body'),
}
async function getIncident(request: GetIncidentRequest): GetIncidentResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getIncidentWithOptions(request, headers, runtime);
}
async function getIncidentWithOptions(request: GetIncidentRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetIncidentResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentId)) {
body.incidentId = request.incidentId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetIncident', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/detail`, 'json', req, runtime);
}
model UpdateUserGuideStatusRequest {
clientToken?: string(name='clientToken', description='幂等校验'),
guideAction?: string(name='guideAction', description='INCIDENT_GUIDE 事件线 INCIDENT_GUIDE配置人员 USER_GUIDE 服务组 SERVICE_GROUP_GUIDE 服务 SERVICE_GUIDE 集成配置 MONITOR_GUIDE 流转规则 ROUTE_RULE_GUIDE 通知订阅 NOTICE_GUIDE'),
}
model UpdateUserGuideStatusResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model UpdateUserGuideStatusResponse = {
headers: map[string]string(name='headers'),
body: UpdateUserGuideStatusResponseBody(name='body'),
}
async function updateUserGuideStatus(request: UpdateUserGuideStatusRequest): UpdateUserGuideStatusResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateUserGuideStatusWithOptions(request, headers, runtime);
}
async function updateUserGuideStatusWithOptions(request: UpdateUserGuideStatusRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateUserGuideStatusResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.guideAction)) {
body.guideAction = request.guideAction;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateUserGuideStatus', '2021-04-13', 'HTTPS', 'POST', 'AK', `/user/update/guide/status`, 'json', req, runtime);
}
model DeleteEscalationPlanRequest {
escalationPlanId?: long(name='escalationPlanId', description='升级计划ID'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model DeleteEscalationPlanResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DeleteEscalationPlanResponse = {
headers: map[string]string(name='headers'),
body: DeleteEscalationPlanResponseBody(name='body'),
}
async function deleteEscalationPlan(request: DeleteEscalationPlanRequest): DeleteEscalationPlanResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteEscalationPlanWithOptions(request, headers, runtime);
}
async function deleteEscalationPlanWithOptions(request: DeleteEscalationPlanRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteEscalationPlanResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.escalationPlanId)) {
body.escalationPlanId = request.escalationPlanId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteEscalationPlan', '2021-04-13', 'HTTPS', 'POST', 'AK', `/escalationPlan/delete`, 'json', req, runtime);
}
model ListConfigsRequest {
clientToken?: string(name='clientToken', description='幂等校验token'),
}
model ListConfigsResponseBody = {
data?: map[string][ DataValue ](name='data'),
requestId?: string(name='requestId', description='requestId'),
}
model ListConfigsResponse = {
headers: map[string]string(name='headers'),
body: ListConfigsResponseBody(name='body'),
}
async function listConfigs(request: ListConfigsRequest): ListConfigsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listConfigsWithOptions(request, headers, runtime);
}
async function listConfigsWithOptions(request: ListConfigsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListConfigsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListConfigs', '2021-04-13', 'HTTPS', 'POST', 'AK', `/config/all`, 'json', req, runtime);
}
model CreateUserRequest {
ramId?: long(name='ramId'),
phone?: string(name='phone'),
username?: string(name='username'),
email?: string(name='email'),
clientToken?: string(name='clientToken'),
}
model CreateUserResponseBody = {
requestId?: string(name='requestId'),
data?: {
userId?: long(name='userId'),
}(name='data'),
}
model CreateUserResponse = {
headers: map[string]string(name='headers'),
body: CreateUserResponseBody(name='body'),
}
async function createUser(request: CreateUserRequest): CreateUserResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createUserWithOptions(request, headers, runtime);
}
async function createUserWithOptions(request: CreateUserRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateUserResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.ramId)) {
body.ramId = request.ramId;
}
if (!Util.isUnset(request.phone)) {
body.phone = request.phone;
}
if (!Util.isUnset(request.username)) {
body.username = request.username;
}
if (!Util.isUnset(request.email)) {
body.email = request.email;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateUser', '2021-04-13', 'HTTPS', 'POST', 'AK', `/user/create`, 'json', req, runtime);
}
model ListUserSerivceGroupsRequest {
userId?: long(name='userId', description='用户ID'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model ListUserSerivceGroupsResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
ramId?: long(name='ramId', description='RAM子账号ID'),
userId?: long(name='userId', description='用户ID'),
username?: string(name='username', description='用户昵称'),
phone?: string(name='phone', description='手机号'),
email?: string(name='email', description='邮箱'),
serviceGroups?: [
{
serviceGroupId?: long(name='serviceGroupId', description='服务组id'),
serviceGroupName?: string(name='serviceGroupName', description='服务组名称'),
serviceGroupDescription?: string(name='serviceGroupDescription', description='服务组描述'),
}
](name='serviceGroups', description='人员所属服务组'),
}(name='data'),
}
model ListUserSerivceGroupsResponse = {
headers: map[string]string(name='headers'),
body: ListUserSerivceGroupsResponseBody(name='body'),
}
async function listUserSerivceGroups(request: ListUserSerivceGroupsRequest): ListUserSerivceGroupsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listUserSerivceGroupsWithOptions(request, headers, runtime);
}
async function listUserSerivceGroupsWithOptions(request: ListUserSerivceGroupsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListUserSerivceGroupsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.userId)) {
body.userId = request.userId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListUserSerivceGroups', '2021-04-13', 'HTTPS', 'POST', 'AK', `/user/preview/detail`, 'json', req, runtime);
}
model RefreshIntegrationConfigKeyRequest {
integrationConfigId?: long(name='integrationConfigId'),
clientToken?: string(name='clientToken', description='幂等id'),
}
model RefreshIntegrationConfigKeyResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
key?: string(name='key', description='集成秘钥'),
}(name='data'),
}
model RefreshIntegrationConfigKeyResponse = {
headers: map[string]string(name='headers'),
body: RefreshIntegrationConfigKeyResponseBody(name='body'),
}
async function refreshIntegrationConfigKey(request: RefreshIntegrationConfigKeyRequest): RefreshIntegrationConfigKeyResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return refreshIntegrationConfigKeyWithOptions(request, headers, runtime);
}
async function refreshIntegrationConfigKeyWithOptions(request: RefreshIntegrationConfigKeyRequest, headers: map[string]string, runtime: Util.RuntimeOptions): RefreshIntegrationConfigKeyResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.integrationConfigId)) {
body.integrationConfigId = request.integrationConfigId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('RefreshIntegrationConfigKey', '2021-04-13', 'HTTPS', 'POST', 'AK', `/integrationConfig/refreshKey`, 'json', req, runtime);
}
model CreateIncidentSubtotalRequest {
incidentId?: long(name='incidentId', description='事件id'),
description?: string(name='description', description='描述'),
clientToken?: string(name='clientToken', description='幂等校验Id'),
}
model CreateIncidentSubtotalResponseBody = {
requestId?: string(name='requestId', description='requestId'),
data?: {
subtotalId?: long(name='subtotalId', description='小计Id'),
}(name='data'),
}
model CreateIncidentSubtotalResponse = {
headers: map[string]string(name='headers'),
body: CreateIncidentSubtotalResponseBody(name='body'),
}
async function createIncidentSubtotal(request: CreateIncidentSubtotalRequest): CreateIncidentSubtotalResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createIncidentSubtotalWithOptions(request, headers, runtime);
}
async function createIncidentSubtotalWithOptions(request: CreateIncidentSubtotalRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateIncidentSubtotalResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentId)) {
body.incidentId = request.incidentId;
}
if (!Util.isUnset(request.description)) {
body.description = request.description;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateIncidentSubtotal', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/save/subtotal`, 'json', req, runtime);
}
model DisableIntegrationConfigRequest {
integrationConfigId?: long(name='integrationConfigId'),
clientToken?: string(name='clientToken', description='幂等id'),
}
model DisableIntegrationConfigResponseBody = {
requestId?: string(name='requestId', description='requestId'),
}
model DisableIntegrationConfigResponse = {
headers: map[string]string(name='headers'),
body: DisableIntegrationConfigResponseBody(name='body'),
}
async function disableIntegrationConfig(request: DisableIntegrationConfigRequest): DisableIntegrationConfigResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return disableIntegrationConfigWithOptions(request, headers, runtime);
}
async function disableIntegrationConfigWithOptions(request: DisableIntegrationConfigRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DisableIntegrationConfigResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.integrationConfigId)) {
body.integrationConfigId = request.integrationConfigId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DisableIntegrationConfig', '2021-04-13', 'HTTPS', 'POST', 'AK', `/integrationConfig/disable`, 'json', req, runtime);
}
model CreateIntegrationConfigRequest {
monitorSourceId?: long(name='monitorSourceId'),
clientToken?: string(name='clientToken'),
}
model CreateIntegrationConfigResponseBody = {
requestId?: string(name='requestId'),
data?: {
integrationConfigId?: long(name='integrationConfigId', description='集成配置id'),
}(name='data'),
}
model CreateIntegrationConfigResponse = {
headers: map[string]string(name='headers'),
body: CreateIntegrationConfigResponseBody(name='body'),
}
async function createIntegrationConfig(request: CreateIntegrationConfigRequest): CreateIntegrationConfigResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createIntegrationConfigWithOptions(request, headers, runtime);
}
async function createIntegrationConfigWithOptions(request: CreateIntegrationConfigRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateIntegrationConfigResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.monitorSourceId)) {
body.monitorSourceId = request.monitorSourceId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateIntegrationConfig', '2021-04-13', 'HTTPS', 'POST', 'AK', `/integrationConfig/create`, 'json', req, runtime);
}
model DeleteRouteRuleRequest {
routeRuleId?: long(name='routeRuleId', description='规则ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model DeleteRouteRuleResponseBody = {
requestId?: long(name='requestId', description='请求ID'),
}
model DeleteRouteRuleResponse = {
headers: map[string]string(name='headers'),
body: DeleteRouteRuleResponseBody(name='body'),
}
async function deleteRouteRule(request: DeleteRouteRuleRequest): DeleteRouteRuleResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteRouteRuleWithOptions(request, headers, runtime);
}
async function deleteRouteRuleWithOptions(request: DeleteRouteRuleRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteRouteRuleResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.routeRuleId)) {
body.routeRuleId = request.routeRuleId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteRouteRule', '2021-04-13', 'HTTPS', 'POST', 'AK', `/routeRule/delete`, 'json', req, runtime);
}
model UpdateProblemRequest {
problemId?: long(name='problemId', description='故障ID'),
problemName?: string(name='problemName', description='故障名'),
level?: string(name='level', description='故障等级'),
relatedServiceId?: long(name='relatedServiceId', description='所属服务'),
progressSummary?: string(name='progressSummary', description='进展摘要'),
preliminaryReason?: string(name='preliminaryReason', description='初步原因'),
mainHandlerId?: long(name='mainHandlerId', description='主要处理人'),
feedback?: string(name='feedback', description='舆情反馈'),
serviceGroupIds?: [ long ](name='serviceGroupIds', description='应急协同组'),
}
model UpdateProblemResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model UpdateProblemResponse = {
headers: map[string]string(name='headers'),
body: UpdateProblemResponseBody(name='body'),
}
async function updateProblem(request: UpdateProblemRequest): UpdateProblemResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateProblemWithOptions(request, headers, runtime);
}
async function updateProblemWithOptions(request: UpdateProblemRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateProblemResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.problemName)) {
body.problemName = request.problemName;
}
if (!Util.isUnset(request.level)) {
body.level = request.level;
}
if (!Util.isUnset(request.relatedServiceId)) {
body.relatedServiceId = request.relatedServiceId;
}
if (!Util.isUnset(request.progressSummary)) {
body.progressSummary = request.progressSummary;
}
if (!Util.isUnset(request.preliminaryReason)) {
body.preliminaryReason = request.preliminaryReason;
}
if (!Util.isUnset(request.mainHandlerId)) {
body.mainHandlerId = request.mainHandlerId;
}
if (!Util.isUnset(request.feedback)) {
body.feedback = request.feedback;
}
if (!Util.isUnset(request.serviceGroupIds)) {
body.serviceGroupIds = request.serviceGroupIds;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateProblem', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/update`, 'json', req, runtime);
}
model GetRouteRuleRequest {
routeRuleId?: long(name='routeRuleId', description='规则ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model GetRouteRuleResponseBody = {
requestId?: string(name='requestId', description='请求ID'),
data?: {
routeRuleId?: long(name='routeRuleId', description='规则ID'),
ruleName?: string(name='ruleName', description='流转规则名字'),
timeWindow?: int32(name='timeWindow', description='时间窗口'),
relatedServiceName?: string(name='relatedServiceName', description='关联服务名称'),
enableStatus?: string(name='enableStatus', description='是否启用 DISABLE禁用 ENABLE 启用'),
relatedServiceId?: long(name='relatedServiceId', description='关联服务ID'),
routeType?: string(name='routeType', description='路由类型:INCIDENT 触发事件 ALERT 仅触发报警'),
incidentLevel?: string(name='incidentLevel', description='事件级别 P1 P2 P3 P4'),
assignObjectId?: long(name='assignObjectId', description='事件分派对象ID(服务组ID 或用户ID)'),
assignObjectType?: string(name='assignObjectType', description='事件分派对象类型 SERVICEGROUP 服务组 USER 单个用户'),
effection?: string(name='effection', description='影响程度 LOW一般 HIGH-严重'),
matchCount?: long(name='matchCount', description='命中次数'),
eventRouteChildRules?: [
{
childRouteRuleId?: long(name='childRouteRuleId', description='子规则ID'),
isValidChildRule?: boolean(name='isValidChildRule', description='是否有效得规则true有效 false无效'),
parentRuleId?: long(name='parentRuleId', description='规则ID'),
monitorSourceId?: long(name='monitorSourceId', description='监控源ID'),
monitorIntegrationConfigId?: long(name='monitorIntegrationConfigId', description='集成配置ID'),
monitorSourceName?: string(name='monitorSourceName', description='监控源名称'),
conditions?: [
{
key?: string(name='key', description='条件可以'),
value?: string(name='value', description='匹配值'),
operationSymbol?: string(name='operationSymbol', description='操作符'),
}
](name='conditions'),
}
](name='eventRouteChildRules', description='子规则'),
createTime?: string(name='createTime', description='创建时间'),
updateTime?: string(name='updateTime', description='修改时间'),
notifyChannels?: [ string ](name='notifyChannels', description='通知渠道'),
notifyChannelNames?: [ string ](name='notifyChannelNames', description='通知渠道名称'),
assignObjectName?: string(name='assignObjectName', description='通知对象名称'),
}(name='data', description='规则详情'),
}
model GetRouteRuleResponse = {
headers: map[string]string(name='headers'),
body: GetRouteRuleResponseBody(name='body'),
}
async function getRouteRule(request: GetRouteRuleRequest): GetRouteRuleResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getRouteRuleWithOptions(request, headers, runtime);
}
async function getRouteRuleWithOptions(request: GetRouteRuleRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetRouteRuleResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.routeRuleId)) {
body.routeRuleId = request.routeRuleId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetRouteRule', '2021-04-13', 'HTTPS', 'POST', 'AK', `/routeRule/detail`, 'json', req, runtime);
}
model EnableRouteRuleRequest {
routeRuleId?: long(name='routeRuleId', description='规则ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model EnableRouteRuleResponseBody = {
requestId?: string(name='requestId', description='请求ID'),
data?: int32(name='data'),
}
model EnableRouteRuleResponse = {
headers: map[string]string(name='headers'),
body: EnableRouteRuleResponseBody(name='body'),
}
async function enableRouteRule(request: EnableRouteRuleRequest): EnableRouteRuleResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return enableRouteRuleWithOptions(request, headers, runtime);
}
async function enableRouteRuleWithOptions(request: EnableRouteRuleRequest, headers: map[string]string, runtime: Util.RuntimeOptions): EnableRouteRuleResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.routeRuleId)) {
body.routeRuleId = request.routeRuleId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('EnableRouteRule', '2021-04-13', 'HTTPS', 'POST', 'AK', `/routeRule/enable`, 'json', req, runtime);
}
model UpdateUserRequest {
ramId?: long(name='ramId', description='用户ramId'),
phone?: string(name='phone', description='手机号'),
username?: string(name='username', description='用户名'),
email?: string(name='email', description='邮件'),
userId?: long(name='userId', description='用户ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model UpdateUserResponseBody = {
requestId?: string(name='requestId'),
}
model UpdateUserResponse = {
headers: map[string]string(name='headers'),
body: UpdateUserResponseBody(name='body'),
}
async function updateUser(request: UpdateUserRequest): UpdateUserResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateUserWithOptions(request, headers, runtime);
}
async function updateUserWithOptions(request: UpdateUserRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateUserResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.ramId)) {
body.ramId = request.ramId;
}
if (!Util.isUnset(request.phone)) {
body.phone = request.phone;
}
if (!Util.isUnset(request.username)) {
body.username = request.username;
}
if (!Util.isUnset(request.email)) {
body.email = request.email;
}
if (!Util.isUnset(request.userId)) {
body.userId = request.userId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateUser', '2021-04-13', 'HTTPS', 'POST', 'AK', `/user/update`, 'json', req, runtime);
}
model UpdateProblemImprovementRequest {
problemId?: long(name='problemId', description='故障ID'),
problemReason?: string(name='problemReason', description='故障原因'),
recentActivity?: string(name='recentActivity', description='最近活动 码表:PROBLEM_RECENT_ACTIVITY'),
injectionMode?: string(name='injectionMode', description='注入方式 码表:PROBLEM_INJECTION_MODE'),
recoveryMode?: string(name='recoveryMode', description='恢复方式 码表:PROBLEM_RECOVERY_MODE'),
discoverSource?: long(name='discoverSource', description='发现来源 码表:PROBLEM_DISCOVER_SOURCE'),
userReport?: long(name='userReport', description='用户上报 码表:PROBLEM_USER_REPORT'),
monitorSourceName?: string(name='monitorSourceName', description='监控源'),
relationChanges?: string(name='relationChanges', description='关联变更'),
dutyUserId?: long(name='dutyUserId', description='故障责任人id'),
replayDutyUserId?: long(name='replayDutyUserId', description='复盘负责人id'),
dutyDepartmentName?: string(name='dutyDepartmentName', description='故障责任部门'),
dutyDepartmentId?: long(name='dutyDepartmentId', description='故障责任部门ID'),
remark?: string(name='remark', description='备注'),
clientToken?: string(name='clientToken', description='幂等校验token'),
}
model UpdateProblemImprovementResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model UpdateProblemImprovementResponse = {
headers: map[string]string(name='headers'),
body: UpdateProblemImprovementResponseBody(name='body'),
}
async function updateProblemImprovement(request: UpdateProblemImprovementRequest): UpdateProblemImprovementResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateProblemImprovementWithOptions(request, headers, runtime);
}
async function updateProblemImprovementWithOptions(request: UpdateProblemImprovementRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateProblemImprovementResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.problemReason)) {
body.problemReason = request.problemReason;
}
if (!Util.isUnset(request.recentActivity)) {
body.recentActivity = request.recentActivity;
}
if (!Util.isUnset(request.injectionMode)) {
body.injectionMode = request.injectionMode;
}
if (!Util.isUnset(request.recoveryMode)) {
body.recoveryMode = request.recoveryMode;
}
if (!Util.isUnset(request.discoverSource)) {
body.discoverSource = request.discoverSource;
}
if (!Util.isUnset(request.userReport)) {
body.userReport = request.userReport;
}
if (!Util.isUnset(request.monitorSourceName)) {
body.monitorSourceName = request.monitorSourceName;
}
if (!Util.isUnset(request.relationChanges)) {
body.relationChanges = request.relationChanges;
}
if (!Util.isUnset(request.dutyUserId)) {
body.dutyUserId = request.dutyUserId;
}
if (!Util.isUnset(request.replayDutyUserId)) {
body.replayDutyUserId = request.replayDutyUserId;
}
if (!Util.isUnset(request.dutyDepartmentName)) {
body.dutyDepartmentName = request.dutyDepartmentName;
}
if (!Util.isUnset(request.dutyDepartmentId)) {
body.dutyDepartmentId = request.dutyDepartmentId;
}
if (!Util.isUnset(request.remark)) {
body.remark = request.remark;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateProblemImprovement', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/improvement/update`, 'json', req, runtime);
}
model GetServiceRequest {
serviceId?: long(name='serviceId', description='服务ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model GetServiceResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
serviceId?: long(name='serviceId', description='服务ID'),
serviceName?: string(name='serviceName', description='服务名字'),
serviceDescription?: string(name='serviceDescription', description='服务描述'),
updateTime?: string(name='updateTime', description='修改时间'),
}(name='data', description='服务详情'),
}
model GetServiceResponse = {
headers: map[string]string(name='headers'),
body: GetServiceResponseBody(name='body'),
}
async function getService(request: GetServiceRequest): GetServiceResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getServiceWithOptions(request, headers, runtime);
}
async function getServiceWithOptions(request: GetServiceRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetServiceResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceId)) {
body.serviceId = request.serviceId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetService', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/detail`, 'json', req, runtime);
}
model CreateIncidentRequest {
incidentLevel?: string(name='incidentLevel', description='P1 事件级别 P1 P2 P3 P4'),
clientToken?: string(name='clientToken', description='幂等UUID'),
relatedServiceId?: long(name='relatedServiceId', description='关联服务ID'),
effect?: string(name='effect', description='影响等级 高:HIGH 低 LOW'),
incidentTitle?: string(name='incidentTitle', description='事件标题'),
assignUserId?: long(name='assignUserId', description='分派的用户ID'),
incidentDescription?: string(name='incidentDescription', description='事件描述'),
channels?: [ string ](name='channels', description='通知渠道 SMS 短信 EMAIL 邮件 PHONE 电话 WEIXIN_GROUP企微群 DING_GROUP 钉钉群'),
serviceGroupId?: long(name='serviceGroupId', description='服务组Id'),
}
model CreateIncidentResponseBody = {
data?: {
incidentId?: long(name='incidentId', description='事件主健Id'),
}(name='data', description='Id of the request'),
requestId?: string(name='requestId', description='requestId'),
}
model CreateIncidentResponse = {
headers: map[string]string(name='headers'),
body: CreateIncidentResponseBody(name='body'),
}
async function createIncident(request: CreateIncidentRequest): CreateIncidentResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createIncidentWithOptions(request, headers, runtime);
}
async function createIncidentWithOptions(request: CreateIncidentRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateIncidentResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentLevel)) {
body.incidentLevel = request.incidentLevel;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.relatedServiceId)) {
body.relatedServiceId = request.relatedServiceId;
}
if (!Util.isUnset(request.effect)) {
body.effect = request.effect;
}
if (!Util.isUnset(request.incidentTitle)) {
body.incidentTitle = request.incidentTitle;
}
if (!Util.isUnset(request.assignUserId)) {
body.assignUserId = request.assignUserId;
}
if (!Util.isUnset(request.incidentDescription)) {
body.incidentDescription = request.incidentDescription;
}
if (!Util.isUnset(request.channels)) {
body.channels = request.channels;
}
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateIncident', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/manualSave`, 'json', req, runtime);
}
model FinishProblemRequest {
problemId?: long(name='problemId', description='故障Id'),
clientToken?: string(name='clientToken', description='幂等校验'),
}
model FinishProblemResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model FinishProblemResponse = {
headers: map[string]string(name='headers'),
body: FinishProblemResponseBody(name='body'),
}
async function finishProblem(request: FinishProblemRequest): FinishProblemResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return finishProblemWithOptions(request, headers, runtime);
}
async function finishProblemWithOptions(request: FinishProblemRequest, headers: map[string]string, runtime: Util.RuntimeOptions): FinishProblemResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('FinishProblem', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/finish`, 'json', req, runtime);
}
model ListSubscriptionServiceGroupsRequest {
serviceIds?: [ long ](name='serviceIds', description='服务列表'),
clientToken?: string(name='clientToken', description='幂等校验token'),
}
model ListSubscriptionServiceGroupsResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: [
{
serviceId?: long(name='serviceId', description='主键'),
serviceName?: string(name='serviceName', description='服务组名称'),
serviceGroupDescription?: string(name='serviceGroupDescription', description='服务组描述'),
}
](name='data'),
}
model ListSubscriptionServiceGroupsResponse = {
headers: map[string]string(name='headers'),
body: ListSubscriptionServiceGroupsResponseBody(name='body'),
}
async function listSubscriptionServiceGroups(request: ListSubscriptionServiceGroupsRequest): ListSubscriptionServiceGroupsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listSubscriptionServiceGroupsWithOptions(request, headers, runtime);
}
async function listSubscriptionServiceGroupsWithOptions(request: ListSubscriptionServiceGroupsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListSubscriptionServiceGroupsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceIds)) {
body.serviceIds = request.serviceIds;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListSubscriptionServiceGroups', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/serviceGroup/list`, 'json', req, runtime);
}
model UpdateProblemNoticeRequest {
problemNotifyType?: string(name='problemNotifyType', description='通告类型 PROBLEM_NOTIFY:故障通告 PROBLEM_UPDATE:故障更新 PROBLEM_UPGRADE:故障升级 PROBLEM_DEGRADE:故障降级 PROBLEM_RECOVER:故障恢复 PROBLEM_REISSUE: 故障补发 PROBLEM_CANCEL:故障取消'),
problemId?: long(name='problemId', description='故障Id'),
clientToken?: string(name='clientToken', description='幂等校验Id'),
}
model UpdateProblemNoticeResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model UpdateProblemNoticeResponse = {
headers: map[string]string(name='headers'),
body: UpdateProblemNoticeResponseBody(name='body'),
}
async function updateProblemNotice(request: UpdateProblemNoticeRequest): UpdateProblemNoticeResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateProblemNoticeWithOptions(request, headers, runtime);
}
async function updateProblemNoticeWithOptions(request: UpdateProblemNoticeRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateProblemNoticeResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemNotifyType)) {
body.problemNotifyType = request.problemNotifyType;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateProblemNotice', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/notify`, 'json', req, runtime);
}
model ListIntegrationConfigTimelinesRequest {
integrationConfigId?: long(name='integrationConfigId', description='集成配置id'),
pageNumber?: long(name='pageNumber', description='分页参数'),
pageSize?: long(name='pageSize', description='分页参数'),
clientToken?: string(name='clientToken', description='幂等参数'),
}
model ListIntegrationConfigTimelinesResponseBody = {
data?: [
{
title?: string(name='title', description='主题'),
description?: string(name='description', description='描述'),
createTime?: string(name='createTime', description='创建时间'),
}
](name='data'),
requestId?: string(name='requestId', description='requestId'),
totalCount?: long(name='totalCount', description='totalCount'),
pageNumber?: long(name='pageNumber', description='pageNumber'),
pageSize?: long(name='pageSize', description='pageSize'),
}
model ListIntegrationConfigTimelinesResponse = {
headers: map[string]string(name='headers'),
body: ListIntegrationConfigTimelinesResponseBody(name='body'),
}
async function listIntegrationConfigTimelines(request: ListIntegrationConfigTimelinesRequest): ListIntegrationConfigTimelinesResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listIntegrationConfigTimelinesWithOptions(request, headers, runtime);
}
async function listIntegrationConfigTimelinesWithOptions(request: ListIntegrationConfigTimelinesRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListIntegrationConfigTimelinesResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.integrationConfigId)) {
body.integrationConfigId = request.integrationConfigId;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListIntegrationConfigTimelines', '2021-04-13', 'HTTPS', 'POST', 'AK', `/integrationConfig/timeline`, 'json', req, runtime);
}
model UpdateIncidentRequest {
incidentId?: long(name='incidentId', description='事件Id'),
incidentLevel?: string(name='incidentLevel', description='级别'),
effect?: string(name='effect', description='影响程度'),
incidentTitle?: string(name='incidentTitle', description='事件标题'),
clientToken?: string(name='clientToken', description='幂等校验Id'),
}
model UpdateIncidentResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
incidentId?: long(name='incidentId', description='事件id'),
}(name='data'),
}
model UpdateIncidentResponse = {
headers: map[string]string(name='headers'),
body: UpdateIncidentResponseBody(name='body'),
}
async function updateIncident(request: UpdateIncidentRequest): UpdateIncidentResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateIncidentWithOptions(request, headers, runtime);
}
async function updateIncidentWithOptions(request: UpdateIncidentRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateIncidentResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentId)) {
body.incidentId = request.incidentId;
}
if (!Util.isUnset(request.incidentLevel)) {
body.incidentLevel = request.incidentLevel;
}
if (!Util.isUnset(request.effect)) {
body.effect = request.effect;
}
if (!Util.isUnset(request.incidentTitle)) {
body.incidentTitle = request.incidentTitle;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateIncident', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/update`, 'json', req, runtime);
}
model GetServiceGroupRequest {
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model GetServiceGroupResponseBody = {
requestId?: string(name='requestId', description='请求ID'),
data?: {
updateTime?: string(name='updateTime', description='修改时间'),
users?: [
{
userId?: long(name='userId', description='用户ID'),
userName?: string(name='userName', description='用户名字'),
phone?: string(name='phone', description='手机号'),
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
}
](name='users', description='用户ID'),
serviceGroupDescription?: string(name='serviceGroupDescription', description='服务组描述'),
webhookLink?: string(name='webhookLink', description='webhook 跳转地址'),
webhookType?: string(name='webhookType', description='WEIXIN_GROUP 微信 DING_GROUP 钉钉 FEISHU_GROUP飞书'),
enableWebhook?: string(name='enableWebhook', description='ENABLE 启用 DISABLE 禁用'),
serviceGroupName?: string(name='serviceGroupName', description='服务组名称'),
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
createTime?: string(name='createTime', description='创建时间'),
}(name='data'),
}
model GetServiceGroupResponse = {
headers: map[string]string(name='headers'),
body: GetServiceGroupResponseBody(name='body'),
}
async function getServiceGroup(request: GetServiceGroupRequest): GetServiceGroupResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getServiceGroupWithOptions(request, headers, runtime);
}
async function getServiceGroupWithOptions(request: GetServiceGroupRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetServiceGroupResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetServiceGroup', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/detail`, 'json', req, runtime);
}
model CreateSubscriptionRequest {
subscriptionTitle?: string(name='subscriptionTitle', description='通知订阅名称'),
scope?: long(name='scope', description='订阅范围类型'),
notifyObjectType?: long(name='notifyObjectType', description='通知对象类型'),
expiredType?: long(name='expiredType', description='订阅时效'),
scopeObjectList?: [
{
scopeObjectId?: long(name='scopeObjectId', description='订阅范围对象id'),
}
](name='scopeObjectList', description='订阅范围列表'),
notifyObjectList?: [
{
notifyObjectId?: long(name='notifyObjectId', description='通知对象id'),
}
](name='notifyObjectList', description='通知对象列表'),
notifyStrategyList?: [
{
instanceType?: long(name='instanceType', description='订阅实例类型,事件、报警、故障'),
strategies?: [
{
conditions?: [
{
effection?: string(name='effection', description='影响范围'),
problemNotifyType?: string(name='problemNotifyType', description='故障通知类型'),
level?: string(name='level', description='等级'),
action?: string(name='action', description='时间动作'),
}
](name='conditions', description='通知策略条件'),
}
](name='strategies', description='条件。json格式,包含多个条件,比如级别、影响程度 kv格式'),
channels?: string(name='channels', description='渠道,多个逗号分隔'),
}
](name='notifyStrategyList', description='通知策略列表'),
clientToken?: string(name='clientToken', description='幂等参数'),
startTime?: string(name='startTime', description='开始时间'),
endTime?: string(name='endTime', description='结束时间'),
}
model CreateSubscriptionResponseBody = {
requestId?: string(name='requestId', description='request id'),
data?: {
subscriptionId?: long(name='subscriptionId', description='订阅id'),
}(name='data'),
}
model CreateSubscriptionResponse = {
headers: map[string]string(name='headers'),
body: CreateSubscriptionResponseBody(name='body'),
}
async function createSubscription(request: CreateSubscriptionRequest): CreateSubscriptionResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createSubscriptionWithOptions(request, headers, runtime);
}
async function createSubscriptionWithOptions(request: CreateSubscriptionRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateSubscriptionResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.subscriptionTitle)) {
body.subscriptionTitle = request.subscriptionTitle;
}
if (!Util.isUnset(request.scope)) {
body.scope = request.scope;
}
if (!Util.isUnset(request.notifyObjectType)) {
body.notifyObjectType = request.notifyObjectType;
}
if (!Util.isUnset(request.expiredType)) {
body.expiredType = request.expiredType;
}
if (!Util.isUnset(request.scopeObjectList)) {
body.scopeObjectList = request.scopeObjectList;
}
if (!Util.isUnset(request.notifyObjectList)) {
body.notifyObjectList = request.notifyObjectList;
}
if (!Util.isUnset(request.notifyStrategyList)) {
body.notifyStrategyList = request.notifyStrategyList;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.startTime)) {
body.startTime = request.startTime;
}
if (!Util.isUnset(request.endTime)) {
body.endTime = request.endTime;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateSubscription', '2021-04-13', 'HTTPS', 'POST', 'AK', `/notify/subscription/create`, 'json', req, runtime);
}
model DeleteIntegrationConfigRequest {
integrationConfigId?: long(name='integrationConfigId', description='集成配置id'),
clientToken?: string(name='clientToken', description='幂等id'),
}
model DeleteIntegrationConfigResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DeleteIntegrationConfigResponse = {
headers: map[string]string(name='headers'),
body: DeleteIntegrationConfigResponseBody(name='body'),
}
async function deleteIntegrationConfig(request: DeleteIntegrationConfigRequest): DeleteIntegrationConfigResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteIntegrationConfigWithOptions(request, headers, runtime);
}
async function deleteIntegrationConfigWithOptions(request: DeleteIntegrationConfigRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteIntegrationConfigResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.integrationConfigId)) {
body.integrationConfigId = request.integrationConfigId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteIntegrationConfig', '2021-04-13', 'HTTPS', 'POST', 'AK', `/integrationConfig/delete`, 'json', req, runtime);
}
model UpdateProblemMeasureRequest {
type?: int32(name='type', description='措施类型 码表 PROBLEM_REPLAY_IMPROVEMENT'),
content?: string(name='content', description='措施内容'),
checkStandard?: string(name='checkStandard', description='验收标准'),
checkUserId?: long(name='checkUserId', description='验收人id'),
directorId?: long(name='directorId', description='负责人id'),
stalkerId?: long(name='stalkerId', description='跟踪人id'),
planFinishTime?: string(name='planFinishTime', description='计划完成时间'),
measureId?: long(name='measureId', description='措施Id'),
status?: string(name='status', description='状态 IMPROVED 改进 2 未改进UNIMPROVED'),
clientToken?: string(name='clientToken', description='幂等校验token'),
problemId?: long(name='problemId', description='故障Id'),
}
model UpdateProblemMeasureResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model UpdateProblemMeasureResponse = {
headers: map[string]string(name='headers'),
body: UpdateProblemMeasureResponseBody(name='body'),
}
async function updateProblemMeasure(request: UpdateProblemMeasureRequest): UpdateProblemMeasureResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateProblemMeasureWithOptions(request, headers, runtime);
}
async function updateProblemMeasureWithOptions(request: UpdateProblemMeasureRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateProblemMeasureResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.type)) {
body.type = request.type;
}
if (!Util.isUnset(request.content)) {
body.content = request.content;
}
if (!Util.isUnset(request.checkStandard)) {
body.checkStandard = request.checkStandard;
}
if (!Util.isUnset(request.checkUserId)) {
body.checkUserId = request.checkUserId;
}
if (!Util.isUnset(request.directorId)) {
body.directorId = request.directorId;
}
if (!Util.isUnset(request.stalkerId)) {
body.stalkerId = request.stalkerId;
}
if (!Util.isUnset(request.planFinishTime)) {
body.planFinishTime = request.planFinishTime;
}
if (!Util.isUnset(request.measureId)) {
body.measureId = request.measureId;
}
if (!Util.isUnset(request.status)) {
body.status = request.status;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateProblemMeasure', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/improvement/measure/update`, 'json', req, runtime);
}
model ListAlertsRequest {
alertLevel?: string(name='alertLevel', description='报警等级 P1 P2 P3 P4'),
relatedServiceId?: long(name='relatedServiceId', description='服务id'),
alertName?: string(name='alertName', description='报警名称'),
pageNumber?: long(name='pageNumber', description='当前页'),
pageSize?: long(name='pageSize', description='页大小'),
alertSourceName?: string(name='alertSourceName', description='报警来源'),
}
model ListAlertsResponseBody = {
requestId?: string(name='requestId', description='请求ID'),
data?: [
{
alertId?: long(name='alertId', description='报警ID'),
createTime?: string(name='createTime', description='创建时间'),
relatedServiceName?: string(name='relatedServiceName', description='关联服务名称'),
alertLevel?: string(name='alertLevel', description='告警优先级 1,2,3,4 对应 p1,p2,p3,p4'),
title?: string(name='title', description='报警标题'),
sourceEventCount?: long(name='sourceEventCount', description='收敛量'),
alertSourceName?: string(name='alertSourceName', description='报警源'),
routeRuleId?: long(name='routeRuleId', description='关联流转规则ID'),
}
](name='data', description='报警列表'),
totalCount?: long(name='totalCount', description='总条数'),
pageNumber?: int32(name='pageNumber', description='当前页'),
pageSize?: int32(name='pageSize', description='页的大小'),
}
model ListAlertsResponse = {
headers: map[string]string(name='headers'),
body: ListAlertsResponseBody(name='body'),
}
async function listAlerts(request: ListAlertsRequest): ListAlertsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listAlertsWithOptions(request, headers, runtime);
}
async function listAlertsWithOptions(request: ListAlertsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListAlertsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.alertLevel)) {
body.alertLevel = request.alertLevel;
}
if (!Util.isUnset(request.relatedServiceId)) {
body.relatedServiceId = request.relatedServiceId;
}
if (!Util.isUnset(request.alertName)) {
body.alertName = request.alertName;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
if (!Util.isUnset(request.alertSourceName)) {
body.alertSourceName = request.alertSourceName;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListAlerts', '2021-04-13', 'HTTPS', 'POST', 'AK', `/alerts/list`, 'json', req, runtime);
}
model GetProblemPreviewRequest {
problemId?: long(name='problemId', description='故障id'),
problemNotifyType?: string(name='problemNotifyType', description='通告类型'),
problemLevel?: string(name='problemLevel', description='故障等级'),
effectServiceIds?: [ long ](name='effectServiceIds', description='影响服务'),
relatedServiceId?: long(name='relatedServiceId', description='所属服务'),
incidentId?: long(name='incidentId', description='事件Id'),
serviceGroupIds?: [ long ](name='serviceGroupIds', description='应急协同组'),
clientToken?: string(name='clientToken', description='幂等校验token'),
}
model GetProblemPreviewResponseBody = {
requestId?: string(name='requestId', description='requestId'),
data?: {
problem?: {
problemName?: string(name='problemName', description='故障名称'),
problemStatus?: string(name='problemStatus', description='故障状态 1 处理中 2已恢复 3复盘中 4已复盘 5已取消'),
problemLevel?: string(name='problemLevel', description='故障等级 1=P1 2=P2 3=P3 4=P4'),
discoverTime?: string(name='discoverTime', description='发现时间'),
recoveryTime?: string(name='recoveryTime', description='恢复时间'),
serviceName?: string(name='serviceName', description='关联服务 名称'),
progressSummary?: string(name='progressSummary', description='进展摘要'),
preliminaryReason?: string(name='preliminaryReason', description='初步原因'),
mainHandlerName?: string(name='mainHandlerName', description='主要处理人'),
mainHandlerId?: string(name='mainHandlerId', description='主要处理人Id'),
isManual?: boolean(name='isManual', description='是否手动'),
isUpgrade?: boolean(name='isUpgrade', description='是否升级'),
problemId?: long(name='problemId', description='故障Id'),
relatedServiceId?: long(name='relatedServiceId', description='关联服务ID'),
createTime?: string(name='createTime', description='创建时间'),
coordinationGroups?: [
{
serviceGroupName?: string(name='serviceGroupName', description='服务组名称'),
serviceGroupId?: long(name='serviceGroupId', description='服务Id'),
serviceGroupDescription?: string(name='serviceGroupDescription', description='服务组Maison'),
}
](name='coordinationGroups', description='应急协同组'),
effectionServices?: [
{
serviceName?: string(name='serviceName', description='影响服务名称'),
serviceId?: long(name='serviceId', description='影响服务Id'),
}
](name='effectionServices', description='影响服务'),
}(name='problem'),
voice?: {
count?: long(name='count', description='数量'),
users?: [
{
username?: string(name='username', description='用户'),
}
](name='users'),
}(name='voice', description='语音'),
mail?: {
count?: long(name='count', description='数量'),
users?: [
{
username?: string(name='username', description='用户名称'),
}
](name='users'),
}(name='mail', description='邮箱'),
sms?: {
count?: long(name='count', description='数量'),
users?: [
{
username?: string(name='username', description='用户名称'),
}
](name='users'),
}(name='sms', description='短信'),
webhook?: {
count?: long(name='count', description='数量'),
serviceGroups?: [
{
serviceName?: string(name='serviceName', description='服务名称'),
}
](name='serviceGroups'),
}(name='webhook', description='webhook'),
upBeforeData?: string(name='upBeforeData', description='升级前数据'),
upAfterData?: string(name='upAfterData', description='升级后数据'),
deBeforeData?: string(name='deBeforeData', description='降级前数据'),
deAfterData?: string(name='deAfterData', description='降级后数据'),
}(name='data'),
}
model GetProblemPreviewResponse = {
headers: map[string]string(name='headers'),
body: GetProblemPreviewResponseBody(name='body'),
}
async function getProblemPreview(request: GetProblemPreviewRequest): GetProblemPreviewResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getProblemPreviewWithOptions(request, headers, runtime);
}
async function getProblemPreviewWithOptions(request: GetProblemPreviewRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetProblemPreviewResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.problemNotifyType)) {
body.problemNotifyType = request.problemNotifyType;
}
if (!Util.isUnset(request.problemLevel)) {
body.problemLevel = request.problemLevel;
}
if (!Util.isUnset(request.effectServiceIds)) {
body.effectServiceIds = request.effectServiceIds;
}
if (!Util.isUnset(request.relatedServiceId)) {
body.relatedServiceId = request.relatedServiceId;
}
if (!Util.isUnset(request.incidentId)) {
body.incidentId = request.incidentId;
}
if (!Util.isUnset(request.serviceGroupIds)) {
body.serviceGroupIds = request.serviceGroupIds;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetProblemPreview', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/preview`, 'json', req, runtime);
}
model UpdateRouteRuleRequest {
ruleName?: string(name='ruleName', description='规则名称'),
relatedServiceId?: long(name='relatedServiceId', description='关联服务ID'),
routeRuleId?: long(name='routeRuleId', description='规则ID'),
routeType?: string(name='routeType', description='路由类型:INCIDENT 触发事件 ALERT 仅触发报警'),
incidentLevel?: string(name='incidentLevel', description='事件级别 1-P1 2-P2 3-P3 4-P4'),
assignObjectId?: long(name='assignObjectId', description='事件分派对象ID(服务组ID 或用户ID)'),
assignObjectType?: string(name='assignObjectType', description='事件分派对象类型 SERVICEGROUP服务组 USER 单个用户'),
effection?: string(name='effection', description='影响程度 LOW-一般 HIGH-严重'),
timeWindow?: int32(name='timeWindow', description='时间窗口'),
timeWindowUnit?: string(name='timeWindowUnit', description='时间窗口单位 MINUTE 分钟 SECOND 秒'),
matchCount?: long(name='matchCount', description='命中次数'),
routeChildRules?: [
{
childRouteRuleId?: long(name='childRouteRuleId', description='子规则ID 不填表示新增'),
conditions?: [
{
key?: string(name='key', description='字段'),
value?: string(name='value', description='字段取值'),
operationSymbol?: string(name='operationSymbol', description='操作符'),
}
](name='conditions', description='条件'),
monitorSourceId?: long(name='monitorSourceId', description='监控源ID'),
isValidChildRule?: boolean(name='isValidChildRule', description='true 删除子规则 false编辑子规则'),
}
](name='routeChildRules', description='子规则'),
notifyChannels?: [ string ](name='notifyChannels', description='通知渠道 SMS 短信 EMAIL 邮件 PHONE 电话 WEIXIN_GROUP 企微群 DING_GROUP 钉钉群'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model UpdateRouteRuleResponseBody = {
requestId?: string(name='requestId', description='请求ID'),
data?: long(name='data'),
}
model UpdateRouteRuleResponse = {
headers: map[string]string(name='headers'),
body: UpdateRouteRuleResponseBody(name='body'),
}
async function updateRouteRule(request: UpdateRouteRuleRequest): UpdateRouteRuleResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateRouteRuleWithOptions(request, headers, runtime);
}
async function updateRouteRuleWithOptions(request: UpdateRouteRuleRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateRouteRuleResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.ruleName)) {
body.ruleName = request.ruleName;
}
if (!Util.isUnset(request.relatedServiceId)) {
body.relatedServiceId = request.relatedServiceId;
}
if (!Util.isUnset(request.routeRuleId)) {
body.routeRuleId = request.routeRuleId;
}
if (!Util.isUnset(request.routeType)) {
body.routeType = request.routeType;
}
if (!Util.isUnset(request.incidentLevel)) {
body.incidentLevel = request.incidentLevel;
}
if (!Util.isUnset(request.assignObjectId)) {
body.assignObjectId = request.assignObjectId;
}
if (!Util.isUnset(request.assignObjectType)) {
body.assignObjectType = request.assignObjectType;
}
if (!Util.isUnset(request.effection)) {
body.effection = request.effection;
}
if (!Util.isUnset(request.timeWindow)) {
body.timeWindow = request.timeWindow;
}
if (!Util.isUnset(request.timeWindowUnit)) {
body.timeWindowUnit = request.timeWindowUnit;
}
if (!Util.isUnset(request.matchCount)) {
body.matchCount = request.matchCount;
}
if (!Util.isUnset(request.routeChildRules)) {
body.routeChildRules = request.routeChildRules;
}
if (!Util.isUnset(request.notifyChannels)) {
body.notifyChannels = request.notifyChannels;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateRouteRule', '2021-04-13', 'HTTPS', 'POST', 'AK', `/routeRule/edit`, 'json', req, runtime);
}
model EnableSubscriptionRequest {
subscriptionId?: long(name='subscriptionId'),
}
model EnableSubscriptionResponseBody = {
requestId?: string(name='requestId'),
}
model EnableSubscriptionResponse = {
headers: map[string]string(name='headers'),
body: EnableSubscriptionResponseBody(name='body'),
}
async function enableSubscription(request: EnableSubscriptionRequest): EnableSubscriptionResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return enableSubscriptionWithOptions(request, headers, runtime);
}
async function enableSubscriptionWithOptions(request: EnableSubscriptionRequest, headers: map[string]string, runtime: Util.RuntimeOptions): EnableSubscriptionResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.subscriptionId)) {
body.subscriptionId = request.subscriptionId;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('EnableSubscription', '2021-04-13', 'HTTPS', 'POST', 'AK', `/notify/subscription/enable`, 'json', req, runtime);
}
model UpdateSubscriptionRequest {
subscriptionId?: long(name='subscriptionId', description='主键'),
subscriptionTitle?: string(name='subscriptionTitle', description='通知订阅名称'),
scope?: string(name='scope', description='订阅范围类型'),
notifyObjectType?: string(name='notifyObjectType', description='通知对象类型'),
expiredType?: string(name='expiredType', description='订阅时效'),
scopeObjectList?: [
{
id?: long(name='id', description='主键id'),
scopeObjectId?: long(name='scopeObjectId', description='订阅范围对象id'),
}
](name='scopeObjectList', description='订阅范围列表'),
notifyObjectList?: [
{
id?: long(name='id', description='主键id'),
notifyObjectId?: long(name='notifyObjectId', description='通知对象id'),
}
](name='notifyObjectList', description='通知对象列表'),
notifyStrategyList?: [
{
instanceType?: long(name='instanceType', description='订阅实例类型,事件、报警、故障'),
strategies?: [
{
id?: string(name='id', description='id'),
channels?: string(name='channels', description='故障等级'),
conditions?: [
{
level?: string(name='level', description='等级'),
effection?: string(name='effection', description='影响程度'),
problemNotifyType?: string(name='problemNotifyType', description='故障通知类型'),
action?: string(name='action', description='事件动作'),
}
](name='conditions', description='影响程度'),
}
](name='strategies', description='通知策略'),
}
](name='notifyStrategyList', description='通知策略列表'),
startTime?: string(name='startTime', description='开始时间'),
endTime?: string(name='endTime', description='结束时间'),
}
model UpdateSubscriptionResponseBody = {
requestId?: string(name='requestId'),
}
model UpdateSubscriptionResponse = {
headers: map[string]string(name='headers'),
body: UpdateSubscriptionResponseBody(name='body'),
}
async function updateSubscription(request: UpdateSubscriptionRequest): UpdateSubscriptionResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateSubscriptionWithOptions(request, headers, runtime);
}
async function updateSubscriptionWithOptions(request: UpdateSubscriptionRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateSubscriptionResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.subscriptionId)) {
body.subscriptionId = request.subscriptionId;
}
if (!Util.isUnset(request.subscriptionTitle)) {
body.subscriptionTitle = request.subscriptionTitle;
}
if (!Util.isUnset(request.scope)) {
body.scope = request.scope;
}
if (!Util.isUnset(request.notifyObjectType)) {
body.notifyObjectType = request.notifyObjectType;
}
if (!Util.isUnset(request.expiredType)) {
body.expiredType = request.expiredType;
}
if (!Util.isUnset(request.scopeObjectList)) {
body.scopeObjectList = request.scopeObjectList;
}
if (!Util.isUnset(request.notifyObjectList)) {
body.notifyObjectList = request.notifyObjectList;
}
if (!Util.isUnset(request.notifyStrategyList)) {
body.notifyStrategyList = request.notifyStrategyList;
}
if (!Util.isUnset(request.startTime)) {
body.startTime = request.startTime;
}
if (!Util.isUnset(request.endTime)) {
body.endTime = request.endTime;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateSubscription', '2021-04-13', 'HTTPS', 'POST', 'AK', `/notify/subscription/update`, 'json', req, runtime);
}
model GetIncidentStatisticsRequest {
clientToken?: string(name='clientToken', description='幂等校验Id'),
}
model GetIncidentStatisticsResponseBody = {
requestId?: string(name='requestId'),
data?: {
myResponse?: int32(name='myResponse', description='我的 待响应'),
myFinish?: int32(name='myFinish', description='我的 完结'),
allResponse?: int32(name='allResponse', description='所有 待响应'),
allFinish?: int32(name='allFinish', description='所有 完结'),
}(name='data'),
}
model GetIncidentStatisticsResponse = {
headers: map[string]string(name='headers'),
body: GetIncidentStatisticsResponseBody(name='body'),
}
async function getIncidentStatistics(request: GetIncidentStatisticsRequest): GetIncidentStatisticsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getIncidentStatisticsWithOptions(request, headers, runtime);
}
async function getIncidentStatisticsWithOptions(request: GetIncidentStatisticsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetIncidentStatisticsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetIncidentStatistics', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/count`, 'json', req, runtime);
}
model ListProblemOperationsRequest {
clientToken?: string(name='clientToken', description='幂等校验token'),
pageNumber?: int32(name='pageNumber', description='页'),
pageSize?: int32(name='pageSize', description='行'),
}
model ListProblemOperationsResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
totalCount?: int32(name='totalCount', description='总数'),
pageNumber?: int32(name='pageNumber', description='页'),
pageSize?: int32(name='pageSize', description='行'),
data?: [
{
title?: string(name='title', description='动态标题'),
description?: string(name='description', description='描述'),
relatedServiceName?: string(name='relatedServiceName', description='服务名称'),
createTime?: string(name='createTime', description='创建时间'),
action?: string(name='action', description='升级 PROBLEM_UPGRADE 撤销 PROBLEM_REVOKE 恢复 PROBLEM_RESTORE 复盘 PROBLEM_IN_REVIEW 完结 PROBLEM_REOPENED 取消 PROBLEM_CANCEL 更新故障通告 PROBLEM_UPDATE_NOTIFY 添加故障小计 PROBLEM_ADD_SUBTOTAL 更新故障 PROBLEM_UPDATE'),
problemId?: long(name='problemId', description='故障Id'),
problemName?: string(name='problemName', description='故障名称'),
}
](name='data', description='data'),
}
model ListProblemOperationsResponse = {
headers: map[string]string(name='headers'),
body: ListProblemOperationsResponseBody(name='body'),
}
async function listProblemOperations(request: ListProblemOperationsRequest): ListProblemOperationsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listProblemOperationsWithOptions(request, headers, runtime);
}
async function listProblemOperationsWithOptions(request: ListProblemOperationsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListProblemOperationsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListProblemOperations', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/operations`, 'json', req, runtime);
}
model ListSourceEventsRequest {
instanceId?: long(name='instanceId', description='报警或者事件ID'),
instanceType?: string(name='instanceType', description='INCIDENT 事件、ALERT 报警、PROBLEM 故障'),
startRowKey?: string(name='startRowKey', description='startRowKey 用来查询下一页的数据'),
stopRowKey?: string(name='stopRowKey', description='stopRowKey 用来查询上一页的数据'),
pageSize?: long(name='pageSize', description='页大小'),
clientToken?: string(name='clientToken', description='幂等号'),
pageNumber?: long(name='pageNumber', description='当前页'),
}
model ListSourceEventsResponseBody = {
requestId?: string(name='requestId', description='请求ID'),
totalCount?: long(name='totalCount', description='总条数'),
pageNumber?: long(name='pageNumber', description='当前页'),
pageSize?: long(name='pageSize', description='页大小'),
data?: [
{
routeRuleId?: long(name='routeRuleId', description='规则ID'),
instanceType?: string(name='instanceType', description='INCIDENT 事件、ALERT 报警、PROBLEM 故障'),
instanceId?: long(name='instanceId', description='关联对象ID'),
monitorSourceId?: long(name='monitorSourceId', description='监控告警源ID'),
monitorSourceName?: string(name='monitorSourceName', description='监控告警源名称'),
eventTime?: string(name='eventTime', description='告警上报时间'),
tenantRamId?: long(name='tenantRamId', description='租户ID'),
eventJson?: string(name='eventJson', description='告警内容json'),
}
](name='data'),
lastRowKey?: string(name='lastRowKey', description='lastRowKey'),
firstRowKey?: string(name='firstRowKey', description='firstRowKey'),
}
model ListSourceEventsResponse = {
headers: map[string]string(name='headers'),
body: ListSourceEventsResponseBody(name='body'),
}
async function listSourceEvents(request: ListSourceEventsRequest): ListSourceEventsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listSourceEventsWithOptions(request, headers, runtime);
}
async function listSourceEventsWithOptions(request: ListSourceEventsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListSourceEventsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.instanceId)) {
body.instanceId = request.instanceId;
}
if (!Util.isUnset(request.instanceType)) {
body.instanceType = request.instanceType;
}
if (!Util.isUnset(request.startRowKey)) {
body.startRowKey = request.startRowKey;
}
if (!Util.isUnset(request.stopRowKey)) {
body.stopRowKey = request.stopRowKey;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListSourceEvents', '2021-04-13', 'HTTPS', 'POST', 'AK', `/events/listOriginalEvent`, 'json', req, runtime);
}
model GetServiceGroupSpecialPersonSchedulingRequest {
userId?: long(name='userId', description='用户ID'),
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model GetServiceGroupSpecialPersonSchedulingResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: [
{
schedulingStartTime?: string(name='schedulingStartTime', description='排班开始时间'),
schedulingEndTime?: string(name='schedulingEndTime', description='排班结束时间'),
schedulingDate?: string(name='schedulingDate', description='排班日期'),
serviceGroupId?: long(name='serviceGroupId', description='服务组id'),
serviceGroupName?: string(name='serviceGroupName', description='服务组名字'),
schedulingUserId?: long(name='schedulingUserId', description='排班用户ID'),
}
](name='data', description='人员排班信息'),
}
model GetServiceGroupSpecialPersonSchedulingResponse = {
headers: map[string]string(name='headers'),
body: GetServiceGroupSpecialPersonSchedulingResponseBody(name='body'),
}
async function getServiceGroupSpecialPersonScheduling(request: GetServiceGroupSpecialPersonSchedulingRequest): GetServiceGroupSpecialPersonSchedulingResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getServiceGroupSpecialPersonSchedulingWithOptions(request, headers, runtime);
}
async function getServiceGroupSpecialPersonSchedulingWithOptions(request: GetServiceGroupSpecialPersonSchedulingRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetServiceGroupSpecialPersonSchedulingResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.userId)) {
body.userId = request.userId;
}
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetServiceGroupSpecialPersonScheduling', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/scheduling/getUserScheduling`, 'json', req, runtime);
}
model GetUserRequest {
userId?: long(name='userId', description='用户ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model GetUserResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
userId?: long(name='userId', description='用户ID'),
ramId?: string(name='ramId', description='ramId'),
isEditableUser?: boolean(name='isEditableUser', description='是否当前用户'),
accountType?: string(name='accountType', description='CUSTOMER:主账号,SUB:子账号'),
email?: string(name='email', description='email'),
username?: string(name='username', description='用户昵称'),
phone?: string(name='phone', description='用户手机号'),
}(name='data', description='用户'),
}
model GetUserResponse = {
headers: map[string]string(name='headers'),
body: GetUserResponseBody(name='body'),
}
async function getUser(request: GetUserRequest): GetUserResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getUserWithOptions(request, headers, runtime);
}
async function getUserWithOptions(request: GetUserRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetUserResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.userId)) {
body.userId = request.userId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetUser', '2021-04-13', 'HTTPS', 'POST', 'AK', `/user/getUser`, 'json', req, runtime);
}
model AddProblemServiceGroupRequest {
problemId?: long(name='problemId', description='故障ID'),
serviceGroupIds?: [ long ](name='serviceGroupIds', description='应急协同组'),
}
model AddProblemServiceGroupResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model AddProblemServiceGroupResponse = {
headers: map[string]string(name='headers'),
body: AddProblemServiceGroupResponseBody(name='body'),
}
async function addProblemServiceGroup(request: AddProblemServiceGroupRequest): AddProblemServiceGroupResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return addProblemServiceGroupWithOptions(request, headers, runtime);
}
async function addProblemServiceGroupWithOptions(request: AddProblemServiceGroupRequest, headers: map[string]string, runtime: Util.RuntimeOptions): AddProblemServiceGroupResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.serviceGroupIds)) {
body.serviceGroupIds = request.serviceGroupIds;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('AddProblemServiceGroup', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/addServiceGroup`, 'json', req, runtime);
}
model ReplayProblemRequest {
problemId?: long(name='problemId', description='故障ID'),
replayDutyUserId?: long(name='replayDutyUserId', description='复盘负责人ID'),
clientToken?: string(name='clientToken', description='幂等校验token'),
}
model ReplayProblemResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model ReplayProblemResponse = {
headers: map[string]string(name='headers'),
body: ReplayProblemResponseBody(name='body'),
}
async function replayProblem(request: ReplayProblemRequest): ReplayProblemResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return replayProblemWithOptions(request, headers, runtime);
}
async function replayProblemWithOptions(request: ReplayProblemRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ReplayProblemResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.replayDutyUserId)) {
body.replayDutyUserId = request.replayDutyUserId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ReplayProblem', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/replay`, 'json', req, runtime);
}
model GetProblemRequest {
problemId?: long(name='problemId', description='故障ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model GetProblemResponseBody = {
data?: {
problemId?: long(name='problemId', description='ID'),
createTime?: string(name='createTime', description='创建时间'),
incidentNumber?: string(name='incidentNumber', description='事件编号'),
incidentId?: long(name='incidentId', description='事件id'),
problemNumber?: string(name='problemNumber', description='故障编号'),
problemName?: string(name='problemName', description='故障名称'),
problemStatus?: int32(name='problemStatus', description='故障状态 HANDLING 处理中 RECOVERED 已恢复 REPLAYING 复盘中 REPLAYED 已复盘 CANCEL 已取消'),
problemLevel?: int32(name='problemLevel', description='故障等级 P1 P2 P3 P4'),
discoverTime?: string(name='discoverTime', description='发现时间'),
recoveryTime?: string(name='recoveryTime', description='恢复时间'),
relatedServiceId?: long(name='relatedServiceId', description='关联服务ID'),
serviceName?: string(name='serviceName', description='关联服务 名称'),
progressSummary?: string(name='progressSummary', description='进展摘要'),
preliminaryReason?: string(name='preliminaryReason', description='初步原因'),
mainHandler?: long(name='mainHandler', description='主要处理人'),
mainHandlerId?: long(name='mainHandlerId', description='主要处理人ID'),
mainHandlerPhone?: string(name='mainHandlerPhone', description='主要处理人手机号'),
feedback?: string(name='feedback', description='舆情反馈'),
cancelReasonDescription?: string(name='cancelReasonDescription', description='取消原因描述'),
cancelReason?: long(name='cancelReason', description='取消原因'),
durationTime?: long(name='durationTime', description='持续时间'),
handingProblemOperateLogs?: [
{
operator?: string(name='operator', description='操作人'),
actionName?: string(name='actionName', description='动作名称'),
actionTime?: string(name='actionTime', description='操作时间'),
}
](name='handingProblemOperateLogs', description='处理中故障操作日志'),
restoredProblemOperateLogs?: [
{
operator?: string(name='operator', description='操作人'),
actionName?: string(name='actionName', description='动作名称'),
actionTime?: string(name='actionTime', description='操作时间'),
}
](name='restoredProblemOperateLogs', description='已恢复故障操作日志'),
replayingProblemOperateLogs?: [
{
operator?: string(name='operator', description='操作人'),
actionName?: string(name='actionName', description='动作名称'),
actionTime?: string(name='actionTime', description='操作时间'),
}
](name='replayingProblemOperateLogs', description='复盘中故障操作日志'),
replayProblemOperateLogs?: [
{
operator?: string(name='operator', description='操作人'),
actionName?: string(name='actionName', description='动作名称'),
actionTime?: string(name='actionTime', description='操作时间'),
}
](name='replayProblemOperateLogs', description='已复盘故障操作日志'),
effectionServices?: [
{
effectionServiceId?: long(name='effectionServiceId', description='服务ID'),
effectionLevel?: long(name='effectionLevel', description='影响等级 P1 . P2 P3 P4'),
effectionStatus?: int32(name='effectionStatus', description='影响服务状态 RECOVERED 已经恢复 ,UN_RECOVERED 未恢复'),
description?: string(name='description', description='影响描述'),
serviceName?: string(name='serviceName', description='服务名称'),
}
](name='effectionServices', description='影响服务'),
coordinationGroups?: [
{
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
serviceGroupName?: string(name='serviceGroupName', description='服务组名字'),
}
](name='coordinationGroups', description='应急协同组'),
timelines?: [
{
keyNode?: string(name='keyNode', description='关键节点 码表:PROBLEM_KEY_NODE (逗号分隔)'),
}
](name='timelines', description='故障操作时间线'),
cancelProblemOperateLogs?: [
{
operator?: string(name='operator', description='操作人'),
actionName?: string(name='actionName', description='动作名称'),
actionTime?: string(name='actionTime', description='操作时间'),
}
](name='cancelProblemOperateLogs', description='已取消故障操作日志'),
}(name='data', description='详情'),
requestId?: string(name='requestId', description='请求ID'),
}
model GetProblemResponse = {
headers: map[string]string(name='headers'),
body: GetProblemResponseBody(name='body'),
}
async function getProblem(request: GetProblemRequest): GetProblemResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getProblemWithOptions(request, headers, runtime);
}
async function getProblemWithOptions(request: GetProblemRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetProblemResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetProblem', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/detail`, 'json', req, runtime);
}
model DeleteProblemRequest {
problemId?: long(name='problemId', description='故障Id'),
clientToken?: string(name='clientToken', description='幂等校验'),
}
model DeleteProblemResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DeleteProblemResponse = {
headers: map[string]string(name='headers'),
body: DeleteProblemResponseBody(name='body'),
}
async function deleteProblem(request: DeleteProblemRequest): DeleteProblemResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteProblemWithOptions(request, headers, runtime);
}
async function deleteProblemWithOptions(request: DeleteProblemRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteProblemResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteProblem', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/delete`, 'json', req, runtime);
}
model CreateServiceGroupRequest {
serviceGroupName?: string(name='serviceGroupName', description='服务小组名称'),
userIds?: [ long ](name='userIds', description='小组人员用户ID'),
enableWebhook?: string(name='enableWebhook', description='ENABLE 启用 DISABLE 禁用'),
webhookType?: string(name='webhookType', description='WEIXIN_GROUP 微信 DING_GROUP 钉钉 FEISHU_GROUP飞书'),
serviceGroupDescription?: string(name='serviceGroupDescription', description='服务描述'),
webhookLink?: string(name='webhookLink', description='webhookLink'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model CreateServiceGroupResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
}(name='data', description='服务组ID'),
}
model CreateServiceGroupResponse = {
headers: map[string]string(name='headers'),
body: CreateServiceGroupResponseBody(name='body'),
}
async function createServiceGroup(request: CreateServiceGroupRequest): CreateServiceGroupResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createServiceGroupWithOptions(request, headers, runtime);
}
async function createServiceGroupWithOptions(request: CreateServiceGroupRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateServiceGroupResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceGroupName)) {
body.serviceGroupName = request.serviceGroupName;
}
if (!Util.isUnset(request.userIds)) {
body.userIds = request.userIds;
}
if (!Util.isUnset(request.enableWebhook)) {
body.enableWebhook = request.enableWebhook;
}
if (!Util.isUnset(request.webhookType)) {
body.webhookType = request.webhookType;
}
if (!Util.isUnset(request.serviceGroupDescription)) {
body.serviceGroupDescription = request.serviceGroupDescription;
}
if (!Util.isUnset(request.webhookLink)) {
body.webhookLink = request.webhookLink;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateServiceGroup', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/insert`, 'json', req, runtime);
}
model DeleteIncidentRequest {
clientToken?: string(name='clientToken', description='幂等校验'),
incidentId?: long(name='incidentId', description='事件Id'),
}
model DeleteIncidentResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DeleteIncidentResponse = {
headers: map[string]string(name='headers'),
body: DeleteIncidentResponseBody(name='body'),
}
async function deleteIncident(request: DeleteIncidentRequest): DeleteIncidentResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteIncidentWithOptions(request, headers, runtime);
}
async function deleteIncidentWithOptions(request: DeleteIncidentRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteIncidentResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.incidentId)) {
body.incidentId = request.incidentId;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteIncident', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/delete`, 'json', req, runtime);
}
model ListServicesRequest {
serviceName?: string(name='serviceName', description='服务名称'),
pageNumber?: long(name='pageNumber', description='当前页'),
pageSize?: long(name='pageSize', description='页大小'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model ListServicesResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: [
{
serviceId?: long(name='serviceId', description='服务ID'),
serviceName?: string(name='serviceName', description='服务名字'),
serviceDescription?: string(name='serviceDescription', description='服务描述'),
updateTime?: string(name='updateTime', description='修改时间'),
}
](name='data'),
pageNumber?: long(name='pageNumber', description='当前页'),
pageSize?: long(name='pageSize', description='页大小'),
totalCount?: long(name='totalCount', description='总条数'),
}
model ListServicesResponse = {
headers: map[string]string(name='headers'),
body: ListServicesResponseBody(name='body'),
}
async function listServices(request: ListServicesRequest): ListServicesResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listServicesWithOptions(request, headers, runtime);
}
async function listServicesWithOptions(request: ListServicesRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListServicesResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceName)) {
body.serviceName = request.serviceName;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListServices', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/list`, 'json', req, runtime);
}
model GetSubscriptionRequest {
subscriptionId?: long(name='subscriptionId'),
}
model GetSubscriptionResponseBody = {
requestId?: string(name='requestId'),
data?: {
subscriptionId?: long(name='subscriptionId'),
subscriptionTitle?: string(name='subscriptionTitle', description='通知订阅名称'),
scope?: string(name='scope', description='0 全部 1服务 2 流转规则'),
notifyObjectType?: string(name='notifyObjectType', description='0服务组 1个人'),
expiredType?: string(name='expiredType', description='有效期类型 0 长期 1短期'),
startTime?: string(name='startTime', description='时效开始时间'),
endTime?: string(name='endTime', description='时效结束时间'),
status?: string(name='status', description='1 启用 0禁用'),
scopeObjectList?: [
{
id?: long(name='id', description='id主键'),
scope?: string(name='scope', description='订阅范围类型 0 全部 1服务 2 流转规则'),
scopeObjectId?: long(name='scopeObjectId', description='订阅范围对象关联表主键id'),
scopeObject?: string(name='scopeObject', description='订阅范围对象名称'),
}
](name='scopeObjectList'),
notifyObjectList?: [
{
id?: long(name='id', description='id主键'),
notifyObjectType?: long(name='notifyObjectType', description='通知对象类型0服务组 1个人'),
notifyObjectId?: long(name='notifyObjectId', description='关联主键id'),
name?: string(name='name', description='通知对象名'),
}
](name='notifyObjectList', description='通知对象列表'),
notifyStrategyList?: [
{
instanceType?: long(name='instanceType', description='订阅实例类型,0事件、1报警、2故障'),
strategies?: [
{
id?: long(name='id', description='策略主键'),
channels?: string(name='channels', description='通知渠道'),
conditions?: [
{
effection?: string(name='effection', description='影响范围'),
problemNotifyType?: string(name='problemNotifyType', description='故障通知类型'),
level?: string(name='level', description='等级'),
action?: string(name='action', description='事件动作'),
}
](name='conditions', description='条件'),
}
](name='strategies', description='策略'),
}
](name='notifyStrategyList', description='通知策略列表'),
}(name='data'),
}
model GetSubscriptionResponse = {
headers: map[string]string(name='headers'),
body: GetSubscriptionResponseBody(name='body'),
}
async function getSubscription(request: GetSubscriptionRequest): GetSubscriptionResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getSubscriptionWithOptions(request, headers, runtime);
}
async function getSubscriptionWithOptions(request: GetSubscriptionRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetSubscriptionResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.subscriptionId)) {
body.subscriptionId = request.subscriptionId;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetSubscription', '2021-04-13', 'HTTPS', 'POST', 'AK', `/notify/subscription/detail`, 'json', req, runtime);
}
model CreateProblemTimelinesRequest {
problemId?: long(name='problemId', description='故障id'),
timelineNodes?: string(name='timelineNodes', description='时间线节点'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model CreateProblemTimelinesResponseBody = {
requestId?: string(name='requestId'),
data?: {
problemTimelineIds?: [ long ](name='problemTimelineIds'),
}(name='data'),
}
model CreateProblemTimelinesResponse = {
headers: map[string]string(name='headers'),
body: CreateProblemTimelinesResponseBody(name='body'),
}
async function createProblemTimelines(request: CreateProblemTimelinesRequest): CreateProblemTimelinesResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createProblemTimelinesWithOptions(request, headers, runtime);
}
async function createProblemTimelinesWithOptions(request: CreateProblemTimelinesRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateProblemTimelinesResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.timelineNodes)) {
body.timelineNodes = request.timelineNodes;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateProblemTimelines', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/process/timeline/batchCreate`, 'json', req, runtime);
}
model GetSimilarIncidentStatisticsRequest {
incidentId?: long(name='incidentId', description='事件id'),
incidentTitle?: string(name='incidentTitle', description='事件标题'),
createTime?: string(name='createTime', description='触发时间'),
relatedServiceId?: long(name='relatedServiceId', description='关联服务id'),
events?: [ string ](name='events', description='事件告警内容'),
clientToken?: string(name='clientToken', description='幂等标识'),
}
model GetSimilarIncidentStatisticsResponseBody = {
requestId?: string(name='requestId', description='id of the request'),
data?: {
topFiveIncidents?: [
{
incidentId?: long(name='incidentId', description='事件id'),
incidentNumber?: string(name='incidentNumber', description='事件编号'),
incidentTitle?: string(name='incidentTitle', description='事件标题'),
relatedRouteRuleId?: long(name='relatedRouteRuleId', description='流转规则id'),
relatedRouteRuleName?: string(name='relatedRouteRuleName', description='流转规则名称'),
finishReason?: long(name='finishReason', description='触发原因'),
finishReasonDescription?: string(name='finishReasonDescription', description='触发原因描述'),
incidentFinishSolution?: long(name='incidentFinishSolution', description='解决方案'),
finishSolutionDescription?: string(name='finishSolutionDescription', description='解决方案描述'),
createTime?: string(name='createTime', description='触发时间'),
assignUserId?: string(name='assignUserId', description='分派人id'),
assignUserName?: string(name='assignUserName', description='分派人'),
durationTime?: long(name='durationTime', description='持续时间'),
}
](name='topFiveIncidents', description='topFiveIncidents'),
countInSixMonths?: long(name='countInSixMonths', description='6月内相似事件数量'),
countInSevenDays?: long(name='countInSevenDays', description='7天内相似事件数量'),
dailySimilarIncidents?: [
{
date?: string(name='date', description='日期'),
commitment?: long(name='commitment', description='数量'),
month?: long(name='month', description='月份'),
week?: string(name='week', description='周'),
day?: long(name='day', description='星期几'),
similarIncidents?: [
{
incidentId?: long(name='incidentId', description='事件id'),
incidentNumber?: string(name='incidentNumber', description='事件编号'),
incidentTitle?: string(name='incidentTitle', description='事件名称'),
relatedRouteRuleId?: long(name='relatedRouteRuleId', description='流转规则id'),
relatedRouteRuleName?: string(name='relatedRouteRuleName', description='流转规则名称'),
finishReason?: long(name='finishReason', description='触发原因'),
finishReasonDescription?: string(name='finishReasonDescription', description='触发原因描述'),
incidentFinishSolution?: long(name='incidentFinishSolution', description='解决方案'),
finishSolutionDescription?: string(name='finishSolutionDescription', description='解决方案描述'),
createTime?: string(name='createTime', description='触发时间'),
assignUserName?: string(name='assignUserName', description='分派人'),
assignUserId?: long(name='assignUserId', description='分派人id'),
durationTime?: long(name='durationTime', description='持续时间'),
}
](name='similarIncidents', description='相似事件列表'),
}
](name='dailySimilarIncidents', description='根据日期分类'),
requestId?: string(name='requestId', description='id of the request'),
}(name='data', description='data'),
}
model GetSimilarIncidentStatisticsResponse = {
headers: map[string]string(name='headers'),
body: GetSimilarIncidentStatisticsResponseBody(name='body'),
}
async function getSimilarIncidentStatistics(request: GetSimilarIncidentStatisticsRequest): GetSimilarIncidentStatisticsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getSimilarIncidentStatisticsWithOptions(request, headers, runtime);
}
async function getSimilarIncidentStatisticsWithOptions(request: GetSimilarIncidentStatisticsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetSimilarIncidentStatisticsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentId)) {
body.incidentId = request.incidentId;
}
if (!Util.isUnset(request.incidentTitle)) {
body.incidentTitle = request.incidentTitle;
}
if (!Util.isUnset(request.createTime)) {
body.createTime = request.createTime;
}
if (!Util.isUnset(request.relatedServiceId)) {
body.relatedServiceId = request.relatedServiceId;
}
if (!Util.isUnset(request.events)) {
body.events = request.events;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetSimilarIncidentStatistics', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/similarIncident/statistics`, 'json', req, runtime);
}
model CreateProblemTimelineRequest {
problemId?: long(name='problemId', description='故障id'),
keyNode?: string(name='keyNode', description='关键节点 码表:PROBLEM_KEY_NODE (逗号分隔)'),
content?: string(name='content', description='节点内容'),
time?: string(name='time', description='发生时间'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model CreateProblemTimelineResponseBody = {
requestId?: string(name='requestId', description='id of the request'),
data?: {
problemTimelineId?: long(name='problemTimelineId', description='故障事件线id'),
}(name='data', description='Object'),
}
model CreateProblemTimelineResponse = {
headers: map[string]string(name='headers'),
body: CreateProblemTimelineResponseBody(name='body'),
}
async function createProblemTimeline(request: CreateProblemTimelineRequest): CreateProblemTimelineResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createProblemTimelineWithOptions(request, headers, runtime);
}
async function createProblemTimelineWithOptions(request: CreateProblemTimelineRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateProblemTimelineResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.keyNode)) {
body.keyNode = request.keyNode;
}
if (!Util.isUnset(request.content)) {
body.content = request.content;
}
if (!Util.isUnset(request.time)) {
body.time = request.time;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateProblemTimeline', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/process/timeline/create`, 'json', req, runtime);
}
model CancelProblemRequest {
problemId?: long(name='problemId', description='故障id'),
cancelReasonDescription?: string(name='cancelReasonDescription', description='取消原因描述'),
cancelReason?: long(name='cancelReason', description='取消原因'),
problemNotifyType?: long(name='problemNotifyType', description='PROBLEM_NOTIFY 通告类型 PROBLEM_NOTIFY:故障通告 PROBLEM_UPDATE:故障更新 PROBLEM_UPGRADE:故障升级 PROBLEM_DEGRADE:故障降级 PROBLEM_RECOVER:故障恢复 PROBLEM_REISSUE: 故障补发 PROBLEM_CANCEL:故障取消'),
clientToken?: string(name='clientToken', description='幂等校验token'),
}
model CancelProblemResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model CancelProblemResponse = {
headers: map[string]string(name='headers'),
body: CancelProblemResponseBody(name='body'),
}
async function cancelProblem(request: CancelProblemRequest): CancelProblemResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return cancelProblemWithOptions(request, headers, runtime);
}
async function cancelProblemWithOptions(request: CancelProblemRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CancelProblemResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.cancelReasonDescription)) {
body.cancelReasonDescription = request.cancelReasonDescription;
}
if (!Util.isUnset(request.cancelReason)) {
body.cancelReason = request.cancelReason;
}
if (!Util.isUnset(request.problemNotifyType)) {
body.problemNotifyType = request.problemNotifyType;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CancelProblem', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/cancel`, 'json', req, runtime);
}
model UpdateServiceGroupRequest {
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
enableWebhook?: string(name='enableWebhook', description='ENABLE 启用 DISABLE 禁用'),
webhookType?: string(name='webhookType', description='WEIXIN_GROUP 微信 DING_GROUP 钉钉 FEISHU_GROUP 飞书'),
webhookLink?: string(name='webhookLink', description='webhook跳转地址'),
serviceGroupName?: string(name='serviceGroupName', description='服务组名字'),
serviceGroupDescription?: string(name='serviceGroupDescription', description='服务描述'),
userIds?: [ long ](name='userIds', description='用户ID列表修改后的'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model UpdateServiceGroupResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model UpdateServiceGroupResponse = {
headers: map[string]string(name='headers'),
body: UpdateServiceGroupResponseBody(name='body'),
}
async function updateServiceGroup(request: UpdateServiceGroupRequest): UpdateServiceGroupResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateServiceGroupWithOptions(request, headers, runtime);
}
async function updateServiceGroupWithOptions(request: UpdateServiceGroupRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateServiceGroupResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.enableWebhook)) {
body.enableWebhook = request.enableWebhook;
}
if (!Util.isUnset(request.webhookType)) {
body.webhookType = request.webhookType;
}
if (!Util.isUnset(request.webhookLink)) {
body.webhookLink = request.webhookLink;
}
if (!Util.isUnset(request.serviceGroupName)) {
body.serviceGroupName = request.serviceGroupName;
}
if (!Util.isUnset(request.serviceGroupDescription)) {
body.serviceGroupDescription = request.serviceGroupDescription;
}
if (!Util.isUnset(request.userIds)) {
body.userIds = request.userIds;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateServiceGroup', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/modify`, 'json', req, runtime);
}
model UpdateIntegrationConfigRequest {
integrationConfigId?: long(name='integrationConfigId'),
accessKey?: string(name='accessKey', description='集成秘钥'),
clientToken?: string(name='clientToken', description='幂等id'),
}
model UpdateIntegrationConfigResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model UpdateIntegrationConfigResponse = {
headers: map[string]string(name='headers'),
body: UpdateIntegrationConfigResponseBody(name='body'),
}
async function updateIntegrationConfig(request: UpdateIntegrationConfigRequest): UpdateIntegrationConfigResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateIntegrationConfigWithOptions(request, headers, runtime);
}
async function updateIntegrationConfigWithOptions(request: UpdateIntegrationConfigRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateIntegrationConfigResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.integrationConfigId)) {
body.integrationConfigId = request.integrationConfigId;
}
if (!Util.isUnset(request.accessKey)) {
body.accessKey = request.accessKey;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateIntegrationConfig', '2021-04-13', 'HTTPS', 'POST', 'AK', `/integrationConfig/update`, 'json', req, runtime);
}
model ListProblemDetailOperationsRequest {
clientToken?: string(name='clientToken', description='幂等校验'),
pageNumber?: int32(name='pageNumber', description='页'),
pageSize?: int32(name='pageSize', description='行'),
createTimeSort?: string(name='createTimeSort', description='时间排序'),
problemId?: long(name='problemId', description='故障id'),
}
model ListProblemDetailOperationsResponseBody = {
requestId?: string(name='requestId', description='requestId'),
totalCount?: int32(name='totalCount', description='总数'),
pageNumber?: int32(name='pageNumber', description='页'),
pageSize?: int32(name='pageSize', description='行'),
data?: [
{
title?: string(name='title', description='动态标题'),
description?: string(name='description', description='描述'),
relatedServiceName?: string(name='relatedServiceName', description='服务'),
createTime?: string(name='createTime', description='创建时间'),
remark?: string(name='remark', description='备注'),
action?: string(name='action', description='升级 PROBLEM_UPGRADE 撤销 PROBLEM_REVOKE 恢复 PROBLEM_RESTORE 复盘 PROBLEM_IN_REVIEW 完结 PROBLEM_REOPENED 取消 PROBLEM_CANCEL 更新故障通告 PROBLEM_UPDATE_NOTIFY 添加故障小计 PROBLEM_ADD_SUBTOTAL 更新故障 PROBLEM_UPDATE'),
}
](name='data', description='data'),
}
model ListProblemDetailOperationsResponse = {
headers: map[string]string(name='headers'),
body: ListProblemDetailOperationsResponseBody(name='body'),
}
async function listProblemDetailOperations(request: ListProblemDetailOperationsRequest): ListProblemDetailOperationsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listProblemDetailOperationsWithOptions(request, headers, runtime);
}
async function listProblemDetailOperationsWithOptions(request: ListProblemDetailOperationsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListProblemDetailOperationsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
if (!Util.isUnset(request.createTimeSort)) {
body.createTimeSort = request.createTimeSort;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListProblemDetailOperations', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/detail/operations`, 'json', req, runtime);
}
model ListIncidentDetailEscalationPlansRequest {
incidentId?: long(name='incidentId', description='事件ID'),
clientToken?: string(name='clientToken', description='幂等校验'),
}
model ListIncidentDetailEscalationPlansResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
escalationPlanId?: long(name='escalationPlanId', description='升级策略ID'),
escalationPlanName?: string(name='escalationPlanName', description='升级策略名称'),
unFinishEscalationPlan?: [
{
escalationPlanType?: string(name='escalationPlanType', description='升级策略类型 UN_ACKNOWLEDGE'),
noticeTime?: int32(name='noticeTime', description='延迟时间'),
status?: string(name='status', description='规则触发状态'),
startTime?: long(name='startTime', description='开始时间'),
noticeChannels?: [ string ](name='noticeChannels', description='分配渠道'),
noticeObjectList?: [
{
noticeObjectId?: long(name='noticeObjectId', description='分配对象id'),
noticeObjectName?: string(name='noticeObjectName', description='分配对象名称'),
noticeObjectPhone?: string(name='noticeObjectPhone', description='手机号'),
}
](name='noticeObjectList', description='用户信息'),
}
](name='unFinishEscalationPlan', description='未完结升级策略规则列表'),
nuAcknowledgeEscalationPlan?: [
{
escalationPlanType?: string(name='escalationPlanType', description='升级策略类型 UN_ACKNOWLEDGE'),
noticeTime?: long(name='noticeTime', description='延迟时间'),
status?: string(name='status', description='规则触发状态'),
startTime?: long(name='startTime', description='开始时间'),
noticeChannels?: [ string ](name='noticeChannels', description='分配渠道'),
noticeObjectList?: [
{
noticeObjectId?: long(name='noticeObjectId', description='分配对象id'),
noticeObjectName?: string(name='noticeObjectName', description='分配对象名称'),
noticeObjectPhone?: string(name='noticeObjectPhone', description='分配对象手机号'),
}
](name='noticeObjectList', description='用户信息'),
}
](name='nuAcknowledgeEscalationPlan', description='未响应升级策略'),
}(name='data', description='data'),
}
model ListIncidentDetailEscalationPlansResponse = {
headers: map[string]string(name='headers'),
body: ListIncidentDetailEscalationPlansResponseBody(name='body'),
}
async function listIncidentDetailEscalationPlans(request: ListIncidentDetailEscalationPlansRequest): ListIncidentDetailEscalationPlansResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listIncidentDetailEscalationPlansWithOptions(request, headers, runtime);
}
async function listIncidentDetailEscalationPlansWithOptions(request: ListIncidentDetailEscalationPlansRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListIncidentDetailEscalationPlansResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentId)) {
body.incidentId = request.incidentId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListIncidentDetailEscalationPlans', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/detail/escalation`, 'json', req, runtime);
}
model ListIncidentSubtotalsRequest {
incidentId?: long(name='incidentId', description='事件ID'),
clientToken?: string(name='clientToken', description='幂等校验'),
}
model ListIncidentSubtotalsResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: [
{
description?: string(name='description', description='描述'),
createTime?: string(name='createTime', description='创建时间'),
createUserName?: string(name='createUserName', description='操作人'),
createUserPhone?: string(name='createUserPhone', description='操作人手机号'),
}
](name='data'),
}
model ListIncidentSubtotalsResponse = {
headers: map[string]string(name='headers'),
body: ListIncidentSubtotalsResponseBody(name='body'),
}
async function listIncidentSubtotals(request: ListIncidentSubtotalsRequest): ListIncidentSubtotalsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listIncidentSubtotalsWithOptions(request, headers, runtime);
}
async function listIncidentSubtotalsWithOptions(request: ListIncidentSubtotalsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListIncidentSubtotalsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentId)) {
body.incidentId = request.incidentId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListIncidentSubtotals', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/list/subtotal`, 'json', req, runtime);
}
model ListDictionariesRequest {
clientToken?: string(name='clientToken'),
}
model ListDictionariesResponseBody = {
data?: map[string][ DataValue ](name='data'),
requestId?: string(name='requestId'),
}
model ListDictionariesResponse = {
headers: map[string]string(name='headers'),
body: ListDictionariesResponseBody(name='body'),
}
async function listDictionaries(request: ListDictionariesRequest): ListDictionariesResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listDictionariesWithOptions(request, headers, runtime);
}
async function listDictionariesWithOptions(request: ListDictionariesRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListDictionariesResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListDictionaries', '2021-04-13', 'HTTPS', 'POST', 'AK', `/dict/list`, 'json', req, runtime);
}
model ConfirmIntegrationConfigRequest {
integrationConfigId?: long(name='integrationConfigId'),
clientToken?: string(name='clientToken', description='幂等id'),
}
model ConfirmIntegrationConfigResponseBody = {
requestId?: string(name='requestId'),
}
model ConfirmIntegrationConfigResponse = {
headers: map[string]string(name='headers'),
body: ConfirmIntegrationConfigResponseBody(name='body'),
}
async function confirmIntegrationConfig(request: ConfirmIntegrationConfigRequest): ConfirmIntegrationConfigResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return confirmIntegrationConfigWithOptions(request, headers, runtime);
}
async function confirmIntegrationConfigWithOptions(request: ConfirmIntegrationConfigRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ConfirmIntegrationConfigResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.integrationConfigId)) {
body.integrationConfigId = request.integrationConfigId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ConfirmIntegrationConfig', '2021-04-13', 'HTTPS', 'POST', 'AK', `/integrationConfig/confirm`, 'json', req, runtime);
}
model ListIncidentDetailTimelinesRequest {
incidentId?: long(name='incidentId', description='事件ID'),
clientToken?: string(name='clientToken', description='幂等校验'),
pageNumber?: long(name='pageNumber', description='页'),
pageSize?: long(name='pageSize', description='行'),
}
model ListIncidentDetailTimelinesResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: [
{
title?: string(name='title', description='主题'),
description?: string(name='description', description='描述'),
remark?: string(name='remark', description='备注'),
relatedServiceName?: string(name='relatedServiceName', description='服务名称'),
createTime?: string(name='createTime', description='创建时间'),
incidentId?: long(name='incidentId', description='事件Id'),
action?: string(name='action', description='事件action'),
}
](name='data'),
totalCount?: int32(name='totalCount', description='总数'),
pageNumber?: int32(name='pageNumber'),
pageSize?: int32(name='pageSize'),
}
model ListIncidentDetailTimelinesResponse = {
headers: map[string]string(name='headers'),
body: ListIncidentDetailTimelinesResponseBody(name='body'),
}
async function listIncidentDetailTimelines(request: ListIncidentDetailTimelinesRequest): ListIncidentDetailTimelinesResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listIncidentDetailTimelinesWithOptions(request, headers, runtime);
}
async function listIncidentDetailTimelinesWithOptions(request: ListIncidentDetailTimelinesRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListIncidentDetailTimelinesResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentId)) {
body.incidentId = request.incidentId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListIncidentDetailTimelines', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/detail/timeline`, 'json', req, runtime);
}
model EnableServiceGroupWebhookRequest {
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model EnableServiceGroupWebhookResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model EnableServiceGroupWebhookResponse = {
headers: map[string]string(name='headers'),
body: EnableServiceGroupWebhookResponseBody(name='body'),
}
async function enableServiceGroupWebhook(request: EnableServiceGroupWebhookRequest): EnableServiceGroupWebhookResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return enableServiceGroupWebhookWithOptions(request, headers, runtime);
}
async function enableServiceGroupWebhookWithOptions(request: EnableServiceGroupWebhookRequest, headers: map[string]string, runtime: Util.RuntimeOptions): EnableServiceGroupWebhookResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('EnableServiceGroupWebhook', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/enableWebhook`, 'json', req, runtime);
}
model DisableEscalationPlanRequest {
escalationPlanId?: long(name='escalationPlanId', description='升级计划ID'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model DisableEscalationPlanResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DisableEscalationPlanResponse = {
headers: map[string]string(name='headers'),
body: DisableEscalationPlanResponseBody(name='body'),
}
async function disableEscalationPlan(request: DisableEscalationPlanRequest): DisableEscalationPlanResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return disableEscalationPlanWithOptions(request, headers, runtime);
}
async function disableEscalationPlanWithOptions(request: DisableEscalationPlanRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DisableEscalationPlanResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.escalationPlanId)) {
body.escalationPlanId = request.escalationPlanId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DisableEscalationPlan', '2021-04-13', 'HTTPS', 'POST', 'AK', `/escalationPlan/disable`, 'json', req, runtime);
}
model DeleteSubscriptionRequest {
subscriptionId?: long(name='subscriptionId'),
}
model DeleteSubscriptionResponseBody = {
requestId?: string(name='requestId', description='requestId'),
}
model DeleteSubscriptionResponse = {
headers: map[string]string(name='headers'),
body: DeleteSubscriptionResponseBody(name='body'),
}
async function deleteSubscription(request: DeleteSubscriptionRequest): DeleteSubscriptionResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteSubscriptionWithOptions(request, headers, runtime);
}
async function deleteSubscriptionWithOptions(request: DeleteSubscriptionRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteSubscriptionResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.subscriptionId)) {
body.subscriptionId = request.subscriptionId;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteSubscription', '2021-04-13', 'HTTPS', 'POST', 'AK', `/notify/subscription/delete`, 'json', req, runtime);
}
model UpdateServiceGroupSpecialDaySchedulingRequest {
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
schedulingDate?: string(name='schedulingDate', description='排班日期'),
schedulingSpecialDays?: [
{
schedulingStartTime?: string(name='schedulingStartTime', description='排班开始时间'),
schedulingEndTime?: string(name='schedulingEndTime', description='排班结束时间'),
schedulingUserId?: long(name='schedulingUserId', description='排班用户ID'),
schedulingOrder?: int32(name='schedulingOrder', description='班次顺序'),
}
](name='schedulingSpecialDays', description='特殊排班信息'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model UpdateServiceGroupSpecialDaySchedulingResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model UpdateServiceGroupSpecialDaySchedulingResponse = {
headers: map[string]string(name='headers'),
body: UpdateServiceGroupSpecialDaySchedulingResponseBody(name='body'),
}
async function updateServiceGroupSpecialDayScheduling(request: UpdateServiceGroupSpecialDaySchedulingRequest): UpdateServiceGroupSpecialDaySchedulingResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateServiceGroupSpecialDaySchedulingWithOptions(request, headers, runtime);
}
async function updateServiceGroupSpecialDaySchedulingWithOptions(request: UpdateServiceGroupSpecialDaySchedulingRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateServiceGroupSpecialDaySchedulingResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.schedulingDate)) {
body.schedulingDate = request.schedulingDate;
}
if (!Util.isUnset(request.schedulingSpecialDays)) {
body.schedulingSpecialDays = request.schedulingSpecialDays;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateServiceGroupSpecialDayScheduling', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/scheduling/updateSpecialDayScheduling`, 'json', req, runtime);
}
model ListSubscriptionsRequest {
pageNumber?: int32(name='pageNumber', description='第几页'),
pageSize?: int32(name='pageSize', description='一页几条'),
subscriptionTitle?: string(name='subscriptionTitle', description='通知订阅名'),
scope?: string(name='scope', description='订阅范围类型 0全部1服务2流转规则'),
scopeObject?: string(name='scopeObject', description='订阅范围对象名称'),
notifyObjectType?: string(name='notifyObjectType', description='通知对象类型notifyWhoType:0服务组 1个人'),
notifyObject?: string(name='notifyObject', description='通知对象名'),
clientToken?: string(name='clientToken', description='幂等参数'),
}
model ListSubscriptionsResponseBody = {
requestId?: string(name='requestId', description='id of the request'),
data?: [
{
subscriptionId?: long(name='subscriptionId', description='订阅id'),
subscriptionTitle?: string(name='subscriptionTitle', description='通知订阅名称'),
scope?: long(name='scope', description='0 全部 1服务 2 流转规则'),
notifyObjectType?: long(name='notifyObjectType', description='0服务组 1个人'),
expiredType?: string(name='expiredType', description='有效期类型 0 长期 1短期'),
startTime?: string(name='startTime', description='时效开始时间'),
endTime?: string(name='endTime', description='时效结束时间'),
status?: string(name='status', description='ENABLE 启用 DISABLE禁用'),
scopeObjectList?: [
{
id?: long(name='id', description='id主键'),
scope?: long(name='scope', description='订阅范围类型 ALL全部 SERVICE服务 ROUTETULE流转规则'),
scopeObjectId?: long(name='scopeObjectId', description='订阅范围对象关联表主键id'),
scopeObject?: string(name='scopeObject', description='订阅范围对象名称'),
}
](name='scopeObjectList', description='订阅范围列表'),
notifyObjectList?: [
{
id?: long(name='id', description='id主键'),
notifyObjectType?: long(name='notifyObjectType', description='通知对象类型0服务组 1个人'),
notifyObjectId?: long(name='notifyObjectId', description='关联主键id'),
name?: string(name='name', description='通知对象名'),
}
](name='notifyObjectList', description='通知对象列表'),
}
](name='data'),
totalCount?: long(name='totalCount', description='分页参数'),
pageNumber?: long(name='pageNumber', description='分页参数'),
pageSize?: long(name='pageSize', description='分页参数'),
}
model ListSubscriptionsResponse = {
headers: map[string]string(name='headers'),
body: ListSubscriptionsResponseBody(name='body'),
}
async function listSubscriptions(request: ListSubscriptionsRequest): ListSubscriptionsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listSubscriptionsWithOptions(request, headers, runtime);
}
async function listSubscriptionsWithOptions(request: ListSubscriptionsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListSubscriptionsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
if (!Util.isUnset(request.subscriptionTitle)) {
body.subscriptionTitle = request.subscriptionTitle;
}
if (!Util.isUnset(request.scope)) {
body.scope = request.scope;
}
if (!Util.isUnset(request.scopeObject)) {
body.scopeObject = request.scopeObject;
}
if (!Util.isUnset(request.notifyObjectType)) {
body.notifyObjectType = request.notifyObjectType;
}
if (!Util.isUnset(request.notifyObject)) {
body.notifyObject = request.notifyObject;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListSubscriptions', '2021-04-13', 'HTTPS', 'POST', 'AK', `/notify/subscription/list`, 'json', req, runtime);
}
model GetServiceGroupSchedulingRequest {
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model GetServiceGroupSchedulingResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
schedulingWay?: string(name='schedulingWay', description='排班方式 FAST 快速排班 FINE 精细排班'),
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
fastScheduling?: {
singleDuration?: int32(name='singleDuration', description='每人排班时长'),
dutyPlan?: string(name='dutyPlan', description='值班方案 dutyPlan FAST_CHOICE 快速选择 CUSTOM 自定义'),
singleDurationUnit?: string(name='singleDurationUnit', description='每人排班时长单位 HOUR 小时 DAY 天'),
schedulingUsers?: [
{
schedulingUserId?: long(name='schedulingUserId', description='轮班用户ID'),
schedulingOrder?: int32(name='schedulingOrder', description='排班顺序'),
schedulingUserName?: string(name='schedulingUserName', description='轮班用户名字'),
}
](name='schedulingUsers', description='快速轮班用户'),
id?: long(name='id', description='快速排班ID'),
}(name='fastScheduling', description='快速排班'),
fineScheduling?: {
period?: int32(name='period', description='1'),
id?: long(name='id', description='1'),
periodUnit?: string(name='periodUnit', description='循环周期单位 HOUR 小时 DAY 天'),
shiftType?: string(name='shiftType', description='班次类型 MORNING_NIGHT 早晚班 MORNING_NOON_NIGHT 早中晚班 CUSTOM 自定义'),
schedulingFineShifts?: [
{
schedulingStartTime?: string(name='schedulingStartTime', description='排班开始时间'),
schedulingEndTime?: string(name='schedulingEndTime', description='排班结束时间'),
schedulingOrder?: int32(name='schedulingOrder', description='排班顺序'),
shiftName?: string(name='shiftName', description='班次名称'),
cycleOrder?: long(name='cycleOrder', description='循环次序'),
schedulingUserId?: long(name='schedulingUserId', description='排班用户ID'),
skipOneDay?: boolean(name='skipOneDay', description='是否跨天'),
schedulingUserName?: string(name='schedulingUserName', description='排班用户名字'),
}
](name='schedulingFineShifts', description='精细排班班次人员信息'),
schedulingTemplateFineShifts?: [
{
schedulingStartTime?: string(name='schedulingStartTime', description='排班开始时间'),
schedulingEndTime?: string(name='schedulingEndTime', description='排班结束时间'),
schedulingOrder?: long(name='schedulingOrder', description='排班顺序'),
schedulingUserId?: string(name='schedulingUserId', description='用户ID'),
skipOneDay?: boolean(name='skipOneDay', description='是否跨天'),
schedulingUserName?: string(name='schedulingUserName', description='排班用户名字'),
shiftName?: string(name='shiftName', description='班次名称'),
}
](name='schedulingTemplateFineShifts', description='精细排班模版'),
}(name='fineScheduling', description='精细排班'),
users?: [
{
userId?: long(name='userId', description='用户ID'),
userName?: string(name='userName', description='用户名字'),
}
](name='users', description='已经排班'),
}(name='data', description='排班详情'),
}
model GetServiceGroupSchedulingResponse = {
headers: map[string]string(name='headers'),
body: GetServiceGroupSchedulingResponseBody(name='body'),
}
async function getServiceGroupScheduling(request: GetServiceGroupSchedulingRequest): GetServiceGroupSchedulingResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getServiceGroupSchedulingWithOptions(request, headers, runtime);
}
async function getServiceGroupSchedulingWithOptions(request: GetServiceGroupSchedulingRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetServiceGroupSchedulingResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetServiceGroupScheduling', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/scheduling/detail`, 'json', req, runtime);
}
model RespondIncidentRequest {
incidentIds?: [ long ](name='incidentIds', description='事件ID数组'),
clientToken?: string(name='clientToken', description='幂等校验Id'),
}
model RespondIncidentResponseBody = {
requestId?: string(name='requestId', description='requestId'),
}
model RespondIncidentResponse = {
headers: map[string]string(name='headers'),
body: RespondIncidentResponseBody(name='body'),
}
async function respondIncident(request: RespondIncidentRequest): RespondIncidentResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return respondIncidentWithOptions(request, headers, runtime);
}
async function respondIncidentWithOptions(request: RespondIncidentRequest, headers: map[string]string, runtime: Util.RuntimeOptions): RespondIncidentResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentIds)) {
body.incidentIds = request.incidentIds;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('RespondIncident', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/response`, 'json', req, runtime);
}
model DeleteProblemMeasureRequest {
measureId?: long(name='measureId', description='故障改成措施id'),
problemId?: string(name='problemId', description='故障Id'),
clientToken?: string(name='clientToken', description='幂等校验token'),
}
model DeleteProblemMeasureResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DeleteProblemMeasureResponse = {
headers: map[string]string(name='headers'),
body: DeleteProblemMeasureResponseBody(name='body'),
}
async function deleteProblemMeasure(request: DeleteProblemMeasureRequest): DeleteProblemMeasureResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteProblemMeasureWithOptions(request, headers, runtime);
}
async function deleteProblemMeasureWithOptions(request: DeleteProblemMeasureRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteProblemMeasureResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.measureId)) {
body.measureId = request.measureId;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteProblemMeasure', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/improvement/measure/delete`, 'json', req, runtime);
}
model DeleteServiceRequest {
serviceId?: long(name='serviceId', description='服务ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model DeleteServiceResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DeleteServiceResponse = {
headers: map[string]string(name='headers'),
body: DeleteServiceResponseBody(name='body'),
}
async function deleteService(request: DeleteServiceRequest): DeleteServiceResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteServiceWithOptions(request, headers, runtime);
}
async function deleteServiceWithOptions(request: DeleteServiceRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteServiceResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceId)) {
body.serviceId = request.serviceId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteService', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/delete`, 'json', req, runtime);
}
model GetUserGuideStatusRequest {
clientToken?: string(name='clientToken', description='幂等校验'),
}
model GetUserGuideStatusResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: map[string]any(name='data', description='map'),
}
model GetUserGuideStatusResponse = {
headers: map[string]string(name='headers'),
body: GetUserGuideStatusResponseBody(name='body'),
}
async function getUserGuideStatus(request: GetUserGuideStatusRequest): GetUserGuideStatusResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getUserGuideStatusWithOptions(request, headers, runtime);
}
async function getUserGuideStatusWithOptions(request: GetUserGuideStatusRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetUserGuideStatusResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetUserGuideStatus', '2021-04-13', 'HTTPS', 'POST', 'AK', `/user/guide/status`, 'json', req, runtime);
}
model RecoverProblemRequest {
problemId?: long(name='problemId', description='故障ID'),
recoveryTime?: string(name='recoveryTime', description='恢复时间'),
problemNotifyType?: string(name='problemNotifyType', description='通告类型 PROBLEM_NOTIFY:故障通告 PROBLEM_UPDATE:故障更新 PROBLEM_UPGRADE:故障升级 PROBLEM_DEGRADE:故障降级 PROBLEM_RECOVER:故障恢复 PROBLEM_REISSUE: 故障补发 PROBLEM_CANCEL:故障取消'),
}
model RecoverProblemResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model RecoverProblemResponse = {
headers: map[string]string(name='headers'),
body: RecoverProblemResponseBody(name='body'),
}
async function recoverProblem(request: RecoverProblemRequest): RecoverProblemResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return recoverProblemWithOptions(request, headers, runtime);
}
async function recoverProblemWithOptions(request: RecoverProblemRequest, headers: map[string]string, runtime: Util.RuntimeOptions): RecoverProblemResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.recoveryTime)) {
body.recoveryTime = request.recoveryTime;
}
if (!Util.isUnset(request.problemNotifyType)) {
body.problemNotifyType = request.problemNotifyType;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('RecoverProblem', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/recovery`, 'json', req, runtime);
}
model ListIntegrationConfigsRequest {
monitorSourceName?: string(name='monitorSourceName'),
clientToken?: string(name='clientToken', description='幂等id'),
}
model ListIntegrationConfigsResponseBody = {
requestId?: string(name='requestId'),
data?: [
{
integrationConfigId?: long(name='integrationConfigId', description='集成配置id'),
monitorSourceId?: long(name='monitorSourceId', description='监控源id'),
monitorSourceName?: string(name='monitorSourceName', description='监控源名城'),
monitorSourceShortName?: string(name='monitorSourceShortName', description='监控源简称'),
isReceivedEvent?: boolean(name='isReceivedEvent', description='是否已接受报警'),
status?: string(name='status', description='集成配置状态'),
}
](name='data'),
}
model ListIntegrationConfigsResponse = {
headers: map[string]string(name='headers'),
body: ListIntegrationConfigsResponseBody(name='body'),
}
async function listIntegrationConfigs(request: ListIntegrationConfigsRequest): ListIntegrationConfigsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listIntegrationConfigsWithOptions(request, headers, runtime);
}
async function listIntegrationConfigsWithOptions(request: ListIntegrationConfigsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListIntegrationConfigsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.monitorSourceName)) {
body.monitorSourceName = request.monitorSourceName;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListIntegrationConfigs', '2021-04-13', 'HTTPS', 'POST', 'AK', `/integrationConfig/list`, 'json', req, runtime);
}
model DeleteUserRequest {
userId?: long(name='userId', description='用户ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model DeleteUserResponseBody = {
requestId?: string(name='requestId', description='id of the request'),
}
model DeleteUserResponse = {
headers: map[string]string(name='headers'),
body: DeleteUserResponseBody(name='body'),
}
async function deleteUser(request: DeleteUserRequest): DeleteUserResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteUserWithOptions(request, headers, runtime);
}
async function deleteUserWithOptions(request: DeleteUserRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteUserResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.userId)) {
body.userId = request.userId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteUser', '2021-04-13', 'HTTPS', 'POST', 'AK', `/user/delete`, 'json', req, runtime);
}
model UpdateProblemEffectionServiceRequest {
serviceId?: long(name='serviceId', description='关联服务id'),
level?: string(name='level', description='影响等级'),
status?: string(name='status', description='影响状态 UN_RECOVERED 未恢复 RECOVERED已恢复'),
description?: string(name='description', description='影响描述'),
picUrl?: [ string ](name='picUrl', description='图片地址'),
problemId?: long(name='problemId', description='故障id'),
effectionServiceId?: long(name='effectionServiceId', description='影响服务id'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model UpdateProblemEffectionServiceResponseBody = {
requestId?: string(name='requestId', description='requestId'),
}
model UpdateProblemEffectionServiceResponse = {
headers: map[string]string(name='headers'),
body: UpdateProblemEffectionServiceResponseBody(name='body'),
}
async function updateProblemEffectionService(request: UpdateProblemEffectionServiceRequest): UpdateProblemEffectionServiceResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateProblemEffectionServiceWithOptions(request, headers, runtime);
}
async function updateProblemEffectionServiceWithOptions(request: UpdateProblemEffectionServiceRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateProblemEffectionServiceResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceId)) {
body.serviceId = request.serviceId;
}
if (!Util.isUnset(request.level)) {
body.level = request.level;
}
if (!Util.isUnset(request.status)) {
body.status = request.status;
}
if (!Util.isUnset(request.description)) {
body.description = request.description;
}
if (!Util.isUnset(request.picUrl)) {
body.picUrl = request.picUrl;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.effectionServiceId)) {
body.effectionServiceId = request.effectionServiceId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateProblemEffectionService', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/process/effectionService/update`, 'json', req, runtime);
}
model DeleteServiceGroupRequest {
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model DeleteServiceGroupResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DeleteServiceGroupResponse = {
headers: map[string]string(name='headers'),
body: DeleteServiceGroupResponseBody(name='body'),
}
async function deleteServiceGroup(request: DeleteServiceGroupRequest): DeleteServiceGroupResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteServiceGroupWithOptions(request, headers, runtime);
}
async function deleteServiceGroupWithOptions(request: DeleteServiceGroupRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteServiceGroupResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteServiceGroup', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/delete`, 'json', req, runtime);
}
model DisableServiceGroupWebhookRequest {
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model DisableServiceGroupWebhookResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DisableServiceGroupWebhookResponse = {
headers: map[string]string(name='headers'),
body: DisableServiceGroupWebhookResponseBody(name='body'),
}
async function disableServiceGroupWebhook(request: DisableServiceGroupWebhookRequest): DisableServiceGroupWebhookResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return disableServiceGroupWebhookWithOptions(request, headers, runtime);
}
async function disableServiceGroupWebhookWithOptions(request: DisableServiceGroupWebhookRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DisableServiceGroupWebhookResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DisableServiceGroupWebhook', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/disableWebhook`, 'json', req, runtime);
}
model RemoveProblemServiceGroupRequest {
problemId?: long(name='problemId', description='故障ID'),
serviceGroupIds?: [ long ](name='serviceGroupIds', description='应急协同组'),
}
model RemoveProblemServiceGroupResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model RemoveProblemServiceGroupResponse = {
headers: map[string]string(name='headers'),
body: RemoveProblemServiceGroupResponseBody(name='body'),
}
async function removeProblemServiceGroup(request: RemoveProblemServiceGroupRequest): RemoveProblemServiceGroupResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return removeProblemServiceGroupWithOptions(request, headers, runtime);
}
async function removeProblemServiceGroupWithOptions(request: RemoveProblemServiceGroupRequest, headers: map[string]string, runtime: Util.RuntimeOptions): RemoveProblemServiceGroupResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.serviceGroupIds)) {
body.serviceGroupIds = request.serviceGroupIds;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('RemoveProblemServiceGroup', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/removeServiceGroup`, 'json', req, runtime);
}
model GetProblemEffectionServiceRequest {
effectionServiceId?: long(name='effectionServiceId', description='id主键'),
problemId?: long(name='problemId', description='故障id'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model GetProblemEffectionServiceResponseBody = {
requestId?: string(name='requestId', description='requestId'),
data?: {
effectionServiceId?: long(name='effectionServiceId', description='影响服务id'),
serviceName?: string(name='serviceName', description='服务名称'),
serviceId?: long(name='serviceId', description='服务id'),
level?: long(name='level', description='影响等级'),
status?: long(name='status', description='影响状态 0 未恢复 1已恢复'),
description?: string(name='description', description='影响描述'),
picUrl?: [ string ](name='picUrl', description='图片链接'),
}(name='data'),
}
model GetProblemEffectionServiceResponse = {
headers: map[string]string(name='headers'),
body: GetProblemEffectionServiceResponseBody(name='body'),
}
async function getProblemEffectionService(request: GetProblemEffectionServiceRequest): GetProblemEffectionServiceResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getProblemEffectionServiceWithOptions(request, headers, runtime);
}
async function getProblemEffectionServiceWithOptions(request: GetProblemEffectionServiceRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetProblemEffectionServiceResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.effectionServiceId)) {
body.effectionServiceId = request.effectionServiceId;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetProblemEffectionService', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/process/effectionService/detail`, 'json', req, runtime);
}
model GetServiceGroupSchedulingPreviewRequest {
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
schedulingWay?: string(name='schedulingWay', description='排班方式 FAST 快速排班 FINE 精细排班'),
fastScheduling?: {
singleDuration?: int32(name='singleDuration', description='每人排班时长'),
dutyPlan?: string(name='dutyPlan', description='值班方案 dutyPlan FAST_CHOICE 快速选择 CUSTOM 自定义'),
singleDurationUnit?: string(name='singleDurationUnit', description='每人排班时长单位 HOUR 小时 DAY 天'),
schedulingUsers?: [
{
schedulingUserId?: long(name='schedulingUserId', description='轮班用户ID'),
schedulingOrder?: int32(name='schedulingOrder', description='排班顺序'),
}
](name='schedulingUsers', description='快速轮班用户'),
}(name='fastScheduling', description='快速排班'),
fineScheduling?: {
period?: int32(name='period', description='循环周期'),
periodUnit?: string(name='periodUnit', description='循环周期单位 HOUR 小时 DAY 天'),
shiftType?: string(name='shiftType', description='班次类型 MORNING_NIGHT 早晚班 MORNING_NOON_NIGHT 早中晚班 CUSTOM 自定义'),
schedulingFineShifts?: [
{
schedulingStartTime?: string(name='schedulingStartTime', description='排班开始时间'),
schedulingEndTime?: string(name='schedulingEndTime', description='排班结束时间'),
schedulingOrder?: long(name='schedulingOrder', description='排班顺序'),
shiftName?: string(name='shiftName', description='班次名称'),
}
](name='schedulingFineShifts', description='精细排班班次人员信息'),
}(name='fineScheduling', description='精细排'),
clientToken?: string(name='clientToken', description='幂等号'),
endTime?: string(name='endTime', description='排班结束时间'),
startTime?: string(name='startTime', description='排班开始时间'),
}
model GetServiceGroupSchedulingPreviewResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: map[string]any(name='data', description='服务组排班信息'),
}
model GetServiceGroupSchedulingPreviewResponse = {
headers: map[string]string(name='headers'),
body: GetServiceGroupSchedulingPreviewResponseBody(name='body'),
}
async function getServiceGroupSchedulingPreview(request: GetServiceGroupSchedulingPreviewRequest): GetServiceGroupSchedulingPreviewResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getServiceGroupSchedulingPreviewWithOptions(request, headers, runtime);
}
async function getServiceGroupSchedulingPreviewWithOptions(request: GetServiceGroupSchedulingPreviewRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetServiceGroupSchedulingPreviewResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.schedulingWay)) {
body.schedulingWay = request.schedulingWay;
}
if (!Util.isUnset(request.fastScheduling)) {
body.fastScheduling = request.fastScheduling;
}
if (!Util.isUnset(request.fineScheduling)) {
body.fineScheduling = request.fineScheduling;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.endTime)) {
body.endTime = request.endTime;
}
if (!Util.isUnset(request.startTime)) {
body.startTime = request.startTime;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetServiceGroupSchedulingPreview', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/scheduling/preview`, 'json', req, runtime);
}
model ListMonitorSourcesRequest {
clientToken?: string(name='clientToken'),
}
model ListMonitorSourcesResponseBody = {
data?: [
{
monitorSourceId?: long(name='monitorSourceId'),
monitorSourceName?: string(name='monitorSourceName'),
fieldKeys?: [ string ](name='fieldKeys'),
}
](name='data'),
requestId?: string(name='requestId'),
}
model ListMonitorSourcesResponse = {
headers: map[string]string(name='headers'),
body: ListMonitorSourcesResponseBody(name='body'),
}
async function listMonitorSources(request: ListMonitorSourcesRequest): ListMonitorSourcesResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listMonitorSourcesWithOptions(request, headers, runtime);
}
async function listMonitorSourcesWithOptions(request: ListMonitorSourcesRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListMonitorSourcesResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListMonitorSources', '2021-04-13', 'HTTPS', 'POST', 'AK', `/monitorSource/list`, 'json', req, runtime);
}
model EnableEscalationPlanRequest {
escalationPlanId?: long(name='escalationPlanId', description='升级计划ID'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model EnableEscalationPlanResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model EnableEscalationPlanResponse = {
headers: map[string]string(name='headers'),
body: EnableEscalationPlanResponseBody(name='body'),
}
async function enableEscalationPlan(request: EnableEscalationPlanRequest): EnableEscalationPlanResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return enableEscalationPlanWithOptions(request, headers, runtime);
}
async function enableEscalationPlanWithOptions(request: EnableEscalationPlanRequest, headers: map[string]string, runtime: Util.RuntimeOptions): EnableEscalationPlanResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.escalationPlanId)) {
body.escalationPlanId = request.escalationPlanId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('EnableEscalationPlan', '2021-04-13', 'HTTPS', 'POST', 'AK', `/escalationPlan/enable`, 'json', req, runtime);
}
model UpdateEscalationPlanRequest {
escalationPlanId?: long(name='escalationPlanId', description='升级计划id'),
escalationPlanName?: string(name='escalationPlanName', description='升级计划名称'),
escalationPlanDescription?: string(name='escalationPlanDescription', description='升级计划描述'),
escalationPlanScopeObjects?: [
{
id?: long(name='id', description='主键'),
scopeObjectId?: long(name='scopeObjectId', description='范围对象id'),
scope?: string(name='scope', description='范围对象类型'),
}
](name='escalationPlanScopeObjects', description='关联范围列表(服务)'),
escalationPlanRules?: [
{
id?: long(name='id', description='主键'),
escalationPlanType?: string(name='escalationPlanType', description='UN_ACKNOWLEDGE 未响应 UN_FINISH 未完结'),
escalationPlanConditions?: [
{
level?: string(name='level', description='P1 P2 P3 P4'),
effection?: string(name='effection', description='LOW HIGH'),
}
](name='escalationPlanConditions', description='升级计划条件列表'),
escalationPlanStrategies?: [
{
noticeTime?: long(name='noticeTime', description='通知时间'),
noticeObjects?: [ long ](name='noticeObjects', description='通知对象id'),
noticeChannels?: [ string ](name='noticeChannels', description='通知渠道'),
}
](name='escalationPlanStrategies', description='升级策略列表'),
}
](name='escalationPlanRules', description='升级计划规则'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model UpdateEscalationPlanResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model UpdateEscalationPlanResponse = {
headers: map[string]string(name='headers'),
body: UpdateEscalationPlanResponseBody(name='body'),
}
async function updateEscalationPlan(request: UpdateEscalationPlanRequest): UpdateEscalationPlanResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return updateEscalationPlanWithOptions(request, headers, runtime);
}
async function updateEscalationPlanWithOptions(request: UpdateEscalationPlanRequest, headers: map[string]string, runtime: Util.RuntimeOptions): UpdateEscalationPlanResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.escalationPlanId)) {
body.escalationPlanId = request.escalationPlanId;
}
if (!Util.isUnset(request.escalationPlanName)) {
body.escalationPlanName = request.escalationPlanName;
}
if (!Util.isUnset(request.escalationPlanDescription)) {
body.escalationPlanDescription = request.escalationPlanDescription;
}
if (!Util.isUnset(request.escalationPlanScopeObjects)) {
body.escalationPlanScopeObjects = request.escalationPlanScopeObjects;
}
if (!Util.isUnset(request.escalationPlanRules)) {
body.escalationPlanRules = request.escalationPlanRules;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('UpdateEscalationPlan', '2021-04-13', 'HTTPS', 'POST', 'AK', `/escalationPlan/update`, 'json', req, runtime);
}
model ListProblemsRequest {
queryType?: string(name='queryType', description='RESPONSIBLE 我负责的 PARTICIPATED 我参与的 ALL 全部'),
problemStatus?: string(name='problemStatus', description='故障状态 HANDLING 处理中 RECOVERED 已恢复 REPLAYING 复盘中 REPLAYED 已复盘 CANCEL 已取消'),
problemLevel?: string(name='problemLevel', description='故障等级 1=P1 2=P2 3=P3 4=P4'),
affectServiceId?: long(name='affectServiceId', description='影响服务ID'),
serviceGroupId?: long(name='serviceGroupId', description='应急协同组'),
mainHandlerId?: long(name='mainHandlerId', description='主要处理人'),
repeaterId?: long(name='repeaterId', description='复盘负责人'),
discoveryStartTime?: string(name='discoveryStartTime', description='发现开始时间'),
discoveryEndTime?: string(name='discoveryEndTime', description='发现结束时间'),
restoreEndTime?: string(name='restoreEndTime', description='恢复结束时间'),
restoreStartTime?: string(name='restoreStartTime', description='恢复开始时间'),
pageNumber?: long(name='pageNumber', description='当前页'),
pageSize?: long(name='pageSize', description='页大小'),
clientToken?: string(name='clientToken', description='幂等号'),
}
model ListProblemsResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: [
{
problemId?: long(name='problemId', description='故障id'),
isManual?: boolean(name='isManual', description='是否手动'),
isUpgrade?: boolean(name='isUpgrade', description='是否升级'),
incidentId?: long(name='incidentId', description='事件ID'),
createTime?: string(name='createTime', description='创建时间'),
updateTime?: string(name='updateTime', description='修改时间'),
problemNumber?: string(name='problemNumber', description='故障编号'),
problemName?: string(name='problemName', description='故障名称'),
problemStatus?: string(name='problemStatus', description='故障状态 HANDLING 处理中 RECOVERED 已恢复 REPLAYING 复盘中 REPLAYED 已复盘 CANCEL 已取消'),
problemLevel?: string(name='problemLevel', description='故障等级 1=P1 2=P2 3=P3 4=P4'),
discoverTime?: string(name='discoverTime', description='发现时间'),
recoveryTime?: string(name='recoveryTime', description='恢复时间'),
relatedServiceId?: string(name='relatedServiceId', description='关联服务ID'),
serviceName?: string(name='serviceName', description='关联服务名称'),
affectServices?: [
{
serviceId?: long(name='serviceId', description='影响服务ID'),
serviceDescription?: string(name='serviceDescription', description='服务描述'),
serviceName?: string(name='serviceName', description='服务名字'),
updateTime?: string(name='updateTime', description='修改时间'),
}
](name='affectServices'),
mainHandlerId?: long(name='mainHandlerId', description='主要处理人ID'),
mainHandlerName?: string(name='mainHandlerName', description='主要处理人名称'),
cancelTime?: string(name='cancelTime', description='取消时间'),
finishTime?: string(name='finishTime', description='完结时间'),
replayTime?: string(name='replayTime', description='复盘时间'),
}
](name='data'),
pageNumber?: long(name='pageNumber', description='当前页'),
pageSize?: long(name='pageSize', description='页大小'),
totalCount?: long(name='totalCount', description='总条数'),
}
model ListProblemsResponse = {
headers: map[string]string(name='headers'),
body: ListProblemsResponseBody(name='body'),
}
async function listProblems(request: ListProblemsRequest): ListProblemsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listProblemsWithOptions(request, headers, runtime);
}
async function listProblemsWithOptions(request: ListProblemsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListProblemsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.queryType)) {
body.queryType = request.queryType;
}
if (!Util.isUnset(request.problemStatus)) {
body.problemStatus = request.problemStatus;
}
if (!Util.isUnset(request.problemLevel)) {
body.problemLevel = request.problemLevel;
}
if (!Util.isUnset(request.affectServiceId)) {
body.affectServiceId = request.affectServiceId;
}
if (!Util.isUnset(request.serviceGroupId)) {
body.serviceGroupId = request.serviceGroupId;
}
if (!Util.isUnset(request.mainHandlerId)) {
body.mainHandlerId = request.mainHandlerId;
}
if (!Util.isUnset(request.repeaterId)) {
body.repeaterId = request.repeaterId;
}
if (!Util.isUnset(request.discoveryStartTime)) {
body.discoveryStartTime = request.discoveryStartTime;
}
if (!Util.isUnset(request.discoveryEndTime)) {
body.discoveryEndTime = request.discoveryEndTime;
}
if (!Util.isUnset(request.restoreEndTime)) {
body.restoreEndTime = request.restoreEndTime;
}
if (!Util.isUnset(request.restoreStartTime)) {
body.restoreStartTime = request.restoreStartTime;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListProblems', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/listProblems`, 'json', req, runtime);
}
model GenerateProblemPictureLinkRequest {
keys?: [ string ](name='keys', description='oss key'),
problemId?: string(name='problemId', description='故障id'),
}
model GenerateProblemPictureLinkResponseBody = {
requestId?: string(name='requestId', description='requestId'),
data?: {
links?: [
{
key?: string(name='key', description='oss key'),
link?: string(name='link', description='图片链接'),
}
](name='links', description='图片链接列表'),
}(name='data'),
}
model GenerateProblemPictureLinkResponse = {
headers: map[string]string(name='headers'),
body: GenerateProblemPictureLinkResponseBody(name='body'),
}
async function generateProblemPictureLink(request: GenerateProblemPictureLinkRequest): GenerateProblemPictureLinkResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return generateProblemPictureLinkWithOptions(request, headers, runtime);
}
async function generateProblemPictureLinkWithOptions(request: GenerateProblemPictureLinkRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GenerateProblemPictureLinkResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.keys)) {
body.keys = request.keys;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GenerateProblemPictureLink', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/process/oss/getPresignedLink`, 'json', req, runtime);
}
model CreateTenantApplicationRequest {
channel?: string(name='channel', description='应用协同渠道'),
clientToken?: string(name='clientToken', description='幂等标识'),
}
model CreateTenantApplicationResponseBody = {
requestId?: string(name='requestId', description='id of the req'),
data?: {
openUrl?: string(name='openUrl', description='开通url'),
progress?: string(name='progress', description='开通进度状态'),
}(name='data', description='data'),
}
model CreateTenantApplicationResponse = {
headers: map[string]string(name='headers'),
body: CreateTenantApplicationResponseBody(name='body'),
}
async function createTenantApplication(request: CreateTenantApplicationRequest): CreateTenantApplicationResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createTenantApplicationWithOptions(request, headers, runtime);
}
async function createTenantApplicationWithOptions(request: CreateTenantApplicationRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateTenantApplicationResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.channel)) {
body.channel = request.channel;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateTenantApplication', '2021-04-13', 'HTTPS', 'POST', 'AK', `/mobileApp/create`, 'json', req, runtime);
}
model GetIntegrationConfigRequest {
integrationConfigId?: long(name='integrationConfigId', description='集成配置id'),
clientToken?: string(name='clientToken', description='幂等id'),
}
model GetIntegrationConfigResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
integrationConfigId?: long(name='integrationConfigId', description='集成配置id、'),
monitorSourceId?: long(name='monitorSourceId', description='监控源id'),
monitorSourceName?: string(name='monitorSourceName', description='监控源名称'),
monitorSourceShortName?: string(name='monitorSourceShortName', description='监控源简称'),
accessKey?: string(name='accessKey', description='集成秘钥'),
isReceivedEvent?: boolean(name='isReceivedEvent', description='是否接收报警'),
status?: string(name='status', description='集成配置状态,DISABLE 禁用,INTEGRATED 已集成,UNINTEGRATED未集成'),
}(name='data'),
}
model GetIntegrationConfigResponse = {
headers: map[string]string(name='headers'),
body: GetIntegrationConfigResponseBody(name='body'),
}
async function getIntegrationConfig(request: GetIntegrationConfigRequest): GetIntegrationConfigResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getIntegrationConfigWithOptions(request, headers, runtime);
}
async function getIntegrationConfigWithOptions(request: GetIntegrationConfigRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetIntegrationConfigResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.integrationConfigId)) {
body.integrationConfigId = request.integrationConfigId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetIntegrationConfig', '2021-04-13', 'HTTPS', 'POST', 'AK', `/integrationConfig/detail`, 'json', req, runtime);
}
model RevokeProblemRecoveryRequest {
problemId?: long(name='problemId', description='故障ID'),
problemNotifyType?: string(name='problemNotifyType', description='通告类型 PROBLEM_NOTIFY:故障通告 PROBLEM_UPDATE:故障更新 PROBLEM_UPGRADE:故障升级 PROBLEM_DEGRADE:故障降级 PROBLEM_RECOVER:故障恢复 PROBLEM_REISSUE: 故障补发 PROBLEM_CANCEL:故障取消'),
clientToken?: string(name='clientToken', description='幂等校验Id'),
}
model RevokeProblemRecoveryResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model RevokeProblemRecoveryResponse = {
headers: map[string]string(name='headers'),
body: RevokeProblemRecoveryResponseBody(name='body'),
}
async function revokeProblemRecovery(request: RevokeProblemRecoveryRequest): RevokeProblemRecoveryResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return revokeProblemRecoveryWithOptions(request, headers, runtime);
}
async function revokeProblemRecoveryWithOptions(request: RevokeProblemRecoveryRequest, headers: map[string]string, runtime: Util.RuntimeOptions): RevokeProblemRecoveryResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.problemNotifyType)) {
body.problemNotifyType = request.problemNotifyType;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('RevokeProblemRecovery', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/revoke`, 'json', req, runtime);
}
model GetIncidentSubtotalCountRequest {
incidentIds?: [ long ](name='incidentIds', description='事件id列表'),
clientToken?: string(name='clientToken', description='幂等标识'),
}
model GetIncidentSubtotalCountResponseBody = {
data?: {
subtotalCount?: map[string]any(name='subtotalCount', description='map'),
requestId?: string(name='requestId', description='id of the request'),
}(name='data', description='data'),
}
model GetIncidentSubtotalCountResponse = {
headers: map[string]string(name='headers'),
body: GetIncidentSubtotalCountResponseBody(name='body'),
}
async function getIncidentSubtotalCount(request: GetIncidentSubtotalCountRequest): GetIncidentSubtotalCountResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getIncidentSubtotalCountWithOptions(request, headers, runtime);
}
async function getIncidentSubtotalCountWithOptions(request: GetIncidentSubtotalCountRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetIncidentSubtotalCountResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentIds)) {
body.incidentIds = request.incidentIds;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetIncidentSubtotalCount', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/subtotal/count`, 'json', req, runtime);
}
model EnableIntegrationConfigRequest {
integrationConfigId?: long(name='integrationConfigId'),
clientToken?: string(name='clientToken', description='幂等id'),
}
model EnableIntegrationConfigResponseBody = {
requestId?: string(name='requestId'),
}
model EnableIntegrationConfigResponse = {
headers: map[string]string(name='headers'),
body: EnableIntegrationConfigResponseBody(name='body'),
}
async function enableIntegrationConfig(request: EnableIntegrationConfigRequest): EnableIntegrationConfigResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return enableIntegrationConfigWithOptions(request, headers, runtime);
}
async function enableIntegrationConfigWithOptions(request: EnableIntegrationConfigRequest, headers: map[string]string, runtime: Util.RuntimeOptions): EnableIntegrationConfigResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.integrationConfigId)) {
body.integrationConfigId = request.integrationConfigId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('EnableIntegrationConfig', '2021-04-13', 'HTTPS', 'POST', 'AK', `/integrationConfig/enable`, 'json', req, runtime);
}
model CreateProblemSubtotalRequest {
problemId?: long(name='problemId', description='故障Id'),
description?: string(name='description', description='小计文本'),
clientToken?: string(name='clientToken', description='幂等校验token'),
}
model CreateProblemSubtotalResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
subtotalId?: long(name='subtotalId', description='小计id'),
}(name='data'),
}
model CreateProblemSubtotalResponse = {
headers: map[string]string(name='headers'),
body: CreateProblemSubtotalResponseBody(name='body'),
}
async function createProblemSubtotal(request: CreateProblemSubtotalRequest): CreateProblemSubtotalResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createProblemSubtotalWithOptions(request, headers, runtime);
}
async function createProblemSubtotalWithOptions(request: CreateProblemSubtotalRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateProblemSubtotalResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.description)) {
body.description = request.description;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateProblemSubtotal', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/save/subtotal`, 'json', req, runtime);
}
model CreateProblemRequest {
problemName?: string(name='problemName', description='故障名称'),
clientToken?: string(name='clientToken', description='幂等校验Id'),
problemStatus?: string(name='problemStatus', description='故障状态 HANDLING 处理中 RECOVERED 已恢复 REPLAYING 复盘中 REPLAYED 已复盘 CANCEL 已取消'),
problemLevel?: string(name='problemLevel', description='故障等级 1=P1 2=P2 3=P3 4=P4'),
progressSummary?: string(name='progressSummary', description='进展摘要'),
relatedServiceId?: long(name='relatedServiceId', description='所属服务'),
mainHandlerId?: long(name='mainHandlerId', description='主要处理人'),
preliminaryReason?: string(name='preliminaryReason', description='初步原因'),
discoverTime?: string(name='discoverTime', description='发现时间 (XXXX-XX-XX 00:00:00)'),
recoveryTime?: string(name='recoveryTime', description='恢复时间'),
affectServiceIds?: [ long ](name='affectServiceIds', description='影响服务列表'),
serviceGroupIds?: [ long ](name='serviceGroupIds', description='应急协同组'),
incidentId?: long(name='incidentId', description='事件id'),
problemNotifyType?: string(name='problemNotifyType', description='通告类型'),
}
model CreateProblemResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
problemId?: long(name='problemId', description='故障Id'),
}(name='data'),
}
model CreateProblemResponse = {
headers: map[string]string(name='headers'),
body: CreateProblemResponseBody(name='body'),
}
async function createProblem(request: CreateProblemRequest): CreateProblemResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createProblemWithOptions(request, headers, runtime);
}
async function createProblemWithOptions(request: CreateProblemRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateProblemResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemName)) {
body.problemName = request.problemName;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.problemStatus)) {
body.problemStatus = request.problemStatus;
}
if (!Util.isUnset(request.problemLevel)) {
body.problemLevel = request.problemLevel;
}
if (!Util.isUnset(request.progressSummary)) {
body.progressSummary = request.progressSummary;
}
if (!Util.isUnset(request.relatedServiceId)) {
body.relatedServiceId = request.relatedServiceId;
}
if (!Util.isUnset(request.mainHandlerId)) {
body.mainHandlerId = request.mainHandlerId;
}
if (!Util.isUnset(request.preliminaryReason)) {
body.preliminaryReason = request.preliminaryReason;
}
if (!Util.isUnset(request.discoverTime)) {
body.discoverTime = request.discoverTime;
}
if (!Util.isUnset(request.recoveryTime)) {
body.recoveryTime = request.recoveryTime;
}
if (!Util.isUnset(request.affectServiceIds)) {
body.affectServiceIds = request.affectServiceIds;
}
if (!Util.isUnset(request.serviceGroupIds)) {
body.serviceGroupIds = request.serviceGroupIds;
}
if (!Util.isUnset(request.incidentId)) {
body.incidentId = request.incidentId;
}
if (!Util.isUnset(request.problemNotifyType)) {
body.problemNotifyType = request.problemNotifyType;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateProblem', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/upgrade`, 'json', req, runtime);
}
model GetProblemImprovementRequest {
problemId?: string(name='problemId', description='故障ID'),
clientToken?: string(name='clientToken', description='幂等校验token'),
}
model GetProblemImprovementResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
problemId?: string(name='problemId', description='故障ID'),
problemReason?: string(name='problemReason', description='故障原因'),
recentActivity?: string(name='recentActivity', description='最近活动 码表:PROBLEM_RECENT_ACTIVITY'),
injectionMode?: string(name='injectionMode', description='注入方式 码表:PROBLEM_INJECTION_MODE'),
recoveryMode?: string(name='recoveryMode', description='恢复方式 码表:PROBLEM_RECOVERY_MODE'),
discoverSource?: string(name='discoverSource', description='发现来源 码表:PROBLEM_DISCOVER_SOURCE'),
userReport?: long(name='userReport', description='用户上报 码表:PROBLEM_USER_REPORT'),
monitorSourceName?: string(name='monitorSourceName', description='监控源'),
relationChanges?: string(name='relationChanges', description='关联变更'),
dutyUserId?: long(name='dutyUserId', description='故障责任人id'),
replayDutyUserId?: long(name='replayDutyUserId', description='复盘负责人id'),
replayDutyUserPhone?: string(name='replayDutyUserPhone', description='复盘负责人手机号'),
dutyDepartmentId?: string(name='dutyDepartmentId', description='故障责任部门'),
dutyUserName?: string(name='dutyUserName', description='故障责任人名称'),
dutyUserPhone?: string(name='dutyUserPhone', description='故障责任人手机号'),
replayDutyUserName?: string(name='replayDutyUserName', description='复盘负责人名称'),
remark?: string(name='remark', description='备注'),
isManual?: boolean(name='isManual', description='是否手动'),
dutyDepartmentName?: string(name='dutyDepartmentName', description='故障责任部门名称'),
measureList?: [
{
measureId?: long(name='measureId', description='改进措施id 用于删除或更新'),
type?: long(name='type', description='措施类型'),
content?: string(name='content', description='措施内容'),
checkStandard?: string(name='checkStandard', description='验收标准'),
checkUserId?: long(name='checkUserId', description='验收人id'),
checkUserName?: string(name='checkUserName', description='验收人名称'),
directorName?: string(name='directorName', description='负责人名称'),
stalkerName?: string(name='stalkerName', description='跟踪人名称'),
planFinishTime?: string(name='planFinishTime', description='计划完成时间'),
directorId?: long(name='directorId', description='负责人id'),
stalkerId?: long(name='stalkerId', description='跟踪人id'),
status?: string(name='status', description='UNIMPROVED 状态 IMPROVED 改进 2 未改进UNIMPROVED'),
}
](name='measureList', description='改进措施列表'),
}(name='data'),
}
model GetProblemImprovementResponse = {
headers: map[string]string(name='headers'),
body: GetProblemImprovementResponseBody(name='body'),
}
async function getProblemImprovement(request: GetProblemImprovementRequest): GetProblemImprovementResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return getProblemImprovementWithOptions(request, headers, runtime);
}
async function getProblemImprovementWithOptions(request: GetProblemImprovementRequest, headers: map[string]string, runtime: Util.RuntimeOptions): GetProblemImprovementResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('GetProblemImprovement', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/improvement/detail`, 'json', req, runtime);
}
model CreateProblemEffectionServiceRequest {
serviceId?: long(name='serviceId', description='影响服务id'),
level?: string(name='level', description='影响等级'),
status?: string(name='status', description='影响状态 0 未恢复 1已恢复'),
description?: string(name='description', description='影响描述'),
pictureUrl?: [ string ](name='pictureUrl', description='图片地址'),
problemId?: long(name='problemId', description='故障id'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model CreateProblemEffectionServiceResponseBody = {
requestId?: string(name='requestId'),
data?: {
effectionServiceId?: long(name='effectionServiceId', description='影响服务id'),
}(name='data'),
}
model CreateProblemEffectionServiceResponse = {
headers: map[string]string(name='headers'),
body: CreateProblemEffectionServiceResponseBody(name='body'),
}
async function createProblemEffectionService(request: CreateProblemEffectionServiceRequest): CreateProblemEffectionServiceResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createProblemEffectionServiceWithOptions(request, headers, runtime);
}
async function createProblemEffectionServiceWithOptions(request: CreateProblemEffectionServiceRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateProblemEffectionServiceResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.serviceId)) {
body.serviceId = request.serviceId;
}
if (!Util.isUnset(request.level)) {
body.level = request.level;
}
if (!Util.isUnset(request.status)) {
body.status = request.status;
}
if (!Util.isUnset(request.description)) {
body.description = request.description;
}
if (!Util.isUnset(request.pictureUrl)) {
body.pictureUrl = request.pictureUrl;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateProblemEffectionService', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/process/effectionService/create`, 'json', req, runtime);
}
model DeleteProblemTimelineRequest {
problemTimelineId?: long(name='problemTimelineId', description='ID'),
problemId?: long(name='problemId', description='故障id'),
clientToken?: string(name='clientToken', description='clientToken'),
}
model DeleteProblemTimelineResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
}
model DeleteProblemTimelineResponse = {
headers: map[string]string(name='headers'),
body: DeleteProblemTimelineResponseBody(name='body'),
}
async function deleteProblemTimeline(request: DeleteProblemTimelineRequest): DeleteProblemTimelineResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return deleteProblemTimelineWithOptions(request, headers, runtime);
}
async function deleteProblemTimelineWithOptions(request: DeleteProblemTimelineRequest, headers: map[string]string, runtime: Util.RuntimeOptions): DeleteProblemTimelineResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.problemTimelineId)) {
body.problemTimelineId = request.problemTimelineId;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('DeleteProblemTimeline', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/process/timeline/delete`, 'json', req, runtime);
}
model CreateProblemMeasureRequest {
type?: int32(name='type', description='措施类型'),
problemId?: long(name='problemId', description='故障Id'),
content?: string(name='content', description='措施内容'),
checkStandard?: string(name='checkStandard', description='验收标准'),
checkUserId?: long(name='checkUserId', description='验收人id'),
planFinishTime?: string(name='planFinishTime', description='计划完成时间'),
directorId?: long(name='directorId', description='负责人id'),
stalkerId?: long(name='stalkerId', description='跟踪人id'),
status?: string(name='status', description='状态 IMPROVED 改进 2 未改进UNIMPROVED'),
clientToken?: string(name='clientToken', description='幂等校验token'),
}
model CreateProblemMeasureResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: {
measureId?: long(name='measureId', description='故障措施Id'),
}(name='data'),
}
model CreateProblemMeasureResponse = {
headers: map[string]string(name='headers'),
body: CreateProblemMeasureResponseBody(name='body'),
}
async function createProblemMeasure(request: CreateProblemMeasureRequest): CreateProblemMeasureResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return createProblemMeasureWithOptions(request, headers, runtime);
}
async function createProblemMeasureWithOptions(request: CreateProblemMeasureRequest, headers: map[string]string, runtime: Util.RuntimeOptions): CreateProblemMeasureResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.type)) {
body.type = request.type;
}
if (!Util.isUnset(request.problemId)) {
body.problemId = request.problemId;
}
if (!Util.isUnset(request.content)) {
body.content = request.content;
}
if (!Util.isUnset(request.checkStandard)) {
body.checkStandard = request.checkStandard;
}
if (!Util.isUnset(request.checkUserId)) {
body.checkUserId = request.checkUserId;
}
if (!Util.isUnset(request.planFinishTime)) {
body.planFinishTime = request.planFinishTime;
}
if (!Util.isUnset(request.directorId)) {
body.directorId = request.directorId;
}
if (!Util.isUnset(request.stalkerId)) {
body.stalkerId = request.stalkerId;
}
if (!Util.isUnset(request.status)) {
body.status = request.status;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('CreateProblemMeasure', '2021-04-13', 'HTTPS', 'POST', 'AK', `/problem/improvement/measure/save`, 'json', req, runtime);
}
model ListServiceGroupsRequest {
queryName?: string(name='queryName', description='搜索名称'),
queryType?: string(name='queryType', description='搜索类型。USER用户 SERVICEGROUP服务组'),
pageNumber?: long(name='pageNumber', description='当前页'),
pageSize?: long(name='pageSize', description='页大小'),
clientToken?: string(name='clientToken', description='幂等号'),
isScheduled?: boolean(name='isScheduled', description='是否已经排班'),
}
model ListServiceGroupsResponseBody = {
requestId?: string(name='requestId', description='Id of the request'),
data?: [
{
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
isScheduled?: boolean(name='isScheduled', description='是否已经排班'),
serviceGroupName?: string(name='serviceGroupName', description='服务组名字'),
serviceGroupDescription?: string(name='serviceGroupDescription', description='服务组描述'),
updateTime?: string(name='updateTime', description='修改时间'),
enableWebhook?: string(name='enableWebhook', description='ENABLE 启用 DISABLE 禁用'),
webhookType?: string(name='webhookType', description='WEIXIN_GROUP 微信 DING_GROUP 钉钉 FEISHU_GROUP 飞书'),
webhookLink?: string(name='webhookLink', description='webhook 跳转地址'),
users?: [
{
userId?: long(name='userId', description='用户ID'),
userName?: string(name='userName', description='用户名字'),
serviceGroupId?: long(name='serviceGroupId', description='服务组ID'),
phone?: string(name='phone', description='手机号'),
email?: string(name='email', description='邮箱'),
}
](name='users', description='服务组用户列表'),
}
](name='data', description='服务组列表'),
pageNumber?: long(name='pageNumber', description='当前页'),
pageSize?: long(name='pageSize', description='分页大小'),
totalCount?: long(name='totalCount', description='总条数'),
}
model ListServiceGroupsResponse = {
headers: map[string]string(name='headers'),
body: ListServiceGroupsResponseBody(name='body'),
}
async function listServiceGroups(request: ListServiceGroupsRequest): ListServiceGroupsResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return listServiceGroupsWithOptions(request, headers, runtime);
}
async function listServiceGroupsWithOptions(request: ListServiceGroupsRequest, headers: map[string]string, runtime: Util.RuntimeOptions): ListServiceGroupsResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.queryName)) {
body.queryName = request.queryName;
}
if (!Util.isUnset(request.queryType)) {
body.queryType = request.queryType;
}
if (!Util.isUnset(request.pageNumber)) {
body.pageNumber = request.pageNumber;
}
if (!Util.isUnset(request.pageSize)) {
body.pageSize = request.pageSize;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
if (!Util.isUnset(request.isScheduled)) {
body.isScheduled = request.isScheduled;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('ListServiceGroups', '2021-04-13', 'HTTPS', 'POST', 'AK', `/services/group/list`, 'json', req, runtime);
}
model FinishIncidentRequest {
incidentIds?: [ long ](name='incidentIds', description='事件ID数组'),
incidentFinishReason?: int32(name='incidentFinishReason', description='完结原因'),
incidentFinishReasonDescription?: string(name='incidentFinishReasonDescription', description='原因描述'),
incidentFinishSolution?: int32(name='incidentFinishSolution', description='解决方案'),
incidentFinishSolutionDescription?: string(name='incidentFinishSolutionDescription', description='解决方案描述'),
clientToken?: string(name='clientToken', description='幂等校验Id'),
}
model FinishIncidentResponseBody = {
requestId?: string(name='requestId', description='requestId'),
}
model FinishIncidentResponse = {
headers: map[string]string(name='headers'),
body: FinishIncidentResponseBody(name='body'),
}
async function finishIncident(request: FinishIncidentRequest): FinishIncidentResponse {
var runtime = new Util.RuntimeOptions{};
var headers : map[string]string = {};
return finishIncidentWithOptions(request, headers, runtime);
}
async function finishIncidentWithOptions(request: FinishIncidentRequest, headers: map[string]string, runtime: Util.RuntimeOptions): FinishIncidentResponse {
Util.validateModel(request);
var body : map[string]any= {};
if (!Util.isUnset(request.incidentIds)) {
body.incidentIds = request.incidentIds;
}
if (!Util.isUnset(request.incidentFinishReason)) {
body.incidentFinishReason = request.incidentFinishReason;
}
if (!Util.isUnset(request.incidentFinishReasonDescription)) {
body.incidentFinishReasonDescription = request.incidentFinishReasonDescription;
}
if (!Util.isUnset(request.incidentFinishSolution)) {
body.incidentFinishSolution = request.incidentFinishSolution;
}
if (!Util.isUnset(request.incidentFinishSolutionDescription)) {
body.incidentFinishSolutionDescription = request.incidentFinishSolutionDescription;
}
if (!Util.isUnset(request.clientToken)) {
body.clientToken = request.clientToken;
}
var req = new OpenApi.OpenApiRequest{
headers = headers,
body = OpenApiUtil.parseToMap(body),
};
return doROARequest('FinishIncident', '2021-04-13', 'HTTPS', 'POST', 'AK', `/incident/finish`, 'json', req, runtime);
}
model DataValue = {
code?: string(name='code'),
description?: string(name='description'),
configDescription?: string(name='configDescription', description='配置描述'),
configCode?: string(name='configCode', description='配置code'),
parentCode?: string(name='parentCode', description='配置父code'),
configKey?: string(name='configKey', description='key (用于前后端值传递)'),
configValue?: string(name='configValue', description='value (用于前端展示)'),
requirement?: boolean(name='requirement', description='是否必选'),
}
| Tea | 5 | aliyun/alibabacloud-sdk | gemp-20210413/main.tea | [
"Apache-2.0"
] |
<Page xmlns="http://schemas.nativescript.org/tns.xsd" navigatingTo="onNavigate">
<TabView>
<TabView.items>
<TabViewItem title="tAb ViEw" id="tab1">
<TabViewItem.view>
<StackLayout>
<Button text="apply" tap="applyTap"/>
<Button text="reset" tap="resetTap"/>
</StackLayout>
</TabViewItem.view>
</TabViewItem>
<TabViewItem title="tAb ViEw" id="tab2">
<TabViewItem.view>
<Label text="empty tab" />
</TabViewItem.view>
</TabViewItem>
<TabViewItem title="tAb ViEw" id="tab3">
<TabViewItem.view>
<Label text="empty tab" />
</TabViewItem.view>
</TabViewItem>
<TabViewItem title="tAb ViEw" id="tab4">
<TabViewItem.view>
<Label text="empty tab" />
</TabViewItem.view>
</TabViewItem>
</TabView.items>
</TabView>
</Page>
| XML | 3 | tralves/NativeScript | apps/ui/src/tab-view/text-transform-page.xml | [
"Apache-2.0"
] |
exec("swigtest.start", -1);
f = new_Foo();
b = new_Bar();
checkequal(spam(f), 1, "spam(f)");
checkequal(spam(b), 2, "spam(b)");
delete_Foo(f);
delete_Bar(b);
exec("swigtest.quit", -1);
| Scilab | 3 | kyletanyag/LL-Smartcard | cacreader/swig-4.0.2/Examples/test-suite/scilab/overload_subtype_runme.sci | [
"BSD-3-Clause"
] |
# $NetBSD: files.arc,v 1.23 2000/06/20 08:26:54 soda Exp $
# $OpenBSD: files.arc,v 1.21 1999/09/11 10:20:20 niklas Exp $
#
# maxpartitions must be first item in files.${ARCH}
#
maxpartitions 16
maxusers 2 8 64
# Required files
file arch/arc/arc/autoconf.c
file arch/arc/arc/conf.c
file arch/arc/arc/disksubr.c
file arch/arc/dev/dma.c
file arch/arc/arc/machdep.c
#file arch/arc/arc/minidebug.c
file arch/arc/arc/arc_trap.c
file arch/arc/arc/bus_space.c
file arch/arc/arc/bus_space_sparse.c
file arch/arc/arc/bus_space_large.c
file arch/arc/arc/bus_dma.c
file arch/arc/arc/wired_map.c
file arch/arc/arc/arcbios.c
##
## Machine-independent ATAPI drivers
##
include "dev/ata/files.ata"
major { wd = 4 }
# Raster operations
include "dev/rasops/files.rasops"
include "dev/wsfont/files.wsfont"
#
# "Workstation Console" glue.
#
include "dev/wscons/files.wscons"
include "dev/pckbc/files.pckbc"
#
# System BUS types
#
device mainbus { } # no locators
attach mainbus at root
file arch/arc/arc/mainbus.c mainbus
# Our CPU configurator
device cpu # not optional
attach cpu at mainbus
file arch/arc/arc/cpu.c cpu
#
# Magnum and PICA bus autoconfiguration devices
#
device pica {}
attach pica at mainbus # optional
file arch/arc/pica/picabus.c pica
file arch/arc/jazz/jazzdmatlb.c # XXX pica
file arch/arc/jazz/bus_dma_jazz.c # XXX pica
#
# ALGOR bus autoconfiguration devices
#
device algor {}
attach algor at mainbus # optional
file arch/arc/algor/algorbus.c algor
#
# ISA Bus bridge
#
device isabr {} : isabus
attach isabr at mainbus # optional
file arch/arc/isa/isabus.c isabr
file arch/arc/isa/isadma_bounce.c # XXX DESKSTATION_RPC44
#
# PCI Bus bridge
#
device pbcpcibr {} : pcibus
attach pbcpcibr at mainbus # optional
file arch/arc/pci/pbcpcibus.c pbcpcibr
#
# NEC RISCstation PCI host bridge
#
device necpb: pcibus
attach necpb at mainbus # optional
file arch/arc/pci/necpb.c necpb
# Ethernet chip on PICA bus
device sn: ifnet, ether, arp
attach sn at pica
file arch/arc/dev/if_sn.c sn
#
# Machine-independent MII/PHY drivers.
#
include "dev/mii/files.mii"
# Use machine independent SCSI driver routines
include "dev/scsipi/files.scsipi"
major {sd = 0}
major {cd = 3}
# Symbios 53C94 SCSI interface driver on PICA bus
device asc: scsi
attach asc at pica
file arch/arc/dev/asc.c asc
# Floppy disk controller on PICA bus
device fdc {drive = -1}
attach fdc at pica
device fd: disk
attach fd at fdc
file arch/arc/dev/fd.c fdc needs-flag
major {fd = 7}
# bus independent raster console glue
device rasdisplay: wsemuldisplaydev, pcdisplayops
file arch/arc/dev/rasdisplay.c rasdisplay
# raster console glue on PICA bus
attach rasdisplay at pica with rasdisplay_jazzio
file arch/arc/jazz/rasdisplay_jazzio.c rasdisplay_jazzio needs-flag
# VGA display driver on PICA bus
attach vga at pica with vga_jazzio
file arch/arc/jazz/vga_jazzio.c vga_jazzio needs-flag
# PC keyboard controller on PICA bus
attach pckbc at pica with pckbc_jazzio
file arch/arc/jazz/pckbc_jazzio.c pckbc_jazzio needs-flag
#
# Stock ISA bus support
#
define pcmcia {} # XXX dummy decl...
include "dev/pci/files.pci"
include "dev/isa/files.isa"
file arch/arc/pci/pciide_machdep.c pciide
# Real time clock, must have one..
device aclock
attach aclock at pica with aclock_pica
attach aclock at isa with aclock_isa
attach aclock at algor with aclock_algor
file arch/arc/arc/clock.c aclock & (aclock_isa | aclock_pica | aclock_algor) needs-flag
file arch/arc/arc/clock_mc.c aclock & (aclock_isa | aclock_pica | aclock_algor) needs-flag
# Console driver on PC-style graphics
device pc: tty
attach pc at pica with pc_pica
attach pc at isa with pc_isa
device opms: tty
attach opms at pica
file arch/arc/dev/pccons.c pc & (pc_pica | pc_isa | opms) needs-flag
# BusLogic BT-445C VLB SCSI Controller. Special on TYNE local bus.
device btl: scsi
attach btl at isa
file arch/arc/dti/btl.c btl
# NS16450/16550 Serial line driver
attach com at pica with com_pica
attach com at algor with com_algor
file arch/arc/dev/com_lbus.c com & (com_pica | com_algor)
# Game adapter (joystick)
device joy
attach joy at isa
file arch/arc/isa/joy.c joy needs-flag
# National Semiconductor DS8390/WD83C690-based boards
# (WD/SMC 80x3 family, SMC Ultra [8216], 3Com 3C503, NE[12]000, and clones)
# XXX conflicts with other ports; can't be in files.isa
## XXX: should fix conflict with files.isa
#device ed: ether, ifnet
#attach ed at isa with ed_isa
#attach ed at pcmcia with ed_pcmcia
#file dev/isa/if_ed.c ed & (ed_isa | ed_pcmcia) needs-flag
# Parallel printer port driver
attach lpt at pica with lpt_pica
attach lpt at algor with lpt_algor
file arch/arc/dev/lpt_lbus.c lpt & (lpt_pica | lpt_algor)
#
# PCI Bus support
#
# PCI VGA display driver
device pcivga: tty
attach pcivga at pci
file arch/arc/pci/pci_vga.c pcivga
#
# Specials.
#
# memory disk for installation
file arch/arc/dev/md_root.c memory_disk_hooks
major {md = 8}
# RAIDframe
major {raid = 9}
#
# Common files
#
file dev/cons.c
#file dev/cninit.c
#file netinet/in_cksum.c
#file netns/ns_cksum.c ns
| Arc | 3 | MarginC/kame | netbsd/sys/arch/arc/conf/files.arc | [
"BSD-3-Clause"
] |
// Binomial model with a roughly uniform prior for
// the probability of success (theta)
data {
int<lower=0> N; // number of experiments
int<lower=0> y; // number of successes
}
parameters {
// sampling is done for the parameters
real alpha; // logit of probability of success in rang (-Inf,Inf)
}
transformed parameters {
// transformed parameters are deterministic transformations of parameters (and data)
real theta = inv_logit(alpha); // probability of success in range (0,1)
}
model {
// model block creates the log density to be sampled
alpha ~ normal(0, 1.5); // roughly uniform prior for theta
y ~ binomial_logit(N, alpha); // model parameterized with logit of probability
// the notation using ~ is syntactic sugar for
// target += normal_lpdf(alpha | 0, 1.5); // lpdf for continuous theta
// target += binomial_logit_lpmf(y | N, alpha); // lpmf for discrete y
// target is the log density to be sampled
}
| Stan | 5 | tonyctan/BDA_R_demos | demos_rstan/binomb.stan | [
"BSD-3-Clause"
] |
Notebook[{Cell[
BoxData[RowBox[{"Print","[","\"Hello World\"","]"}]],"Input",CellID->1]},
StyleDefinitions->"Default.nb",FrontEndVersion->"10.0 for Wolfram Cloud Platform (June 2 2014)"] | Mathematica | 3 | venusing1998/hello-world | m/mathematica-online.nb | [
"MIT"
] |
//===--- OwnershipLiveRange.h ---------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2020 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#ifndef SWIFT_SILOPTIMIZER_SEMANTICARC_OWNERSHIPLIVERANGE_H
#define SWIFT_SILOPTIMIZER_SEMANTICARC_OWNERSHIPLIVERANGE_H
#include "swift/SIL/OwnershipUtils.h"
#include "swift/SILOptimizer/Utils/InstOptUtils.h"
#include "swift/SILOptimizer/Utils/ValueLifetime.h"
namespace swift {
namespace semanticarc {
/// This class represents an "extended live range" of an owned value. Such a
/// representation includes:
///
/// 1. The owned introducing value.
/// 2. Any forwarding instructions that consume the introduced value
/// (transitively) and then propagate a new owned value.
/// 3. Transitive destroys on the forwarding instructions/destroys on the owned
/// introducing value.
/// 4. Any unknown consuming uses that are not understood by this code.
///
/// This allows for this to be used to convert such a set of uses from using
/// owned ownership to using guaranteed ownership by converting the
/// destroy_value -> end_borrow and "flipping" the ownership of individual
/// forwarding instructions.
///
/// NOTE: We do not look through "phi nodes" in the ownership graph (e.x.: real
/// phi arguments, struct, tuple). Instead we represent those as nodes in a
/// larger phi ownership web, connected via individual OwnershipLiveRange.
class LLVM_LIBRARY_VISIBILITY OwnershipLiveRange {
/// The value that we are computing the LiveRange for. Expected to be an owned
/// introducer and not to be forwarding.
OwnedValueIntroducer introducer;
/// A vector that we store all of our uses into.
///
/// Some properties of this array are:
///
/// 1. It is only mutated in the constructor of LiveRange.
///
/// 2. destroyingUses, ownershipForwardingUses, and unknownConsumingUses are
/// views into this array. We store the respective uses in the aforementioned
/// order. This is why it is important not to mutate consumingUses after we
/// construct the LiveRange since going from small -> large could invalidate
/// the uses.
SmallVector<Operand *, 6> consumingUses;
/// A list of destroy_values of the live range.
///
/// This is just a view into consuming uses.
ArrayRef<Operand *> destroyingUses;
/// A list of forwarding instructions that forward owned ownership, but that
/// are also able to be converted to guaranteed ownership.
///
/// If we are able to eliminate this LiveRange due to it being from a
/// guaranteed value, we must flip the ownership of all of these instructions
/// to guaranteed from owned.
///
/// NOTE: Normally only destroying or consuming uses end the live range. We
/// copy these transitive uses as well into the consumingUses array since
/// transitive uses can extend a live range up to an unreachable block without
/// ultimately being consuming. In such a situation if we did not also store
/// this into consuming uses, we would not be able to ascertain just using the
/// "consumingUses" array the true lifetime of the OwnershipLiveRange.
///
/// Corresponds to isOwnershipForwardingInst(...).
ArrayRef<Operand *> ownershipForwardingUses;
/// Consuming uses that we were not able to understand as a forwarding
/// instruction or a destroy_value. These must be passed a strongly control
/// equivalent +1 value.
ArrayRef<Operand *> unknownConsumingUses;
public:
OwnershipLiveRange(SILValue value);
OwnershipLiveRange(const OwnershipLiveRange &) = delete;
OwnershipLiveRange &operator=(const OwnershipLiveRange &) = delete;
enum class HasConsumingUse_t {
No = 0,
YesButAllPhiArgs = 1,
Yes = 2,
};
/// Return true if v only has invalidating uses that are destroy_value. Such
/// an owned value is said to represent a dead "live range".
///
/// Semantically this implies that a value is never passed off as +1 to memory
/// or another function implying it can be used everywhere at +0.
HasConsumingUse_t
hasUnknownConsumingUse(bool assumingFixedPoint = false) const;
/// Return an array ref to /all/ consuming uses. Will include all 3 sorts of
/// consuming uses: destroying uses, forwarding consuming uses, and unknown
/// forwarding instruction.
ArrayRef<Operand *> getAllConsumingUses() const { return consumingUses; }
ArrayRef<Operand *> getDestroyingUses() const { return destroyingUses; }
private:
struct OperandToUser;
public:
using DestroyingInstsRange =
TransformRange<ArrayRef<Operand *>, OperandToUser>;
DestroyingInstsRange getDestroyingInsts() const;
using ConsumingInstsRange =
TransformRange<ArrayRef<Operand *>, OperandToUser>;
ConsumingInstsRange getAllConsumingInsts() const;
/// If this LiveRange has a single destroying use, return that use. Otherwise,
/// return nullptr.
Operand *getSingleDestroyingUse() const {
if (destroyingUses.size() != 1) {
return nullptr;
}
return destroyingUses.front();
}
/// If this LiveRange has a single unknown destroying use, return that
/// use. Otherwise, return nullptr.
Operand *getSingleUnknownConsumingUse() const {
if (unknownConsumingUses.size() != 1) {
return nullptr;
}
return unknownConsumingUses.front();
}
OwnedValueIntroducer getIntroducer() const { return introducer; }
ArrayRef<Operand *> getOwnershipForwardingUses() const {
return ownershipForwardingUses;
}
void convertOwnedGeneralForwardingUsesToGuaranteed() &&;
/// A consuming operation that:
///
/// 1. If \p insertEndBorrows is true inserts end borrows at all
/// destroying insts locations.
///
/// 2. Deletes all destroy_values.
///
/// 3. RAUW value with newGuaranteedValue.
///
/// 4. Convert all of the general forwarding instructions from
/// @owned -> @guaranteed. "Like Dominoes".
///
/// 5. Leaves all of the unknown consuming users alone. It is up to
/// the caller to handle converting their ownership.
void convertToGuaranteedAndRAUW(SILValue newGuaranteedValue,
InstModCallbacks callbacks) &&;
/// A consuming operation that in order:
///
/// 1. Converts the phi argument to be guaranteed via setOwnership.
///
/// 2. If this consumes a borrow, insert end_borrows at the relevant
/// destroy_values.
///
/// 3. Deletes all destroy_values.
///
/// 4. Converts all of the general forwarding instructions from @owned ->
/// @guaranteed. "Like Dominoes".
///
/// NOTE: This leaves all of the unknown consuming users alone. It is up to
/// the caller to handle converting their ownership.
///
/// NOTE: This routine leaves inserting begin_borrows for the incoming values
/// to the caller since those are not part of the LiveRange itself.
void convertJoinedLiveRangePhiToGuaranteed(
DeadEndBlocks &deadEndBlocks, ValueLifetimeAnalysis::Frontier &scratch,
InstModCallbacks callbacks) &&;
/// Given a new guaranteed value, insert end_borrow for the newGuaranteedValue
/// at all of our destroy_values in prepration for converting from owned to
/// guaranteed.
///
/// This is used when converting load [copy] -> load_borrow.
void insertEndBorrowsAtDestroys(SILValue newGuaranteedValue,
DeadEndBlocks &deadEndBlocks,
ValueLifetimeAnalysis::Frontier &scratch);
};
struct OwnershipLiveRange::OperandToUser {
OperandToUser() {}
SILInstruction *operator()(const Operand *use) const {
auto *nonConstUse = const_cast<Operand *>(use);
return nonConstUse->getUser();
}
};
} // namespace semanticarc
} // namespace swift
#endif // SWIFT_SILOPTIMIZER_SEMANTICARC_OWNERSHIPLIVERANGE_H
| C | 4 | gandhi56/swift | lib/SILOptimizer/SemanticARC/OwnershipLiveRange.h | [
"Apache-2.0"
] |
;/********s* CampTent/CampTentEx
* SCRIPTNAME
*/;
scriptname CampTentEx extends CampTent
;/*
* OVERVIEW
* This script is an expanded version of CampTent, and includes a larger number of optional properties
* in order to create more elaborate tents. CampTentEx includes support for up to 3 follower bed rolls,
* 2 additional lanterns, new clutter options, and more.
;*********/;
import _CampInternal
; OPTIONAL PROPERTIES
;/********p* CampTentEx/TentAsset_ClutterActivator1
* SYNTAX
*/;
Activator property TentAsset_ClutterActivator1 auto
{
* DESCRIPTION
* Optional: An activator to place in or around the tent. }
;*********/;
;/********p* CampTentEx/TentAsset_ClutterActivator2
* SYNTAX
*/;
Activator property TentAsset_ClutterActivator2 auto
{
* DESCRIPTION
* Optional: An activator to place in or around the tent. }
;*********/;
;/********p* CampTentEx/TentAsset_ClutterActivator3
* SYNTAX
*/;
Activator property TentAsset_ClutterActivator3 auto
{
* DESCRIPTION
* Optional: An activator to place in or around the tent. }
;*********/;
;/********p* CampTentEx/TentAsset_ClutterActivator4
* SYNTAX
*/;
Activator property TentAsset_ClutterActivator4 auto
{
* DESCRIPTION
* Optional: An activator to place in or around the tent. }
;*********/;
;/********p* CampTentEx/TentAsset_ClutterActivator5
* SYNTAX
*/;
Activator property TentAsset_ClutterActivator5 auto
{
* DESCRIPTION
* Optional: An activator to place in or around the tent. }
;*********/;
;/********p* CampTentEx/TentAsset_ClutterFurniture1
* SYNTAX
*/;
Furniture property TentAsset_ClutterFurniture1 auto
{
* DESCRIPTION
* Optional: A furniture object to place in or around the tent. }
;*********/;
;/********p* CampTentEx/TentAsset_ClutterFurniture2
* SYNTAX
*/;
Furniture property TentAsset_ClutterFurniture2 auto
{
* DESCRIPTION
* Optional: A furniture object to place in or around the tent. }
;*********/;
;/********p* CampTentEx/TentAsset_ClutterFurniture3
* SYNTAX
*/;
Furniture property TentAsset_ClutterFurniture3 auto
{
* DESCRIPTION
* Optional: A furniture object to place in or around the tent. }
;*********/;
;/********p* CampTentEx/TentAsset_ClutterFurniture4
* SYNTAX
*/;
Furniture property TentAsset_ClutterFurniture4 auto
{
* DESCRIPTION
* Optional: A furniture object to place in or around the tent. }
;*********/;
;/********p* CampTentEx/TentAsset_ClutterFurniture5
* SYNTAX
*/;
Furniture property TentAsset_ClutterFurniture5 auto
{
* DESCRIPTION
* Optional: A furniture object to place in or around the tent. }
;*********/;
;/********p* CampTentEx/PositionRef_Lantern2
* SYNTAX
*/;
ObjectReference property PositionRef_Lantern2 auto
{
* DESCRIPTION
* Optional: The second lantern's position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Lantern3
* SYNTAX
*/;
ObjectReference property PositionRef_Lantern3 auto
{
* DESCRIPTION
* Optional: The third lantern's position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_ClutterActivator1
* SYNTAX
*/;
ObjectReference property PositionRef_ClutterActivator1 auto
{
* DESCRIPTION
* Optional: Clutter position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_ClutterActivator2
* SYNTAX
*/;
ObjectReference property PositionRef_ClutterActivator2 auto
{
* DESCRIPTION
* Optional: Clutter position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_ClutterActivator3
* SYNTAX
*/;
ObjectReference property PositionRef_ClutterActivator3 auto
{
* DESCRIPTION
* Optional: Clutter position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_ClutterActivator4
* SYNTAX
*/;
ObjectReference property PositionRef_ClutterActivator4 auto
{
* DESCRIPTION
* Optional: Clutter position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_ClutterActivator5
* SYNTAX
*/;
ObjectReference property PositionRef_ClutterActivator5 auto
{
* DESCRIPTION
* Optional: Clutter position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_ClutterFurniture1
* SYNTAX
*/;
ObjectReference property PositionRef_ClutterFurniture1 auto
{
* DESCRIPTION
* Optional: Clutter position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_ClutterFurniture2
* SYNTAX
*/;
ObjectReference property PositionRef_ClutterFurniture2 auto
{
* DESCRIPTION
* Optional: Clutter position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_ClutterFurniture3
* SYNTAX
*/;
ObjectReference property PositionRef_ClutterFurniture3 auto
{
* DESCRIPTION
* Optional: Clutter position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_ClutterFurniture4
* SYNTAX
*/;
ObjectReference property PositionRef_ClutterFurniture4 auto
{
* DESCRIPTION
* Optional: Clutter position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_ClutterFurniture5
* SYNTAX
*/;
ObjectReference property PositionRef_ClutterFurniture5 auto
{
* DESCRIPTION
* Optional: Clutter position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower1_Bed
* SYNTAX
*/;
ObjectReference property PositionRef_Follower1_Bed auto
{
* DESCRIPTION
* Optional: The first follower's bed furniture position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower1_Shield
* SYNTAX
*/;
ObjectReference property PositionRef_Follower1_Shield auto
{
* DESCRIPTION
* Optional: The first follower's shield position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower1_WeaponMainHand
* SYNTAX
*/;
ObjectReference property PositionRef_Follower1_WeaponMainHand auto
{
* DESCRIPTION
* Optional: The first follower's main hand weapon position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower1_WeaponOffHand
* SYNTAX
*/;
ObjectReference property PositionRef_Follower1_WeaponOffHand auto
{
* DESCRIPTION
* Optional: The first follower's off hand weapon position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower1_WeaponTwoHand
* SYNTAX
*/;
ObjectReference property PositionRef_Follower1_WeaponTwoHand auto
{
* DESCRIPTION
* Optional: The first follower's two-handed weapon position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower1_WeaponBow
* SYNTAX
*/;
ObjectReference property PositionRef_Follower1_WeaponBow auto
{
* DESCRIPTION
* Optional: The first follower's bow position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower2_Bed
* SYNTAX
*/;
ObjectReference property PositionRef_Follower2_Bed auto
{
* DESCRIPTION
* Optional: The second follower's bed furniture position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower2_Shield
* SYNTAX
*/;
ObjectReference property PositionRef_Follower2_Shield auto
{
* DESCRIPTION
* Optional: The second follower's shield position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower2_WeaponMainHand
* SYNTAX
*/;
ObjectReference property PositionRef_Follower2_WeaponMainHand auto
{
* DESCRIPTION
* Optional: The second follower's main hand weapon position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower2_WeaponOffHand
* SYNTAX
*/;
ObjectReference property PositionRef_Follower2_WeaponOffHand auto
{
* DESCRIPTION
* Optional: The second follower's off hand weapon position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower2_WeaponTwoHand
* SYNTAX
*/;
ObjectReference property PositionRef_Follower2_WeaponTwoHand auto
{
* DESCRIPTION
* Optional: The second follower's two-handed weapon position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower2_WeaponBow
* SYNTAX
*/;
ObjectReference property PositionRef_Follower2_WeaponBow auto
{
* DESCRIPTION
* Optional: The second follower's bow position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower3_Bed
* SYNTAX
*/;
ObjectReference property PositionRef_Follower3_Bed auto
{
* DESCRIPTION
* Optional: The third follower's bed furniture position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower3_Shield
* SYNTAX
*/;
ObjectReference property PositionRef_Follower3_Shield auto
{
* DESCRIPTION
* Optional: The third follower's shield position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower3_WeaponMainHand
* SYNTAX
*/;
ObjectReference property PositionRef_Follower3_WeaponMainHand auto
{
* DESCRIPTION
* Optional: The third follower's main hand weapon position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower3_WeaponOffHand
* SYNTAX
*/;
ObjectReference property PositionRef_Follower3_WeaponOffHand auto
{
* DESCRIPTION
* Optional: The third follower's off hand weapon position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower3_WeaponTwoHand
* SYNTAX
*/;
ObjectReference property PositionRef_Follower3_WeaponTwoHand auto
{
* DESCRIPTION
* Optional: The third follower's two-handed weapon position reference. }
;*********/;
;/********p* CampTentEx/PositionRef_Follower3_WeaponBow
* SYNTAX
*/;
ObjectReference property PositionRef_Follower3_WeaponBow auto
{
* DESCRIPTION
* Optional: The third follower's bow position reference. }
;*********/;
function TakeDown()
CampDebug(0, self + " TakeDown (CampTentEx)")
parent.TakeDown()
endFunction | Papyrus | 5 | chesko256/Campfire | Scripts/Source/CampTentEx.psc | [
"MIT"
] |
much very i as 1 next i smaller 10 next bigify i
shh 1
wow
| Dogescript | 0 | joeratt/dogescript | test/spec/operators/bigify/control/much/step/pre/source.djs | [
"MIT"
] |
//===--- FunctionReplacement.cpp ------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2021 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
#include "swift/Runtime/FunctionReplacement.h"
#include "SwiftTLSContext.h"
using namespace swift;
using namespace swift::runtime;
char *swift::swift_getFunctionReplacement(char **ReplFnPtr, char *CurrFn) {
char *ReplFn = *ReplFnPtr;
char *RawReplFn = ReplFn;
#if SWIFT_PTRAUTH
RawReplFn = ptrauth_strip(RawReplFn, ptrauth_key_function_pointer);
#endif
if (RawReplFn == CurrFn)
return nullptr;
auto &ctx = SwiftTLSContext::get();
if (ctx.CallOriginalOfReplacedFunction) {
ctx.CallOriginalOfReplacedFunction = false;
return nullptr;
}
return ReplFn;
}
char *swift::swift_getOrigOfReplaceable(char **OrigFnPtr) {
char *OrigFn = *OrigFnPtr;
SwiftTLSContext::get().CallOriginalOfReplacedFunction = true;
return OrigFn;
}
| C++ | 4 | gandhi56/swift | stdlib/public/runtime/FunctionReplacement.cpp | [
"Apache-2.0"
] |
#*****************************************************************************
# *
# Make file for VMS *
# Author : J.Jansen (joukj@hrem.stm.tudelft.nl) *
# Date : 9 November 1999 *
# *
#*****************************************************************************
.first
define wx [--.include.wx]
.ifdef __WXMOTIF__
CXX_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)\
/assume=(nostdnew,noglobal_array_new)
CC_DEFINE = /define=(__WXMOTIF__=1)/name=(as_is,short)
.else
.ifdef __WXGTK__
CXX_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm\
/assume=(nostdnew,noglobal_array_new)
CC_DEFINE = /define=(__WXGTK__=1)/float=ieee/name=(as_is,short)/ieee=denorm
.else
.ifdef __WXX11__
CXX_DEFINE = /define=(__WXX11__=1,__WXUNIVERSAL__==1)/float=ieee\
/name=(as_is,short)/assume=(nostdnew,noglobal_array_new)
CC_DEFINE = /define=(__WXX11__=1,__WXUNIVERSAL__==1)/float=ieee\
/name=(as_is,short)
.else
CXX_DEFINE =
CC_DEFINE =
.endif
.endif
.endif
.suffixes : .cpp
.cpp.obj :
cxx $(CXXFLAGS)$(CXX_DEFINE) $(MMS$TARGET_NAME).cpp
.c.obj :
cc $(CFLAGS)$(CC_DEFINE) $(MMS$TARGET_NAME).c
OBJECTS = \
busyinfo.obj,\
calctrl.obj,\
caret.obj,\
choicdgg.obj,\
colrdlgg.obj,\
datectlg.obj,\
dcpsg.obj,\
dirctrlg.obj,\
dirdlgg.obj,\
fdrepdlg.obj,\
fontdlgg.obj,\
grid.obj,\
gridctrl.obj,\
gridsel.obj,\
helpext.obj,\
imaglist.obj,\
laywin.obj,\
listctrl.obj,\
logg.obj,\
msgdlgg.obj,\
numdlgg.obj,\
panelg.obj,\
printps.obj,\
prntdlgg.obj,\
propdlg.obj,\
progdlgg.obj,\
renderg.obj,\
sashwin.obj,\
selstore.obj,\
splitter.obj,\
tabg.obj,\
textdlgg.obj,\
tipdlg.obj,\
tipwin.obj,\
treectlg.obj,\
wizard.obj
SOURCES = \
accel.cpp,\
busyinfo.cpp,\
calctrl.cpp,\
caret.cpp,\
choicdgg.cpp,\
colrdlgg.cpp,\
datectlg.cpp,\
dcpsg.cpp,\
dirctrlg.cpp,\
dirdlgg.cpp,\
filedlgg.cpp,\
fdrepdlg.cpp,\
fontdlgg.cpp,\
grid.cpp,\
gridctrl.cpp,\
gridsel.cpp,\
helpext.cpp,\
imaglist.cpp,\
laywin.cpp,\
listctrl.cpp,\
logg.cpp,\
msgdlgg.cpp,\
notebook.cpp,\
numdlgg.cpp,\
paletteg.cpp,\
panelg.cpp,\
printps.cpp,\
prntdlgg.cpp,\
propdlg.cpp,\
progdlgg.cpp,\
renderg.cpp,\
sashwin.cpp,\
selstore.cpp,\
splitter.cpp,\
statline.cpp,\
statusbr.cpp,\
tabg.cpp,\
textdlgg.cpp,\
tipdlg.cpp,\
tipwin.cpp,\
treectlg.cpp,\
wizard.cpp,\
dragimgg.cpp,\
fdrepdlg.cpp,\
htmllbox.cpp,\
listbkg.cpp,\
mdig.cpp,\
scrlwing.cpp,\
spinctlg.cpp,\
splash.cpp,\
timer.cpp,\
vlbox.cpp,\
vscroll.cpp
.ifdef __WXMOTIF__
OBJECTS0=,statusbr.obj,statline.obj,notebook.obj,scrlwing.obj,spinctlg.obj
.else
.ifdef __WXX11__
OBJECTS0=,accel.obj,filedlgg.obj,dragimgg.obj,fdrepdlg.obj,htmllbox.obj,\
listbkg.obj,mdig.obj,scrlwing.obj,spinctlg.obj,splash.obj,timer.obj,\
vlbox.obj,vscroll.obj
.else
OBJECTS0=,accel.obj,statusbr.obj,filedlgg.obj,paletteg.obj
.endif
.endif
all : $(SOURCES)
$(MMS)$(MMSQUALIFIERS) $(OBJECTS)$(OBJECTS0)
.ifdef __WXMOTIF__
library/crea [--.lib]libwx_motif.olb $(OBJECTS)$(OBJECTS0)
.else
.ifdef __WXGTK__
library/crea [--.lib]libwx_gtk.olb $(OBJECTS)$(OBJECTS0)
.else
.ifdef __WXX11__
library/crea [--.lib]libwx_x11_univ.olb $(OBJECTS)$(OBJECTS0)
.endif
.endif
.endif
accel.obj : accel.cpp
busyinfo.obj : busyinfo.cpp
calctrl.obj : calctrl.cpp
caret.obj : caret.cpp
choicdgg.obj : choicdgg.cpp
colrdlgg.obj : colrdlgg.cpp
datectlg.obj : datectlg.cpp
dcpsg.obj : dcpsg.cpp
dirctrlg.obj : dirctrlg.cpp
dirdlgg.obj : dirdlgg.cpp
filedlgg.obj : filedlgg.cpp
fontdlgg.obj : fontdlgg.cpp
fdrepdlg.obj : fdrepdlg.cpp
grid.obj : grid.cpp
gridctrl.obj : gridctrl.cpp
gridsel.obj : gridsel.cpp
helpext.obj : helpext.cpp
imaglist.obj : imaglist.cpp
laywin.obj : laywin.cpp
listctrl.obj : listctrl.cpp
logg.obj : logg.cpp
msgdlgg.obj : msgdlgg.cpp
notebook.obj : notebook.cpp
numdlgg.obj : numdlgg.cpp
paletteg.obj : paletteg.cpp
panelg.obj : panelg.cpp
printps.obj : printps.cpp
prntdlgg.obj : prntdlgg.cpp
progdlgg.obj : progdlgg.cpp
propdlg.obj : propdlg.cpp
scrlwing.obj : scrlwing.cpp
spinctlg.obj : spinctlg.cpp
renderg.obj : renderg.cpp
sashwin.obj : sashwin.cpp
selstore.obj : selstore.cpp
splitter.obj : splitter.cpp
statline.obj : statline.cpp
statusbr.obj : statusbr.cpp
tabg.obj : tabg.cpp
textdlgg.obj : textdlgg.cpp
tipdlg.obj : tipdlg.cpp
tipwin.obj : tipwin.cpp
treectlg.obj : treectlg.cpp
wizard.obj : wizard.cpp
dragimgg.obj : dragimgg.cpp
fdrepdlg.obj : fdrepdlg.cpp
htmllbox.obj : htmllbox.cpp
listbkg.obj : listbkg.cpp
mdig.obj : mdig.cpp
scrlwing.obj : scrlwing.cpp
spinctlg.obj : spinctlg.cpp
splash.obj : splash.cpp
timer.obj : timer.cpp
vlbox.obj : vlbox.cpp
vscroll.obj : vscroll.cpp
| Module Management System | 3 | Bloodknight/NeuTorsion | code/wxWidgets/src/generic/descrip.mms | [
"MIT"
] |
module ciena-waveserver-software {
namespace "urn:ciena:params:xml:ns:yang:ciena-ws:ciena-waveserver-software";
prefix software;
import ciena-waveserver-typedefs {
prefix cienawstypes;
}
organization
"Ciena Corporation";
contact
"Web URL: http://www.ciena.com/
Postal: 7035 Ridge Road
Hanover, Maryland 21076
U.S.A.
Phone: +1 800-921-1144
Fax: +1 410-694-5750";
description
"This module defines Software Status and Upgrade support for Ciena's Waveserver Platform.";
revision 2017-12-07 {
description
"Added support for multi-step upgrade RPCs for 'download', 'activate', and 'commit'.
Added 'upgrade-log' attribute support.";
reference "Waveserver Ai user's guide.";
}
revision 2017-09-07 {
description
"Waveserver Platform Data Model
Migrated from Waveserver Classic R1.4 YANG model.
Updated namespace to 'ciena-waveserver'.
Updated 'software-op-state' and 'upgrade-op-state' enum values.
Removed several unsupported attributes/containers/RPCs.
Added WCS and Module status containers/attributes.
Moved some common attributes into groupings.";
reference "Waveserver Ai user's guide.";
}
grouping software-device-status-group {
description
"Grouping for WCS and Module software status attributes.";
leaf boot-zone {
type boot-zone;
description
"The boot zone for the specified device.";
}
leaf last-restart {
type cienawstypes:string-maxl-32;
description
"The date and time of last restart in the format of a human readable string. e.g 'Wed Jun 30 21:49:08 2015'";
}
leaf last-restart-reason {
type cienawstypes:restart-reason;
description
"Cause for the last restart.";
}
leaf boot-image-a {
type cienawstypes:string-maxl-64;
description
"The boot image or firmware image name for zone A.";
}
leaf boot-image-b {
type cienawstypes:string-maxl-64;
description
"The boot image or firmware image name for zone B.";
}
}
grouping software-release-group {
description
"Grouping for active and installed software release attributes.";
leaf version {
type cienawstypes:string-maxl-32;
description
"The software release version.";
}
leaf build-number {
type cienawstypes:string-maxl-32;
description
"The software release build number.";
}
leaf build-tag {
type cienawstypes:string-maxl-32;
description
"The software release build tag.";
}
leaf build-date {
type cienawstypes:string-maxl-32;
description
"The software release build date.";
}
}
typedef software-rtncode {
type uint32;
description
"Return code value used in the software module. 0 indicate success. None-zero indicate failure.";
}
typedef software-op-state {
type enumeration {
enum "unknown" {
description
"Software operational state is unknown.";
}
enum "normal" {
description
"Software operational state is normal.";
}
enum "upgrade-in-progress" {
description
"Software upgrade is in progress.";
}
enum "automatic-upgrade-in-progress" {
description
"Automatic software upgrade is in progress.";
}
enum "restart-in-progress" {
description
"System restart is in progress. WCS is initializing but not yet in 'boot-complete' state.";
}
enum "module-restart-in-progress" {
description
"One or more modules is initializing and has not yet reached run-mode 'run' state.";
}
enum "application-failed" {
description
"One or more required applications is not running.";
}
}
description
"Software operational state.";
}
typedef upgrade-op-state {
type enumeration {
enum "unknown" {
description
"Upgrade operational state is unknown.";
}
enum "idle" {
description
"Software upgrade is idle.";
}
enum "download-in-progress" {
description
"Software download is in progress.";
}
enum "download-complete" {
description
"Software download is complete.";
}
enum "download-failed" {
description
"Software download failed.";
}
enum "activation-in-progress" {
description
"Software activation is in progress.";
}
enum "activation-complete" {
description
"Software activation is complete.";
}
enum "activation-failed" {
description
"Software activation failed.";
}
enum "installation-in-progress" {
description
"Software installation is in progress.";
}
enum "installation-failed" {
description
"Software installation failed.";
}
enum "commit-in-progress" {
description
"Software commit is in progress.";
}
enum "commit-failed" {
description
"Software commit failed.";
}
enum "cancel-in-progress" {
description
"Software cancel operation is in progress.";
}
enum "cancel-failed" {
description
"Software cancel operation failed.";
}
enum "delete-in-progress" {
description
"Software delete operation is in progress.";
}
enum "delete-failed" {
description
"Software delete operation failed.";
}
enum "automatic-upgrade-in-progress" {
description
"Automatic software upgrade is in progress.";
}
enum "automatic-upgrade-failed" {
description
"Automatic software upgrade failed.";
}
enum "module-cold-restart-required" {
description
"A cold restart is required on one or more modules.";
}
}
description
"Software upgrade operational state.";
}
typedef boot-zone {
type enumeration {
enum "unknown" {
description
"Boot zone is unknown.";
}
enum "a" {
description
"Boot zone A.";
}
enum "b" {
description
"Boot zone B.";
}
}
description
"The boot zone type.";
}
container waveserver-software {
config false;
description
"Waveserver software upgrade and load management.";
container status {
description
"Waveserver software status information.";
leaf software-operational-state {
type software-op-state;
description
"The current software operational state.";
}
leaf upgrade-operational-state {
type upgrade-op-state;
description
"The current upgrade operational state.";
}
leaf committed-version {
type cienawstypes:string-maxl-64;
description
"The committed software release version.";
}
leaf active-version {
type cienawstypes:string-maxl-64;
description
"The active software release version.";
}
leaf upgrade-to-version {
type cienawstypes:string-maxl-64;
description
"The software release version currently being upgraded to, if applicable.";
}
leaf last-operation {
type cienawstypes:string-maxl-128;
description
"The software upgrade last operation.";
}
leaf upgrade-log {
type cienawstypes:string-maxl-128;
description
"The software upgrade log file URI on the Waveserver.";
}
}
container wcs-status {
description
"Software status information for the Waveserver Control Subsystem control module.";
leaf boot-image-version {
type cienawstypes:string-maxl-32;
description
"The current boot image version for the WCS.";
}
leaf fpga-id {
type cienawstypes:string-maxl-64;
description
"The current FPGA image identifier for the WCS.";
}
uses software-device-status-group;
}
container module-status {
description
"Module software status information.";
list module {
key "module-id";
description
"List containing module-specific software status information.";
leaf module-id {
type cienawstypes:name-string;
mandatory true;
description
"Unique access identifier string of the Module, which may just be a slot number (e.g. '1'). Key value for the Module list. Read-only attribute.";
}
uses software-device-status-group;
}
}
container active {
description
"Waveserver active software information.";
uses software-release-group;
}
container installed {
description
"Waveserver installed software release information.";
list versions {
key "index";
description
"A list of installed software releases on this Waveserver.";
leaf index {
type uint8;
description
"Unique id, read-only attribute.";
}
uses software-release-group;
}
}
}
rpc waveserver-software-install {
description
"Perform one-step software upgrade (download, activate, and commit) via url string.";
input {
leaf url {
type cienawstypes:string-maxl-254;
mandatory true;
description
"The URL specifying the remote location and package name to be installed. Example format is 'scp://<uid>:<pwd>@<ip-address>/<path>/<filename>'.";
}
}
output {
leaf return-code {
type software-rtncode;
description
"return code: 0 is success; non-zero is failure";
}
leaf return-string {
type cienawstypes:string-maxl-254;
description
"Return code description";
}
}
}
rpc waveserver-software-download {
description
"Download software load via url string.";
input {
leaf url {
type cienawstypes:string-maxl-254;
mandatory true;
description
"The URL specifying the remote location and package name to be installed. Example format is 'scp://<uid>:<pwd>@<ip-address>/<path>/<filename>'.";
}
}
output {
leaf return-code {
type software-rtncode;
description
"return code: 0 is success; non-zero is failure";
}
leaf return-string {
type cienawstypes:string-maxl-254;
description
"Return code description";
}
}
}
rpc waveserver-software-activate {
description
"Perform software activate via version string.";
input {
leaf version {
type cienawstypes:string-maxl-32;
mandatory true;
description
"The load version string.";
}
leaf auto-commit {
type boolean;
default "false";
description
"Optionally specify that the software load be automatically committed after activation.";
}
}
output {
leaf return-code {
type software-rtncode;
description
"return code: 0 is success; non-zero is failure";
}
leaf return-string {
type cienawstypes:string-maxl-254;
description
"Return code description";
}
}
}
rpc waveserver-software-delete {
description
"Perform software delete via version string.";
input {
leaf version {
type cienawstypes:string-maxl-32;
mandatory true;
description
"The load version string.";
}
}
output {
leaf return-code {
type software-rtncode;
description
"return code: 0 is success; non-zero is failure";
}
leaf return-string {
type cienawstypes:string-maxl-254;
description
"Return code description";
}
}
}
rpc waveserver-software-commit {
description
"Perform software commit operation in the current load has not been committed and it is in boot completion state.";
output {
leaf return-code {
type software-rtncode;
description
"return code: 0 is success; non-zero is failure";
}
leaf return-string {
type cienawstypes:string-maxl-254;
description
"Return code description";
}
}
}
rpc waveserver-software-cancel {
description
"Cancel an existing software upgrade operation that is in a failed state.";
output {
leaf return-code {
type software-rtncode;
description
"return code: 0 is success; non-zero is failure";
}
leaf return-string {
type cienawstypes:string-maxl-254;
description
"Return code description";
}
}
}
}
| YANG | 5 | Shinkirou/onos | models/ciena/waveserverai/src/main/yang/ciena-waveserver-software@2017-12-07.yang | [
"Apache-2.0"
] |
theme.example2=test-message2
| INI | 0 | nicchagil/spring-framework | spring-webmvc/src/test/resources/org/springframework/web/context/WEB-INF/test-theme.properties | [
"Apache-2.0"
] |
// Copyright 2010-2014 RethinkDB, all rights reserved.
#ifndef BUFFER_CACHE_STATS_HPP_
#define BUFFER_CACHE_STATS_HPP_
#include "perfmon/perfmon.hpp"
#include "buffer_cache/page_cache.hpp"
class alt_cache_stats_t : public home_thread_mixin_t {
public:
explicit alt_cache_stats_t(alt::page_cache_t *_page_cache,
perfmon_collection_t *parent);
alt::page_cache_t *page_cache;
perfmon_collection_t cache_collection;
perfmon_membership_t cache_membership;
class perfmon_value_t : public perfmon_t {
public:
explicit perfmon_value_t(alt_cache_stats_t *_parent);
void *begin_stats();
void visit_stats(void *);
ql::datum_t end_stats(void *);
private:
alt_cache_stats_t *parent;
DISABLE_COPYING(perfmon_value_t);
};
perfmon_value_t in_use_bytes;
perfmon_membership_t in_use_bytes_membership;
perfmon_multi_membership_t cache_collection_membership;
};
#endif // BUFFER_CACHE_STATS_HPP_
| C++ | 4 | zadcha/rethinkdb | src/buffer_cache/stats.hpp | [
"Apache-2.0"
] |
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
<meta name="layout" content="base"/>
%{--
- Copyright 2016 SimplifyOps, Inc. (http://simplifyops.com)
-
- Licensed under the Apache License, Version 2.0 (the "License");
- you may not use this file except in compliance with the License.
- You may obtain a copy of the License at
-
- http://www.apache.org/licenses/LICENSE-2.0
-
- Unless required by applicable law or agreed to in writing, software
- distributed under the License is distributed on an "AS IS" BASIS,
- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- See the License for the specific language governing permissions and
- limitations under the License.
--}%
<g:set var="pageTitle" value="${flash.title ?: request.title ?: request.titleCode ? g.message(code: request.titleCode) :
g.message(code: 'request.error.title')}"/>
<title><g:enc>${pageTitle}</g:enc></title>
</head>
<body>
<div class="row row-space">
<div class="col-sm-6 col-sm-offset-3">
<div class="panel panel-default">
<div class="panel-heading">
<h2 class="panel-title "><g:enc>${pageTitle}</g:enc></h2>
</div>
<div class="panel-body text-danger">
<g:render template="/common/messagesText"/>
</div>
</div>
</div>
</div>
</body>
</html>
| Groovy Server Pages | 3 | kbens/rundeck | rundeckapp/grails-app/views/common/error.gsp | [
"Apache-2.0"
] |
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Error page</title>
</head>
<body>
<h2>Error: Page not found</h2>
<a href="./">Go back home</a>
</body>
</html> | HTML | 3 | zeesh49/tutorials | javax-servlets/src/main/webapp/error-404.html | [
"MIT"
] |
package foo
inline fun a(): Int = 2 | Groff | 1 | qussarah/declare | jps-plugin/testData/incremental/changeIncrementalOption/incrementalOffOn/module2_a.kt.new.2 | [
"Apache-2.0"
] |
<h4>Hi {{name}}!</h4> | HTML | 1 | DBatOWL/tutorials | libraries-2/src/test/resources/handlebars/header.html | [
"MIT"
] |
= Require multifactor authentication after login
You may want to require multifactor authentication on login for people
that have multifactor authentication set up. The +require_authentication+
Rodauth method works for pages that require an authenticated user, but not for
pages where authentication is optional.
You can set this up as follows:
plugin :rodauth do
enable :login, :logout, :otp
# If you don't want to show an error message when redirecting
# to the multifactor authentication page.
two_factor_need_authentication_error_flash nil
# Display the same flash message after multifactor
# authentication than is displayed after login
two_factor_auth_notice_flash { login_notice_flash }
end
route do |r|
r.rodauth
if rodauth.logged_in? && rodauth.two_factor_authentication_setup?
rodauth.require_two_factor_authenticated
end
# ...
end
| RDoc | 4 | dmitryzuev/rodauth | doc/guides/require_mfa.rdoc | [
"MIT"
] |
package jadx.tests.integration.loops;
import org.junit.jupiter.api.Test;
import jadx.tests.api.SmaliTest;
import static jadx.tests.api.utils.assertj.JadxAssertions.assertThat;
public class TestLoopRestore extends SmaliTest {
@Test
public void test() {
assertThat(getClassNodeFromSmali())
.code()
.containsOne("try {")
.containsOne("for (byte b : digest) {");
}
}
| Java | 3 | Dev-kishan1999/jadx | jadx-core/src/test/java/jadx/tests/integration/loops/TestLoopRestore.java | [
"Apache-2.0"
] |
/* see cached/absolute.css and absolute_root.css */
| CSS | 0 | jpmallarino/django | tests/staticfiles_tests/project/documents/styles_root.css | [
"BSD-3-Clause",
"0BSD"
] |
"""
BCE0004-3.boo(23,30): BCE0004: Ambiguous reference 'UnresolvableNullAmbiguity': Foo.UnresolvableNullAmbiguity(DerivedInternalClass), Foo.UnresolvableNullAmbiguity(InternalClass).
BCE0004-3.boo(24,38): BCE0004: Ambiguous reference 'UnresolvableNullAmbiguityExternal': Foo.UnresolvableNullAmbiguityExternal(System.ArgumentException), Foo.UnresolvableNullAmbiguityExternal(System.Exception).
"""
class InternalClass:
pass
class DerivedInternalClass (InternalClass):
pass
class Foo:
def UnresolvableNullAmbiguity(x as InternalClass):
pass
def UnresolvableNullAmbiguity(x as DerivedInternalClass):
pass
def UnresolvableNullAmbiguityExternal(x as System.Exception):
pass
def UnresolvableNullAmbiguityExternal(x as System.ArgumentException):
pass
Foo.UnresolvableNullAmbiguity(null) #!
Foo.UnresolvableNullAmbiguityExternal(null) #!
| Boo | 3 | popcatalin81/boo | tests/testcases/errors/BCE0004-3.boo | [
"BSD-3-Clause"
] |
// This benchmark is based on the minimal-json Java library maintained at:
// https://github.com/ralfstx/minimal-json
//
// Original copyright information:
//
// Copyright (c) 2013, 2014 EclipseSource
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
// furnished to do so, subject to the following conditions:
//
// The above copyright notice and this permission notice shall be included in all
// copies or substantial portions of the Software.
//
// THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
// SOFTWARE.
//
//
// Adapted for Grace by Richard Roberts
// 2018, June
//
import "harness" as harness
import "Core" as core
def Array: List = platform.kernel.Array
def Exception: Unknown = platform.kernel.Exception
type JsonValue = interface {
isObject
isArray
isNumber
isString
isBoolean
isTrue
isFalse
isNull
asObject
asArray
}
type JsonLiteral = JsonValue & interface {
value
}
type JsonArray = JsonValue & interface {
values
add(value)
size
at(index)
}
type JsonNumber = JsonValue & interface {
string
}
type JsonObject = JsonValue & interface {
names
values
table
add (name) with (aJsonValue)
at (name)
size
isEmpty
indexOf (name)
}
type JsonString = JsonValue & interface {
string
}
def NULL: JsonLiteral = newJsonLiteral("null")
def TRUE: JsonLiteral = newJsonLiteral("true")
def FALSE: JsonLiteral = newJsonLiteral("false")
class newJson -> Benchmark {
inherit harness.newBenchmark
method benchmark -> JsonObject {
return newJsonParserWith(RapBenchmarkMinified).parse
}
method verifyResult (result: JsonObject) -> Boolean {
result.isObject.ifFalse { return false }
result.asObject.at("head").isObject.ifFalse { return false }
result.asObject.at("operations").isArray.ifFalse { return false }
return result.asObject.at("operations").asArray.size == 156.asInteger
}
}
method RapBenchmarkMinified -> String {
return "\{\"head\":\{\"requestCounter\":4\},\"operations\":[[\"destroy\",\"w54\"],[\"set\",\"w2\",\{\"activeControl\":\"w99\"\}],[\"set\",\"w21\",\{\"customVariant\":\"variant_navigation\"\}],[\"set\",\"w28\",\{\"customVariant\":\"variant_selected\"\}],[\"set\",\"w53\",\{\"children\":[\"w95\"]\}],[\"create\",\"w95\",\"rwt.widgets.Composite\",\{\"parent\":\"w53\",\"style\":[\"NONE\"],\"bounds\":[0,0,1008,586],\"children\":[\"w96\",\"w97\"],\"tabIndex\":-1,\"clientArea\":[0,0,1008,586]\}],[\"create\",\"w96\",\"rwt.widgets.Label\",\{\"parent\":\"w95\",\"style\":[\"NONE\"],\"bounds\":[10,30,112,26],\"tabIndex\":-1,\"customVariant\":\"variant_pageHeadline\",\"text\":\"TableViewer\"\}],[\"create\",\"w97\",\"rwt.widgets.Composite\",\{\"parent\":\"w95\",\"style\":[\"NONE\"],\"bounds\":[0,61,1008,525],\"children\":[\"w98\",\"w99\",\"w226\",\"w228\"],\"tabIndex\":-1,\"clientArea\":[0,0,1008,525]\}],[\"create\",\"w98\",\"rwt.widgets.Text\",\{\"parent\":\"w97\",\"style\":[\"LEFT\",\"SINGLE\",\"BORDER\"],\"bounds\":[10,10,988,32],\"tabIndex\":22,\"activeKeys\":[\"#13\",\"#27\",\"#40\"]\}],[\"listen\",\"w98\",\{\"KeyDown\":true,\"Modify\":true\}],[\"create\",\"w99\",\"rwt.widgets.Grid\",\{\"parent\":\"w97\",\"style\":[\"SINGLE\",\"BORDER\"],\"appearance\":\"table\",\"indentionWidth\":0,\"treeColumn\":-1,\"markupEnabled\":false\}],[\"create\",\"w100\",\"rwt.widgets.ScrollBar\",\{\"parent\":\"w99\",\"style\":[\"HORIZONTAL\"]\}],[\"create\",\"w101\",\"rwt.widgets.ScrollBar\",\{\"parent\":\"w99\",\"style\":[\"VERTICAL\"]\}],[\"set\",\"w99\",\{\"bounds\":[10,52,988,402],\"children\":[],\"tabIndex\":23,\"activeKeys\":[\"CTRL+#70\",\"CTRL+#78\",\"CTRL+#82\",\"CTRL+#89\",\"CTRL+#83\",\"CTRL+#71\",\"CTRL+#69\"],\"cancelKeys\":[\"CTRL+#70\",\"CTRL+#78\",\"CTRL+#82\",\"CTRL+#89\",\"CTRL+#83\",\"CTRL+#71\",\"CTRL+#69\"]\}],[\"listen\",\"w99\",\{\"MouseDown\":true,\"MouseUp\":true,\"MouseDoubleClick\":true,\"KeyDown\":true\}],[\"set\",\"w99\",\{\"itemCount\":118,\"itemHeight\":28,\"itemMetrics\":[[0,0,50,3,0,3,44],[1,50,50,53,0,53,44],[2,100,140,103,0,103,134],[3,240,180,243,0,243,174],[4,420,50,423,0,423,44],[5,470,50,473,0,473,44]],\"columnCount\":6,\"headerHeight\":35,\"headerVisible\":true,\"linesVisible\":true,\"focusItem\":\"w108\",\"selection\":[\"w108\"]\}],[\"listen\",\"w99\",\{\"Selection\":true,\"DefaultSelection\":true\}],[\"set\",\"w99\",\{\"enableCellToolTip\":true\}],[\"listen\",\"w100\",\{\"Selection\":true\}],[\"set\",\"w101\",\{\"visibility\":true\}],[\"listen\",\"w101\",\{\"Selection\":true\}],[\"create\",\"w102\",\"rwt.widgets.GridColumn\",\{\"parent\":\"w99\",\"text\":\"Nr.\",\"width\":50,\"moveable\":true\}],[\"listen\",\"w102\",\{\"Selection\":true\}],[\"create\",\"w103\",\"rwt.widgets.GridColumn\",\{\"parent\":\"w99\",\"text\":\"Sym.\",\"index\":1,\"left\":50,\"width\":50,\"moveable\":true\}],[\"listen\",\"w103\",\{\"Selection\":true\}],[\"create\",\"w104\",\"rwt.widgets.GridColumn\",\{\"parent\":\"w99\",\"text\":\"Name\",\"index\":2,\"left\":100,\"width\":140,\"moveable\":true\}],[\"listen\",\"w104\",\{\"Selection\":true\}],[\"create\",\"w105\",\"rwt.widgets.GridColumn\",\{\"parent\":\"w99\",\"text\":\"Series\",\"index\":3,\"left\":240,\"width\":180,\"moveable\":true\}],[\"listen\",\"w105\",\{\"Selection\":true\}],[\"create\",\"w106\",\"rwt.widgets.GridColumn\",\{\"parent\":\"w99\",\"text\":\"Group\",\"index\":4,\"left\":420,\"width\":50,\"moveable\":true\}],[\"listen\",\"w106\",\{\"Selection\":true\}],[\"create\",\"w107\",\"rwt.widgets.GridColumn\",\{\"parent\":\"w99\",\"text\":\"Period\",\"index\":5,\"left\":470,\"width\":50,\"moveable\":true\}],[\"listen\",\"w107\",\{\"Selection\":true\}],[\"create\",\"w108\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":0,\"texts\":[\"1\",\"H\",\"Hydrogen\",\"Nonmetal\",\"1\",\"1\"],\"cellBackgrounds\":[null,null,null,[138,226,52,255],null,null]\}],[\"create\",\"w109\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":1,\"texts\":[\"2\",\"He\",\"Helium\",\"Noble gas\",\"18\",\"1\"],\"cellBackgrounds\":[null,null,null,[114,159,207,255],null,null]\}],[\"create\",\"w110\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":2,\"texts\":[\"3\",\"Li\",\"Lithium\",\"Alkali metal\",\"1\",\"2\"],\"cellBackgrounds\":[null,null,null,[239,41,41,255],null,null]\}],[\"create\",\"w111\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":3,\"texts\":[\"4\",\"Be\",\"Beryllium\",\"Alkaline earth metal\",\"2\",\"2\"],\"cellBackgrounds\":[null,null,null,[233,185,110,255],null,null]\}],[\"create\",\"w112\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":4,\"texts\":[\"5\",\"B\",\"Boron\",\"Metalloid\",\"13\",\"2\"],\"cellBackgrounds\":[null,null,null,[156,159,153,255],null,null]\}],[\"create\",\"w113\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":5,\"texts\":[\"6\",\"C\",\"Carbon\",\"Nonmetal\",\"14\",\"2\"],\"cellBackgrounds\":[null,null,null,[138,226,52,255],null,null]\}],[\"create\",\"w114\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":6,\"texts\":[\"7\",\"N\",\"Nitrogen\",\"Nonmetal\",\"15\",\"2\"],\"cellBackgrounds\":[null,null,null,[138,226,52,255],null,null]\}],[\"create\",\"w115\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":7,\"texts\":[\"8\",\"O\",\"Oxygen\",\"Nonmetal\",\"16\",\"2\"],\"cellBackgrounds\":[null,null,null,[138,226,52,255],null,null]\}],[\"create\",\"w116\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":8,\"texts\":[\"9\",\"F\",\"Fluorine\",\"Halogen\",\"17\",\"2\"],\"cellBackgrounds\":[null,null,null,[252,233,79,255],null,null]\}],[\"create\",\"w117\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":9,\"texts\":[\"10\",\"Ne\",\"Neon\",\"Noble gas\",\"18\",\"2\"],\"cellBackgrounds\":[null,null,null,[114,159,207,255],null,null]\}],[\"create\",\"w118\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":10,\"texts\":[\"11\",\"Na\",\"Sodium\",\"Alkali metal\",\"1\",\"3\"],\"cellBackgrounds\":[null,null,null,[239,41,41,255],null,null]\}],[\"create\",\"w119\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":11,\"texts\":[\"12\",\"Mg\",\"Magnesium\",\"Alkaline earth metal\",\"2\",\"3\"],\"cellBackgrounds\":[null,null,null,[233,185,110,255],null,null]\}],[\"create\",\"w120\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":12,\"texts\":[\"13\",\"Al\",\"Aluminium\",\"Poor metal\",\"13\",\"3\"],\"cellBackgrounds\":[null,null,null,[238,238,236,255],null,null]\}],[\"create\",\"w121\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":13,\"texts\":[\"14\",\"Si\",\"Silicon\",\"Metalloid\",\"14\",\"3\"],\"cellBackgrounds\":[null,null,null,[156,159,153,255],null,null]\}],[\"create\",\"w122\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":14,\"texts\":[\"15\",\"P\",\"Phosphorus\",\"Nonmetal\",\"15\",\"3\"],\"cellBackgrounds\":[null,null,null,[138,226,52,255],null,null]\}],[\"create\",\"w123\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":15,\"texts\":[\"16\",\"S\",\"Sulfur\",\"Nonmetal\",\"16\",\"3\"],\"cellBackgrounds\":[null,null,null,[138,226,52,255],null,null]\}],[\"create\",\"w124\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":16,\"texts\":[\"17\",\"Cl\",\"Chlorine\",\"Halogen\",\"17\",\"3\"],\"cellBackgrounds\":[null,null,null,[252,233,79,255],null,null]\}],[\"create\",\"w125\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":17,\"texts\":[\"18\",\"Ar\",\"Argon\",\"Noble gas\",\"18\",\"3\"],\"cellBackgrounds\":[null,null,null,[114,159,207,255],null,null]\}],[\"create\",\"w126\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":18,\"texts\":[\"19\",\"K\",\"Potassium\",\"Alkali metal\",\"1\",\"4\"],\"cellBackgrounds\":[null,null,null,[239,41,41,255],null,null]\}],[\"create\",\"w127\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":19,\"texts\":[\"20\",\"Ca\",\"Calcium\",\"Alkaline earth metal\",\"2\",\"4\"],\"cellBackgrounds\":[null,null,null,[233,185,110,255],null,null]\}],[\"create\",\"w128\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":20,\"texts\":[\"21\",\"Sc\",\"Scandium\",\"Transition metal\",\"3\",\"4\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w129\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":21,\"texts\":[\"22\",\"Ti\",\"Titanium\",\"Transition metal\",\"4\",\"4\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w130\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":22,\"texts\":[\"23\",\"V\",\"Vanadium\",\"Transition metal\",\"5\",\"4\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w131\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":23,\"texts\":[\"24\",\"Cr\",\"Chromium\",\"Transition metal\",\"6\",\"4\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w132\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":24,\"texts\":[\"25\",\"Mn\",\"Manganese\",\"Transition metal\",\"7\",\"4\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w133\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":25,\"texts\":[\"26\",\"Fe\",\"Iron\",\"Transition metal\",\"8\",\"4\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w134\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":26,\"texts\":[\"27\",\"Co\",\"Cobalt\",\"Transition metal\",\"9\",\"4\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w135\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":27,\"texts\":[\"28\",\"Ni\",\"Nickel\",\"Transition metal\",\"10\",\"4\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w136\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":28,\"texts\":[\"29\",\"Cu\",\"Copper\",\"Transition metal\",\"11\",\"4\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w137\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":29,\"texts\":[\"30\",\"Zn\",\"Zinc\",\"Transition metal\",\"12\",\"4\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w138\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":30,\"texts\":[\"31\",\"Ga\",\"Gallium\",\"Poor metal\",\"13\",\"4\"],\"cellBackgrounds\":[null,null,null,[238,238,236,255],null,null]\}],[\"create\",\"w139\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":31,\"texts\":[\"32\",\"Ge\",\"Germanium\",\"Metalloid\",\"14\",\"4\"],\"cellBackgrounds\":[null,null,null,[156,159,153,255],null,null]\}],[\"create\",\"w140\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":32,\"texts\":[\"33\",\"As\",\"Arsenic\",\"Metalloid\",\"15\",\"4\"],\"cellBackgrounds\":[null,null,null,[156,159,153,255],null,null]\}],[\"create\",\"w141\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":33,\"texts\":[\"34\",\"Se\",\"Selenium\",\"Nonmetal\",\"16\",\"4\"],\"cellBackgrounds\":[null,null,null,[138,226,52,255],null,null]\}],[\"create\",\"w142\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":34,\"texts\":[\"35\",\"Br\",\"Bromine\",\"Halogen\",\"17\",\"4\"],\"cellBackgrounds\":[null,null,null,[252,233,79,255],null,null]\}],[\"create\",\"w143\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":35,\"texts\":[\"36\",\"Kr\",\"Krypton\",\"Noble gas\",\"18\",\"4\"],\"cellBackgrounds\":[null,null,null,[114,159,207,255],null,null]\}],[\"create\",\"w144\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":36,\"texts\":[\"37\",\"Rb\",\"Rubidium\",\"Alkali metal\",\"1\",\"5\"],\"cellBackgrounds\":[null,null,null,[239,41,41,255],null,null]\}],[\"create\",\"w145\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":37,\"texts\":[\"38\",\"Sr\",\"Strontium\",\"Alkaline earth metal\",\"2\",\"5\"],\"cellBackgrounds\":[null,null,null,[233,185,110,255],null,null]\}],[\"create\",\"w146\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":38,\"texts\":[\"39\",\"Y\",\"Yttrium\",\"Transition metal\",\"3\",\"5\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w147\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":39,\"texts\":[\"40\",\"Zr\",\"Zirconium\",\"Transition metal\",\"4\",\"5\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w148\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":40,\"texts\":[\"41\",\"Nb\",\"Niobium\",\"Transition metal\",\"5\",\"5\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w149\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":41,\"texts\":[\"42\",\"Mo\",\"Molybdenum\",\"Transition metal\",\"6\",\"5\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w150\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":42,\"texts\":[\"43\",\"Tc\",\"Technetium\",\"Transition metal\",\"7\",\"5\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w151\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":43,\"texts\":[\"44\",\"Ru\",\"Ruthenium\",\"Transition metal\",\"8\",\"5\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w152\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":44,\"texts\":[\"45\",\"Rh\",\"Rhodium\",\"Transition metal\",\"9\",\"5\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w153\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":45,\"texts\":[\"46\",\"Pd\",\"Palladium\",\"Transition metal\",\"10\",\"5\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w154\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":46,\"texts\":[\"47\",\"Ag\",\"Silver\",\"Transition metal\",\"11\",\"5\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w155\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":47,\"texts\":[\"48\",\"Cd\",\"Cadmium\",\"Transition metal\",\"12\",\"5\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w156\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":48,\"texts\":[\"49\",\"In\",\"Indium\",\"Poor metal\",\"13\",\"5\"],\"cellBackgrounds\":[null,null,null,[238,238,236,255],null,null]\}],[\"create\",\"w157\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":49,\"texts\":[\"50\",\"Sn\",\"Tin\",\"Poor metal\",\"14\",\"5\"],\"cellBackgrounds\":[null,null,null,[238,238,236,255],null,null]\}],[\"create\",\"w158\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":50,\"texts\":[\"51\",\"Sb\",\"Antimony\",\"Metalloid\",\"15\",\"5\"],\"cellBackgrounds\":[null,null,null,[156,159,153,255],null,null]\}],[\"create\",\"w159\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":51,\"texts\":[\"52\",\"Te\",\"Tellurium\",\"Metalloid\",\"16\",\"5\"],\"cellBackgrounds\":[null,null,null,[156,159,153,255],null,null]\}],[\"create\",\"w160\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":52,\"texts\":[\"53\",\"I\",\"Iodine\",\"Halogen\",\"17\",\"5\"],\"cellBackgrounds\":[null,null,null,[252,233,79,255],null,null]\}],[\"create\",\"w161\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":53,\"texts\":[\"54\",\"Xe\",\"Xenon\",\"Noble gas\",\"18\",\"5\"],\"cellBackgrounds\":[null,null,null,[114,159,207,255],null,null]\}],[\"create\",\"w162\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":54,\"texts\":[\"55\",\"Cs\",\"Caesium\",\"Alkali metal\",\"1\",\"6\"],\"cellBackgrounds\":[null,null,null,[239,41,41,255],null,null]\}],[\"create\",\"w163\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":55,\"texts\":[\"56\",\"Ba\",\"Barium\",\"Alkaline earth metal\",\"2\",\"6\"],\"cellBackgrounds\":[null,null,null,[233,185,110,255],null,null]\}],[\"create\",\"w164\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":56,\"texts\":[\"57\",\"La\",\"Lanthanum\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w165\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":57,\"texts\":[\"58\",\"Ce\",\"Cerium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w166\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":58,\"texts\":[\"59\",\"Pr\",\"Praseodymium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w167\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":59,\"texts\":[\"60\",\"Nd\",\"Neodymium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w168\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":60,\"texts\":[\"61\",\"Pm\",\"Promethium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w169\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":61,\"texts\":[\"62\",\"Sm\",\"Samarium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w170\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":62,\"texts\":[\"63\",\"Eu\",\"Europium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w171\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":63,\"texts\":[\"64\",\"Gd\",\"Gadolinium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w172\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":64,\"texts\":[\"65\",\"Tb\",\"Terbium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w173\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":65,\"texts\":[\"66\",\"Dy\",\"Dysprosium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w174\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":66,\"texts\":[\"67\",\"Ho\",\"Holmium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w175\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":67,\"texts\":[\"68\",\"Er\",\"Erbium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w176\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":68,\"texts\":[\"69\",\"Tm\",\"Thulium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w177\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":69,\"texts\":[\"70\",\"Yb\",\"Ytterbium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w178\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":70,\"texts\":[\"71\",\"Lu\",\"Lutetium\",\"Lanthanide\",\"3\",\"6\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w179\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":71,\"texts\":[\"72\",\"Hf\",\"Hafnium\",\"Transition metal\",\"4\",\"6\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w180\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":72,\"texts\":[\"73\",\"Ta\",\"Tantalum\",\"Transition metal\",\"5\",\"6\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w181\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":73,\"texts\":[\"74\",\"W\",\"Tungsten\",\"Transition metal\",\"6\",\"6\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w182\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":74,\"texts\":[\"75\",\"Re\",\"Rhenium\",\"Transition metal\",\"7\",\"6\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w183\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":75,\"texts\":[\"76\",\"Os\",\"Osmium\",\"Transition metal\",\"8\",\"6\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w184\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":76,\"texts\":[\"77\",\"Ir\",\"Iridium\",\"Transition metal\",\"9\",\"6\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w185\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":77,\"texts\":[\"78\",\"Pt\",\"Platinum\",\"Transition metal\",\"10\",\"6\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w186\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":78,\"texts\":[\"79\",\"Au\",\"Gold\",\"Transition metal\",\"11\",\"6\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w187\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":79,\"texts\":[\"80\",\"Hg\",\"Mercury\",\"Transition metal\",\"12\",\"6\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w188\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":80,\"texts\":[\"81\",\"Tl\",\"Thallium\",\"Poor metal\",\"13\",\"6\"],\"cellBackgrounds\":[null,null,null,[238,238,236,255],null,null]\}],[\"create\",\"w189\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":81,\"texts\":[\"82\",\"Pb\",\"Lead\",\"Poor metal\",\"14\",\"6\"],\"cellBackgrounds\":[null,null,null,[238,238,236,255],null,null]\}],[\"create\",\"w190\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":82,\"texts\":[\"83\",\"Bi\",\"Bismuth\",\"Poor metal\",\"15\",\"6\"],\"cellBackgrounds\":[null,null,null,[238,238,236,255],null,null]\}],[\"create\",\"w191\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":83,\"texts\":[\"84\",\"Po\",\"Polonium\",\"Metalloid\",\"16\",\"6\"],\"cellBackgrounds\":[null,null,null,[156,159,153,255],null,null]\}],[\"create\",\"w192\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":84,\"texts\":[\"85\",\"At\",\"Astatine\",\"Halogen\",\"17\",\"6\"],\"cellBackgrounds\":[null,null,null,[252,233,79,255],null,null]\}],[\"create\",\"w193\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":85,\"texts\":[\"86\",\"Rn\",\"Radon\",\"Noble gas\",\"18\",\"6\"],\"cellBackgrounds\":[null,null,null,[114,159,207,255],null,null]\}],[\"create\",\"w194\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":86,\"texts\":[\"87\",\"Fr\",\"Francium\",\"Alkali metal\",\"1\",\"7\"],\"cellBackgrounds\":[null,null,null,[239,41,41,255],null,null]\}],[\"create\",\"w195\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":87,\"texts\":[\"88\",\"Ra\",\"Radium\",\"Alkaline earth metal\",\"2\",\"7\"],\"cellBackgrounds\":[null,null,null,[233,185,110,255],null,null]\}],[\"create\",\"w196\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":88,\"texts\":[\"89\",\"Ac\",\"Actinium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w197\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":89,\"texts\":[\"90\",\"Th\",\"Thorium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w198\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":90,\"texts\":[\"91\",\"Pa\",\"Protactinium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w199\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":91,\"texts\":[\"92\",\"U\",\"Uranium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w200\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":92,\"texts\":[\"93\",\"Np\",\"Neptunium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w201\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":93,\"texts\":[\"94\",\"Pu\",\"Plutonium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w202\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":94,\"texts\":[\"95\",\"Am\",\"Americium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w203\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":95,\"texts\":[\"96\",\"Cm\",\"Curium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w204\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":96,\"texts\":[\"97\",\"Bk\",\"Berkelium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w205\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":97,\"texts\":[\"98\",\"Cf\",\"Californium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w206\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":98,\"texts\":[\"99\",\"Es\",\"Einsteinium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w207\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":99,\"texts\":[\"100\",\"Fm\",\"Fermium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w208\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":100,\"texts\":[\"101\",\"Md\",\"Mendelevium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w209\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":101,\"texts\":[\"102\",\"No\",\"Nobelium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w210\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":102,\"texts\":[\"103\",\"Lr\",\"Lawrencium\",\"Actinide\",\"3\",\"7\"],\"cellBackgrounds\":[null,null,null,[173,127,168,255],null,null]\}],[\"create\",\"w211\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":103,\"texts\":[\"104\",\"Rf\",\"Rutherfordium\",\"Transition metal\",\"4\",\"7\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w212\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":104,\"texts\":[\"105\",\"Db\",\"Dubnium\",\"Transition metal\",\"5\",\"7\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w213\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":105,\"texts\":[\"106\",\"Sg\",\"Seaborgium\",\"Transition metal\",\"6\",\"7\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w214\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":106,\"texts\":[\"107\",\"Bh\",\"Bohrium\",\"Transition metal\",\"7\",\"7\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w215\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":107,\"texts\":[\"108\",\"Hs\",\"Hassium\",\"Transition metal\",\"8\",\"7\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w216\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":108,\"texts\":[\"109\",\"Mt\",\"Meitnerium\",\"Transition metal\",\"9\",\"7\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w217\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":109,\"texts\":[\"110\",\"Ds\",\"Darmstadtium\",\"Transition metal\",\"10\",\"7\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w218\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":110,\"texts\":[\"111\",\"Rg\",\"Roentgenium\",\"Transition metal\",\"11\",\"7\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w219\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":111,\"texts\":[\"112\",\"Uub\",\"Ununbium\",\"Transition metal\",\"12\",\"7\"],\"cellBackgrounds\":[null,null,null,[252,175,62,255],null,null]\}],[\"create\",\"w220\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":112,\"texts\":[\"113\",\"Uut\",\"Ununtrium\",\"Poor metal\",\"13\",\"7\"],\"cellBackgrounds\":[null,null,null,[238,238,236,255],null,null]\}],[\"create\",\"w221\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":113,\"texts\":[\"114\",\"Uuq\",\"Ununquadium\",\"Poor metal\",\"14\",\"7\"],\"cellBackgrounds\":[null,null,null,[238,238,236,255],null,null]\}],[\"create\",\"w222\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":114,\"texts\":[\"115\",\"Uup\",\"Ununpentium\",\"Poor metal\",\"15\",\"7\"],\"cellBackgrounds\":[null,null,null,[238,238,236,255],null,null]\}],[\"create\",\"w223\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":115,\"texts\":[\"116\",\"Uuh\",\"Ununhexium\",\"Poor metal\",\"16\",\"7\"],\"cellBackgrounds\":[null,null,null,[238,238,236,255],null,null]\}],[\"create\",\"w224\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":116,\"texts\":[\"117\",\"Uus\",\"Ununseptium\",\"Halogen\",\"17\",\"7\"],\"cellBackgrounds\":[null,null,null,[252,233,79,255],null,null]\}],[\"create\",\"w225\",\"rwt.widgets.GridItem\",\{\"parent\":\"w99\",\"index\":117,\"texts\":[\"118\",\"Uuo\",\"Ununoctium\",\"Noble gas\",\"18\",\"7\"],\"cellBackgrounds\":[null,null,null,[114,159,207,255],null,null]\}],[\"create\",\"w226\",\"rwt.widgets.Composite\",\{\"parent\":\"w97\",\"style\":[\"BORDER\"],\"bounds\":[10,464,988,25],\"children\":[\"w227\"],\"tabIndex\":-1,\"clientArea\":[0,0,986,23]\}],[\"create\",\"w227\",\"rwt.widgets.Label\",\{\"parent\":\"w226\",\"style\":[\"NONE\"],\"bounds\":[10,10,966,3],\"tabIndex\":-1,\"text\":\"Hydrogen (H)\"\}],[\"create\",\"w228\",\"rwt.widgets.Label\",\{\"parent\":\"w97\",\"style\":[\"WRAP\"],\"bounds\":[10,499,988,16],\"tabIndex\":-1,\"foreground\":[150,150,150,255],\"font\":[[\"Verdana\",\"Lucida Sans\",\"Arial\",\"Helvetica\",\"sans-serif\"],10,false,false],\"text\":\"Shortcuts: [CTRL+F] - Filter | Sort by: [CTRL+R] - Number, [CTRL+Y] - Symbol, [CTRL+N] - Name, [CTRL+S] - Series, [CTRL+G] - Group, [CTRL+E] - Period\"\}],[\"set\",\"w1\",\{\"focusControl\":\"w99\"\}],[\"call\",\"rwt.client.BrowserNavigation\",\"addToHistory\",\{\"entries\":[[\"tableviewer\",\"TableViewer\"]]\}]]\}"
}
type JsonParser = interface {
input
index
line
column
current
captureBuffer
captureStart
parse
readValue
readArrayElement(array)
readArray
readObjectKeyValuePair(obj)
readObject
readName
readNull
readTrue
readFalse
readRequiredChar(ch)
readString
readStringInternal
readEscapeChar
readEscape
readNumber
readFraction
readExponent
readChar(ch)
readDigit
skipWhiteSpace
read
startCapture
pauseCapture
endCapture
expected(expected)
error(message)
isWhiteSpace
isDigit
isEndOfText
}
class newJsonParserWith (string: String) -> JsonParser {
def input: String = string
var index: Number := 0.asInteger
var line: Number := 1.asInteger
var column: Number := 0.asInteger
var current: String := Done
var captureBuffer: String := ""
var captureStart: Number := -1.asInteger
method parse -> JsonObject {
read
skipWhiteSpace
var result: JsonObject := readValue
skipWhiteSpace
isEndOfText.ifFalse { error("Unexpected character") }
return result
}
method readValue -> JsonValue {
(current == "n"). ifTrue { return readNull }
(current == "t"). ifTrue { return readTrue }
(current == "f"). ifTrue { return readFalse }
(current == "\""). ifTrue { return readString }
(current == "["). ifTrue { return readArray }
(current == "\{"). ifTrue { return readObject }
// Is this really the best way to write this?, or better #or:?,
// but with all the nesting, it's just ugly.
(current == "-"). ifTrue { return readNumber }
(current == "0"). ifTrue { return readNumber }
(current == "1"). ifTrue { return readNumber }
(current == "2"). ifTrue { return readNumber }
(current == "3"). ifTrue { return readNumber }
(current == "4"). ifTrue { return readNumber }
(current == "5"). ifTrue { return readNumber }
(current == "6"). ifTrue { return readNumber }
(current == "7"). ifTrue { return readNumber }
(current == "8"). ifTrue { return readNumber }
(current == "9"). ifTrue { return readNumber }
// else
expected("value")
}
method readArrayElement (array: JsonArray) -> Done {
skipWhiteSpace
array.add(readValue)
skipWhiteSpace
Done
}
method readArray -> JsonArray {
read
var array: JsonArray := newJsonArray
// Array might be empty
skipWhiteSpace
readChar("]").ifTrue {
return array
}
readArrayElement(array)
{ readChar(",") }. whileTrue {
readArrayElement (array)
}
readChar("]").ifFalse {
expected("\",\" or \"\}\"")
}
return array
}
method readObjectKeyValuePair(obj: JsonObject) -> Done {
skipWhiteSpace
var name: String := readName
skipWhiteSpace
readChar(":").ifFalse { expected(":") }
skipWhiteSpace
obj. add (name) with (readValue)
skipWhiteSpace
Done
}
method readObject -> JsonObject {
read
var obj: JsonObject := newJsonObject
skipWhiteSpace
readChar("}").ifTrue { return obj }
readObjectKeyValuePair(obj)
{ readChar(",") }. whileTrue {
readObjectKeyValuePair (obj)
}
readChar("}").ifFalse {
expected("\",\" or \"}\"")
}
return obj
}
method readName -> String {
(current == "\""). ifFalse { expected ("name") }
return readStringInternal
}
method readNull -> JsonLiteral {
read
readRequiredChar("u")
readRequiredChar("l")
readRequiredChar("l")
return NULL
}
method readTrue -> JsonLiteral {
read
readRequiredChar("r")
readRequiredChar("u")
readRequiredChar("e")
return TRUE
}
method readFalse -> JsonLiteral {
read
readRequiredChar("a")
readRequiredChar("l")
readRequiredChar("s")
readRequiredChar("e")
return FALSE
}
method readRequiredChar (ch: String) -> Done {
(readChar(ch)).ifFalse {
expected("character: " ++ ch)
}
Done
}
method readString -> JsonString {
return newJsonString(readStringInternal)
}
method readStringInternal -> String {
read
startCapture
{current == "\""}. whileFalse {
(current == "\\").ifTrue {
pauseCapture
readEscape
startCapture
} ifFalse {
read
}
}
var string: String := endCapture
read
return string
}
method readEscapeChar -> String {
(current == "\""). ifTrue { return "\"" }
(current == "/"). ifTrue { return "/" }
(current == "\\"). ifTrue { return "\\\\" }
(current == "b"). ifTrue { return "\\b" }
(current == "f"). ifTrue { return "\\f" }
(current == "n"). ifTrue { return "\\n" }
(current == "r"). ifTrue { return "\\r" }
(current == "t"). ifTrue { return "\\t" }
expected("valid escape sequence. note, some are not supported")
}
method readEscape -> Done {
read
captureBuffer := captureBuffer.concatenate(readEscapeChar)
read
Done
}
method readNumber -> JsonNumber {
startCapture
readChar("-")
var firstDigit: String := current
readDigit.ifFalse { expected("digit") }
(firstDigit != "0").ifTrue { { readDigit }.whileTrue { } }
readFraction
readExponent
return newJsonNumber(endCapture)
}
method readFraction -> Boolean {
(readChar(".")). ifFalse { return false }
readDigit.ifFalse { expected("digit") }
{readDigit}.whileTrue { }
return true
}
method readExponent -> Boolean {
((!readChar("e")).and { (!readChar("E")) }).ifTrue { return false }
(readChar("+")).ifFalse { readChar("-") }
readDigit.ifFalse { expected("digit") }
{ readDigit }.whileTrue { }
return true
}
method readChar (ch: String) -> Boolean {
(current == ch). ifFalse { return false }
read
return true
}
method readDigit -> Boolean {
isDigit.ifFalse { return false }
read
return true
}
method skipWhiteSpace -> Done {
{ isWhiteSpace }. whileTrue { read }
Done
}
method read -> Done {
(current == "\n"). ifTrue {
line := line + 1.asInteger
column := 0.asInteger
}
index := index + 1.asInteger
column := column + 1.asInteger
input.ifNil { error("input Done") }
(index <= input.length).ifTrue {
current := input.charAt(index)
} ifFalse {
current := Done
}
Done
}
method startCapture -> Done {
captureStart := index
Done
}
method pauseCapture -> Done {
captureBuffer := captureBuffer.concatenate (input.substringFrom (captureStart) to (index - 1.asInteger))
captureStart := -1.asInteger
Done
}
method endCapture -> String {
var captured: String
("" == captureBuffer).ifTrue {
captured := input.substringFrom (captureStart) to (index - 1.asInteger)
} ifFalse {
pauseCapture
captured := captureBuffer
captureBuffer := ""
}
captureStart := -1.asInteger
return captured
}
method expected (expected: String) -> Done {
isEndOfText.ifTrue {
error ("Unexpected end of input, expected {expected.asString}")
}
error ("Expected {expected} (current is `{current}`)")
Done
}
method error (message: String) -> Done {
newParseExceptionWith (message) at (index) line (line) column (column)
Done
}
method isWhiteSpace -> Boolean {
(current == " "). ifTrue { return true }
(current == "\\t"). ifTrue { return true }
(current == "\\n"). ifTrue { return true }
(current == "\\r"). ifTrue { return true }
return false
}
method isDigit -> Boolean {
(current == "0"). ifTrue { return true }
(current == "1"). ifTrue { return true }
(current == "2"). ifTrue { return true }
(current == "3"). ifTrue { return true }
(current == "4"). ifTrue { return true }
(current == "5"). ifTrue { return true }
(current == "6"). ifTrue { return true }
(current == "7"). ifTrue { return true }
(current == "8"). ifTrue { return true }
(current == "9"). ifTrue { return true }
return false
}
method isEndOfText -> Boolean {
return current.isNil
}
}
type HashIndexTable = interface {
hashTable
at (name) put (index)
at (name)
stringHash (s)
hashSlotFor (element)
}
class newHashIndexTable -> HashIndexTable {
def hashTable: List = Array.new (32.asInteger) withAll (0.asInteger)
method at (name: String) put (index: Number) -> Done {
var slot: Number := hashSlotFor(name)
(index < 255.asInteger). ifTrue {
hashTable. at (slot) put (index + 1.asInteger)
} ifFalse {
hashTable. at (slot) put (0.asInteger)
}
Done
}
method at (name: String) -> Number {
var slot: Number := hashSlotFor (name)
// subtract 1, 0 stands for empty
return hashTable.at(slot).bitAnd(255.asInteger) - 1.asInteger
}
method stringHash (s: String) -> Number {
// this is not a proper hash, but sufficient for the benchmark,
// and very portable!
return s.length * 1402589.asInteger
}
method hashSlotFor (element: String) -> Number {
return stringHash(element).bitAnd(hashTable.size - 1.asInteger) + 1.asInteger
}
}
method newParseExceptionWith (aMessageString: String) at (offset: Number) line (line: Number) column (column: Number) -> Done {
print("{aMessageString} [l:{line}, c:{column}, o:{offset}]")
Exception.new.signal
Done
}
class newJsonValue -> JsonValue {
method isObject -> Boolean { return false }
method isArray -> Boolean { return false }
method isNumber -> Boolean { return false }
method isString -> Boolean { return false }
method isBoolean -> Boolean { return false }
method isTrue -> Boolean { return false }
method isFalse -> Boolean { return false }
method isNull -> Boolean { return false }
method asObject -> Done {
error ("Unsupported operation, not an object: {asString}")
Done
}
method asArray -> Done {
error ("Unsupported operation, not an array: {asString}")
Done
}
}
class newJsonArray -> JsonArray {
inherit newJsonValue
def values: Vector = core.newVector
method add (value: JsonValue) -> Done {
value.ifNil { error("value is null") }
values.append (value)
Done
}
method size -> Number { return values.size }
method at (index: Number) -> JsonValue { return values.at (index) }
method isArray -> Boolean { return true }
method asArray -> JsonArray { return self }
}
class newJsonLiteral (val: String) -> JsonLiteral {
inherit newJsonValue
def value: String = val
def isNull: Boolean = ("null" == val)
def isTrue: Boolean = ("true" == val)
def isFalse: Boolean = ("false" == val)
method asString -> String { return value }
method isBoolean -> Boolean { return isTrue || isFalse }
}
class newJsonNumber (aString: String) -> JsonNumber {
inherit newJsonValue
def string: String = aString
aString.ifNil { error("string is null") }
method asString -> String { return string }
method isNumber -> Boolean { return true }
}
class newJsonObject -> JsonObject {
inherit newJsonValue
def names: Vector = core.newVector
def values: Vector = core.newVector
def table: HashIndexTable = newHashIndexTable
method add (name: String) with (aJsonValue: JsonValue) -> Done {
name.ifNil { error("name is null" ) }
aJsonValue.ifNil { error("aJsonValue is null") }
table.at (name) put (names.size + 1.asInteger) // + 1 for 1-based indexing
names.append(name)
values.append(aJsonValue)
Done
}
method at (name: String) -> JsonValue {
name.ifNil { error("name is null") }
var idx: Number := indexOf(name)
(idx == 0.asInteger). ifTrue {
return Done
} ifFalse {
return values.at(idx)
}
}
method size -> Number { return names.size }
method isEmpty -> Boolean {
return names.isEmpty
}
method isObject -> Boolean { return true }
method asObject -> JsonObject { return self }
method indexOf (name: String) -> Number {
var idx: Number := table.at (name)
(idx != 0.asInteger).ifTrue {
(name == names.at(idx)).ifTrue { return idx }
}
error("not implement {name}")
}
}
class newJsonString (str: String) -> JsonString {
inherit newJsonValue
def string: String = str
method isString -> Boolean { return true }
}
method newInstance -> Benchmark { newJson } | Grace | 5 | smarr/moth-benchmarks | benchmarks/Moth/Json.grace | [
"MIT"
] |
uri.arpa. 3600 IN SOA sns.dns.icann.org. (
noc.dns.icann.org. 2018100702 10800 3600 1209600 3600 )
uri.arpa. 3600 IN RRSIG NSEC 8 2 3600 (
20181028142623 20181007205525 47155 uri.arpa.
eEC4w/oXLR1Epwgv4MBiDtSBsXhqrJVvJWUpbX8XpetAvD35bxwNCUTi
/pAJVUXefegWeiriD2rkTgCBCMmn7YQIm3gdR+HjY/+o3BXNQnz97f+e
HAE9EDDzoNVfL1PyV/2fde9tDeUuAGVVwmD399NGq9jWYMRpyri2kysr q/g= )
uri.arpa. 86400 IN RRSIG NS 8 2 86400 (
20181028172020 20181007175821 47155 uri.arpa.
ATyV2A2A8ZoggC+68u4GuP5MOUuR+2rr3eWOkEU55zAHld/7FiBxl4ln
4byJYy7NudUwlMOEXajqFZE7DVl8PpcvrP3HeeGaVzKqaWj+aus0jbKF
Bsvs2b1qDZemBfkz/IfAhUTJKnto0vSUicJKfItu0GjyYNJCz2CqEuGD Wxc= )
uri.arpa. 600 IN RRSIG MX 8 2 600 (
20181028170556 20181007175821 47155 uri.arpa.
e7/r3KXDohX1lyVavetFFObp8fB8aXT76HnN9KCQDxSnSghNM83UQV0t
lTtD8JVeN1mCvcNFZpagwIgB7XhTtm6Beur/m5ES+4uSnVeS6Q66HBZK
A3mR95IpevuVIZvvJ+GcCAQpBo6KRODYvJ/c/ZG6sfYWkZ7qg/Em5/+3 4UI= )
uri.arpa. 3600 IN RRSIG DNSKEY 8 2 3600 (
20181028152832 20181007175821 15796 uri.arpa.
nzpbnh0OqsgBBP8St28pLvPEQ3wZAUdEBuUwil+rtjjWlYYiqjPxZ286
XF4Rq1usfV5x71jZz5IqswOaQgia91ylodFpLuXD6FTGs2nXGhNKkg1V
chHgtwj70mXU72GefVgo8TxrFYzxuEFP5ZTP92t97FVWVVyyFd86sbbR
6DZj3uA2wEvqBVLECgJLrMQ9Yy7MueJl3UA4h4E6zO2JY9Yp0W9woq0B
dqkkwYTwzogyYffPmGAJG91RJ2h6cHtFjEZe2MnaY2glqniZ0WT9vXXd
uFPm0KD9U77Ac+ZtctAF9tsZwSdAoL365E2L1usZbA+K0BnPPqGFJRJk
5R0A1w== )
uri.arpa. 3600 IN RRSIG DNSKEY 8 2 3600 (
20181028152832 20181007175821 55480 uri.arpa.
lWtQV/5szQjkXmbcD47/+rOW8kJPksRFHlzxxmzt906+DBYyfrH6uq5X
nHvrUlQO6M12uhqDeL+bDFVgqSpNy+42/OaZvaK3J8EzPZVBHPJykKMV
63T83aAiJrAyHzOaEdmzLCpalqcEE2ImzlLHSafManRfJL8Yuv+JDZFj
2WDWfEcUuwkmIZWX11zxp+DxwzyUlRl7x4+ok5iKZWIg5UnBAf6B8T75
WnXzlhCw3F2pXI0a5LYg71L3Tp/xhjN6Yy9jGlIRf5BjB59X2zra3a2R
PkI09SSnuEwHyF1mDaV5BmQrLGRnCjvwXA7ho2m+vv4SP5dUdXf+GTeA
1HeBfw== )
uri.arpa. 3600 IN RRSIG SOA 8 2 3600 (
20181029114753 20181008222815 47155 uri.arpa.
qn8yBNoHDjGdT79U2Wu9IIahoS0YPOgYP8lG+qwPcrZ1BwGiHywuoUa2
Mx6BWZlg+HDyaxj2iOmox+IIqoUHhXUbO7IUkJFlgrOKCgAR2twDHrXu
9BUQHy9SoV16wYm3kBTEPyxW5FFm8vcdnKAF7sxSY8BbaYNpRIEjDx4A JUc= )
uri.arpa. 3600 IN NSEC ftp.uri.arpa. NS SOA (
MX RRSIG NSEC DNSKEY )
uri.arpa. 86400 IN NS a.iana-servers.net.
uri.arpa. 86400 IN NS b.iana-servers.net.
uri.arpa. 86400 IN NS c.iana-servers.net.
uri.arpa. 86400 IN NS ns2.lacnic.net.
uri.arpa. 86400 IN NS sec3.apnic.net.
uri.arpa. 600 IN MX 10 pechora.icann.org.
uri.arpa. 3600 IN DNSKEY 256 3 8 (
AwEAAcBi7tSart2J599zbYWspMNGN70IBWb4ziqyQYH9MTB/VCz6WyUK
uXunwiJJbbQ3bcLqTLWEw134B6cTMHrZpjTAb5WAwg4XcWUu8mdcPTiL
Bl6qVRlRD0WiFCTzuYUfkwsh1Rbr7rvrxSQhF5rh71zSpwV5jjjp65Wx
SdJjlH0B )
uri.arpa. 3600 IN DNSKEY 257 3 8 (
AwEAAbNVv6ulgRdO31MtAehz7j3ALRjwZglWesnzvllQl/+hBRZr9QoY
cO2I+DkO4Q1NKxox4DUIxj8SxPO3GwDuOFR9q2/CFi2O0mZjafbdYtWc
3zSdBbi3q0cwCIx7GuG9eqlL+pg7mdk9dgdNZfHwB0LnqTD8ebLPsrO/
Id7kBaiqYOfMlZnh2fp+2h6OOJZHtY0DK1UlssyB5PKsE0tVzo5s6zo9
iXKe5u+8WTMaGDY49vG80JPAKE7ezMiH/NZcUMiE0PRZ8D3foq2dYuS5
ym+vA83Z7v8A+Rwh4UGnjxKB8zmr803V0ASAmHz/gwH5Vb0nH+LObwFt
l3wpbp+Wpm8= )
uri.arpa. 3600 IN DNSKEY 257 3 8 (
AwEAAbwnFTakCvaUKsXji4mgmxZUJi1IygbnGahbkmFEa0L16J+TchKR
wcgzVfsxUGa2MmeA4hgkAooC3uy+tTmoMsgy8uq/JAj24DjiHzd46LfD
FK/qMidVqFpYSHeq2Vv5ojkuIsx4oe4KsafGWYNOczKZgH5loGjN2aJG
mrIm++XCphOskgCsQYl65MIzuXffzJyxlAuts+ecAIiVeqRaqQfr8LRU
7wIsLxinXirprtQrbor+EtvlHp9qXE6ARTZDzf4jvsNpKvLFZtmxzFf3
e/UJz5eHjpwDSiZL7xE8aE1o1nGfPtJx9ZnB3bapltaJ5wY+5XOCKgY0
xmJVvNQlwdE= )
ftp.uri.arpa. 3600 IN RRSIG NSEC 8 3 3600 (
20181028080856 20181007175821 47155 uri.arpa.
HClGAqPxzkYkAT7Q/QNtQeB6YrkP6EPOef+9Qo5/2zngwAewXEAQiyF9
jD1USJiroM11QqBS3v3aIdW/LXORs4Ez3hLcKNO1cKHsOuWAqzmE+BPP
Arfh8N95jqh/q6vpaB9UtMkQ53tM2fYU1GszOLN0knxbHgDHAh2axMGH lqM= )
ftp.uri.arpa. 604800 IN RRSIG NAPTR 8 3 604800 (
20181028103644 20181007205525 47155 uri.arpa.
WoLi+vZzkxaoLr2IGZnwkRvcDf6KxiWQd1WZP/U+AWnV+7MiqsWPZaf0
9toRErerGoFOiOASNxZjBGJrRgjmavOM9U+LZSconP9zrNFd4dIu6kp5
YxlQJ0uHOvx1ZHFCj6lAt1ACUIw04ZhMydTmi27c8MzEOMepvn7iH7r7 k7k= )
ftp.uri.arpa. 3600 IN NSEC http.uri.arpa. NAPTR (
RRSIG NSEC )
ftp.uri.arpa. 604800 IN NAPTR 0 0 "" "" (
"!^ftp://([^:/?#]*).*$!\\1!i" . )
http.uri.arpa. 3600 IN RRSIG NSEC 8 3 3600 (
20181029010647 20181007175821 47155 uri.arpa.
U03NntQ73LHWpfLmUK8nMsqkwVsOGW2KdsyuHYAjqQSZvKbtmbv7HBmE
H1+Ii3Z+wtfdMZBy5aC/6sHdx69BfZJs16xumycMlAy6325DKTQbIMN+
ift9GrKBC7cgCd2msF/uzSrYxxg4MJQzBPvlkwXnY3b7eJSlIXisBIn7 3b8= )
http.uri.arpa. 604800 IN RRSIG NAPTR 8 3 604800 (
20181029011815 20181007205525 47155 uri.arpa.
T7mRrdag+WSmG+n22mtBSQ/0Y3v+rdDnfQV90LN5Fq32N5K2iYFajF7F
Tp56oOznytfcL4fHrqOE0wRc9NWOCCUec9C7Wa1gJQcllEvgoAM+L6f0
RsEjWq6+9jvlLKMXQv0xQuMX17338uoD/xiAFQSnDbiQKxwWMqVAimv5 7Zs= )
http.uri.arpa. 3600 IN NSEC mailto.uri.arpa. NAPTR (
RRSIG NSEC )
http.uri.arpa. 604800 IN NAPTR 0 0 "" "" (
"!^http://([^:/?#]*).*$!\\1!i" . )
mailto.uri.arpa. 3600 IN RRSIG NSEC 8 3 3600 (
20181028110727 20181007175821 47155 uri.arpa.
GvxzVL85rEukwGqtuLxek9ipwjBMfTOFIEyJ7afC8HxVMs6mfFa/nEM/
IdFvvFg+lcYoJSQYuSAVYFl3xPbgrxVSLK125QutCFMdC/YjuZEnq5cl
fQciMRD7R3+znZfm8d8u/snLV9w4D+lTBZrJJUBe1Efc8vum5vvV7819 ZoY= )
mailto.uri.arpa. 604800 IN RRSIG NAPTR 8 3 604800 (
20181028141825 20181007205525 47155 uri.arpa.
MaADUgc3fc5v++M0YmqjGk3jBdfIA5RuP62hUSlPsFZO4k37erjIGCfF
j+g84yc+QgbSde0PQHszl9fE/+SU5ZXiS9YdcbzSZxp2erFpZOTchrpg
916T4vx6i59scodjb0l6bDyZ+mtIPrc1w6b4hUyOUTsDQoAJYxdfEuMg Vy4= )
mailto.uri.arpa. 3600 IN NSEC urn.uri.arpa. NAPTR (
RRSIG NSEC )
mailto.uri.arpa. 604800 IN NAPTR 0 0 "" "" (
"!^mailto:(.*)@(.*)$!\\2!i" . )
urn.uri.arpa. 3600 IN RRSIG NSEC 8 3 3600 (
20181028123243 20181007175821 47155 uri.arpa.
Hgsw4Deops1O8uWyELGe6hpR/OEqCnTHvahlwiQkHhO5CSEQrbhmFAWe
UOkmGAdTEYrSz+skLRQuITRMwzyFf4oUkZihGyhZyzHbcxWfuDc/Pd/9
DSl56gdeBwy1evn5wBTms8yWQVkNtphbJH395gRqZuaJs3LD/qTyJ5Dp LvA= )
urn.uri.arpa. 604800 IN RRSIG NAPTR 8 3 604800 (
20181029071816 20181007205525 47155 uri.arpa.
ALIZD0vBqAQQt40GQ0Efaj8OCyE9xSRJRdyvyn/H/wZVXFRFKrQYrLAS
D/K7q6CMTOxTRCu2J8yes63WJiaJEdnh+dscXzZkmOg4n5PsgZbkvUSW
BiGtxvz5jNncM0xVbkjbtByrvJQAO1cU1mnlDKe1FmVB1uLpVdA9Ib4J hMU= )
urn.uri.arpa. 3600 IN NSEC uri.arpa. NAPTR RRSIG (
NSEC )
urn.uri.arpa. 604800 IN NAPTR 0 0 "" "" (
"/urn:([^:]+)/\\1/i" . )
uri.arpa. 3600 IN SOA sns.dns.icann.org. (
noc.dns.icann.org. 2018100702 10800 3600 1209600 3600 )
| DNS Zone | 3 | luisdallos/unbound | testdata/zonemd.example_a4.zone | [
"BSD-3-Clause"
] |
QT += widgets
HEADERS += \
$$PWD/dynamicsnippet.h \
$$PWD/snippet.h \
$$PWD/snippetmgr.h
SOURCES += \
$$PWD/dynamicsnippet.cpp \
$$PWD/snippet.cpp \
$$PWD/snippetmgr.cpp
| QMake | 1 | l1422586361/vnote | src/snippet/snippet.pri | [
"MIT"
] |
const exports = {}
const filter = fn(arr, func)/*: arr*/ {
let newArr = [];
const ln = len(arr)
for i = 0; i < ln; i+=1 {
if func(arr[i], i): newArr = push(newArr, arr[i])
}
newArr
}
exports.filter = filter
const map = fn(arr, func)/*: arr*/ {
let newArr = [];
const ln = len(arr)
for i = 0; i < ln; i+=1 {
newArr = push(newArr, func(arr[i], i))
}
newArr
}
exports.map = map
const reduce = fn(collection, func)/*: Object*/ {
let accumulator = nil
if len(arguments) > 0: accumulator = arguments[0]
if isArray(collection): return reduceArray(collection, func, accumulator)
if isMap(collection): return reduceMap(collection, func, accumulator)
throw "reduce(): collection must be a map or array"
}
exports.reduce = reduce
const reduceArray = fn(arr, func, accumulator)/*: Object*/ {
const ln = len(arr)
for i = 0; i < ln; i+=1 {
accumulator = func(accumulator, arr[i], i)
}
accumulator
}
const reduceMap = fn(map, func, accumulator)/*: Object*/ {
const keys = hashKeys(map);
const keyLn = len(keys)
for i = 0; i < keyLn; i+=1 {
const key = keys[i]
accumulator = func(accumulator, map[key], key)
}
accumulator
}
const arrayMatch = fn(arr1, arr2)/*: bool*/ {
if !isArray(arr1) or !isArray(arr2): throw "arrayMatch expected arrays as arguments"
if len(arr1) != len(arr2): return false
const ln = len(arr1)
for i = 0; i < ln; i+=1 {
if !valuesEqual(arr1[i], arr2[i]): return false
}
true
}
exports.arrayMatch = arrayMatch
const mapMatch = fn(map1, map2) {
if !isMap(map1) or !isMap(map2): return false
if len(map1) != len(map2): return false
const keys = hashKeys(map1);
const keyLn = len(keys)
for i = 0; i < keyLn; i+=1 {
const key = keys[i]
if !hasKey(map2, key): return false
if !valuesEqual(map1[key], map2[key]): return false
}
true
}
exports.mapMatch = mapMatch
const valuesEqual = fn(v1, v2) {
if varType(v1) != varType(v2): return false
if isArray(v1) {
return arrayMatch(v1, v2)
} elif isMap(v1) {
return mapMatch(v1, v2)
}
return (v1 == v2)
}
const foreach = fn(collection, func) {
if !isMap(collection) and !isArray(collection) and !isString(collection) {
throw "foreach(): collection must be a map, array, or string"
}
for key, val in collection {
func(key, val)
}
}
exports.foreach = foreach
const contains = fn(arr, needle) {
if isArray(arr): return arrayContains(arr, needle)
if isMap(arr): return arrayContains(hashKeys(arr), needle)
throw "contains expected an array or map but received " + varType(arr)
}
exports.contains = contains
const arrayContains = fn(arr, needle) {
const arrLen = len(arr)
const needleType = varType(needle)
for i = 0; i < arrLen; i += 1 {
const v = arr[i]
if varType(v) != needleType: continue
if (arr[i] == needle): return true
}
false
}
const join = fn(separator, arr) {
const arrLen = len(arr)
let str = ""
for i = 0; i < arrLen; i += 1 {
str += toString(arr[i])
if i < arrLen - 1 {
str += separator
}
}
str
}
exports.join = join
return exports
| Inform 7 | 4 | lfkeitel/nitrogen | nitrogen/std/collections.ni | [
"BSD-3-Clause"
] |
(*
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*)
val enqueue_or_handle_ephemeral :
ServerEnv.genv -> MonitorProt.request_id * ServerProt.Request.command_with_context -> unit
val enqueue_persistent :
ServerEnv.genv -> LspProt.client_id -> LspProt.request_with_metadata -> unit
| OCaml | 3 | zhangmaijun/flow | src/server/command_handler/commandHandler.mli | [
"MIT"
] |
# AMPL script to find a solution to the car sequencing model using LocalSolver.
model cp.ampl;
commands read-data.ampl;
if $timelimit = "" then option timelimit 5;
option localsolver_options ('timelimit=' & $timelimit);
option solver localsolver;
solve;
display optionAtPosition;
| AMPL | 3 | ampl/ampl.github.io | models/car-sequencing/localsolver.ampl | [
"MIT"
] |
//Use userVar0 and userVar1 (API calls &U0=,&U1=, uint16_t)
long lastTime = 0;
int delayMs = 10;
const int pinA = D6; //data
const int pinB = D7; //clk
int oldA = LOW;
//gets called once at boot. Do all initialization that doesn't depend on network here
void userSetup() {
pinMode(pinA, INPUT_PULLUP);
pinMode(pinB, INPUT_PULLUP);
}
//gets called every time WiFi is (re-)connected. Initialize own network interfaces here
void userConnected() {
}
//loop. You can use "if (WLED_CONNECTED)" to check for successful connection
void userLoop() {
if (millis()-lastTime > delayMs) {
int A = digitalRead(pinA);
int B = digitalRead(pinB);
if (oldA == LOW && A == HIGH) {
if (oldB == HIGH) {
// bri += 10;
// if (bri > 250) bri = 10;
effectCurrent += 1;
if (effectCurrent >= MODE_COUNT) effectCurrent = 0;
}
else {
// bri -= 10;
// if (bri < 10) bri = 250;
effectCurrent -= 1;
if (effectCurrent < 0) effectCurrent = (MODE_COUNT-1);
}
oldA = A;
//call for notifier -> 0: init 1: direct change 2: button 3: notification 4: nightlight 5: other (No notification)
// 6: fx changed 7: hue 8: preset cycle 9: blynk 10: alexa
colorUpdated(CALL_MODE_FX_CHANGED);
lastTime = millis();
}
}
| Arduino | 4 | EnnjiBennji/WLED | usermods/rotary_encoder_change_effect/wled06_usermod.ino | [
"MIT"
] |
// Copyright 2013 Slack Technologies, Inc. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef SHELL_APP_ELECTRON_MAIN_DELEGATE_MAC_H_
#define SHELL_APP_ELECTRON_MAIN_DELEGATE_MAC_H_
namespace electron {
// Initializes NSApplication.
void RegisterAtomCrApp();
} // namespace electron
#endif // SHELL_APP_ELECTRON_MAIN_DELEGATE_MAC_H_
| C | 3 | lingxiao-Zhu/electron | shell/app/electron_main_delegate_mac.h | [
"MIT"
] |
a { border-top-left-radius: 0 0 } | CSS | 1 | mengxy/swc | crates/swc_css_parser/tests/fixture/esbuild/misc/PSncmPJMuHC-CjpwiYtkDw/input.css | [
"Apache-2.0"
] |
⍝ Rotate along the last axis as in (1 ⌽ A)
rot ← { (⍉ ⍺ ↓ ⍉ ⍵) , ⍉ ⍺ ↑ ⍉ ⍵ }
A ← 3 4 ⍴ ⍳ 12
X ← 1 rot A ⍝ --> 2 3 4 1
⍝ 6 7 8 5
⍝ 10 11 12 9
⎕ ← +/ X ⍝ --> [3](10,26,42)
⎕ ← +/ 1 ⌽ A ⍝ --> [3](10,26,42)
A ← 3 4 ⍴ ⍳ 9
⎕ ← 1 ⌽ A ⍝ --> 2 3 4 1
⍝ 6 7 8 5
⍝ 1 2 3 9
⎕ ← 4 ⌽ A ⍝ --> 1 2 3 4
⍝ 5 6 7 8
⍝ 9 1 2 3
⎕ ← ¯1 ⌽ A ⍝ --> 4 1 2 3
⍝ 8 5 6 7
⍝ 3 9 1 2
⎕ ← ¯4 ⌽ A ⍝ --> 1 2 3 4
⍝ 5 6 7 8
⍝ 9 1 2 3
⎕ ← 0 ⌽ A ⍝ --> 1 2 3 4
⍝ 5 6 7 8
⍝ 9 1 2 3
0 | APL | 4 | melsman/apltail | tests/rot.apl | [
"MIT"
] |
!https://github.com/tinkerpop/gremlin/raw/master/doc/images/gremlin-logo.png!
[[Release Notes]] for all versions
==<hr/>==
* *Gremlin 2.x*
** "Gremlin 2.4.0":http://tinkerpop.com/downloads/gremlin/gremlin-groovy-2.4.0.zip
** "Gremlin 2.3.0":http://tinkerpop.com/downloads/gremlin/gremlin-groovy-2.3.0.zip
** "Gremlin 2.2.0":http://tinkerpop.com/downloads/gremlin/gremlin-groovy-2.2.0.zip
** "Gremlin 2.1.0":http://tinkerpop.com/downloads/gremlin/gremlin-groovy-2.1.0.zip
** "Gremlin 2.0.0":http://tinkerpop.com/downloads/gremlin/gremlin-groovy-2.0.0.zip
* *Gremlin 1.x*
** "Gremlin 1.5":http://tinkerpop.com/downloads/gremlin/gremlin-groovy-1.5.zip
** "Gremlin 1.4":http://tinkerpop.com/downloads/gremlin/gremlin-groovy-1.4.zip
** "Gremlin 1.3":http://tinkerpop.com/downloads/gremlin/gremlin-1.3.zip
** "Gremlin 1.2":http://tinkerpop.com/downloads/gremlin/gremlin-1.2.zip
** "Gremlin 1.1":http://tinkerpop.com/downloads/gremlin/gremlin-1.1.zip
** "Gremlin 1.0":http://tinkerpop.com/downloads/gremlin/gremlin-1.0.zip
* *Gremlin 0.x*
** "Gremlin 0.9":http://tinkerpop.com/downloads/gremlin/gremlin-0.9.zip
** "Gremlin 0.8":http://tinkerpop.com/downloads/gremlin/gremlin-0.8.zip
** "Gremlin 0.7":http://tinkerpop.com/downloads/gremlin/gremlin-0.7.zip
** "Gremlin 0.6":http://tinkerpop.com/downloads/gremlin/gremlin-0.6.zip
** "Gremlin 0.5.5":http://tinkerpop.com/downloads/gremlin/gremlin-0.5.5.zip
** "Gremlin 0.5":http://tinkerpop.com/downloads/gremlin/gremlin-0.5.zip
** "Gremlin 0.2.2":http://tinkerpop.com/downloads/gremlin/gremlin-0.2.2.zip
** "Gremlin 0.2.1":http://tinkerpop.com/downloads/gremlin/gremlin-0.2.1.zip
** "Gremlin 0.2":http://tinkerpop.com/downloads/gremlin/gremlin-0.2.zip
** "Gremlin 0.1":http://tinkerpop.com/downloads/gremlin/gremlin-0.1.zip | Textile | 0 | echinopsii/net.echinopsii.3rdparty.gremlin | doc/Downloads.textile | [
"BSD-3-Clause"
] |
--TEST--
Location: headers do not override the 304 Not Modified response code
--CGI--
--FILE--
<?php
header('HTTP/1.1 304 Not Modified');
header('Location: http://example.com/');
?>
--EXPECTHEADERS--
Status: 304 Not Modified
Location: http://example.com/
--EXPECT--
| PHP | 3 | thiagooak/php-src | ext/standard/tests/general_functions/header_redirection_010.phpt | [
"PHP-3.01"
] |
@keyframes lightSpeedOutLeft {
from {
opacity: 1;
}
to {
transform: translate3d(-100%, 0, 0) skewX(-30deg);
opacity: 0;
}
}
.lightSpeedOutLeft {
animation-name: lightSpeedOutLeft;
animation-timing-function: ease-in;
}
| CSS | 4 | ygyg70/quasar | extras/animate/lightSpeedOutLeft.css | [
"MIT"
] |
<?xml version='1.0' encoding='UTF-8'?>
<Project Type="Project" LVVersion="18008000">
<Property Name="NI.LV.All.SourceOnly" Type="Bool">true</Property>
<Property Name="NI.Project.Description" Type="Str"></Property>
<Item Name="My Computer" Type="My Computer">
<Property Name="server.app.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.control.propertiesEnabled" Type="Bool">true</Property>
<Property Name="server.tcp.enabled" Type="Bool">false</Property>
<Property Name="server.tcp.port" Type="Int">0</Property>
<Property Name="server.tcp.serviceName" Type="Str">My Computer/VI Server</Property>
<Property Name="server.tcp.serviceName.default" Type="Str">My Computer/VI Server</Property>
<Property Name="server.vi.callsEnabled" Type="Bool">true</Property>
<Property Name="server.vi.propertiesEnabled" Type="Bool">true</Property>
<Property Name="specify.custom.address" Type="Bool">false</Property>
<Item Name="Support Files" Type="Folder">
<Item Name="EncodingAndDecoding-errors.txt" Type="Document" URL="../../Docs/EncodingAndDecoding-errors.txt"/>
</Item>
<Item Name="Tests" Type="Folder">
<Item Name="BCD.lvclass" Type="LVClass" URL="../../Tests/BCD/BCD.lvclass"/>
<Item Name="BNR.lvclass" Type="LVClass" URL="../../Tests/BNR/BNR.lvclass"/>
<Item Name="Discrete.lvclass" Type="LVClass" URL="../../Tests/Discrete/Discrete.lvclass"/>
<Item Name="Parity.lvclass" Type="LVClass" URL="../../Tests/Parity/Parity.lvclass"/>
</Item>
<Item Name="Common Post-Build Action.vi" Type="VI" URL="../../../shared/Common Post-Build Action.vi"/>
<Item Name="Encoding and Decoding.lvlib" Type="Library" URL="../Encoding and Decoding.lvlib"/>
<Item Name="Dependencies" Type="Dependencies">
<Item Name="vi.lib" Type="Folder">
<Item Name="Array Size(s)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Array Size(s)__ogtk__jki_vi_tester.vi"/>
<Item Name="Assert Unsigned Integer Type.vim" Type="VI" URL="/<vilib>/Utility/TypeAssert/Assert Unsigned Integer Type.vim"/>
<Item Name="Build Error Cluster__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Build Error Cluster__ogtk__jki_vi_tester.vi"/>
<Item Name="Build Path - File Names and Paths Arrays - path__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Build Path - File Names and Paths Arrays - path__ogtk__jki_vi_tester.vi"/>
<Item Name="Build Path - File Names and Paths Arrays__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Build Path - File Names and Paths Arrays__ogtk__jki_vi_tester.vi"/>
<Item Name="Build Path - File Names Array - path__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Build Path - File Names Array - path__ogtk__jki_vi_tester.vi"/>
<Item Name="Build Path - File Names Array__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Build Path - File Names Array__ogtk__jki_vi_tester.vi"/>
<Item Name="Build Path - Traditional - path__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Build Path - Traditional - path__ogtk__jki_vi_tester.vi"/>
<Item Name="Build Path - Traditional__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Build Path - Traditional__ogtk__jki_vi_tester.vi"/>
<Item Name="Build Path__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Build Path__ogtk__jki_vi_tester.vi"/>
<Item Name="Check if File or Folder Exists.vi" Type="VI" URL="/<vilib>/Utility/libraryn.llb/Check if File or Folder Exists.vi"/>
<Item Name="Clear All Errors__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Clear All Errors__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi"/>
<Item Name="Clear Errors.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Clear Errors.vi"/>
<Item Name="Close Generic Object Refnum (Array VI)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Close Generic Object Refnum (Array VI)__ogtk__jki_vi_tester.vi"/>
<Item Name="Close Generic Object Refnum (Array)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Close Generic Object Refnum (Array)__ogtk__jki_vi_tester.vi"/>
<Item Name="Close Generic Object Refnum (Scalar VI)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Close Generic Object Refnum (Scalar VI)__ogtk__jki_vi_tester.vi"/>
<Item Name="Close Generic Object Refnum (Scalar)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Close Generic Object Refnum (Scalar)__ogtk__jki_vi_tester.vi"/>
<Item Name="Close Generic Object Refnum__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Close Generic Object Refnum__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (Bool)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (Bool)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (CTL-REF)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (CTL-REF)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (DBL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (DBL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (EXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (EXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (GEN-REF)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (GEN-REF)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (GObj-REF)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (GObj-REF)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (I8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (I8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (I16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (I16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (I32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (I32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (I64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (I64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (LVObject)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (LVObject)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (Path)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (Path)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (SGL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (SGL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (U8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (U8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (U16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (U16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (U32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (U32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (U64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (U64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (Variant)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (Variant)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel (VI-REF)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel (VI-REF)__ogtk__jki_vi_tester.vi"/>
<Item Name="Conditional Auto-Indexing Tunnel__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Conditional Auto-Indexing Tunnel__ogtk__jki_vi_tester.vi"/>
<Item Name="Convert EOLs (String Array)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Convert EOLs (String Array)__ogtk__jki_vi_tester.vi"/>
<Item Name="Convert EOLs (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Convert EOLs (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Convert EOLs__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Convert EOLs__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (Boolean)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (Boolean)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (DBL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (DBL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (EXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (EXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (I8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (I8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (I16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (I16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (I32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (I32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (I64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (I64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (LVObject)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (LVObject)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (Path)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (Path)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (SGL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (SGL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (U8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (U8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (U16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (U16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (U32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (U32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (U64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (U64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 1D Array (Variant)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 1D Array (Variant)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (Boolean)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (Boolean)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (DBL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (DBL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (EXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (EXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (I8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (I8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (I16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (I16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (I32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (I32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (I64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (I64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (LVObject)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (LVObject)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (Path)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (Path)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (SGL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (SGL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (U8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (U8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (U16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (U16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (U32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (U32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (U64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (U64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from 2D Array (Variant)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from 2D Array (Variant)__ogtk__jki_vi_tester.vi"/>
<Item Name="Delete Elements from Array__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Delete Elements from Array__ogtk__jki_vi_tester.vi"/>
<Item Name="Error Cluster From Error Code.vi" Type="VI" URL="/<vilib>/Utility/error.llb/Error Cluster From Error Code.vi"/>
<Item Name="Filter 1D Array (Boolean)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (Boolean)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (DBL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (DBL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (EXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (EXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (I8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (I8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (I16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (I16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (I32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (I32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (I64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (I64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (LVObject)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (LVObject)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (Path)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (Path)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (SGL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (SGL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (U8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (U8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (U16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (U16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (U32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (U32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (U64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (U64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array (Variant)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array (Variant)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (Boolean)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (Boolean)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (DBL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (DBL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (EXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (EXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (I8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (I8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (I16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (I16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (I32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (I32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (I64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (I64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (LVObject)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (LVObject)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (Path)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (Path)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (SGL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (SGL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (U8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (U8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (U16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (U16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (U32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (U32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (U64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (U64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array with Scalar (Variant)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array with Scalar (Variant)__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter 1D Array__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter 1D Array__ogtk__jki_vi_tester.vi"/>
<Item Name="Filter Error Codes (Array)__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter Error Codes (Array)__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi"/>
<Item Name="Filter Error Codes (Scalar)__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter Error Codes (Scalar)__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi"/>
<Item Name="Filter Error Codes__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filter Error Codes__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi"/>
<Item Name="Filtered Error Details - Cluster__jki_lib_error_handling -- VI Tester__jki_vi_tester.ctl" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Filtered Error Details - Cluster__jki_lib_error_handling -- VI Tester__jki_vi_tester.ctl"/>
<Item Name="Format Variant Into String__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Format Variant Into String__ogtk__jki_vi_tester.vi"/>
<Item Name="Get Array Element TDEnum__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get Array Element TDEnum__ogtk__jki_vi_tester.vi"/>
<Item Name="Get Data Name from TD__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get Data Name from TD__ogtk__jki_vi_tester.vi"/>
<Item Name="Get Data Name__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get Data Name__ogtk__jki_vi_tester.vi"/>
<Item Name="Get File System Separator.vi" Type="VI" URL="/<vilib>/Utility/sysinfo.llb/Get File System Separator.vi"/>
<Item Name="Get Header from TD__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get Header from TD__ogtk__jki_vi_tester.vi"/>
<Item Name="Get Last PString__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get Last PString__ogtk__jki_vi_tester.vi"/>
<Item Name="Get LV Class Path.vi" Type="VI" URL="/<vilib>/Utility/LVClass/Get LV Class Path.vi"/>
<Item Name="Get PString__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get PString__ogtk__jki_vi_tester.vi"/>
<Item Name="Get Refnum Type Enum from Data__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get Refnum Type Enum from Data__ogtk__jki_vi_tester.vi"/>
<Item Name="Get Refnum Type Enum from TD__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get Refnum Type Enum from TD__ogtk__jki_vi_tester.vi"/>
<Item Name="Get Strings from Enum TD__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get Strings from Enum TD__ogtk__jki_vi_tester.vi"/>
<Item Name="Get Strings from Enum__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get Strings from Enum__ogtk__jki_vi_tester.vi"/>
<Item Name="Get TDEnum from Data__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get TDEnum from Data__ogtk__jki_vi_tester.vi"/>
<Item Name="Get Waveform Type Enum from Data__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get Waveform Type Enum from Data__ogtk__jki_vi_tester.vi"/>
<Item Name="Get Waveform Type Enum from TD__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Get Waveform Type Enum from TD__ogtk__jki_vi_tester.vi"/>
<Item Name="Is an Error (any error array element)__jki_lib_error_handling VI Tester__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Is an Error (any error array element)__jki_lib_error_handling VI Tester__jki_vi_tester.vi"/>
<Item Name="Is an Error (error array)__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Is an Error (error array)__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi"/>
<Item Name="Is an Error (error cluster)__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Is an Error (error cluster)__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi"/>
<Item Name="Is an Error__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Is an Error__jki_lib_error_handling -- VI Tester__jki_vi_tester.vi"/>
<Item Name="Multi-line String to Array__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Multi-line String to Array__ogtk__jki_vi_tester.vi"/>
<Item Name="NI_FileType.lvlib" Type="Library" URL="/<vilib>/Utility/lvfile.llb/NI_FileType.lvlib"/>
<Item Name="NI_PackedLibraryUtility.lvlib" Type="Library" URL="/<vilib>/Utility/LVLibp/NI_PackedLibraryUtility.lvlib"/>
<Item Name="Random Number - Within Range__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Random Number - Within Range__ogtk__jki_vi_tester.vi"/>
<Item Name="Refnum Subtype Enum__ogtk__jki_vi_tester.ctl" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Refnum Subtype Enum__ogtk__jki_vi_tester.ctl"/>
<Item Name="Remove Duplicates from 1D Array (Boolean)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (Boolean)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (DBL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (DBL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (EXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (EXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (I8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (I8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (I16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (I16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (I32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (I32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (I64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (I64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (LVObject)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (LVObject)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (Path)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (Path)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (SGL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (SGL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (U8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (U8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (U16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (U16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (U32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (U32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (U64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (U64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array (Variant)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array (Variant)__ogtk__jki_vi_tester.vi"/>
<Item Name="Remove Duplicates from 1D Array__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Remove Duplicates from 1D Array__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (Boolean)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (Boolean)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (DBL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (DBL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (EXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (EXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (I8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (I8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (I16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (I16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (I32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (I32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (I64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (I64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (LVObject)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (LVObject)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (Path)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (Path)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (SGL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (SGL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (U8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (U8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (U16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (U16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (U32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (U32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (U64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (U64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 1D Array2 (Variant)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 1D Array2 (Variant)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (Boolean)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (Boolean)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (DBL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (DBL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (EXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (EXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (I8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (I8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (I16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (I16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (I32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (I32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (I64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (I64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (LVObject)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (LVObject)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (Path)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (Path)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (SGL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (SGL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (U8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (U8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (U16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (U16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (U32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (U32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (U64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (U64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder 2D Array2 (Variant)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder 2D Array2 (Variant)__ogtk__jki_vi_tester.vi"/>
<Item Name="Reorder Array2__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Reorder Array2__ogtk__jki_vi_tester.vi"/>
<Item Name="Resolve Timestamp Format__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Resolve Timestamp Format__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (Boolean)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (Boolean)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (DBL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (DBL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (EXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (EXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (I8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (I8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (I16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (I16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (I32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (I32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (I64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (I64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (LVObject)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (LVObject)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (Path)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (Path)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (SGL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (SGL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (U8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (U8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (U16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (U16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (U32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (U32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (U64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (U64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search 1D Array (Variant)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search 1D Array (Variant)__ogtk__jki_vi_tester.vi"/>
<Item Name="Search Array__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search Array__ogtk__jki_vi_tester.vi"/>
<Item Name="Search or Split String__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Search or Split String__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (DBL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (DBL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (EXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (EXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (I8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (I8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (I16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (I16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (I32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (I32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (I64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (I64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (Path)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (Path)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (SGL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (SGL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (U8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (U8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (U16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (U16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (U32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (U32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 1D Array (U64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 1D Array (U64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (CDB)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (CDB)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (CSG)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (CSG)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (CXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (CXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (DBL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (DBL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (EXT)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (EXT)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (I8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (I8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (I16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (I16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (I32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (I32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (I64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (I64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (Path)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (Path)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (SGL)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (SGL)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (U8)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (U8)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (U16)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (U16)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (U32)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (U32)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort 2D Array (U64)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort 2D Array (U64)__ogtk__jki_vi_tester.vi"/>
<Item Name="Sort Array__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Sort Array__ogtk__jki_vi_tester.vi"/>
<Item Name="String to 1D Array__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/String to 1D Array__ogtk__jki_vi_tester.vi"/>
<Item Name="Strip Path Extension - 1D Array of Paths__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Strip Path Extension - 1D Array of Paths__ogtk__jki_vi_tester.vi"/>
<Item Name="Strip Path Extension - 1D Array of Strings__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Strip Path Extension - 1D Array of Strings__ogtk__jki_vi_tester.vi"/>
<Item Name="Strip Path Extension - Path__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Strip Path Extension - Path__ogtk__jki_vi_tester.vi"/>
<Item Name="Strip Path Extension - String__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Strip Path Extension - String__ogtk__jki_vi_tester.vi"/>
<Item Name="Strip Path Extension__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Strip Path Extension__ogtk__jki_vi_tester.vi"/>
<Item Name="Strip Units__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Strip Units__ogtk__jki_vi_tester.vi"/>
<Item Name="TestCase.lvclass" Type="LVClass" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/TestCase.llb/TestCase.lvclass"/>
<Item Name="TestLoader.lvclass" Type="LVClass" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/TestLoader.llb/TestLoader.lvclass"/>
<Item Name="TestResult.lvclass" Type="LVClass" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/TestResult.llb/TestResult.lvclass"/>
<Item Name="TestSuite.lvclass" Type="LVClass" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/TestSuite.llb/TestSuite.lvclass"/>
<Item Name="Trim Whitespace (String Array)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Trim Whitespace (String Array)__ogtk__jki_vi_tester.vi"/>
<Item Name="Trim Whitespace (String)__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Trim Whitespace (String)__ogtk__jki_vi_tester.vi"/>
<Item Name="Trim Whitespace__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Trim Whitespace__ogtk__jki_vi_tester.vi"/>
<Item Name="Type Descriptor Enumeration__ogtk__jki_vi_tester.ctl" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Type Descriptor Enumeration__ogtk__jki_vi_tester.ctl"/>
<Item Name="Type Descriptor Header__ogtk__jki_vi_tester.ctl" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Type Descriptor Header__ogtk__jki_vi_tester.ctl"/>
<Item Name="Type Descriptor__ogtk__jki_vi_tester.ctl" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Type Descriptor__ogtk__jki_vi_tester.ctl"/>
<Item Name="Variant to Header Info__ogtk__jki_vi_tester.vi" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Variant to Header Info__ogtk__jki_vi_tester.vi"/>
<Item Name="VITesterUtilities.lvlib" Type="Library" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/VITesterUtilities.lvlib"/>
<Item Name="Waveform Subtype Enum__ogtk__jki_vi_tester.ctl" Type="VI" URL="/<vilib>/addons/_JKI Toolkits/VI Tester/_support/Support.llb/Waveform Subtype Enum__ogtk__jki_vi_tester.ctl"/>
</Item>
<Item Name="Copy Built Files.vi" Type="VI" URL="../../../shared/Copy Built Files.vi"/>
</Item>
<Item Name="Build Specifications" Type="Build">
<Item Name="SourceDistribution" Type="Source Distribution">
<Property Name="Bld_autoIncrement" Type="Bool">true</Property>
<Property Name="Bld_buildCacheID" Type="Str">{82DB7743-CB09-4A2D-9B82-42DB58F9BB13}</Property>
<Property Name="Bld_buildSpecName" Type="Str">SourceDistribution</Property>
<Property Name="Bld_excludedDirectory[0]" Type="Path">vi.lib</Property>
<Property Name="Bld_excludedDirectory[0].pathType" Type="Str">relativeToAppDir</Property>
<Property Name="Bld_excludedDirectory[1]" Type="Path">resource/objmgr</Property>
<Property Name="Bld_excludedDirectory[1].pathType" Type="Str">relativeToAppDir</Property>
<Property Name="Bld_excludedDirectory[2]" Type="Path">/C/ProgramData/National Instruments/InstCache/20.0</Property>
<Property Name="Bld_excludedDirectory[3]" Type="Path">/C/Users/nitest/Documents/LabVIEW Data/2020(32-bit)/ExtraVILib</Property>
<Property Name="Bld_excludedDirectory[4]" Type="Path">instr.lib</Property>
<Property Name="Bld_excludedDirectory[4].pathType" Type="Str">relativeToAppDir</Property>
<Property Name="Bld_excludedDirectory[5]" Type="Path">user.lib</Property>
<Property Name="Bld_excludedDirectory[5].pathType" Type="Str">relativeToAppDir</Property>
<Property Name="Bld_excludedDirectoryCount" Type="Int">6</Property>
<Property Name="Bld_excludeDependentDLLs" Type="Bool">true</Property>
<Property Name="Bld_excludeDependentPPLs" Type="Bool">true</Property>
<Property Name="Bld_localDestDir" Type="Path">../Built</Property>
<Property Name="Bld_localDestDirType" Type="Str">relativeToCommon</Property>
<Property Name="Bld_postActionVIID" Type="Ref">/My Computer/Common Post-Build Action.vi</Property>
<Property Name="Bld_previewCacheID" Type="Str">{4E54B0E3-999A-45D7-B509-1838338C18B7}</Property>
<Property Name="Bld_removeVIObj" Type="Int">1</Property>
<Property Name="Bld_version.build" Type="Int">12</Property>
<Property Name="Bld_version.major" Type="Int">1</Property>
<Property Name="Destination[0].destName" Type="Str">Destination Directory</Property>
<Property Name="Destination[0].path" Type="Path">../Built</Property>
<Property Name="Destination[0].preserveHierarchy" Type="Bool">true</Property>
<Property Name="Destination[1].destName" Type="Str">Support Directory</Property>
<Property Name="Destination[1].path" Type="Path">../Built/Support Files</Property>
<Property Name="Destination[2].destName" Type="Str">API Directory</Property>
<Property Name="Destination[2].path" Type="Path">../Built/vi.lib/NI/NI VeriStand Encoding and Decoding</Property>
<Property Name="DestinationCount" Type="Int">3</Property>
<Property Name="Source[0].itemID" Type="Str">{7DC4029C-0D69-466F-B2F8-A432A0CAD88A}</Property>
<Property Name="Source[0].type" Type="Str">Container</Property>
<Property Name="Source[1].destinationIndex" Type="Int">2</Property>
<Property Name="Source[1].itemID" Type="Ref">/My Computer/Encoding and Decoding.lvlib</Property>
<Property Name="Source[1].Library.allowMissingMembers" Type="Bool">true</Property>
<Property Name="Source[1].sourceInclusion" Type="Str">Include</Property>
<Property Name="Source[1].type" Type="Str">Library</Property>
<Property Name="Source[2].Container.applyInclusion" Type="Bool">true</Property>
<Property Name="Source[2].Container.depDestIndex" Type="Int">0</Property>
<Property Name="Source[2].destinationIndex" Type="Int">0</Property>
<Property Name="Source[2].itemID" Type="Ref">/My Computer/Support Files</Property>
<Property Name="Source[2].sourceInclusion" Type="Str">Include</Property>
<Property Name="Source[2].type" Type="Str">Container</Property>
<Property Name="Source[3].Container.applyInclusion" Type="Bool">true</Property>
<Property Name="Source[3].Container.depDestIndex" Type="Int">0</Property>
<Property Name="Source[3].destinationIndex" Type="Int">0</Property>
<Property Name="Source[3].itemID" Type="Ref">/My Computer/Tests</Property>
<Property Name="Source[3].sourceInclusion" Type="Str">Exclude</Property>
<Property Name="Source[3].type" Type="Str">Container</Property>
<Property Name="Source[4].destinationIndex" Type="Int">0</Property>
<Property Name="Source[4].itemID" Type="Ref">/My Computer/Common Post-Build Action.vi</Property>
<Property Name="Source[4].sourceInclusion" Type="Str">Exclude</Property>
<Property Name="Source[4].type" Type="Str">VI</Property>
<Property Name="Source[5].destinationIndex" Type="Int">1</Property>
<Property Name="Source[5].itemID" Type="Ref">/My Computer/Support Files/EncodingAndDecoding-errors.txt</Property>
<Property Name="SourceCount" Type="Int">6</Property>
</Item>
</Item>
</Item>
</Project>
| LabVIEW | 2 | ni/niveristand-custom-device-development-tools | encoding-decoding/Source/Encoding and Decoding.lvproj | [
"MIT"
] |
{hello: "world"}
| JSON5 | 0 | fuelingtheweb/prettier | tests/require-pragma/json5/without-pragma.json5 | [
"MIT"
] |
module openconfig-ospf-types {
yang-version "1";
// namespace
namespace "http://openconfig.net/yang/ospf-types";
prefix "oc-ospf-types";
// import some basic types
import ietf-yang-types { prefix "yang"; }
import openconfig-extensions { prefix "oc-ext"; }
// meta
organization "OpenConfig working group";
contact
"OpenConfig working group
www.openconfig.net";
description
"Type definitions for OSPF";
oc-ext:openconfig-version "0.1.0";
revision "2017-02-28"{
description
"Initial public release of OSPFv2";
reference "0.1.0";
}
revision "2016-06-24" {
description
"Initial revision";
reference "0.0.1";
}
// typedefs
typedef ospf-area-identifier {
type union {
type uint32;
type yang:dotted-quad;
}
description
"An identifier for an area with OSPF version 2 or 3. This value
is expressed as either a dotted-quad, or a unsigned 32-bit
number";
}
typedef ospf-metric {
type uint16;
description
"A common type that can be utilised to express an OSPF metric";
}
typedef sr-sid-type {
type enumeration {
enum LABEL {
description
"When the length of the SR/Label Sub-TLV is specified to be 3, then
the right-most 20-bits represent a label value within the SR/Label
Sub-TLV. When this leaf is set to a value of Label the first-entry
leaf should be interpreted to be an MPLS label.";
}
enum SID {
description
"When the length of the SR/Label Sub-TLV is specified to be 4, then
the value specified in the first-entry leaf should be specified to
be a segment identifier.";
}
}
description
"A common type used to express the type of segment identifier that is
used in LSDB entries relating to segment routing";
}
// identities
identity OSPF_LSA_TYPE {
description
"Base identity for an OSPF LSA type. This identity is intended
to be used across both OSPFv2 and OSPFv3. Identity values that
correspond to only one OSPF version are marked as such.";
}
identity ROUTER_LSA {
base "OSPF_LSA_TYPE";
description
"Type 1 - ROUTER_LSA. An LSA originated by each router within
the area describing the state and cost of the router's links
in the area.";
reference "RFC2328";
}
identity NETWORK_LSA {
base "OSPF_LSA_TYPE";
description
"Type 2 - NETWORK_LSA. An LSA originated for each broadcast and
non-broadcast multiple access (NBMA) in the area. This LSA is
originated by the designated router.";
reference "RFC2328";
}
identity SUMMARY_IP_NETWORK_LSA {
base "OSPF_LSA_TYPE";
description
"Type 3 - SUMMARY_IP_NETWORK_LSA. An LSA originated by area
border routers describing inter-area destinations. This LSA type
is used when the destination is an IP network";
reference "RFC2328";
}
identity SUMMARY_ASBR_LSA {
base "OSPF_LSA_TYPE";
description
"Type 4 - SUMMARY_ASBR_LSA. An LSA originated by an area border
router describing inter-area destinations. This LSA type is used
when the destination is an AS boundary router.";
reference "RFC2328";
}
identity AS_EXTERNAL_LSA {
base "OSPF_LSA_TYPE";
description
"Type 5 - AS_EXTERNAL_LSA. This LSA type is used to describe
destinations external to the autonomous system, and is
originated by an AS boundary router (ASBR).";
reference "RFC2328";
}
identity NSSA_AS_EXTERNAL_LSA {
base "OSPF_LSA_TYPE";
description
"Type 7 - NSSA_AS_EXTERNAL_LSA. This LSA type is used by
systems within a not-so-stubby-area (NSSA) to inject external
prefixes into the LSDB. They are translated to Type 5 LSAs
at an ABR device.";
reference "RFC3101";
}
identity OSPFV2_LINK_SCOPE_OPAQUE_LSA {
base "OSPF_LSA_TYPE";
description
"Type 9 - OSPFV2_LINK_SCOPE_OPAQUE_LSA. This LSA type is used
in OSPFv2 to distribute arbitrary information via the OSPF
protocol. The contents is specific to the application defining
the Opaque Type specified within the LSDB. LSAs with Type 9 have
a scope of the link that they are being transmitted on (and the
associated network or subnetwork).";
reference "RFC5250";
}
identity OSPFV2_AREA_SCOPE_OPAQUE_LSA {
base "OSPF_LSA_TYPE";
description
"Type 10 - OSPFV2_AREA_SCOPE_OPAQUE_LSA. This LSA type is used
in OSPFv2 to distribute arbitrary information via the OSPF
protocol. The contents is specific to the application defining
the Opaque Type specified within the LSDB. LSAs with Type 10 have
a scope of the area that they are transmitted within.";
reference "RFC5250";
}
identity OSPFV2_AS_SCOPE_OPAQUE_LSA {
base "OSPF_LSA_TYPE";
description
"Type 11 - OSPFV2_AS_SCOPE_OPAQUE_LSA. This LSA type is used
in OSPFv2 to distribute arbitrary information via the OSPF
protocol. The contents is specific to the application defining
the Opaque Type specified within the LSDB. LSAs with Type 11
have a scope of the autonomous system that they are transmitted
within.";
reference "RFC5250";
}
identity ROUTER_LSA_TYPES {
description
"Sub-types of the router LSA";
}
identity ROUTER_LSA_P2P {
base "ROUTER_LSA_TYPES";
description
"The LSA represents a point-to-point connection to another
router";
}
identity ROUTER_LSA_TRANSIT_NETWORK {
base "ROUTER_LSA_TYPES";
description
"The LSA represents a connection to a transit network";
}
identity ROUTER_LSA_STUB_NETWORK {
base "ROUTER_LSA_TYPES";
description
"The LSA represents a connection to a stub network";
}
identity ROUTER_LSA_VIRTUAL_LINK {
base "ROUTER_LSA_TYPES";
description
"The LSA represents a virtual link connection";
}
identity OSPF_NEIGHBOR_STATE {
description
"The state of an adjacency between the local system and a remote
device";
}
identity DOWN {
base "OSPF_NEIGHBOR_STATE";
description
"The initial state of a neighbor, indicating that no recent
information has been received from the neighbor.";
reference "RFC2328";
}
identity ATTEMPT {
base "OSPF_NEIGHBOR_STATE";
description
"Utilised for neighbors that are attached to NBMA networks, it
indicates that no information has been recently received from
the neighbor but that Hello packets should be directly sent
to that neighbor.";
reference "RFC2328";
}
identity INIT {
base "OSPF_NEIGHBOR_STATE";
description
"Indicates that a Hello packet has been received from the
neighbor but bi-directional communication has not yet been
established. That is to say that the local Router ID does
not appear in the list of neighbors in the remote system's
Hello packet.";
reference "RFC2328";
}
identity TWO_WAY {
base "OSPF_NEIGHBOR_STATE";
description
"Communication between the local and remote system is
bi-directional such that the local system's Router ID is listed
in the received remote system's Hello packet.";
reference "RFC2328";
}
identity EXSTART {
base "OSPF_NEIGHBOR_STATE";
description
"An adjacency with the remote system is being formed. The local
system is currently transmitting empty database description
packets in order to establish the master/slave relationship for
the adjacency.";
reference "RFC2328";
}
identity EXCHANGE {
base "OSPF_NEIGHBOR_STATE";
description
"The local and remote systems are currently exchanging database
description packets in order to determine which elements of
their local LSDBs are out of date.";
reference "RFC2328";
}
identity LOADING {
base "OSPF_NEIGHBOR_STATE";
description
"The local system is sending Link State Request packets to the
remote system in order to receive the more recently LSAs that
were discovered during the Exchange phase of the procedure
establishing the adjacency.";
reference "RFC2328";
}
identity FULL {
base "OSPF_NEIGHBOR_STATE";
description
"The neighboring routers are fully adjacent such that both
LSDBs are synchronized. The adjacency will appear in Router and
Network LSAs";
reference "RFC2328";
}
identity OSPF_NETWORK_TYPE {
description
"Types of network that OSPF should consider attached to an
interface";
}
identity POINT_TO_POINT_NETWORK {
base "OSPF_NETWORK_TYPE";
description
"A interface that connects two routers.";
reference "RFC2328";
}
identity BROADCAST_NETWORK {
base "OSPF_NETWORK_TYPE";
description
"An interface that supports >2 attached routers which has the
ability to address all connected systems via a single
(broadcast) address.";
}
identity NON_BROADCAST_NETWORK {
base "OSPF_NETWORK_TYPE";
description
"An interface that supports >2 attached rotuers which does not
have the ability to address all connected systems with a
broadcast address.";
}
// rjs TODO: Maybe need p2mp here.
identity OSPF_OPAQUE_LSA_TYPE {
description
"This identity is the base used for opaque LSA types. The values
that extend this base are those that are described in the IANA
OSPF Opaque Link-State Advertisements (LSA) Option Types registry";
}
identity TRAFFIC_ENGINEERING {
base "OSPF_OPAQUE_LSA_TYPE";
description
"The Traffic Engineering LSA. This type is used only with area-scope
Opaque LSAs - and is used to describe routers, point-to-point links
and connections to multi-access networks for traffic engineering
purposes.";
reference "RFC3630";
}
identity GRACE_LSA {
base "OSPF_OPAQUE_LSA_TYPE";
description
"Grace LSAs are announced by a system undergoing graceful-restart.
A system that is attempting an OSPF graceful restart announces
Grace-LSAs with a specified grace period, indicating the intention
to have completed an restart within the specified period.";
reference "RFC3623";
}
identity ROUTER_INFORMATION {
base "OSPF_OPAQUE_LSA_TYPE";
description
"The Router Information LSA is used by an OSPFv2 system to announce
optional capabilities of the local system, over and above those that
are included within the OSPF hello message field. The flooding scope
of the LSA can be link-, area-, or AS-wide (i.e., the LSA type can
be 9, 10 or 11).";
reference "RFC7770";
}
identity OSPFV2_EXTENDED_PREFIX {
base "OSPF_OPAQUE_LSA_TYPE";
description
"The Extended Prefix LSA is used in OSPFv2 to carry a set of attributes
that are to be associated with a prefix that is advertised in OSPF. The
attributes are carried as one or more TLV tuples. The flooding scope
of the LSA can be link-, area-, or AS-wide as specified by the
advertising system. The flooding scope of the LSA may exceed the scope
of the corresponding prefix.";
reference "RFC7684";
}
identity OSPFV2_EXTENDED_LINK {
base "OSPF_OPAQUE_LSA_TYPE";
description
"The Extended Link LSA is used in OSPFv2 to carry a set of attributes
that are to be associated with a link that is advertised in OSPF. The
link attributes are carried as one or more TLV tuples. The flooding
scope of the link LSA is area-local - i.e., it is carried in a Type 10
opaque LSA.";
reference "RFC7684";
}
identity OSPF_TE_LSA_TLV_TYPE {
description
"This identity is the base used for the type field of TLVs that are
included within the Traffic Engineering Opaque LSA.";
}
identity TE_ROUTER_ADDRESS {
base "OSPF_TE_LSA_TLV_TYPE";
description
"A stable IP address of the advertising router that is always reachable
if the node has connectivity.";
}
identity TE_LINK {
base "OSPF_TE_LSA_TLV_TYPE";
description
"A single link within a traffic engineering topology. A set of sub-TLVs
are carried within this attribute to indicate traffic engineering
characteristics of the link.";
}
identity TE_ROUTER_IPV6_ADDRESS {
base "OSPF_TE_LSA_TLV_TYPE";
description
"A stable IPv6 address of the advertising router that is always
reachable if the node has connectivity. This TLV is used only with
OSPFv3";
reference "RFC5329";
}
identity TE_LINK_LOCAL {
base "OSPF_TE_LSA_TLV_TYPE";
description
"Attributes associated with the local link by the system.";
reference "RFC4203";
}
identity TE_NODE_ATTRIBUTE {
base "OSPF_TE_LSA_TLV_TYPE";
description
"Attributes associted with the local system";
reference "RFC5786";
}
identity TE_OPTICAL_NODE_PROPERTY {
base "OSPF_TE_LSA_TLV_TYPE";
description
"Attributes associated with the local optical node. A set of sub-TLVs
are carried within this TLV which are used within the GMPLS control
plane when using OSPF";
}
identity OSPF_TE_LINK_TLV_TYPE {
description
"This identity is the based used for the type field for sub-TLVs of the
Link TLV of the OSPF Traffic Engineering Opaque LSA";
}
identity TE_LINK_TYPE {
base "OSPF_TE_LINK_TLV_TYPE";
description
"The OSPF-TE Link Type sub-TLV appears exactly once per OSPF-TE Link
and describes the type of the link";
}
identity TE_LINK_ID {
base "OSPF_TE_LINK_TLV_TYPE";
description
"The OSPF-TE Link ID sub-TLV appears exactly once per OSPF-TE link and
identifies the remote end of the link.";
}
identity TE_LINK_LOCAL_IP {
base "OSPF_TE_LINK_TLV_TYPE";
description
"The OSPF-TE Local IP specifies a list of the interface addresses of the
local system corresponding to the traffic engineering link.";
}
identity TE_LINK_REMOTE_IP {
base "OSPF_TE_LINK_TLV_TYPE";
description
"The OSPF-TE Remote IP specifies a list of IP addresses of the remote
neighbors associated with the traffic engineering link.";
}
identity TE_LINK_METRIC {
base "OSPF_TE_LINK_TLV_TYPE";
description
"The OSPF-TE Metric specifies the link metric for traffic engineering
purposes";
}
identity TE_LINK_MAXIMUM_BANDWIDTH {
base "OSPF_TE_LINK_TLV_TYPE";
description
"The OSPF-TE Maximum Bandwidth specifies the maximum bandwidth of the
link that it is associated with.";
}
identity TE_LINK_MAXIMUM_RESERVABLE_BANDWIDTH {
base "OSPF_TE_LINK_TLV_TYPE";
description
"The OSPF-TE Maximum Reservable Bandwidth specifies the maximum
bandwidth that may be reserved on the link in bytes per second";
}
identity TE_LINK_UNRESERVED_BANDWIDTH {
base "OSPF_TE_LINK_TLV_TYPE";
description
"The OSPF-TE unreserved bandwidth indicates the amount of bandwidth
at each priority level that is currently not reserved";
}
identity TE_LINK_ADMIN_GROUP {
base "OSPF_TE_LINK_TLV_TYPE";
description
"The OSPF-TE administrative group indicates the administrative group
that the is assigned to the interface";
}
identity TE_NODE_ATTRIBUTE_TLV_TYPE {
description
"This identity forms the base for sub-TLVs of the Node Attribute TLV
of the Traffic Engineering LSA";
}
identity NODE_IPV4_LOCAL_ADDRESS {
base "TE_NODE_ATTRIBUTE_TLV_TYPE";
description
"The Node Attribute Sub-TLV contains a list of the IPv4 addresses of
the local system";
}
identity NODE_IPV6_LOCAL_ADDRESS {
base "TE_NODE_ATTRIBUTE_TLV_TYPE";
description
"The Node Attribute Sub-TLV contains a list of the IPv6 addresses of
the local system";
}
identity GRACE_LSA_TLV_TYPES {
description
"This identity is used as the base for TLVs within the Grace LSA";
}
identity GRACE_PERIOD {
base "GRACE_LSA_TLV_TYPES";
description
"This sub-TLV describes the period for which adjacencies should be
maintained with the restarting system";
}
identity GRACE_RESTART_REASON {
base "GRACE_LSA_TLV_TYPES";
description
"This sub-TLV describes the reason for the OSPF restart of the system
that is restarting";
}
identity GRACE_IP_INTERFACE_ADDRESS {
base "GRACE_LSA_TLV_TYPES";
description
"This sub-TLV specifies the restarting system's IP address on the
interface via which it is advertising the Grace LSA";
}
identity RI_LSA_TLV_TYPES {
description
"This identity is used as the base for the TLVs within the Router
Information LSA";
reference "RFC7770";
}
identity RI_INFORMATIONAL_CAPABILITIES {
base "RI_LSA_TLV_TYPES";
description
"Informational capabilities of the advertising system";
reference "RFC7770";
}
identity RI_FUNCTIONAL_CAPABILITIES {
base "RI_LSA_TLV_TYPES";
description
"Functional capabilities of the advertising system";
reference "RFC7770";
}
identity RI_NODE_ADMIN_TAG {
base "RI_LSA_TLV_TYPES";
description
"Operator-defined administrative tags associated with the advertising
system";
reference "RFC7777";
}
identity RI_SR_SID_LABEL_RANGE {
base "RI_LSA_TLV_TYPES";
description
"SID or Label ranges for use with segment routing when forwarding to
the advertising system";
reference "draft-ietf-ospf-segment-routing-extensions";
}
identity RI_SR_ALGORITHM {
base "RI_LSA_TLV_TYPES";
description
"The algorithms that are supported for segment routing by the
advertising system";
reference "draft-ietf-ospf-segment-routing-extensions";
}
// will be shared with IS-IS
identity SR_ALGORITHM {
description
"This identity is used as a base for the algorithms that can be
supported for segment routing and are advertised by a system in the RI
LSA";
}
identity SPF {
base "SR_ALGORITHM";
description
"The standard shortest path algorithm based on link metric,
as used by the OSPF protocol";
}
identity STRICT_SPF {
base "SR_ALGORITHM";
description
"The standard shortest path algorithm based on link metric, with the
requirement that all nodes along the path honor the SPF decision. That
is to say that the SPF decision cannot be altered by local policy at
the node";
}
identity OSPF_RI_SR_SID_LABEL_TLV_TYPES {
description
"This identity is used as a base for the sub-TLVs of the Segment
Routing SID/Label Range TLV";
}
identity SR_SID_LABEL_TLV {
base "OSPF_RI_SR_SID_LABEL_TLV_TYPES";
description
"A range of SID/Label values used by the local system";
reference "draft-ietf-ospf-segment-routing-extensions";
}
identity OSPFV2_ROUTER_LINK_TYPE {
description
"OSPFv2 Router Link Types as per the IANA registry defined in
RFC2740";
}
identity POINT_TO_POINT_LINK {
base "OSPFV2_ROUTER_LINK_TYPE";
description
"The link is a point-to-point connection to another router";
}
identity TRANSIT_NETWORK_LINK {
base "OSPFV2_ROUTER_LINK_TYPE";
description
"The link is a connection to a transit network";
}
identity STUB_NETWORK_LINK {
base "OSPFV2_ROUTER_LINK_TYPE";
description
"The link is a connection to a stub network";
}
identity VIRTUAL_LINK {
base "OSPFV2_ROUTER_LINK_TYPE";
description
"The link is a virtual connection to another router";
}
identity OSPFV2_EXTENDED_PREFIX_SUBTLV_TYPE {
description
"Sub-TLVs of the OSPFv2 Extended Prefix LSA as defined by
RFC7684";
}
identity EXTENDED_PREFIX_RANGE {
base "OSPFV2_EXTENDED_PREFIX_SUBTLV_TYPE";
description
"The attributes being described relate to a range of prefixes";
}
identity PREFIX_SID {
base "OSPFV2_EXTENDED_PREFIX_SUBTLV_TYPE";
description
"The TLV describes a Segment Routing Prefix Segment Identifier
associated with a prefix";
}
identity SID_LABEL_BINDING {
base "OSPFV2_EXTENDED_PREFIX_SUBTLV_TYPE";
description
"The TLV describes a binding of a SID to a path to the prefix,
which may have associated path characteristics";
}
identity OSPFV2_EXTENDED_PREFIX_SID_LABEL_BINDING_SUBTLV_TYPE {
description
"Sub-TLV types carried in the SID/Label Binding Sub-TLV of
the Extended Prefix Sub-TLV";
}
identity SID_MPLS_LABEL_BINDING {
base "OSPFV2_EXTENDED_PREFIX_SID_LABEL_BINDING_SUBTLV_TYPE";
description
"This sub-TLV indicates a binding between an SR SID and an
MPLS label and must be present in the sub-TLV";
}
identity ERO_METRIC {
base "OSPFV2_EXTENDED_PREFIX_SID_LABEL_BINDING_SUBTLV_TYPE";
description
"This sub-TLV indicates the cost of the ERO path being
advertised in the SID/Label TLV";
}
identity ERO_PATH {
base "OSPFV2_EXTENDED_PREFIX_SID_LABEL_BINDING_SUBTLV_TYPE";
description
"This sub-TLV indicates the path associated with an ERO
being advertised in the SID/Label TLV";
}
identity OSPFV2_EXTPREFIX_BINDING_ERO_PATH_SEGMENT_TYPE {
description
"The types of segment included within an ERO Path described
within the SID/Label binding sub-TLV";
}
identity IPV4_SEGMENT {
base "OSPFV2_EXTPREFIX_BINDING_ERO_PATH_SEGMENT_TYPE";
description
"The segment is specified as an IPv4 address";
}
identity UNNUMBERED_INTERFACE_SEGMENT {
base "OSPFV2_EXTPREFIX_BINDING_ERO_PATH_SEGMENT_TYPE";
description
"The segment is specified as an unnumbered interface of
a remote system";
}
identity OSPFV2_EXTENDED_LINK_SUBTLV_TYPE {
description
"Sub-TLVs of the Extended Link TLV for OSPFv2";
}
identity ADJACENCY_SID {
base "OSPFV2_EXTENDED_LINK_SUBTLV_TYPE";
description
"The extended link sub-TLV indicates an Adjacency SID";
}
identity MAX_METRIC_TRIGGER {
description
"Triggers which cause the maximum metric to be set for
entities advertised in OSPF";
}
identity MAX_METRIC_ON_SYSTEM_BOOT {
base "MAX_METRIC_TRIGGER";
description
"Set the maximum metric when the system boots.";
}
identity MAX_METRIC_INCLUDE {
description
"Entities that may optionally be included when advertising
the maximum metric.";
}
identity MAX_METRIC_INCLUDE_STUB {
base "MAX_METRIC_INCLUDE";
description
"Include stub networks when advertising the maximum metric.";
}
identity MAX_METRIC_INCLUDE_TYPE2_EXTERNAL {
base "MAX_METRIC_INCLUDE";
description
"Include OSPF Type 2 external routes when advertising
the maximum metric.";
}
} | YANG | 5 | meodaiduoi/onos | models/openconfig/src/main/yang/ospf/openconfig-ospf-types@2017-02-28.yang | [
"Apache-2.0"
] |
// (c) Copyright 1995-2016 Xilinx, Inc. All rights reserved.
//
// This file contains confidential and proprietary information
// of Xilinx, Inc. and is protected under U.S. and
// international copyright and other intellectual property
// laws.
//
// DISCLAIMER
// This disclaimer is not a license and does not grant any
// rights to the materials distributed herewith. Except as
// otherwise provided in a valid license issued to you by
// Xilinx, and to the maximum extent permitted by applicable
// law: (1) THESE MATERIALS ARE MADE AVAILABLE "AS IS" AND
// WITH ALL FAULTS, AND XILINX HEREBY DISCLAIMS ALL WARRANTIES
// AND CONDITIONS, EXPRESS, IMPLIED, OR STATUTORY, INCLUDING
// BUT NOT LIMITED TO WARRANTIES OF MERCHANTABILITY, NON-
// INFRINGEMENT, OR FITNESS FOR ANY PARTICULAR PURPOSE; and
// (2) Xilinx shall not be liable (whether in contract or tort,
// including negligence, or under any other theory of
// liability) for any loss or damage of any kind or nature
// related to, arising under or in connection with these
// materials, including for any direct, or any indirect,
// special, incidental, or consequential loss or damage
// (including loss of data, profits, goodwill, or any type of
// loss or damage suffered as a result of any action brought
// by a third party) even if such damage or loss was
// reasonably foreseeable or Xilinx had been advised of the
// possibility of the same.
//
// CRITICAL APPLICATIONS
// Xilinx products are not designed or intended to be fail-
// safe, or for use in any application requiring fail-safe
// performance, such as life-support or safety devices or
// systems, Class III medical devices, nuclear facilities,
// applications related to the deployment of airbags, or any
// other applications that could lead to death, personal
// injury, or severe property or environmental damage
// (individually and collectively, "Critical
// Applications"). Customer assumes the sole risk and
// liability of any use of Xilinx products in Critical
// Applications, subject only to applicable laws and
// regulations governing limitations on product liability.
//
// THIS COPYRIGHT NOTICE AND DISCLAIMER MUST BE RETAINED AS
// PART OF THIS FILE AT ALL TIMES.
//
// DO NOT MODIFY THIS FILE.
// IP VLNV: xilinx.com:hls:set:1.0
// IP Revision: 1602022136
// The following must be inserted into your Verilog file for this
// core to be instantiated. Change the instance name and port connections
// (in parentheses) to your own signal names.
//----------- Begin Cut here for INSTANTIATION Template ---// INST_TAG
zc702_set_0_0 your_instance_name (
.ap_clk(ap_clk), // input wire ap_clk
.ap_rst_n(ap_rst_n), // input wire ap_rst_n
.ap_start(ap_start), // input wire ap_start
.ap_done(ap_done), // output wire ap_done
.ap_idle(ap_idle), // output wire ap_idle
.ap_ready(ap_ready), // output wire ap_ready
.ap_return(ap_return), // output wire [31 : 0] ap_return
.m_axi_gmem_AWADDR(m_axi_gmem_AWADDR), // output wire [31 : 0] m_axi_gmem_AWADDR
.m_axi_gmem_AWLEN(m_axi_gmem_AWLEN), // output wire [7 : 0] m_axi_gmem_AWLEN
.m_axi_gmem_AWSIZE(m_axi_gmem_AWSIZE), // output wire [2 : 0] m_axi_gmem_AWSIZE
.m_axi_gmem_AWBURST(m_axi_gmem_AWBURST), // output wire [1 : 0] m_axi_gmem_AWBURST
.m_axi_gmem_AWLOCK(m_axi_gmem_AWLOCK), // output wire [1 : 0] m_axi_gmem_AWLOCK
.m_axi_gmem_AWREGION(m_axi_gmem_AWREGION), // output wire [3 : 0] m_axi_gmem_AWREGION
.m_axi_gmem_AWCACHE(m_axi_gmem_AWCACHE), // output wire [3 : 0] m_axi_gmem_AWCACHE
.m_axi_gmem_AWPROT(m_axi_gmem_AWPROT), // output wire [2 : 0] m_axi_gmem_AWPROT
.m_axi_gmem_AWQOS(m_axi_gmem_AWQOS), // output wire [3 : 0] m_axi_gmem_AWQOS
.m_axi_gmem_AWVALID(m_axi_gmem_AWVALID), // output wire m_axi_gmem_AWVALID
.m_axi_gmem_AWREADY(m_axi_gmem_AWREADY), // input wire m_axi_gmem_AWREADY
.m_axi_gmem_WDATA(m_axi_gmem_WDATA), // output wire [31 : 0] m_axi_gmem_WDATA
.m_axi_gmem_WSTRB(m_axi_gmem_WSTRB), // output wire [3 : 0] m_axi_gmem_WSTRB
.m_axi_gmem_WLAST(m_axi_gmem_WLAST), // output wire m_axi_gmem_WLAST
.m_axi_gmem_WVALID(m_axi_gmem_WVALID), // output wire m_axi_gmem_WVALID
.m_axi_gmem_WREADY(m_axi_gmem_WREADY), // input wire m_axi_gmem_WREADY
.m_axi_gmem_BRESP(m_axi_gmem_BRESP), // input wire [1 : 0] m_axi_gmem_BRESP
.m_axi_gmem_BVALID(m_axi_gmem_BVALID), // input wire m_axi_gmem_BVALID
.m_axi_gmem_BREADY(m_axi_gmem_BREADY), // output wire m_axi_gmem_BREADY
.m_axi_gmem_ARADDR(m_axi_gmem_ARADDR), // output wire [31 : 0] m_axi_gmem_ARADDR
.m_axi_gmem_ARLEN(m_axi_gmem_ARLEN), // output wire [7 : 0] m_axi_gmem_ARLEN
.m_axi_gmem_ARSIZE(m_axi_gmem_ARSIZE), // output wire [2 : 0] m_axi_gmem_ARSIZE
.m_axi_gmem_ARBURST(m_axi_gmem_ARBURST), // output wire [1 : 0] m_axi_gmem_ARBURST
.m_axi_gmem_ARLOCK(m_axi_gmem_ARLOCK), // output wire [1 : 0] m_axi_gmem_ARLOCK
.m_axi_gmem_ARREGION(m_axi_gmem_ARREGION), // output wire [3 : 0] m_axi_gmem_ARREGION
.m_axi_gmem_ARCACHE(m_axi_gmem_ARCACHE), // output wire [3 : 0] m_axi_gmem_ARCACHE
.m_axi_gmem_ARPROT(m_axi_gmem_ARPROT), // output wire [2 : 0] m_axi_gmem_ARPROT
.m_axi_gmem_ARQOS(m_axi_gmem_ARQOS), // output wire [3 : 0] m_axi_gmem_ARQOS
.m_axi_gmem_ARVALID(m_axi_gmem_ARVALID), // output wire m_axi_gmem_ARVALID
.m_axi_gmem_ARREADY(m_axi_gmem_ARREADY), // input wire m_axi_gmem_ARREADY
.m_axi_gmem_RDATA(m_axi_gmem_RDATA), // input wire [31 : 0] m_axi_gmem_RDATA
.m_axi_gmem_RRESP(m_axi_gmem_RRESP), // input wire [1 : 0] m_axi_gmem_RRESP
.m_axi_gmem_RLAST(m_axi_gmem_RLAST), // input wire m_axi_gmem_RLAST
.m_axi_gmem_RVALID(m_axi_gmem_RVALID), // input wire m_axi_gmem_RVALID
.m_axi_gmem_RREADY(m_axi_gmem_RREADY), // output wire m_axi_gmem_RREADY
.data(data), // input wire [31 : 0] data
.key(key), // input wire [31 : 0] key
.val_r(val_r) // input wire [31 : 0] val_r
);
// INST_TAG_END ------ End INSTANTIATION Template ---------
// You must compile the wrapper file zc702_set_0_0.v when simulating
// the core, zc702_set_0_0. When compiling the wrapper file, be sure to
// reference the Verilog simulation library.
| Verilog | 4 | chris-wood/yield | sdsoc/hash/SDDebug/_sds/p0/ipi/zc702.srcs/sources_1/bd/zc702/ip/zc702_set_0_0/zc702_set_0_0.veo | [
"MIT"
] |
s=".[:s,:=,s inspect,s]map(print)\n".[:s,:=,s inspect,s]map(print)
| Ioke | 2 | MakeNowJust/quine | quine.ik | [
"Beerware"
] |
import language.experimental.macros
import scala.reflect.macros.blackbox.Context
object M {
def impl(c: Context)(a: c.Expr[Any]) = c.Expr[Any](c.untypecheck(a.tree))
def m(a: Any): Any = macro impl
}
| Scala | 3 | jamesanto/scala | test/files/pos/annotated-original/M_1.scala | [
"Apache-2.0"
] |
<cfquery name="foo"/> | ColdFusion CFC | 0 | tonym128/CFLint | src/test/resources/com/cflint/tests/CFDebugAttributeChecker/cfquery5_490.cfc | [
"BSD-3-Clause"
] |
#pragma TextEncoding = "UTF-8"
#pragma rtGlobals=3
#pragma ModuleName=zqm_set
// This file is part of the `ZeroMQ-XOP` project and licensed under BSD-3-Clause.
Function ComplainsWithUnknownFlagsLow()
variable err, ret
try
ret = zeromq_set(-1); AbortOnRTE
FAIL()
catch
err = GetRTError(1)
CheckErrorMessage(err, ZeroMQ_UNKNOWN_SET_FLAG)
endtry
CHECK_EQUAL_VAR(ret, 0)
End
Function ComplainsWithUnknownFlagsHigh()
variable err, ret
try
ret = zeromq_set(32); AbortOnRTE
FAIL()
catch
err = GetRTError(1)
CheckErrorMessage(err, ZeroMQ_UNKNOWN_SET_FLAG)
PASS()
endtry
CHECK_EQUAL_VAR(ret, 0)
End
Function AcceptsDefaultFlag()
variable ret, err
try
ret = zeromq_set(ZeroMQ_SET_FLAGS_DEFAULT); AbortOnRTE
PASS()
catch
err = GetRTError(1)
FAIL()
endtry
CHECK_EQUAL_VAR(ret, 0)
End
Function AcceptsDebugFlag()
variable ret, err
try
ret = zeromq_set(ZeroMQ_SET_FLAGS_DEBUG); AbortOnRTE
PASS()
catch
err = GetRTError(1)
FAIL()
endtry
CHECK_EQUAL_VAR(ret, 0)
End
Function AcceptsIPV6Flag()
variable ret, err
try
ret = zeromq_set(ZeroMQ_SET_FLAGS_IPV6); AbortOnRTE
PASS()
catch
err = GetRTError(1)
FAIL()
endtry
CHECK_EQUAL_VAR(ret, 0)
End
Function AcceptsRecvWaitFlag()
variable ret, err
try
ret = zeromq_set(ZeroMQ_SET_FLAGS_NOBUSYWAITRECV); AbortOnRTE
PASS()
catch
err = GetRTError(1)
FAIL()
endtry
CHECK_EQUAL_VAR(ret, 0)
End
Function AcceptsMultipleFLags()
variable ret, err
try
ret = zeromq_set(ZeroMQ_SET_FLAGS_IPV6 | ZeroMQ_SET_FLAGS_DEBUG); AbortOnRTE
PASS()
catch
err = GetRTError(1)
FAIL()
endtry
CHECK_EQUAL_VAR(ret, 0)
End
| IGOR Pro | 4 | AllenInstitute/ZeroMQ-XOP | tests/zmq_set.ipf | [
"BSD-3-Clause"
] |
fileFormatVersion: 2
guid: 186c4c0d31e314f049595dcbaf4ca129
ShaderImporter:
userData:
| Unity3D Asset | 0 | ceko/UnityChallenge2 | Assets/Standard Assets/Effects/ImageEffects/Shaders/_BloomAndFlares/BrightPassFilter.shader.meta | [
"MIT"
] |
library(reticulate)
py_install("seaborn")
use_virtualenv("r-reticulate")
sns <- import("seaborn")
fmri <- sns$load_dataset("fmri")
dim(fmri)
# creates tips
source_python("python.py")
dim(tips)
# creates tips in main
py_run_file("python.py")
dim(py$tips)
py_run_string("print(tips.shape)")
| R | 3 | hyunjoohong23/cheatsheets | misc-code/python.r | [
"CC-BY-4.0"
] |
SELECT quantilesTiming(0.99)(arrayJoin(range(100000)));
| SQL | 3 | pdv-ru/ClickHouse | tests/queries/0_stateless/00323_quantiles_timing_bug.sql | [
"Apache-2.0"
] |
class(
x : 'heap string
) { this }
c : class("string") | Objective-J | 1 | justinmann/sj | tests/class18.sj | [
"Apache-2.0"
] |
import b from "./b";
import d from "./d";
console.log(b, d);
import(/* webpackChunkName: "async2" */ "./async2");
| JavaScript | 3 | 1shenxi/webpack | test/statsCases/module-deduplication-named/async1.js | [
"MIT"
] |
a = 0
f1 = def ():
a = 5
return { return a }
f = f1()
assert f is not null
assert 5 == f()
assert 5 == a
| Boo | 0 | popcatalin81/boo | tests/testcases/integration/closures/closures-27.boo | [
"BSD-3-Clause"
] |
{-#LANGUAGE ForeignFunctionInterface#-}
#include "cvWrapLEO.h"
module CV.Histogram
( module CV.Histogram
, I.Histogram
) where
import CV.Image
{#import CV.Image#}
import Data.List
import Data.Array
import Data.Array.ST
import Foreign.C.Types
import Foreign.ForeignPtr
import Foreign.Marshal.Array
import Foreign.Marshal.Alloc
import Foreign.Ptr
import CV.Bindings.Types
import qualified CV.Bindings.ImgProc as I
import System.IO.Unsafe
import Utils.Pointer
-- import Utils.List
newtype HistogramData a = HGD [(a,a)]
-- | Given a set of images, such as the color channels of color image, and
-- a histogram with corresponding number of channels, replace the pixels of
-- the image with the likelihoods from the histogram
backProjectHistogram :: [Image GrayScale D8] -> I.Histogram -> Image GrayScale D8
backProjectHistogram images@(img:_) (I.Histogram hist) = unsafePerformIO $ do
r <- cloneImage img
withImage r $ \c_r ->
withPtrList (map imageFPTR images) $ \ptrs ->
withForeignPtr hist $ \c_hist ->
I.c'cvCalcArrBackProject (castPtr ptrs) (castPtr c_r) c_hist
return r
backProjectHistogram _ _ = error "Empty list of images"
-- | Calculate an opencv histogram object from set of images, each with it's
-- own number of bins.
histogram :: [(Image GrayScale D8, Int)] -> Bool -> Maybe (Image GrayScale D8)
-> I.Histogram
histogram imageBins accumulate mask = unsafePerformIO $
I.creatingHistogram $ do
hist <- I.emptyUniformHistogramND ds
withPtrList (map imageFPTR images) $ \ptrs ->
case mask of
Just m -> do
withImage m $ \c_mask -> do
I.c'cvCalcArrHist (castPtr ptrs) hist c_accumulate (castPtr c_mask)
return hist
Nothing -> do
I.c'cvCalcArrHist (castPtr ptrs) hist c_accumulate (nullPtr)
return hist
where
(images,ds) = unzip imageBins
c_accumulate = 0
-- getHistogramBin (I.Histogram hs) n = unsafePerformIO $ withForeignPtr hs (\h -> I.c'cvGetHistValue_1D (castPtr h) n)
---- Assume [0,1] distribution and calculate skewness
--skewness bins image = do
-- hg <- buildHistogram cbins image
-- bins <- mapM (getBin hg) [0..cbins-1]
-- let avg = sum bins / (fromIntegral.length) bins
-- let u3 = sum.map (\(value,bin) ->
-- (value-avg)*(value-avg)*(value-avg)
-- *bin) $
-- zip binValues bins
-- let u2 = sum.map (\(value,bin) ->
-- (value-avg)*(value-avg)
-- *bin) $
-- zip binValues bins
----
-- return (u3 / (sqrt u2*sqrt u2*sqrt u2))
-- where
-- cbins :: CInt
-- cbins = fromIntegral bins
-- binValues = [0,fstep..1]
-- fstep = 1/(fromIntegral bins)
values (HGD a) = snd.unzip $ a
-- This does not make any sense!
cmpUnion a b = sum $ zipWith (max) a b
cmpIntersect a b = sum $ zipWith min a b
cmpEuclidian a b = sum $ (zipWith (\x y -> (x-y)^2) a b)
cmpAbs a b = sum $ (zipWith (\x y -> abs (x-y)) a b)
chiSqrHG a b = chiSqr (values a) (values b)
chiSqr a b = sum $ zipWith (calc) a b
where
calc a b = (a-b)*(a-b) `divide` (a+b)
divide a b | abs(b) > 0.000001 = a/b
| otherwise = 0
liftBins op (HGD a) = zip (op bins) values
where (bins,values) = unzip a
liftValues op (HGD a) = zip bins (op values)
where (bins,values) = unzip a
sub (HGD a) (HGD b) | bins a == bins b
= HGD $ zip (bins a) values
where
bins a = map fst a
msnd = map snd
values = zipWith (-) (msnd a) (msnd b)
noBins (HGD a) = length a
getPositivePart (HGD a) = HGD $ dropWhile ((<0).fst) a
tcumulate [] = []
tcumulate values = tail $ scanl (+) 0 values
--getCumulativeNormalHistogram binCount image
-- = HGD $ zip bins $ tcumulate values
-- where
-- HGD lst = getNormalHistogram binCount image
-- bins :: [Double]
-- values :: [Double]
-- (bins,values) = unzip lst
weightedHistogram img weights start end binCount = unsafePerformIO $
withImage img $ \i ->
withImage weights $ \w -> do
bins <- mallocArray (fromIntegral binCount)
{#call get_weighted_histogram#} i w (realToFrac start)
(realToFrac end)
(fromIntegral binCount) bins
r <- peekArray binCount bins >>= return.map realToFrac
free bins
return r
-- TODO: Add binary images
simpleGetHistogram :: Image GrayScale D32 -> Maybe (Image GrayScale D8)
-> D32 -> D32 -> Int -> Bool -> [D32]
simpleGetHistogram img mask start end binCount cumulative = unsafePerformIO $
withImage img $ \i -> do
bins <- mallocArray binCount
let isCum | cumulative == True = 1
| cumulative == False = 0
case mask of
(Just msk) -> do
withImage msk $ \m -> do
{#call get_histogram#} i m (realToFrac start) (realToFrac end)
isCum (fromIntegral binCount) bins
Nothing -> {#call get_histogram#} i (nullPtr)
(realToFrac start) (realToFrac end)
isCum (fromIntegral binCount) bins
r <- peekArray binCount bins >>= return.map realToFrac
free bins
return r
--getNormalHistogram bins image = HGD new
-- where
-- (HGD lst) = getHistogram bins image
----
---- value :: [Double]
-- bin :: [Double]
-- (bin,value) = unzip lst
-- new = zip bin $ map (/size) value
-- size = fromIntegral $ uncurry (*) $ getSize image
--getHistogram :: Int -> Image GrayScale D32 -> HistogramData Double
--getHistogram bins image = unsafePerformIO $ do
-- h <- buildHistogram cbins image
-- values <- mapM (getBin h)
-- [0..fromIntegral bins-1]
-- return.HGD $
-- zip [-1,-1+2/(realToFrac bins)..1] values
-- where
-- cbins = fromIntegral bins
| C2hs Haskell | 5 | maaleske/CV | CV/Histogram.chs | [
"BSD-3-Clause"
] |
FORMS += \
$$PWD/frmmain.ui
HEADERS += \
$$PWD/frmmain.h
SOURCES += \
$$PWD/frmmain.cpp
| QMake | 1 | liyuzhao/QWidgetDemo | netserver/form/form.pri | [
"MulanPSL-1.0"
] |
#
# Makefile to run all tests for Vim on VMS
#
# Authors: Zoltan Arpadffy, <arpadffy@polarhome.com>
# Sandor Kopanyi, <sandor.kopanyi@mailbox.hu>
#
# Last change: 2020 Aug 13
#
# This has been tested on VMS 6.2 to 8.3 on DEC Alpha, VAX and IA64.
# Edit the lines in the Configuration section below to select.
#
# Execute with:
# mms/descrip=Make_vms.mms
# Cleanup with:
# mms/descrip=Make_vms.mms clean
#
# Make files are MMK compatible.
#
# NOTE: You can run this script just in X/Window environment. It will
# create a new terminals, therefore you have to set up your DISPLAY
# logical. More info in VMS documentation or with: help set disp.
#
#######################################################################
# Configuration section.
#######################################################################
# Uncomment if you want tests in GUI mode. Terminal mode is default.
# WANT_GUI = YES
#######################################################################
# End of configuration section.
#
# Please, do not change anything below without programming experience.
#######################################################################
VIMPROG = <->vim.exe
.SUFFIXES : .out .in
SCRIPT = test20.out test21.out test22.out test23.out test24.out \
test25.out test26.out test27.out \
test77a.out
.IFDEF WANT_GUI
GUI_OPTION = -g
.ENDIF
.in.out :
-@ !clean up before doing the test
-@ if "''F$SEARCH("test.out.*")'" .NES. "" then delete/noconfirm/nolog test.out.*
-@ if "''F$SEARCH("$*.out.*")'" .NES. "" then delete/noconfirm/nolog $*.out.*
-@ ! define TMP if not set - some tests use it
-@ if "''F$TRNLNM("TMP")'" .EQS. "" then define/nolog TMP []
-@ write sys$output " "
-@ write sys$output "-----------------------------------------------"
-@ write sys$output " "$*" "
-@ write sys$output "-----------------------------------------------"
-@ !run the test
-@ create/term/wait/nodetach mcr $(VIMPROG) $(GUI_OPTION) -u vms.vim --noplugin -s dotest.in $*.in
-@ !analyse the result
-@ directory /size/date test.out
-@ if "''F$SEARCH("test.out.*")'" .NES. "" then rename/nolog test.out $*.out
-@ if "''F$SEARCH("$*.out.*")'" .NES. "" then differences /par $*.out $*.ok;
-@ !clean up after the test
-@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
-@ if "''F$SEARCH("Xtest.*")'" .NES. "" then delete/noconfirm/nolog Xtest.*.*
all : clean nolog $(START_WITH) $(SCRIPT) nolog
-@ write sys$output " "
-@ write sys$output "-----------------------------------------------"
-@ write sys$output " All done"
-@ write sys$output "-----------------------------------------------"
-@ deassign sys$output
-@ delete/noconfirm/nolog x*.*.*
-@ type test.log
nolog :
-@ define sys$output test.log
-@ write sys$output "-----------------------------------------------"
-@ write sys$output " Standard VIM test cases"
-@ write sys$output "-----------------------------------------------"
-@ write sys$output " OpenVMS version: ''F$GETSYI("VERSION")'"
-@ write sys$output " Vim version:"
-@ mcr $(VIMPROG) --version
-@ write sys$output " Test date:"
-@ show time
-@ write sys$output "-----------------------------------------------"
-@ write sys$output " Test results:"
-@ write sys$output "-----------------------------------------------"
-@ write sys$output "MAKE_VMS.MMS options:"
-@ write sys$output " WANT_GUI = ""$(WANT_GUI)"" "
-@ write sys$output "Default vimrc file is VMS.VIM:"
-@ write sys$output "-----------------------------------------------"
-@ type VMS.VIM
clean :
-@ if "''F$SEARCH("*.out")'" .NES. "" then delete/noconfirm/nolog *.out.*
-@ if "''F$SEARCH("test.log")'" .NES. "" then delete/noconfirm/nolog test.log.*
-@ if "''F$SEARCH("test.ok")'" .NES. "" then delete/noconfirm/nolog test.ok.*
-@ if "''F$SEARCH("Xdotest.*")'" .NES. "" then delete/noconfirm/nolog Xdotest.*.*
-@ if "''F$SEARCH("Xtest*.*")'" .NES. "" then delete/noconfirm/nolog Xtest*.*.*
-@ if "''F$SEARCH("XX*.*")'" .NES. "" then delete/noconfirm/nolog XX*.*.*
-@ if "''F$SEARCH("_un_*.*")'" .NES. "" then delete/noconfirm/nolog _un_*.*.*
-@ if "''F$SEARCH("*.*_sw*")'" .NES. "" then delete/noconfirm/nolog *.*_sw*.*
-@ if "''F$SEARCH("*.failed")'" .NES. "" then delete/noconfirm/nolog *.failed.*
-@ if "''F$SEARCH("*.rej")'" .NES. "" then delete/noconfirm/nolog *.rej.*
-@ if "''F$SEARCH("viminfo.*")'" .NES. "" then delete/noconfirm/nolog viminfo.*.*
| Module Management System | 4 | joye1503/vim | src/testdir/Make_vms.mms | [
"Vim"
] |
"use strict";
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _createSvgIcon = _interopRequireDefault(require("./utils/createSvgIcon"));
var _jsxRuntime = require("react/jsx-runtime");
var _default = (0, _createSvgIcon.default)( /*#__PURE__*/(0, _jsxRuntime.jsx)("path", {
d: "M21.5 14.98c-.02 0-.03 0-.05.01C21.2 13.3 19.76 12 18 12c-1.4 0-2.6.83-3.16 2.02C13.26 14.1 12 15.4 12 17c0 1.66 1.34 3 3 3l6.5-.02c1.38 0 2.5-1.12 2.5-2.5s-1.12-2.5-2.5-2.5zm.01 3.02H15c-.55 0-1-.45-1-1s.45-1 1-1h1.25v-.25c0-.97.78-1.75 1.75-1.75s1.75.78 1.75 1.75V17h1.76c.28 0 .5.22.5.5-.01.27-.23.5-.5.5zM10 4.26v2.09C7.67 7.18 6 9.39 6 12c0 1.77.78 3.34 2 4.44V14h2v6H4v-2h2.73C5.06 16.54 4 14.4 4 12c0-3.73 2.55-6.85 6-7.74zM20 6h-2.73c1.43 1.26 2.41 3.01 2.66 5h-2.02c-.23-1.36-.93-2.55-1.91-3.44V10h-2V4h6v2z"
}), 'CloudSyncOutlined');
exports.default = _default; | JavaScript | 4 | dany-freeman/material-ui | packages/mui-icons-material/lib/CloudSyncOutlined.js | [
"MIT"
] |
<cfoutput><!DOCTYPE html><html><head><title>Fortunes</title></head><body><table><tr><th>id</th><th>message</th></tr>
<cfloop query="#prc.qry#"><tr><td>#prc.qry.id#</td><td>#htmlEditFormat( prc.qry.message )#</td></tr></cfloop>
</table></body></html>
</cfoutput> | ColdFusion | 3 | tommilligan/FrameworkBenchmarks | frameworks/CFML/coldbox/src/views/main/fortunes.cfm | [
"BSD-3-Clause"
] |
module.exports (terms) = terms.term {
constructor () =
self.isCallback = true
parameter () =
self
generate (scope) =
terms.callbackFunction.generate (scope)
}
| PogoScript | 0 | Sotrek/Alexa | Alexa_Cookbook/Workshop/StatePop/4_IOT/tests/node_modules/aws-sdk/node_modules/cucumber/node_modules/pogo/lib/terms/callback.pogo | [
"MIT"
] |
// Copyright 2006-2015 Las Venturas Playground. All rights reserved.
// Use of this source code is governed by the GPLv2 license, a copy of which can
// be found in the LICENSE file.
class AmmunationGuard {
}
| PAWN | 0 | EPIC-striker/playground | pawn/Features/Deathmatch/Ammunation/AmmunationGuard.pwn | [
"MIT"
] |
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: graph.proto
#include "graph.pb.h"
#include <algorithm>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
PROTOBUF_PRAGMA_INIT_SEG
namespace opencv_tensorflow {
constexpr GraphDef::GraphDef(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: node_()
, library_(nullptr)
, versions_(nullptr)
, version_(0){}
struct GraphDefDefaultTypeInternal {
constexpr GraphDefDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~GraphDefDefaultTypeInternal() {}
union {
GraphDef _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT GraphDefDefaultTypeInternal _GraphDef_default_instance_;
constexpr NodeDef_AttrEntry_DoNotUse::NodeDef_AttrEntry_DoNotUse(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized){}
struct NodeDef_AttrEntry_DoNotUseDefaultTypeInternal {
constexpr NodeDef_AttrEntry_DoNotUseDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~NodeDef_AttrEntry_DoNotUseDefaultTypeInternal() {}
union {
NodeDef_AttrEntry_DoNotUse _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NodeDef_AttrEntry_DoNotUseDefaultTypeInternal _NodeDef_AttrEntry_DoNotUse_default_instance_;
constexpr NodeDef::NodeDef(
::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
: input_()
, attr_(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{})
, name_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, op_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string)
, device_(&::PROTOBUF_NAMESPACE_ID::internal::fixed_address_empty_string){}
struct NodeDefDefaultTypeInternal {
constexpr NodeDefDefaultTypeInternal()
: _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
~NodeDefDefaultTypeInternal() {}
union {
NodeDef _instance;
};
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT NodeDefDefaultTypeInternal _NodeDef_default_instance_;
} // namespace opencv_tensorflow
static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_graph_2eproto[3];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_graph_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_graph_2eproto = nullptr;
const uint32_t TableStruct_graph_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::GraphDef, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::GraphDef, node_),
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::GraphDef, versions_),
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::GraphDef, version_),
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::GraphDef, library_),
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, _has_bits_),
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, key_),
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse, value_),
0,
1,
~0u, // no _has_bits_
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::NodeDef, _internal_metadata_),
~0u, // no _extensions_
~0u, // no _oneof_case_
~0u, // no _weak_field_map_
~0u, // no _inlined_string_donated_
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::NodeDef, name_),
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::NodeDef, op_),
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::NodeDef, input_),
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::NodeDef, device_),
PROTOBUF_FIELD_OFFSET(::opencv_tensorflow::NodeDef, attr_),
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
{ 0, -1, -1, sizeof(::opencv_tensorflow::GraphDef)},
{ 10, 18, -1, sizeof(::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse)},
{ 20, -1, -1, sizeof(::opencv_tensorflow::NodeDef)},
};
static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_GraphDef_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_NodeDef_AttrEntry_DoNotUse_default_instance_),
reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::opencv_tensorflow::_NodeDef_default_instance_),
};
const char descriptor_table_protodef_graph_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
"\n\013graph.proto\022\021opencv_tensorflow\032\020attr_v"
"alue.proto\032\016function.proto\032\016versions.pro"
"to\"\262\001\n\010GraphDef\022(\n\004node\030\001 \003(\0132\032.opencv_t"
"ensorflow.NodeDef\022/\n\010versions\030\004 \001(\0132\035.op"
"encv_tensorflow.VersionDef\022\023\n\007version\030\003 "
"\001(\005B\002\030\001\0226\n\007library\030\002 \001(\0132%.opencv_tensor"
"flow.FunctionDefLibrary\"\301\001\n\007NodeDef\022\014\n\004n"
"ame\030\001 \001(\t\022\n\n\002op\030\002 \001(\t\022\r\n\005input\030\003 \003(\t\022\016\n\006"
"device\030\004 \001(\t\0222\n\004attr\030\005 \003(\0132$.opencv_tens"
"orflow.NodeDef.AttrEntry\032I\n\tAttrEntry\022\013\n"
"\003key\030\001 \001(\t\022+\n\005value\030\002 \001(\0132\034.opencv_tenso"
"rflow.AttrValue:\0028\001B,\n\030org.tensorflow.fr"
"ameworkB\013GraphProtosP\001\370\001\001b\006proto3"
;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_graph_2eproto_deps[3] = {
&::descriptor_table_attr_5fvalue_2eproto,
&::descriptor_table_function_2eproto,
&::descriptor_table_versions_2eproto,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_graph_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_graph_2eproto = {
false, false, 513, descriptor_table_protodef_graph_2eproto, "graph.proto",
&descriptor_table_graph_2eproto_once, descriptor_table_graph_2eproto_deps, 3, 3,
schemas, file_default_instances, TableStruct_graph_2eproto::offsets,
file_level_metadata_graph_2eproto, file_level_enum_descriptors_graph_2eproto, file_level_service_descriptors_graph_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_graph_2eproto_getter() {
return &descriptor_table_graph_2eproto;
}
// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_graph_2eproto(&descriptor_table_graph_2eproto);
namespace opencv_tensorflow {
// ===================================================================
class GraphDef::_Internal {
public:
static const ::opencv_tensorflow::VersionDef& versions(const GraphDef* msg);
static const ::opencv_tensorflow::FunctionDefLibrary& library(const GraphDef* msg);
};
const ::opencv_tensorflow::VersionDef&
GraphDef::_Internal::versions(const GraphDef* msg) {
return *msg->versions_;
}
const ::opencv_tensorflow::FunctionDefLibrary&
GraphDef::_Internal::library(const GraphDef* msg) {
return *msg->library_;
}
void GraphDef::clear_versions() {
if (GetArenaForAllocation() == nullptr && versions_ != nullptr) {
delete versions_;
}
versions_ = nullptr;
}
void GraphDef::clear_library() {
if (GetArenaForAllocation() == nullptr && library_ != nullptr) {
delete library_;
}
library_ = nullptr;
}
GraphDef::GraphDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
node_(arena) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.GraphDef)
}
GraphDef::GraphDef(const GraphDef& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
node_(from.node_) {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
if (from._internal_has_library()) {
library_ = new ::opencv_tensorflow::FunctionDefLibrary(*from.library_);
} else {
library_ = nullptr;
}
if (from._internal_has_versions()) {
versions_ = new ::opencv_tensorflow::VersionDef(*from.versions_);
} else {
versions_ = nullptr;
}
version_ = from.version_;
// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.GraphDef)
}
inline void GraphDef::SharedCtor() {
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
reinterpret_cast<char*>(&library_) - reinterpret_cast<char*>(this)),
0, static_cast<size_t>(reinterpret_cast<char*>(&version_) -
reinterpret_cast<char*>(&library_)) + sizeof(version_));
}
GraphDef::~GraphDef() {
// @@protoc_insertion_point(destructor:opencv_tensorflow.GraphDef)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
inline void GraphDef::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
if (this != internal_default_instance()) delete library_;
if (this != internal_default_instance()) delete versions_;
}
void GraphDef::ArenaDtor(void* object) {
GraphDef* _this = reinterpret_cast< GraphDef* >(object);
(void)_this;
}
void GraphDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void GraphDef::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void GraphDef::Clear() {
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.GraphDef)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
node_.Clear();
if (GetArenaForAllocation() == nullptr && library_ != nullptr) {
delete library_;
}
library_ = nullptr;
if (GetArenaForAllocation() == nullptr && versions_ != nullptr) {
delete versions_;
}
versions_ = nullptr;
version_ = 0;
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* GraphDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// repeated .opencv_tensorflow.NodeDef node = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(_internal_add_node(), ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
} else
goto handle_unusual;
continue;
// .opencv_tensorflow.FunctionDefLibrary library = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
ptr = ctx->ParseMessage(_internal_mutable_library(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// int32 version = 3 [deprecated = true];
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
// .opencv_tensorflow.VersionDef versions = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
ptr = ctx->ParseMessage(_internal_mutable_versions(), ptr);
CHK_(ptr);
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* GraphDef::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.GraphDef)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// repeated .opencv_tensorflow.NodeDef node = 1;
for (unsigned int i = 0,
n = static_cast<unsigned int>(this->_internal_node_size()); i < n; i++) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(1, this->_internal_node(i), target, stream);
}
// .opencv_tensorflow.FunctionDefLibrary library = 2;
if (this->_internal_has_library()) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
2, _Internal::library(this), target, stream);
}
// int32 version = 3 [deprecated = true];
if (this->_internal_version() != 0) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_version(), target);
}
// .opencv_tensorflow.VersionDef versions = 4;
if (this->_internal_has_versions()) {
target = stream->EnsureSpace(target);
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
InternalWriteMessage(
4, _Internal::versions(this), target, stream);
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.GraphDef)
return target;
}
size_t GraphDef::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.GraphDef)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated .opencv_tensorflow.NodeDef node = 1;
total_size += 1UL * this->_internal_node_size();
for (const auto& msg : this->node_) {
total_size +=
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
}
// .opencv_tensorflow.FunctionDefLibrary library = 2;
if (this->_internal_has_library()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*library_);
}
// .opencv_tensorflow.VersionDef versions = 4;
if (this->_internal_has_versions()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
*versions_);
}
// int32 version = 3 [deprecated = true];
if (this->_internal_version() != 0) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32SizePlusOne(this->_internal_version());
}
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData GraphDef::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
GraphDef::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*GraphDef::GetClassData() const { return &_class_data_; }
void GraphDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
const ::PROTOBUF_NAMESPACE_ID::Message& from) {
static_cast<GraphDef *>(to)->MergeFrom(
static_cast<const GraphDef &>(from));
}
void GraphDef::MergeFrom(const GraphDef& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.GraphDef)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
node_.MergeFrom(from.node_);
if (from._internal_has_library()) {
_internal_mutable_library()->::opencv_tensorflow::FunctionDefLibrary::MergeFrom(from._internal_library());
}
if (from._internal_has_versions()) {
_internal_mutable_versions()->::opencv_tensorflow::VersionDef::MergeFrom(from._internal_versions());
}
if (from._internal_version() != 0) {
_internal_set_version(from._internal_version());
}
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void GraphDef::CopyFrom(const GraphDef& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.GraphDef)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool GraphDef::IsInitialized() const {
return true;
}
void GraphDef::InternalSwap(GraphDef* other) {
using std::swap;
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
node_.InternalSwap(&other->node_);
::PROTOBUF_NAMESPACE_ID::internal::memswap<
PROTOBUF_FIELD_OFFSET(GraphDef, version_)
+ sizeof(GraphDef::version_)
- PROTOBUF_FIELD_OFFSET(GraphDef, library_)>(
reinterpret_cast<char*>(&library_),
reinterpret_cast<char*>(&other->library_));
}
::PROTOBUF_NAMESPACE_ID::Metadata GraphDef::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_graph_2eproto_getter, &descriptor_table_graph_2eproto_once,
file_level_metadata_graph_2eproto[0]);
}
// ===================================================================
NodeDef_AttrEntry_DoNotUse::NodeDef_AttrEntry_DoNotUse() {}
NodeDef_AttrEntry_DoNotUse::NodeDef_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
: SuperType(arena) {}
void NodeDef_AttrEntry_DoNotUse::MergeFrom(const NodeDef_AttrEntry_DoNotUse& other) {
MergeFromInternal(other);
}
::PROTOBUF_NAMESPACE_ID::Metadata NodeDef_AttrEntry_DoNotUse::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_graph_2eproto_getter, &descriptor_table_graph_2eproto_once,
file_level_metadata_graph_2eproto[1]);
}
// ===================================================================
class NodeDef::_Internal {
public:
};
void NodeDef::clear_attr() {
attr_.Clear();
}
NodeDef::NodeDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
bool is_message_owned)
: ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
input_(arena),
attr_(arena) {
SharedCtor();
if (!is_message_owned) {
RegisterArenaDtor(arena);
}
// @@protoc_insertion_point(arena_constructor:opencv_tensorflow.NodeDef)
}
NodeDef::NodeDef(const NodeDef& from)
: ::PROTOBUF_NAMESPACE_ID::Message(),
input_(from.input_) {
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
attr_.MergeFrom(from.attr_);
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_name().empty()) {
name_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_name(),
GetArenaForAllocation());
}
op_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_op().empty()) {
op_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_op(),
GetArenaForAllocation());
}
device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
if (!from._internal_device().empty()) {
device_.Set(::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::EmptyDefault{}, from._internal_device(),
GetArenaForAllocation());
}
// @@protoc_insertion_point(copy_constructor:opencv_tensorflow.NodeDef)
}
inline void NodeDef::SharedCtor() {
name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
op_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
op_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
device_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), "", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}
NodeDef::~NodeDef() {
// @@protoc_insertion_point(destructor:opencv_tensorflow.NodeDef)
if (GetArenaForAllocation() != nullptr) return;
SharedDtor();
_internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
inline void NodeDef::SharedDtor() {
GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
op_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
device_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}
void NodeDef::ArenaDtor(void* object) {
NodeDef* _this = reinterpret_cast< NodeDef* >(object);
(void)_this;
_this->attr_. ~MapField();
}
inline void NodeDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena) {
if (arena != nullptr) {
arena->OwnCustomDestructor(this, &NodeDef::ArenaDtor);
}
}
void NodeDef::SetCachedSize(int size) const {
_cached_size_.Set(size);
}
void NodeDef::Clear() {
// @@protoc_insertion_point(message_clear_start:opencv_tensorflow.NodeDef)
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
input_.Clear();
attr_.Clear();
name_.ClearToEmpty();
op_.ClearToEmpty();
device_.ClearToEmpty();
_internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}
const char* NodeDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
while (!ctx->Done(&ptr)) {
uint32_t tag;
ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
switch (tag >> 3) {
// string name = 1;
case 1:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
auto str = _internal_mutable_name();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.NodeDef.name"));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// string op = 2;
case 2:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
auto str = _internal_mutable_op();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.NodeDef.op"));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// repeated string input = 3;
case 3:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
ptr -= 1;
do {
ptr += 1;
auto str = _internal_add_input();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.NodeDef.input"));
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
} else
goto handle_unusual;
continue;
// string device = 4;
case 4:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
auto str = _internal_mutable_device();
ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "opencv_tensorflow.NodeDef.device"));
CHK_(ptr);
} else
goto handle_unusual;
continue;
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
case 5:
if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
ptr -= 1;
do {
ptr += 1;
ptr = ctx->ParseMessage(&attr_, ptr);
CHK_(ptr);
if (!ctx->DataAvailable(ptr)) break;
} while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
} else
goto handle_unusual;
continue;
default:
goto handle_unusual;
} // switch
handle_unusual:
if ((tag == 0) || ((tag & 7) == 4)) {
CHK_(ptr);
ctx->SetLastTag(tag);
goto message_done;
}
ptr = UnknownFieldParse(
tag,
_internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
ptr, ctx);
CHK_(ptr != nullptr);
} // while
message_done:
return ptr;
failure:
ptr = nullptr;
goto message_done;
#undef CHK_
}
uint8_t* NodeDef::_InternalSerialize(
uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
// @@protoc_insertion_point(serialize_to_array_start:opencv_tensorflow.NodeDef)
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
// string name = 1;
if (!this->_internal_name().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"opencv_tensorflow.NodeDef.name");
target = stream->WriteStringMaybeAliased(
1, this->_internal_name(), target);
}
// string op = 2;
if (!this->_internal_op().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_op().data(), static_cast<int>(this->_internal_op().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"opencv_tensorflow.NodeDef.op");
target = stream->WriteStringMaybeAliased(
2, this->_internal_op(), target);
}
// repeated string input = 3;
for (int i = 0, n = this->_internal_input_size(); i < n; i++) {
const auto& s = this->_internal_input(i);
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
s.data(), static_cast<int>(s.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"opencv_tensorflow.NodeDef.input");
target = stream->WriteString(3, s, target);
}
// string device = 4;
if (!this->_internal_device().empty()) {
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
this->_internal_device().data(), static_cast<int>(this->_internal_device().length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"opencv_tensorflow.NodeDef.device");
target = stream->WriteStringMaybeAliased(
4, this->_internal_device(), target);
}
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
if (!this->_internal_attr().empty()) {
typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_pointer
ConstPtr;
typedef ConstPtr SortItem;
typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
struct Utf8Check {
static void Check(ConstPtr p) {
(void)p;
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
p->first.data(), static_cast<int>(p->first.length()),
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
"opencv_tensorflow.NodeDef.AttrEntry.key");
}
};
if (stream->IsSerializationDeterministic() &&
this->_internal_attr().size() > 1) {
::std::unique_ptr<SortItem[]> items(
new SortItem[this->_internal_attr().size()]);
typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::size_type size_type;
size_type n = 0;
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_iterator
it = this->_internal_attr().begin();
it != this->_internal_attr().end(); ++it, ++n) {
items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
}
::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
for (size_type i = 0; i < n; i++) {
target = NodeDef_AttrEntry_DoNotUse::Funcs::InternalSerialize(5, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target, stream);
Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
}
} else {
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_iterator
it = this->_internal_attr().begin();
it != this->_internal_attr().end(); ++it) {
target = NodeDef_AttrEntry_DoNotUse::Funcs::InternalSerialize(5, it->first, it->second, target, stream);
Utf8Check::Check(&(*it));
}
}
}
if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
_internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
}
// @@protoc_insertion_point(serialize_to_array_end:opencv_tensorflow.NodeDef)
return target;
}
size_t NodeDef::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:opencv_tensorflow.NodeDef)
size_t total_size = 0;
uint32_t cached_has_bits = 0;
// Prevent compiler warnings about cached_has_bits being unused
(void) cached_has_bits;
// repeated string input = 3;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(input_.size());
for (int i = 0, n = input_.size(); i < n; i++) {
total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
input_.Get(i));
}
// map<string, .opencv_tensorflow.AttrValue> attr = 5;
total_size += 1 *
::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->_internal_attr_size());
for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::opencv_tensorflow::AttrValue >::const_iterator
it = this->_internal_attr().begin();
it != this->_internal_attr().end(); ++it) {
total_size += NodeDef_AttrEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
}
// string name = 1;
if (!this->_internal_name().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_name());
}
// string op = 2;
if (!this->_internal_op().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_op());
}
// string device = 4;
if (!this->_internal_device().empty()) {
total_size += 1 +
::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
this->_internal_device());
}
return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData NodeDef::_class_data_ = {
::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
NodeDef::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*NodeDef::GetClassData() const { return &_class_data_; }
void NodeDef::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
const ::PROTOBUF_NAMESPACE_ID::Message& from) {
static_cast<NodeDef *>(to)->MergeFrom(
static_cast<const NodeDef &>(from));
}
void NodeDef::MergeFrom(const NodeDef& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:opencv_tensorflow.NodeDef)
GOOGLE_DCHECK_NE(&from, this);
uint32_t cached_has_bits = 0;
(void) cached_has_bits;
input_.MergeFrom(from.input_);
attr_.MergeFrom(from.attr_);
if (!from._internal_name().empty()) {
_internal_set_name(from._internal_name());
}
if (!from._internal_op().empty()) {
_internal_set_op(from._internal_op());
}
if (!from._internal_device().empty()) {
_internal_set_device(from._internal_device());
}
_internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}
void NodeDef::CopyFrom(const NodeDef& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:opencv_tensorflow.NodeDef)
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool NodeDef::IsInitialized() const {
return true;
}
void NodeDef::InternalSwap(NodeDef* other) {
using std::swap;
auto* lhs_arena = GetArenaForAllocation();
auto* rhs_arena = other->GetArenaForAllocation();
_internal_metadata_.InternalSwap(&other->_internal_metadata_);
input_.InternalSwap(&other->input_);
attr_.InternalSwap(&other->attr_);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
&name_, lhs_arena,
&other->name_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
&op_, lhs_arena,
&other->op_, rhs_arena
);
::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
&device_, lhs_arena,
&other->device_, rhs_arena
);
}
::PROTOBUF_NAMESPACE_ID::Metadata NodeDef::GetMetadata() const {
return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
&descriptor_table_graph_2eproto_getter, &descriptor_table_graph_2eproto_once,
file_level_metadata_graph_2eproto[2]);
}
// @@protoc_insertion_point(namespace_scope)
} // namespace opencv_tensorflow
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::GraphDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::GraphDef >(Arena* arena) {
return Arena::CreateMessageInternal< ::opencv_tensorflow::GraphDef >(arena);
}
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse* Arena::CreateMaybeMessage< ::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse >(Arena* arena) {
return Arena::CreateMessageInternal< ::opencv_tensorflow::NodeDef_AttrEntry_DoNotUse >(arena);
}
template<> PROTOBUF_NOINLINE ::opencv_tensorflow::NodeDef* Arena::CreateMaybeMessage< ::opencv_tensorflow::NodeDef >(Arena* arena) {
return Arena::CreateMessageInternal< ::opencv_tensorflow::NodeDef >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
| C++ | 2 | nowireless/opencv | modules/dnn/misc/tensorflow/graph.pb.cc | [
"Apache-2.0"
] |
/**
* @file
* @brief check whether two line segments intersect each other
* or not.
*/
#include <algorithm>
#include <iostream>
/**
* Define a Point.
*/
struct Point {
int x; /// Point respect to x coordinate
int y; /// Point respect to y coordinate
};
/**
* intersect returns true if segments of two line intersects and
* false if they do not. It calls the subroutines direction
* which computes the orientation.
*/
struct SegmentIntersection {
inline bool intersect(Point first_point, Point second_point,
Point third_point, Point forth_point) {
int direction1 = direction(third_point, forth_point, first_point);
int direction2 = direction(third_point, forth_point, second_point);
int direction3 = direction(first_point, second_point, third_point);
int direction4 = direction(first_point, second_point, forth_point);
if ((direction1 < 0 || direction2 > 0) &&
(direction3 < 0 || direction4 > 0))
return true;
else if (direction1 == 0 &&
on_segment(third_point, forth_point, first_point))
return true;
else if (direction2 == 0 &&
on_segment(third_point, forth_point, second_point))
return true;
else if (direction3 == 0 &&
on_segment(first_point, second_point, third_point))
return true;
else if (direction3 == 0 &&
on_segment(first_point, second_point, forth_point))
return true;
else
return false;
}
/**
* We will find direction of line here respect to @first_point.
* Here @second_point and @third_point is first and second points
* of the line respectively. we want a method to determine which way a
* given angle these three points turns. If returned number is negative,
* then the angle is counter-clockwise. That means the line is going to
* right to left. We will fount angle as clockwise if the method returns
* positive number.
*/
inline int direction(Point first_point, Point second_point,
Point third_point) {
return ((third_point.x - first_point.x) *
(second_point.y - first_point.y)) -
((second_point.x - first_point.x) *
(third_point.y - first_point.y));
}
/**
* This method determines whether a point known to be colinear
* with a segment lies on that segment.
*/
inline bool on_segment(Point first_point, Point second_point,
Point third_point) {
if (std::min(first_point.x, second_point.x) <= third_point.x &&
third_point.x <= std::max(first_point.x, second_point.x) &&
std::min(first_point.y, second_point.y) <= third_point.y &&
third_point.y <= std::max(first_point.y, second_point.y))
return true;
else
return false;
}
};
/**
* This is the main function to test whether the algorithm is
* working well.
*/
int main() {
SegmentIntersection segment;
Point first_point, second_point, third_point, forth_point;
std::cin >> first_point.x >> first_point.y;
std::cin >> second_point.x >> second_point.y;
std::cin >> third_point.x >> third_point.y;
std::cin >> forth_point.x >> forth_point.y;
printf("%d", segment.intersect(first_point, second_point, third_point,
forth_point));
std::cout << std::endl;
}
| C++ | 5 | icbdubey/C-Plus-Plus | geometry/line_segment_intersection.cpp | [
"MIT"
] |
"""Read only dictionary."""
from typing import Any, TypeVar
def _readonly(*args: Any, **kwargs: Any) -> Any:
"""Raise an exception when a read only dict is modified."""
raise RuntimeError("Cannot modify ReadOnlyDict")
_KT = TypeVar("_KT")
_VT = TypeVar("_VT")
class ReadOnlyDict(dict[_KT, _VT]):
"""Read only version of dict that is compatible with dict types."""
__setitem__ = _readonly
__delitem__ = _readonly
pop = _readonly
popitem = _readonly
clear = _readonly
update = _readonly
setdefault = _readonly
| Python | 5 | MrDelik/core | homeassistant/util/read_only_dict.py | [
"Apache-2.0"
] |
#![feature(staged_api)]
#![stable(feature = "stable_test_feature", since = "1.0.0")]
#[stable(feature = "stable_test_feature", since = "1.0.0")]
#[non_exhaustive]
pub enum UnstableEnum {
#[stable(feature = "stable_test_feature", since = "1.0.0")]
Stable,
#[stable(feature = "stable_test_feature", since = "1.0.0")]
Stable2,
#[unstable(feature = "unstable_test_feature", issue = "none")]
Unstable,
}
#[stable(feature = "stable_test_feature", since = "1.0.0")]
#[non_exhaustive]
pub enum OnlyUnstableEnum {
#[unstable(feature = "unstable_test_feature", issue = "none")]
Unstable,
#[unstable(feature = "unstable_test_feature", issue = "none")]
Unstable2,
}
impl OnlyUnstableEnum {
#[stable(feature = "stable_test_feature", since = "1.0.0")]
pub fn new() -> Self {
Self::Unstable
}
}
| Rust | 4 | david-perez/rust | src/test/ui/rfc-2008-non-exhaustive/auxiliary/unstable.rs | [
"ECL-2.0",
"Apache-2.0",
"MIT-0",
"MIT"
] |
@addTagHelper *, TestAssembly
<form>
<input bound=@Hello type='text' />
</form> | C# | 3 | tomaswesterlund/aspnetcore | src/Razor/Microsoft.AspNetCore.Razor.Language/test/TestFiles/IntegrationTests/TagHelpersIntegrationTest/TagHelpersWithBoundAttributes.cshtml | [
"MIT"
] |
$TTL 300
@ IN A 1.2.3.4
p1 IN A 1.2.3.5
p255 IN A 1.2.4.3
| DNS Zone | 2 | IT-Sumpfling/dnscontrol | pkg/js/parse_tests/004-ips/foo.com.zone | [
"MIT"
] |
<template>
<h2>Scan Deps from <script setup lang=ts> blocks</h2>
<div class="scan">{{ typeof debounce === 'function' ? 'ok' : 'error' }}</div>
</template>
<script setup lang="ts">
import { debounce } from 'lodash-es'
</script>
| Vue | 4 | laineus/vite | packages/playground/vue/ScanDep.vue | [
"MIT"
] |
%!PS-Adobe-2.0
%%Title: colour.ps
%%Creator: fig2dev Version 3.2 Patchlevel 1
%%CreationDate: Mon Dec 4 16:16:30 2000
%%For: jcameron@vaio.home (Jamie Cameron)
%%Orientation: Portrait
%%BoundingBox: 49 32 568 799
%%Pages: 1
%%BeginSetup
%%IncludeFeature: *PageSize A4
%%EndSetup
%%Magnification: 1.0000
%%EndComments
/$F2psDict 200 dict def
$F2psDict begin
$F2psDict /mtrx matrix put
/col-1 {0 setgray} bind def
/col0 {0.000 0.000 0.000 srgb} bind def
/col1 {0.000 0.000 1.000 srgb} bind def
/col2 {0.000 1.000 0.000 srgb} bind def
/col3 {0.000 1.000 1.000 srgb} bind def
/col4 {1.000 0.000 0.000 srgb} bind def
/col5 {1.000 0.000 1.000 srgb} bind def
/col6 {1.000 1.000 0.000 srgb} bind def
/col7 {1.000 1.000 1.000 srgb} bind def
/col8 {0.000 0.000 0.560 srgb} bind def
/col9 {0.000 0.000 0.690 srgb} bind def
/col10 {0.000 0.000 0.820 srgb} bind def
/col11 {0.530 0.810 1.000 srgb} bind def
/col12 {0.000 0.560 0.000 srgb} bind def
/col13 {0.000 0.690 0.000 srgb} bind def
/col14 {0.000 0.820 0.000 srgb} bind def
/col15 {0.000 0.560 0.560 srgb} bind def
/col16 {0.000 0.690 0.690 srgb} bind def
/col17 {0.000 0.820 0.820 srgb} bind def
/col18 {0.560 0.000 0.000 srgb} bind def
/col19 {0.690 0.000 0.000 srgb} bind def
/col20 {0.820 0.000 0.000 srgb} bind def
/col21 {0.560 0.000 0.560 srgb} bind def
/col22 {0.690 0.000 0.690 srgb} bind def
/col23 {0.820 0.000 0.820 srgb} bind def
/col24 {0.500 0.190 0.000 srgb} bind def
/col25 {0.630 0.250 0.000 srgb} bind def
/col26 {0.750 0.380 0.000 srgb} bind def
/col27 {1.000 0.500 0.500 srgb} bind def
/col28 {1.000 0.630 0.630 srgb} bind def
/col29 {1.000 0.750 0.750 srgb} bind def
/col30 {1.000 0.880 0.880 srgb} bind def
/col31 {1.000 0.840 0.000 srgb} bind def
/col32 {0.557 0.557 0.557 srgb} bind def
/col33 {0.557 0.557 0.557 srgb} bind def
/col34 {0.557 0.557 0.557 srgb} bind def
/col35 {0.557 0.557 0.557 srgb} bind def
/col36 {0.557 0.557 0.557 srgb} bind def
/col37 {0.557 0.557 0.557 srgb} bind def
/col38 {0.255 0.271 0.255 srgb} bind def
/col39 {0.557 0.557 0.557 srgb} bind def
/col40 {0.255 0.271 0.255 srgb} bind def
/col41 {0.557 0.557 0.557 srgb} bind def
/col42 {0.255 0.271 0.255 srgb} bind def
/col43 {0.557 0.557 0.557 srgb} bind def
/col44 {0.255 0.271 0.255 srgb} bind def
/col45 {0.557 0.557 0.557 srgb} bind def
/col46 {0.255 0.271 0.255 srgb} bind def
/col47 {0.557 0.557 0.557 srgb} bind def
/col48 {0.255 0.271 0.255 srgb} bind def
/col49 {0.557 0.557 0.557 srgb} bind def
/col50 {0.255 0.271 0.255 srgb} bind def
/col51 {0.557 0.557 0.557 srgb} bind def
/col52 {0.255 0.271 0.255 srgb} bind def
/col53 {0.557 0.557 0.557 srgb} bind def
/col54 {0.255 0.271 0.255 srgb} bind def
/col55 {0.557 0.557 0.557 srgb} bind def
/col56 {0.255 0.271 0.255 srgb} bind def
/col57 {0.557 0.557 0.557 srgb} bind def
/col58 {0.255 0.271 0.255 srgb} bind def
/col59 {0.557 0.557 0.557 srgb} bind def
/col60 {0.557 0.557 0.557 srgb} bind def
/col61 {0.557 0.557 0.557 srgb} bind def
/col62 {0.557 0.557 0.557 srgb} bind def
/col63 {0.557 0.557 0.557 srgb} bind def
/col64 {0.557 0.557 0.557 srgb} bind def
/col65 {0.557 0.557 0.557 srgb} bind def
/col66 {0.557 0.557 0.557 srgb} bind def
/col67 {0.557 0.557 0.557 srgb} bind def
/col68 {0.557 0.557 0.557 srgb} bind def
/col69 {0.255 0.271 0.255 srgb} bind def
end
save
0.0 842.0 translate
1 -1 scale
/cp {closepath} bind def
/ef {eofill} bind def
/gr {grestore} bind def
/gs {gsave} bind def
/sa {save} bind def
/rs {restore} bind def
/l {lineto} bind def
/m {moveto} bind def
/rm {rmoveto} bind def
/n {newpath} bind def
/s {stroke} bind def
/sh {show} bind def
/slc {setlinecap} bind def
/slj {setlinejoin} bind def
/slw {setlinewidth} bind def
/srgb {setrgbcolor} bind def
/rot {rotate} bind def
/sc {scale} bind def
/sd {setdash} bind def
/ff {findfont} bind def
/sf {setfont} bind def
/scf {scalefont} bind def
/sw {stringwidth} bind def
/tr {translate} bind def
/tnt {dup dup currentrgbcolor
4 -2 roll dup 1 exch sub 3 -1 roll mul add
4 -2 roll dup 1 exch sub 3 -1 roll mul add
4 -2 roll dup 1 exch sub 3 -1 roll mul add srgb}
bind def
/shd {dup dup currentrgbcolor 4 -2 roll mul 4 -2 roll mul
4 -2 roll mul srgb} bind def
/$F2psBegin {$F2psDict begin /$F2psEnteredState save def} def
/$F2psEnd {$F2psEnteredState restore end} def
%%EndProlog
$F2psBegin
10 setmiterlimit
n -1000 14488 m -1000 -1000 l 10453 -1000 l 10453 14488 l cp clip
0.06000 0.06000 sc
%%Page: 1 1
/Times-Roman ff 360.00 scf sf
900 6600 m
gs 1 -1 sc (This is the printer test page for the Webmin Printer) col0 sh gr
/Times-Roman ff 360.00 scf sf
900 7020 m
gs 1 -1 sc (Administration module. If you can read this, your printer) col0 sh gr
/Times-Roman ff 360.00 scf sf
900 7440 m
gs 1 -1 sc (is probably working properly.) col0 sh gr
% Polyline
n 900 8100 m 1500 8100 l 1500 11700 l 900 11700 l cp gs col4 1.00 shd ef gr
% Polyline
n 900 8100 m 1500 8100 l 1500 11700 l 900 11700 l cp gs col4 1.00 shd ef gr
% Polyline
n 1500 8100 m 2100 8100 l 2100 11700 l 1500 11700 l cp gs col31 1.00 shd ef gr
% Polyline
n 2100 8100 m 2700 8100 l 2700 11700 l 2100 11700 l cp gs col6 1.00 shd ef gr
% Polyline
n 2700 8100 m 3300 8100 l 3300 11700 l 2700 11700 l cp gs col2 1.00 shd ef gr
% Polyline
n 3300 8100 m 3900 8100 l 3900 11700 l 3300 11700 l cp gs col1 1.00 shd ef gr
% Polyline
n 3900 8100 m 4500 8100 l 4500 11700 l 3900 11700 l cp gs col5 1.00 shd ef gr
% Polyline
n 4500 8100 m 5100 8100 l 5100 11700 l 4500 11700 l cp gs col23 1.00 shd ef gr
% Polyline
n 9300 8100 m 8700 8100 l 8700 11700 l 9300 11700 l cp gs col4 1.00 shd ef gr
% Polyline
n 9300 8100 m 8700 8100 l 8700 11700 l 9300 11700 l cp gs col4 1.00 shd ef gr
% Polyline
n 8700 8100 m 8100 8100 l 8100 11700 l 8700 11700 l cp gs col31 1.00 shd ef gr
% Polyline
n 8100 8100 m 7500 8100 l 7500 11700 l 8100 11700 l cp gs col6 1.00 shd ef gr
% Polyline
n 7500 8100 m 6900 8100 l 6900 11700 l 7500 11700 l cp gs col2 1.00 shd ef gr
% Polyline
n 6900 8100 m 6300 8100 l 6300 11700 l 6900 11700 l cp gs col1 1.00 shd ef gr
% Polyline
n 6300 8100 m 5700 8100 l 5700 11700 l 6300 11700 l cp gs col5 1.00 shd ef gr
% Polyline
n 5700 8100 m 5100 8100 l 5100 11700 l 5700 11700 l cp gs col23 1.00 shd ef gr
% Polyline
30.000 slw
n 900 3300 m 9300 4500 l gs col2 s gr
% Polyline
45.000 slw
n 900 3900 m 9300 3900 l gs col1 s gr
% Polyline
60.000 slw
n 900 4500 m 9300 3300 l gs col5 s gr
% Polyline
90.000 slw
n 900 5700 m 9300 2100 l gs col0 s gr
% Polyline
7.500 slw
n 900 2100 m 9300 5700 l gs col4 s gr
% Polyline
15.000 slw
n 900 2700 m 9300 5100 l gs col6 s gr
% Polyline
75.000 slw
n 900 5100 m 9300 2700 l gs col21 s gr
/Times-Roman ff 1080.00 scf sf
900 1500 m
gs 1 -1 sc (Webmin Test Page) col0 sh gr
/Times-Roman ff 1080.00 scf sf
900 13200 m
gs 1 -1 sc (Webmin Test Page) col0 sh gr
$F2psEnd
rs
showpage
| PostScript | 3 | GalaxyGFX/webmin | lpadmin/colour.ps | [
"BSD-3-Clause-No-Nuclear-License-2014",
"BSD-3-Clause"
] |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.