google-cloud-functions-v1 0.9.0 → 0.10.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 97f52801b9579f6006085e6e0a3d7bb71894afe24ad60b7871906163023d0dc6
4
- data.tar.gz: 990ef0eb79f444d14dc939ed2c22178551aa25178f95dccc8bdfc34ac95a3b5c
3
+ metadata.gz: 133bdb41fa5847f2a169ab5b0b744c7c953c16d0b3cf8be94f797b5aad70db2c
4
+ data.tar.gz: 7b3d55d42cfe0df7b29ae045405dd806cff0dc9370db1c9015bc7d75de8fd06d
5
5
  SHA512:
6
- metadata.gz: 21f515d95665e92e8d72d636a7169e55b7fc349144da9704e2f1743bf13ceb9b248daeb28c4764b7f5fcb01e69dfc5e367736e050eb3fc303d5682ae966cdc49
7
- data.tar.gz: '03163831ba992f741d9d6eb25983e7faee2284ae048ff50ece0c2fed3470c55e317d1c2e4d47e03b52d2ff07d7553cb9a70544dcfaf5ae415384b1e1b48f9bf6'
6
+ metadata.gz: 21ac38859d881bcbfb5cccc6c377e5fc3de1c7bbd2f27058831a316c03e8072eaf1d298114c8f957d89abf9fd95754c140ab16bca3bef4dcbbaaf868e76f6148
7
+ data.tar.gz: eb2d5c20d73f555e73be0109a03b9b6e18b6b0cc7479ff9b7c1b6d297e7a05282c71c88d6ec5d93249716532257a441f0c6f7b02cde8f909bf06af6a1529d1db
data/README.md CHANGED
@@ -47,7 +47,7 @@ for general usage information.
47
47
 
