Skip to content
This repository has been archived by the owner on Sep 16, 2023. It is now read-only.

Commit

Permalink
feat: update serviceusage v1beta1 API (#16)
Browse files Browse the repository at this point in the history
Committer: @xiaozhenliu-gg5
PiperOrigin-RevId: 376207067

Source-Link: googleapis/googleapis@1c20dcf

Source-Link: googleapis/googleapis-gen@d2c0525
  • Loading branch information
gcf-owl-bot[bot] committed May 31, 2021
1 parent 47c6de9 commit 601342b
Show file tree
Hide file tree
Showing 13 changed files with 85 additions and 36 deletions.
Expand Up @@ -40,7 +40,11 @@

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Service Description: [Service Usage API](/service-usage/docs/overview)
* Service Description: Enables services that service consumers want to use on Google Cloud
* Platform, lists the available or enabled services, or disables services that service consumers no
* longer use.
*
* <p>See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
*
* <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 @@ -19,7 +19,11 @@
*
* <p>======================= ServiceUsageClient =======================
*
* <p>Service Description: [Service Usage API](/service-usage/docs/overview)
* <p>Service Description: Enables services that service consumers want to use on Google Cloud
* Platform, lists the available or enabled services, or disables services that service consumers no
* longer use.
*
* <p>See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
*
* <p>Sample for ServiceUsageClient:
*
Expand Down
Expand Up @@ -41,7 +41,7 @@

// AUTO-GENERATED DOCUMENTATION AND CLASS.
/**
* Service Description: [Service Usage API](/service-usage/docs/overview)
* Service Description: [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
*
* <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 @@ -19,7 +19,7 @@
*
* <p>======================= ServiceUsageClient =======================
*
* <p>Service Description: [Service Usage API](/service-usage/docs/overview)
* <p>Service Description: [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
*
* <p>Sample for ServiceUsageClient:
*
Expand Down
Expand Up @@ -128,7 +128,11 @@
public class ServiceUsageStubSettings extends StubSettings<ServiceUsageStubSettings> {
/** 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-platform")
.add("https://www.googleapis.com/auth/cloud-platform.read-only")
.add("https://www.googleapis.com/auth/service.management")
.build();

private final UnaryCallSettings<EnableServiceRequest, Operation> enableServiceSettings;
private final OperationCallSettings<EnableServiceRequest, Empty, OperationMetadata>
Expand Down
Expand Up @@ -21,7 +21,10 @@
*
*
* <pre>
* [Service Usage API](/service-usage/docs/overview)
* Enables services that service consumers want to use on Google Cloud Platform,
* lists the available or enabled services, or disables services that service
* consumers no longer use.
* See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
* </pre>
*/
@javax.annotation.Generated(
Expand Down Expand Up @@ -349,7 +352,10 @@ public ServiceUsageFutureStub newStub(
*
*
* <pre>
* [Service Usage API](/service-usage/docs/overview)
* Enables services that service consumers want to use on Google Cloud Platform,
* lists the available or enabled services, or disables services that service
* consumers no longer use.
* See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
* </pre>
*/
public abstract static class ServiceUsageImplBase implements io.grpc.BindableService {
Expand Down Expand Up @@ -507,7 +513,10 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
*
* <pre>
* [Service Usage API](/service-usage/docs/overview)
* Enables services that service consumers want to use on Google Cloud Platform,
* lists the available or enabled services, or disables services that service
* consumers no longer use.
* See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
* </pre>
*/
public static final class ServiceUsageStub
Expand Down Expand Up @@ -641,7 +650,10 @@ public void batchGetServices(
*
*
* <pre>
* [Service Usage API](/service-usage/docs/overview)
* Enables services that service consumers want to use on Google Cloud Platform,
* lists the available or enabled services, or disables services that service
* consumers no longer use.
* See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
* </pre>
*/
public static final class ServiceUsageBlockingStub
Expand Down Expand Up @@ -758,7 +770,10 @@ public com.google.api.serviceusage.v1.BatchGetServicesResponse batchGetServices(
*
*
* <pre>
* [Service Usage API](/service-usage/docs/overview)
* Enables services that service consumers want to use on Google Cloud Platform,
* lists the available or enabled services, or disables services that service
* consumers no longer use.
* See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
* </pre>
*/
public static final class ServiceUsageFutureStub
Expand Down
Expand Up @@ -21,7 +21,7 @@
*
*
* <pre>
* [Service Usage API](/service-usage/docs/overview)
* [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
* </pre>
*/
@javax.annotation.Generated(
Expand Down Expand Up @@ -994,7 +994,7 @@ public ServiceUsageFutureStub newStub(
*
*
* <pre>
* [Service Usage API](/service-usage/docs/overview)
* [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
* </pre>
*/
public abstract static class ServiceUsageImplBase implements io.grpc.BindableService {
Expand Down Expand Up @@ -1441,7 +1441,7 @@ public final io.grpc.ServerServiceDefinition bindService() {
*
*
* <pre>
* [Service Usage API](/service-usage/docs/overview)
* [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
* </pre>
*/
public static final class ServiceUsageStub
Expand Down Expand Up @@ -1808,7 +1808,7 @@ public void generateServiceIdentity(
*
*
* <pre>
* [Service Usage API](/service-usage/docs/overview)
* [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
* </pre>
*/
public static final class ServiceUsageBlockingStub
Expand Down Expand Up @@ -2114,7 +2114,7 @@ public com.google.longrunning.Operation generateServiceIdentity(
*
*
* <pre>
* [Service Usage API](/service-usage/docs/overview)
* [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
* </pre>
*/
public static final class ServiceUsageFutureStub
Expand Down
Expand Up @@ -72,10 +72,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "\022*\n\nmonitoring\030\034 \001(\0132\026.google.api.Monito"
+ "ring\"+\n\021OperationMetadata\022\026\n\016resource_na"
+ "mes\030\002 \003(\t*9\n\005State\022\025\n\021STATE_UNSPECIFIED\020"
+ "\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002Bz\n\036com.goog"
+ "le.api.serviceusage.v1B\016ResourcesProtoP\001"
+ "ZFgoogle.golang.org/genproto/googleapis/"
+ "api/serviceusage/v1;serviceusageb\006proto3"
+ "\000\022\014\n\010DISABLED\020\001\022\013\n\007ENABLED\020\002B\332\001\n\036com.goo"
+ "gle.api.serviceusage.v1B\016ResourcesProtoP"
+ "\001ZFgoogle.golang.org/genproto/googleapis"
+ "/api/serviceusage/v1;serviceusage\252\002\034Goog"
+ "le.Cloud.ServiceUsage.V1\312\002\034Google\\Cloud\\"
+ "ServiceUsage\\V1\352\002\037Google::Cloud::Service"
+ "Usage::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Expand Up @@ -149,10 +149,13 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "oogleapis.com/auth/cloud-platform,https:"
+ "//www.googleapis.com/auth/cloud-platform"
+ ".read-only,https://www.googleapis.com/au"
+ "th/service.managementB}\n\036com.google.api."
+ "serviceusage.v1B\021ServiceUsageProtoP\001ZFgo"
+ "ogle.golang.org/genproto/googleapis/api/"
+ "serviceusage/v1;serviceusageb\006proto3"
+ "th/service.managementB\335\001\n\036com.google.api"
+ ".serviceusage.v1B\021ServiceUsageProtoP\001ZFg"
+ "oogle.golang.org/genproto/googleapis/api"
+ "/serviceusage/v1;serviceusage\252\002\034Google.C"
+ "loud.ServiceUsage.V1\312\002\034Google\\Cloud\\Serv"
+ "iceUsage\\V1\352\002\037Google::Cloud::ServiceUsag"
+ "e::V1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Expand Up @@ -26,10 +26,13 @@ import "google/api/usage.proto";
import "google/protobuf/api.proto";
import "google/api/annotations.proto";

option csharp_namespace = "Google.Cloud.ServiceUsage.V1";
option go_package = "google.golang.org/genproto/googleapis/api/serviceusage/v1;serviceusage";
option java_multiple_files = true;
option java_outer_classname = "ResourcesProto";
option java_package = "com.google.api.serviceusage.v1";
option php_namespace = "Google\\Cloud\\ServiceUsage\\V1";
option ruby_package = "Google::Cloud::ServiceUsage::V1";

// A service that is available for use by the consumer.
message Service {
Expand Down
Expand Up @@ -21,12 +21,19 @@ import "google/api/serviceusage/v1/resources.proto";
import "google/longrunning/operations.proto";
import "google/api/client.proto";

option csharp_namespace = "Google.Cloud.ServiceUsage.V1";
option go_package = "google.golang.org/genproto/googleapis/api/serviceusage/v1;serviceusage";
option java_multiple_files = true;
option java_outer_classname = "ServiceUsageProto";
option java_package = "com.google.api.serviceusage.v1";
option php_namespace = "Google\\Cloud\\ServiceUsage\\V1";
option ruby_package = "Google::Cloud::ServiceUsage::V1";

// [Service Usage API](/service-usage/docs/overview)
// Enables services that service consumers want to use on Google Cloud Platform,
// lists the available or enabled services, or disables services that service
// consumers no longer use.
//
// See [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
service ServiceUsage {
option (google.api.default_host) = "serviceusage.googleapis.com";
option (google.api.oauth_scopes) =
Expand Down
Expand Up @@ -286,7 +286,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "ServiceIdentityResponse.IdentityState\";\n"
+ "\rIdentityState\022\036\n\032IDENTITY_STATE_UNSPECI"
+ "FIED\020\000\022\n\n\006ACTIVE\020\001\"\034\n\032GetServiceIdentity"
+ "Metadata2\216#\n\014ServiceUsage\022\307\001\n\rEnableServ"
+ "Metadata2\374#\n\014ServiceUsage\022\307\001\n\rEnableServ"
+ "ice\0225.google.api.serviceusage.v1beta1.En"
+ "ableServiceRequest\032\035.google.longrunning."
+ "Operation\"`\210\002\001\202\323\344\223\002*\"%/v1beta1/{name=*/*"
Expand Down Expand Up @@ -396,15 +396,18 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() {
+ "uest\032\035.google.longrunning.Operation\"k\202\323\344"
+ "\223\002:\"8/v1beta1/{parent=*/*/services/*}:ge"
+ "nerateServiceIdentity\312A(\n\017ServiceIdentit"
+ "y\022\025google.protobuf.Empty\032O\312A\033serviceusag"
+ "e.googleapis.com\322A.https://www.googleapi"
+ "s.com/auth/cloud-platformB\360\001\n#com.google"
+ ".api.serviceusage.v1beta1B\021ServiceUsageP"
+ "rotoP\001ZKgoogle.golang.org/genproto/googl"
+ "eapis/api/serviceusage/v1beta1;serviceus"
+ "age\252\002\037Google.Api.ServiceUsage.V1Beta1\312\002\037"
+ "Google\\Api\\ServiceUsage\\V1beta1\352\002\"Google"
+ "::Api::ServiceUsage::V1beta1b\006proto3"
+ "y\022\025google.protobuf.Empty\032\274\001\312A\033serviceusa"
+ "ge.googleapis.com\322A\232\001https://www.googlea"
+ "pis.com/auth/cloud-platform,https://www."
+ "googleapis.com/auth/cloud-platform.read-"
+ "only,https://www.googleapis.com/auth/ser"
+ "vice.managementB\360\001\n#com.google.api.servi"
+ "ceusage.v1beta1B\021ServiceUsageProtoP\001ZKgo"
+ "ogle.golang.org/genproto/googleapis/api/"
+ "serviceusage/v1beta1;serviceusage\252\002\037Goog"
+ "le.Api.ServiceUsage.V1Beta1\312\002\037Google\\Api"
+ "\\ServiceUsage\\V1beta1\352\002\"Google::Api::Ser"
+ "viceUsage::V1beta1b\006proto3"
};
descriptor =
com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom(
Expand Down
Expand Up @@ -31,10 +31,13 @@ option java_package = "com.google.api.serviceusage.v1beta1";
option php_namespace = "Google\\Api\\ServiceUsage\\V1beta1";
option ruby_package = "Google::Api::ServiceUsage::V1beta1";

// [Service Usage API](/service-usage/docs/overview)
// [Service Usage API](https://cloud.google.com/service-usage/docs/overview)
service ServiceUsage {
option (google.api.default_host) = "serviceusage.googleapis.com";
option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform";
option (google.api.oauth_scopes) =
"https://www.googleapis.com/auth/cloud-platform,"
"https://www.googleapis.com/auth/cloud-platform.read-only,"
"https://www.googleapis.com/auth/service.management";

// Enables a service so that it can be used with a project.
//
Expand Down

0 comments on commit 601342b

Please sign in to comment.