type
stringclasses 7
values | content
stringlengths 4
9.55k
| repo
stringlengths 7
96
| path
stringlengths 4
178
| language
stringclasses 1
value |
---|---|---|---|---|
MethodDeclaration |
fromBuffer(bytes:Buffer, offset:number = 0):number {
this.codecid = bintools.copyFrom(bytes, offset, offset + 2).readUInt16BE(0);
offset += 2;
const txtype:number = bintools.copyFrom(bytes, offset, offset + 4).readUInt32BE(0);
offset += 4;
this.transaction = SelectTxClass(txtype);
return this.transaction.fromBuffer(bytes, offset);
} | Dijets-Inc/dijetsJS | src/apis/avm/tx.ts | TypeScript |
MethodDeclaration | /**
* Signs this [[UnsignedTx]] and returns signed [[StandardTx]]
*
* @param kc An [[KeyChain]] used in signing
*
* @returns A signed [[StandardTx]]
*/
sign(kc:KeyChain):Tx {
const txbuff = this.toBuffer();
const msg:Buffer = Buffer.from(createHash('sha256').update(txbuff).digest());
const sigs:Array<Credential> = this.transaction.sign(msg, kc);
return new Tx(this, sigs);
} | Dijets-Inc/dijetsJS | src/apis/avm/tx.ts | TypeScript |
MethodDeclaration | //serialize is inherited
deserialize(fields:object, encoding:SerializedEncoding = "hex") {
super.deserialize(fields, encoding);
this.unsignedTx = new UnsignedTx();
this.unsignedTx.deserialize(fields["unsignedTx"], encoding);
this.credentials = [];
for(let i = 0; i < fields["credentials"].length; i++){
const cred:Credential = SelectCredentialClass(fields["credentials"][i]["_typeID"]);
cred.deserialize(fields["credentials"][i], encoding);
this.credentials.push(cred);
}
} | Dijets-Inc/dijetsJS | src/apis/avm/tx.ts | TypeScript |
MethodDeclaration | /**
* Takes a {@link https://github.com/feross/buffer|Buffer} containing an [[Tx]], parses it, populates the class, and returns the length of the Tx in bytes.
*
* @param bytes A {@link https://github.com/feross/buffer|Buffer} containing a raw [[Tx]]
* @param offset A number representing the starting point of the bytes to begin parsing
*
* @returns The length of the raw [[Tx]]
*/
fromBuffer(bytes:Buffer, offset:number = 0):number {
this.unsignedTx = new UnsignedTx();
offset = this.unsignedTx.fromBuffer(bytes, offset);
const numcreds:number = bintools.copyFrom(bytes, offset, offset + 4).readUInt32BE(0);
offset += 4;
this.credentials = [];
for (let i = 0; i < numcreds; i++) {
const credid:number = bintools.copyFrom(bytes, offset, offset + 4).readUInt32BE(0);
offset += 4;
const cred:Credential = SelectCredentialClass(credid);
offset = cred.fromBuffer(bytes, offset);
this.credentials.push(cred);
}
return offset;
} | Dijets-Inc/dijetsJS | src/apis/avm/tx.ts | TypeScript |
ArrowFunction |
(predeterminado: 127.0.0.1) | Dancecoindev/Dance-coin | src/qt/locale/bitcoin_es_DO.ts | TypeScript |
ArrowFunction |
(predeterminado: 100) | Dancecoindev/Dance-coin | src/qt/locale/bitcoin_es_DO.ts | TypeScript |
FunctionDeclaration | /**
* Returns whether the given Space is reserved or not.
*
* @param space the space
* @returns boolean
*/
export function isReservedSpace(space?: Partial<Space> | null): boolean {
return get(space, '_reserved', false);
} | LeckerDuplo/kibana | x-pack/plugins/spaces/common/is_reserved_space.ts | TypeScript |
ArrowFunction |
() => {
const visibleEditor = _editors.getVisibleTextEditors();
for (const value of this._insets.values()) {
if (visibleEditor.indexOf(value.editor) < 0) {
value.inset.dispose(); // will remove from `this._insets`
}
}
} | huszkacs/vscode | src/vs/workbench/api/common/extHostCodeInsets.ts | TypeScript |
ArrowFunction |
value => value.inset.dispose() | huszkacs/vscode | src/vs/workbench/api/common/extHostCodeInsets.ts | TypeScript |
ClassDeclaration |
export class ExtHostEditorInsets implements ExtHostEditorInsetsShape {
private _handlePool = 0;
private _disposables = new DisposableStore();
private _insets = new Map<number, { editor: vscode.TextEditor, inset: vscode.WebviewEditorInset, onDidReceiveMessage: Emitter<any> }>();
constructor(
private readonly _proxy: MainThreadEditorInsetsShape,
private readonly _editors: ExtHostEditors,
private readonly _initData: WebviewInitData
) {
// dispose editor inset whenever the hosting editor goes away
this._disposables.add(_editors.onDidChangeVisibleTextEditors(() => {
const visibleEditor = _editors.getVisibleTextEditors();
for (const value of this._insets.values()) {
if (visibleEditor.indexOf(value.editor) < 0) {
value.inset.dispose(); // will remove from `this._insets`
}
}
}));
}
dispose(): void {
this._insets.forEach(value => value.inset.dispose());
this._disposables.dispose();
}
createWebviewEditorInset(editor: vscode.TextEditor, line: number, height: number, options: vscode.WebviewOptions | undefined, extension: IExtensionDescription): vscode.WebviewEditorInset {
let apiEditor: ExtHostTextEditor | undefined;
for (const candidate of this._editors.getVisibleTextEditors(true)) {
if (candidate.value === editor) {
apiEditor = <ExtHostTextEditor>candidate;
break;
}
}
if (!apiEditor) {
throw new Error('not a visible editor');
}
const that = this;
const handle = this._handlePool++;
const onDidReceiveMessage = new Emitter<any>();
const onDidDispose = new Emitter<void>();
const webview = new class implements vscode.Webview {
private readonly _uuid = generateUuid();
private _html: string = '';
private _options: vscode.WebviewOptions = Object.create(null);
asWebviewUri(resource: vscode.Uri): vscode.Uri {
const remoteAuthority = that._initData.remote.isRemote
? that._initData.remote.authority
: undefined;
return asWebviewUri(this._uuid, resource, remoteAuthority);
}
get cspSource(): string {
return webviewGenericCspSource;
}
set options(value: vscode.WebviewOptions) {
this._options = value;
that._proxy.$setOptions(handle, value);
}
get options(): vscode.WebviewOptions {
return this._options;
}
set html(value: string) {
this._html = value;
that._proxy.$setHtml(handle, value);
}
get html(): string {
return this._html;
}
get onDidReceiveMessage(): vscode.Event<any> {
return onDidReceiveMessage.event;
}
postMessage(message: any): Thenable<boolean> {
return that._proxy.$postMessage(handle, message);
}
};
const inset = new class implements vscode.WebviewEditorInset {
readonly editor: vscode.TextEditor = editor;
readonly line: number = line;
readonly height: number = height;
readonly webview: vscode.Webview = webview;
readonly onDidDispose: vscode.Event<void> = onDidDispose.event;
dispose(): void {
if (that._insets.has(handle)) {
that._insets.delete(handle);
that._proxy.$disposeEditorInset(handle);
onDidDispose.fire();
// final cleanup
onDidDispose.dispose();
onDidReceiveMessage.dispose();
}
}
};
this._proxy.$createEditorInset(handle, apiEditor.id, apiEditor.value.document.uri, line + 1, height, options || {}, extension.identifier, extension.extensionLocation);
this._insets.set(handle, { editor, inset, onDidReceiveMessage });
return inset;
}
$onDidDispose(handle: number): void {
const value = this._insets.get(handle);
if (value) {
value.inset.dispose();
}
}
$onDidReceiveMessage(handle: number, message: any): void {
const value = this._insets.get(handle);
if (value) {
value.onDidReceiveMessage.fire(message);
}
}
} | huszkacs/vscode | src/vs/workbench/api/common/extHostCodeInsets.ts | TypeScript |
MethodDeclaration |
dispose(): void {
this._insets.forEach(value => value.inset.dispose());
this._disposables.dispose();
} | huszkacs/vscode | src/vs/workbench/api/common/extHostCodeInsets.ts | TypeScript |
MethodDeclaration |
createWebviewEditorInset(editor: vscode.TextEditor, line: number, height: number, options: vscode.WebviewOptions | undefined, extension: IExtensionDescription): vscode.WebviewEditorInset {
let apiEditor: ExtHostTextEditor | undefined;
for (const candidate of this._editors.getVisibleTextEditors(true)) {
if (candidate.value === editor) {
apiEditor = <ExtHostTextEditor>candidate;
break;
}
}
if (!apiEditor) {
throw new Error('not a visible editor');
}
const that = this;
const handle = this._handlePool++;
const onDidReceiveMessage = new Emitter<any>();
const onDidDispose = new Emitter<void>();
const webview = new class implements vscode.Webview {
private readonly _uuid = generateUuid();
private _html: string = '';
private _options: vscode.WebviewOptions = Object.create(null);
asWebviewUri(resource: vscode.Uri): vscode.Uri {
const remoteAuthority = that._initData.remote.isRemote
? that._initData.remote.authority
: undefined;
return asWebviewUri(this._uuid, resource, remoteAuthority);
}
get cspSource(): string {
return webviewGenericCspSource;
}
set options(value: vscode.WebviewOptions) {
this._options = value;
that._proxy.$setOptions(handle, value);
}
get options(): vscode.WebviewOptions {
return this._options;
}
set html(value: string) {
this._html = value;
that._proxy.$setHtml(handle, value);
}
get html(): string {
return this._html;
}
get onDidReceiveMessage(): vscode.Event<any> {
return onDidReceiveMessage.event;
}
postMessage(message: any): Thenable<boolean> {
return that._proxy.$postMessage(handle, message);
}
};
const inset = new class implements vscode.WebviewEditorInset {
readonly editor: vscode.TextEditor = editor;
readonly line: number = line;
readonly height: number = height;
readonly webview: vscode.Webview = webview;
readonly onDidDispose: vscode.Event<void> = onDidDispose.event;
dispose(): void {
if (that._insets.has(handle)) {
that._insets.delete(handle);
that._proxy.$disposeEditorInset(handle);
onDidDispose.fire();
// final cleanup
onDidDispose.dispose();
onDidReceiveMessage.dispose();
}
}
};
this._proxy.$createEditorInset(handle, apiEditor.id, apiEditor.value.document.uri, line + 1, height, options || {}, extension.identifier, extension.extensionLocation);
this._insets.set(handle, { editor, inset, onDidReceiveMessage });
return inset;
} | huszkacs/vscode | src/vs/workbench/api/common/extHostCodeInsets.ts | TypeScript |
MethodDeclaration |
asWebviewUri(resource: vscode.Uri): vscode.Uri {
const remoteAuthority = that._initData.remote.isRemote
? that._initData.remote.authority
: undefined;
return asWebviewUri(this._uuid, resource, remoteAuthority);
} | huszkacs/vscode | src/vs/workbench/api/common/extHostCodeInsets.ts | TypeScript |
MethodDeclaration |
postMessage(message: any): Thenable<boolean> {
return that._proxy.$postMessage(handle, message);
} | huszkacs/vscode | src/vs/workbench/api/common/extHostCodeInsets.ts | TypeScript |
MethodDeclaration |
dispose(): void {
if (that._insets.has(handle)) {
that._insets.delete(handle);
that._proxy.$disposeEditorInset(handle);
onDidDispose.fire();
// final cleanup
onDidDispose.dispose();
onDidReceiveMessage.dispose();
}
} | huszkacs/vscode | src/vs/workbench/api/common/extHostCodeInsets.ts | TypeScript |
MethodDeclaration |
$onDidDispose(handle: number): void {
const value = this._insets.get(handle);
if (value) {
value.inset.dispose();
}
} | huszkacs/vscode | src/vs/workbench/api/common/extHostCodeInsets.ts | TypeScript |
MethodDeclaration |
$onDidReceiveMessage(handle: number, message: any): void {
const value = this._insets.get(handle);
if (value) {
value.onDidReceiveMessage.fire(message);
}
} | huszkacs/vscode | src/vs/workbench/api/common/extHostCodeInsets.ts | TypeScript |
ArrowFunction |
(resolve) => {
$.ajax({
headers: headers,
url: Constants.apiRoot + 'order/customer/number',
method: 'get',
dataType: 'json',
success: (result) => {
resolve(result);
},
error: (xhr, error) => {
resolve(false);
}
})
} | dacodemaniak/www_theiere | web/src/services/order.service.ts | TypeScript |
ArrowFunction |
(result) => {
resolve(result);
} | dacodemaniak/www_theiere | web/src/services/order.service.ts | TypeScript |
ArrowFunction |
(xhr, error) => {
resolve(false);
} | dacodemaniak/www_theiere | web/src/services/order.service.ts | TypeScript |
ArrowFunction |
(resolve) => {
const headers: any = {
'X-Auth-Token': user.getToken()
};
$.ajax({
headers: headers,
url: Constants.apiRoot + 'order/customer',
method: 'get',
dataType: 'json',
success: (result: Array<any>) => {
const orders: Array<OrderModel> = result.map((order: any) => {
return (new OrderModel()).deserialize(order);
})
resolve(orders);
},
error: (xhr, error) => {
resolve(false);
}
});
} | dacodemaniak/www_theiere | web/src/services/order.service.ts | TypeScript |
ArrowFunction |
(result: Array<any>) => {
const orders: Array<OrderModel> = result.map((order: any) => {
return (new OrderModel()).deserialize(order);
})
resolve(orders);
} | dacodemaniak/www_theiere | web/src/services/order.service.ts | TypeScript |
ArrowFunction |
(order: any) => {
return (new OrderModel()).deserialize(order);
} | dacodemaniak/www_theiere | web/src/services/order.service.ts | TypeScript |
ClassDeclaration |
export class OrderService {
public constructor() {}
public getOrdersNumber(user: UserModel): Promise<any> {
const headers: any = {
'X-Auth-Token': user.getToken()
};
return new Promise((resolve) => {
$.ajax({
headers: headers,
url: Constants.apiRoot + 'order/customer/number',
method: 'get',
dataType: 'json',
success: (result) => {
resolve(result);
},
error: (xhr, error) => {
resolve(false);
}
})
});
}
public getCustomerOrders(user: UserModel): Promise<any> {
return new Promise((resolve) => {
const headers: any = {
'X-Auth-Token': user.getToken()
};
$.ajax({
headers: headers,
url: Constants.apiRoot + 'order/customer',
method: 'get',
dataType: 'json',
success: (result: Array<any>) => {
const orders: Array<OrderModel> = result.map((order: any) => {
return (new OrderModel()).deserialize(order);
})
resolve(orders);
},
error: (xhr, error) => {
resolve(false);
}
});
});
}
} | dacodemaniak/www_theiere | web/src/services/order.service.ts | TypeScript |
MethodDeclaration |
public getOrdersNumber(user: UserModel): Promise<any> {
const headers: any = {
'X-Auth-Token': user.getToken()
};
return new Promise((resolve) => {
$.ajax({
headers: headers,
url: Constants.apiRoot + 'order/customer/number',
method: 'get',
dataType: 'json',
success: (result) => {
resolve(result);
},
error: (xhr, error) => {
resolve(false);
}
})
});
} | dacodemaniak/www_theiere | web/src/services/order.service.ts | TypeScript |
MethodDeclaration |
public getCustomerOrders(user: UserModel): Promise<any> {
return new Promise((resolve) => {
const headers: any = {
'X-Auth-Token': user.getToken()
};
$.ajax({
headers: headers,
url: Constants.apiRoot + 'order/customer',
method: 'get',
dataType: 'json',
success: (result: Array<any>) => {
const orders: Array<OrderModel> = result.map((order: any) => {
return (new OrderModel()).deserialize(order);
})
resolve(orders);
},
error: (xhr, error) => {
resolve(false);
}
});
});
} | dacodemaniak/www_theiere | web/src/services/order.service.ts | TypeScript |
FunctionDeclaration | /**
* Creates a polyhedron mesh
* * The parameter `type` (positive integer, max 14, default 0) sets the polyhedron type to build among the 15 embbeded types. Please refer to the type sheet in the tutorial to choose the wanted type
* * The parameter `size` (positive float, default 1) sets the polygon size
* * You can overwrite the `size` on each dimension bu using the parameters `sizeX`, `sizeY` or `sizeZ` (positive floats, default to `size` value)
* * You can build other polyhedron types than the 15 embbeded ones by setting the parameter `custom` (`polyhedronObject`, default null). If you set the parameter `custom`, this overrides the parameter `type`
* * A `polyhedronObject` is a formatted javascript object. You'll find a full file with pre-set polyhedra here : https://github.com/BabylonJS/Extensions/tree/master/Polyhedron
* * You can set the color and the UV of each side of the polyhedron with the parameters `faceColors` (Color4, default `(1, 1, 1, 1)`) and faceUV (Vector4, default `(0, 0, 1, 1)`)
* * To understand how to set `faceUV` or `faceColors`, please read this by considering the right number of faces of your polyhedron, instead of only 6 for the box : https://doc.babylonjs.com/how_to/createbox_per_face_textures_and_colors
* * The parameter `flat` (boolean, default true). If set to false, it gives the polyhedron a single global face, so less vertices and shared normals. In this case, `faceColors` and `faceUV` are ignored
* * You can also set the mesh side orientation with the values : BABYLON.Mesh.FRONTSIDE (default), BABYLON.Mesh.BACKSIDE or BABYLON.Mesh.DOUBLESIDE
* * If you create a double-sided mesh, you can choose what parts of the texture image to crop and stick respectively on the front and the back sides with the parameters `frontUVs` and `backUVs` (Vector4). Detail here : https://doc.babylonjs.com/babylon101/discover_basic_elements#side-orientation
* * The mesh can be set to updatable with the boolean parameter `updatable` (default false) if its internal geometry is supposed to change once created
* @param name defines the name of the mesh
* @param options defines the options used to create the mesh
* @param options.type
* @param scene defines the hosting scene
* @param options.size
* @param options.sizeX
* @param options.sizeY
* @param options.sizeZ
* @param options.custom
* @param options.faceUV
* @param options.faceColors
* @param options.flat
* @param options.updatable
* @param options.sideOrientation
* @param options.frontUVs
* @param options.backUVs
* @returns the polyhedron mesh
* @see https://doc.babylonjs.com/how_to/polyhedra_shapes
*/
export function CreatePolyhedron(
name: string,
options: {
type?: number;
size?: number;
sizeX?: number;
sizeY?: number;
sizeZ?: number;
custom?: any;
faceUV?: Vector4[];
faceColors?: Color4[];
flat?: boolean;
updatable?: boolean;
sideOrientation?: number;
frontUVs?: Vector4;
backUVs?: Vector4;
} = {},
scene: Nullable<Scene> = null
): Mesh {
const polyhedron = new Mesh(name, scene);
options.sideOrientation = Mesh._GetDefaultSideOrientation(options.sideOrientation);
polyhedron._originalBuilderSideOrientation = options.sideOrientation;
const vertexData = CreatePolyhedronVertexData(options);
vertexData.applyToMesh(polyhedron, options.updatable);
return polyhedron;
} | jokester/Babylon.js | packages/dev/core/src/Meshes/Builders/polyhedronBuilder.ts | TypeScript |
ArrowFunction |
(
name: string,
options: {
type?: number;
size?: number;
sizeX?: number;
sizeY?: number;
sizeZ?: number;
custom?: any;
faceUV?: Vector4[];
faceColors?: Color4[];
updatable?: boolean;
sideOrientation?: number;
},
scene: Scene
): Mesh => {
return CreatePolyhedron(name, options, scene);
} | jokester/Babylon.js | packages/dev/core/src/Meshes/Builders/polyhedronBuilder.ts | TypeScript |
ClassDeclaration |
export default class LoaderIndicator extends React.Component<Props, State> {
constructor(props: Props);
render(): JSX.Element | null;
renderWaiting(): JSX.Element | null;
renderPending(): JSX.Element | null;
renderError(): JSX.Element | null;
renderCanceled(): JSX.Element | null;
renderDone(): JSX.Element | null;
} | MeuhMeuhConcept/react-mobx-loader | build/loader-indicator.d.ts | TypeScript |
InterfaceDeclaration |
interface Props {
loadingInformation: LoaderRequest.Informations;
waiting?: string | false;
pending?: string | false;
error?: string | false;
canceled?: string | false;
done?: string | false;
contentStrategy?: ContentStrategy;
} | MeuhMeuhConcept/react-mobx-loader | build/loader-indicator.d.ts | TypeScript |
InterfaceDeclaration |
interface State {
} | MeuhMeuhConcept/react-mobx-loader | build/loader-indicator.d.ts | TypeScript |
MethodDeclaration |
render(): JSX.Element | null; | MeuhMeuhConcept/react-mobx-loader | build/loader-indicator.d.ts | TypeScript |
MethodDeclaration |
renderWaiting(): JSX.Element | null; | MeuhMeuhConcept/react-mobx-loader | build/loader-indicator.d.ts | TypeScript |
MethodDeclaration |
renderPending(): JSX.Element | null; | MeuhMeuhConcept/react-mobx-loader | build/loader-indicator.d.ts | TypeScript |
MethodDeclaration |
renderError(): JSX.Element | null; | MeuhMeuhConcept/react-mobx-loader | build/loader-indicator.d.ts | TypeScript |
MethodDeclaration |
renderCanceled(): JSX.Element | null; | MeuhMeuhConcept/react-mobx-loader | build/loader-indicator.d.ts | TypeScript |
MethodDeclaration |
renderDone(): JSX.Element | null; | MeuhMeuhConcept/react-mobx-loader | build/loader-indicator.d.ts | TypeScript |
ClassDeclaration |
@Injectable()
export class RethinkService {
constructor(private rethinkRepository: RethinkRepository) {}
async createTable(nameTable: string) {
const result = await this.rethinkRepository.createTable(nameTable);
return result;
}
} | CristianMacha/cab-rest-api | src/rethink/rethink.service.ts | TypeScript |
MethodDeclaration |
async createTable(nameTable: string) {
const result = await this.rethinkRepository.createTable(nameTable);
return result;
} | CristianMacha/cab-rest-api | src/rethink/rethink.service.ts | TypeScript |
MethodDeclaration | /**
* 创建托管域名
*/
async CreateHostingDomain(
req: CreateHostingDomainRequest,
cb?: (error: string, rep: CreateHostingDomainResponse) => void
): Promise<CreateHostingDomainResponse> {
return this.request("CreateHostingDomain", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 获取终端用户列表
*/
async DescribeEndUsers(
req: DescribeEndUsersRequest,
cb?: (error: string, rep: DescribeEndUsersResponse) => void
): Promise<DescribeEndUsersResponse> {
return this.request("DescribeEndUsers", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 查询后付费短信资源量
1 有免费包的返回SmsFreeQuota结构所有字段
2 没有免费包,有付费包,付费返回复用SmsFreeQuota结构,其中只有 TodayUsedQuota 字段有效
3 都没有返回为空数组
*/
async DescribeSmsQuotas(
req: DescribeSmsQuotasRequest,
cb?: (error: string, rep: DescribeSmsQuotasResponse) => void
): Promise<DescribeSmsQuotasResponse> {
return this.request("DescribeSmsQuotas", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 获取环境列表,含环境下的各个资源信息。尤其是各资源的唯一标识,是请求各资源的关键参数
*/
async DescribeEnvs(
req: DescribeEnvsRequest,
cb?: (error: string, rep: DescribeEnvsResponse) => void
): Promise<DescribeEnvsResponse> {
return this.request("DescribeEnvs", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 增加安全域名
*/
async CreateAuthDomain(
req: CreateAuthDomainRequest,
cb?: (error: string, rep: CreateAuthDomainResponse) => void
): Promise<CreateAuthDomainResponse> {
return this.request("CreateAuthDomain", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 创建服务版本
*/
async CreateCloudBaseRunServerVersion(
req: CreateCloudBaseRunServerVersionRequest,
cb?: (error: string, rep: CreateCloudBaseRunServerVersionResponse) => void
): Promise<CreateCloudBaseRunServerVersionResponse> {
return this.request("CreateCloudBaseRunServerVersion", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 查询服务版本的详情,CPU和MEM 请使用CPUSize和MemSize
*/
async DescribeCloudBaseRunServerVersion(
req: DescribeCloudBaseRunServerVersionRequest,
cb?: (error: string, rep: DescribeCloudBaseRunServerVersionResponse) => void
): Promise<DescribeCloudBaseRunServerVersionResponse> {
return this.request("DescribeCloudBaseRunServerVersion", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 获取安全域名列表
*/
async DescribeAuthDomains(
req: DescribeAuthDomainsRequest,
cb?: (error: string, rep: DescribeAuthDomainsResponse) => void
): Promise<DescribeAuthDomainsResponse> {
return this.request("DescribeAuthDomains", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 开通后付费资源
*/
async CreatePostpayPackage(
req: CreatePostpayPackageRequest,
cb?: (error: string, rep: CreatePostpayPackageResponse) => void
): Promise<CreatePostpayPackageResponse> {
return this.request("CreatePostpayPackage", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 查看容器托管的集群状态
*/
async DescribeCloudBaseRunResource(
req: DescribeCloudBaseRunResourceRequest,
cb?: (error: string, rep: DescribeCloudBaseRunResourceResponse) => void
): Promise<DescribeCloudBaseRunResourceResponse> {
return this.request("DescribeCloudBaseRunResource", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 获取云开发项目列表
*/
async DescribeCloudBaseProjectLatestVersionList(
req: DescribeCloudBaseProjectLatestVersionListRequest,
cb?: (error: string, rep: DescribeCloudBaseProjectLatestVersionListResponse) => void
): Promise<DescribeCloudBaseProjectLatestVersionListResponse> {
return this.request("DescribeCloudBaseProjectLatestVersionList", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 针对已隔离的免费环境,可以通过本接口将其恢复访问。
*/
async ReinstateEnv(
req: ReinstateEnvRequest,
cb?: (error: string, rep: ReinstateEnvResponse) => void
): Promise<ReinstateEnvResponse> {
return this.request("ReinstateEnv", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 获取终端用户总量与平台分布情况
*/
async DescribeEndUserStatistic(
req: DescribeEndUserStatisticRequest,
cb?: (error: string, rep: DescribeEndUserStatisticResponse) => void
): Promise<DescribeEndUserStatisticResponse> {
return this.request("DescribeEndUserStatistic", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 查看容器托管的集群状态扩展使用
*/
async DescribeCloudBaseRunResourceForExtend(
req: DescribeCloudBaseRunResourceForExtendRequest,
cb?: (error: string, rep: DescribeCloudBaseRunResourceForExtendResponse) => void
): Promise<DescribeCloudBaseRunResourceForExtendResponse> {
return this.request("DescribeCloudBaseRunResourceForExtend", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 管理终端用户
*/
async ModifyEndUser(
req: ModifyEndUserRequest,
cb?: (error: string, rep: ModifyEndUserResponse) => void
): Promise<ModifyEndUserResponse> {
return this.request("ModifyEndUser", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 获取增值包计费相关信息
*/
async DescribeExtraPkgBillingInfo(
req: DescribeExtraPkgBillingInfoRequest,
cb?: (error: string, rep: DescribeExtraPkgBillingInfoResponse) => void
): Promise<DescribeExtraPkgBillingInfoResponse> {
return this.request("DescribeExtraPkgBillingInfo", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 获取后付费免费额度
*/
async DescribePostpayPackageFreeQuotas(
req: DescribePostpayPackageFreeQuotasRequest,
cb?: (error: string, rep: DescribePostpayPackageFreeQuotasResponse) => void
): Promise<DescribePostpayPackageFreeQuotasResponse> {
return this.request("DescribePostpayPackageFreeQuotas", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 创建云应用服务
*/
async EstablishCloudBaseRunServer(
req: EstablishCloudBaseRunServerRequest,
cb?: (error: string, rep: EstablishCloudBaseRunServerResponse) => void
): Promise<EstablishCloudBaseRunServerResponse> {
return this.request("EstablishCloudBaseRunServer", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* TCB云API统一入口
*/
async CommonServiceAPI(
req: CommonServiceAPIRequest,
cb?: (error: string, rep: CommonServiceAPIResponse) => void
): Promise<CommonServiceAPIResponse> {
return this.request("CommonServiceAPI", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 创建云开发项目
*/
async CreateAndDeployCloudBaseProject(
req: CreateAndDeployCloudBaseProjectRequest,
cb?: (error: string, rep: CreateAndDeployCloudBaseProjectResponse) => void
): Promise<CreateAndDeployCloudBaseProjectResponse> {
return this.request("CreateAndDeployCloudBaseProject", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 检查是否开通Tcb服务
*/
async CheckTcbService(
req?: CheckTcbServiceRequest,
cb?: (error: string, rep: CheckTcbServiceResponse) => void
): Promise<CheckTcbServiceResponse> {
return this.request("CheckTcbService", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 删除终端用户
*/
async DeleteEndUser(
req: DeleteEndUserRequest,
cb?: (error: string, rep: DeleteEndUserResponse) => void
): Promise<DeleteEndUserResponse> {
return this.request("DeleteEndUser", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 获取环境终端用户新增与登录信息
*/
async DescribeEndUserLoginStatistic(
req: DescribeEndUserLoginStatisticRequest,
cb?: (error: string, rep: DescribeEndUserLoginStatisticResponse) => void
): Promise<DescribeEndUserLoginStatisticResponse> {
return this.request("DescribeEndUserLoginStatistic", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 查询指定指标的配额使用量
*/
async DescribeQuotaData(
req: DescribeQuotaDataRequest,
cb?: (error: string, rep: DescribeQuotaDataResponse) => void
): Promise<DescribeQuotaDataResponse> {
return this.request("DescribeQuotaData", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 开通容器托管的资源,包括集群创建,VPC配置,异步任务创建,镜像托管,Coding等,查看创建结果需要根据DescribeCloudBaseRunResource接口来查看
*/
async CreateCloudBaseRunResource(
req: CreateCloudBaseRunResourceRequest,
cb?: (error: string, rep: CreateCloudBaseRunResourceResponse) => void
): Promise<CreateCloudBaseRunResourceResponse> {
return this.request("CreateCloudBaseRunResource", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 删除云项目
*/
async DeleteCloudBaseProjectLatestVersion(
req: DeleteCloudBaseProjectLatestVersionRequest,
cb?: (error: string, rep: DeleteCloudBaseProjectLatestVersionResponse) => void
): Promise<DeleteCloudBaseProjectLatestVersionResponse> {
return this.request("DeleteCloudBaseProjectLatestVersion", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 获取下载文件信息
*/
async DescribeDownloadFile(
req: DescribeDownloadFileRequest,
cb?: (error: string, rep: DescribeDownloadFileResponse) => void
): Promise<DescribeDownloadFileResponse> {
return this.request("DescribeDownloadFile", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 更新环境信息
*/
async ModifyEnv(
req: ModifyEnvRequest,
cb?: (error: string, rep: ModifyEnvResponse) => void
): Promise<ModifyEnvResponse> {
return this.request("ModifyEnv", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 获取数据库权限
*/
async DescribeDatabaseACL(
req: DescribeDatabaseACLRequest,
cb?: (error: string, rep: DescribeDatabaseACLResponse) => void
): Promise<DescribeDatabaseACLResponse> {
return this.request("DescribeDatabaseACL", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 销毁环境
*/
async DestroyEnv(
req: DestroyEnvRequest,
cb?: (error: string, rep: DestroyEnvResponse) => void
): Promise<DestroyEnvResponse> {
return this.request("DestroyEnv", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 获取云托管代码上传url
*/
async DescribeCloudBaseBuildService(
req: DescribeCloudBaseBuildServiceRequest,
cb?: (error: string, rep: DescribeCloudBaseBuildServiceResponse) => void
): Promise<DescribeCloudBaseBuildServiceResponse> {
return this.request("DescribeCloudBaseBuildService", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 查询版本历史
*/
async DescribeCloudBaseRunVersionSnapshot(
req: DescribeCloudBaseRunVersionSnapshotRequest,
cb?: (error: string, rep: DescribeCloudBaseRunVersionSnapshotResponse) => void
): Promise<DescribeCloudBaseRunVersionSnapshotResponse> {
return this.request("DescribeCloudBaseRunVersionSnapshot", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 销毁静态托管资源,该接口创建异步销毁任务,资源最终状态可从DestroyStaticStore接口查看
*/
async DestroyStaticStore(
req: DestroyStaticStoreRequest,
cb?: (error: string, rep: DestroyStaticStoreResponse) => void
): Promise<DestroyStaticStoreResponse> {
return this.request("DestroyStaticStore", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 修改数据库权限
*/
async ModifyDatabaseACL(
req: ModifyDatabaseACLRequest,
cb?: (error: string, rep: ModifyDatabaseACLResponse) => void
): Promise<ModifyDatabaseACLResponse> {
return this.request("ModifyDatabaseACL", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 创建静态托管资源,包括COS和CDN,异步任务创建,查看创建结果需要根据DescribeStaticStore接口来查看
*/
async CreateStaticStore(
req: CreateStaticStoreRequest,
cb?: (error: string, rep: CreateStaticStoreResponse) => void
): Promise<CreateStaticStoreResponse> {
return this.request("CreateStaticStore", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 查询环境个数上限
*/
async DescribeEnvLimit(
req?: DescribeEnvLimitRequest,
cb?: (error: string, rep: DescribeEnvLimitResponse) => void
): Promise<DescribeEnvLimitResponse> {
return this.request("DescribeEnvLimit", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 查询后付费资源免费量
*/
async DescribePostpayFreeQuotas(
req: DescribePostpayFreeQuotasRequest,
cb?: (error: string, rep: DescribePostpayFreeQuotasResponse) => void
): Promise<DescribePostpayFreeQuotasResponse> {
return this.request("DescribePostpayFreeQuotas", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
MethodDeclaration | /**
* 查询后付费免费配额信息
*/
async DescribeEnvFreeQuota(
req: DescribeEnvFreeQuotaRequest,
cb?: (error: string, rep: DescribeEnvFreeQuotaResponse) => void
): Promise<DescribeEnvFreeQuotaResponse> {
return this.request("DescribeEnvFreeQuota", req, cb)
} | WANGMUXIAN/tencentcloud-sdk-nodejs | src/services/tcb/v20180608/tcb_client.ts | TypeScript |
ArrowFunction |
() => {
let wrapper: ShallowWrapper<any, Readonly<{}>, React.Component<{}, {}, any>>;
afterEach(() => {
wrapper && wrapper.unmount();
});
it('should change input value after change props', () => {
wrapper = shallow(<RangeDatePicker
value={ null }
onValueChange={ () => { } }
/>, {});
wrapper.setProps({ value: { from: '2017-01-22', to: '2017-01-28' } });
expect(wrapper.state('inputValue')).toEqual({ from: 'Jan 22, 2017', to: 'Jan 28, 2017' });
expect(wrapper.state('selectedDate')).toEqual({ from: '2017-01-22', to: '2017-01-28' });
} | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
wrapper && wrapper.unmount();
} | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
wrapper = shallow(<RangeDatePicker
value={ null }
onValueChange={ () => { } } | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
wrapper = shallow(<RangeDatePicker
value={ null }
onValueChange={ () => { } } | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
let newState: any = {};
wrapper = shallow(<RangeDatePicker
value={ null }
onValueChange={ (nV: any) => newState = nV } | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
let baseValue = { from: '2019-10-47', to: '2019-10-07' };
const onValueChangeSpy = jest.fn((nV: any) => null);
wrapper = shallow(<RangeDatePicker
value={ baseValue }
onValueChange={ onValueChangeSpy }
/>, {});
(wrapper.instance() as any).handleBlur('from');
expect(onValueChangeSpy).toHaveBeenLastCalledWith({
from: null,
to: baseValue.to,
});
} | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
(nV: any) => null | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
let baseValue = { from: '2019-09-10', to: '2019-09-12' };
const onValueChangeSpy = jest.fn((nV: any) => null);
const setStateSpy = jest.fn((nextState) => null);
const pickerSetState = RangeDatePicker.prototype.setState;
RangeDatePicker.prototype.setState = setStateSpy;
wrapper = shallow(<RangeDatePicker
value={ { from: null, to: null } } | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
(nextState) => null | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
let inputValue = { from: 'Sep 11, 2019', to: 'Sep 20, 2019' };
let value = { from: '2019-09-14', to: '2019-09-15' };
const setValueSpy = jest.fn((nV: any) => null);
const pickerSetValue = RangeDatePicker.prototype.setValue;
wrapper = shallow(<RangeDatePicker
value={ value }
onValueChange={ () => { } } | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
let baseValue = { from: '2019-09-10', to: '2019-10-10' };
const setStateSpy = jest.fn((nextState) => null);
const pickerSetState = RangeDatePicker.prototype.setState;
RangeDatePicker.prototype.setState = setStateSpy;
wrapper = shallow(<RangeDatePicker
value={ baseValue }
onValueChange={ () => { } } | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
let baseValue = { from: '2019-09-10', to: '2019-09-12' };
const onValueChangeSpy = jest.fn((nV: any) => null);
const setStateSpy = jest.fn((nextState) => null);
const pickerSetState = RangeDatePicker.prototype.setState;
RangeDatePicker.prototype.setState = setStateSpy;
wrapper = shallow(<RangeDatePicker
value={ baseValue }
onValueChange={ onValueChangeSpy }
/>, {});
const instance: any = wrapper.instance();
instance.handleCancel();
expect(onValueChangeSpy).toHaveBeenLastCalledWith({ from: null, to: null });
expect(setStateSpy).toHaveBeenLastCalledWith({ inputValue: { from: null, to: null } });
RangeDatePicker.prototype.setState = pickerSetState;
} | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
let baseValue = { from: '2019-09-10', to: '2019-09-12' };
wrapper = shallow(<RangeDatePicker
value={ baseValue }
onValueChange={ () => { } } | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
let baseValue = { from: '2019-09-10', to: '2019-09-12' };
let inputValue = { from: 'Sep 10, 2019', to: 'Sep 12, 2019' };
const setValueSpy = jest.fn((nV: any) => null);
const focusSpy = jest.fn((nV: any) => null);
const pickerSetValue = RangeDatePicker.prototype.setValue;
wrapper = shallow(<RangeDatePicker
value={ { from: null, to: null } } | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
wrapper = shallow(<RangeDatePicker
value={ { from: null, to: null } } | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
ArrowFunction |
() => {
let baseValue = { from: '2019-09-10', to: '2019-09-10' };
const onValueChangeSpy = jest.fn((nV: any) => null);
const setStateSpy = jest.fn((nextState) => null);
const pickerSetState = RangeDatePicker.prototype.setState;
RangeDatePicker.prototype.setState = setStateSpy;
wrapper = shallow(<RangeDatePicker
value={ { from: null, to: null } } | AndreiMarhatau/UUI | loveship/components/datePickers/__tests__/RangeDataPicker.test.tsx | TypeScript |
FunctionDeclaration |
export async function* listDistributionConfigurationsPaginate(
config: ImagebuilderPaginationConfiguration,
input: ListDistributionConfigurationsCommandInput,
...additionalArguments: any
): Paginator<ListDistributionConfigurationsCommandOutput> {
let token: string | undefined = config.startingToken || undefined;
let hasNext = true;
let page: ListDistributionConfigurationsCommandOutput;
while (hasNext) {
input.nextToken = token;
input["maxResults"] = config.pageSize;
if (config.client instanceof Imagebuilder) {
page = await makePagedRequest(config.client, input, ...additionalArguments);
} else if (config.client instanceof ImagebuilderClient) {
page = await makePagedClientRequest(config.client, input, ...additionalArguments);
} else {
throw new Error("Invalid client, expected Imagebuilder | ImagebuilderClient");
}
yield page;
token = page.nextToken;
hasNext = !!token;
}
// @ts-ignore
return undefined;
} | brmur/aws-sdk-js-v3 | clients/client-imagebuilder/pagination/ListDistributionConfigurationsPaginator.ts | TypeScript |
ArrowFunction |
async (
client: ImagebuilderClient,
input: ListDistributionConfigurationsCommandInput,
...args: any
): Promise<ListDistributionConfigurationsCommandOutput> => {
// @ts-ignore
return await client.send(new ListDistributionConfigurationsCommand(input, ...args));
} | brmur/aws-sdk-js-v3 | clients/client-imagebuilder/pagination/ListDistributionConfigurationsPaginator.ts | TypeScript |
ArrowFunction |
async (
client: Imagebuilder,
input: ListDistributionConfigurationsCommandInput,
...args: any
): Promise<ListDistributionConfigurationsCommandOutput> => {
// @ts-ignore
return await client.listDistributionConfigurations(input, ...args);
} | brmur/aws-sdk-js-v3 | clients/client-imagebuilder/pagination/ListDistributionConfigurationsPaginator.ts | TypeScript |
ArrowFunction |
({ element, children, scale }) => (
<g>
<path style={ | ls1intum/Apollon | src/main/packages/uml-class-diagram/uml-class-package/uml-class-package-component.tsx | TypeScript |
InterfaceDeclaration |
interface Props {
element: UMLClassPackage;
scale: number;
} | ls1intum/Apollon | src/main/packages/uml-class-diagram/uml-class-package/uml-class-package-component.tsx | TypeScript |
ClassDeclaration |
export class TeamMembershipTeam extends pulumi.CustomResource {
/**
* Get an existing TeamMembershipTeam resource's state with the given name, ID, and optional extra
* properties used to qualify the lookup.
*
* @param name The _unique_ name of the resulting resource.
* @param id The _unique_ provider ID of the resource to lookup.
* @param state Any extra arguments used during the lookup.
*/
public static get(name: string, id: pulumi.Input<pulumi.ID>, state?: TeamMembershipTeamState, opts?: pulumi.CustomResourceOptions): TeamMembershipTeam {
return new TeamMembershipTeam(name, <any>state, { ...opts, id: id });
}
public /*out*/ readonly etag: pulumi.Output<string>;
public readonly role: pulumi.Output<string | undefined>;
public readonly teamId: pulumi.Output<string>;
public readonly username: pulumi.Output<string>;
/**
* Create a TeamMembershipTeam resource with the given unique name, arguments, and options.
*
* @param name The _unique_ name of the resource.
* @param args The arguments to use to populate this resource's properties.
* @param opts A bag of options that control this resource's behavior.
*/
constructor(name: string, args: TeamMembershipTeamArgs, opts?: pulumi.CustomResourceOptions)
constructor(name: string, argsOrState?: TeamMembershipTeamArgs | TeamMembershipTeamState, opts?: pulumi.CustomResourceOptions) {
let inputs: pulumi.Inputs = {};
if (opts && opts.id) {
const state: TeamMembershipTeamState = argsOrState as TeamMembershipTeamState | undefined;
inputs["etag"] = state ? state.etag : undefined;
inputs["role"] = state ? state.role : undefined;
inputs["teamId"] = state ? state.teamId : undefined;
inputs["username"] = state ? state.username : undefined;
} else {
const args = argsOrState as TeamMembershipTeamArgs | undefined;
if (!args || args.teamId === undefined) {
throw new Error("Missing required property 'teamId'");
}
if (!args || args.username === undefined) {
throw new Error("Missing required property 'username'");
}
inputs["role"] = args ? args.role : undefined;
inputs["teamId"] = args ? args.teamId : undefined;
inputs["username"] = args ? args.username : undefined;
inputs["etag"] = undefined /*out*/;
}
super("github:index/teamMembershipTeam:TeamMembershipTeam", name, inputs, opts);
}
} | RichardWLaub/pulumi-github | sdk/nodejs/teamMembershipTeam.ts | TypeScript |
InterfaceDeclaration | /**
* Input properties used for looking up and filtering TeamMembershipTeam resources.
*/
export interface TeamMembershipTeamState {
readonly etag?: pulumi.Input<string>;
readonly role?: pulumi.Input<string>;
readonly teamId?: pulumi.Input<string>;
readonly username?: pulumi.Input<string>;
} | RichardWLaub/pulumi-github | sdk/nodejs/teamMembershipTeam.ts | TypeScript |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.