google-cloud-profiler-v2 0.7.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +72 -101
- data/lib/google/cloud/profiler/v2/export_service/client.rb +442 -0
- data/lib/google/cloud/profiler/v2/export_service/credentials.rb +53 -0
- data/lib/google/cloud/profiler/v2/export_service/paths.rb +47 -0
- data/lib/google/cloud/profiler/v2/export_service/rest/client.rb +409 -0
- data/lib/google/cloud/profiler/v2/export_service/rest/service_stub.rb +119 -0
- data/lib/google/cloud/profiler/v2/export_service/rest.rb +53 -0
- data/lib/google/cloud/profiler/v2/export_service.rb +56 -0
- data/lib/google/cloud/profiler/v2/profiler_service/client.rb +31 -8
- data/lib/google/cloud/profiler/v2/profiler_service/rest/client.rb +33 -7
- data/lib/google/cloud/profiler/v2/profiler_service/rest/service_stub.rb +14 -2
- data/lib/google/cloud/profiler/v2/rest.rb +1 -0
- data/lib/google/cloud/profiler/v2/version.rb +1 -1
- data/lib/google/cloud/profiler/v2.rb +1 -0
- data/lib/google/devtools/cloudprofiler/v2/profiler_pb.rb +3 -1
- data/lib/google/devtools/cloudprofiler/v2/profiler_services_pb.rb +18 -0
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/devtools/cloudprofiler/v2/profiler.rb +41 -0
- metadata +12 -5
@@ -35,6 +35,9 @@ module Google
|
|
35
35
|
# * Profiles can be created in either online or offline mode, see below.
|
36
36
|
#
|
37
37
|
class Client
|
38
|
+
# @private
|
39
|
+
DEFAULT_ENDPOINT_TEMPLATE = "cloudprofiler.$UNIVERSE_DOMAIN$"
|
40
|
+
|
38
41
|
include Paths
|
39
42
|
|
40
43
|
# @private
|
@@ -106,6 +109,15 @@ module Google
|
|
106
109
|
@config
|
107
110
|
end
|
108
111
|
|
112
|
+
##
|
113
|
+
# The effective universe domain
|
114
|
+
#
|
115
|
+
# @return [String]
|
116
|
+
#
|
117
|
+
def universe_domain
|
118
|
+
@profiler_service_stub.universe_domain
|
119
|
+
end
|
120
|
+
|
109
121
|
##
|
110
122
|
# Create a new ProfilerService client object.
|
111
123
|
#
|
@@ -139,8 +151,9 @@ module Google
|
|
139
151
|
credentials = @config.credentials
|
140
152
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
141
153
|
# but only if the default endpoint does not have a region prefix.
|
142
|
-
enable_self_signed_jwt = @config.endpoint
|
143
|
-
|
154
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
155
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
156
|
+
!@config.endpoint.split(".").first.include?("-"))
|
144
157
|
credentials ||= Credentials.default scope: @config.scope,
|
145
158
|
enable_self_signed_jwt: enable_self_signed_jwt
|
146
159
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -151,8 +164,10 @@ module Google
|
|
151
164
|
|
152
165
|
@profiler_service_stub = ::Gapic::ServiceStub.new(
|
153
166
|
::Google::Cloud::Profiler::V2::ProfilerService::Stub,
|
154
|
-
credentials:
|
155
|
-
endpoint:
|
167
|
+
credentials: credentials,
|
168
|
+
endpoint: @config.endpoint,
|
169
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
170
|
+
universe_domain: @config.universe_domain,
|
156
171
|
channel_args: @config.channel_args,
|
157
172
|
interceptors: @config.interceptors,
|
158
173
|
channel_pool_config: @config.channel_pool
|
@@ -474,9 +489,9 @@ module Google
|
|
474
489
|
# end
|
475
490
|
#
|
476
491
|
# @!attribute [rw] endpoint
|
477
|
-
#
|
478
|
-
#
|
479
|
-
# @return [::String]
|
492
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
493
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
494
|
+
# @return [::String,nil]
|
480
495
|
# @!attribute [rw] credentials
|
481
496
|
# Credentials to send with calls. You may provide any of the following types:
|
482
497
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -522,13 +537,20 @@ module Google
|
|
522
537
|
# @!attribute [rw] quota_project
|
523
538
|
# A separate project against which to charge quota.
|
524
539
|
# @return [::String]
|
540
|
+
# @!attribute [rw] universe_domain
|
541
|
+
# The universe domain within which to make requests. This determines the
|
542
|
+
# default endpoint URL. The default value of nil uses the environment
|
543
|
+
# universe (usually the default "googleapis.com" universe).
|
544
|
+
# @return [::String,nil]
|
525
545
|
#
|
526
546
|
class Configuration
|
527
547
|
extend ::Gapic::Config
|
528
548
|
|
549
|
+
# @private
|
550
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
529
551
|
DEFAULT_ENDPOINT = "cloudprofiler.googleapis.com"
|
530
552
|
|
531
|
-
config_attr :endpoint,
|
553
|
+
config_attr :endpoint, nil, ::String, nil
|
532
554
|
config_attr :credentials, nil do |value|
|
533
555
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
534
556
|
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
@@ -543,6 +565,7 @@ module Google
|
|
543
565
|
config_attr :metadata, nil, ::Hash, nil
|
544
566
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
545
567
|
config_attr :quota_project, nil, ::String, nil
|
568
|
+
config_attr :universe_domain, nil, ::String, nil
|
546
569
|
|
547
570
|
# @private
|
548
571
|
def initialize parent_config = nil
|
@@ -37,6 +37,9 @@ module Google
|
|
37
37
|
# * Profiles can be created in either online or offline mode, see below.
|
38
38
|
#
|
39
39
|
class Client
|
40
|
+
# @private
|
41
|
+
DEFAULT_ENDPOINT_TEMPLATE = "cloudprofiler.$UNIVERSE_DOMAIN$"
|
42
|
+
|
40
43
|
include Paths
|
41
44
|
|
42
45
|
# @private
|
@@ -108,6 +111,15 @@ module Google
|
|
108
111
|
@config
|
109
112
|
end
|
110
113
|
|
114
|
+
##
|
115
|
+
# The effective universe domain
|
116
|
+
#
|
117
|
+
# @return [String]
|
118
|
+
#
|
119
|
+
def universe_domain
|
120
|
+
@profiler_service_stub.universe_domain
|
121
|
+
end
|
122
|
+
|
111
123
|
##
|
112
124
|
# Create a new ProfilerService REST client object.
|
113
125
|
#
|
@@ -135,8 +147,9 @@ module Google
|
|
135
147
|
credentials = @config.credentials
|
136
148
|
# Use self-signed JWT if the endpoint is unchanged from default,
|
137
149
|
# but only if the default endpoint does not have a region prefix.
|
138
|
-
enable_self_signed_jwt = @config.endpoint
|
139
|
-
|
150
|
+
enable_self_signed_jwt = @config.endpoint.nil? ||
|
151
|
+
(@config.endpoint == Configuration::DEFAULT_ENDPOINT &&
|
152
|
+
!@config.endpoint.split(".").first.include?("-"))
|
140
153
|
credentials ||= Credentials.default scope: @config.scope,
|
141
154
|
enable_self_signed_jwt: enable_self_signed_jwt
|
142
155
|
if credentials.is_a?(::String) || credentials.is_a?(::Hash)
|
@@ -146,7 +159,12 @@ module Google
|
|
146
159
|
@quota_project_id = @config.quota_project
|
147
160
|
@quota_project_id ||= credentials.quota_project_id if credentials.respond_to? :quota_project_id
|
148
161
|
|
149
|
-
@profiler_service_stub = ::Google::Cloud::Profiler::V2::ProfilerService::Rest::ServiceStub.new
|
162
|
+
@profiler_service_stub = ::Google::Cloud::Profiler::V2::ProfilerService::Rest::ServiceStub.new(
|
163
|
+
endpoint: @config.endpoint,
|
164
|
+
endpoint_template: DEFAULT_ENDPOINT_TEMPLATE,
|
165
|
+
universe_domain: @config.universe_domain,
|
166
|
+
credentials: credentials
|
167
|
+
)
|
150
168
|
end
|
151
169
|
|
152
170
|
# Service calls
|
@@ -443,9 +461,9 @@ module Google
|
|
443
461
|
# end
|
444
462
|
#
|
445
463
|
# @!attribute [rw] endpoint
|
446
|
-
#
|
447
|
-
#
|
448
|
-
# @return [::String]
|
464
|
+
# A custom service endpoint, as a hostname or hostname:port. The default is
|
465
|
+
# nil, indicating to use the default endpoint in the current universe domain.
|
466
|
+
# @return [::String,nil]
|
449
467
|
# @!attribute [rw] credentials
|
450
468
|
# Credentials to send with calls. You may provide any of the following types:
|
451
469
|
# * (`String`) The path to a service account key file in JSON format
|
@@ -482,13 +500,20 @@ module Google
|
|
482
500
|
# @!attribute [rw] quota_project
|
483
501
|
# A separate project against which to charge quota.
|
484
502
|
# @return [::String]
|
503
|
+
# @!attribute [rw] universe_domain
|
504
|
+
# The universe domain within which to make requests. This determines the
|
505
|
+
# default endpoint URL. The default value of nil uses the environment
|
506
|
+
# universe (usually the default "googleapis.com" universe).
|
507
|
+
# @return [::String,nil]
|
485
508
|
#
|
486
509
|
class Configuration
|
487
510
|
extend ::Gapic::Config
|
488
511
|
|
512
|
+
# @private
|
513
|
+
# The endpoint specific to the default "googleapis.com" universe. Deprecated.
|
489
514
|
DEFAULT_ENDPOINT = "cloudprofiler.googleapis.com"
|
490
515
|
|
491
|
-
config_attr :endpoint,
|
516
|
+
config_attr :endpoint, nil, ::String, nil
|
492
517
|
config_attr :credentials, nil do |value|
|
493
518
|
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
494
519
|
allowed.any? { |klass| klass === value }
|
@@ -500,6 +525,7 @@ module Google
|
|
500
525
|
config_attr :metadata, nil, ::Hash, nil
|
501
526
|
config_attr :retry_policy, nil, ::Hash, ::Proc, nil
|
502
527
|
config_attr :quota_project, nil, ::String, nil
|
528
|
+
config_attr :universe_domain, nil, ::String, nil
|
503
529
|
|
504
530
|
# @private
|
505
531
|
def initialize parent_config = nil
|
@@ -30,16 +30,28 @@ module Google
|
|
30
30
|
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
|
-
def initialize endpoint:, credentials:
|
33
|
+
def initialize endpoint:, endpoint_template:, universe_domain:, credentials:
|
34
34
|
# These require statements are intentionally placed here to initialize
|
35
35
|
# the REST modules only when it's required.
|
36
36
|
require "gapic/rest"
|
37
37
|
|
38
|
-
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
38
|
+
@client_stub = ::Gapic::Rest::ClientStub.new endpoint: endpoint,
|
39
|
+
endpoint_template: endpoint_template,
|
40
|
+
universe_domain: universe_domain,
|
41
|
+
credentials: credentials,
|
39
42
|
numeric_enums: true,
|
40
43
|
raise_faraday_errors: false
|
41
44
|
end
|
42
45
|
|
46
|
+
##
|
47
|
+
# The effective universe domain
|
48
|
+
#
|
49
|
+
# @return [String]
|
50
|
+
#
|
51
|
+
def universe_domain
|
52
|
+
@client_stub.universe_domain
|
53
|
+
end
|
54
|
+
|
43
55
|
##
|
44
56
|
# Baseline implementation for the create_profile REST call
|
45
57
|
#
|
@@ -12,7 +12,7 @@ require 'google/protobuf/duration_pb'
|
|
12
12
|
require 'google/protobuf/field_mask_pb'
|
13
13
|
|
14
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\
|
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\"\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\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.write2\xe9\x02\n\rExportService\x12\xa7\x01\n\x0cListProfiles\x12\x35.google.devtools.cloudprofiler.v2.ListProfilesRequest\x1a\x36.google.devtools.cloudprofiler.v2.ListProfilesResponse\"(\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"
|
16
16
|
|
17
17
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
18
18
|
|
@@ -49,6 +49,8 @@ module Google
|
|
49
49
|
UpdateProfileRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudprofiler.v2.UpdateProfileRequest").msgclass
|
50
50
|
Profile = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudprofiler.v2.Profile").msgclass
|
51
51
|
Deployment = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudprofiler.v2.Deployment").msgclass
|
52
|
+
ListProfilesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudprofiler.v2.ListProfilesRequest").msgclass
|
53
|
+
ListProfilesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudprofiler.v2.ListProfilesResponse").msgclass
|
52
54
|
ProfileType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.devtools.cloudprofiler.v2.ProfileType").enummodule
|
53
55
|
end
|
54
56
|
end
|
@@ -64,6 +64,24 @@ module Google
|
|
64
64
|
rpc :UpdateProfile, ::Google::Cloud::Profiler::V2::UpdateProfileRequest, ::Google::Cloud::Profiler::V2::Profile
|
65
65
|
end
|
66
66
|
|
67
|
+
Stub = Service.rpc_stub_class
|
68
|
+
end
|
69
|
+
module ExportService
|
70
|
+
# Service allows existing Cloud Profiler customers to export their profile data
|
71
|
+
# out of Google Cloud.
|
72
|
+
class Service
|
73
|
+
|
74
|
+
include ::GRPC::GenericService
|
75
|
+
|
76
|
+
self.marshal_class_method = :encode
|
77
|
+
self.unmarshal_class_method = :decode
|
78
|
+
self.service_name = 'google.devtools.cloudprofiler.v2.ExportService'
|
79
|
+
|
80
|
+
# Lists profiles which have been collected so far and for which the caller
|
81
|
+
# has permission to view.
|
82
|
+
rpc :ListProfiles, ::Google::Cloud::Profiler::V2::ListProfilesRequest, ::Google::Cloud::Profiler::V2::ListProfilesResponse
|
83
|
+
end
|
84
|
+
|
67
85
|
Stub = Service.rpc_stub_class
|
68
86
|
end
|
69
87
|
end
|
@@ -21,6 +21,7 @@ module Google
|
|
21
21
|
module Api
|
22
22
|
# Required information for every language.
|
23
23
|
# @!attribute [rw] reference_docs_uri
|
24
|
+
# @deprecated This field is deprecated and may be removed in the next major version update.
|
24
25
|
# @return [::String]
|
25
26
|
# Link to automatically generated reference documentation. Example:
|
26
27
|
# https://cloud.google.com/nodejs/docs/reference/asset/latest
|
@@ -304,6 +305,19 @@ module Google
|
|
304
305
|
# seconds: 360 # 6 minutes
|
305
306
|
# total_poll_timeout:
|
306
307
|
# seconds: 54000 # 90 minutes
|
308
|
+
# @!attribute [rw] auto_populated_fields
|
309
|
+
# @return [::Array<::String>]
|
310
|
+
# List of top-level fields of the request message, that should be
|
311
|
+
# automatically populated by the client libraries based on their
|
312
|
+
# (google.api.field_info).format. Currently supported format: UUID4.
|
313
|
+
#
|
314
|
+
# Example of a YAML configuration:
|
315
|
+
#
|
316
|
+
# publishing:
|
317
|
+
# method_settings:
|
318
|
+
# - selector: google.example.v1.ExampleService.CreateExample
|
319
|
+
# auto_populated_fields:
|
320
|
+
# - request_id
|
307
321
|
class MethodSettings
|
308
322
|
include ::Google::Protobuf::MessageExts
|
309
323
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -152,6 +152,47 @@ module Google
|
|
152
152
|
end
|
153
153
|
end
|
154
154
|
|
155
|
+
# ListProfilesRequest contains request parameters for listing profiles for
|
156
|
+
# deployments in projects which the user has permissions to view.
|
157
|
+
# @!attribute [rw] parent
|
158
|
+
# @return [::String]
|
159
|
+
# Required. The parent, which owns this collection of profiles.
|
160
|
+
# Format: projects/\\{user_project_id}
|
161
|
+
# @!attribute [rw] page_size
|
162
|
+
# @return [::Integer]
|
163
|
+
# The maximum number of items to return.
|
164
|
+
# Default page_size is 1000.
|
165
|
+
# Max limit is 10000.
|
166
|
+
# @!attribute [rw] page_token
|
167
|
+
# @return [::String]
|
168
|
+
# The token to continue pagination and get profiles from a particular page.
|
169
|
+
# When paginating, all other parameters provided to `ListProfiles` must match
|
170
|
+
# the call that provided the page token.
|
171
|
+
class ListProfilesRequest
|
172
|
+
include ::Google::Protobuf::MessageExts
|
173
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
174
|
+
end
|
175
|
+
|
176
|
+
# ListProfileResponse contains the list of collected profiles for deployments
|
177
|
+
# in projects which the user has permissions to view.
|
178
|
+
# @!attribute [rw] profiles
|
179
|
+
# @return [::Array<::Google::Cloud::Profiler::V2::Profile>]
|
180
|
+
# List of profiles fetched.
|
181
|
+
# @!attribute [rw] next_page_token
|
182
|
+
# @return [::String]
|
183
|
+
# Token to receive the next page of results.
|
184
|
+
# This field maybe empty if there are no more profiles to fetch.
|
185
|
+
# @!attribute [rw] skipped_profiles
|
186
|
+
# @return [::Integer]
|
187
|
+
# Number of profiles that were skipped in the current page since they were
|
188
|
+
# not able to be fetched successfully. This should typically be zero. A
|
189
|
+
# non-zero value may indicate a transient failure, in which case if the
|
190
|
+
# number is too high for your use case, the call may be retried.
|
191
|
+
class ListProfilesResponse
|
192
|
+
include ::Google::Protobuf::MessageExts
|
193
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
194
|
+
end
|
195
|
+
|
155
196
|
# ProfileType is type of profiling data.
|
156
197
|
# NOTE: the enumeration member names are used (in lowercase) as unique string
|
157
198
|
# identifiers of profile types, so they must not be renamed.
|
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
|
+
version: 0.9.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:
|
11
|
+
date: 2024-01-11 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.21.1
|
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.21.1
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -174,6 +174,13 @@ files:
|
|
174
174
|
- README.md
|
175
175
|
- lib/google-cloud-profiler-v2.rb
|
176
176
|
- lib/google/cloud/profiler/v2.rb
|
177
|
+
- lib/google/cloud/profiler/v2/export_service.rb
|
178
|
+
- lib/google/cloud/profiler/v2/export_service/client.rb
|
179
|
+
- lib/google/cloud/profiler/v2/export_service/credentials.rb
|
180
|
+
- lib/google/cloud/profiler/v2/export_service/paths.rb
|
181
|
+
- lib/google/cloud/profiler/v2/export_service/rest.rb
|
182
|
+
- lib/google/cloud/profiler/v2/export_service/rest/client.rb
|
183
|
+
- lib/google/cloud/profiler/v2/export_service/rest/service_stub.rb
|
177
184
|
- lib/google/cloud/profiler/v2/profiler_service.rb
|
178
185
|
- lib/google/cloud/profiler/v2/profiler_service/client.rb
|
179
186
|
- lib/google/cloud/profiler/v2/profiler_service/credentials.rb
|
@@ -212,7 +219,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
212
219
|
- !ruby/object:Gem::Version
|
213
220
|
version: '0'
|
214
221
|
requirements: []
|
215
|
-
rubygems_version: 3.
|
222
|
+
rubygems_version: 3.5.3
|
216
223
|
signing_key:
|
217
224
|
specification_version: 4
|
218
225
|
summary: Manages continuous profiling information.
|