google-cloud-service_management-v1 0.6.1 → 0.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/api/servicemanagement/v1/servicemanager_pb.rb +3 -1
- data/lib/google/cloud/service_management/v1/bindings_override.rb +137 -0
- data/lib/google/cloud/service_management/v1/rest.rb +1 -0
- data/lib/google/cloud/service_management/v1/service_manager/client.rb +41 -25
- data/lib/google/cloud/service_management/v1/service_manager/rest/client.rb +49 -25
- data/lib/google/cloud/service_management/v1/service_manager/rest.rb +1 -0
- data/lib/google/cloud/service_management/v1/version.rb +1 -1
- data/proto_docs/google/api/control.rb +3 -0
- data/proto_docs/google/api/policy.rb +75 -0
- data/proto_docs/google/api/servicemanagement/v1/servicemanager.rb +33 -25
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/type/expr.rb +75 -0
- metadata +26 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da4704b32c66244172428530bf937444382a3c94c6e3df29c9b19fa1dfd6718c
|
4
|
+
data.tar.gz: ffb90b2730c16ef81a3fe4930034de3ffb18198e4b3e2f45e75c0bffef5b40b2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cd55fd60ff7239ace278517b6b992cc5ed66d5827788c3d06335e599c4a418266b1f7d3e7130b6863dae3742bf92c8a9c78b085685ed716aa2e4396997174d04
|
7
|
+
data.tar.gz: 7ff730f3593c48f7a29c843c458ea538e4995cf7151e6ab172f7f3b3cfa1e59bd575259b124f689afd80c89ebd80c8f79821a5d699df7f81f82395723628c634
|
@@ -11,9 +11,10 @@ require 'google/api/service_pb'
|
|
11
11
|
require 'google/api/servicemanagement/v1/resources_pb'
|
12
12
|
require 'google/longrunning/operations_pb'
|
13
13
|
require 'google/protobuf/any_pb'
|
14
|
+
require 'google/protobuf/empty_pb'
|
14
15
|
|
15
16
|
|
16
|
-
descriptor_data = "\n4google/api/servicemanagement/v1/servicemanager.proto\x12\x1fgoogle.api.servicemanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x18google/api/service.proto\x1a/google/api/servicemanagement/v1/resources.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\"r\n\x13ListServicesRequest\x12\x1b\n\x13producer_project_id\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\x12\x17\n\x0b\x63onsumer_id\x18\x07 \x01(\tB\x02\x18\x01\"r\n\x14ListServicesResponse\x12\x41\n\x08services\x18\x01 \x03(\x0b\x32/.google.api.servicemanagement.v1.ManagedService\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\".\n\x11GetServiceRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"]\n\x14\x43reateServiceRequest\x12\x45\n\x07service\x18\x01 \x01(\x0b\x32/.google.api.servicemanagement.v1.ManagedServiceB\x03\xe0\x41\x02\"1\n\x14\x44\x65leteServiceRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"3\n\x16UndeleteServiceRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"[\n\x17UndeleteServiceResponse\x12@\n\x07service\x18\x01 \x01(\x0b\x32/.google.api.servicemanagement.v1.ManagedService\"\xc2\x01\n\x17GetServiceConfigRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tconfig_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x04view\x18\x03 \x01(\x0e\x32\x43.google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView\"!\n\nConfigView\x12\t\n\x05\x42\x41SIC\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\"]\n\x19ListServiceConfigsRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"c\n\x1aListServiceConfigsResponse\x12,\n\x0fservice_configs\x18\x01 \x03(\x0b\x32\x13.google.api.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x1a\x43reateServiceConfigRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x30\n\x0eservice_config\x18\x02 \x01(\x0b\x32\x13.google.api.ServiceB\x03\xe0\x41\x02\"\x9d\x01\n\x19SubmitConfigSourceRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12I\n\rconfig_source\x18\x02 \x01(\x0b\x32-.google.api.servicemanagement.v1.ConfigSourceB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"I\n\x1aSubmitConfigSourceResponse\x12+\n\x0eservice_config\x18\x01 \x01(\x0b\x32\x13.google.api.Service\"x\n\x1b\x43reateServiceRolloutRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12>\n\x07rollout\x18\x02 \x01(\x0b\x32(.google.api.servicemanagement.v1.RolloutB\x03\xe0\x41\x02\"s\n\x1aListServiceRolloutsRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x02\"r\n\x1bListServiceRolloutsResponse\x12:\n\x08rollouts\x18\x01 \x03(\x0b\x32(.google.api.servicemanagement.v1.Rollout\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"N\n\x18GetServiceRolloutRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nrollout_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"{\n\x1bGenerateConfigReportRequest\x12-\n\nnew_config\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x03\xe0\x41\x02\x12-\n\nold_config\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x03\xe0\x41\x01\"\xc9\x01\n\x1cGenerateConfigReportResponse\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x45\n\x0e\x63hange_reports\x18\x03 \x03(\x0b\x32-.google.api.servicemanagement.v1.ChangeReport\x12@\n\x0b\x64iagnostics\x18\x04 \x03(\x0b\x32+.google.api.servicemanagement.v1.Diagnostic2\xc8\x19\n\x0eServiceManager\x12\xb3\x01\n\x0cListServices\x12\x34.google.api.servicemanagement.v1.ListServicesRequest\x1a\x35.google.api.servicemanagement.v1.ListServicesResponse\"6\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v1/services\xda\x41\x1fproducer_project_id,consumer_id\x12\xa5\x01\n\nGetService\x12\x32.google.api.servicemanagement.v1.GetServiceRequest\x1a/.google.api.servicemanagement.v1.ManagedService\"2\x82\xd3\xe4\x93\x02\x1d\x12\x1b/v1/services/{service_name}\xda\x41\x0cservice_name\x12\xf5\x01\n\rCreateService\x12\x35.google.api.servicemanagement.v1.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x01\x82\xd3\xe4\x93\x02\x17\"\x0c/v1/services:\x07service\xda\x41\x07service\xca\x41\x63\n.google.api.servicemanagement.v1.ManagedService\x12\x31google.api.servicemanagement.v1.OperationMetadata\x12\xe6\x01\n\rDeleteService\x12\x35.google.api.servicemanagement.v1.DeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"\x7f\x82\xd3\xe4\x93\x02\x1d*\x1b/v1/services/{service_name}\xda\x41\x0cservice_name\xca\x41J\n\x15google.protobuf.Empty\x12\x31google.api.servicemanagement.v1.OperationMetadata\x12\x96\x02\n\x0fUndeleteService\x12\x37.google.api.servicemanagement.v1.UndeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"\xaa\x01\x82\xd3\xe4\x93\x02&\"$/v1/services/{service_name}:undelete\xda\x41\x0cservice_name\xca\x41l\n7google.api.servicemanagement.v1.UndeleteServiceResponse\x12\x31google.api.servicemanagement.v1.OperationMetadata\x12\xc9\x01\n\x12ListServiceConfigs\x12:.google.api.servicemanagement.v1.ListServiceConfigsRequest\x1a;.google.api.servicemanagement.v1.ListServiceConfigsResponse\":\x82\xd3\xe4\x93\x02%\x12#/v1/services/{service_name}/configs\xda\x41\x0cservice_name\x12\xde\x01\n\x10GetServiceConfig\x12\x38.google.api.servicemanagement.v1.GetServiceConfigRequest\x1a\x13.google.api.Service\"{\x82\xd3\xe4\x93\x02W\x12//v1/services/{service_name}/configs/{config_id}Z$\x12\"/v1/services/{service_name}/config\xda\x41\x1bservice_name,config_id,view\x12\xc2\x01\n\x13\x43reateServiceConfig\x12;.google.api.servicemanagement.v1.CreateServiceConfigRequest\x1a\x13.google.api.Service\"Y\x82\xd3\xe4\x93\x02\x35\"#/v1/services/{service_name}/configs:\x0eservice_config\xda\x41\x1bservice_name,service_config\x12\xc4\x02\n\x12SubmitConfigSource\x12:.google.api.servicemanagement.v1.SubmitConfigSourceRequest\x1a\x1d.google.longrunning.Operation\"\xd2\x01\x82\xd3\xe4\x93\x02/\"*/v1/services/{service_name}/configs:submit:\x01*\xda\x41(service_name,config_source,validate_only\xca\x41o\n:google.api.servicemanagement.v1.SubmitConfigSourceResponse\x12\x31google.api.servicemanagement.v1.OperationMetadata\x12\xd4\x01\n\x13ListServiceRollouts\x12;.google.api.servicemanagement.v1.ListServiceRolloutsRequest\x1a<.google.api.servicemanagement.v1.ListServiceRolloutsResponse\"B\x82\xd3\xe4\x93\x02&\x12$/v1/services/{service_name}/rollouts\xda\x41\x13service_name,filter\x12\xcd\x01\n\x11GetServiceRollout\x12\x39.google.api.servicemanagement.v1.GetServiceRolloutRequest\x1a(.google.api.servicemanagement.v1.Rollout\"S\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/services/{service_name}/rollouts/{rollout_id}\xda\x41\x17service_name,rollout_id\x12\xa1\x02\n\x14\x43reateServiceRollout\x12<.google.api.servicemanagement.v1.CreateServiceRolloutRequest\x1a\x1d.google.longrunning.Operation\"\xab\x01\x82\xd3\xe4\x93\x02/\"$/v1/services/{service_name}/rollouts:\x07rollout\xda\x41\x14service_name,rollout\xca\x41\\\n\'google.api.servicemanagement.v1.Rollout\x12\x31google.api.servicemanagement.v1.OperationMetadata\x12\xd9\x01\n\x14GenerateConfigReport\x12<.google.api.servicemanagement.v1.GenerateConfigReportRequest\x1a=.google.api.servicemanagement.v1.GenerateConfigReportResponse\"D\x82\xd3\xe4\x93\x02&\"!/v1/services:generateConfigReport:\x01*\xda\x41\x15new_config,old_config\x1a\xfd\x01\xca\x41 servicemanagement.googleapis.com\xd2\x41\xd6\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/service.management,https://www.googleapis.com/auth/service.management.readonlyB\x87\x02\n#com.google.api.servicemanagement.v1B\x13ServiceManagerProtoP\x01ZScloud.google.com/go/servicemanagement/apiv1/servicemanagementpb;servicemanagementpb\xa2\x02\x04GASM\xaa\x02!Google.Cloud.ServiceManagement.V1\xca\x02!Google\\Cloud\\ServiceManagement\\V1\xea\x02$Google::Cloud::ServiceManagement::V1b\x06proto3"
|
17
|
+
descriptor_data = "\n4google/api/servicemanagement/v1/servicemanager.proto\x12\x1fgoogle.api.servicemanagement.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x18google/api/service.proto\x1a/google/api/servicemanagement/v1/resources.proto\x1a#google/longrunning/operations.proto\x1a\x19google/protobuf/any.proto\x1a\x1bgoogle/protobuf/empty.proto\"r\n\x13ListServicesRequest\x12\x1b\n\x13producer_project_id\x18\x01 \x01(\t\x12\x11\n\tpage_size\x18\x05 \x01(\x05\x12\x12\n\npage_token\x18\x06 \x01(\t\x12\x17\n\x0b\x63onsumer_id\x18\x07 \x01(\tB\x02\x18\x01\"r\n\x14ListServicesResponse\x12\x41\n\x08services\x18\x01 \x03(\x0b\x32/.google.api.servicemanagement.v1.ManagedService\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\".\n\x11GetServiceRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"]\n\x14\x43reateServiceRequest\x12\x45\n\x07service\x18\x01 \x01(\x0b\x32/.google.api.servicemanagement.v1.ManagedServiceB\x03\xe0\x41\x02\"1\n\x14\x44\x65leteServiceRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"3\n\x16UndeleteServiceRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\"[\n\x17UndeleteServiceResponse\x12@\n\x07service\x18\x01 \x01(\x0b\x32/.google.api.servicemanagement.v1.ManagedService\"\xc2\x01\n\x17GetServiceConfigRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x16\n\tconfig_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12Q\n\x04view\x18\x03 \x01(\x0e\x32\x43.google.api.servicemanagement.v1.GetServiceConfigRequest.ConfigView\"!\n\nConfigView\x12\t\n\x05\x42\x41SIC\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\"]\n\x19ListServiceConfigsRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\"c\n\x1aListServiceConfigsResponse\x12,\n\x0fservice_configs\x18\x01 \x03(\x0b\x32\x13.google.api.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"i\n\x1a\x43reateServiceConfigRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x30\n\x0eservice_config\x18\x02 \x01(\x0b\x32\x13.google.api.ServiceB\x03\xe0\x41\x02\"\x9d\x01\n\x19SubmitConfigSourceRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12I\n\rconfig_source\x18\x02 \x01(\x0b\x32-.google.api.servicemanagement.v1.ConfigSourceB\x03\xe0\x41\x02\x12\x1a\n\rvalidate_only\x18\x03 \x01(\x08\x42\x03\xe0\x41\x01\"I\n\x1aSubmitConfigSourceResponse\x12+\n\x0eservice_config\x18\x01 \x01(\x0b\x32\x13.google.api.Service\"x\n\x1b\x43reateServiceRolloutRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12>\n\x07rollout\x18\x02 \x01(\x0b\x32(.google.api.servicemanagement.v1.RolloutB\x03\xe0\x41\x02\"s\n\x1aListServiceRolloutsRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x12\n\npage_token\x18\x02 \x01(\t\x12\x11\n\tpage_size\x18\x03 \x01(\x05\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x02\"r\n\x1bListServiceRolloutsResponse\x12:\n\x08rollouts\x18\x01 \x03(\x0b\x32(.google.api.servicemanagement.v1.Rollout\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\"N\n\x18GetServiceRolloutRequest\x12\x19\n\x0cservice_name\x18\x01 \x01(\tB\x03\xe0\x41\x02\x12\x17\n\nrollout_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\"\x17\n\x15\x45nableServiceResponse\"{\n\x1bGenerateConfigReportRequest\x12-\n\nnew_config\x18\x01 \x01(\x0b\x32\x14.google.protobuf.AnyB\x03\xe0\x41\x02\x12-\n\nold_config\x18\x02 \x01(\x0b\x32\x14.google.protobuf.AnyB\x03\xe0\x41\x01\"\xc9\x01\n\x1cGenerateConfigReportResponse\x12\x14\n\x0cservice_name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x45\n\x0e\x63hange_reports\x18\x03 \x03(\x0b\x32-.google.api.servicemanagement.v1.ChangeReport\x12@\n\x0b\x64iagnostics\x18\x04 \x03(\x0b\x32+.google.api.servicemanagement.v1.Diagnostic2\xc8\x19\n\x0eServiceManager\x12\xb3\x01\n\x0cListServices\x12\x34.google.api.servicemanagement.v1.ListServicesRequest\x1a\x35.google.api.servicemanagement.v1.ListServicesResponse\"6\x82\xd3\xe4\x93\x02\x0e\x12\x0c/v1/services\xda\x41\x1fproducer_project_id,consumer_id\x12\xa5\x01\n\nGetService\x12\x32.google.api.servicemanagement.v1.GetServiceRequest\x1a/.google.api.servicemanagement.v1.ManagedService\"2\x82\xd3\xe4\x93\x02\x1d\x12\x1b/v1/services/{service_name}\xda\x41\x0cservice_name\x12\xf5\x01\n\rCreateService\x12\x35.google.api.servicemanagement.v1.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\x8d\x01\x82\xd3\xe4\x93\x02\x17\"\x0c/v1/services:\x07service\xda\x41\x07service\xca\x41\x63\n.google.api.servicemanagement.v1.ManagedService\x12\x31google.api.servicemanagement.v1.OperationMetadata\x12\xe6\x01\n\rDeleteService\x12\x35.google.api.servicemanagement.v1.DeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"\x7f\x82\xd3\xe4\x93\x02\x1d*\x1b/v1/services/{service_name}\xda\x41\x0cservice_name\xca\x41J\n\x15google.protobuf.Empty\x12\x31google.api.servicemanagement.v1.OperationMetadata\x12\x96\x02\n\x0fUndeleteService\x12\x37.google.api.servicemanagement.v1.UndeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"\xaa\x01\x82\xd3\xe4\x93\x02&\"$/v1/services/{service_name}:undelete\xda\x41\x0cservice_name\xca\x41l\n7google.api.servicemanagement.v1.UndeleteServiceResponse\x12\x31google.api.servicemanagement.v1.OperationMetadata\x12\xc9\x01\n\x12ListServiceConfigs\x12:.google.api.servicemanagement.v1.ListServiceConfigsRequest\x1a;.google.api.servicemanagement.v1.ListServiceConfigsResponse\":\x82\xd3\xe4\x93\x02%\x12#/v1/services/{service_name}/configs\xda\x41\x0cservice_name\x12\xde\x01\n\x10GetServiceConfig\x12\x38.google.api.servicemanagement.v1.GetServiceConfigRequest\x1a\x13.google.api.Service\"{\x82\xd3\xe4\x93\x02W\x12//v1/services/{service_name}/configs/{config_id}Z$\x12\"/v1/services/{service_name}/config\xda\x41\x1bservice_name,config_id,view\x12\xc2\x01\n\x13\x43reateServiceConfig\x12;.google.api.servicemanagement.v1.CreateServiceConfigRequest\x1a\x13.google.api.Service\"Y\x82\xd3\xe4\x93\x02\x35\"#/v1/services/{service_name}/configs:\x0eservice_config\xda\x41\x1bservice_name,service_config\x12\xc4\x02\n\x12SubmitConfigSource\x12:.google.api.servicemanagement.v1.SubmitConfigSourceRequest\x1a\x1d.google.longrunning.Operation\"\xd2\x01\x82\xd3\xe4\x93\x02/\"*/v1/services/{service_name}/configs:submit:\x01*\xda\x41(service_name,config_source,validate_only\xca\x41o\n:google.api.servicemanagement.v1.SubmitConfigSourceResponse\x12\x31google.api.servicemanagement.v1.OperationMetadata\x12\xd4\x01\n\x13ListServiceRollouts\x12;.google.api.servicemanagement.v1.ListServiceRolloutsRequest\x1a<.google.api.servicemanagement.v1.ListServiceRolloutsResponse\"B\x82\xd3\xe4\x93\x02&\x12$/v1/services/{service_name}/rollouts\xda\x41\x13service_name,filter\x12\xcd\x01\n\x11GetServiceRollout\x12\x39.google.api.servicemanagement.v1.GetServiceRolloutRequest\x1a(.google.api.servicemanagement.v1.Rollout\"S\x82\xd3\xe4\x93\x02\x33\x12\x31/v1/services/{service_name}/rollouts/{rollout_id}\xda\x41\x17service_name,rollout_id\x12\xa1\x02\n\x14\x43reateServiceRollout\x12<.google.api.servicemanagement.v1.CreateServiceRolloutRequest\x1a\x1d.google.longrunning.Operation\"\xab\x01\x82\xd3\xe4\x93\x02/\"$/v1/services/{service_name}/rollouts:\x07rollout\xda\x41\x14service_name,rollout\xca\x41\\\n\'google.api.servicemanagement.v1.Rollout\x12\x31google.api.servicemanagement.v1.OperationMetadata\x12\xd9\x01\n\x14GenerateConfigReport\x12<.google.api.servicemanagement.v1.GenerateConfigReportRequest\x1a=.google.api.servicemanagement.v1.GenerateConfigReportResponse\"D\x82\xd3\xe4\x93\x02&\"!/v1/services:generateConfigReport:\x01*\xda\x41\x15new_config,old_config\x1a\xfd\x01\xca\x41 servicemanagement.googleapis.com\xd2\x41\xd6\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/cloud-platform.read-only,https://www.googleapis.com/auth/service.management,https://www.googleapis.com/auth/service.management.readonlyB\x87\x02\n#com.google.api.servicemanagement.v1B\x13ServiceManagerProtoP\x01ZScloud.google.com/go/servicemanagement/apiv1/servicemanagementpb;servicemanagementpb\xa2\x02\x04GASM\xaa\x02!Google.Cloud.ServiceManagement.V1\xca\x02!Google\\Cloud\\ServiceManagement\\V1\xea\x02$Google::Cloud::ServiceManagement::V1b\x06proto3"
|
17
18
|
|
18
19
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
19
20
|
|
@@ -64,6 +65,7 @@ module Google
|
|
64
65
|
ListServiceRolloutsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ListServiceRolloutsRequest").msgclass
|
65
66
|
ListServiceRolloutsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.ListServiceRolloutsResponse").msgclass
|
66
67
|
GetServiceRolloutRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.GetServiceRolloutRequest").msgclass
|
68
|
+
EnableServiceResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.EnableServiceResponse").msgclass
|
67
69
|
GenerateConfigReportRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.GenerateConfigReportRequest").msgclass
|
68
70
|
GenerateConfigReportResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.api.servicemanagement.v1.GenerateConfigReportResponse").msgclass
|
69
71
|
end
|
@@ -0,0 +1,137 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "gapic/config"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module ServiceManagement
|
24
|
+
##
|
25
|
+
# @example Loading just the REST part of this package, including all its services, and instantiating a REST client
|
26
|
+
#
|
27
|
+
# require "google/cloud/service_management/v1/rest"
|
28
|
+
# client = ::Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::Client.new
|
29
|
+
#
|
30
|
+
module V1
|
31
|
+
##
|
32
|
+
# @private
|
33
|
+
# Initialize the mixin bindings configuration
|
34
|
+
#
|
35
|
+
def self.configure
|
36
|
+
@configure ||= begin
|
37
|
+
namespace = ["Google", "Cloud", "ServiceManagement"]
|
38
|
+
parent_config = while namespace.any?
|
39
|
+
parent_name = namespace.join "::"
|
40
|
+
parent_const = const_get parent_name
|
41
|
+
break parent_const.configure if parent_const.respond_to? :configure
|
42
|
+
namespace.pop
|
43
|
+
end
|
44
|
+
|
45
|
+
default_config = Configuration.new parent_config
|
46
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.GetIamPolicy"] = [
|
47
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
48
|
+
uri_method: :post,
|
49
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
50
|
+
matches: [
|
51
|
+
["resource", %r{^services/[^/]+/?$}, false]
|
52
|
+
],
|
53
|
+
body: "*"
|
54
|
+
),
|
55
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
56
|
+
uri_method: :post,
|
57
|
+
uri_template: "/v1/{resource}:getIamPolicy",
|
58
|
+
matches: [
|
59
|
+
["resource", %r{^services/[^/]+/consumers/[^/]+/?$}, false]
|
60
|
+
],
|
61
|
+
body: "*"
|
62
|
+
)
|
63
|
+
]
|
64
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.SetIamPolicy"] = [
|
65
|
+
|
66
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
67
|
+
uri_method: :post,
|
68
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
69
|
+
matches: [
|
70
|
+
["resource", %r{^services/[^/]+/?$}, false]
|
71
|
+
],
|
72
|
+
body: "*"
|
73
|
+
),
|
74
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
75
|
+
uri_method: :post,
|
76
|
+
uri_template: "/v1/{resource}:setIamPolicy",
|
77
|
+
matches: [
|
78
|
+
["resource", %r{^services/[^/]+/consumers/[^/]+/?$}, false]
|
79
|
+
],
|
80
|
+
body: "*"
|
81
|
+
)
|
82
|
+
]
|
83
|
+
default_config.bindings_override["google.iam.v1.IAMPolicy.TestIamPermissions"] = [
|
84
|
+
|
85
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
86
|
+
uri_method: :post,
|
87
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
88
|
+
matches: [
|
89
|
+
["resource", %r{^services/[^/]+/?$}, false]
|
90
|
+
],
|
91
|
+
body: "*"
|
92
|
+
),
|
93
|
+
Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
|
94
|
+
uri_method: :post,
|
95
|
+
uri_template: "/v1/{resource}:testIamPermissions",
|
96
|
+
matches: [
|
97
|
+
["resource", %r{^services/[^/]+/consumers/[^/]+/?$}, false]
|
98
|
+
],
|
99
|
+
body: "*"
|
100
|
+
)
|
101
|
+
]
|
102
|
+
default_config
|
103
|
+
end
|
104
|
+
yield @configure if block_given?
|
105
|
+
@configure
|
106
|
+
end
|
107
|
+
|
108
|
+
##
|
109
|
+
# @private
|
110
|
+
# Configuration class for the google.api.servicemanagement.v1 package.
|
111
|
+
#
|
112
|
+
# This class contains common configuration for all services
|
113
|
+
# of the google.api.servicemanagement.v1 package.
|
114
|
+
#
|
115
|
+
# This configuration is for internal use of the client library classes,
|
116
|
+
# and it is not intended that the end-users will read or change it.
|
117
|
+
#
|
118
|
+
class Configuration
|
119
|
+
extend ::Gapic::Config
|
120
|
+
|
121
|
+
# @private
|
122
|
+
# Overrides for http bindings for the RPC of the mixins for this package.
|
123
|
+
# Services in this package should use these when creating clients for the mixin services.
|
124
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
125
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
126
|
+
|
127
|
+
# @private
|
128
|
+
def initialize parent_config = nil
|
129
|
+
@parent_config = parent_config unless parent_config.nil?
|
130
|
+
|
131
|
+
yield self if block_given?
|
132
|
+
end
|
133
|
+
end
|
134
|
+
end
|
135
|
+
end
|
136
|
+
end
|
137
|
+
end
|
@@ -17,6 +17,7 @@
|
|
17
17
|
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
18
|
|
19
19
|
require "google/cloud/service_management/v1/service_manager/rest"
|
20
|
+
require "google/cloud/service_management/v1/bindings_override"
|
20
21
|
require "google/cloud/service_management/v1/version"
|
21
22
|
|
22
23
|
module Google
|
@@ -18,6 +18,7 @@
|
|
18
18
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/api/servicemanagement/v1/servicemanager_pb"
|
21
|
+
require "google/iam/v1"
|
21
22
|
|
22
23
|
module Google
|
23
24
|
module Cloud
|
@@ -140,6 +141,12 @@ module Google
|
|
140
141
|
config.endpoint = @config.endpoint
|
141
142
|
end
|
142
143
|
|
144
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
|
145
|
+
config.credentials = credentials
|
146
|
+
config.quota_project = @quota_project_id
|
147
|
+
config.endpoint = @config.endpoint
|
148
|
+
end
|
149
|
+
|
143
150
|
@service_manager_stub = ::Gapic::ServiceStub.new(
|
144
151
|
::Google::Cloud::ServiceManagement::V1::ServiceManager::Stub,
|
145
152
|
credentials: credentials,
|
@@ -156,6 +163,13 @@ module Google
|
|
156
163
|
#
|
157
164
|
attr_reader :operations_client
|
158
165
|
|
166
|
+
##
|
167
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
168
|
+
#
|
169
|
+
# @return [Google::Iam::V1::IAMPolicy::Client]
|
170
|
+
#
|
171
|
+
attr_reader :iam_policy_client
|
172
|
+
|
159
173
|
# Service calls
|
160
174
|
|
161
175
|
##
|
@@ -184,7 +198,7 @@ module Google
|
|
184
198
|
# Include services produced by the specified project.
|
185
199
|
# @param page_size [::Integer]
|
186
200
|
# The max number of items to include in the response list. Page size is 50
|
187
|
-
# if not specified. Maximum value is
|
201
|
+
# if not specified. Maximum value is 500.
|
188
202
|
# @param page_token [::String]
|
189
203
|
# Token identifying which result to start with; returned by a previous list
|
190
204
|
# call.
|
@@ -465,8 +479,8 @@ module Google
|
|
465
479
|
#
|
466
480
|
# @param service_name [::String]
|
467
481
|
# Required. The name of the service. See the
|
468
|
-
# [overview](https://cloud.google.com/service-
|
469
|
-
# example: `example.googleapis.com`.
|
482
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
483
|
+
# requirements. For example: `example.googleapis.com`.
|
470
484
|
#
|
471
485
|
# @yield [response, operation] Access the result along with the RPC operation
|
472
486
|
# @yieldparam response [::Gapic::Operation]
|
@@ -565,8 +579,8 @@ module Google
|
|
565
579
|
#
|
566
580
|
# @param service_name [::String]
|
567
581
|
# Required. The name of the service. See the
|
568
|
-
# [overview](https://cloud.google.com/service-
|
569
|
-
# example: `example.googleapis.com`.
|
582
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
583
|
+
# requirements. For example: `example.googleapis.com`.
|
570
584
|
#
|
571
585
|
# @yield [response, operation] Access the result along with the RPC operation
|
572
586
|
# @yieldparam response [::Gapic::Operation]
|
@@ -661,8 +675,8 @@ module Google
|
|
661
675
|
#
|
662
676
|
# @param service_name [::String]
|
663
677
|
# Required. The name of the service. See the
|
664
|
-
# [overview](https://cloud.google.com/service-
|
665
|
-
# example: `example.googleapis.com`.
|
678
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
679
|
+
# requirements. For example: `example.googleapis.com`.
|
666
680
|
# @param page_token [::String]
|
667
681
|
# The token of the page to retrieve.
|
668
682
|
# @param page_size [::Integer]
|
@@ -758,8 +772,8 @@ module Google
|
|
758
772
|
#
|
759
773
|
# @param service_name [::String]
|
760
774
|
# Required. The name of the service. See the
|
761
|
-
# [overview](https://cloud.google.com/service-
|
762
|
-
# example: `example.googleapis.com`.
|
775
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
776
|
+
# requirements. For example: `example.googleapis.com`.
|
763
777
|
# @param config_id [::String]
|
764
778
|
# Required. The id of the service configuration resource.
|
765
779
|
#
|
@@ -863,8 +877,8 @@ module Google
|
|
863
877
|
#
|
864
878
|
# @param service_name [::String]
|
865
879
|
# Required. The name of the service. See the
|
866
|
-
# [overview](https://cloud.google.com/service-
|
867
|
-
# example: `example.googleapis.com`.
|
880
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
881
|
+
# requirements. For example: `example.googleapis.com`.
|
868
882
|
# @param service_config [::Google::Api::Service, ::Hash]
|
869
883
|
# Required. The service configuration resource.
|
870
884
|
#
|
@@ -965,8 +979,8 @@ module Google
|
|
965
979
|
#
|
966
980
|
# @param service_name [::String]
|
967
981
|
# Required. The name of the service. See the
|
968
|
-
# [overview](https://cloud.google.com/service-
|
969
|
-
# example: `example.googleapis.com`.
|
982
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
983
|
+
# requirements. For example: `example.googleapis.com`.
|
970
984
|
# @param config_source [::Google::Cloud::ServiceManagement::V1::ConfigSource, ::Hash]
|
971
985
|
# Required. The source configuration for the service.
|
972
986
|
# @param validate_only [::Boolean]
|
@@ -1067,8 +1081,8 @@ module Google
|
|
1067
1081
|
#
|
1068
1082
|
# @param service_name [::String]
|
1069
1083
|
# Required. The name of the service. See the
|
1070
|
-
# [overview](https://cloud.google.com/service-
|
1071
|
-
# example: `example.googleapis.com`.
|
1084
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
1085
|
+
# requirements. For example: `example.googleapis.com`.
|
1072
1086
|
# @param page_token [::String]
|
1073
1087
|
# The token of the page to retrieve.
|
1074
1088
|
# @param page_size [::Integer]
|
@@ -1077,12 +1091,14 @@ module Google
|
|
1077
1091
|
# @param filter [::String]
|
1078
1092
|
# Required. Use `filter` to return subset of rollouts.
|
1079
1093
|
# The following filters are supported:
|
1080
|
-
#
|
1081
|
-
#
|
1082
|
-
#
|
1083
|
-
#
|
1084
|
-
#
|
1085
|
-
#
|
1094
|
+
#
|
1095
|
+
# -- By [status]
|
1096
|
+
# [google.api.servicemanagement.v1.Rollout.RolloutStatus]. For example,
|
1097
|
+
# `filter='status=SUCCESS'`
|
1098
|
+
#
|
1099
|
+
# -- By [strategy]
|
1100
|
+
# [google.api.servicemanagement.v1.Rollout.strategy]. For example,
|
1101
|
+
# `filter='strategy=TrafficPercentStrategy'`
|
1086
1102
|
#
|
1087
1103
|
# @yield [response, operation] Access the result along with the RPC operation
|
1088
1104
|
# @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::ServiceManagement::V1::Rollout>]
|
@@ -1174,8 +1190,8 @@ module Google
|
|
1174
1190
|
#
|
1175
1191
|
# @param service_name [::String]
|
1176
1192
|
# Required. The name of the service. See the
|
1177
|
-
# [overview](https://cloud.google.com/service-
|
1178
|
-
# example: `example.googleapis.com`.
|
1193
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
1194
|
+
# requirements. For example: `example.googleapis.com`.
|
1179
1195
|
# @param rollout_id [::String]
|
1180
1196
|
# Required. The id of the rollout resource.
|
1181
1197
|
#
|
@@ -1279,8 +1295,8 @@ module Google
|
|
1279
1295
|
#
|
1280
1296
|
# @param service_name [::String]
|
1281
1297
|
# Required. The name of the service. See the
|
1282
|
-
# [overview](https://cloud.google.com/service-
|
1283
|
-
# example: `example.googleapis.com`.
|
1298
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
1299
|
+
# requirements. For example: `example.googleapis.com`.
|
1284
1300
|
# @param rollout [::Google::Cloud::ServiceManagement::V1::Rollout, ::Hash]
|
1285
1301
|
# Required. The rollout resource. The `service_name` field is output only.
|
1286
1302
|
#
|
@@ -19,6 +19,7 @@
|
|
19
19
|
require "google/cloud/errors"
|
20
20
|
require "google/api/servicemanagement/v1/servicemanager_pb"
|
21
21
|
require "google/cloud/service_management/v1/service_manager/rest/service_stub"
|
22
|
+
require "google/iam/v1/rest"
|
22
23
|
|
23
24
|
module Google
|
24
25
|
module Cloud
|
@@ -137,6 +138,13 @@ module Google
|
|
137
138
|
config.endpoint = @config.endpoint
|
138
139
|
end
|
139
140
|
|
141
|
+
@iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
|
142
|
+
config.credentials = credentials
|
143
|
+
config.quota_project = @quota_project_id
|
144
|
+
config.endpoint = @config.endpoint
|
145
|
+
config.bindings_override = @config.bindings_override
|
146
|
+
end
|
147
|
+
|
140
148
|
@service_manager_stub = ::Google::Cloud::ServiceManagement::V1::ServiceManager::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
|
141
149
|
end
|
142
150
|
|
@@ -147,6 +155,13 @@ module Google
|
|
147
155
|
#
|
148
156
|
attr_reader :operations_client
|
149
157
|
|
158
|
+
##
|
159
|
+
# Get the associated client for mix-in of the IAMPolicy.
|
160
|
+
#
|
161
|
+
# @return [Google::Iam::V1::IAMPolicy::Rest::Client]
|
162
|
+
#
|
163
|
+
attr_reader :iam_policy_client
|
164
|
+
|
150
165
|
# Service calls
|
151
166
|
|
152
167
|
##
|
@@ -175,7 +190,7 @@ module Google
|
|
175
190
|
# Include services produced by the specified project.
|
176
191
|
# @param page_size [::Integer]
|
177
192
|
# The max number of items to include in the response list. Page size is 50
|
178
|
-
# if not specified. Maximum value is
|
193
|
+
# if not specified. Maximum value is 500.
|
179
194
|
# @param page_token [::String]
|
180
195
|
# Token identifying which result to start with; returned by a previous list
|
181
196
|
# call.
|
@@ -392,8 +407,8 @@ module Google
|
|
392
407
|
#
|
393
408
|
# @param service_name [::String]
|
394
409
|
# Required. The name of the service. See the
|
395
|
-
# [overview](https://cloud.google.com/service-
|
396
|
-
# example: `example.googleapis.com`.
|
410
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
411
|
+
# requirements. For example: `example.googleapis.com`.
|
397
412
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
398
413
|
# @yieldparam result [::Gapic::Operation]
|
399
414
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -462,8 +477,8 @@ module Google
|
|
462
477
|
#
|
463
478
|
# @param service_name [::String]
|
464
479
|
# Required. The name of the service. See the
|
465
|
-
# [overview](https://cloud.google.com/service-
|
466
|
-
# example: `example.googleapis.com`.
|
480
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
481
|
+
# requirements. For example: `example.googleapis.com`.
|
467
482
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
468
483
|
# @yieldparam result [::Gapic::Operation]
|
469
484
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -528,8 +543,8 @@ module Google
|
|
528
543
|
#
|
529
544
|
# @param service_name [::String]
|
530
545
|
# Required. The name of the service. See the
|
531
|
-
# [overview](https://cloud.google.com/service-
|
532
|
-
# example: `example.googleapis.com`.
|
546
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
547
|
+
# requirements. For example: `example.googleapis.com`.
|
533
548
|
# @param page_token [::String]
|
534
549
|
# The token of the page to retrieve.
|
535
550
|
# @param page_size [::Integer]
|
@@ -598,8 +613,8 @@ module Google
|
|
598
613
|
#
|
599
614
|
# @param service_name [::String]
|
600
615
|
# Required. The name of the service. See the
|
601
|
-
# [overview](https://cloud.google.com/service-
|
602
|
-
# example: `example.googleapis.com`.
|
616
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
617
|
+
# requirements. For example: `example.googleapis.com`.
|
603
618
|
# @param config_id [::String]
|
604
619
|
# Required. The id of the service configuration resource.
|
605
620
|
#
|
@@ -677,8 +692,8 @@ module Google
|
|
677
692
|
#
|
678
693
|
# @param service_name [::String]
|
679
694
|
# Required. The name of the service. See the
|
680
|
-
# [overview](https://cloud.google.com/service-
|
681
|
-
# example: `example.googleapis.com`.
|
695
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
696
|
+
# requirements. For example: `example.googleapis.com`.
|
682
697
|
# @param service_config [::Google::Api::Service, ::Hash]
|
683
698
|
# Required. The service configuration resource.
|
684
699
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -756,8 +771,8 @@ module Google
|
|
756
771
|
#
|
757
772
|
# @param service_name [::String]
|
758
773
|
# Required. The name of the service. See the
|
759
|
-
# [overview](https://cloud.google.com/service-
|
760
|
-
# example: `example.googleapis.com`.
|
774
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
775
|
+
# requirements. For example: `example.googleapis.com`.
|
761
776
|
# @param config_source [::Google::Cloud::ServiceManagement::V1::ConfigSource, ::Hash]
|
762
777
|
# Required. The source configuration for the service.
|
763
778
|
# @param validate_only [::Boolean]
|
@@ -828,8 +843,8 @@ module Google
|
|
828
843
|
#
|
829
844
|
# @param service_name [::String]
|
830
845
|
# Required. The name of the service. See the
|
831
|
-
# [overview](https://cloud.google.com/service-
|
832
|
-
# example: `example.googleapis.com`.
|
846
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
847
|
+
# requirements. For example: `example.googleapis.com`.
|
833
848
|
# @param page_token [::String]
|
834
849
|
# The token of the page to retrieve.
|
835
850
|
# @param page_size [::Integer]
|
@@ -838,12 +853,14 @@ module Google
|
|
838
853
|
# @param filter [::String]
|
839
854
|
# Required. Use `filter` to return subset of rollouts.
|
840
855
|
# The following filters are supported:
|
841
|
-
#
|
842
|
-
#
|
843
|
-
#
|
844
|
-
#
|
845
|
-
#
|
846
|
-
#
|
856
|
+
#
|
857
|
+
# -- By [status]
|
858
|
+
# [google.api.servicemanagement.v1.Rollout.RolloutStatus]. For example,
|
859
|
+
# `filter='status=SUCCESS'`
|
860
|
+
#
|
861
|
+
# -- By [strategy]
|
862
|
+
# [google.api.servicemanagement.v1.Rollout.strategy]. For example,
|
863
|
+
# `filter='strategy=TrafficPercentStrategy'`
|
847
864
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
848
865
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::ServiceManagement::V1::Rollout>]
|
849
866
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -908,8 +925,8 @@ module Google
|
|
908
925
|
#
|
909
926
|
# @param service_name [::String]
|
910
927
|
# Required. The name of the service. See the
|
911
|
-
# [overview](https://cloud.google.com/service-
|
912
|
-
# example: `example.googleapis.com`.
|
928
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
929
|
+
# requirements. For example: `example.googleapis.com`.
|
913
930
|
# @param rollout_id [::String]
|
914
931
|
# Required. The id of the rollout resource.
|
915
932
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -987,8 +1004,8 @@ module Google
|
|
987
1004
|
#
|
988
1005
|
# @param service_name [::String]
|
989
1006
|
# Required. The name of the service. See the
|
990
|
-
# [overview](https://cloud.google.com/service-
|
991
|
-
# example: `example.googleapis.com`.
|
1007
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
1008
|
+
# requirements. For example: `example.googleapis.com`.
|
992
1009
|
# @param rollout [::Google::Cloud::ServiceManagement::V1::Rollout, ::Hash]
|
993
1010
|
# Required. The rollout resource. The `service_name` field is output only.
|
994
1011
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -1204,6 +1221,13 @@ module Google
|
|
1204
1221
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
1205
1222
|
config_attr :quota_project, nil, ::String, nil
|
1206
1223
|
|
1224
|
+
# @private
|
1225
|
+
# Overrides for http bindings for the RPCs of this service
|
1226
|
+
# are only used when this service is used as mixin, and only
|
1227
|
+
# by the host service.
|
1228
|
+
# @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
|
1229
|
+
config_attr :bindings_override, {}, ::Hash, nil
|
1230
|
+
|
1207
1231
|
# @private
|
1208
1232
|
def initialize parent_config = nil
|
1209
1233
|
@parent_config = parent_config unless parent_config.nil?
|
@@ -21,6 +21,7 @@ require "gapic/config"
|
|
21
21
|
require "gapic/config/method"
|
22
22
|
|
23
23
|
require "google/cloud/service_management/v1/version"
|
24
|
+
require "google/cloud/service_management/v1/bindings_override"
|
24
25
|
|
25
26
|
require "google/cloud/service_management/v1/service_manager/credentials"
|
26
27
|
require "google/cloud/service_management/v1/service_manager/rest/operations"
|
@@ -30,6 +30,9 @@ module Google
|
|
30
30
|
# The service controller environment to use. If empty, no control plane
|
31
31
|
# feature (like quota and billing) will be enabled. The recommended value for
|
32
32
|
# most services is servicecontrol.googleapis.com
|
33
|
+
# @!attribute [rw] method_policies
|
34
|
+
# @return [::Array<::Google::Api::MethodPolicy>]
|
35
|
+
# Defines policies applying to the API methods of the service.
|
33
36
|
class Control
|
34
37
|
include ::Google::Protobuf::MessageExts
|
35
38
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Api
|
22
|
+
# Google API Policy Annotation
|
23
|
+
#
|
24
|
+
# This message defines a simple API policy annotation that can be used to
|
25
|
+
# annotate API request and response message fields with applicable policies.
|
26
|
+
# One field may have multiple applicable policies that must all be satisfied
|
27
|
+
# before a request can be processed. This policy annotation is used to
|
28
|
+
# generate the overall policy that will be used for automatic runtime
|
29
|
+
# policy enforcement and documentation generation.
|
30
|
+
# @!attribute [rw] selector
|
31
|
+
# @return [::String]
|
32
|
+
# Selects one or more request or response message fields to apply this
|
33
|
+
# `FieldPolicy`.
|
34
|
+
#
|
35
|
+
# When a `FieldPolicy` is used in proto annotation, the selector must
|
36
|
+
# be left as empty. The service config generator will automatically fill
|
37
|
+
# the correct value.
|
38
|
+
#
|
39
|
+
# When a `FieldPolicy` is used in service config, the selector must be a
|
40
|
+
# comma-separated string with valid request or response field paths,
|
41
|
+
# such as "foo.bar" or "foo.bar,foo.baz".
|
42
|
+
# @!attribute [rw] resource_permission
|
43
|
+
# @return [::String]
|
44
|
+
# Specifies the required permission(s) for the resource referred to by the
|
45
|
+
# field. It requires the field contains a valid resource reference, and
|
46
|
+
# the request must pass the permission checks to proceed. For example,
|
47
|
+
# "resourcemanager.projects.get".
|
48
|
+
# @!attribute [rw] resource_type
|
49
|
+
# @return [::String]
|
50
|
+
# Specifies the resource type for the resource referred to by the field.
|
51
|
+
class FieldPolicy
|
52
|
+
include ::Google::Protobuf::MessageExts
|
53
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
54
|
+
end
|
55
|
+
|
56
|
+
# Defines policies applying to an RPC method.
|
57
|
+
# @!attribute [rw] selector
|
58
|
+
# @return [::String]
|
59
|
+
# Selects a method to which these policies should be enforced, for example,
|
60
|
+
# "google.pubsub.v1.Subscriber.CreateSubscription".
|
61
|
+
#
|
62
|
+
# Refer to {::Google::Api::DocumentationRule#selector selector} for syntax
|
63
|
+
# details.
|
64
|
+
#
|
65
|
+
# NOTE: This field must not be set in the proto annotation. It will be
|
66
|
+
# automatically filled by the service config compiler .
|
67
|
+
# @!attribute [rw] request_policies
|
68
|
+
# @return [::Array<::Google::Api::FieldPolicy>]
|
69
|
+
# Policies that are applicable to the request message.
|
70
|
+
class MethodPolicy
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
@@ -28,7 +28,7 @@ module Google
|
|
28
28
|
# @!attribute [rw] page_size
|
29
29
|
# @return [::Integer]
|
30
30
|
# The max number of items to include in the response list. Page size is 50
|
31
|
-
# if not specified. Maximum value is
|
31
|
+
# if not specified. Maximum value is 500.
|
32
32
|
# @!attribute [rw] page_token
|
33
33
|
# @return [::String]
|
34
34
|
# Token identifying which result to start with; returned by a previous list
|
@@ -80,8 +80,8 @@ module Google
|
|
80
80
|
# @!attribute [rw] service_name
|
81
81
|
# @return [::String]
|
82
82
|
# Required. The name of the service. See the
|
83
|
-
# [overview](https://cloud.google.com/service-
|
84
|
-
# example: `example.googleapis.com`.
|
83
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
84
|
+
# requirements. For example: `example.googleapis.com`.
|
85
85
|
class DeleteServiceRequest
|
86
86
|
include ::Google::Protobuf::MessageExts
|
87
87
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -91,8 +91,8 @@ module Google
|
|
91
91
|
# @!attribute [rw] service_name
|
92
92
|
# @return [::String]
|
93
93
|
# Required. The name of the service. See the
|
94
|
-
# [overview](https://cloud.google.com/service-
|
95
|
-
# example: `example.googleapis.com`.
|
94
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
95
|
+
# requirements. For example: `example.googleapis.com`.
|
96
96
|
class UndeleteServiceRequest
|
97
97
|
include ::Google::Protobuf::MessageExts
|
98
98
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -111,8 +111,8 @@ module Google
|
|
111
111
|
# @!attribute [rw] service_name
|
112
112
|
# @return [::String]
|
113
113
|
# Required. The name of the service. See the
|
114
|
-
# [overview](https://cloud.google.com/service-
|
115
|
-
# example: `example.googleapis.com`.
|
114
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
115
|
+
# requirements. For example: `example.googleapis.com`.
|
116
116
|
# @!attribute [rw] config_id
|
117
117
|
# @return [::String]
|
118
118
|
# Required. The id of the service configuration resource.
|
@@ -143,8 +143,8 @@ module Google
|
|
143
143
|
# @!attribute [rw] service_name
|
144
144
|
# @return [::String]
|
145
145
|
# Required. The name of the service. See the
|
146
|
-
# [overview](https://cloud.google.com/service-
|
147
|
-
# example: `example.googleapis.com`.
|
146
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
147
|
+
# requirements. For example: `example.googleapis.com`.
|
148
148
|
# @!attribute [rw] page_token
|
149
149
|
# @return [::String]
|
150
150
|
# The token of the page to retrieve.
|
@@ -173,8 +173,8 @@ module Google
|
|
173
173
|
# @!attribute [rw] service_name
|
174
174
|
# @return [::String]
|
175
175
|
# Required. The name of the service. See the
|
176
|
-
# [overview](https://cloud.google.com/service-
|
177
|
-
# example: `example.googleapis.com`.
|
176
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
177
|
+
# requirements. For example: `example.googleapis.com`.
|
178
178
|
# @!attribute [rw] service_config
|
179
179
|
# @return [::Google::Api::Service]
|
180
180
|
# Required. The service configuration resource.
|
@@ -187,8 +187,8 @@ module Google
|
|
187
187
|
# @!attribute [rw] service_name
|
188
188
|
# @return [::String]
|
189
189
|
# Required. The name of the service. See the
|
190
|
-
# [overview](https://cloud.google.com/service-
|
191
|
-
# example: `example.googleapis.com`.
|
190
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
191
|
+
# requirements. For example: `example.googleapis.com`.
|
192
192
|
# @!attribute [rw] config_source
|
193
193
|
# @return [::Google::Cloud::ServiceManagement::V1::ConfigSource]
|
194
194
|
# Required. The source configuration for the service.
|
@@ -215,8 +215,8 @@ module Google
|
|
215
215
|
# @!attribute [rw] service_name
|
216
216
|
# @return [::String]
|
217
217
|
# Required. The name of the service. See the
|
218
|
-
# [overview](https://cloud.google.com/service-
|
219
|
-
# example: `example.googleapis.com`.
|
218
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
219
|
+
# requirements. For example: `example.googleapis.com`.
|
220
220
|
# @!attribute [rw] rollout
|
221
221
|
# @return [::Google::Cloud::ServiceManagement::V1::Rollout]
|
222
222
|
# Required. The rollout resource. The `service_name` field is output only.
|
@@ -229,8 +229,8 @@ module Google
|
|
229
229
|
# @!attribute [rw] service_name
|
230
230
|
# @return [::String]
|
231
231
|
# Required. The name of the service. See the
|
232
|
-
# [overview](https://cloud.google.com/service-
|
233
|
-
# example: `example.googleapis.com`.
|
232
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
233
|
+
# requirements. For example: `example.googleapis.com`.
|
234
234
|
# @!attribute [rw] page_token
|
235
235
|
# @return [::String]
|
236
236
|
# The token of the page to retrieve.
|
@@ -242,12 +242,14 @@ module Google
|
|
242
242
|
# @return [::String]
|
243
243
|
# Required. Use `filter` to return subset of rollouts.
|
244
244
|
# The following filters are supported:
|
245
|
-
#
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
245
|
+
#
|
246
|
+
# -- By [status]
|
247
|
+
# [google.api.servicemanagement.v1.Rollout.RolloutStatus]. For example,
|
248
|
+
# `filter='status=SUCCESS'`
|
249
|
+
#
|
250
|
+
# -- By [strategy]
|
251
|
+
# [google.api.servicemanagement.v1.Rollout.strategy]. For example,
|
252
|
+
# `filter='strategy=TrafficPercentStrategy'`
|
251
253
|
class ListServiceRolloutsRequest
|
252
254
|
include ::Google::Protobuf::MessageExts
|
253
255
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -269,8 +271,8 @@ module Google
|
|
269
271
|
# @!attribute [rw] service_name
|
270
272
|
# @return [::String]
|
271
273
|
# Required. The name of the service. See the
|
272
|
-
# [overview](https://cloud.google.com/service-
|
273
|
-
# example: `example.googleapis.com`.
|
274
|
+
# [overview](https://cloud.google.com/service-management/overview) for naming
|
275
|
+
# requirements. For example: `example.googleapis.com`.
|
274
276
|
# @!attribute [rw] rollout_id
|
275
277
|
# @return [::String]
|
276
278
|
# Required. The id of the rollout resource.
|
@@ -279,6 +281,12 @@ module Google
|
|
279
281
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
280
282
|
end
|
281
283
|
|
284
|
+
# Operation payload for EnableService method.
|
285
|
+
class EnableServiceResponse
|
286
|
+
include ::Google::Protobuf::MessageExts
|
287
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
288
|
+
end
|
289
|
+
|
282
290
|
# Request message for GenerateConfigReport method.
|
283
291
|
# @!attribute [rw] new_config
|
284
292
|
# @return [::Google::Protobuf::Any]
|
@@ -0,0 +1,229 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Protobuf
|
22
|
+
# `FieldMask` represents a set of symbolic field paths, for example:
|
23
|
+
#
|
24
|
+
# paths: "f.a"
|
25
|
+
# paths: "f.b.d"
|
26
|
+
#
|
27
|
+
# Here `f` represents a field in some root message, `a` and `b`
|
28
|
+
# fields in the message found in `f`, and `d` a field found in the
|
29
|
+
# message in `f.b`.
|
30
|
+
#
|
31
|
+
# Field masks are used to specify a subset of fields that should be
|
32
|
+
# returned by a get operation or modified by an update operation.
|
33
|
+
# Field masks also have a custom JSON encoding (see below).
|
34
|
+
#
|
35
|
+
# # Field Masks in Projections
|
36
|
+
#
|
37
|
+
# When used in the context of a projection, a response message or
|
38
|
+
# sub-message is filtered by the API to only contain those fields as
|
39
|
+
# specified in the mask. For example, if the mask in the previous
|
40
|
+
# example is applied to a response message as follows:
|
41
|
+
#
|
42
|
+
# f {
|
43
|
+
# a : 22
|
44
|
+
# b {
|
45
|
+
# d : 1
|
46
|
+
# x : 2
|
47
|
+
# }
|
48
|
+
# y : 13
|
49
|
+
# }
|
50
|
+
# z: 8
|
51
|
+
#
|
52
|
+
# The result will not contain specific values for fields x,y and z
|
53
|
+
# (their value will be set to the default, and omitted in proto text
|
54
|
+
# output):
|
55
|
+
#
|
56
|
+
#
|
57
|
+
# f {
|
58
|
+
# a : 22
|
59
|
+
# b {
|
60
|
+
# d : 1
|
61
|
+
# }
|
62
|
+
# }
|
63
|
+
#
|
64
|
+
# A repeated field is not allowed except at the last position of a
|
65
|
+
# paths string.
|
66
|
+
#
|
67
|
+
# If a FieldMask object is not present in a get operation, the
|
68
|
+
# operation applies to all fields (as if a FieldMask of all fields
|
69
|
+
# had been specified).
|
70
|
+
#
|
71
|
+
# Note that a field mask does not necessarily apply to the
|
72
|
+
# top-level response message. In case of a REST get operation, the
|
73
|
+
# field mask applies directly to the response, but in case of a REST
|
74
|
+
# list operation, the mask instead applies to each individual message
|
75
|
+
# in the returned resource list. In case of a REST custom method,
|
76
|
+
# other definitions may be used. Where the mask applies will be
|
77
|
+
# clearly documented together with its declaration in the API. In
|
78
|
+
# any case, the effect on the returned resource/resources is required
|
79
|
+
# behavior for APIs.
|
80
|
+
#
|
81
|
+
# # Field Masks in Update Operations
|
82
|
+
#
|
83
|
+
# A field mask in update operations specifies which fields of the
|
84
|
+
# targeted resource are going to be updated. The API is required
|
85
|
+
# to only change the values of the fields as specified in the mask
|
86
|
+
# and leave the others untouched. If a resource is passed in to
|
87
|
+
# describe the updated values, the API ignores the values of all
|
88
|
+
# fields not covered by the mask.
|
89
|
+
#
|
90
|
+
# If a repeated field is specified for an update operation, new values will
|
91
|
+
# be appended to the existing repeated field in the target resource. Note that
|
92
|
+
# a repeated field is only allowed in the last position of a `paths` string.
|
93
|
+
#
|
94
|
+
# If a sub-message is specified in the last position of the field mask for an
|
95
|
+
# update operation, then new value will be merged into the existing sub-message
|
96
|
+
# in the target resource.
|
97
|
+
#
|
98
|
+
# For example, given the target message:
|
99
|
+
#
|
100
|
+
# f {
|
101
|
+
# b {
|
102
|
+
# d: 1
|
103
|
+
# x: 2
|
104
|
+
# }
|
105
|
+
# c: [1]
|
106
|
+
# }
|
107
|
+
#
|
108
|
+
# And an update message:
|
109
|
+
#
|
110
|
+
# f {
|
111
|
+
# b {
|
112
|
+
# d: 10
|
113
|
+
# }
|
114
|
+
# c: [2]
|
115
|
+
# }
|
116
|
+
#
|
117
|
+
# then if the field mask is:
|
118
|
+
#
|
119
|
+
# paths: ["f.b", "f.c"]
|
120
|
+
#
|
121
|
+
# then the result will be:
|
122
|
+
#
|
123
|
+
# f {
|
124
|
+
# b {
|
125
|
+
# d: 10
|
126
|
+
# x: 2
|
127
|
+
# }
|
128
|
+
# c: [1, 2]
|
129
|
+
# }
|
130
|
+
#
|
131
|
+
# An implementation may provide options to override this default behavior for
|
132
|
+
# repeated and message fields.
|
133
|
+
#
|
134
|
+
# In order to reset a field's value to the default, the field must
|
135
|
+
# be in the mask and set to the default value in the provided resource.
|
136
|
+
# Hence, in order to reset all fields of a resource, provide a default
|
137
|
+
# instance of the resource and set all fields in the mask, or do
|
138
|
+
# not provide a mask as described below.
|
139
|
+
#
|
140
|
+
# If a field mask is not present on update, the operation applies to
|
141
|
+
# all fields (as if a field mask of all fields has been specified).
|
142
|
+
# Note that in the presence of schema evolution, this may mean that
|
143
|
+
# fields the client does not know and has therefore not filled into
|
144
|
+
# the request will be reset to their default. If this is unwanted
|
145
|
+
# behavior, a specific service may require a client to always specify
|
146
|
+
# a field mask, producing an error if not.
|
147
|
+
#
|
148
|
+
# As with get operations, the location of the resource which
|
149
|
+
# describes the updated values in the request message depends on the
|
150
|
+
# operation kind. In any case, the effect of the field mask is
|
151
|
+
# required to be honored by the API.
|
152
|
+
#
|
153
|
+
# ## Considerations for HTTP REST
|
154
|
+
#
|
155
|
+
# The HTTP kind of an update operation which uses a field mask must
|
156
|
+
# be set to PATCH instead of PUT in order to satisfy HTTP semantics
|
157
|
+
# (PUT must only be used for full updates).
|
158
|
+
#
|
159
|
+
# # JSON Encoding of Field Masks
|
160
|
+
#
|
161
|
+
# In JSON, a field mask is encoded as a single string where paths are
|
162
|
+
# separated by a comma. Fields name in each path are converted
|
163
|
+
# to/from lower-camel naming conventions.
|
164
|
+
#
|
165
|
+
# As an example, consider the following message declarations:
|
166
|
+
#
|
167
|
+
# message Profile {
|
168
|
+
# User user = 1;
|
169
|
+
# Photo photo = 2;
|
170
|
+
# }
|
171
|
+
# message User {
|
172
|
+
# string display_name = 1;
|
173
|
+
# string address = 2;
|
174
|
+
# }
|
175
|
+
#
|
176
|
+
# In proto a field mask for `Profile` may look as such:
|
177
|
+
#
|
178
|
+
# mask {
|
179
|
+
# paths: "user.display_name"
|
180
|
+
# paths: "photo"
|
181
|
+
# }
|
182
|
+
#
|
183
|
+
# In JSON, the same mask is represented as below:
|
184
|
+
#
|
185
|
+
# {
|
186
|
+
# mask: "user.displayName,photo"
|
187
|
+
# }
|
188
|
+
#
|
189
|
+
# # Field Masks and Oneof Fields
|
190
|
+
#
|
191
|
+
# Field masks treat fields in oneofs just as regular fields. Consider the
|
192
|
+
# following message:
|
193
|
+
#
|
194
|
+
# message SampleMessage {
|
195
|
+
# oneof test_oneof {
|
196
|
+
# string name = 4;
|
197
|
+
# SubMessage sub_message = 9;
|
198
|
+
# }
|
199
|
+
# }
|
200
|
+
#
|
201
|
+
# The field mask can be:
|
202
|
+
#
|
203
|
+
# mask {
|
204
|
+
# paths: "name"
|
205
|
+
# }
|
206
|
+
#
|
207
|
+
# Or:
|
208
|
+
#
|
209
|
+
# mask {
|
210
|
+
# paths: "sub_message"
|
211
|
+
# }
|
212
|
+
#
|
213
|
+
# Note that oneof type names ("test_oneof" in this case) cannot be used in
|
214
|
+
# paths.
|
215
|
+
#
|
216
|
+
# ## Field Mask Verification
|
217
|
+
#
|
218
|
+
# The implementation of any API method which has a FieldMask type field in the
|
219
|
+
# request should verify the included field paths, and return an
|
220
|
+
# `INVALID_ARGUMENT` error if any path is unmappable.
|
221
|
+
# @!attribute [rw] paths
|
222
|
+
# @return [::Array<::String>]
|
223
|
+
# The set of field mask paths.
|
224
|
+
class FieldMask
|
225
|
+
include ::Google::Protobuf::MessageExts
|
226
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
227
|
+
end
|
228
|
+
end
|
229
|
+
end
|
@@ -0,0 +1,75 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Type
|
22
|
+
# Represents a textual expression in the Common Expression Language (CEL)
|
23
|
+
# syntax. CEL is a C-like expression language. The syntax and semantics of CEL
|
24
|
+
# are documented at https://github.com/google/cel-spec.
|
25
|
+
#
|
26
|
+
# Example (Comparison):
|
27
|
+
#
|
28
|
+
# title: "Summary size limit"
|
29
|
+
# description: "Determines if a summary is less than 100 chars"
|
30
|
+
# expression: "document.summary.size() < 100"
|
31
|
+
#
|
32
|
+
# Example (Equality):
|
33
|
+
#
|
34
|
+
# title: "Requestor is owner"
|
35
|
+
# description: "Determines if requestor is the document owner"
|
36
|
+
# expression: "document.owner == request.auth.claims.email"
|
37
|
+
#
|
38
|
+
# Example (Logic):
|
39
|
+
#
|
40
|
+
# title: "Public documents"
|
41
|
+
# description: "Determine whether the document should be publicly visible"
|
42
|
+
# expression: "document.type != 'private' && document.type != 'internal'"
|
43
|
+
#
|
44
|
+
# Example (Data Manipulation):
|
45
|
+
#
|
46
|
+
# title: "Notification string"
|
47
|
+
# description: "Create a notification string with a timestamp."
|
48
|
+
# expression: "'New message received at ' + string(document.create_time)"
|
49
|
+
#
|
50
|
+
# The exact variables and functions that may be referenced within an expression
|
51
|
+
# are determined by the service that evaluates it. See the service
|
52
|
+
# documentation for additional information.
|
53
|
+
# @!attribute [rw] expression
|
54
|
+
# @return [::String]
|
55
|
+
# Textual representation of an expression in Common Expression Language
|
56
|
+
# syntax.
|
57
|
+
# @!attribute [rw] title
|
58
|
+
# @return [::String]
|
59
|
+
# Optional. Title for the expression, i.e. a short string describing
|
60
|
+
# its purpose. This can be used e.g. in UIs which allow to enter the
|
61
|
+
# expression.
|
62
|
+
# @!attribute [rw] description
|
63
|
+
# @return [::String]
|
64
|
+
# Optional. Description of the expression. This is a longer text which
|
65
|
+
# describes the expression, e.g. when hovered over it in a UI.
|
66
|
+
# @!attribute [rw] location
|
67
|
+
# @return [::String]
|
68
|
+
# Optional. String indicating the location of the expression for error
|
69
|
+
# reporting, e.g. a file name and a position in the file.
|
70
|
+
class Expr
|
71
|
+
include ::Google::Protobuf::MessageExts
|
72
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
73
|
+
end
|
74
|
+
end
|
75
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-service_management-v1
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -44,6 +44,26 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '1.0'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: google-iam-v1
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - ">="
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.4'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: 2.a
|
57
|
+
type: :runtime
|
58
|
+
prerelease: false
|
59
|
+
version_requirements: !ruby/object:Gem::Requirement
|
60
|
+
requirements:
|
61
|
+
- - ">="
|
62
|
+
- !ruby/object:Gem::Version
|
63
|
+
version: '0.4'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: 2.a
|
47
67
|
- !ruby/object:Gem::Dependency
|
48
68
|
name: google-style
|
49
69
|
requirement: !ruby/object:Gem::Requirement
|
@@ -175,6 +195,7 @@ files:
|
|
175
195
|
- lib/google/api/servicemanagement/v1/servicemanager_pb.rb
|
176
196
|
- lib/google/api/servicemanagement/v1/servicemanager_services_pb.rb
|
177
197
|
- lib/google/cloud/service_management/v1.rb
|
198
|
+
- lib/google/cloud/service_management/v1/bindings_override.rb
|
178
199
|
- lib/google/cloud/service_management/v1/rest.rb
|
179
200
|
- lib/google/cloud/service_management/v1/service_manager.rb
|
180
201
|
- lib/google/cloud/service_management/v1/service_manager/client.rb
|
@@ -203,6 +224,7 @@ files:
|
|
203
224
|
- proto_docs/google/api/metric.rb
|
204
225
|
- proto_docs/google/api/monitored_resource.rb
|
205
226
|
- proto_docs/google/api/monitoring.rb
|
227
|
+
- proto_docs/google/api/policy.rb
|
206
228
|
- proto_docs/google/api/quota.rb
|
207
229
|
- proto_docs/google/api/resource.rb
|
208
230
|
- proto_docs/google/api/service.rb
|
@@ -216,12 +238,14 @@ files:
|
|
216
238
|
- proto_docs/google/protobuf/api.rb
|
217
239
|
- proto_docs/google/protobuf/duration.rb
|
218
240
|
- proto_docs/google/protobuf/empty.rb
|
241
|
+
- proto_docs/google/protobuf/field_mask.rb
|
219
242
|
- proto_docs/google/protobuf/source_context.rb
|
220
243
|
- proto_docs/google/protobuf/struct.rb
|
221
244
|
- proto_docs/google/protobuf/timestamp.rb
|
222
245
|
- proto_docs/google/protobuf/type.rb
|
223
246
|
- proto_docs/google/protobuf/wrappers.rb
|
224
247
|
- proto_docs/google/rpc/status.rb
|
248
|
+
- proto_docs/google/type/expr.rb
|
225
249
|
homepage: https://github.com/googleapis/google-cloud-ruby
|
226
250
|
licenses:
|
227
251
|
- Apache-2.0
|