google-cloud-profiler-v2 0.4.0 → 0.6.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 716fb3f3f491283d7ba21a56eb7a3d18df375df341652532bbb1565b09a6496e
4
- data.tar.gz: dc677f58ec3c3c8786bc462e3fb76cf43b6009d25c71382f8c8004ea469ca71e
3
+ metadata.gz: a6d6b32ab98ae36436ed32dfcf8cea7efb4154a0536df4eede2274a41801ffd1
4
+ data.tar.gz: ddf81644c830d3ae76ee0709b8f22c909e3bde55107f6b670e015851239a3551
5
5
  SHA512:
6
- metadata.gz: 753cdc171cf5660bcebfa7978464bbcf23468fea579b8ee9b78fe5be6df1179a6a2491bbabb69d07c82f18b4292ea2ad8ac2c5a79d57e85fd3385975bbf66f4c
7
- data.tar.gz: dd53a4f1b9592b414f8216d54105406db51690a31c4d045c30047c4c9d2c4fdb1752f98b51b81b2771bee9caaa7d77411039b6e38b6624a39de2d1a9cc62bc2b
6
+ metadata.gz: 8b8b4bb838b77119eb6772fa363448c0a128e8155f02208877b53c0d3f0841eb5b686b2843919dcfb60b29dc08d8cf28a17b8c254b74d70357336451dd5dab60
7
+ data.tar.gz: 509bea7d789f7c2a6d433bd0ed2e1431281287fbee19e8c8c207713a715000944dbd3cf2d91e0d40e144497bddbb32daf47191338804d93f4bd51c7c23906c34
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
 
@@ -35,6 +35,8 @@ module Google
35
35
  # * Profiles can be created in either online or offline mode, see below.
36
36
  #
37
37
  class Client
38
+ include Paths
39
+
38
40
  # @private
39
41
  attr_reader :profiler_service_stub
40
42
 
@@ -67,12 +69,12 @@ module Google
67
69
  end
68
70
  default_config = Client::Configuration.new parent_config
69
71
 
70
- default_config.timeout = 30.0
72
+ default_config.timeout = 60.0
71
73
  default_config.retry_policy = {
72
74
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
73
75
  }
74
76
 
75
- default_config.rpcs.create_profile.timeout = 3600.0
77
+ default_config.rpcs.create_profile.timeout = 3610.0
76
78
 
77
79
  default_config.rpcs.create_offline_profile.timeout = 30.0
78
80
 
@@ -370,7 +372,7 @@ module Google
370
372
  # the default parameter values, pass an empty Hash as a request object (see above).
371
373
  #
372
374
  # @param profile [::Google::Cloud::Profiler::V2::Profile, ::Hash]
373
- # Profile to update
375
+ # Profile to update.
374
376
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
375
377
  # Field mask used to specify the fields to be overwritten. Currently only
376
378
  # profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -479,9 +481,9 @@ module Google
479
481
  # * (`String`) The path to a service account key file in JSON format
480
482
  # * (`Hash`) A service account key as a Hash
481
483
  # * (`Google::Auth::Credentials`) A googleauth credentials object
482
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
484
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
483
485
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
484
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
486
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
485
487
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
486
488
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
487
489
  # * (`nil`) indicating no credentials
@@ -0,0 +1,64 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Cloud
22
+ module Profiler
23
+ module V2
24
+ module ProfilerService
25
+ # Path helper methods for the ProfilerService API.
26
+ module Paths
27
+ ##
28
+ # Create a fully-qualified Profile resource string.
29
+ #
30
+ # The resource will be in the following format:
31
+ #
32
+ # `projects/{project}/profiles/{profile}`
33
+ #
34
+ # @param project [String]
35
+ # @param profile [String]
36
+ #
37
+ # @return [::String]
38
+ def profile_path project:, profile:
39
+ raise ::ArgumentError, "project cannot contain /" if project.to_s.include? "/"
40
+
41
+ "projects/#{project}/profiles/#{profile}"
42
+ end
43
+
44
+ ##
45
+ # Create a fully-qualified Project resource string.
46
+ #
47
+ # The resource will be in the following format:
48
+ #
49
+ # `projects/{project}`
50
+ #
51
+ # @param project [String]
52
+ #
53
+ # @return [::String]
54
+ def project_path project:
55
+ "projects/#{project}"
56
+ end
57
+
58
+ extend self
59
+ end
60
+ end
61
+ end
62
+ end
63
+ end
64
+ end
@@ -37,6 +37,8 @@ module Google
37
37
  # * Profiles can be created in either online or offline mode, see below.
38
38
  #
