type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
ArrowFunction
() => { // press('ArrowUp'); expect(element).toBeTruthy(); }
natemoo-re/konami-listener
src/components/konami-listener/konami-listener.spec.ts
TypeScript
ClassDeclaration
export default class PostgresEntityDatabaseAdapterProvider implements IEntityDatabaseAdapterProvider { getDatabaseAdapter<TFields>( entityConfiguration: EntityConfiguration<TFields> ): EntityDatabaseAdapter<TFields> { return new PostgresEntityDatabaseAdapter(entityConfiguration); } }
expo/entity
packages/entity-database-adapter-knex/src/PostgresEntityDatabaseAdapterProvider.ts
TypeScript
MethodDeclaration
getDatabaseAdapter<TFields>( entityConfiguration: EntityConfiguration<TFields> ): EntityDatabaseAdapter<TFields> { return new PostgresEntityDatabaseAdapter(entityConfiguration); }
expo/entity
packages/entity-database-adapter-knex/src/PostgresEntityDatabaseAdapterProvider.ts
TypeScript
ClassDeclaration
/** * A 2D ray that can be cast into the scene to do collision detection */ export class Ray { public pos: Vector; public dir: Vector; /** * @param pos The starting position for the ray * @param dir The vector indicating the direction of the ray */ constructor(pos: Vector, dir: Vector) { this.po...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
ClassDeclaration
/** * A 2D line segment */ export class Line { /** * @param begin The starting point of the line segment * @param end The ending point of the line segment */ constructor(public begin: Vector, public end: Vector) {} /** * Gets the raw slope (m) of the line. Will return (+/-)Infinity for vertical l...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
ClassDeclaration
/** * A 1 dimensional projection on an axis, used to test overlaps */ export class Projection { constructor(public min: number, public max: number) {} public overlaps(projection: Projection): boolean { return this.max > projection.min && projection.max > this.min; } public getOverlap(projection: Projecti...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
ClassDeclaration
export class GlobalCoordinates { public static fromPagePosition(x: number, y: number, engine: Engine): GlobalCoordinates; public static fromPagePosition(pos: Vector, engine: Engine): GlobalCoordinates; public static fromPagePosition(xOrPos: number | Vector, yOrEngine: number | Engine, engineOrUndefined?: Engine)...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Returns a vector of unit length in the direction of the specified angle in Radians. * @param angle The angle to generate the vector */ public static fromAngle(angle: number) { return new Vector(Math.cos(angle), Math.sin(angle)); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Checks if vector is not null, undefined, or if any of its components are NaN or Infinity. */ public static isValid(vec: Vector) { if (vec === null || vec === undefined) { return false; } if (isNaN(vec.x) || isNaN(vec.y)) { return false; } if (vec.x === Infinity || vec.y === ...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Calculates distance between two Vectors * @param vec1 * @param vec2 */ public static distance(vec1: Vector, vec2: Vector) { return Math.sqrt(Math.pow(vec1.x - vec2.x, 2) + Math.pow(vec1.y - vec2.y, 2)); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Sets the x and y components at once */ public setTo(x: number, y: number) { this.x = x; this.y = y; }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Compares this point against another and tests for equality * @param point The other point to compare to */ public equals(vector: Vector, tolerance: number = 0.001): boolean { return Math.abs(this.x - vector.x) <= tolerance && Math.abs(this.y - vector.y) <= tolerance; }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * The distance to another vector. If no other Vector is specified, this will return the [[magnitude]]. * @param v The other vector. Leave blank to use origin vector. */ public distance(v?: Vector): number { if (!v) { v = Vector.Zero; } return Math.sqrt(Math.pow(this.x - v.x, 2) + Math.po...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * The magnitude (size) of the Vector */ public magnitude(): number { return this.distance(); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Normalizes a vector to have a magnitude of 1. */ public normalize(): Vector { var d = this.distance(); if (d > 0) { return new Vector(this.x / d, this.y / d); } else { return new Vector(0, 1); } }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Returns the average (midpoint) between the current point and the specified */ public average(vec: Vector): Vector { return this.add(vec).scale(0.5); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Scales a vector's by a factor of size * @param size The factor to scale the magnitude by */ public scale(size: number): Vector { return new Vector(this.x * size, this.y * size); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Adds one vector to another * @param v The vector to add */ public add(v: Vector): Vector { return new Vector(this.x + v.x, this.y + v.y); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Subtracts a vector from another, if you subract vector `B.sub(A)` the resulting vector points from A -> B * @param v The vector to subtract */ public sub(v: Vector): Vector { return new Vector(this.x - v.x, this.y - v.y); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Adds one vector to this one modifying the original * @param v The vector to add */ public addEqual(v: Vector): Vector { this.x += v.x; this.y += v.y; return this; }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Subtracts a vector from this one modifying the original * @parallel v The vector to subtract */ public subEqual(v: Vector): Vector { this.x -= v.x; this.y -= v.y; return this; }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Scales this vector by a factor of size and modifies the original */ public scaleEqual(size: number): Vector { this.x *= size; this.y *= size; return this; }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Performs a dot product with another vector * @param v The vector to dot */ public dot(v: Vector): number { return this.x * v.x + this.y * v.y; }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Performs a 2D cross product with scalar. 2D cross products with a scalar return a vector. * @param v The scalar to cross */ public cross(v: number): Vector;
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Performs a 2D cross product with another vector. 2D cross products return a scalar value not a vector. * @param v The vector to cross */ public cross(v: Vector): number;
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
public cross(v: any): any { if (v instanceof Vector) { return this.x * v.y - this.y * v.x; } else if (typeof v === 'number') { return new Vector(v * this.y, -v * this.x); } }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Returns the perpendicular vector to this one */ public perpendicular(): Vector { return new Vector(this.y, -this.x); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Returns the normal vector to this one, same as the perpendicular of length 1 */ public normal(): Vector { return this.perpendicular().normalize(); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Negate the current vector */ public negate(): Vector { return this.scale(-1); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Returns the angle of this vector. */ public toAngle(): number { return Math.atan2(this.y, this.x); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Rotates the current vector around a point by a certain number of * degrees in radians */ public rotate(angle: number, anchor?: Vector): Vector { if (!anchor) { anchor = new Vector(0, 0); } var sinAngle = Math.sin(angle); var cosAngle = Math.cos(angle); var x = cosAngle * (this.x...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Creates new vector that has the same values as the previous. */ public clone(): Vector { return new Vector(this.x, this.y); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Returns a string repesentation of the vector. */ public toString(): string { return `(${this.x}, ${this.y})`; }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Tests a whether this ray intersects with a line segment. Returns a number greater than or equal to 0 on success. * This number indicates the mathematical intersection time. * @param line The line to test */ public intersect(line: Line): number { var numerator = line.begin.sub(this.pos); // T...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Returns the point of intersection given the intersection time */ public getPoint(time: number): Vector { return this.pos.add(this.dir.scale(time)); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Gets the normal of the line */ public normal(): Vector { return this.end.sub(this.begin).normal(); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Returns the slope of the line in the form of a vector */ public getSlope(): Vector { var begin = this.begin; var end = this.end; var distance = begin.distance(end); return end.sub(begin).scale(1 / distance); }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Returns the length of the line segment in pixels */ public getLength(): number { var begin = this.begin; var end = this.end; var distance = begin.distance(end); return distance; }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Find the perpendicular distance from the line to a point * https://en.wikipedia.org/wiki/Distance_from_a_point_to_a_line * @param point */ public distanceToPoint(point: Vector) { let x0 = point.x; let y0 = point.y; let l = this.getLength(); let dy = this.end.y - this.begin.y; let...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Finds a point on the line given only an X or a Y value. Given an X value, the function returns * a new point with the calculated Y value and vice-versa. * * @param x The known X value of the target point * @param y The known Y value of the target point * @returns A new point with the other calcu...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Whether or not the given point lies on this line. This method is precise by default * meaning the point must lie exactly on the line. Adjust threshold to * loosen the strictness of the check for floating-point calculations. */ public hasPoint(x: number, y: number, threshold?: number): boolean;
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * Whether or not the given point lies on this line. This method is precise by default * meaning the point must lie exactly on the line. Adjust threshold to * loosen the strictness of the check for floating-point calculations. */ public hasPoint(v: Vector, threshold?: number): boolean;
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
/** * @see http://stackoverflow.com/a/11908158/109458 */ public hasPoint(): boolean { var currPoint: Vector; var threshold = 0; if (typeof arguments[0] === 'number' && typeof arguments[1] === 'number') { currPoint = new Vector(arguments[0], arguments[1]); threshold = arguments[2] || 0; ...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
public overlaps(projection: Projection): boolean { return this.max > projection.min && projection.max > this.min; }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
public getOverlap(projection: Projection): number { if (this.overlaps(projection)) { if (this.max > projection.max) { return projection.max - this.min; } else { return this.max - projection.min; } } return 0; }
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
public static fromPagePosition(x: number, y: number, engine: Engine): GlobalCoordinates;
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
public static fromPagePosition(pos: Vector, engine: Engine): GlobalCoordinates;
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
MethodDeclaration
public static fromPagePosition(xOrPos: number | Vector, yOrEngine: number | Engine, engineOrUndefined?: Engine): GlobalCoordinates { var pageX: number; var pageY: number; var pagePos: Vector; var engine: Engine; if (arguments.length === 3) { pageX = <number>xOrPos; pageY = <number>yOrE...
atanasbozhkov/Excalibur
src/engine/Algebra.ts
TypeScript
ClassDeclaration
/** * A set of methods for managing API keys. */ export class ApiKeyService { constructor(session?: Session); /** * Retrieves the list of API keys for the specified service account. */ list(request: ListApiKeysRequest): Promise<ListApiKeysResponse>; /** * Returns the specified API key. * * To ...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
ClassDeclaration
/** * A set of methods for managing IAM tokens. */ export class IamTokenService { constructor(session?: Session); /** * Creates an IAM token for the specified identity. */ create(request: CreateIamTokenRequest): Promise<CreateIamTokenResponse>; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
ClassDeclaration
/** * A set of methods for managing Key resources. */ export class KeyService { constructor(session?: Session); /** * Returns the specified Key resource. * * To get the list of available Key resources, make a [List] request. */ get(request: GetKeyRequest): Promise<Key>; /** * Retrieves the lis...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
ClassDeclaration
/** * A set of methods for managing Role resources. */ export class RoleService { constructor(session?: Session); /** * Returns the specified Role resource. * * To get the list of available Role resources, use a [List] request. */ get(request: GetRoleRequest): Promise<Role>; /** * Retrieves th...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
ClassDeclaration
/** * A set of methods for managing ServiceAccount resources. */ export class ServiceAccountService { constructor(session?: Session); /** * Returns the specified ServiceAccount resource. * * To get the list of available ServiceAccount resources, use a [List] request. */ get(request: GetServiceAccoun...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
ClassDeclaration
/** * A set of methods for managing user accounts. Currently applicable only for [Yandex.Passport accounts](/docs/iam/concepts/#passport). */ export class UserAccountService { constructor(session?: Session); /** * Returns the specified UserAccount resource. */ get(request: GetUserAccountRequest): Promise<...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
ClassDeclaration
/** * A set of methods for managing YandexPassportUserAccount resources. */ export class YandexPassportUserAccountService { constructor(session?: Session); /** * Returns the specified YandexPassportUserAccount resource. */ getByLogin(request: GetUserAccountByLoginRequest): Promise<UserAccount>; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
/** * An ApiKey resource. */ export interface ApiKey { /** * ID of the API Key. */ id?: string; /** * ID of the service account that the API key belongs to. */ serviceAccountId?: string; /** * Creation timestamp. */ createdAt?: protobuf.Timestamp; /** * Description of the API key...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface GetApiKeyRequest { /** * ID of the API key to return. * To get the API key ID, use a [ApiKeyService.List] request. */ apiKeyId: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface ListApiKeysRequest { /** * ID of the service account to list API keys for. * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request. * If not specified, it defaults to the subject that made the request. */ serviceAccountId?: string; /** * Th...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface ListApiKeysResponse { /** * List of API keys. */ apiKeys?: ApiKey[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListApiKeysRequest.page_size], use * the [next_page_token] as the value * for the [Lis...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface CreateApiKeyRequest { /** * ID of the service account to create an API key for. * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request. * If not specified, it defaults to the subject that made the request. */ serviceAccountId?: string; /** ...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface CreateApiKeyResponse { /** * ApiKey resource. */ apiKey?: ApiKey; /** * Secret part of the API key. This secret key you may use in the requests for authentication. */ secret?: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface DeleteApiKeyRequest { /** * ID of the API key to delete. * To get the API key ID, use a [ApiKeyService.List] request. */ apiKeyId: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface CreateIamTokenRequest { /** * OAuth token for a Yandex.Passport account. * For more information, see [OAuth token](/docs/iam/concepts/authorization/oauth-token). */ yandexPassportOauthToken?: string; /** * JSON Web Token (JWT) for a service account. * For more information, see [G...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface CreateIamTokenResponse { /** * IAM token for the specified identity. * * You should pass the token in the `Authorization` header for any further API requests. * For example, `Authorization: Bearer [iam_token]`. */ iamToken?: string; /** * IAM token expiration time. */ exp...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
/** * A Key resource. For more information, see [Authorized keys](/docs/iam/concepts/authorization/key). */ export interface Key { /** * ID of the Key resource. */ id?: string; /** * ID of the user account that the Key resource belongs to. */ userAccountId?: string; /** * ID of the service ...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface GetKeyRequest { /** * ID of the Key resource to return. * To get the ID use a [KeyService.List] request. */ keyId: string; /** * Output format of the key. */ format?: KeyFormat; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface ListKeysRequest { /** * Output format of the key. */ format?: KeyFormat; /** * ID of the service account to list key pairs for. * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request. * If not specified, it defaults to the subject that mad...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface ListKeysResponse { /** * List of Key resources. */ keys?: Key[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListKeysRequest.page_size], use * the [next_page_token] as the value * for the [ListKeysRe...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface CreateKeyRequest { /** * ID of the service account to create a key pair for. * To get the service account ID, use a [yandex.cloud.iam.v1.ServiceAccountService.List] request. * If not specified, it defaults to the subject that made the request. */ serviceAccountId?: string; /** * ...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface CreateKeyResponse { /** * Key resource. */ key?: Key; /** * A private key of the Key resource. * This key must be stored securely. */ privateKey?: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface DeleteKeyRequest { /** * ID of the key to delete. * To get key ID use a [KeyService.List] request. */ keyId: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
/** * A Role resource. For more information, see [Roles](/docs/iam/concepts/access-control/roles). */ export interface Role { /** * ID of the role. */ id?: string; /** * Description of the role. 0-256 characters long. */ description?: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface GetRoleRequest { /** * ID of the Role resource to return. * To get the role ID, use a [RoleService.List] request. */ roleId: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface ListRolesRequest { /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], * the service returns a [ListRolesResponse.next_page_token] * that can be used to get the next page of results in subsequent list requests. * Def...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface ListRolesResponse { /** * List of Role resources. */ roles?: Role[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListRolesRequest.page_size], use * the [next_page_token] as the value * for the [ListR...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
/** * A ServiceAccount resource. For more information, see [Service accounts](/docs/iam/concepts/users/service-accounts). */ export interface ServiceAccount { /** * ID of the service account. */ id?: string; /** * ID of the folder that the service account belongs to. */ folderId?: string; /** ...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface GetServiceAccountRequest { /** * ID of the ServiceAccount resource to return. * To get the service account ID, use a [ServiceAccountService.List] request. */ serviceAccountId: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface ListServiceAccountsRequest { /** * ID of the folder to list service accounts in. * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. */ folderId: string; /** * The maximum number of results per page to return. If the number of available * r...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface ListServiceAccountsResponse { /** * List of ServiceAccount resources. */ serviceAccounts?: ServiceAccount[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListServiceAccountsRequest.page_size], use * the ...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface CreateServiceAccountRequest { /** * ID of the folder to create a service account in. * To get the folder ID, use a [yandex.cloud.resourcemanager.v1.FolderService.List] request. */ folderId: string; /** * Name of the service account. * The name must be unique within the cloud. ...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface CreateServiceAccountMetadata { /** * ID of the service account that is being created. */ serviceAccountId?: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface UpdateServiceAccountRequest { /** * ID of the ServiceAccount resource to update. * To get the service account ID, use a [ServiceAccountService.List] request. */ serviceAccountId: string; /** * Field mask that specifies which fields of the ServiceAccount resource are going to be upda...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface UpdateServiceAccountMetadata { /** * ID of the ServiceAccount resource that is being updated. */ serviceAccountId?: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface DeleteServiceAccountRequest { /** * ID of the service account to delete. * To get the service account ID, use a [ServiceAccountService.List] request. */ serviceAccountId: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface DeleteServiceAccountMetadata { /** * ID of the service account that is being deleted. */ serviceAccountId?: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface ListServiceAccountOperationsRequest { /** * ID of the ServiceAccount resource to list operations for. */ serviceAccountId: string; /** * The maximum number of results per page to return. If the number of available * results is larger than [page_size], the service returns a [ListServ...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface ListServiceAccountOperationsResponse { /** * List of operations for the specified service account. */ operations?: operation.Operation[]; /** * This token allows you to get the next page of results for list requests. If the number of results * is larger than [ListServiceAccountOpera...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
/** * Currently represents only [Yandex.Passport account](/docs/iam/concepts/#passport). */ export interface UserAccount { /** * ID of the user account. */ id?: string; /** * A YandexPassportUserAccount resource. */ yandexPassportUserAccount?: YandexPassportUserAccount; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
/** * A YandexPassportUserAccount resource. For more information, see [Yandex.Passport account](/docs/iam/concepts/#passport). */ export interface YandexPassportUserAccount { /** * Login of the Yandex.Passport user account. */ login?: string; /** * Default email of the Yandex.Passport user account. ...
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface GetUserAccountRequest { /** * ID of the UserAccount resource to return. */ userAccountId: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
InterfaceDeclaration
export interface GetUserAccountByLoginRequest { /** * Login of the YandexPassportUserAccount resource to return. */ login: string; }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
EnumDeclaration
export enum Algorithm { ALGORITHM_UNSPECIFIED = 0, /** * RSA with a 2048-bit key size. Default value. */ RSA_2048 = 1, /** * RSA with a 4096-bit key size. */ RSA_4096 = 2 }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
EnumDeclaration
export enum KeyFormat { /** * Privacy-Enhanced Mail (PEM) format. Default value. */ PEM_FILE = 0 }
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Retrieves the list of API keys for the specified service account. */ list(request: ListApiKeysRequest): Promise<ListApiKeysResponse>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Returns the specified API key. * * To get the list of available API keys, make a [List] request. */ get(request: GetApiKeyRequest): Promise<ApiKey>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Creates an API key for the specified service account. */ create(request: CreateApiKeyRequest): Promise<CreateApiKeyResponse>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Deletes the specified API key. */ delete(request: DeleteApiKeyRequest): Promise<protobuf.Empty>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Creates an IAM token for the specified identity. */ create(request: CreateIamTokenRequest): Promise<CreateIamTokenResponse>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Returns the specified Key resource. * * To get the list of available Key resources, make a [List] request. */ get(request: GetKeyRequest): Promise<Key>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript
MethodDeclaration
/** * Retrieves the list of Key resources for the specified service account. */ list(request: ListKeysRequest): Promise<ListKeysResponse>;
Inokenty90/yandex-cloud-compute-restart-action
node_modules/yandex-cloud/api/iam/v1/index.d.ts
TypeScript