48
48
  To enable logging for this library, set the logger for the underlying [gRPC](https://github.com/grpc/grpc/tree/master/src/ruby) library.
49
49
  The logger that you set may be a Ruby stdlib [`Logger`](https://ruby-doc.org/current/stdlibs/logger/Logger.html) as shown below,
50
- or a [`Google::Cloud::Logging::Logger`](https://googleapis.dev/ruby/google-cloud-logging/latest)
50
+ or a [`Google::Cloud::Logging::Logger`](https://cloud.google.com/ruby/docs/reference/google-cloud-logging/latest)
51
51
  that will write logs to [Cloud Logging](https://cloud.google.com/logging/). See [grpc/logconfig.rb](https://github.com/grpc/grpc/blob/master/src/ruby/lib/grpc/logconfig.rb)
52
52
  and the gRPC [spec_helper.rb](https://github.com/grpc/grpc/blob/master/src/ruby/spec/spec_helper.rb) for additional information.
53
53
 
@@ -0,0 +1,91 @@
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 Functions
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/functions/v1/rest"
28
+ # client = ::Google::Cloud::Functions::V1::CloudFunctionsService::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", "Functions"]
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.cloud.location.Locations.ListLocations"] = [
47
+ Gapic::Rest::GrpcTranscoder::HttpBinding.create_with_validation(
48
+ uri_method: :get,
49
+ uri_template: "/v1/{name}/locations",
50
+ matches: [
51
+ ["name", %r{^projects/[^/]+/?$}, false]
52
+ ],
53
+ body: nil
54
+ )
55
+ ]
56
+ default_config
57
+ end
58
+ yield @configure if block_given?
59
+ @configure
60
+ end
61
+
62
+ ##
63
+ # @private
64
+ # Configuration class for the google.cloud.functions.v1 package.
65
+ #
66
+ # This class contains common configuration for all services
67
+ # of the google.cloud.functions.v1 package.
68
+ #
69
+ # This configuration is for internal use of the client library classes,
70
+ # and it is not intended that the end-users will read or change it.
71
+ #
72
+ class Configuration
73
+ extend ::Gapic::Config
74
+
75
+ # @private
76
+ # Overrides for http bindings for the RPC of the mixins for this package.
77
+ # Services in this package should use these when creating clients for the mixin services.
78
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
79
+ config_attr :bindings_override, {}, ::Hash, nil
80
+
81
+ # @private
82
+ def initialize parent_config = nil
83
+ @parent_config = parent_config unless parent_config.nil?
84
+
85
+ yield self if block_given?
86
+ end
87
+ end
88
+ end
89
+ end
90
+ end
91
+ end
@@ -18,6 +18,8 @@
18
18
 
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/functions/v1/functions_pb"
21
+ require "google/cloud/location"
22
+ require "google/iam/v1"
21
23
 
22
24
  module Google
23
25
  module Cloud
@@ -163,6 +165,18 @@ module Google
163
165
  config.endpoint = @config.endpoint
164
166
  end
165
167
 
168
+ @location_client = Google::Cloud::Location::Locations::Client.new do |config|
169
+ config.credentials = credentials
170
+ config.quota_project = @quota_project_id
171
+ config.endpoint = @config.endpoint
172
+ end
173
+
174
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Client.new do |config|
175
+ config.credentials = credentials
176
+ config.quota_project = @quota_project_id
177
+ config.endpoint = @config.endpoint
178
+ end
179
+
166
180
  @cloud_functions_service_stub = ::Gapic::ServiceStub.new(
167
181
  ::Google::Cloud::Functions::V1::CloudFunctionsService::Stub,
168
182
  credentials: credentials,
@@ -179,6 +193,20 @@ module Google
179
193
  #
180
194
  attr_reader :operations_client
181
195
 
196
+ ##
197
+ # Get the associated client for mix-in of the Locations.
198
+ #
199
+ # @return [Google::Cloud::Location::Locations::Client]
200
+ #
201
+ attr_reader :location_client
202
+
203
+ ##
204
+ # Get the associated client for mix-in of the IAMPolicy.
205
+ #
206
+ # @return [Google::Iam::V1::IAMPolicy::Client]
207
+ #
208
+ attr_reader :iam_policy_client
209
+
182
210
  # Service calls
183
211
 
184
212
  ##
@@ -370,7 +398,7 @@ module Google
370
398
 
371
399
  ##
372
400
  # Creates a new function. If a function with the given name already exists in
373
- # the specified project, the long running operation will return
401
+ # the specified project, the long running operation returns an
374
402
  # `ALREADY_EXISTS` error.
375
403
  #
376
404
  # @overload create_function(request, options = nil)
@@ -389,8 +417,8 @@ module Google
389
417
  # the default parameter values, pass an empty Hash as a request object (see above).
390
418
  #
391
419
  # @param location [::String]
392
- # Required. The project and location in which the function should be created, specified
393
- # in the format `projects/*/locations/*`
420
+ # Required. The project and location in which the function should be created,
421
+ # specified in the format `projects/*/locations/*`
394
422
  # @param function [::Google::Cloud::Functions::V1::CloudFunction, ::Hash]
395
423
  # Required. Function to be created.
396
424
  #
@@ -563,7 +591,7 @@ module Google
563
591
 
564
592
  ##
565
593
  # Deletes a function with the given name from the specified project. If the
566
- # given function is used by some trigger, the trigger will be updated to
594
+ # given function is used by some trigger, the trigger is updated to
567
595
  # remove this function.
568
596
  #
569
597
  # @overload delete_function(request, options = nil)
@@ -764,12 +792,12 @@ module Google
764
792
  # attached, the identity from the credentials would be used, but that
765
793
  # identity does not have permissions to upload files to the URL.
766
794
  #
767
- # When making a HTTP PUT request, these two headers need to be specified:
795
+ # When making an HTTP PUT request, these two headers must be specified:
768
796
  #
769
797
  # * `content-type: application/zip`
770
798
  # * `x-goog-content-length-range: 0,104857600`
771
799
  #
772
- # And this header SHOULD NOT be specified:
800
+ # And this header must NOT be specified:
773
801
  #
774
802
  # * `Authorization: Bearer YOUR_TOKEN`
775
803
  #
@@ -876,9 +904,9 @@ module Google
876
904
 
877
905
  ##
878
906
  # Returns a signed URL for downloading deployed function source code.
879
- # The URL is only valid for a limited period and should be used within
907
+ # The URL is only valid for a limited period and must be used within
880
908
  # minutes after generation.
881
- # For more information about the signed URL usage see:
909
+ # For more information about the signed URL usage, see:
882
910
  # https://cloud.google.com/storage/docs/access-control/signed-urls
883
911
  #
884
912
  # @overload generate_download_url(request, options = nil)
@@ -1159,7 +1187,7 @@ module Google
1159
1187
  ##
1160
1188
  # Tests the specified permissions against the IAM access control policy
1161
1189
  # for a function.
1162
- # If the function does not exist, this will return an empty set of
1190
+ # If the function does not exist, this returns an empty set of
1163
1191
  # permissions, not a NOT_FOUND error.
1164
1192
  #
1165
1193
  # @overload test_iam_permissions(request, options = nil)
@@ -1288,9 +1316,9 @@ module Google
1288
1316
  # * (`String`) The path to a service account key file in JSON format
1289
1317
  # * (`Hash`) A service account key as a Hash
1290
1318
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1291
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1319
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1292
1320
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1293
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1321
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1294
1322
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
1295
1323
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
1296
1324
  # * (`nil`) indicating no credentials
@@ -612,9 +612,9 @@ module Google
612
612
  # * (`String`) The path to a service account key file in JSON format
613
613
  # * (`Hash`) A service account key as a Hash
614
614
  # * (`Google::Auth::Credentials`) A googleauth credentials object
615
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
615
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
616
616
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
617
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
617
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
618
618
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
619
619
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
620
620
  # * (`nil`) indicating no credentials
@@ -19,6 +19,8 @@
19
19
  require "google/cloud/errors"
20
20
  require "google/cloud/functions/v1/functions_pb"
21
21
  require "google/cloud/functions/v1/cloud_functions_service/rest/service_stub"
22
+ require "google/cloud/location/rest"
23
+ require "google/iam/v1/rest"
22
24
 
23
25
  module Google
24
26
  module Cloud
@@ -160,6 +162,19 @@ module Google
160
162
  config.endpoint = @config.endpoint
161
163
  end
162
164
 
165
+ @location_client = Google::Cloud::Location::Locations::Rest::Client.new do |config|
166
+ config.credentials = credentials
167
+ config.quota_project = @quota_project_id
168
+ config.endpoint = @config.endpoint
169
+ config.bindings_override = @config.bindings_override
170
+ end
171
+
172
+ @iam_policy_client = Google::Iam::V1::IAMPolicy::Rest::Client.new do |config|
173
+ config.credentials = credentials
174
+ config.quota_project = @quota_project_id
175
+ config.endpoint = @config.endpoint
176
+ end
177
+
163
178
  @cloud_functions_service_stub = ::Google::Cloud::Functions::V1::CloudFunctionsService::Rest::ServiceStub.new endpoint: @config.endpoint, credentials: credentials
164
179
  end
165
180
 
@@ -170,6 +185,20 @@ module Google
170
185
  #
171
186
  attr_reader :operations_client
172
187
 
188
+ ##
189
+ # Get the associated client for mix-in of the Locations.
190
+ #
191
+ # @return [Google::Cloud::Location::Locations::Rest::Client]
192
+ #
193
+ attr_reader :location_client
194
+
195
+ ##
196
+ # Get the associated client for mix-in of the IAMPolicy.
197
+ #
198
+ # @return [Google::Iam::V1::IAMPolicy::Rest::Client]
199
+ #
200
+ attr_reader :iam_policy_client
201
+
173
202
  # Service calls
174
203
 
175
204
  ##
@@ -310,7 +339,7 @@ module Google
310
339
 
311
340
  ##
312
341
  # Creates a new function. If a function with the given name already exists in
313
- # the specified project, the long running operation will return
342
+ # the specified project, the long running operation returns an
314
343
  # `ALREADY_EXISTS` error.
315
344
  #
316
345
  # @overload create_function(request, options = nil)
@@ -329,8 +358,8 @@ module Google
329
358
  # the default parameter values, pass an empty Hash as a request object (see above).
330
359
  #
331
360
  # @param location [::String]
332
- # Required. The project and location in which the function should be created, specified
333
- # in the format `projects/*/locations/*`
361
+ # Required. The project and location in which the function should be created,
362
+ # specified in the format `projects/*/locations/*`
334
363
  # @param function [::Google::Cloud::Functions::V1::CloudFunction, ::Hash]
335
364
  # Required. Function to be created.
336
365
  # @yield [result, operation] Access the result along with the TransportOperation object
@@ -443,7 +472,7 @@ module Google
443
472
 
444
473
  ##
445
474
  # Deletes a function with the given name from the specified project. If the
446
- # given function is used by some trigger, the trigger will be updated to
475
+ # given function is used by some trigger, the trigger is updated to
447
476
  # remove this function.
448
477
  #
449
478
  # @overload delete_function(request, options = nil)
@@ -591,12 +620,12 @@ module Google
591
620
  # attached, the identity from the credentials would be used, but that
592
621
  # identity does not have permissions to upload files to the URL.
593
622
  #
594
- # When making a HTTP PUT request, these two headers need to be specified:
623
+ # When making an HTTP PUT request, these two headers must be specified:
595
624
  #
596
625
  # * `content-type: application/zip`
597
626
  # * `x-goog-content-length-range: 0,104857600`
598
627
  #
599
- # And this header SHOULD NOT be specified:
628
+ # And this header must NOT be specified:
600
629
  #
601
630
  # * `Authorization: Bearer YOUR_TOKEN`
602
631
  #
@@ -680,9 +709,9 @@ module Google
680
709
 
681
710
  ##
682
711
  # Returns a signed URL for downloading deployed function source code.
683
- # The URL is only valid for a limited period and should be used within
712
+ # The URL is only valid for a limited period and must be used within
684
713
  # minutes after generation.
685
- # For more information about the signed URL usage see:
714
+ # For more information about the signed URL usage, see:
686
715
  # https://cloud.google.com/storage/docs/access-control/signed-urls
687
716
  #
688
717
  # @overload generate_download_url(request, options = nil)
@@ -894,7 +923,7 @@ module Google
894
923
  ##
895
924
  # Tests the specified permissions against the IAM access control policy
896
925
  # for a function.
897
- # If the function does not exist, this will return an empty set of
926
+ # If the function does not exist, this returns an empty set of
898
927
  # permissions, not a NOT_FOUND error.
899
928
  #
900
929
  # @overload test_iam_permissions(request, options = nil)
@@ -1000,9 +1029,9 @@ module Google
1000
1029
  # * (`String`) The path to a service account key file in JSON format
1001
1030
  # * (`Hash`) A service account key as a Hash
1002
1031
  # * (`Google::Auth::Credentials`) A googleauth credentials object
1003
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
1032
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
1004
1033
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
1005
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
1034
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
1006
1035
  # * (`nil`) indicating no credentials
1007
1036
  # @return [::Object]
1008
1037
  # @!attribute [rw] scope
@@ -1048,6 +1077,13 @@ module Google
1048
1077
  config_attr :retry_policy, nil, ::Hash, ::Proc, nil
1049
1078
  config_attr :quota_project, nil, ::String, nil
1050
1079
 
1080
+ # @private
1081
+ # Overrides for http bindings for the RPCs of this service
1082
+ # are only used when this service is used as mixin, and only
1083
+ # by the host service.
1084
+ # @return [::Hash{::Symbol=>::Array<::Gapic::Rest::GrpcTranscoder::HttpBinding>}]
1085
+ config_attr :bindings_override, {}, ::Hash, nil
1086
+
1051
1087
  # @private
1052
1088
  def initialize parent_config = nil
1053
1089
  @parent_config = parent_config unless parent_config.nil?
@@ -411,9 +411,9 @@ module Google
411
411
  # * (`String`) The path to a service account key file in JSON format
412
412
  # * (`Hash`) A service account key as a Hash
413
413
  # * (`Google::Auth::Credentials`) A googleauth credentials object
414
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
414
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
415
415
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
416
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
416
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
417
417
  # * (`nil`) indicating no credentials
418
418
  # @return [::Object]
419
419
  # @!attribute [rw] scope
@@ -21,6 +21,7 @@ require "gapic/config"
21
21
  require "gapic/config/method"
22
22
 
23
23
  require "google/cloud/functions/v1/version"
24
+ require "google/cloud/functions/v1/bindings_override"
24
25
 
25
26
  require "google/cloud/functions/v1/cloud_functions_service/credentials"
26
27
  require "google/cloud/functions/v1/cloud_functions_service/paths"
@@ -7,10 +7,12 @@ require 'google/api/annotations_pb'
7
7
  require 'google/api/client_pb'
8
8
  require 'google/api/field_behavior_pb'
9
9
  require 'google/api/resource_pb'
10
+ require 'google/cloud/functions/v1/operations_pb'
10
11
  require 'google/iam/v1/iam_policy_pb'
11
12
  require 'google/iam/v1/policy_pb'
12
13
  require 'google/longrunning/operations_pb'
13
14
  require 'google/protobuf/duration_pb'
15
+ require 'google/protobuf/empty_pb'
14
16
  require 'google/protobuf/field_mask_pb'
15
17
  require 'google/protobuf/timestamp_pb'
16
18
 
@@ -38,13 +38,13 @@ module Google
38
38
  # Returns a function with the given name from the requested project.
39
39
  rpc :GetFunction, ::Google::Cloud::Functions::V1::GetFunctionRequest, ::Google::Cloud::Functions::V1::CloudFunction
40
40
  # Creates a new function. If a function with the given name already exists in
41
- # the specified project, the long running operation will return
41
+ # the specified project, the long running operation returns an
42
42
  # `ALREADY_EXISTS` error.
43
43
  rpc :CreateFunction, ::Google::Cloud::Functions::V1::CreateFunctionRequest, ::Google::Longrunning::Operation
44
44
  # Updates existing function.
45
45
  rpc :UpdateFunction, ::Google::Cloud::Functions::V1::UpdateFunctionRequest, ::Google::Longrunning::Operation
46
46
  # Deletes a function with the given name from the specified project. If the
47
- # given function is used by some trigger, the trigger will be updated to
47
+ # given function is used by some trigger, the trigger is updated to
48
48
  # remove this function.
49
49
  rpc :DeleteFunction, ::Google::Cloud::Functions::V1::DeleteFunctionRequest, ::Google::Longrunning::Operation
50
50
  # Synchronously invokes a deployed Cloud Function. To be used for testing
@@ -69,19 +69,19 @@ module Google
69
69
  # attached, the identity from the credentials would be used, but that
70
70
  # identity does not have permissions to upload files to the URL.
71
71
  #
72
- # When making a HTTP PUT request, these two headers need to be specified:
72
+ # When making an HTTP PUT request, these two headers must be specified:
73
73
  #
74
74
  # * `content-type: application/zip`
75
75
  # * `x-goog-content-length-range: 0,104857600`
76
76
  #
77
- # And this header SHOULD NOT be specified:
77
+ # And this header must NOT be specified:
78
78
  #
79
79
  # * `Authorization: Bearer YOUR_TOKEN`
80
80
  rpc :GenerateUploadUrl, ::Google::Cloud::Functions::V1::GenerateUploadUrlRequest, ::Google::Cloud::Functions::V1::GenerateUploadUrlResponse
81
81
  # Returns a signed URL for downloading deployed function source code.
82
- # The URL is only valid for a limited period and should be used within
82
+ # The URL is only valid for a limited period and must be used within
83
83
  # minutes after generation.
84
- # For more information about the signed URL usage see:
84
+ # For more information about the signed URL usage, see:
85
85
  # https://cloud.google.com/storage/docs/access-control/signed-urls
86
86
  rpc :GenerateDownloadUrl, ::Google::Cloud::Functions::V1::GenerateDownloadUrlRequest, ::Google::Cloud::Functions::V1::GenerateDownloadUrlResponse
87
87
  # Sets the IAM access control policy on the specified function.
@@ -93,7 +93,7 @@ module Google
93
93
  rpc :GetIamPolicy, ::Google::Iam::V1::GetIamPolicyRequest, ::Google::Iam::V1::Policy
94
94
  # Tests the specified permissions against the IAM access control policy
95
95
  # for a function.
96
- # If the function does not exist, this will return an empty set of
96
+ # If the function does not exist, this returns an empty set of
97
97
  # permissions, not a NOT_FOUND error.
98
98
  rpc :TestIamPermissions, ::Google::Iam::V1::TestIamPermissionsRequest, ::Google::Iam::V1::TestIamPermissionsResponse
99
99
  end
@@ -17,6 +17,7 @@
17
17
  # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
18
 
19
19
  require "google/cloud/functions/v1/cloud_functions_service/rest"
20
+ require "google/cloud/functions/v1/bindings_override"
20
21
  require "google/cloud/functions/v1/version"
21
22
 
22
23
  module Google
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Functions
23
23
  module V1
24
- VERSION = "0.9.0"
24
+ VERSION = "0.10.0"
25
25
  end
26
26
  end
27
27
  end
@@ -35,7 +35,9 @@ module Google
35
35
  # Details about how and where to publish client libraries.
36
36
  # @!attribute [rw] version
37
37
  # @return [::String]
38
- # Version of the API to apply these settings to.
38
+ # Version of the API to apply these settings to. This is the full protobuf
39
+ # package for the API, ending in the version element.
40
+ # Examples: "google.cloud.speech.v1" and "google.spanner.admin.database.v1".
39
41
  # @!attribute [rw] launch_stage
40
42
  # @return [::Google::Api::LaunchStage]
41
43
  # Launch stage of this version of the API.
@@ -81,7 +83,7 @@ module Google
81
83
  # long-running operation pattern.
82
84
  # @!attribute [rw] new_issue_uri
83
85
  # @return [::String]
84
- # Link to a place that API users can report issues. Example:
86
+ # Link to a *public* URI where users can report issues. Example:
85
87
  # https://issuetracker.google.com/issues/new?component=190865&template=1161103
86
88
  # @!attribute [rw] documentation_uri
87
89
  # @return [::String]
@@ -111,6 +113,10 @@ module Google
111
113
  # Client library settings. If the same version string appears multiple
112
114
  # times in this list, then the last one wins. Settings from earlier
113
115
  # settings with the same version string are discarded.
116
+ # @!attribute [rw] proto_reference_documentation_uri
117
+ # @return [::String]
118
+ # Optional link to proto reference documentation. Example:
119
+ # https://cloud.google.com/pubsub/lite/docs/reference/rpc
114
120
  class Publishing
115
121
  include ::Google::Protobuf::MessageExts
116
122
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -203,9 +209,57 @@ module Google
203
209
  # @!attribute [rw] common
204
210
  # @return [::Google::Api::CommonLanguageSettings]
205
211
  # Some settings.
212
+ # @!attribute [rw] renamed_services
213
+ # @return [::Google::Protobuf::Map{::String => ::String}]
214
+ # Map from original service names to renamed versions.
215
+ # This is used when the default generated types
216
+ # would cause a naming conflict. (Neither name is
217
+ # fully-qualified.)
218
+ # Example: Subscriber to SubscriberServiceApi.
219
+ # @!attribute [rw] renamed_resources
220
+ # @return [::Google::Protobuf::Map{::String => ::String}]
221
+ # Map from full resource types to the effective short name
222
+ # for the resource. This is used when otherwise resource
223
+ # named from different services would cause naming collisions.
224
+ # Example entry:
225
+ # "datalabeling.googleapis.com/Dataset": "DataLabelingDataset"
226
+ # @!attribute [rw] ignored_resources
227
+ # @return [::Array<::String>]
228
+ # List of full resource types to ignore during generation.
229
+ # This is typically used for API-specific Location resources,
230
+ # which should be handled by the generator as if they were actually
231
+ # the common Location resources.
232
+ # Example entry: "documentai.googleapis.com/Location"
233
+ # @!attribute [rw] forced_namespace_aliases
234
+ # @return [::Array<::String>]
235
+ # Namespaces which must be aliased in snippets due to
236
+ # a known (but non-generator-predictable) naming collision
237
+ # @!attribute [rw] handwritten_signatures
238
+ # @return [::Array<::String>]
239
+ # Method signatures (in the form "service.method(signature)")
240
+ # which are provided separately, so shouldn't be generated.
241
+ # Snippets *calling* these methods are still generated, however.
206
242
  class DotnetSettings
207
243
  include ::Google::Protobuf::MessageExts
208
244
  extend ::Google::Protobuf::MessageExts::ClassMethods
245
+
246
+ # @!attribute [rw] key
247
+ # @return [::String]
248
+ # @!attribute [rw] value
249
+ # @return [::String]
250
+ class RenamedServicesEntry
251
+ include ::Google::Protobuf::MessageExts
252
+ extend ::Google::Protobuf::MessageExts::ClassMethods
253
+ end
254
+
255
+ # @!attribute [rw] key
256
+ # @return [::String]
257
+ # @!attribute [rw] value
258
+ # @return [::String]
259
+ class RenamedResourcesEntry
260
+ include ::Google::Protobuf::MessageExts
261
+ extend ::Google::Protobuf::MessageExts::ClassMethods
262
+ end
209
263
  end
210
264
 
211
265
  # Settings for Ruby client libraries.
@@ -240,8 +294,8 @@ module Google
240
294
  # Example of a YAML configuration::
241
295
  #
242
296
  # publishing:
243
- # method_behavior:
244
- # - selector: CreateAdDomain
297
+ # method_settings:
298
+ # - selector: google.cloud.speech.v2.Speech.BatchRecognize
245
299
  # long_running:
246
300
  # initial_poll_delay:
247
301
  # seconds: 60 # 1 minute
@@ -299,6 +353,15 @@ module Google
299
353
 
300
354
  # Street View Org.
301
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
302
365
  end
303
366
 
304
367
  # To where should client libraries be published?