-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdotfiles.ts
More file actions
99 lines (90 loc) · 2.27 KB
/
dotfiles.ts
File metadata and controls
99 lines (90 loc) · 2.27 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
import { APIResource } from '../../core/resource';
import { APIPromise } from '../../core/api-promise';
import { RequestOptions } from '../../internal/request-options';
export class Dotfiles extends APIResource {
/**
* Gets the dotfiles for a user.
*
* Use this method to:
*
* - Retrieve user dotfiles
*
* ### Examples
*
* - Get dotfiles:
*
* Retrieves the dotfiles for the current user.
*
* ```yaml
* {}
* ```
*
* @example
* ```ts
* const dotfile = await client.users.dotfiles.get();
* ```
*/
get(body: DotfileGetParams, options?: RequestOptions): APIPromise<DotfileGetResponse> {
return this._client.post('/gitpod.v1.UserService/GetDotfilesConfiguration', { body, ...options });
}
/**
* Sets the dotfiles configuration for a user.
*
* Use this method to:
*
* - Configure user dotfiles
* - Update dotfiles settings
*
* ### Examples
*
* - Set dotfiles configuration:
*
* Sets the dotfiles configuration for the current user.
*
* ```yaml
* { "repository": "https://github.com/gitpod-io/dotfiles" }
* ```
*
* - Remove dotfiles:
*
* Removes the dotfiles for the current user.
*
* ```yaml
* {}
* ```
*
* @example
* ```ts
* const response = await client.users.dotfiles.set();
* ```
*/
set(body: DotfileSetParams, options?: RequestOptions): APIPromise<unknown> {
return this._client.post('/gitpod.v1.UserService/SetDotfilesConfiguration', { body, ...options });
}
}
export interface DotfilesConfiguration {
/**
* The URL of a dotfiles repository.
*/
repository?: string;
}
export interface DotfileGetResponse {
dotfilesConfiguration: DotfilesConfiguration;
}
export type DotfileSetResponse = unknown;
export interface DotfileGetParams {
empty?: boolean;
}
export interface DotfileSetParams {
repository?: string;
}
export declare namespace Dotfiles {
export {
type DotfilesConfiguration as DotfilesConfiguration,
type DotfileGetResponse as DotfileGetResponse,
type DotfileSetResponse as DotfileSetResponse,
type DotfileGetParams as DotfileGetParams,
type DotfileSetParams as DotfileSetParams,
};
}