Struct gapi_grpc::google::cloud::billing::v1::cloud_billing_client::CloudBillingClient [−][src]
Retrieves GCP Console billing accounts and associates them with projects.
Implementations
impl CloudBillingClient<Channel>
[src]
pub async fn connect<D>(dst: D) -> Result<Self, Error> where
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
[src]
D: TryInto<Endpoint>,
D::Error: Into<StdError>,
Attempt to create a new client by connecting to a given endpoint.
impl<T> CloudBillingClient<T> where
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
[src]
T: GrpcService<BoxBody>,
T::ResponseBody: Body + HttpBody + Send + 'static,
T::Error: Into<StdError>,
<T::ResponseBody as HttpBody>::Error: Into<StdError> + Send,
pub fn new(inner: T) -> Self
[src]
pub fn with_interceptor(inner: T, interceptor: impl Into<Interceptor>) -> Self
[src]
pub async fn get_billing_account(
&mut self,
request: impl IntoRequest<GetBillingAccountRequest>
) -> Result<Response<BillingAccount>, Status>
[src]
&mut self,
request: impl IntoRequest<GetBillingAccountRequest>
) -> Result<Response<BillingAccount>, Status>
Gets information about a billing account. The current authenticated user must be a viewer of the billing account.
pub async fn list_billing_accounts(
&mut self,
request: impl IntoRequest<ListBillingAccountsRequest>
) -> Result<Response<ListBillingAccountsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListBillingAccountsRequest>
) -> Result<Response<ListBillingAccountsResponse>, Status>
Lists the billing accounts that the current authenticated user has permission to view.
pub async fn update_billing_account(
&mut self,
request: impl IntoRequest<UpdateBillingAccountRequest>
) -> Result<Response<BillingAccount>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateBillingAccountRequest>
) -> Result<Response<BillingAccount>, Status>
Updates a billing account’s fields.
Currently the only field that can be edited is display_name
.
The current authenticated user must have the billing.accounts.update
IAM permission, which is typically given to the
administrator
of the billing account.
pub async fn create_billing_account(
&mut self,
request: impl IntoRequest<CreateBillingAccountRequest>
) -> Result<Response<BillingAccount>, Status>
[src]
&mut self,
request: impl IntoRequest<CreateBillingAccountRequest>
) -> Result<Response<BillingAccount>, Status>
Creates a billing account.
This method can only be used to create
billing subaccounts
by GCP resellers.
When creating a subaccount, the current authenticated user must have the
billing.accounts.update
IAM permission on the master account, which is
typically given to billing account
administrators.
This method will return an error if the master account has not been
provisioned as a reseller account.
pub async fn list_project_billing_info(
&mut self,
request: impl IntoRequest<ListProjectBillingInfoRequest>
) -> Result<Response<ListProjectBillingInfoResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<ListProjectBillingInfoRequest>
) -> Result<Response<ListProjectBillingInfoResponse>, Status>
Lists the projects associated with a billing account. The current
authenticated user must have the billing.resourceAssociations.list
IAM
permission, which is often given to billing account
viewers.
pub async fn get_project_billing_info(
&mut self,
request: impl IntoRequest<GetProjectBillingInfoRequest>
) -> Result<Response<ProjectBillingInfo>, Status>
[src]
&mut self,
request: impl IntoRequest<GetProjectBillingInfoRequest>
) -> Result<Response<ProjectBillingInfo>, Status>
Gets the billing information for a project. The current authenticated user must have permission to view the project.
pub async fn update_project_billing_info(
&mut self,
request: impl IntoRequest<UpdateProjectBillingInfoRequest>
) -> Result<Response<ProjectBillingInfo>, Status>
[src]
&mut self,
request: impl IntoRequest<UpdateProjectBillingInfoRequest>
) -> Result<Response<ProjectBillingInfo>, Status>
Sets or updates the billing account associated with a project. You specify
the new billing account by setting the billing_account_name
in the
ProjectBillingInfo
resource to the resource name of a billing account.
Associating a project with an open billing account enables billing on the
project and allows charges for resource usage. If the project already had a
billing account, this method changes the billing account used for resource
usage charges.
Note: Incurred charges that have not yet been reported in the transaction history of the GCP Console might be billed to the new billing account, even if the charge occurred before the new billing account was assigned to the project.
The current authenticated user must have ownership privileges for both the project and the billing account.
You can disable billing on the project by setting the
billing_account_name
field to empty. This action disassociates the
current billing account from the project. Any billable activity of your
in-use services will stop, and your application could stop functioning as
expected. Any unbilled charges to date will be billed to the previously
associated account. The current authenticated user must be either an owner
of the project or an owner of the billing account for the project.
Note that associating a project with a closed billing account will have much the same effect as disabling billing on the project: any paid resources used by the project will be shut down. Thus, unless you wish to disable billing, you should always call this method with the name of an open billing account.
pub async fn get_iam_policy(
&mut self,
request: impl IntoRequest<GetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
[src]
&mut self,
request: impl IntoRequest<GetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
Gets the access control policy for a billing account.
The caller must have the billing.accounts.getIamPolicy
permission on the
account, which is often given to billing account
viewers.
pub async fn set_iam_policy(
&mut self,
request: impl IntoRequest<SetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
[src]
&mut self,
request: impl IntoRequest<SetIamPolicyRequest>
) -> Result<Response<Policy>, Status>
Sets the access control policy for a billing account. Replaces any existing
policy.
The caller must have the billing.accounts.setIamPolicy
permission on the
account, which is often given to billing account
administrators.
pub async fn test_iam_permissions(
&mut self,
request: impl IntoRequest<TestIamPermissionsRequest>
) -> Result<Response<TestIamPermissionsResponse>, Status>
[src]
&mut self,
request: impl IntoRequest<TestIamPermissionsRequest>
) -> Result<Response<TestIamPermissionsResponse>, Status>
Tests the access control policy for a billing account. This method takes the resource and a set of permissions as input and returns the subset of the input permissions that the caller is allowed for that resource.
Trait Implementations
impl<T: Clone> Clone for CloudBillingClient<T>
[src]
fn clone(&self) -> Self
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl<T> Debug for CloudBillingClient<T>
[src]
Auto Trait Implementations
impl<T> !RefUnwindSafe for CloudBillingClient<T>
impl<T> Send for CloudBillingClient<T> where
T: Send,
T: Send,
impl<T> Sync for CloudBillingClient<T> where
T: Sync,
T: Sync,
impl<T> Unpin for CloudBillingClient<T> where
T: Unpin,
T: Unpin,
impl<T> !UnwindSafe for CloudBillingClient<T>
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T> Instrument for T
[src]
pub fn instrument(self, span: Span) -> Instrumented<Self>
[src]
pub fn in_current_span(self) -> Instrumented<Self>
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> IntoRequest<T> for T
[src]
pub fn into_request(self) -> Request<T>
[src]
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
pub fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
[src]
V: MultiLane<T>,
impl<T> WithSubscriber for T
[src]
pub fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
[src]
S: Into<Dispatch>,