Struct roctogen::endpoints::billing::Billing [−][src]
pub struct Billing<'api> { /* fields omitted */ }
Implementations
pub async fn get_github_actions_billing_ghe_async(
&self,
enterprise: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingGheError>
pub async fn get_github_actions_billing_ghe_async(
&self,
enterprise: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingGheError>
Get GitHub Actions billing for an enterprise
Gets the summary of the free and paid GitHub Actions minutes used.
Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see “Managing billing for GitHub Actions”.
The authenticated user must be an enterprise admin.
GitHub API docs for get_github_actions_billing_ghe
pub fn get_github_actions_billing_ghe(
&self,
enterprise: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingGheError>
pub fn get_github_actions_billing_ghe(
&self,
enterprise: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingGheError>
Get GitHub Actions billing for an enterprise
Gets the summary of the free and paid GitHub Actions minutes used.
Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage does not include the multiplier for macOS and Windows runners and is not rounded up to the nearest whole minute. For more information, see “Managing billing for GitHub Actions”.
The authenticated user must be an enterprise admin.
GitHub API docs for get_github_actions_billing_ghe
pub async fn get_github_actions_billing_org_async(
&self,
org: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingOrgError>
pub async fn get_github_actions_billing_org_async(
&self,
org: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingOrgError>
Get GitHub Actions billing for an organization
Gets the summary of the free and paid GitHub Actions minutes used.
Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see “Managing billing for GitHub Actions”.
Access tokens must have the repo
or admin:org
scope.
GitHub API docs for get_github_actions_billing_org
pub fn get_github_actions_billing_org(
&self,
org: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingOrgError>
pub fn get_github_actions_billing_org(
&self,
org: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingOrgError>
Get GitHub Actions billing for an organization
Gets the summary of the free and paid GitHub Actions minutes used.
Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see “Managing billing for GitHub Actions”.
Access tokens must have the repo
or admin:org
scope.
GitHub API docs for get_github_actions_billing_org
pub async fn get_github_actions_billing_user_async(
&self,
username: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingUserError>
pub async fn get_github_actions_billing_user_async(
&self,
username: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingUserError>
Get GitHub Actions billing for a user
Gets the summary of the free and paid GitHub Actions minutes used.
Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see “Managing billing for GitHub Actions”.
Access tokens must have the user
scope.
GitHub API docs for get_github_actions_billing_user
pub fn get_github_actions_billing_user(
&self,
username: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingUserError>
pub fn get_github_actions_billing_user(
&self,
username: &str
) -> Result<ActionsBillingUsage, BillingGetGithubActionsBillingUserError>
Get GitHub Actions billing for a user
Gets the summary of the free and paid GitHub Actions minutes used.
Paid minutes only apply to workflows in private repositories that use GitHub-hosted runners. Minutes used is listed for each GitHub-hosted runner operating system. Any job re-runs are also included in the usage. The usage returned includes any minute multipliers for macOS and Windows runners, and is rounded up to the nearest whole minute. For more information, see “Managing billing for GitHub Actions”.
Access tokens must have the user
scope.
GitHub API docs for get_github_actions_billing_user
pub async fn get_github_advanced_security_billing_ghe_async(
&self,
enterprise: &str,
query_params: Option<impl Into<BillingGetGithubAdvancedSecurityBillingGheParams>>
) -> Result<AdvancedSecurityActiveCommitters, BillingGetGithubAdvancedSecurityBillingGheError>
pub async fn get_github_advanced_security_billing_ghe_async(
&self,
enterprise: &str,
query_params: Option<impl Into<BillingGetGithubAdvancedSecurityBillingGheParams>>
) -> Result<AdvancedSecurityActiveCommitters, BillingGetGithubAdvancedSecurityBillingGheError>
Get GitHub Advanced Security active committers for an enterprise
Gets the GitHub Advanced Security active committers for an enterprise per repository. Each distinct user login across all repositories is counted as a single Advanced Security seat, so the total_advanced_security_committers is not the sum of active_users for each repository.
GitHub API docs for get_github_advanced_security_billing_ghe
pub fn get_github_advanced_security_billing_ghe(
&self,
enterprise: &str,
query_params: Option<impl Into<BillingGetGithubAdvancedSecurityBillingGheParams>>
) -> Result<AdvancedSecurityActiveCommitters, BillingGetGithubAdvancedSecurityBillingGheError>
pub fn get_github_advanced_security_billing_ghe(
&self,
enterprise: &str,
query_params: Option<impl Into<BillingGetGithubAdvancedSecurityBillingGheParams>>
) -> Result<AdvancedSecurityActiveCommitters, BillingGetGithubAdvancedSecurityBillingGheError>
Get GitHub Advanced Security active committers for an enterprise
Gets the GitHub Advanced Security active committers for an enterprise per repository. Each distinct user login across all repositories is counted as a single Advanced Security seat, so the total_advanced_security_committers is not the sum of active_users for each repository.
GitHub API docs for get_github_advanced_security_billing_ghe
pub async fn get_github_advanced_security_billing_org_async(
&self,
org: &str,
query_params: Option<impl Into<BillingGetGithubAdvancedSecurityBillingOrgParams>>
) -> Result<AdvancedSecurityActiveCommitters, BillingGetGithubAdvancedSecurityBillingOrgError>
pub async fn get_github_advanced_security_billing_org_async(
&self,
org: &str,
query_params: Option<impl Into<BillingGetGithubAdvancedSecurityBillingOrgParams>>
) -> Result<AdvancedSecurityActiveCommitters, BillingGetGithubAdvancedSecurityBillingOrgError>
Get GitHub Advanced Security active committers for an organization
Gets the GitHub Advanced Security active committers for an organization per repository. Each distinct user login across all repositories is counted as a single Advanced Security seat, so the total_advanced_security_committers is not the sum of advanced_security_committers for each repository. If this organization defers to an enterprise for billing, the total_advanced_security_committers returned from the organization API may include some users that are in more than one organization, so they will only consume a single Advanced Security seat at the enterprise level.
GitHub API docs for get_github_advanced_security_billing_org
pub fn get_github_advanced_security_billing_org(
&self,
org: &str,
query_params: Option<impl Into<BillingGetGithubAdvancedSecurityBillingOrgParams>>
) -> Result<AdvancedSecurityActiveCommitters, BillingGetGithubAdvancedSecurityBillingOrgError>
pub fn get_github_advanced_security_billing_org(
&self,
org: &str,
query_params: Option<impl Into<BillingGetGithubAdvancedSecurityBillingOrgParams>>
) -> Result<AdvancedSecurityActiveCommitters, BillingGetGithubAdvancedSecurityBillingOrgError>
Get GitHub Advanced Security active committers for an organization
Gets the GitHub Advanced Security active committers for an organization per repository. Each distinct user login across all repositories is counted as a single Advanced Security seat, so the total_advanced_security_committers is not the sum of advanced_security_committers for each repository. If this organization defers to an enterprise for billing, the total_advanced_security_committers returned from the organization API may include some users that are in more than one organization, so they will only consume a single Advanced Security seat at the enterprise level.
GitHub API docs for get_github_advanced_security_billing_org
pub async fn get_github_packages_billing_ghe_async(
&self,
enterprise: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingGheError>
pub async fn get_github_packages_billing_ghe_async(
&self,
enterprise: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingGheError>
Get GitHub Packages billing for an enterprise
Gets the free and paid storage used for GitHub Packages in gigabytes.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
The authenticated user must be an enterprise admin.
GitHub API docs for get_github_packages_billing_ghe
pub fn get_github_packages_billing_ghe(
&self,
enterprise: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingGheError>
pub fn get_github_packages_billing_ghe(
&self,
enterprise: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingGheError>
Get GitHub Packages billing for an enterprise
Gets the free and paid storage used for GitHub Packages in gigabytes.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
The authenticated user must be an enterprise admin.
GitHub API docs for get_github_packages_billing_ghe
pub async fn get_github_packages_billing_org_async(
&self,
org: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingOrgError>
pub async fn get_github_packages_billing_org_async(
&self,
org: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingOrgError>
Get GitHub Packages billing for an organization
Gets the free and paid storage used for GitHub Packages in gigabytes.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
Access tokens must have the repo
or admin:org
scope.
GitHub API docs for get_github_packages_billing_org
pub fn get_github_packages_billing_org(
&self,
org: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingOrgError>
pub fn get_github_packages_billing_org(
&self,
org: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingOrgError>
Get GitHub Packages billing for an organization
Gets the free and paid storage used for GitHub Packages in gigabytes.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
Access tokens must have the repo
or admin:org
scope.
GitHub API docs for get_github_packages_billing_org
pub async fn get_github_packages_billing_user_async(
&self,
username: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingUserError>
pub async fn get_github_packages_billing_user_async(
&self,
username: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingUserError>
Get GitHub Packages billing for a user
Gets the free and paid storage used for GitHub Packages in gigabytes.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
Access tokens must have the user
scope.
GitHub API docs for get_github_packages_billing_user
pub fn get_github_packages_billing_user(
&self,
username: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingUserError>
pub fn get_github_packages_billing_user(
&self,
username: &str
) -> Result<PackagesBillingUsage, BillingGetGithubPackagesBillingUserError>
Get GitHub Packages billing for a user
Gets the free and paid storage used for GitHub Packages in gigabytes.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
Access tokens must have the user
scope.
GitHub API docs for get_github_packages_billing_user
Get shared storage billing for an enterprise
Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
The authenticated user must be an enterprise admin.
GitHub API docs for get_shared_storage_billing_ghe
Get shared storage billing for an enterprise
Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
The authenticated user must be an enterprise admin.
GitHub API docs for get_shared_storage_billing_ghe
Get shared storage billing for an organization
Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
Access tokens must have the repo
or admin:org
scope.
GitHub API docs for get_shared_storage_billing_org
Get shared storage billing for an organization
Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
Access tokens must have the repo
or admin:org
scope.
GitHub API docs for get_shared_storage_billing_org
Get shared storage billing for a user
Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
Access tokens must have the user
scope.
GitHub API docs for get_shared_storage_billing_user
Get shared storage billing for a user
Gets the estimated paid and estimated total storage used for GitHub Actions and Github Packages.
Paid minutes only apply to packages stored for private repositories. For more information, see “Managing billing for GitHub Packages.”
Access tokens must have the user
scope.
GitHub API docs for get_shared_storage_billing_user