google-cloud-profiler-v2 1.4.0 → 1.5.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: faa74d1ec9f6dd81c98c248171f6cb7d2507875d8d4e44d06f0c5785773a5f75
4
- data.tar.gz: 15df912ef2820d87ea64b1aab8259cd5e1f8b42d75926f9ed25cd87a0a3ecfe9
3
+ metadata.gz: 1567f65a02babac510d82f6f6fe2a69aeb5e8bd13c78271a3fd28920a5529361
4
+ data.tar.gz: 22de5d4a2e17248680582ec70afa9d70d577981e7222f829c38b159ca324c7a7
5
5
  SHA512:
6
- metadata.gz: a119ac0152eadba4f9d3a53d706f2c1d5e64974fe538b7eb91906c203b666885eaeac800f452c967030a36ab22f627bc3fa27818bf6af09c8cd76434d3268f28
7
- data.tar.gz: 55b43799e28087abcf0741d056392c387a459f31d194a1fcd3516d867397274f1a697379cdf2e80c93d6db24486357e1bc51087dd31e5d1b19d8aee5b2f3dff5
6
+ metadata.gz: 312c1d91d4a6e8bee36ffade83ae932239919a5119c4ee32636f20a7a388cfc333ac46c30351e76b39ff6c2949bc4785471adeb0e61e27869f843666b4e7b67d
7
+ data.tar.gz: 0340cd945f2d0ef21b6d90b9ed28902c69f8a0f5f5134511c8335266ba3710567d87a52e26a09a08da41865e715eaa1f4ca5400a057580ed2dccb211bdf17a49
@@ -325,8 +325,6 @@ module Google
325
325
  # @return [::String,nil]
326
326
  # @!attribute [rw] credentials
327
327
  # Credentials to send with calls. You may provide any of the following types:
328
- # * (`String`) The path to a service account key file in JSON format
329
- # * (`Hash`) A service account key as a Hash
330
328
  # * (`Google::Auth::Credentials`) A googleauth credentials object
331
329
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
332
330
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -335,7 +333,26 @@ module Google
335
333
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
336
334
  # * (`nil`) indicating no credentials
337
335
  #
338
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
336
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
337
+ # is deprecated. Providing an unvalidated credential configuration to
338
+ # Google APIs can compromise the security of your systems and data.
339
+ #
340
+ # @example
341
+ #
342
+ # # The recommended way to provide credentials is to use the `make_creds` method
343
+ # # on the appropriate credentials class for your environment.
344
+ #
345
+ # require "googleauth"
346
+ #
347
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
348
+ # json_key_io: ::File.open("/path/to/keyfile.json")
349
+ # )
350
+ #
351
+ # client = ::Google::Cloud::Profiler::V2::ExportService::Client.new do |config|
352
+ # config.credentials = credentials
353
+ # end
354
+ #
355
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
339
356
  # external source for authentication to Google Cloud, you must validate it before
340
357
  # providing it to a Google API client library. Providing an unvalidated credential
341
358
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -531,8 +531,6 @@ module Google
531
531
  # @return [::String,nil]
532
532
  # @!attribute [rw] credentials
533
533
  # Credentials to send with calls. You may provide any of the following types:
534
- # * (`String`) The path to a service account key file in JSON format
535
- # * (`Hash`) A service account key as a Hash
536
534
  # * (`Google::Auth::Credentials`) A googleauth credentials object
537
535
  # (see the [googleauth docs](https://rubydoc.info/gems/googleauth/Google/Auth/Credentials))
538
536
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
@@ -541,7 +539,26 @@ module Google
541
539
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
542
540
  # * (`nil`) indicating no credentials
543
541
  #
544
- # Warning: If you accept a credential configuration (JSON file or Hash) from an
542
+ # @note Warning: Passing a `String` to a keyfile path or a `Hash` of credentials
543
+ # is deprecated. Providing an unvalidated credential configuration to
544
+ # Google APIs can compromise the security of your systems and data.
545
+ #
546
+ # @example
547
+ #
548
+ # # The recommended way to provide credentials is to use the `make_creds` method
549
+ # # on the appropriate credentials class for your environment.
550
+ #
551
+ # require "googleauth"
552
+ #
553
+ # credentials = ::Google::Auth::ServiceAccountCredentials.make_creds(
554
+ # json_key_io: ::File.open("/path/to/keyfile.json")
555
+ # )
556
+ #
557
+ # client = ::Google::Cloud::Profiler::V2::ProfilerService::Client.new do |config|
558
+ # config.credentials = credentials
559
+ # end
560
+ #
561
+ # @note Warning: If you accept a credential configuration (JSON file or Hash) from an
545
562
  # external source for authentication to Google Cloud, you must validate it before
