Struct octorust::billing::Billing [−][src]
pub struct Billing {
pub client: Client,
}
Fields
client: Client
Implementations
pub async fn get_github_actions_billing_ghe(
&self,
enterprise: &str
) -> Result<ActionsBillingUsage>
pub async fn get_github_actions_billing_ghe(
&self,
enterprise: &str
) -> Result<ActionsBillingUsage>
Get GitHub Actions billing for an enterprise.
This function performs a GET
to the /enterprises/{enterprise}/settings/billing/actions
endpoint.
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.
FROM: https://docs.github.com/rest/reference/billing#get-github-actions-billing-for-an-enterprise
Parameters:
enterprise: &str
– The slug version of the enterprise name. You can also substitute this value with the enterprise id.
pub async fn get_github_packages_billing_ghe(
&self,
enterprise: &str
) -> Result<PackagesBillingUsage>
pub async fn get_github_packages_billing_ghe(
&self,
enterprise: &str
) -> Result<PackagesBillingUsage>
Get GitHub Packages billing for an enterprise.
This function performs a GET
to the /enterprises/{enterprise}/settings/billing/packages
endpoint.
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.
FROM: https://docs.github.com/rest/reference/billing#get-github-packages-billing-for-an-enterprise
Parameters:
enterprise: &str
– The slug version of the enterprise name. You can also substitute this value with the enterprise id.
Get shared storage billing for an enterprise.
This function performs a GET
to the /enterprises/{enterprise}/settings/billing/shared-storage
endpoint.
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.
FROM: https://docs.github.com/rest/reference/billing#get-shared-storage-billing-for-an-enterprise
Parameters:
enterprise: &str
– The slug version of the enterprise name. You can also substitute this value with the enterprise id.
Get GitHub Actions billing for an organization.
This function performs a GET
to the /orgs/{org}/settings/billing/actions
endpoint.
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.
FROM: https://docs.github.com/rest/reference/billing#get-github-actions-billing-for-an-organization
Parameters:
org: &str
pub async fn get_github_packages_billing_org(
&self,
org: &str
) -> Result<PackagesBillingUsage>
pub async fn get_github_packages_billing_org(
&self,
org: &str
) -> Result<PackagesBillingUsage>
Get GitHub Packages billing for an organization.
This function performs a GET
to the /orgs/{org}/settings/billing/packages
endpoint.
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.
FROM: https://docs.github.com/rest/reference/billing#get-github-packages-billing-for-an-organization
Parameters:
org: &str
Get shared storage billing for an organization.
This function performs a GET
to the /orgs/{org}/settings/billing/shared-storage
endpoint.
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.
FROM: https://docs.github.com/rest/reference/billing#get-shared-storage-billing-for-an-organization
Parameters:
org: &str
pub async fn get_github_actions_billing_user(
&self,
username: &str
) -> Result<ActionsBillingUsage>
pub async fn get_github_actions_billing_user(
&self,
username: &str
) -> Result<ActionsBillingUsage>
Get GitHub Actions billing for a user.
This function performs a GET
to the /users/{username}/settings/billing/actions
endpoint.
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.
FROM: https://docs.github.com/rest/reference/billing#get-github-actions-billing-for-a-user
Parameters:
username: &str
pub async fn get_github_packages_billing_user(
&self,
username: &str
) -> Result<PackagesBillingUsage>
pub async fn get_github_packages_billing_user(
&self,
username: &str
) -> Result<PackagesBillingUsage>
Get GitHub Packages billing for a user.
This function performs a GET
to the /users/{username}/settings/billing/packages
endpoint.
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.
FROM: https://docs.github.com/rest/reference/billing#get-github-packages-billing-for-a-user
Parameters:
username: &str
Get shared storage billing for a user.
This function performs a GET
to the /users/{username}/settings/billing/shared-storage
endpoint.
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.
FROM: https://docs.github.com/rest/reference/billing#get-shared-storage-billing-for-a-user
Parameters:
username: &str