39
39
  class Client
40
+ include Paths
41
+
40
42
  # @private
41
43
  attr_reader :profiler_service_stub
42
44
 
@@ -69,12 +71,12 @@ module Google
69
71
  end
70
72
  default_config = Client::Configuration.new parent_config
71
73
 
72
- default_config.timeout = 30.0
74
+ default_config.timeout = 60.0
73
75
  default_config.retry_policy = {
74
76
  initial_delay: 1.0, max_delay: 10.0, multiplier: 1.3, retry_codes: [14]
75
77
  }
76
78
 
77
- default_config.rpcs.create_profile.timeout = 3600.0
79
+ default_config.rpcs.create_profile.timeout = 3610.0
78
80
 
79
81
  default_config.rpcs.create_offline_profile.timeout = 30.0
80
82
 
@@ -315,7 +317,7 @@ module Google
315
317
  # the default parameter values, pass an empty Hash as a request object (see above).
316
318
  #
317
319
  # @param profile [::Google::Cloud::Profiler::V2::Profile, ::Hash]
318
- # Profile to update
320
+ # Profile to update.
319
321
  # @param update_mask [::Google::Protobuf::FieldMask, ::Hash]
320
322
  # Field mask used to specify the fields to be overwritten. Currently only
321
323
  # profile_bytes and labels fields are supported by UpdateProfile, so only
@@ -401,9 +403,9 @@ module Google
401
403
  # * (`String`) The path to a service account key file in JSON format
402
404
  # * (`Hash`) A service account key as a Hash
403
405
  # * (`Google::Auth::Credentials`) A googleauth credentials object
404
- # (see the [googleauth docs](https://googleapis.dev/ruby/googleauth/latest/index.html))
406
+ # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
405
407
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
406
- # (see the [signet docs](https://googleapis.dev/ruby/signet/latest/Signet/OAuth2/Client.html))
408
+ # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
407
409
  # * (`nil`) indicating no credentials
408
410
  # @return [::Object]
409
411
  # @!attribute [rw] scope
@@ -23,6 +23,7 @@ require "gapic/config/method"
23
23
  require "google/cloud/profiler/v2/version"
24
24
 
25
25
  require "google/cloud/profiler/v2/profiler_service/credentials"
26
+ require "google/cloud/profiler/v2/profiler_service/paths"
26
27
  require "google/cloud/profiler/v2/profiler_service/rest/client"
27
28
 
28
29
  module Google
@@ -23,6 +23,7 @@ require "gapic/config/method"
23
23
  require "google/cloud/profiler/v2/version"
24
24
 
25
25
  require "google/cloud/profiler/v2/profiler_service/credentials"
26
+ require "google/cloud/profiler/v2/profiler_service/paths"
26
27
  require "google/cloud/profiler/v2/profiler_service/client"
27
28
  require "google/cloud/profiler/v2/profiler_service/rest"
28
29
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Profiler
23
23
  module V2
24
- VERSION = "0.4.0"
24
+ VERSION = "0.6.0"
25
25
  end
26
26
  end
27
27
  end
@@ -1,52 +1,43 @@
1
+ # frozen_string_literal: true
1
2
  # Generated by the protocol buffer compiler. DO NOT EDIT!
2
3
  # source: google/devtools/cloudprofiler/v2/profiler.proto
3
4
 
4
5
  require 'google/protobuf'
5
6
 
6
7
  require 'google/api/annotations_pb'
8
+ require 'google/api/client_pb'
9
+ require 'google/api/field_behavior_pb'
10
+ require 'google/api/resource_pb'
7
11
  require 'google/protobuf/duration_pb'
8
12
  require 'google/protobuf/field_mask_pb'
9
- require 'google/api/client_pb'
10
13
 
