/** * This file is auto-generated by the API client generator. * https://github.com/flowup/api-client-generator * * Avoid editing this file manually unless necessary. * Please report any bugs so they can be addressed in future versions. */ /* tslint:disable */ /* eslint-disable */ import { HttpClient, HttpHeaders, HttpParams, HttpResponse, HttpEvent } from '@angular/common/http'; import { Inject, Injectable, InjectionToken, Optional } from '@angular/core'; import { OrgsAPIClientInterface } from './orgs-api-client.interface'; import { Observable } from 'rxjs';import { DefaultHttpOptions, HttpOptions } from '../../types'; import * as models from '../../models'; export const USE_DOMAIN = new InjectionToken('OrgsAPIClient_USE_DOMAIN'); export const USE_HTTP_OPTIONS = new InjectionToken('OrgsAPIClient_USE_HTTP_OPTIONS'); type APIHttpOptions = HttpOptions & { headers: HttpHeaders; params: HttpParams; }; @Injectable() export class OrgsAPIClient implements OrgsAPIClientInterface { readonly options: APIHttpOptions; readonly domain: string = `https://api.github.com`; constructor( private readonly http: HttpClient, @Optional() @Inject(USE_DOMAIN) domain?: string, @Optional() @Inject(USE_HTTP_OPTIONS) options?: DefaultHttpOptions, ) { if (domain != null) { this.domain = domain; } this.options = { headers: new HttpHeaders(options && options.headers ? options.headers : {}), params: new HttpParams(options && options.params ? options.params : {}), ...(options && options.reportProgress ? { reportProgress: options.reportProgress } : {}), ...(options && options.withCredentials ? { withCredentials: options.withCredentials } : {}) }; } /** * Get an Organization. * Response generated for [ 200 ] HTTP response code. */ getOrgsOrg( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; getOrgsOrg( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; getOrgsOrg( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; getOrgsOrg( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.get(`${this.domain}${path}`, options); } /** * Edit an Organization. * Response generated for [ 200 ] HTTP response code. */ patchOrgsOrg( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; patchOrgsOrg( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; patchOrgsOrg( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; patchOrgsOrg( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.patch(`${this.domain}${path}`, JSON.stringify(args.body), options); } /** * List public events for an organization. * Response generated for [ 200 ] HTTP response code. */ getOrgsOrgEvents( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; getOrgsOrgEvents( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; getOrgsOrgEvents( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; getOrgsOrgEvents( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/events`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.get(`${this.domain}${path}`, options); } /** * List issues. * List all issues for a given organization for the authenticated user. * * Response generated for [ 200 ] HTTP response code. */ getOrgsOrgIssues( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; getOrgsOrgIssues( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; getOrgsOrgIssues( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; getOrgsOrgIssues( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/issues`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('filter' in args) { options.params = options.params.set('filter', String(args.filter)); } if ('state' in args) { options.params = options.params.set('state', String(args.state)); } if ('labels' in args) { options.params = options.params.set('labels', String(args.labels)); } if ('sort' in args) { options.params = options.params.set('sort', String(args.sort)); } if ('direction' in args) { options.params = options.params.set('direction', String(args.direction)); } if ('since' in args) { options.params = options.params.set('since', String(args.since)); } if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.get(`${this.domain}${path}`, options); } /** * Members list. * List all users who are members of an organization. A member is a user tha * belongs to at least 1 team in the organization. If the authenticated user * is also an owner of this organization then both concealed and public members * will be returned. If the requester is not an owner of the organization the * query will be redirected to the public members list. * * Response generated for [ 200 ] HTTP response code. */ getOrgsOrgMembers( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; getOrgsOrgMembers( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; getOrgsOrgMembers( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; getOrgsOrgMembers( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/members`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.get(`${this.domain}${path}`, options); } /** * Remove a member. * Removing a user from this list will remove them from all teams and they * will no longer have any access to the organization's repositories. * * Response generated for [ 204 ] HTTP response code. */ deleteOrgsOrgMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; deleteOrgsOrgMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; deleteOrgsOrgMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; deleteOrgsOrgMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/members/${args.username}`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.delete(`${this.domain}${path}`, options); } /** * Check if a user is, publicly or privately, a member of the organization. * Response generated for [ 204 ] HTTP response code. */ getOrgsOrgMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; getOrgsOrgMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; getOrgsOrgMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; getOrgsOrgMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/members/${args.username}`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.get(`${this.domain}${path}`, options); } /** * Public members list. * Members of an organization can choose to have their membership publicized * or not. * * Response generated for [ 200 ] HTTP response code. */ getOrgsOrgPublicMembers( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; getOrgsOrgPublicMembers( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; getOrgsOrgPublicMembers( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; getOrgsOrgPublicMembers( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/public_members`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.get(`${this.domain}${path}`, options); } /** * Conceal a user's membership. * Response generated for [ 204 ] HTTP response code. */ deleteOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; deleteOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; deleteOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; deleteOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/public_members/${args.username}`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.delete(`${this.domain}${path}`, options); } /** * Check public membership. * Response generated for [ 204 ] HTTP response code. */ getOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; getOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; getOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; getOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/public_members/${args.username}`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.get(`${this.domain}${path}`, options); } /** * Publicize a user's membership. * Response generated for [ 204 ] HTTP response code. */ putOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; putOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; putOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; putOrgsOrgPublicMembersUsername( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/public_members/${args.username}`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.put(`${this.domain}${path}`, null, options); } /** * List repositories for the specified org. * Response generated for [ 200 ] HTTP response code. */ getOrgsOrgRepos( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; getOrgsOrgRepos( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; getOrgsOrgRepos( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; getOrgsOrgRepos( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/repos`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('type' in args) { options.params = options.params.set('type', String(args.type)); } if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.get(`${this.domain}${path}`, options); } /** * Create a new repository for the authenticated user. OAuth users must supply * repo scope. * * Response generated for [ 201 ] HTTP response code. */ postOrgsOrgRepos( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; postOrgsOrgRepos( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; postOrgsOrgRepos( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; postOrgsOrgRepos( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/repos`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.post(`${this.domain}${path}`, JSON.stringify(args.body), options); } /** * List teams. * Response generated for [ 200 ] HTTP response code. */ getOrgsOrgTeams( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; getOrgsOrgTeams( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; getOrgsOrgTeams( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; getOrgsOrgTeams( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/teams`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.get(`${this.domain}${path}`, options); } /** * Create team. * In order to create a team, the authenticated user must be an owner of organization. * * Response generated for [ 201 ] HTTP response code. */ postOrgsOrgTeams( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'body', ): Observable; postOrgsOrgTeams( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'response', ): Observable>; postOrgsOrgTeams( args: Exclude, requestHttpOptions?: HttpOptions, observe?: 'events', ): Observable>; postOrgsOrgTeams( args: Exclude, requestHttpOptions?: HttpOptions, observe: any = 'body', ): Observable | HttpEvent> { const path = `/orgs/${args.org}/teams`; const options = { ...this.options, ...requestHttpOptions, observe, }; if ('xGitHubMediaType' in args) { options.headers = options.headers.set('X-GitHub-Media-Type', String(args.xGitHubMediaType)); } if ('accept' in args) { options.headers = options.headers.set('Accept', String(args.accept)); } if ('xRateLimit' in args) { options.headers = options.headers.set('X-RateLimit-Limit', String(args.xRateLimit)); } if ('xRateLimitRemaining' in args) { options.headers = options.headers.set('X-RateLimit-Remaining', String(args.xRateLimitRemaining)); } if ('xRateLimitReset' in args) { options.headers = options.headers.set('X-RateLimit-Reset', String(args.xRateLimitReset)); } if ('xGitHubRequestId' in args) { options.headers = options.headers.set('X-GitHub-Request-Id', String(args.xGitHubRequestId)); } return this.http.post(`${this.domain}${path}`, JSON.stringify(args.body), options); } }