google-cloud-app_engine-v1 0.6.1 → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/appengine/v1/app_yaml_pb.rb +25 -103
- data/lib/google/appengine/v1/appengine_pb.rb +33 -186
- data/lib/google/appengine/v1/application_pb.rb +25 -45
- data/lib/google/appengine/v1/audit_data_pb.rb +25 -13
- data/lib/google/appengine/v1/certificate_pb.rb +25 -29
- data/lib/google/appengine/v1/deploy_pb.rb +25 -23
- data/lib/google/appengine/v1/deployed_files_pb.rb +25 -2
- data/lib/google/appengine/v1/domain_mapping_pb.rb +24 -28
- data/lib/google/appengine/v1/domain_pb.rb +24 -5
- data/lib/google/appengine/v1/firewall_pb.rb +24 -12
- data/lib/google/appengine/v1/instance_pb.rb +25 -35
- data/lib/google/appengine/v1/location_pb.rb +24 -6
- data/lib/google/appengine/v1/network_settings_pb.rb +24 -10
- data/lib/google/appengine/v1/operation_pb.rb +25 -16
- data/lib/google/appengine/v1/service_pb.rb +25 -18
- data/lib/google/appengine/v1/version_pb.rb +28 -153
- data/lib/google/cloud/app_engine/v1/applications/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/applications/operations.rb +13 -2
- data/lib/google/cloud/app_engine/v1/applications/rest/client.rb +89 -2
- data/lib/google/cloud/app_engine/v1/applications/rest/operations.rb +82 -5
- data/lib/google/cloud/app_engine/v1/applications/rest/service_stub.rb +4 -4
- data/lib/google/cloud/app_engine/v1/authorized_certificates/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/authorized_certificates/rest/client.rb +88 -2
- data/lib/google/cloud/app_engine/v1/authorized_certificates/rest/service_stub.rb +5 -5
- data/lib/google/cloud/app_engine/v1/authorized_domains/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/authorized_domains/rest/client.rb +24 -2
- data/lib/google/cloud/app_engine/v1/authorized_domains/rest/service_stub.rb +1 -1
- data/lib/google/cloud/app_engine/v1/domain_mappings/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/domain_mappings/operations.rb +13 -2
- data/lib/google/cloud/app_engine/v1/domain_mappings/rest/client.rb +109 -2
- data/lib/google/cloud/app_engine/v1/domain_mappings/rest/operations.rb +82 -5
- data/lib/google/cloud/app_engine/v1/domain_mappings/rest/service_stub.rb +5 -5
- data/lib/google/cloud/app_engine/v1/firewall/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/firewall/rest/client.rb +104 -2
- data/lib/google/cloud/app_engine/v1/firewall/rest/service_stub.rb +6 -6
- data/lib/google/cloud/app_engine/v1/instances/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/instances/operations.rb +13 -2
- data/lib/google/cloud/app_engine/v1/instances/rest/client.rb +86 -2
- data/lib/google/cloud/app_engine/v1/instances/rest/operations.rb +82 -5
- data/lib/google/cloud/app_engine/v1/instances/rest/service_stub.rb +4 -4
- data/lib/google/cloud/app_engine/v1/services/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/services/operations.rb +13 -2
- data/lib/google/cloud/app_engine/v1/services/rest/client.rb +86 -2
- data/lib/google/cloud/app_engine/v1/services/rest/operations.rb +82 -5
- data/lib/google/cloud/app_engine/v1/services/rest/service_stub.rb +4 -4
- data/lib/google/cloud/app_engine/v1/version.rb +1 -1
- data/lib/google/cloud/app_engine/v1/versions/client.rb +14 -3
- data/lib/google/cloud/app_engine/v1/versions/operations.rb +13 -2
- data/lib/google/cloud/app_engine/v1/versions/rest/client.rb +109 -2
- data/lib/google/cloud/app_engine/v1/versions/rest/operations.rb +82 -5
- data/lib/google/cloud/app_engine/v1/versions/rest/service_stub.rb +5 -5
- data/proto_docs/google/api/client.rb +10 -1
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/protobuf/any.rb +7 -4
- data/proto_docs/google/protobuf/timestamp.rb +1 -3
- metadata +5 -5
@@ -1,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
3
|
# source: google/appengine/v1/version.proto
|
3
4
|
|
@@ -8,161 +9,35 @@ require 'google/appengine/v1/deploy_pb'
|
|
8
9
|
require 'google/protobuf/duration_pb'
|
9
10
|
require 'google/protobuf/timestamp_pb'
|
10
11
|
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
repeated :error_handlers, :message, 101, "google.appengine.v1.ErrorHandler"
|
37
|
-
repeated :libraries, :message, 102, "google.appengine.v1.Library"
|
38
|
-
optional :api_config, :message, 103, "google.appengine.v1.ApiConfigHandler"
|
39
|
-
map :env_variables, :string, :string, 104
|
40
|
-
map :build_env_variables, :string, :string, 125
|
41
|
-
optional :default_expiration, :message, 105, "google.protobuf.Duration"
|
42
|
-
optional :health_check, :message, 106, "google.appengine.v1.HealthCheck"
|
43
|
-
optional :readiness_check, :message, 112, "google.appengine.v1.ReadinessCheck"
|
44
|
-
optional :liveness_check, :message, 113, "google.appengine.v1.LivenessCheck"
|
45
|
-
optional :nobuild_files_regex, :string, 107
|
46
|
-
optional :deployment, :message, 108, "google.appengine.v1.Deployment"
|
47
|
-
optional :version_url, :string, 109
|
48
|
-
optional :endpoints_api_service, :message, 110, "google.appengine.v1.EndpointsApiService"
|
49
|
-
optional :entrypoint, :message, 122, "google.appengine.v1.Entrypoint"
|
50
|
-
optional :vpc_access_connector, :message, 121, "google.appengine.v1.VpcAccessConnector"
|
51
|
-
oneof :scaling do
|
52
|
-
optional :automatic_scaling, :message, 3, "google.appengine.v1.AutomaticScaling"
|
53
|
-
optional :basic_scaling, :message, 4, "google.appengine.v1.BasicScaling"
|
54
|
-
optional :manual_scaling, :message, 5, "google.appengine.v1.ManualScaling"
|
55
|
-
end
|
56
|
-
end
|
57
|
-
add_message "google.appengine.v1.EndpointsApiService" do
|
58
|
-
optional :name, :string, 1
|
59
|
-
optional :config_id, :string, 2
|
60
|
-
optional :rollout_strategy, :enum, 3, "google.appengine.v1.EndpointsApiService.RolloutStrategy"
|
61
|
-
optional :disable_trace_sampling, :bool, 4
|
62
|
-
end
|
63
|
-
add_enum "google.appengine.v1.EndpointsApiService.RolloutStrategy" do
|
64
|
-
value :UNSPECIFIED_ROLLOUT_STRATEGY, 0
|
65
|
-
value :FIXED, 1
|
66
|
-
value :MANAGED, 2
|
67
|
-
end
|
68
|
-
add_message "google.appengine.v1.AutomaticScaling" do
|
69
|
-
optional :cool_down_period, :message, 1, "google.protobuf.Duration"
|
70
|
-
optional :cpu_utilization, :message, 2, "google.appengine.v1.CpuUtilization"
|
71
|
-
optional :max_concurrent_requests, :int32, 3
|
72
|
-
optional :max_idle_instances, :int32, 4
|
73
|
-
optional :max_total_instances, :int32, 5
|
74
|
-
optional :max_pending_latency, :message, 6, "google.protobuf.Duration"
|
75
|
-
optional :min_idle_instances, :int32, 7
|
76
|
-
optional :min_total_instances, :int32, 8
|
77
|
-
optional :min_pending_latency, :message, 9, "google.protobuf.Duration"
|
78
|
-
optional :request_utilization, :message, 10, "google.appengine.v1.RequestUtilization"
|
79
|
-
optional :disk_utilization, :message, 11, "google.appengine.v1.DiskUtilization"
|
80
|
-
optional :network_utilization, :message, 12, "google.appengine.v1.NetworkUtilization"
|
81
|
-
optional :standard_scheduler_settings, :message, 20, "google.appengine.v1.StandardSchedulerSettings"
|
82
|
-
end
|
83
|
-
add_message "google.appengine.v1.BasicScaling" do
|
84
|
-
optional :idle_timeout, :message, 1, "google.protobuf.Duration"
|
85
|
-
optional :max_instances, :int32, 2
|
86
|
-
end
|
87
|
-
add_message "google.appengine.v1.ManualScaling" do
|
88
|
-
optional :instances, :int32, 1
|
89
|
-
end
|
90
|
-
add_message "google.appengine.v1.CpuUtilization" do
|
91
|
-
optional :aggregation_window_length, :message, 1, "google.protobuf.Duration"
|
92
|
-
optional :target_utilization, :double, 2
|
93
|
-
end
|
94
|
-
add_message "google.appengine.v1.RequestUtilization" do
|
95
|
-
optional :target_request_count_per_second, :int32, 1
|
96
|
-
optional :target_concurrent_requests, :int32, 2
|
97
|
-
end
|
98
|
-
add_message "google.appengine.v1.DiskUtilization" do
|
99
|
-
optional :target_write_bytes_per_second, :int32, 14
|
100
|
-
optional :target_write_ops_per_second, :int32, 15
|
101
|
-
optional :target_read_bytes_per_second, :int32, 16
|
102
|
-
optional :target_read_ops_per_second, :int32, 17
|
103
|
-
end
|
104
|
-
add_message "google.appengine.v1.NetworkUtilization" do
|
105
|
-
optional :target_sent_bytes_per_second, :int32, 1
|
106
|
-
optional :target_sent_packets_per_second, :int32, 11
|
107
|
-
optional :target_received_bytes_per_second, :int32, 12
|
108
|
-
optional :target_received_packets_per_second, :int32, 13
|
109
|
-
end
|
110
|
-
add_message "google.appengine.v1.StandardSchedulerSettings" do
|
111
|
-
optional :target_cpu_utilization, :double, 1
|
112
|
-
optional :target_throughput_utilization, :double, 2
|
113
|
-
optional :min_instances, :int32, 3
|
114
|
-
optional :max_instances, :int32, 4
|
115
|
-
end
|
116
|
-
add_message "google.appengine.v1.Network" do
|
117
|
-
repeated :forwarded_ports, :string, 1
|
118
|
-
optional :instance_tag, :string, 2
|
119
|
-
optional :name, :string, 3
|
120
|
-
optional :subnetwork_name, :string, 4
|
121
|
-
optional :session_affinity, :bool, 5
|
122
|
-
end
|
123
|
-
add_message "google.appengine.v1.Volume" do
|
124
|
-
optional :name, :string, 1
|
125
|
-
optional :volume_type, :string, 2
|
126
|
-
optional :size_gb, :double, 3
|
127
|
-
end
|
128
|
-
add_message "google.appengine.v1.Resources" do
|
129
|
-
optional :cpu, :double, 1
|
130
|
-
optional :disk_gb, :double, 2
|
131
|
-
optional :memory_gb, :double, 3
|
132
|
-
repeated :volumes, :message, 4, "google.appengine.v1.Volume"
|
133
|
-
optional :kms_key_reference, :string, 5
|
134
|
-
end
|
135
|
-
add_message "google.appengine.v1.VpcAccessConnector" do
|
136
|
-
optional :name, :string, 1
|
137
|
-
optional :egress_setting, :enum, 2, "google.appengine.v1.VpcAccessConnector.EgressSetting"
|
138
|
-
end
|
139
|
-
add_enum "google.appengine.v1.VpcAccessConnector.EgressSetting" do
|
140
|
-
value :EGRESS_SETTING_UNSPECIFIED, 0
|
141
|
-
value :ALL_TRAFFIC, 1
|
142
|
-
value :PRIVATE_IP_RANGES, 2
|
143
|
-
end
|
144
|
-
add_message "google.appengine.v1.Entrypoint" do
|
145
|
-
oneof :command do
|
146
|
-
optional :shell, :string, 1
|
147
|
-
end
|
148
|
-
end
|
149
|
-
add_enum "google.appengine.v1.InboundServiceType" do
|
150
|
-
value :INBOUND_SERVICE_UNSPECIFIED, 0
|
151
|
-
value :INBOUND_SERVICE_MAIL, 1
|
152
|
-
value :INBOUND_SERVICE_MAIL_BOUNCE, 2
|
153
|
-
value :INBOUND_SERVICE_XMPP_ERROR, 3
|
154
|
-
value :INBOUND_SERVICE_XMPP_MESSAGE, 4
|
155
|
-
value :INBOUND_SERVICE_XMPP_SUBSCRIBE, 5
|
156
|
-
value :INBOUND_SERVICE_XMPP_PRESENCE, 6
|
157
|
-
value :INBOUND_SERVICE_CHANNEL_PRESENCE, 7
|
158
|
-
value :INBOUND_SERVICE_WARMUP, 9
|
159
|
-
end
|
160
|
-
add_enum "google.appengine.v1.ServingStatus" do
|
161
|
-
value :SERVING_STATUS_UNSPECIFIED, 0
|
162
|
-
value :SERVING, 1
|
163
|
-
value :STOPPED, 2
|
12
|
+
|
13
|
+
descriptor_data = "\n!google/appengine/v1/version.proto\x12\x13google.appengine.v1\x1a\"google/appengine/v1/app_yaml.proto\x1a google/appengine/v1/deploy.proto\x1a\x1egoogle/protobuf/duration.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\x8f\x0f\n\x07Version\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\n\n\x02id\x18\x02 \x01(\t\x12\x42\n\x11\x61utomatic_scaling\x18\x03 \x01(\x0b\x32%.google.appengine.v1.AutomaticScalingH\x00\x12:\n\rbasic_scaling\x18\x04 \x01(\x0b\x32!.google.appengine.v1.BasicScalingH\x00\x12<\n\x0emanual_scaling\x18\x05 \x01(\x0b\x32\".google.appengine.v1.ManualScalingH\x00\x12\x41\n\x10inbound_services\x18\x06 \x03(\x0e\x32\'.google.appengine.v1.InboundServiceType\x12\x16\n\x0einstance_class\x18\x07 \x01(\t\x12-\n\x07network\x18\x08 \x01(\x0b\x32\x1c.google.appengine.v1.Network\x12\r\n\x05zones\x18v \x03(\t\x12\x31\n\tresources\x18\t \x01(\x0b\x32\x1e.google.appengine.v1.Resources\x12\x0f\n\x07runtime\x18\n \x01(\t\x12\x17\n\x0fruntime_channel\x18u \x01(\t\x12\x12\n\nthreadsafe\x18\x0b \x01(\x08\x12\n\n\x02vm\x18\x0c \x01(\x08\x12\x18\n\x0f\x61pp_engine_apis\x18\x80\x01 \x01(\x08\x12\x45\n\rbeta_settings\x18\r \x03(\x0b\x32..google.appengine.v1.Version.BetaSettingsEntry\x12\x0b\n\x03\x65nv\x18\x0e \x01(\t\x12:\n\x0eserving_status\x18\x0f \x01(\x0e\x32\".google.appengine.v1.ServingStatus\x12\x12\n\ncreated_by\x18\x10 \x01(\t\x12/\n\x0b\x63reate_time\x18\x11 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x18\n\x10\x64isk_usage_bytes\x18\x12 \x01(\x03\x12\x1b\n\x13runtime_api_version\x18\x15 \x01(\t\x12$\n\x1cruntime_main_executable_path\x18\x16 \x01(\t\x12\x17\n\x0fservice_account\x18\x7f \x01(\t\x12-\n\x08handlers\x18\x64 \x03(\x0b\x32\x1b.google.appengine.v1.UrlMap\x12\x39\n\x0e\x65rror_handlers\x18\x65 \x03(\x0b\x32!.google.appengine.v1.ErrorHandler\x12/\n\tlibraries\x18\x66 \x03(\x0b\x32\x1c.google.appengine.v1.Library\x12\x39\n\napi_config\x18g \x01(\x0b\x32%.google.appengine.v1.ApiConfigHandler\x12\x45\n\renv_variables\x18h \x03(\x0b\x32..google.appengine.v1.Version.EnvVariablesEntry\x12P\n\x13\x62uild_env_variables\x18} \x03(\x0b\x32\x33.google.appengine.v1.Version.BuildEnvVariablesEntry\x12\x35\n\x12\x64\x65\x66\x61ult_expiration\x18i \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x36\n\x0chealth_check\x18j \x01(\x0b\x32 .google.appengine.v1.HealthCheck\x12<\n\x0freadiness_check\x18p \x01(\x0b\x32#.google.appengine.v1.ReadinessCheck\x12:\n\x0eliveness_check\x18q \x01(\x0b\x32\".google.appengine.v1.LivenessCheck\x12\x1b\n\x13nobuild_files_regex\x18k \x01(\t\x12\x33\n\ndeployment\x18l \x01(\x0b\x32\x1f.google.appengine.v1.Deployment\x12\x13\n\x0bversion_url\x18m \x01(\t\x12G\n\x15\x65ndpoints_api_service\x18n \x01(\x0b\x32(.google.appengine.v1.EndpointsApiService\x12\x33\n\nentrypoint\x18z \x01(\x0b\x32\x1f.google.appengine.v1.Entrypoint\x12\x45\n\x14vpc_access_connector\x18y \x01(\x0b\x32\'.google.appengine.v1.VpcAccessConnector\x1a\x33\n\x11\x42\x65taSettingsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x33\n\x11\x45nvVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x38\n\x16\x42uildEnvVariablesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x42\t\n\x07scaling\"\xf7\x01\n\x13\x45ndpointsApiService\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x11\n\tconfig_id\x18\x02 \x01(\t\x12R\n\x10rollout_strategy\x18\x03 \x01(\x0e\x32\x38.google.appengine.v1.EndpointsApiService.RolloutStrategy\x12\x1e\n\x16\x64isable_trace_sampling\x18\x04 \x01(\x08\"K\n\x0fRolloutStrategy\x12 \n\x1cUNSPECIFIED_ROLLOUT_STRATEGY\x10\x00\x12\t\n\x05\x46IXED\x10\x01\x12\x0b\n\x07MANAGED\x10\x02\"\xa9\x05\n\x10\x41utomaticScaling\x12\x33\n\x10\x63ool_down_period\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12<\n\x0f\x63pu_utilization\x18\x02 \x01(\x0b\x32#.google.appengine.v1.CpuUtilization\x12\x1f\n\x17max_concurrent_requests\x18\x03 \x01(\x05\x12\x1a\n\x12max_idle_instances\x18\x04 \x01(\x05\x12\x1b\n\x13max_total_instances\x18\x05 \x01(\x05\x12\x36\n\x13max_pending_latency\x18\x06 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\x12min_idle_instances\x18\x07 \x01(\x05\x12\x1b\n\x13min_total_instances\x18\x08 \x01(\x05\x12\x36\n\x13min_pending_latency\x18\t \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x44\n\x13request_utilization\x18\n \x01(\x0b\x32\'.google.appengine.v1.RequestUtilization\x12>\n\x10\x64isk_utilization\x18\x0b \x01(\x0b\x32$.google.appengine.v1.DiskUtilization\x12\x44\n\x13network_utilization\x18\x0c \x01(\x0b\x32\'.google.appengine.v1.NetworkUtilization\x12S\n\x1bstandard_scheduler_settings\x18\x14 \x01(\x0b\x32..google.appengine.v1.StandardSchedulerSettings\"V\n\x0c\x42\x61sicScaling\x12/\n\x0cidle_timeout\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x15\n\rmax_instances\x18\x02 \x01(\x05\"\"\n\rManualScaling\x12\x11\n\tinstances\x18\x01 \x01(\x05\"j\n\x0e\x43puUtilization\x12<\n\x19\x61ggregation_window_length\x18\x01 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\x12target_utilization\x18\x02 \x01(\x01\"a\n\x12RequestUtilization\x12\'\n\x1ftarget_request_count_per_second\x18\x01 \x01(\x05\x12\"\n\x1atarget_concurrent_requests\x18\x02 \x01(\x05\"\xa7\x01\n\x0f\x44iskUtilization\x12%\n\x1dtarget_write_bytes_per_second\x18\x0e \x01(\x05\x12#\n\x1btarget_write_ops_per_second\x18\x0f \x01(\x05\x12$\n\x1ctarget_read_bytes_per_second\x18\x10 \x01(\x05\x12\"\n\x1atarget_read_ops_per_second\x18\x11 \x01(\x05\"\xb8\x01\n\x12NetworkUtilization\x12$\n\x1ctarget_sent_bytes_per_second\x18\x01 \x01(\x05\x12&\n\x1etarget_sent_packets_per_second\x18\x0b \x01(\x05\x12(\n target_received_bytes_per_second\x18\x0c \x01(\x05\x12*\n\"target_received_packets_per_second\x18\r \x01(\x05\"\x90\x01\n\x19StandardSchedulerSettings\x12\x1e\n\x16target_cpu_utilization\x18\x01 \x01(\x01\x12%\n\x1dtarget_throughput_utilization\x18\x02 \x01(\x01\x12\x15\n\rmin_instances\x18\x03 \x01(\x05\x12\x15\n\rmax_instances\x18\x04 \x01(\x05\"y\n\x07Network\x12\x17\n\x0f\x66orwarded_ports\x18\x01 \x03(\t\x12\x14\n\x0cinstance_tag\x18\x02 \x01(\t\x12\x0c\n\x04name\x18\x03 \x01(\t\x12\x17\n\x0fsubnetwork_name\x18\x04 \x01(\t\x12\x18\n\x10session_affinity\x18\x05 \x01(\x08\"<\n\x06Volume\x12\x0c\n\x04name\x18\x01 \x01(\t\x12\x13\n\x0bvolume_type\x18\x02 \x01(\t\x12\x0f\n\x07size_gb\x18\x03 \x01(\x01\"\x85\x01\n\tResources\x12\x0b\n\x03\x63pu\x18\x01 \x01(\x01\x12\x0f\n\x07\x64isk_gb\x18\x02 \x01(\x01\x12\x11\n\tmemory_gb\x18\x03 \x01(\x01\x12,\n\x07volumes\x18\x04 \x03(\x0b\x32\x1b.google.appengine.v1.Volume\x12\x19\n\x11kms_key_reference\x18\x05 \x01(\t\"\xca\x01\n\x12VpcAccessConnector\x12\x0c\n\x04name\x18\x01 \x01(\t\x12M\n\x0e\x65gress_setting\x18\x02 \x01(\x0e\x32\x35.google.appengine.v1.VpcAccessConnector.EgressSetting\"W\n\rEgressSetting\x12\x1e\n\x1a\x45GRESS_SETTING_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x41LL_TRAFFIC\x10\x01\x12\x15\n\x11PRIVATE_IP_RANGES\x10\x02\"(\n\nEntrypoint\x12\x0f\n\x05shell\x18\x01 \x01(\tH\x00\x42\t\n\x07\x63ommand*\xbb\x02\n\x12InboundServiceType\x12\x1f\n\x1bINBOUND_SERVICE_UNSPECIFIED\x10\x00\x12\x18\n\x14INBOUND_SERVICE_MAIL\x10\x01\x12\x1f\n\x1bINBOUND_SERVICE_MAIL_BOUNCE\x10\x02\x12\x1e\n\x1aINBOUND_SERVICE_XMPP_ERROR\x10\x03\x12 \n\x1cINBOUND_SERVICE_XMPP_MESSAGE\x10\x04\x12\"\n\x1eINBOUND_SERVICE_XMPP_SUBSCRIBE\x10\x05\x12!\n\x1dINBOUND_SERVICE_XMPP_PRESENCE\x10\x06\x12$\n INBOUND_SERVICE_CHANNEL_PRESENCE\x10\x07\x12\x1a\n\x16INBOUND_SERVICE_WARMUP\x10\t*I\n\rServingStatus\x12\x1e\n\x1aSERVING_STATUS_UNSPECIFIED\x10\x00\x12\x0b\n\x07SERVING\x10\x01\x12\x0b\n\x07STOPPED\x10\x02\x42\xbd\x01\n\x17\x63om.google.appengine.v1B\x0cVersionProtoP\x01Z;cloud.google.com/go/appengine/apiv1/appenginepb;appenginepb\xaa\x02\x19Google.Cloud.AppEngine.V1\xca\x02\x19Google\\Cloud\\AppEngine\\V1\xea\x02\x1cGoogle::Cloud::AppEngine::V1b\x06proto3"
|
14
|
+
|
15
|
+
pool = Google::Protobuf::DescriptorPool.generated_pool
|
16
|
+
|
17
|
+
begin
|
18
|
+
pool.add_serialized_file(descriptor_data)
|
19
|
+
rescue TypeError => e
|
20
|
+
# Compatibility code: will be removed in the next major version.
|
21
|
+
require 'google/protobuf/descriptor_pb'
|
22
|
+
parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
|
23
|
+
parsed.clear_dependency
|
24
|
+
serialized = parsed.class.encode(parsed)
|
25
|
+
file = pool.add_serialized_file(serialized)
|
26
|
+
warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
|
27
|
+
imports = [
|
28
|
+
["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
|
29
|
+
["google.appengine.v1.UrlMap", "google/appengine/v1/app_yaml.proto"],
|
30
|
+
["google.protobuf.Duration", "google/protobuf/duration.proto"],
|
31
|
+
["google.appengine.v1.Deployment", "google/appengine/v1/deploy.proto"],
|
32
|
+
]
|
33
|
+
imports.each do |type_name, expected_filename|
|
34
|
+
import_file = pool.lookup(type_name).file_descriptor
|
35
|
+
if import_file.name != expected_filename
|
36
|
+
warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
|
164
37
|
end
|
165
38
|
end
|
39
|
+
warn "Each proto file must use a consistent fully-qualified name."
|
40
|
+
warn "This will become an error in the next major version."
|
166
41
|
end
|
167
42
|
|
168
43
|
module Google
|
@@ -121,7 +121,7 @@ module Google
|
|
121
121
|
credentials = @config.credentials
|
122
122
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
123
123
|
# but only if the default endpoint does not have a region prefix.
|
124
|
-
enable_self_signed_jwt = @config.endpoint ==
|
124
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
125
125
|
!@config.endpoint.split(".").first.include?("-")
|
126
126
|
credentials ||= Credentials.default scope: @config.scope,
|
127
127
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -142,7 +142,8 @@ module Google
|
|
142
142
|
credentials: credentials,
|
143
143
|
endpoint: @config.endpoint,
|
144
144
|
channel_args: @config.channel_args,
|
145
|
-
interceptors: @config.interceptors
|
145
|
+
interceptors: @config.interceptors,
|
146
|
+
channel_pool_config: @config.channel_pool
|
146
147
|
)
|
147
148
|
end
|
148
149
|
|
@@ -617,7 +618,9 @@ module Google
|
|
617
618
|
class Configuration
|
618
619
|
extend ::Gapic::Config
|
619
620
|
|
620
|
-
|
621
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
622
|
+
|
623
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
621
624
|
config_attr :credentials, nil do |value|
|
622
625
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
623
626
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -652,6 +655,14 @@ module Google
|
|
652
655
|
end
|
653
656
|
end
|
654
657
|
|
658
|
+
##
|
659
|
+
# Configuration for the channel pool
|
660
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
661
|
+
#
|
662
|
+
def channel_pool
|
663
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
664
|
+
end
|
665
|
+
|
655
666
|
##
|
656
667
|
# Configuration RPC class for the Applications API.
|
657
668
|
#
|
@@ -93,7 +93,8 @@ module Google
|
|
93
93
|
credentials: credentials,
|
94
94
|
endpoint: @config.endpoint,
|
95
95
|
channel_args: @config.channel_args,
|
96
|
-
interceptors: @config.interceptors
|
96
|
+
interceptors: @config.interceptors,
|
97
|
+
channel_pool_config: @config.channel_pool
|
97
98
|
)
|
98
99
|
|
99
100
|
# Used by an LRO wrapper for some methods of this service
|
@@ -664,7 +665,9 @@ module Google
|
|
664
665
|
class Configuration
|
665
666
|
extend ::Gapic::Config
|
666
667
|
|
667
|
-
|
668
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
669
|
+
|
670
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
668
671
|
config_attr :credentials, nil do |value|
|
669
672
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
670
673
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -699,6 +702,14 @@ module Google
|
|
699
702
|
end
|
700
703
|
end
|
701
704
|
|
705
|
+
##
|
706
|
+
# Configuration for the channel pool
|
707
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
708
|
+
#
|
709
|
+
def channel_pool
|
710
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
711
|
+
end
|
712
|
+
|
702
713
|
##
|
703
714
|
# Configuration RPC class for the Operations API.
|
704
715
|
#
|
@@ -117,7 +117,7 @@ module Google
|
|
117
117
|
credentials = @config.credentials
|
118
118
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
119
119
|
# but only if the default endpoint does not have a region prefix.
|
120
|
-
enable_self_signed_jwt = @config.endpoint ==
|
120
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
121
121
|
!@config.endpoint.split(".").first.include?("-")
|
122
122
|
credentials ||= Credentials.default scope: @config.scope,
|
123
123
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -173,6 +173,22 @@ module Google
|
|
173
173
|
# @return [::Google::Cloud::AppEngine::V1::Application]
|
174
174
|
#
|
175
175
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
176
|
+
#
|
177
|
+
# @example Basic example
|
178
|
+
# require "google/cloud/app_engine/v1"
|
179
|
+
#
|
180
|
+
# # Create a client object. The client can be reused for multiple calls.
|
181
|
+
# client = Google::Cloud::AppEngine::V1::Applications::Rest::Client.new
|
182
|
+
#
|
183
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
184
|
+
# request = Google::Cloud::AppEngine::V1::GetApplicationRequest.new
|
185
|
+
#
|
186
|
+
# # Call the get_application method.
|
187
|
+
# result = client.get_application request
|
188
|
+
#
|
189
|
+
# # The returned object is of type Google::Cloud::AppEngine::V1::Application.
|
190
|
+
# p result
|
191
|
+
#
|
176
192
|
def get_application request, options = nil
|
177
193
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
178
194
|
|
@@ -241,6 +257,29 @@ module Google
|
|
241
257
|
# @return [::Gapic::Operation]
|
242
258
|
#
|
243
259
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
260
|
+
#
|
261
|
+
# @example Basic example
|
262
|
+
# require "google/cloud/app_engine/v1"
|
263
|
+
#
|
264
|
+
# # Create a client object. The client can be reused for multiple calls.
|
265
|
+
# client = Google::Cloud::AppEngine::V1::Applications::Rest::Client.new
|
266
|
+
#
|
267
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
268
|
+
# request = Google::Cloud::AppEngine::V1::CreateApplicationRequest.new
|
269
|
+
#
|
270
|
+
# # Call the create_application method.
|
271
|
+
# result = client.create_application request
|
272
|
+
#
|
273
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
274
|
+
# # check the status of an operation, cancel it, or wait for results.
|
275
|
+
# # Here is how to wait for a response.
|
276
|
+
# result.wait_until_done! timeout: 60
|
277
|
+
# if result.response?
|
278
|
+
# p result.response
|
279
|
+
# else
|
280
|
+
# puts "No response received."
|
281
|
+
# end
|
282
|
+
#
|
244
283
|
def create_application request, options = nil
|
245
284
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
246
285
|
|
@@ -313,6 +352,29 @@ module Google
|
|
313
352
|
# @return [::Gapic::Operation]
|
314
353
|
#
|
315
354
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
355
|
+
#
|
356
|
+
# @example Basic example
|
357
|
+
# require "google/cloud/app_engine/v1"
|
358
|
+
#
|
359
|
+
# # Create a client object. The client can be reused for multiple calls.
|
360
|
+
# client = Google::Cloud::AppEngine::V1::Applications::Rest::Client.new
|
361
|
+
#
|
362
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
363
|
+
# request = Google::Cloud::AppEngine::V1::UpdateApplicationRequest.new
|
364
|
+
#
|
365
|
+
# # Call the update_application method.
|
366
|
+
# result = client.update_application request
|
367
|
+
#
|
368
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
369
|
+
# # check the status of an operation, cancel it, or wait for results.
|
370
|
+
# # Here is how to wait for a response.
|
371
|
+
# result.wait_until_done! timeout: 60
|
372
|
+
# if result.response?
|
373
|
+
# p result.response
|
374
|
+
# else
|
375
|
+
# puts "No response received."
|
376
|
+
# end
|
377
|
+
#
|
316
378
|
def update_application request, options = nil
|
317
379
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
318
380
|
|
@@ -385,6 +447,29 @@ module Google
|
|
385
447
|
# @return [::Gapic::Operation]
|
386
448
|
#
|
387
449
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
450
|
+
#
|
451
|
+
# @example Basic example
|
452
|
+
# require "google/cloud/app_engine/v1"
|
453
|
+
#
|
454
|
+
# # Create a client object. The client can be reused for multiple calls.
|
455
|
+
# client = Google::Cloud::AppEngine::V1::Applications::Rest::Client.new
|
456
|
+
#
|
457
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
458
|
+
# request = Google::Cloud::AppEngine::V1::RepairApplicationRequest.new
|
459
|
+
#
|
460
|
+
# # Call the repair_application method.
|
461
|
+
# result = client.repair_application request
|
462
|
+
#
|
463
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
464
|
+
# # check the status of an operation, cancel it, or wait for results.
|
465
|
+
# # Here is how to wait for a response.
|
466
|
+
# result.wait_until_done! timeout: 60
|
467
|
+
# if result.response?
|
468
|
+
# p result.response
|
469
|
+
# else
|
470
|
+
# puts "No response received."
|
471
|
+
# end
|
472
|
+
#
|
388
473
|
def repair_application request, options = nil
|
389
474
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
390
475
|
|
@@ -494,7 +579,9 @@ module Google
|
|
494
579
|
class Configuration
|
495
580
|
extend ::Gapic::Config
|
496
581
|
|
497
|
-
|
582
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
583
|
+
|
584
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
498
585
|
config_attr :credentials, nil do |value|
|
499
586
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
500
587
|
allowed.any? { |klass| klass === value }
|
@@ -136,6 +136,26 @@ module Google
|
|
136
136
|
# @return [::Gapic::Operation]
|
137
137
|
#
|
138
138
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
139
|
+
#
|
140
|
+
# @example Basic example
|
141
|
+
# require "google/longrunning"
|
142
|
+
#
|
143
|
+
# # Create a client object. The client can be reused for multiple calls.
|
144
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
145
|
+
#
|
146
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
147
|
+
# request = Google::Longrunning::ListOperationsRequest.new
|
148
|
+
#
|
149
|
+
# # Call the list_operations method.
|
150
|
+
# result = client.list_operations request
|
151
|
+
#
|
152
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
153
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
154
|
+
# result.each do |item|
|
155
|
+
# # Each element is of type ::Google::Longrunning::Operation.
|
156
|
+
# p item
|
157
|
+
# end
|
158
|
+
#
|
139
159
|
def list_operations request, options = nil
|
140
160
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
141
161
|
|
@@ -201,6 +221,29 @@ module Google
|
|
201
221
|
# @return [::Gapic::Operation]
|
202
222
|
#
|
203
223
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
224
|
+
#
|
225
|
+
# @example Basic example
|
226
|
+
# require "google/longrunning"
|
227
|
+
#
|
228
|
+
# # Create a client object. The client can be reused for multiple calls.
|
229
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
230
|
+
#
|
231
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
232
|
+
# request = Google::Longrunning::GetOperationRequest.new
|
233
|
+
#
|
234
|
+
# # Call the get_operation method.
|
235
|
+
# result = client.get_operation request
|
236
|
+
#
|
237
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
238
|
+
# # check the status of an operation, cancel it, or wait for results.
|
239
|
+
# # Here is how to wait for a response.
|
240
|
+
# result.wait_until_done! timeout: 60
|
241
|
+
# if result.response?
|
242
|
+
# p result.response
|
243
|
+
# else
|
244
|
+
# puts "No response received."
|
245
|
+
# end
|
246
|
+
#
|
204
247
|
def get_operation request, options = nil
|
205
248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
206
249
|
|
@@ -267,6 +310,22 @@ module Google
|
|
267
310
|
# @return [::Google::Protobuf::Empty]
|
268
311
|
#
|
269
312
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
313
|
+
#
|
314
|
+
# @example Basic example
|
315
|
+
# require "google/longrunning"
|
316
|
+
#
|
317
|
+
# # Create a client object. The client can be reused for multiple calls.
|
318
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
319
|
+
#
|
320
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
321
|
+
# request = Google::Longrunning::DeleteOperationRequest.new
|
322
|
+
#
|
323
|
+
# # Call the delete_operation method.
|
324
|
+
# result = client.delete_operation request
|
325
|
+
#
|
326
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
327
|
+
# p result
|
328
|
+
#
|
270
329
|
def delete_operation request, options = nil
|
271
330
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
272
331
|
|
@@ -338,6 +397,22 @@ module Google
|
|
338
397
|
# @return [::Google::Protobuf::Empty]
|
339
398
|
#
|
340
399
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
400
|
+
#
|
401
|
+
# @example Basic example
|
402
|
+
# require "google/longrunning"
|
403
|
+
#
|
404
|
+
# # Create a client object. The client can be reused for multiple calls.
|
405
|
+
# client = Google::Longrunning::Operations::Rest::Client.new
|
406
|
+
#
|
407
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
408
|
+
# request = Google::Longrunning::CancelOperationRequest.new
|
409
|
+
#
|
410
|
+
# # Call the cancel_operation method.
|
411
|
+
# result = client.cancel_operation request
|
412
|
+
#
|
413
|
+
# # The returned object is of type Google::Protobuf::Empty.
|
414
|
+
# p result
|
415
|
+
#
|
341
416
|
def cancel_operation request, options = nil
|
342
417
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
343
418
|
|
@@ -446,7 +521,9 @@ module Google
|
|
446
521
|
class Configuration
|
447
522
|
extend ::Gapic::Config
|
448
523
|
|
449
|
-
|
524
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
525
|
+
|
526
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
450
527
|
config_attr :credentials, nil do |value|
|
451
528
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
452
529
|
allowed.any? { |klass| klass === value }
|
@@ -567,7 +644,7 @@ module Google
|
|
567
644
|
|
568
645
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_list_operations_request request_pb
|
569
646
|
query_string_params = if query_string_params.any?
|
570
|
-
query_string_params.to_h { |p| p.split
|
647
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
571
648
|
else
|
572
649
|
{}
|
573
650
|
end
|
@@ -605,7 +682,7 @@ module Google
|
|
605
682
|
|
606
683
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_get_operation_request request_pb
|
607
684
|
query_string_params = if query_string_params.any?
|
608
|
-
query_string_params.to_h { |p| p.split
|
685
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
609
686
|
else
|
610
687
|
{}
|
611
688
|
end
|
@@ -643,7 +720,7 @@ module Google
|
|
643
720
|
|
644
721
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_delete_operation_request request_pb
|
645
722
|
query_string_params = if query_string_params.any?
|
646
|
-
query_string_params.to_h { |p| p.split
|
723
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
647
724
|
else
|
648
725
|
{}
|
649
726
|
end
|
@@ -681,7 +758,7 @@ module Google
|
|
681
758
|
|
682
759
|
verb, uri, query_string_params, body = OperationsServiceStub.transcode_cancel_operation_request request_pb
|
683
760
|
query_string_params = if query_string_params.any?
|
684
|
-
query_string_params.to_h { |p| p.split
|
761
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
685
762
|
else
|
686
763
|
{}
|
687
764
|
end
|
@@ -59,7 +59,7 @@ module Google
|
|
59
59
|
|
60
60
|
verb, uri, query_string_params, body = ServiceStub.transcode_get_application_request request_pb
|
61
61
|
query_string_params = if query_string_params.any?
|
62
|
-
query_string_params.to_h { |p| p.split
|
62
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
63
63
|
else
|
64
64
|
{}
|
65
65
|
end
|
@@ -97,7 +97,7 @@ module Google
|
|
97
97
|
|
98
98
|
verb, uri, query_string_params, body = ServiceStub.transcode_create_application_request request_pb
|
99
99
|
query_string_params = if query_string_params.any?
|
100
|
-
query_string_params.to_h { |p| p.split
|
100
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
101
101
|
else
|
102
102
|
{}
|
103
103
|
end
|
@@ -135,7 +135,7 @@ module Google
|
|
135
135
|
|
136
136
|
verb, uri, query_string_params, body = ServiceStub.transcode_update_application_request request_pb
|
137
137
|
query_string_params = if query_string_params.any?
|
138
|
-
query_string_params.to_h { |p| p.split
|
138
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
139
139
|
else
|
140
140
|
{}
|
141
141
|
end
|
@@ -173,7 +173,7 @@ module Google
|
|
173
173
|
|
174
174
|
verb, uri, query_string_params, body = ServiceStub.transcode_repair_application_request request_pb
|
175
175
|
query_string_params = if query_string_params.any?
|
176
|
-
query_string_params.to_h { |p| p.split
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
177
|
else
|
178
178
|
{}
|
179
179
|
end
|
@@ -122,7 +122,7 @@ module Google
|
|
122
122
|
credentials = @config.credentials
|
123
123
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
124
124
|
# but only if the default endpoint does not have a region prefix.
|
125
|
-
enable_self_signed_jwt = @config.endpoint ==
|
125
|
+
enable_self_signed_jwt = @config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
126
126
|
!@config.endpoint.split(".").first.include?("-")
|
127
127
|
credentials ||= Credentials.default scope: @config.scope,
|
128
128
|
enable_self_signed_jwt: enable_self_signed_jwt
|
@@ -137,7 +137,8 @@ module Google
|
|
137
137
|
credentials: credentials,
|
138
138
|
endpoint: @config.endpoint,
|
139
139
|
channel_args: @config.channel_args,
|
140
|
-
interceptors: @config.interceptors
|
140
|
+
interceptors: @config.interceptors,
|
141
|
+
channel_pool_config: @config.channel_pool
|
141
142
|
)
|
142
143
|
end
|
143
144
|
|
@@ -678,7 +679,9 @@ module Google
|
|
678
679
|
class Configuration
|
679
680
|
extend ::Gapic::Config
|
680
681
|
|
681
|
-
|
682
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
683
|
+
|
684
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
682
685
|
config_attr :credentials, nil do |value|
|
683
686
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
684
687
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -713,6 +716,14 @@ module Google
|
|
713
716
|
end
|
714
717
|
end
|
715
718
|
|
719
|
+
##
|
720
|
+
# Configuration for the channel pool
|
721
|
+
# @return [::Gapic::ServiceStub::ChannelPool::Configuration]
|
722
|
+
#
|
723
|
+
def channel_pool
|
724
|
+
@channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
|
725
|
+
end
|
726
|
+
|
716
727
|
##
|
717
728
|
# Configuration RPC class for the AuthorizedCertificates API.
|
718
729
|
#
|