Skip to content

Commit

Permalink
feat: added Sku.geo_taxonomy
Browse files Browse the repository at this point in the history
fix: more oauth scopes

PiperOrigin-RevId: 488493014

Source-Link: googleapis/googleapis@8995a88

Source-Link: https://github.com/googleapis/googleapis-gen/commit/adbfce0c0e59b1b38bb8e81ae9a3d0b408e7f7c0
Copy-Tag: eyJwIjoiamF2YS1iaWxsaW5nLy5Pd2xCb3QueWFtbCIsImgiOiJhZGJmY2UwYzBlNTliMWIzOGJiOGU4MWFlOWEzZDBiNDA4ZTdmN2MwIn0=
  • Loading branch information
gcf-owl-bot[bot] committed Nov 16, 2022
1 parent 7e32e27 commit 561d8e7
Show file tree
Hide file tree
Showing 140 changed files with 8,324 additions and 10,247 deletions.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Service Description: Retrieves GCP Console billing accounts and associates them with projects.
* Service Description: Retrieves the Google Cloud Console billing accounts and associates them with
* projects.
*
* <p>This class provides the ability to make remote calls to the backing service through method
* calls that map to API methods. Sample code to get started:
Expand Down Expand Up @@ -570,12 +571,19 @@ public final BillingAccount updateBillingAccount(UpdateBillingAccountRequest req

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a billing account. This method can only be used to create [billing
* subaccounts](https://cloud.google.com/billing/docs/concepts) 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](https://cloud.google.com/billing/docs/how-to/billing-access). This method will
* return an error if the master account has not been provisioned as a reseller account.
* This method creates [billing
* subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
*
* <p>Google Cloud resellers should use the Channel Services APIs,
* [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
* and
* [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
*
* <p>When creating a subaccount, the current authenticated user must have the
* `billing.accounts.update` IAM permission on the parent account, which is typically given to
* billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
* This method will return an error if the parent account has not been provisioned as a reseller
* account.
*
* <p>Sample code:
*
Expand All @@ -593,7 +601,7 @@ public final BillingAccount updateBillingAccount(UpdateBillingAccountRequest req
*
* @param billingAccount Required. The billing account resource to create. Currently
* CreateBillingAccount only supports subaccount creation, so any created billing accounts
* must be under a provided master billing account.
* must be under a provided parent billing account.
* @throws com.google.api.gax.rpc.ApiException if the remote call fails
*/
public final BillingAccount createBillingAccount(BillingAccount billingAccount) {
Expand All @@ -604,12 +612,19 @@ public final BillingAccount createBillingAccount(BillingAccount billingAccount)

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a billing account. This method can only be used to create [billing
* subaccounts](https://cloud.google.com/billing/docs/concepts) 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](https://cloud.google.com/billing/docs/how-to/billing-access). This method will
* return an error if the master account has not been provisioned as a reseller account.
* This method creates [billing
* subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
*
* <p>Google Cloud resellers should use the Channel Services APIs,
* [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
* and
* [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
*
* <p>When creating a subaccount, the current authenticated user must have the
* `billing.accounts.update` IAM permission on the parent account, which is typically given to
* billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
* This method will return an error if the parent account has not been provisioned as a reseller
* account.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -637,12 +652,19 @@ public final BillingAccount createBillingAccount(CreateBillingAccountRequest req

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Creates a billing account. This method can only be used to create [billing
* subaccounts](https://cloud.google.com/billing/docs/concepts) 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](https://cloud.google.com/billing/docs/how-to/billing-access). This method will
* return an error if the master account has not been provisioned as a reseller account.
* This method creates [billing
* subaccounts](https://cloud.google.com/billing/docs/concepts#subaccounts).
*
* <p>Google Cloud resellers should use the Channel Services APIs,
* [accounts.customers.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers/create)
* and
* [accounts.customers.entitlements.create](https://cloud.google.com/channel/docs/reference/rest/v1/accounts.customers.entitlements/create).
*
* <p>When creating a subaccount, the current authenticated user must have the
* `billing.accounts.update` IAM permission on the parent account, which is typically given to
* billing account [administrators](https://cloud.google.com/billing/docs/how-to/billing-access).
* This method will return an error if the parent account has not been provisioned as a reseller
* account.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -852,9 +874,10 @@ public final ListProjectBillingInfoPagedResponse listProjectBillingInfo(

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the billing information for a project. The current authenticated user must have
* [permission to view the
* project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ).
* Gets the billing information for a project. The current authenticated user must have the
* `resourcemanager.projects.get` permission for the project, which can be granted by assigning
* the [Project Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
* role.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -882,9 +905,10 @@ public final ProjectBillingInfo getProjectBillingInfo(String name) {

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the billing information for a project. The current authenticated user must have
* [permission to view the
* project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ).
* Gets the billing information for a project. The current authenticated user must have the
* `resourcemanager.projects.get` permission for the project, which can be granted by assigning
* the [Project Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
* role.
*
* <p>Sample code:
*
Expand All @@ -910,9 +934,10 @@ public final ProjectBillingInfo getProjectBillingInfo(GetProjectBillingInfoReque

// AUTO-GENERATED DOCUMENTATION AND METHOD.
/**
* Gets the billing information for a project. The current authenticated user must have
* [permission to view the
* project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ).
* Gets the billing information for a project. The current authenticated user must have the
* `resourcemanager.projects.get` permission for the project, which can be granted by assigning
* the [Project Viewer](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
* role.
*
* <p>Sample code:
*
Expand Down Expand Up @@ -946,8 +971,8 @@ public final ProjectBillingInfo getProjectBillingInfo(GetProjectBillingInfoReque
* billing account, this method changes the billing account used for resource usage charges.
*
* <p>&#42;Note:&#42; 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.
* of the Google Cloud Console might be billed to the new billing account, even if the charge
* occurred before the new billing account was assigned to the project.
*
* <p>The current authenticated user must have ownership privileges for both the
* [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing
Expand Down Expand Up @@ -1010,8 +1035,8 @@ public final ProjectBillingInfo updateProjectBillingInfo(
* billing account, this method changes the billing account used for resource usage charges.
*
* <p>&#42;Note:&#42; 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.
* of the Google Cloud Console might be billed to the new billing account, even if the charge
* occurred before the new billing account was assigned to the project.
*
* <p>The current authenticated user must have ownership privileges for both the
* [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing
Expand Down Expand Up @@ -1068,8 +1093,8 @@ public final ProjectBillingInfo updateProjectBillingInfo(
* billing account, this method changes the billing account used for resource usage charges.
*
* <p>&#42;Note:&#42; 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.
* of the Google Cloud Console might be billed to the new billing account, even if the charge
* occurred before the new billing account was assigned to the project.
*
* <p>The current authenticated user must have ownership privileges for both the
* [project](https://cloud.google.com/docs/permissions-overview#h.bgs0oxofvnoo ) and the [billing
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.billing.v1.stub.CloudBillingStubSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.ClientSettings;
import com.google.api.gax.rpc.PagedCallSettings;
import com.google.api.gax.rpc.StubSettings;
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.cloud.billing.v1.stub.CloudCatalogStubSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@
*/

/**
* The interfaces provided are listed below, along with usage samples.
* A client to Cloud Billing API
*
* <p>The interfaces provided are listed below, along with usage samples.
*
* <p>======================= CloudBillingClient =======================
*
* <p>Service Description: Retrieves GCP Console billing accounts and associates them with projects.
* <p>Service Description: Retrieves the Google Cloud Console billing accounts and associates them
* with projects.
*
* <p>Sample for CloudBillingClient:
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,11 @@
public class CloudBillingStubSettings extends StubSettings<CloudBillingStubSettings> {
/** The default scopes of the service. */
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();
ImmutableList.<String>builder()
.add("https://www.googleapis.com/auth/cloud-billing")
.add("https://www.googleapis.com/auth/cloud-billing.readonly")
.add("https://www.googleapis.com/auth/cloud-platform")
.build();

private final UnaryCallSettings<GetBillingAccountRequest, BillingAccount>
getBillingAccountSettings;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,11 @@
public class CloudCatalogStubSettings extends StubSettings<CloudCatalogStubSettings> {
/** The default scopes of the service. */
private static final ImmutableList<String> DEFAULT_SERVICE_SCOPES =
ImmutableList.<String>builder().add("https://www.googleapis.com/auth/cloud-platform").build();
ImmutableList.<String>builder()
.add("https://www.googleapis.com/auth/cloud-billing")
.add("https://www.googleapis.com/auth/cloud-billing.readonly")
.add("https://www.googleapis.com/auth/cloud-platform")
.build();

private final PagedCallSettings<
ListServicesRequest, ListServicesResponse, ListServicesPagedResponse>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@
import io.grpc.MethodDescriptor;
import io.grpc.protobuf.ProtoUtils;
import java.io.IOException;
import java.util.Map;
import java.util.concurrent.TimeUnit;
import javax.annotation.Generated;

Expand Down
Loading

0 comments on commit 561d8e7

Please sign in to comment.