pub struct LegalAcceptanceClient { /* private fields */ }Expand description
Calls LegalAcceptanceService.
A billing account’s acceptances of the legal documents customers accept: the Terms of Service, the Data Processing Agreement, the Service Level Agreement and the Acceptable Use Policy. The billing account is the legal entity that accepts. An acceptance is a record that never changes, and it is kept after the billing account and its organization are deleted.
Implementations§
Source§impl LegalAcceptanceClient
impl LegalAcceptanceClient
Sourcepub fn new(client: &Client) -> Self
pub fn new(client: &Client) -> Self
Returns a client of LegalAcceptanceService that sends its calls through client.
Sourcepub fn service(&self) -> &Service
pub fn service(&self) -> &Service
The endpoint the client sends its calls to, which also serves the operations its methods answer with.
Sourcepub fn with_options(&self, options: CallOptions) -> Self
pub fn with_options(&self, options: CallOptions) -> Self
The same client, whose calls are sent as options says instead of as the Client’s settings do, such as a mutation that must not be sent twice: .with_options(CallOptions::new().max_attempts(1)). See CallOptions.
Sourcepub async fn list_legal_acceptances(
&self,
request: ListLegalAcceptancesRequest,
) -> Result<ListLegalAcceptancesResponse, Error>
pub async fn list_legal_acceptances( &self, request: ListLegalAcceptancesRequest, ) -> Result<ListLegalAcceptancesResponse, Error>
Lists a billing account’s acceptances, the latest first. Needs
admin.billing_account.get on the organization.
Sourcepub fn all_legal_acceptances(
&self,
request: ListLegalAcceptancesRequest,
) -> Pages<LegalAcceptance>
pub fn all_legal_acceptances( &self, request: ListLegalAcceptancesRequest, ) -> Pages<LegalAcceptance>
Returns everything list_legal_acceptances lists from request’s page on, fetching the next page as the stream reaches it. A page that fails ends the stream with its error.
Sourcepub async fn get_legal_acceptance(
&self,
request: GetLegalAcceptanceRequest,
) -> Result<LegalAcceptance, Error>
pub async fn get_legal_acceptance( &self, request: GetLegalAcceptanceRequest, ) -> Result<LegalAcceptance, Error>
Returns one of a billing account’s acceptances. Needs
admin.billing_account.get on the organization.
Sourcepub async fn accept_legal_documents(
&self,
request: AcceptLegalDocumentsRequest,
) -> Result<ListLegalAcceptancesResponse, Error>
pub async fn accept_legal_documents( &self, request: AcceptLegalDocumentsRequest, ) -> Result<ListLegalAcceptancesResponse, Error>
Accepts versions of legal documents for a billing account, all of them
or none. Each version is named with the sha256 of the text the caller
showed, and must be the version in force or one published to take effect
later. A version the account accepted before is returned as it was then.
acts_as_business must be true: the services are offered to businesses
only. Needs admin.billing_account.update on the organization.
Sourcepub async fn query_legal_requirements(
&self,
request: QueryLegalRequirementsRequest,
) -> Result<QueryLegalRequirementsResponse, Error>
pub async fn query_legal_requirements( &self, request: QueryLegalRequirementsRequest, ) -> Result<QueryLegalRequirementsResponse, Error>
Returns the legal document versions a billing account has yet to
accept. A version is blocking once it is in force: until the account
accepts it, creating or growing billable resources charged to the
account is refused. Running resources are never affected. Needs
admin.billing_account.get on the organization.