11
- Google::Protobuf::DescriptorPool.generated_pool.build do
12
- add_file("google/devtools/cloudprofiler/v2/profiler.proto", :syntax => :proto3) do
13
- add_message "google.devtools.cloudprofiler.v2.CreateProfileRequest" do
14
- optional :parent, :string, 4
15
- optional :deployment, :message, 1, "google.devtools.cloudprofiler.v2.Deployment"
16
- repeated :profile_type, :enum, 2, "google.devtools.cloudprofiler.v2.ProfileType"
17
- end
18
- add_message "google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest" do
19
- optional :parent, :string, 1
20
- optional :profile, :message, 2, "google.devtools.cloudprofiler.v2.Profile"
21
- end
22
- add_message "google.devtools.cloudprofiler.v2.UpdateProfileRequest" do
23
- optional :profile, :message, 1, "google.devtools.cloudprofiler.v2.Profile"
24
- optional :update_mask, :message, 2, "google.protobuf.FieldMask"
25
- end
26
- add_message "google.devtools.cloudprofiler.v2.Profile" do
27
- optional :name, :string, 1
28
- optional :profile_type, :enum, 2, "google.devtools.cloudprofiler.v2.ProfileType"
29
- optional :deployment, :message, 3, "google.devtools.cloudprofiler.v2.Deployment"
30
- optional :duration, :message, 4, "google.protobuf.Duration"
31
- optional :profile_bytes, :bytes, 5
32
- map :labels, :string, :string, 6
33
- end
34
- add_message "google.devtools.cloudprofiler.v2.Deployment" do
35
- optional :project_id, :string, 1
36
- optional :target, :string, 2
37
- map :labels, :string, :string, 3
38
- end
39
- add_enum "google.devtools.cloudprofiler.v2.ProfileType" do
40
- value :PROFILE_TYPE_UNSPECIFIED, 0
41
- value :CPU, 1
42
- value :WALL, 2
43
- value :HEAP, 3
44
- value :THREADS, 4
45
- value :CONTENTION, 5
46
- value :PEAK_HEAP, 6
47
- value :HEAP_ALLOC, 7
14
+
15
+ descriptor_data = "\n/google/devtools/cloudprofiler/v2/profiler.proto\x12 google.devtools.cloudprofiler.v2\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a\x1egoogle/protobuf/duration.proto\x1a google/protobuf/field_mask.proto\"\xdf\x01\n\x14\x43reateProfileRequest\x12@\n\x06parent\x18\x04 \x01(\tB0\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12@\n\ndeployment\x18\x01 \x01(\x0b\x32,.google.devtools.cloudprofiler.v2.Deployment\x12\x43\n\x0cprofile_type\x18\x02 \x03(\x0e\x32-.google.devtools.cloudprofiler.v2.ProfileType\"\x9b\x01\n\x1b\x43reateOfflineProfileRequest\x12@\n\x06parent\x18\x01 \x01(\tB0\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12:\n\x07profile\x18\x02 \x01(\x0b\x32).google.devtools.cloudprofiler.v2.Profile\"\x83\x01\n\x14UpdateProfileRequest\x12:\n\x07profile\x18\x01 \x01(\x0b\x32).google.devtools.cloudprofiler.v2.Profile\x12/\n\x0bupdate_mask\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.FieldMask\"\xb9\x03\n\x07Profile\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x03\x12\x43\n\x0cprofile_type\x18\x02 \x01(\x0e\x32-.google.devtools.cloudprofiler.v2.ProfileType\x12@\n\ndeployment\x18\x03 \x01(\x0b\x32,.google.devtools.cloudprofiler.v2.Deployment\x12+\n\x08\x64uration\x18\x04 \x01(\x0b\x32\x19.google.protobuf.Duration\x12\x1a\n\rprofile_bytes\x18\x05 \x01(\x0c\x42\x03\xe0\x41\x04\x12J\n\x06labels\x18\x06 \x03(\x0b\x32\x35.google.devtools.cloudprofiler.v2.Profile.LabelsEntryB\x03\xe0\x41\x04\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01:P\xea\x41M\n$cloudprofiler.googleapis.com/Profile\x12%projects/{project}/profiles/{profile}\"\xa9\x01\n\nDeployment\x12\x12\n\nproject_id\x18\x01 \x01(\t\x12\x0e\n\x06target\x18\x02 \x01(\t\x12H\n\x06labels\x18\x03 \x03(\x0b\x32\x38.google.devtools.cloudprofiler.v2.Deployment.LabelsEntry\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01*\x84\x01\n\x0bProfileType\x12\x1c\n\x18PROFILE_TYPE_UNSPECIFIED\x10\x00\x12\x07\n\x03\x43PU\x10\x01\x12\x08\n\x04WALL\x10\x02\x12\x08\n\x04HEAP\x10\x03\x12\x0b\n\x07THREADS\x10\x04\x12\x0e\n\nCONTENTION\x10\x05\x12\r\n\tPEAK_HEAP\x10\x06\x12\x0e\n\nHEAP_ALLOC\x10\x07\x32\xfe\x05\n\x0fProfilerService\x12\x9f\x01\n\rCreateProfile\x12\x36.google.devtools.cloudprofiler.v2.CreateProfileRequest\x1a).google.devtools.cloudprofiler.v2.Profile\"+\x82\xd3\xe4\x93\x02%\" /v2/{parent=projects/*}/profiles:\x01*\x12\xd2\x01\n\x14\x43reateOfflineProfile\x12=.google.devtools.cloudprofiler.v2.CreateOfflineProfileRequest\x1a).google.devtools.cloudprofiler.v2.Profile\"P\x82\xd3\xe4\x93\x02\x39\"./v2/{parent=projects/*}/profiles:createOffline:\x07profile\xda\x41\x0eparent,profile\x12\xc3\x01\n\rUpdateProfile\x12\x36.google.devtools.cloudprofiler.v2.UpdateProfileRequest\x1a).google.devtools.cloudprofiler.v2.Profile\"O\x82\xd3\xe4\x93\x02\x33\x32(/v2/{profile.name=projects/*/profiles/*}:\x07profile\xda\x41\x13profile,update_mask\x1a\xad\x01\xca\x41\x1c\x63loudprofiler.googleapis.com\xd2\x41\x8a\x01https://www.googleapis.com/auth/cloud-platform,https://www.googleapis.com/auth/monitoring,https://www.googleapis.com/auth/monitoring.writeB\xda\x01\n$com.google.devtools.cloudprofiler.v2B\rProfilerProtoP\x01ZMgoogle.golang.org/genproto/googleapis/devtools/cloudprofiler/v2;cloudprofiler\xaa\x02\x18Google.Cloud.Profiler.V2\xca\x02\x18Google\\Cloud\\Profiler\\V2\xea\x02\x1bGoogle::Cloud::Profiler::V2b\x06proto3"
16
+
17
+ pool = Google::Protobuf::DescriptorPool.generated_pool
18
+
19
+ begin
20
+ pool.add_serialized_file(descriptor_data)
21
+ rescue TypeError => e
22
+ # Compatibility code: will be removed in the next major version.
23
+ require 'google/protobuf/descriptor_pb'
24
+ parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
25
+ parsed.clear_dependency
26
+ serialized = parsed.class.encode(parsed)
27
+ file = pool.add_serialized_file(serialized)
28
+ warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
29
+ imports = [
30
+ ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
31
+ ["google.protobuf.Duration", "google/protobuf/duration.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}"
48
37
  end
49
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."
50
41
  end
51
42
 
52
43
  module Google
@@ -51,6 +51,7 @@ module Google
51
51
  # status. To a gRPC client, the extension will be return as a
52
52
  # binary-serialized proto in the trailing metadata item named
53
53
  # "google.rpc.retryinfo-bin".
54
+ #
54
55
  rpc :CreateProfile, ::Google::Cloud::Profiler::V2::CreateProfileRequest, ::Google::Cloud::Profiler::V2::Profile
55
56
  # CreateOfflineProfile creates a new profile resource in the offline mode.
56
57
  # The client provides the profile to create along with the profile bytes, the
@@ -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?
@@ -0,0 +1,71 @@
1
+ # frozen_string_literal: true
2
+
3
+ # Copyright 2023 Google LLC
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # https://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Auto-generated by gapic-generator-ruby. DO NOT EDIT!
18
+
19
+
20
+ module Google
21
+ module Api
22
+ # An indicator of the behavior of a given field (for example, that a field
23
+ # is required in requests, or given as output but ignored as input).
24
+ # This **does not** change the behavior in protocol buffers itself; it only
25
+ # denotes the behavior and may affect how API tooling handles the field.
26
+ #
27
+ # Note: This enum **may** receive new values in the future.
28
+ module FieldBehavior
29
+ # Conventional default for enums. Do not use this.
30
+ FIELD_BEHAVIOR_UNSPECIFIED = 0
31
+
32
+ # Specifically denotes a field as optional.
33
+ # While all fields in protocol buffers are optional, this may be specified
34
+ # for emphasis if appropriate.
35
+ OPTIONAL = 1
36
+
37
+ # Denotes a field as required.
38
+ # This indicates that the field **must** be provided as part of the request,
39
+ # and failure to do so will cause an error (usually `INVALID_ARGUMENT`).
40
+ REQUIRED = 2
41
+
42
+ # Denotes a field as output only.
43
+ # This indicates that the field is provided in responses, but including the
44
+ # field in a request does nothing (the server *must* ignore it and
45
+ # *must not* throw an error as a result of the field's presence).
46
+ OUTPUT_ONLY = 3
47
+
48
+ # Denotes a field as input only.
49
+ # This indicates that the field is provided in requests, and the
50
+ # corresponding field is not included in output.
51
+ INPUT_ONLY = 4
52
+
53
+ # Denotes a field as immutable.
54
+ # This indicates that the field may be set once in a request to create a
55
+ # resource, but may not be changed thereafter.
56
+ IMMUTABLE = 5
57
+
58
+ # Denotes that a (repeated) field is an unordered list.
59
+ # This indicates that the service may provide the elements of the list
60
+ # in any arbitrary order, rather than the order the user originally
61
+ # provided. Additionally, the list's order may or may not be stable.
62
+ UNORDERED_LIST = 6
63
+
64
+ # Denotes that this field returns a non-empty default value if not set.
65
+ # This indicates that if the user provides the empty value in a request,
66
+ # a non-empty value will be returned. The user will not be aware of what
67
+ # non-empty value to expect.
68
+ NON_EMPTY_DEFAULT = 7
69
+ end
70
+ end
71
+ end
@@ -40,7 +40,7 @@ module Google
40
40
  end
41
41
 
42
42
  # CreateOfflineProfileRequest describes a profile resource offline creation
43
- # request. Profile field must be set.
43
+ # request.
44
44
  # @!attribute [rw] parent
45
45
  # @return [::String]
46
46
  # Parent project to create the profile in.
@@ -55,7 +55,7 @@ module Google
55
55
  # UpdateProfileRequest contains the profile to update.
56
56
  # @!attribute [rw] profile
57
57
  # @return [::Google::Cloud::Profiler::V2::Profile]
58
- # Profile to update
58
+ # Profile to update.
59
59
  # @!attribute [rw] update_mask
60
60
  # @return [::Google::Protobuf::FieldMask]
61
61
  # Field mask used to specify the fields to be overwritten. Currently only
@@ -68,7 +68,7 @@ module Google
68
68
  end
69
69
 
70
70
  # Profile resource.
71
- # @!attribute [rw] name
71
+ # @!attribute [r] name
72
72
  # @return [::String]
73
73
  # Output only. Opaque, server-assigned, unique ID for this profile.
74
74
  # @!attribute [rw] profile_type
@@ -94,7 +94,7 @@ module Google
94
94
  # @!attribute [rw] labels
95
95
  # @return [::Google::Protobuf::Map{::String => ::String}]
96
96
  # Input only. Labels associated to this specific profile. These labels will
97
- # get merged with the deployment labels for the final data set. See
97
+ # get merged with the deployment labels for the final data set. See
98
98
  # documentation on deployment labels for validation rules and limits.
99
99
  class Profile
100
100
  include ::Google::Protobuf::MessageExts
@@ -118,11 +118,11 @@ module Google
118
118
  # @!attribute [rw] target
119
119
  # @return [::String]
120
120
  # Target is the service name used to group related deployments:
121
- # * Service name for GAE Flex / Standard.
121
+ # * Service name for App Engine Flex / Standard.
122
122
  # * Cluster and container name for GKE.
123
- # * User-specified string for direct GCE profiling (e.g. Java).
123
+ # * User-specified string for direct Compute Engine profiling (e.g. Java).
124
124
  # * Job name for Dataflow.
125
- # Validation regex: `^[a-z]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
125
+ # Validation regex: `^[a-z0-9]([-a-z0-9_.]{0,253}[a-z0-9])?$`.
126
126
  # @!attribute [rw] labels
127
127
  # @return [::Google::Protobuf::Map{::String => ::String}]
128
128
  # Labels identify the deployment within the user universe and same target.
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-profiler-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.6.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-03-08 00:00:00.000000000 Z
11
+ date: 2023-06-01 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.18.0
19
+ version: 0.19.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.18.0
29
+ version: 0.19.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -177,6 +177,7 @@ files:
177
177
  - lib/google/cloud/profiler/v2/profiler_service.rb
178
178
  - lib/google/cloud/profiler/v2/profiler_service/client.rb
179
179
  - lib/google/cloud/profiler/v2/profiler_service/credentials.rb
180
+ - lib/google/cloud/profiler/v2/profiler_service/paths.rb
180
181
  - lib/google/cloud/profiler/v2/profiler_service/rest.rb
181
182
  - lib/google/cloud/profiler/v2/profiler_service/rest/client.rb
182
183
  - lib/google/cloud/profiler/v2/profiler_service/rest/service_stub.rb
@@ -186,6 +187,7 @@ files:
186
187
  - lib/google/devtools/cloudprofiler/v2/profiler_services_pb.rb
187
188
  - proto_docs/README.md
188
189
  - proto_docs/google/api/client.rb
190
+ - proto_docs/google/api/field_behavior.rb
189
191
  - proto_docs/google/api/launch_stage.rb
190
192
  - proto_docs/google/api/resource.rb
191
193
  - proto_docs/google/devtools/cloudprofiler/v2/profiler.rb