namespace Octokit.GraphQL.Model { using System; using System.Collections.Generic; using System.Linq.Expressions; using Octokit.GraphQL.Core; using Octokit.GraphQL.Core.Builders; /// /// An account on GitHub, with one or more owners, that has repositories, members and teams. /// public class Organization : QueryableValue { internal Organization(Expression expression) : base(expression) { } /// /// The text of the announcement /// public string Announcement { get; } /// /// The expiration date of the announcement, if any /// public DateTimeOffset? AnnouncementExpiresAt { get; } /// /// Whether the announcement can be dismissed by the user /// public bool? AnnouncementUserDismissible { get; } /// /// Determine if this repository owner has any items that can be pinned to their profile. /// /// Filter to only a particular kind of pinnable item. public bool AnyPinnableItems(Arg? type = null) => default; /// /// Identifies the date and time when the organization was archived. /// public DateTimeOffset? ArchivedAt { get; } /// /// Audit log entries of the organization /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Ordering options for the returned audit log entries. /// The query string to filter audit entries public OrganizationAuditEntryConnection AuditLog(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null, Arg? query = null) => this.CreateMethodCall(x => x.AuditLog(first, after, last, before, orderBy, query), Octokit.GraphQL.Model.OrganizationAuditEntryConnection.Create); /// /// A URL pointing to the organization's public avatar. /// /// The size of the resulting square image. public string AvatarUrl(Arg? size = null) => default; /// /// Identifies the date and time when the object was created. /// public DateTimeOffset CreatedAt { get; } /// /// Identifies the primary key from the database. /// public long? DatabaseId { get; } /// /// The organization's public profile description. /// public string Description { get; } /// /// The organization's public profile description rendered to HTML. /// public string DescriptionHTML { get; } /// /// A list of domains owned by the organization. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Filter by if the domain is approved. /// Filter by if the domain is verified. /// Ordering options for verifiable domains returned. public VerifiableDomainConnection Domains(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? isApproved = null, Arg? isVerified = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.Domains(first, after, last, before, isApproved, isVerified, orderBy), Octokit.GraphQL.Model.VerifiableDomainConnection.Create); /// /// The organization's public email. /// public string Email { get; } /// /// A list of owners of the organization's enterprise account. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Ordering options for enterprise owners returned from the connection. /// The organization role to filter by. /// The search string to look for. public OrganizationEnterpriseOwnerConnection EnterpriseOwners(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null, Arg? organizationRole = null, Arg? query = null) => this.CreateMethodCall(x => x.EnterpriseOwners(first, after, last, before, orderBy, organizationRole, query), Octokit.GraphQL.Model.OrganizationEnterpriseOwnerConnection.Create); /// /// The estimated next GitHub Sponsors payout for this user/organization in cents (USD). /// public int EstimatedNextSponsorsPayoutInCents { get; } /// /// True if this user/organization has a GitHub Sponsors listing. /// public bool HasSponsorsListing { get; } /// /// The Node ID of the Organization object /// public ID Id { get; } /// /// The interaction ability settings for this organization. /// public RepositoryInteractionAbility InteractionAbility => this.CreateProperty(x => x.InteractionAbility, Octokit.GraphQL.Model.RepositoryInteractionAbility.Create); /// /// The setting value for whether the organization has an IP allow list enabled. /// public IpAllowListEnabledSettingValue IpAllowListEnabledSetting { get; } /// /// The IP addresses that are allowed to access resources owned by the organization. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Ordering options for IP allow list entries returned. public IpAllowListEntryConnection IpAllowListEntries(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.IpAllowListEntries(first, after, last, before, orderBy), Octokit.GraphQL.Model.IpAllowListEntryConnection.Create); /// /// The setting value for whether the organization has IP allow list configuration for installed GitHub Apps enabled. /// public IpAllowListForInstalledAppsEnabledSettingValue IpAllowListForInstalledAppsEnabledSetting { get; } /// /// Whether the given account is sponsoring this user/organization. /// /// The target account's login. public bool IsSponsoredBy(Arg accountLogin) => default; /// /// True if the viewer is sponsored by this user/organization. /// public bool IsSponsoringViewer { get; } /// /// Whether the organization has verified its profile email and website. /// public bool IsVerified { get; } /// /// Showcases a selection of repositories and gists that the profile owner has either curated or that have been selected automatically based on popularity. /// public ProfileItemShowcase ItemShowcase => this.CreateProperty(x => x.ItemShowcase, Octokit.GraphQL.Model.ProfileItemShowcase.Create); /// /// Calculate how much each sponsor has ever paid total to this maintainer via GitHub Sponsors. Does not include sponsorships paid via Patreon. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Ordering options for results returned from the connection. public SponsorAndLifetimeValueConnection LifetimeReceivedSponsorshipValues(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.LifetimeReceivedSponsorshipValues(first, after, last, before, orderBy), Octokit.GraphQL.Model.SponsorAndLifetimeValueConnection.Create); /// /// The organization's public profile location. /// public string Location { get; } /// /// The organization's login name. /// public string Login { get; } /// /// A list of all mannequins for this organization. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Filter mannequins by login. /// Ordering options for mannequins returned from the connection. public MannequinConnection Mannequins(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? login = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.Mannequins(first, after, last, before, login, orderBy), Octokit.GraphQL.Model.MannequinConnection.Create); /// /// Get the status messages members of this entity have set that are either public or visible only to the organization. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Ordering options for user statuses returned from the connection. public UserStatusConnection MemberStatuses(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.MemberStatuses(first, after, last, before, orderBy), Octokit.GraphQL.Model.UserStatusConnection.Create); /// /// Members can fork private repositories in this organization /// public bool MembersCanForkPrivateRepositories { get; } /// /// A list of users who are members of this organization. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. public OrganizationMemberConnection MembersWithRole(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null) => this.CreateMethodCall(x => x.MembersWithRole(first, after, last, before), Octokit.GraphQL.Model.OrganizationMemberConnection.Create); /// /// The estimated monthly GitHub Sponsors income for this user/organization in cents (USD). /// public int MonthlyEstimatedSponsorsIncomeInCents { get; } /// /// The organization's public profile name. /// public string Name { get; } /// /// The HTTP path creating a new team /// public string NewTeamResourcePath { get; } /// /// The HTTP URL creating a new team /// public string NewTeamUrl { get; } /// /// Indicates if email notification delivery for this organization is restricted to verified or approved domains. /// public NotificationRestrictionSettingValue NotificationDeliveryRestrictionEnabledSetting { get; } /// /// The billing email for the organization. /// public string OrganizationBillingEmail { get; } /// /// A list of packages under the owner. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Find packages by their names. /// Ordering of the returned packages. /// Filter registry package by type. /// Find packages in a repository by ID. public PackageConnection Packages(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg>? names = null, Arg? orderBy = null, Arg? packageType = null, Arg? repositoryId = null) => this.CreateMethodCall(x => x.Packages(first, after, last, before, names, orderBy, packageType, repositoryId), Octokit.GraphQL.Model.PackageConnection.Create); /// /// A list of users who have been invited to join this organization. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. public UserConnection PendingMembers(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null) => this.CreateMethodCall(x => x.PendingMembers(first, after, last, before), Octokit.GraphQL.Model.UserConnection.Create); /// /// A list of repositories and gists this profile owner can pin to their profile. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Filter the types of pinnable items that are returned. public PinnableItemConnection PinnableItems(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg>? types = null) => this.CreateMethodCall(x => x.PinnableItems(first, after, last, before, types), Octokit.GraphQL.Model.PinnableItemConnection.Create); /// /// A list of repositories and gists this profile owner has pinned to their profile /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Filter the types of pinned items that are returned. public PinnableItemConnection PinnedItems(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg>? types = null) => this.CreateMethodCall(x => x.PinnedItems(first, after, last, before, types), Octokit.GraphQL.Model.PinnableItemConnection.Create); /// /// Returns how many more items this profile owner can pin to their profile. /// public int PinnedItemsRemaining { get; } /// /// Find project by number. /// /// The project number to find. public Project Project(Arg number) => this.CreateMethodCall(x => x.Project(number), Octokit.GraphQL.Model.Project.Create); /// /// Find a project by number. /// /// The project number. public ProjectV2 ProjectV2(Arg number) => this.CreateMethodCall(x => x.ProjectV2(number), Octokit.GraphQL.Model.ProjectV2.Create); /// /// A list of projects under the owner. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Ordering options for projects returned from the connection /// Query to search projects by, currently only searching by name. /// A list of states to filter the projects by. public ProjectConnection Projects(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null, Arg? search = null, Arg>? states = null) => this.CreateMethodCall(x => x.Projects(first, after, last, before, orderBy, search, states), Octokit.GraphQL.Model.ProjectConnection.Create); /// /// The HTTP path listing organization's projects /// public string ProjectsResourcePath { get; } /// /// The HTTP URL listing organization's projects /// public string ProjectsUrl { get; } /// /// A list of projects under the owner. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// How to order the returned projects. /// A project to search for under the the owner. public ProjectV2Connection ProjectsV2(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null, Arg? query = null) => this.CreateMethodCall(x => x.ProjectsV2(first, after, last, before, orderBy, query), Octokit.GraphQL.Model.ProjectV2Connection.Create); /// /// Recent projects that this user has modified in the context of the owner. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. public ProjectV2Connection RecentProjects(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null) => this.CreateMethodCall(x => x.RecentProjects(first, after, last, before), Octokit.GraphQL.Model.ProjectV2Connection.Create); /// /// A list of repositories that the user owns. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Array of viewer's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the current viewer owns. /// If non-null, filters repositories according to whether they have issues enabled /// If non-null, filters repositories according to whether they are archived and not maintained /// If non-null, filters repositories according to whether they are forks of another repository /// If non-null, filters repositories according to whether they have been locked /// Ordering options for repositories returned from the connection /// Array of owner's affiliation options for repositories returned from the connection. For example, OWNER will include only repositories that the organization or user being viewed owns. /// If non-null, filters repositories according to privacy. Internal repositories are considered private; consider using the visibility argument if only internal repositories are needed. Cannot be combined with the visibility argument. /// If non-null, filters repositories according to visibility. Cannot be combined with the privacy argument. public RepositoryConnection Repositories(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg>? affiliations = null, Arg? hasIssuesEnabled = null, Arg? isArchived = null, Arg? isFork = null, Arg? isLocked = null, Arg? orderBy = null, Arg>? ownerAffiliations = null, Arg? privacy = null, Arg? visibility = null) => this.CreateMethodCall(x => x.Repositories(first, after, last, before, affiliations, hasIssuesEnabled, isArchived, isFork, isLocked, orderBy, ownerAffiliations, privacy, visibility), Octokit.GraphQL.Model.RepositoryConnection.Create); /// /// Find Repository. /// /// Name of Repository to find. /// Follow repository renames. If disabled, a repository referenced by its old name will return an error. public Repository Repository(Arg name, Arg? followRenames = null) => this.CreateMethodCall(x => x.Repository(name, followRenames), Octokit.GraphQL.Model.Repository.Create); /// /// Discussion comments this user has authored. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Filter discussion comments to only those that were marked as the answer /// Filter discussion comments to only those in a specific repository. public DiscussionCommentConnection RepositoryDiscussionComments(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? onlyAnswers = null, Arg? repositoryId = null) => this.CreateMethodCall(x => x.RepositoryDiscussionComments(first, after, last, before, onlyAnswers, repositoryId), Octokit.GraphQL.Model.DiscussionCommentConnection.Create); /// /// Discussions this user has started. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Filter discussions to only those that have been answered or not. Defaults to including both answered and unanswered discussions. /// Ordering options for discussions returned from the connection. /// Filter discussions to only those in a specific repository. /// A list of states to filter the discussions by. public DiscussionConnection RepositoryDiscussions(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? answered = null, Arg? orderBy = null, Arg? repositoryId = null, Arg>? states = null) => this.CreateMethodCall(x => x.RepositoryDiscussions(first, after, last, before, answered, orderBy, repositoryId, states), Octokit.GraphQL.Model.DiscussionConnection.Create); /// /// A list of all repository migrations for this organization. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Ordering options for repository migrations returned. /// Filter repository migrations by repository name. /// Filter repository migrations by state. public RepositoryMigrationConnection RepositoryMigrations(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null, Arg? repositoryName = null, Arg? state = null) => this.CreateMethodCall(x => x.RepositoryMigrations(first, after, last, before, orderBy, repositoryName, state), Octokit.GraphQL.Model.RepositoryMigrationConnection.Create); /// /// When true the organization requires all members, billing managers, and outside collaborators to enable two-factor authentication. /// public bool? RequiresTwoFactorAuthentication { get; } /// /// The HTTP path for this organization. /// public string ResourcePath { get; } /// /// Returns a single ruleset from the current organization by ID. /// /// The ID of the ruleset to be returned. public RepositoryRuleset Ruleset(Arg databaseId) => this.CreateMethodCall(x => x.Ruleset(databaseId), Octokit.GraphQL.Model.RepositoryRuleset.Create); /// /// A list of rulesets for this organization. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Return rulesets configured at higher levels that apply to this organization public RepositoryRulesetConnection Rulesets(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? includeParents = null) => this.CreateMethodCall(x => x.Rulesets(first, after, last, before, includeParents), Octokit.GraphQL.Model.RepositoryRulesetConnection.Create); /// /// The Organization's SAML identity provider. Visible to (1) organization owners, (2) organization owners' personal access tokens (classic) with read:org or admin:org scope, (3) GitHub App with an installation token with read or write access to members. /// public OrganizationIdentityProvider SamlIdentityProvider => this.CreateProperty(x => x.SamlIdentityProvider, Octokit.GraphQL.Model.OrganizationIdentityProvider.Create); /// /// List of users and organizations this entity is sponsoring. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Ordering options for the users and organizations returned from the connection. public SponsorConnection Sponsoring(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.Sponsoring(first, after, last, before, orderBy), Octokit.GraphQL.Model.SponsorConnection.Create); /// /// List of sponsors for this user or organization. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Ordering options for sponsors returned from the connection. /// If given, will filter for sponsors at the given tier. Will only return sponsors whose tier the viewer is permitted to see. public SponsorConnection Sponsors(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null, Arg? tierId = null) => this.CreateMethodCall(x => x.Sponsors(first, after, last, before, orderBy, tierId), Octokit.GraphQL.Model.SponsorConnection.Create); /// /// Events involving this sponsorable, such as new sponsorships. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Filter activities to only the specified actions. /// Whether to include those events where this sponsorable acted as the sponsor. Defaults to only including events where this sponsorable was the recipient of a sponsorship. /// Whether or not to include private activities in the result set. Defaults to including public and private activities. /// Ordering options for activity returned from the connection. /// Filter activities returned to only those that occurred in the most recent specified time period. Set to ALL to avoid filtering by when the activity occurred. Will be ignored if `since` or `until` is given. /// Filter activities to those that occurred on or after this time. /// Filter activities to those that occurred before this time. public SponsorsActivityConnection SponsorsActivities(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg>? actions = null, Arg? includeAsSponsor = null, Arg? includePrivate = null, Arg? orderBy = null, Arg? period = null, Arg? since = null, Arg? until = null) => this.CreateMethodCall(x => x.SponsorsActivities(first, after, last, before, actions, includeAsSponsor, includePrivate, orderBy, period, since, until), Octokit.GraphQL.Model.SponsorsActivityConnection.Create); /// /// The GitHub Sponsors listing for this user or organization. /// public SponsorsListing SponsorsListing => this.CreateProperty(x => x.SponsorsListing, Octokit.GraphQL.Model.SponsorsListing.Create); /// /// The sponsorship from the viewer to this user/organization; that is, the sponsorship where you're the sponsor. /// /// Whether to return the sponsorship only if it's still active. Pass false to get the viewer's sponsorship back even if it has been cancelled. public Sponsorship SponsorshipForViewerAsSponsor(Arg? activeOnly = null) => this.CreateMethodCall(x => x.SponsorshipForViewerAsSponsor(activeOnly), Octokit.GraphQL.Model.Sponsorship.Create); /// /// The sponsorship from this user/organization to the viewer; that is, the sponsorship you're receiving. /// /// Whether to return the sponsorship only if it's still active. Pass false to get the sponsorship back even if it has been cancelled. public Sponsorship SponsorshipForViewerAsSponsorable(Arg? activeOnly = null) => this.CreateMethodCall(x => x.SponsorshipForViewerAsSponsorable(activeOnly), Octokit.GraphQL.Model.Sponsorship.Create); /// /// List of sponsorship updates sent from this sponsorable to sponsors. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Ordering options for sponsorship updates returned from the connection. public SponsorshipNewsletterConnection SponsorshipNewsletters(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.SponsorshipNewsletters(first, after, last, before, orderBy), Octokit.GraphQL.Model.SponsorshipNewsletterConnection.Create); /// /// The sponsorships where this user or organization is the maintainer receiving the funds. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Whether to include only sponsorships that are active right now, versus all sponsorships this maintainer has ever received. /// Whether or not to include private sponsorships in the result set /// Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer. public SponsorshipConnection SponsorshipsAsMaintainer(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? activeOnly = null, Arg? includePrivate = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.SponsorshipsAsMaintainer(first, after, last, before, activeOnly, includePrivate, orderBy), Octokit.GraphQL.Model.SponsorshipConnection.Create); /// /// The sponsorships where this user or organization is the funder. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// Whether to include only sponsorships that are active right now, versus all sponsorships this sponsor has ever made. /// Filter sponsorships returned to those for the specified maintainers. That is, the recipient of the sponsorship is a user or organization with one of the given logins. /// Ordering options for sponsorships returned from this connection. If left blank, the sponsorships will be ordered based on relevancy to the viewer. public SponsorshipConnection SponsorshipsAsSponsor(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? activeOnly = null, Arg>? maintainerLogins = null, Arg? orderBy = null) => this.CreateMethodCall(x => x.SponsorshipsAsSponsor(first, after, last, before, activeOnly, maintainerLogins, orderBy), Octokit.GraphQL.Model.SponsorshipConnection.Create); /// /// Find an organization's team by its slug. /// /// The name or slug of the team to find. public Team Team(Arg slug) => this.CreateMethodCall(x => x.Team(slug), Octokit.GraphQL.Model.Team.Create); /// /// A list of teams in this organization. /// /// Returns the first _n_ elements from the list. /// Returns the elements in the list that come after the specified cursor. /// Returns the last _n_ elements from the list. /// Returns the elements in the list that come before the specified cursor. /// If true, filters teams that are mapped to an LDAP Group (Enterprise only) /// If non-null, filters teams according to notification setting /// Ordering options for teams returned from the connection /// If non-null, filters teams according to privacy /// If non-null, filters teams with query on team name and team slug /// If non-null, filters teams according to whether the viewer is an admin or member on team /// If true, restrict to only root teams /// User logins to filter by public TeamConnection Teams(Arg? first = null, Arg? after = null, Arg? last = null, Arg? before = null, Arg? ldapMapped = null, Arg? notificationSetting = null, Arg? orderBy = null, Arg? privacy = null, Arg? query = null, Arg? role = null, Arg? rootTeamsOnly = null, Arg>? userLogins = null) => this.CreateMethodCall(x => x.Teams(first, after, last, before, ldapMapped, notificationSetting, orderBy, privacy, query, role, rootTeamsOnly, userLogins), Octokit.GraphQL.Model.TeamConnection.Create); /// /// The HTTP path listing organization's teams /// public string TeamsResourcePath { get; } /// /// The HTTP URL listing organization's teams /// public string TeamsUrl { get; } /// /// The amount in United States cents (e.g., 500 = $5.00 USD) that this entity has spent on GitHub to fund sponsorships. Only returns a value when viewed by the user themselves or by a user who can manage sponsorships for the requested organization. /// /// Filter payments to those that occurred on or after this time. /// Filter payments to those made to the users or organizations with the specified usernames. /// Filter payments to those that occurred before this time. public int? TotalSponsorshipAmountAsSponsorInCents(Arg? since = null, Arg>? sponsorableLogins = null, Arg? until = null) => default; /// /// The organization's Twitter username. /// public string TwitterUsername { get; } /// /// Identifies the date and time when the object was last updated. /// public DateTimeOffset UpdatedAt { get; } /// /// The HTTP URL for this organization. /// public string Url { get; } /// /// Organization is adminable by the viewer. /// public bool ViewerCanAdminister { get; } /// /// Can the viewer pin repositories and gists to the profile? /// public bool ViewerCanChangePinnedItems { get; } /// /// Can the current viewer create new projects on this owner. /// public bool ViewerCanCreateProjects { get; } /// /// Viewer can create repositories on this organization /// public bool ViewerCanCreateRepositories { get; } /// /// Viewer can create teams on this organization. /// public bool ViewerCanCreateTeams { get; } /// /// Whether or not the viewer is able to sponsor this user/organization. /// public bool ViewerCanSponsor { get; } /// /// Viewer is an active member of this organization. /// public bool ViewerIsAMember { get; } /// /// Whether or not this Organization is followed by the viewer. /// public bool ViewerIsFollowing { get; } /// /// True if the viewer is sponsoring this user/organization. /// public bool ViewerIsSponsoring { get; } /// /// Whether contributors are required to sign off on web-based commits for repositories in this organization. /// public bool WebCommitSignoffRequired { get; } /// /// The organization's public profile URL. /// public string WebsiteUrl { get; } internal static Organization Create(Expression expression) { return new Organization(expression); } } }