FavoriteRestClient class
Classe base que deve ser utilizada (derivada de) para fazer pedidos às apis REST do VSS
- Extends
Construtores
Favorite |
Métodos
Detalhes do Construtor
FavoriteRestClient(IVssRestClientOptions)
Detalhes de Método
createFavorite(FavoriteCreateParameters)
function createFavorite(favorite: FavoriteCreateParameters): Promise<Favorite>
Parâmetros
- favorite
- FavoriteCreateParameters
Devoluções
Promise<Favorite>
createFavoriteOfOwner(FavoriteCreateParameters, string, string)
function createFavoriteOfOwner(favorite: FavoriteCreateParameters, ownerScopeType: string, ownerScopeId: string): Promise<Favorite>
Parâmetros
- favorite
- FavoriteCreateParameters
- ownerScopeType
-
string
- ownerScopeId
-
string
Devoluções
Promise<Favorite>
deleteFavoriteById(string, string, string, string)
function deleteFavoriteById(favoriteId: string, artifactType: string, artifactScopeType: string, artifactScopeId?: string): Promise<void>
Parâmetros
- favoriteId
-
string
- artifactType
-
string
- artifactScopeType
-
string
- artifactScopeId
-
string
Devoluções
Promise<void>
deleteFavoriteOfOwnerById(string, string, string, string, string, string)
function deleteFavoriteOfOwnerById(favoriteId: string, ownerScopeType: string, ownerScopeId: string, artifactType: string, artifactScopeType: string, artifactScopeId?: string): Promise<void>
Parâmetros
- favoriteId
-
string
- ownerScopeType
-
string
- ownerScopeId
-
string
- artifactType
-
string
- artifactScopeType
-
string
- artifactScopeId
-
string
Devoluções
Promise<void>
getFavoriteByArtifact(string, string, string, string, boolean)
function getFavoriteByArtifact(artifactType: string, artifactId: string, artifactScopeType: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite>
Parâmetros
- artifactType
-
string
- artifactId
-
string
- artifactScopeType
-
string
- artifactScopeId
-
string
- includeExtendedDetails
-
boolean
Devoluções
Promise<Favorite>
getFavoriteById(string, string, string, string, boolean)
function getFavoriteById(favoriteId: string, artifactScopeType: string, artifactType: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite>
Parâmetros
- favoriteId
-
string
- artifactScopeType
-
string
- artifactType
-
string
- artifactScopeId
-
string
- includeExtendedDetails
-
boolean
Devoluções
Promise<Favorite>
getFavoriteOfOwnerById(string, string, string, string, string, string, boolean)
function getFavoriteOfOwnerById(favoriteId: string, ownerScopeType: string, ownerScopeId: string, artifactScopeType: string, artifactType: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite>
Parâmetros
- favoriteId
-
string
- ownerScopeType
-
string
- ownerScopeId
-
string
- artifactScopeType
-
string
- artifactType
-
string
- artifactScopeId
-
string
- includeExtendedDetails
-
boolean
Devoluções
Promise<Favorite>
getFavoriteProviders(boolean)
function getFavoriteProviders(faultInMissingHost?: boolean): Promise<FavoriteProvider[]>
Parâmetros
- faultInMissingHost
-
boolean
Devoluções
Promise<FavoriteProvider[]>
getFavorites(string, string, string, boolean)
function getFavorites(artifactType?: string, artifactScopeType?: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite[]>
Parâmetros
- artifactType
-
string
- artifactScopeType
-
string
- artifactScopeId
-
string
- includeExtendedDetails
-
boolean
Devoluções
Promise<Favorite[]>
getFavoritesOfOwner(string, string, string, string, string, boolean)
function getFavoritesOfOwner(ownerScopeType: string, ownerScopeId: string, artifactType?: string, artifactScopeType?: string, artifactScopeId?: string, includeExtendedDetails?: boolean): Promise<Favorite[]>
Parâmetros
- ownerScopeType
-
string
- ownerScopeId
-
string
- artifactType
-
string
- artifactScopeType
-
string
- artifactScopeId
-
string
- includeExtendedDetails
-
boolean
Devoluções
Promise<Favorite[]>