type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
(from: PieceProps, to: PieceProps) => { const [posFrom, posTo] = [from.position, to.position]; if (process.env.NODE_ENV === "development") { console.log(`Making a capture from ${posFrom} to ${posTo}`); } const emptyCell = utils.getEmptyCell(posFrom); from.position = posTo; to.posit...
07kshitij/chess
src/components/Board.tsx
TypeScript
ArrowFunction
(from: PieceProps, to: PieceProps) => { const newPos = [from.position, to.position]; const color = utils.getPieceColor(from); setPromotionPos([...newPos]); setPawnPromotionType(color + "-promotion"); }
07kshitij/chess
src/components/Board.tsx
TypeScript
ArrowFunction
(from: PieceProps, to: PieceProps) => { const [posFrom, posTo] = [from.position, to.position]; const emptyCell0 = utils.getEmptyCell(posFrom); const emptyCell1 = utils.getEmptyCell(posTo); let [newKingPos, newRookPos] = [posFrom, posTo]; if (posFrom < posTo) { // kingSide newKing...
07kshitij/chess
src/components/Board.tsx
TypeScript
ArrowFunction
(from: PieceProps, to: PieceProps): number => { if (checkPromotion(from, to)) { performPromotion(from, to); return MoveTypes.PROMOTION; } else if (to.pieceName === null) { performMove(from, to); return MoveTypes.MOVE; } else if (utils.getPieceColor(to) === utils.getPieceColor...
07kshitij/chess
src/components/Board.tsx
TypeScript
ArrowFunction
(piece: PieceProps): boolean => { const index = piece.position; return piece.position !== clickedPiece.position && BoardConfig[index].color === "selected"; }
07kshitij/chess
src/components/Board.tsx
TypeScript
ArrowFunction
(fromPiece: PieceProps, toPiece: PieceProps, moveType: number) => { const color = utils.getPieceColor(toPiece); BoardConfig[fromPiece.position].piece = fromPiece; BoardConfig[toPiece.position].piece = toPiece; if (process.env.NODE_ENV === "development") { console.log("Check Status", fromPiec...
07kshitij/chess
src/components/Board.tsx
TypeScript
ArrowFunction
(piece: PieceProps) => { const moves = new Hints(BoardConfig); if (checkPossibleMove(piece)) { const moveType = makeMove(clickedPiece, piece); moves.hideHints(hintCells); } else { const color = utils.getPieceColor(piece); if (color === currentTurn && color == playerColor) { ...
07kshitij/chess
src/components/Board.tsx
TypeScript
ArrowFunction
() => { const squares: any = []; for (let index = 0; index < 64; index++) { squares.push( <Square key={`square_${index}`} color={BoardConfig[index].color} position={index} piece={BoardConfig[index].piece} onClick={squareOnClickHandler} ...
07kshitij/chess
src/components/Board.tsx
TypeScript
InterfaceDeclaration
export interface Result { outcome: string; message: string; }
07kshitij/chess
src/components/Board.tsx
TypeScript
InterfaceDeclaration
export interface BoardStatusProps { piece: PieceProps /** The piece under consideration */; setPiece: React.Dispatch<React.SetStateAction<PieceProps>> /** The callback to update the above `piece` */; color: string /** The color of the board cell under consideration */; setColor: React.Dispatch<React.SetSta...
07kshitij/chess
src/components/Board.tsx
TypeScript
InterfaceDeclaration
export interface BoardProps { currentTurn: string /** State representing the current turn, 'white' or 'black' */; setCurrentTurn: React.Dispatch<React.SetStateAction<string>>; /** The callback to update the above `currentTurn` */ whitePoints: number /** State representing the points scored by the player wi...
07kshitij/chess
src/components/Board.tsx
TypeScript
EnumDeclaration
enum MoveTypes { MOVE = 0, CAPTURE = 1, CASTLE = 2, PROMOTION = 3, }
07kshitij/chess
src/components/Board.tsx
TypeScript
EnumDeclaration
export enum GameResultTypes { WHITE = "White Won", BLACK = "Black Won", DRAW = "Game Drawn", }
07kshitij/chess
src/components/Board.tsx
TypeScript
MethodDeclaration
renderSquares()
07kshitij/chess
src/components/Board.tsx
TypeScript
ArrowFunction
() => { if (auth.isAuthenticated()) { this.rootPage = SearchPage; menu.enable(true, 'profile-menu'); } else { this.rootPage = LoginPage; menu.enable(false, 'profile-menu'); } setTimeout(() => splashScreen.hide(), 500); }
esingletary/jira-asset-companion
src/app/app.component.ts
TypeScript
ArrowFunction
() => splashScreen.hide()
esingletary/jira-asset-companion
src/app/app.component.ts
TypeScript
ArrowFunction
(err) => { // Catch any errors that occured. console.log(err); }
esingletary/jira-asset-companion
src/app/app.component.ts
TypeScript
ArrowFunction
() => { // Okay, so the platform is ready and our plugins are available. // Here you can do any higher level native things you might need. statusBar.styleLightContent(); headerColor.tint('#0052cc'); }
esingletary/jira-asset-companion
src/app/app.component.ts
TypeScript
ClassDeclaration
@Component({ templateUrl: 'app.html' }) export class App { @ViewChild('mycontent') nav: NavController rootPage: any; user: User; constructor( platform: Platform, statusBar: StatusBar, splashScreen: SplashScreen, headerColor: HeaderColor, private auth: AuthProvider, private menu: Men...
esingletary/jira-asset-companion
src/app/app.component.ts
TypeScript
MethodDeclaration
// Disable the menu, destroy the auth, and go back to login public onLogoutSubmit(): void { this.menu.enable(false, 'profile-menu'); this.auth.destroyAuth(); this.nav.setRoot(LoginPage,{},{animate: true, direction: 'back'}); }
esingletary/jira-asset-companion
src/app/app.component.ts
TypeScript
InterfaceDeclaration
export interface Config { kind: 'Bootstrap' | 'Generator' | 'Module' | 'MethodDelegate' | 'DelegateFactory'; id: string; apiVersion?: string; }
chillapi/api
src/chill-api/Config.ts
TypeScript
ArrowFunction
(err) => { if (err) { console.log( "Failed to deliver " + request.toString() + ", err: " + JSON.stringify(err) ); } }
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
ArrowFunction
(err, response) => { if (err) { console.log("Emulator shutdown failed", JSON.stringify(err)); } }
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
ArrowFunction
(img: Image) => { // Make sure we properly translate mouse clicks. const format = img.getFormat()!; this.width = format.getWidth(); this.height = format.getHeight(); this.emitter.emit("frame", img); }
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
ArrowFunction
(err: any) => { // We cancel the stream on resize, so lets restart it! console.log("Error from screenshot: " + err.message); switch (err.code) { case 1: if (this.wantsResize) { this.wantsResize = false; this.streamScreenshot(); } break; ...
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
ArrowFunction
(err, response) => { var hwConfig = new Map<string, string>(); const entryList = response.getHardwareconfig()!.getEntryList(); for (var i = 0; i < entryList.length; i++) { const key = entryList[i].getKey(); const val = entryList[i].getValue(); hwConfig.set(key, val); } ...
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
EnumDeclaration
export enum EmulatorKeyEvent { keydown = "keydown", keyup = "keyup", keypress = "keypress", }
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
EnumDeclaration
export enum EmulatorEvent { frame = "frame", close = "close", }
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
MethodDeclaration
/** Registers the given event type. */ on(type: EmulatorEvent, listener: (data: any) => void) { this.emitter.on(type, listener); if (type === EmulatorEvent.frame) { this.streamScreenshot(); } return this; }
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
MethodDeclaration
/** True if the emulator process is still alive. */ isRunning(pid: number) { try { return process.kill(pid, 0); } catch (e) { return e.code === "EPERM"; } }
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
MethodDeclaration
/** * Sends the given key event to the emulator. * * @param eventType Type of event, keyup, keydown or keypress. * @param key Javascript keycode. @see {@link https://developer.mozilla.org/en-US/docs/Web/API/KeyboardEvent/key/Key_Values} */ sendKey(eventType: EmulatorKeyEvent, key: string) { var reque...
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
MethodDeclaration
/** * Sends the given mouse event to the emulator. * * The x, y coordinates will be normalized and should be within * the width and height that are set by the resize function. * button: 0 no button, 1: left button, 2: right button. * * @example: this.canvas.addEventListener("mousedown", e => {...
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
MethodDeclaration
/** Resizes the requested image stream. You should call this if your rendering surfaces changes in size. */ resize(width: number, height: number) { this.width = width; this.height = height; this.wantsResize = true; this.stream?.cancel(); }
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
MethodDeclaration
/** Closes down the emulator connection. This will *NOT* stop the emulator from running. */ close() { this.client?.close(); this.emitter.emit("close", this.pid); this.emitter.removeAllListeners(); }
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
MethodDeclaration
/** Clean shutdown of the emulator. */ shutdown() { let state = new VmRunState(); state.setState(VmRunState.RunState.SHUTDOWN); this.client.setVmState(state, (err, response) => { if (err) { console.log("Emulator shutdown failed", JSON.stringify(err)); } }); }
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
MethodDeclaration
private streamScreenshot() { // File where the emulator writes the RGB888 file. mmap on the emulator side const tmpfile = path.join( this.transportDir, `emu-${this.width}x${this.height}.rgb888` ); fs.openSync(tmpfile, "w"); fs.truncateSync(tmpfile, this.height * this.width * 3); l...
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
MethodDeclaration
// Retrieves the device status, we use this to get the device width & height. private deviceStatus() { this.client!.getStatus(new Empty(), this.metadata!, (err, response) => { var hwConfig = new Map<string, string>(); const entryList = response.getHardwareconfig()!.getEntryList(); for (var i = 0; ...
pokowaka/aemu-vscode
src/emulator.ts
TypeScript
ClassDeclaration
export declare class SeriesList extends SeriesList_base { static fromMeasureNames(names: string[]): SeriesList; static fromMeasures(measures: Measure[]): SeriesList; static fromJS(seriesDefs: any[], measures: Measures): SeriesList; static fromSeries(series: Series[]): SeriesList; static validSeries...
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
InterfaceDeclaration
interface SeriesListValue { series: List<Series>; }
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
static fromMeasureNames(names: string[]): SeriesList;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
static fromMeasures(measures: Measure[]): SeriesList;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
static fromJS(seriesDefs: any[], measures: Measures): SeriesList;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
static fromSeries(series: Series[]): SeriesList;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
static validSeries(series: Series, measures: Measures): boolean;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
addSeries(newSeries: Series): SeriesList;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
removeSeries(series: Series): SeriesList;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
replaceSeries(original: Series, newSeries: Series): SeriesList;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
replaceByIndex(index: number, replace: Series): SeriesList;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
insertByIndex(index: number, insert: Series): SeriesList;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
hasMeasureSeries(reference: string): boolean;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
hasMeasure({ name }: Measure): boolean;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
getSeries(reference: string): Series;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
constrainToMeasures(measures: Measures): SeriesList;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
count(): number;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
hasSeries(series: Series): boolean;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
hasSeriesWithKey(key: string): boolean;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
getSeriesWithKey(key: string): Series;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
takeFirst(): this;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
MethodDeclaration
getExpressionSeriesFor(reference: string): List<ExpressionSeries>;
cuebook/turnilo
build/common/models/series-list/series-list.d.ts
TypeScript
ArrowFunction
(err: Error | null | undefined) => () => { throw err; }
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Initialize the client. * Performs asynchronous operations (such as authentication) and prepares the client. * This function will be called automatically when any class method is called for the * first time, but if you need to initialize it before calling an actual method, * feel free to call initia...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Return the project ID used by this class. * @returns {Promise} A promise that resolves to string containing the project ID. */ getProjectId( callback?: Callback<string, undefined, undefined> ): Promise<string> | void { if (callback) { this.auth.getProjectId(callback); return; } ...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
// ------------------- // -- Service calls -- // ------------------- getLogMetric( request: protos.google.logging.v2.IGetLogMetricRequest, options?: gax.CallOptions ): Promise< [ protos.google.logging.v2.ILogMetric, protos.google.logging.v2.IGetLogMetricRequest | undefined, {} | undefine...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
getLogMetric( request: protos.google.logging.v2.IGetLogMetricRequest, options: gax.CallOptions, callback: Callback< protos.google.logging.v2.ILogMetric, protos.google.logging.v2.IGetLogMetricRequest | null | undefined, {} | null | undefined > ): void;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
getLogMetric( request: protos.google.logging.v2.IGetLogMetricRequest, callback: Callback< protos.google.logging.v2.ILogMetric, protos.google.logging.v2.IGetLogMetricRequest | null | undefined, {} | null | undefined > ): void;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Gets a logs-based metric. * * @param {Object} request * The request object that will be sent. * @param {string} request.metricName * Required. The resource name of the desired metric: * * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" * @param {object} [options] * Call optio...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
createLogMetric( request: protos.google.logging.v2.ICreateLogMetricRequest, options?: gax.CallOptions ): Promise< [ protos.google.logging.v2.ILogMetric, protos.google.logging.v2.ICreateLogMetricRequest | undefined, {} | undefined ] >;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
createLogMetric( request: protos.google.logging.v2.ICreateLogMetricRequest, options: gax.CallOptions, callback: Callback< protos.google.logging.v2.ILogMetric, protos.google.logging.v2.ICreateLogMetricRequest | null | undefined, {} | null | undefined > ): void;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
createLogMetric( request: protos.google.logging.v2.ICreateLogMetricRequest, callback: Callback< protos.google.logging.v2.ILogMetric, protos.google.logging.v2.ICreateLogMetricRequest | null | undefined, {} | null | undefined > ): void;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Creates a logs-based metric. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. The resource name of the project in which to create the metric: * * "projects/[PROJECT_ID]" * * The new metric must be provided in...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
updateLogMetric( request: protos.google.logging.v2.IUpdateLogMetricRequest, options?: gax.CallOptions ): Promise< [ protos.google.logging.v2.ILogMetric, protos.google.logging.v2.IUpdateLogMetricRequest | undefined, {} | undefined ] >;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
updateLogMetric( request: protos.google.logging.v2.IUpdateLogMetricRequest, options: gax.CallOptions, callback: Callback< protos.google.logging.v2.ILogMetric, protos.google.logging.v2.IUpdateLogMetricRequest | null | undefined, {} | null | undefined > ): void;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
updateLogMetric( request: protos.google.logging.v2.IUpdateLogMetricRequest, callback: Callback< protos.google.logging.v2.ILogMetric, protos.google.logging.v2.IUpdateLogMetricRequest | null | undefined, {} | null | undefined > ): void;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Creates or updates a logs-based metric. * * @param {Object} request * The request object that will be sent. * @param {string} request.metricName * Required. The resource name of the metric to update: * * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" * * The updated metric m...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
deleteLogMetric( request: protos.google.logging.v2.IDeleteLogMetricRequest, options?: gax.CallOptions ): Promise< [ protos.google.protobuf.IEmpty, protos.google.logging.v2.IDeleteLogMetricRequest | undefined, {} | undefined ] >;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
deleteLogMetric( request: protos.google.logging.v2.IDeleteLogMetricRequest, options: gax.CallOptions, callback: Callback< protos.google.protobuf.IEmpty, protos.google.logging.v2.IDeleteLogMetricRequest | null | undefined, {} | null | undefined > ): void;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
deleteLogMetric( request: protos.google.logging.v2.IDeleteLogMetricRequest, callback: Callback< protos.google.protobuf.IEmpty, protos.google.logging.v2.IDeleteLogMetricRequest | null | undefined, {} | null | undefined > ): void;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Deletes a logs-based metric. * * @param {Object} request * The request object that will be sent. * @param {string} request.metricName * Required. The resource name of the metric to delete: * * "projects/[PROJECT_ID]/metrics/[METRIC_ID]" * @param {object} [options] * Call ...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
listLogMetrics( request: protos.google.logging.v2.IListLogMetricsRequest, options?: gax.CallOptions ): Promise< [ protos.google.logging.v2.ILogMetric[], protos.google.logging.v2.IListLogMetricsRequest | null, protos.google.logging.v2.IListLogMetricsResponse ] >;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
listLogMetrics( request: protos.google.logging.v2.IListLogMetricsRequest, options: gax.CallOptions, callback: PaginationCallback< protos.google.logging.v2.IListLogMetricsRequest, protos.google.logging.v2.IListLogMetricsResponse | null | undefined, protos.google.logging.v2.ILogMetric >...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
listLogMetrics( request: protos.google.logging.v2.IListLogMetricsRequest, callback: PaginationCallback< protos.google.logging.v2.IListLogMetricsRequest, protos.google.logging.v2.IListLogMetricsResponse | null | undefined, protos.google.logging.v2.ILogMetric > ): void;
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Lists logs-based metrics. * * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. The name of the project containing the metrics: * * "projects/[PROJECT_ID]" * @param {string} [request.pageToken] * Optional. If pres...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Equivalent to `method.name.toCamelCase()`, but returns a NodeJS Stream object. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. The name of the project containing the metrics: * * "projects/[PROJECT_ID]" * @param {stri...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Equivalent to `listLogMetrics`, but returns an iterable object. * * `for`-`await`-`of` syntax is used with the iterable to get response elements on-demand. * @param {Object} request * The request object that will be sent. * @param {string} request.parent * Required. The name of the projec...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
// -------------------- // -- Path templates -- // -------------------- /** * Return a fully-qualified billingAccountCmekSettings resource name string. * * @param {string} billing_account * @returns {string} Resource name string. */ billingAccountCmekSettingsPath(billingAccount: string) { return this...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Parse the billing_account from BillingAccountCmekSettings resource. * * @param {string} billingAccountCmekSettingsName * A fully-qualified path representing billing_account_cmekSettings resource. * @returns {string} A string representing the billing_account. */ matchBillingAccountFromBillingAc...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Return a fully-qualified billingAccountExclusion resource name string. * * @param {string} billing_account * @param {string} exclusion * @returns {string} Resource name string. */ billingAccountExclusionPath(billingAccount: string, exclusion: string) { return this.pathTemplates.billingAccoun...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Parse the billing_account from BillingAccountExclusion resource. * * @param {string} billingAccountExclusionName * A fully-qualified path representing billing_account_exclusion resource. * @returns {string} A string representing the billing_account. */ matchBillingAccountFromBillingAccountExcl...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Parse the exclusion from BillingAccountExclusion resource. * * @param {string} billingAccountExclusionName * A fully-qualified path representing billing_account_exclusion resource. * @returns {string} A string representing the exclusion. */ matchExclusionFromBillingAccountExclusionName( bi...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Return a fully-qualified billingAccountLocationBucket resource name string. * * @param {string} billing_account * @param {string} location * @param {string} bucket * @returns {string} Resource name string. */ billingAccountLocationBucketPath( billingAccount: string, location: string, ...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Parse the billing_account from BillingAccountLocationBucket resource. * * @param {string} billingAccountLocationBucketName * A fully-qualified path representing billing_account_location_bucket resource. * @returns {string} A string representing the billing_account. */ matchBillingAccountFromBi...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Parse the location from BillingAccountLocationBucket resource. * * @param {string} billingAccountLocationBucketName * A fully-qualified path representing billing_account_location_bucket resource. * @returns {string} A string representing the location. */ matchLocationFromBillingAccountLocation...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Parse the bucket from BillingAccountLocationBucket resource. * * @param {string} billingAccountLocationBucketName * A fully-qualified path representing billing_account_location_bucket resource. * @returns {string} A string representing the bucket. */ matchBucketFromBillingAccountLocationBucket...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Return a fully-qualified billingAccountLog resource name string. * * @param {string} billing_account * @param {string} log * @returns {string} Resource name string. */ billingAccountLogPath(billingAccount: string, log: string) { return this.pathTemplates.billingAccountLogPathTemplate.render(...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Parse the billing_account from BillingAccountLog resource. * * @param {string} billingAccountLogName * A fully-qualified path representing billing_account_log resource. * @returns {string} A string representing the billing_account. */ matchBillingAccountFromBillingAccountLogName(billingAccount...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Parse the log from BillingAccountLog resource. * * @param {string} billingAccountLogName * A fully-qualified path representing billing_account_log resource. * @returns {string} A string representing the log. */ matchLogFromBillingAccountLogName(billingAccountLogName: string) { return this....
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Return a fully-qualified billingAccountSink resource name string. * * @param {string} billing_account * @param {string} sink * @returns {string} Resource name string. */ billingAccountSinkPath(billingAccount: string, sink: string) { return this.pathTemplates.billingAccountSinkPathTemplate.re...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Parse the billing_account from BillingAccountSink resource. * * @param {string} billingAccountSinkName * A fully-qualified path representing billing_account_sink resource. * @returns {string} A string representing the billing_account. */ matchBillingAccountFromBillingAccountSinkName( billi...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Parse the sink from BillingAccountSink resource. * * @param {string} billingAccountSinkName * A fully-qualified path representing billing_account_sink resource. * @returns {string} A string representing the sink. */ matchSinkFromBillingAccountSinkName(billingAccountSinkName: string) { retu...
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript
MethodDeclaration
/** * Return a fully-qualified folderCmekSettings resource name string. * * @param {string} folder * @returns {string} Resource name string. */ folderCmekSettingsPath(folder: string) { return this.pathTemplates.folderCmekSettingsPathTemplate.render({ folder: folder, }); }
simonz130/nodejs-logging
src/v2/metrics_service_v2_client.ts
TypeScript