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
@@ -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
|
@@ -180,6 +180,26 @@ module Google
|
|
180
180
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AppEngine::V1::Version>]
|
181
181
|
#
|
182
182
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
183
|
+
#
|
184
|
+
# @example Basic example
|
185
|
+
# require "google/cloud/app_engine/v1"
|
186
|
+
#
|
187
|
+
# # Create a client object. The client can be reused for multiple calls.
|
188
|
+
# client = Google::Cloud::AppEngine::V1::Versions::Rest::Client.new
|
189
|
+
#
|
190
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
191
|
+
# request = Google::Cloud::AppEngine::V1::ListVersionsRequest.new
|
192
|
+
#
|
193
|
+
# # Call the list_versions method.
|
194
|
+
# result = client.list_versions request
|
195
|
+
#
|
196
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
197
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
198
|
+
# result.each do |item|
|
199
|
+
# # Each element is of type ::Google::Cloud::AppEngine::V1::Version.
|
200
|
+
# p item
|
201
|
+
# end
|
202
|
+
#
|
183
203
|
def list_versions request, options = nil
|
184
204
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
185
205
|
|
@@ -248,6 +268,22 @@ module Google
|
|
248
268
|
# @return [::Google::Cloud::AppEngine::V1::Version]
|
249
269
|
#
|
250
270
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
271
|
+
#
|
272
|
+
# @example Basic example
|
273
|
+
# require "google/cloud/app_engine/v1"
|
274
|
+
#
|
275
|
+
# # Create a client object. The client can be reused for multiple calls.
|
276
|
+
# client = Google::Cloud::AppEngine::V1::Versions::Rest::Client.new
|
277
|
+
#
|
278
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
279
|
+
# request = Google::Cloud::AppEngine::V1::GetVersionRequest.new
|
280
|
+
#
|
281
|
+
# # Call the get_version method.
|
282
|
+
# result = client.get_version request
|
283
|
+
#
|
284
|
+
# # The returned object is of type Google::Cloud::AppEngine::V1::Version.
|
285
|
+
# p result
|
286
|
+
#
|
251
287
|
def get_version request, options = nil
|
252
288
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
253
289
|
|
@@ -313,6 +349,29 @@ module Google
|
|
313
349
|
# @return [::Gapic::Operation]
|
314
350
|
#
|
315
351
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
352
|
+
#
|
353
|
+
# @example Basic example
|
354
|
+
# require "google/cloud/app_engine/v1"
|
355
|
+
#
|
356
|
+
# # Create a client object. The client can be reused for multiple calls.
|
357
|
+
# client = Google::Cloud::AppEngine::V1::Versions::Rest::Client.new
|
358
|
+
#
|
359
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
360
|
+
# request = Google::Cloud::AppEngine::V1::CreateVersionRequest.new
|
361
|
+
#
|
362
|
+
# # Call the create_version method.
|
363
|
+
# result = client.create_version request
|
364
|
+
#
|
365
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
366
|
+
# # check the status of an operation, cancel it, or wait for results.
|
367
|
+
# # Here is how to wait for a response.
|
368
|
+
# result.wait_until_done! timeout: 60
|
369
|
+
# if result.response?
|
370
|
+
# p result.response
|
371
|
+
# else
|
372
|
+
# puts "No response received."
|
373
|
+
# end
|
374
|
+
#
|
316
375
|
def create_version request, options = nil
|
317
376
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
318
377
|
|
@@ -417,6 +476,29 @@ module Google
|
|
417
476
|
# @return [::Gapic::Operation]
|
418
477
|
#
|
419
478
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
479
|
+
#
|
480
|
+
# @example Basic example
|
481
|
+
# require "google/cloud/app_engine/v1"
|
482
|
+
#
|
483
|
+
# # Create a client object. The client can be reused for multiple calls.
|
484
|
+
# client = Google::Cloud::AppEngine::V1::Versions::Rest::Client.new
|
485
|
+
#
|
486
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
487
|
+
# request = Google::Cloud::AppEngine::V1::UpdateVersionRequest.new
|
488
|
+
#
|
489
|
+
# # Call the update_version method.
|
490
|
+
# result = client.update_version request
|
491
|
+
#
|
492
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
493
|
+
# # check the status of an operation, cancel it, or wait for results.
|
494
|
+
# # Here is how to wait for a response.
|
495
|
+
# result.wait_until_done! timeout: 60
|
496
|
+
# if result.response?
|
497
|
+
# p result.response
|
498
|
+
# else
|
499
|
+
# puts "No response received."
|
500
|
+
# end
|
501
|
+
#
|
420
502
|
def update_version request, options = nil
|
421
503
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
422
504
|
|
@@ -481,6 +563,29 @@ module Google
|
|
481
563
|
# @return [::Gapic::Operation]
|
482
564
|
#
|
483
565
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
566
|
+
#
|
567
|
+
# @example Basic example
|
568
|
+
# require "google/cloud/app_engine/v1"
|
569
|
+
#
|
570
|
+
# # Create a client object. The client can be reused for multiple calls.
|
571
|
+
# client = Google::Cloud::AppEngine::V1::Versions::Rest::Client.new
|
572
|
+
#
|
573
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
574
|
+
# request = Google::Cloud::AppEngine::V1::DeleteVersionRequest.new
|
575
|
+
#
|
576
|
+
# # Call the delete_version method.
|
577
|
+
# result = client.delete_version request
|
578
|
+
#
|
579
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
580
|
+
# # check the status of an operation, cancel it, or wait for results.
|
581
|
+
# # Here is how to wait for a response.
|
582
|
+
# result.wait_until_done! timeout: 60
|
583
|
+
# if result.response?
|
584
|
+
# p result.response
|
585
|
+
# else
|
586
|
+
# puts "No response received."
|
587
|
+
# end
|
588
|
+
#
|
484
589
|
def delete_version request, options = nil
|
485
590
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
486
591
|
|
@@ -590,7 +695,9 @@ module Google
|
|
590
695
|
class Configuration
|
591
696
|
extend ::Gapic::Config
|
592
697
|
|
593
|
-
|
698
|
+
DEFAULT_ENDPOINT = "appengine.googleapis.com"
|
699
|
+
|
700
|
+
config_attr :endpoint, DEFAULT_ENDPOINT, ::String
|
594
701
|
config_attr :credentials, nil do |value|
|
595
702
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
596
703
|
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_list_versions_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_get_version_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_create_version_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_update_version_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
|
@@ -211,7 +211,7 @@ module Google
|
|
211
211
|
|
212
212
|
verb, uri, query_string_params, body = ServiceStub.transcode_delete_version_request request_pb
|
213
213
|
query_string_params = if query_string_params.any?
|
214
|
-
query_string_params.to_h { |p| p.split
|
214
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
215
215
|
else
|
216
216
|
{}
|
217
217
|
end
|
@@ -83,7 +83,7 @@ module Google
|
|
83
83
|
# long-running operation pattern.
|
84
84
|
# @!attribute [rw] new_issue_uri
|
85
85
|
# @return [::String]
|
86
|
-
# Link to a
|
86
|
+
# Link to a *public* URI where users can report issues. Example:
|
87
87
|
# https://issuetracker.google.com/issues/new?component=190865&template=1161103
|
88
88
|
# @!attribute [rw] documentation_uri
|
89
89
|
# @return [::String]
|
@@ -353,6 +353,15 @@ module Google
|
|
353
353
|
|
354
354
|
# Street View Org.
|
355
355
|
STREET_VIEW = 4
|
356
|
+
|
357
|
+
# Shopping Org.
|
358
|
+
SHOPPING = 5
|
359
|
+
|
360
|
+
# Geo Org.
|
361
|
+
GEO = 6
|
362
|
+
|
363
|
+
# Generative AI - https://developers.generativeai.google
|
364
|
+
GENERATIVE_AI = 7
|
356
365
|
end
|
357
366
|
|
358
367
|
# To where should client libraries be published?
|
@@ -66,6 +66,20 @@ module Google
|
|
66
66
|
# a non-empty value will be returned. The user will not be aware of what
|
67
67
|
# non-empty value to expect.
|
68
68
|
NON_EMPTY_DEFAULT = 7
|
69
|
+
|
70
|
+
# Denotes that the field in a resource (a message annotated with
|
71
|
+
# google.api.resource) is used in the resource name to uniquely identify the
|
72
|
+
# resource. For AIP-compliant APIs, this should only be applied to the
|
73
|
+
# `name` field on the resource.
|
74
|
+
#
|
75
|
+
# This behavior should not be applied to references to other resources within
|
76
|
+
# the message.
|
77
|
+
#
|
78
|
+
# The identifier field of resources often have different field behavior
|
79
|
+
# depending on the request it is embedded in (e.g. for Create methods name
|
80
|
+
# is optional and unused, while for Update methods it is required). Instead
|
81
|
+
# of method-specific annotations, only `IDENTIFIER` is required.
|
82
|
+
IDENTIFIER = 8
|
69
83
|
end
|
70
84
|
end
|
71
85
|
end
|
@@ -43,8 +43,12 @@ module Google
|
|
43
43
|
# if (any.is(Foo.class)) {
|
44
44
|
# foo = any.unpack(Foo.class);
|
45
45
|
# }
|
46
|
+
# // or ...
|
47
|
+
# if (any.isSameTypeAs(Foo.getDefaultInstance())) {
|
48
|
+
# foo = any.unpack(Foo.getDefaultInstance());
|
49
|
+
# }
|
46
50
|
#
|
47
|
-
#
|
51
|
+
# Example 3: Pack and unpack a message in Python.
|
48
52
|
#
|
49
53
|
# foo = Foo(...)
|
50
54
|
# any = Any()
|
@@ -54,7 +58,7 @@ module Google
|
|
54
58
|
# any.Unpack(foo)
|
55
59
|
# ...
|
56
60
|
#
|
57
|
-
#
|
61
|
+
# Example 4: Pack and unpack a message in Go
|
58
62
|
#
|
59
63
|
# foo := &pb.Foo{...}
|
60
64
|
# any, err := anypb.New(foo)
|
@@ -73,9 +77,8 @@ module Google
|
|
73
77
|
# in the type URL, for example "foo.bar.com/x/y.z" will yield type
|
74
78
|
# name "y.z".
|
75
79
|
#
|
76
|
-
#
|
77
80
|
# JSON
|
78
|
-
#
|
81
|
+
# ====
|
79
82
|
# The JSON representation of an `Any` value uses the regular
|
80
83
|
# representation of the deserialized, embedded message, with an
|
81
84
|
# additional field `@type` which contains the type URL. Example:
|
@@ -69,7 +69,6 @@ module Google
|
|
69
69
|
# Timestamp timestamp = Timestamp.newBuilder().setSeconds(millis / 1000)
|
70
70
|
# .setNanos((int) ((millis % 1000) * 1000000)).build();
|
71
71
|
#
|
72
|
-
#
|
73
72
|
# Example 5: Compute Timestamp from Java `Instant.now()`.
|
74
73
|
#
|
75
74
|
# Instant now = Instant.now();
|
@@ -78,7 +77,6 @@ module Google
|
|
78
77
|
# Timestamp.newBuilder().setSeconds(now.getEpochSecond())
|
79
78
|
# .setNanos(now.getNano()).build();
|
80
79
|
#
|
81
|
-
#
|
82
80
|
# Example 6: Compute Timestamp from current time in Python.
|
83
81
|
#
|
84
82
|
# timestamp = Timestamp()
|
@@ -108,7 +106,7 @@ module Google
|
|
108
106
|
# [`strftime`](https://docs.python.org/2/library/time.html#time.strftime) with
|
109
107
|
# the time format spec '%Y-%m-%dT%H:%M:%S.%fZ'. Likewise, in Java, one can use
|
110
108
|
# the Joda Time's [`ISODateTimeFormat.dateTime()`](
|
111
|
-
# http://
|
109
|
+
# http://joda-time.sourceforge.net/apidocs/org/joda/time/format/ISODateTimeFormat.html#dateTime()
|
112
110
|
# ) to obtain a formatter capable of generating timestamps in this format.
|
113
111
|
# @!attribute [rw] seconds
|
114
112
|
# @return [::Integer]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-app_engine-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-09-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.20.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.20.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -294,7 +294,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
294
294
|
- !ruby/object:Gem::Version
|
295
295
|
version: '0'
|
296
296
|
requirements: []
|
297
|
-
rubygems_version: 3.4.
|
297
|
+
rubygems_version: 3.4.19
|
298
298
|
signing_key:
|
299
299
|
specification_version: 4
|
300
300
|
summary: Provisions and manages developers' App Engine applications.
|