546
563
  # providing it to a Google API client library. Providing an unvalidated credential
547
564
  # configuration to Google APIs can compromise the security of your systems and data.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Profiler
23
23
  module V2
24
- VERSION = "1.4.0"
24
+ VERSION = "1.5.0"
25
25
  end
26
26
  end
27
27
  end
@@ -15,32 +15,8 @@ require 'google/protobuf/timestamp_pb'
15
15
 
16
16
  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\x1a\x1fgoogle/protobuf/timestamp.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\"\xee\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\x12\x33\n\nstart_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\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\"\x81\x01\n\x13ListProfilesRequest\x12\x43\n\x06parent\x18\x01 \x01(\tB3\xe0\x41\x02\xfa\x41-\n+cloudresourcemanager.googleapis.com/Project\x12\x11\n\tpage_size\x18\x02 \x01(\x05\x12\x12\n\npage_token\x18\x03 \x01(\t\"\x86\x01\n\x14ListProfilesResponse\x12;\n\x08profiles\x18\x01 \x03(\x0b\x32).google.devtools.cloudprofiler.v2.Profile\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x18\n\x10skipped_profiles\x18\x03 \x01(\x05*\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\xda\x41\x0eparent,profile\x82\xd3\xe4\x93\x02\x39\"./v2/{parent=projects/*}/profiles:createOffline:\x07profile\x12\xc3\x01\n\rUpdateProfile\x12\x36.google.devtools.cloudprofiler.v2.UpdateProfileRequest\x1a).google.devtools.cloudprofiler.v2.Profile\"O\xda\x41\x13profile,update_mask\x82\xd3\xe4\x93\x02\x33\x32(/v2/{profile.name=projects/*/profiles/*}:\x07profile\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.write2\xf2\x02\n\rExportService\x12\xb0\x01\n\x0cListProfiles\x12\x35.google.devtools.cloudprofiler.v2.ListProfilesRequest\x1a\x36.google.devtools.cloudprofiler.v2.ListProfilesResponse\"1\xda\x41\x06parent\x82\xd3\xe4\x93\x02\"\x12 /v2/{parent=projects/*}/profiles\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\xd4\x01\n$com.google.devtools.cloudprofiler.v2B\rProfilerProtoP\x01ZGcloud.google.com/go/cloudprofiler/apiv2/cloudprofilerpb;cloudprofilerpb\xaa\x02\x18Google.Cloud.Profiler.V2\xca\x02\x18Google\\Cloud\\Profiler\\V2\xea\x02\x1bGoogle::Cloud::Profiler::V2b\x06proto3"
17
17
 
18
- pool = Google::Protobuf::DescriptorPool.generated_pool
19
-
20
- begin
21
- pool.add_serialized_file(descriptor_data)
22
- rescue TypeError
23
- # Compatibility code: will be removed in the next major version.
24
- require 'google/protobuf/descriptor_pb'
25
- parsed = Google::Protobuf::FileDescriptorProto.decode(descriptor_data)
26
- parsed.clear_dependency
27
- serialized = parsed.class.encode(parsed)
28
- file = pool.add_serialized_file(serialized)
29
- warn "Warning: Protobuf detected an import path issue while loading generated file #{__FILE__}"
30
- imports = [
31
- ["google.protobuf.FieldMask", "google/protobuf/field_mask.proto"],
32
- ["google.protobuf.Duration", "google/protobuf/duration.proto"],
33
- ["google.protobuf.Timestamp", "google/protobuf/timestamp.proto"],
34
- ]
35
- imports.each do |type_name, expected_filename|
36
- import_file = pool.lookup(type_name).file_descriptor
37
- if import_file.name != expected_filename
38
- warn "- #{file.name} imports #{expected_filename}, but that import was loaded as #{import_file.name}"
39
- end
40
- end
41
- warn "Each proto file must use a consistent fully-qualified name."
42
- warn "This will become an error in the next major version."
43
- end
18
+ pool = ::Google::Protobuf::DescriptorPool.generated_pool
19
+ pool.add_serialized_file(descriptor_data)
44
20
 
45
21
  module Google
46
22
  module Cloud
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-profiler-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
@@ -93,7 +93,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
93
93
  requirements:
94
94
  - - ">="
95
95
  - !ruby/object:Gem::Version
96
- version: '3.1'
96
+ version: '3.2'
97
97
  required_rubygems_version: !ruby/object:Gem::Requirement
98
98
  requirements:
99
99
  - - ">="