google-api-client 0.9.pre3 → 0.9.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
@@ -0,0 +1,410 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module ClouddebuggerV2
|
24
|
+
|
25
|
+
class RegisterDebuggeeRequest
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
|
+
end
|
28
|
+
|
29
|
+
class Debuggee
|
30
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
31
|
+
end
|
32
|
+
|
33
|
+
class StatusMessage
|
34
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
35
|
+
end
|
36
|
+
|
37
|
+
class FormatMessage
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
|
+
end
|
40
|
+
|
41
|
+
class SourceContext
|
42
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
43
|
+
end
|
44
|
+
|
45
|
+
class CloudRepoSourceContext
|
46
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
47
|
+
end
|
48
|
+
|
49
|
+
class RepoId
|
50
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
|
+
end
|
52
|
+
|
53
|
+
class ProjectRepoId
|
54
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
55
|
+
end
|
56
|
+
|
57
|
+
class AliasContext
|
58
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
59
|
+
end
|
60
|
+
|
61
|
+
class CloudWorkspaceSourceContext
|
62
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
|
+
end
|
64
|
+
|
65
|
+
class CloudWorkspaceId
|
66
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
67
|
+
end
|
68
|
+
|
69
|
+
class GerritSourceContext
|
70
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
71
|
+
end
|
72
|
+
|
73
|
+
class GitSourceContext
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
|
+
end
|
76
|
+
|
77
|
+
class ExtendedSourceContext
|
78
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
79
|
+
end
|
80
|
+
|
81
|
+
class RegisterDebuggeeResponse
|
82
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
83
|
+
end
|
84
|
+
|
85
|
+
class ListActiveBreakpointsResponse
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
|
+
end
|
88
|
+
|
89
|
+
class Breakpoint
|
90
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
91
|
+
end
|
92
|
+
|
93
|
+
class SourceLocation
|
94
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
95
|
+
end
|
96
|
+
|
97
|
+
class StackFrame
|
98
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
|
+
end
|
100
|
+
|
101
|
+
class Variable
|
102
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
103
|
+
end
|
104
|
+
|
105
|
+
class UpdateActiveBreakpointRequest
|
106
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
107
|
+
end
|
108
|
+
|
109
|
+
class UpdateActiveBreakpointResponse
|
110
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
|
+
end
|
112
|
+
|
113
|
+
class SetBreakpointResponse
|
114
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
115
|
+
end
|
116
|
+
|
117
|
+
class GetBreakpointResponse
|
118
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
119
|
+
end
|
120
|
+
|
121
|
+
class Empty
|
122
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
|
+
end
|
124
|
+
|
125
|
+
class ListBreakpointsResponse
|
126
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
127
|
+
end
|
128
|
+
|
129
|
+
class ListDebuggeesResponse
|
130
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
131
|
+
end
|
132
|
+
|
133
|
+
class RegisterDebuggeeRequest
|
134
|
+
# @private
|
135
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
136
|
+
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
137
|
+
|
138
|
+
end
|
139
|
+
end
|
140
|
+
|
141
|
+
class Debuggee
|
142
|
+
# @private
|
143
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
144
|
+
property :id, as: 'id'
|
145
|
+
property :project, as: 'project'
|
146
|
+
property :uniquifier, as: 'uniquifier'
|
147
|
+
property :description, as: 'description'
|
148
|
+
property :is_inactive, as: 'isInactive'
|
149
|
+
property :agent_version, as: 'agentVersion'
|
150
|
+
property :is_disabled, as: 'isDisabled'
|
151
|
+
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
152
|
+
|
153
|
+
collection :source_contexts, as: 'sourceContexts', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
|
154
|
+
|
155
|
+
collection :ext_source_contexts, as: 'extSourceContexts', class: Google::Apis::ClouddebuggerV2::ExtendedSourceContext, decorator: Google::Apis::ClouddebuggerV2::ExtendedSourceContext::Representation
|
156
|
+
|
157
|
+
hash :labels, as: 'labels'
|
158
|
+
end
|
159
|
+
end
|
160
|
+
|
161
|
+
class StatusMessage
|
162
|
+
# @private
|
163
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
164
|
+
property :is_error, as: 'isError'
|
165
|
+
property :refers_to, as: 'refersTo'
|
166
|
+
property :description, as: 'description', class: Google::Apis::ClouddebuggerV2::FormatMessage, decorator: Google::Apis::ClouddebuggerV2::FormatMessage::Representation
|
167
|
+
|
168
|
+
end
|
169
|
+
end
|
170
|
+
|
171
|
+
class FormatMessage
|
172
|
+
# @private
|
173
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
174
|
+
property :format, as: 'format'
|
175
|
+
collection :parameters, as: 'parameters'
|
176
|
+
end
|
177
|
+
end
|
178
|
+
|
179
|
+
class SourceContext
|
180
|
+
# @private
|
181
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
182
|
+
property :cloud_repo, as: 'cloudRepo', class: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudRepoSourceContext::Representation
|
183
|
+
|
184
|
+
property :cloud_workspace, as: 'cloudWorkspace', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext::Representation
|
185
|
+
|
186
|
+
property :gerrit, as: 'gerrit', class: Google::Apis::ClouddebuggerV2::GerritSourceContext, decorator: Google::Apis::ClouddebuggerV2::GerritSourceContext::Representation
|
187
|
+
|
188
|
+
property :git, as: 'git', class: Google::Apis::ClouddebuggerV2::GitSourceContext, decorator: Google::Apis::ClouddebuggerV2::GitSourceContext::Representation
|
189
|
+
|
190
|
+
end
|
191
|
+
end
|
192
|
+
|
193
|
+
class CloudRepoSourceContext
|
194
|
+
# @private
|
195
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
196
|
+
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
197
|
+
|
198
|
+
property :revision_id, as: 'revisionId'
|
199
|
+
property :alias_name, as: 'aliasName'
|
200
|
+
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
201
|
+
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
205
|
+
class RepoId
|
206
|
+
# @private
|
207
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
208
|
+
property :project_repo_id, as: 'projectRepoId', class: Google::Apis::ClouddebuggerV2::ProjectRepoId, decorator: Google::Apis::ClouddebuggerV2::ProjectRepoId::Representation
|
209
|
+
|
210
|
+
property :uid, as: 'uid'
|
211
|
+
end
|
212
|
+
end
|
213
|
+
|
214
|
+
class ProjectRepoId
|
215
|
+
# @private
|
216
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
217
|
+
property :project_id, as: 'projectId'
|
218
|
+
property :repo_name, as: 'repoName'
|
219
|
+
end
|
220
|
+
end
|
221
|
+
|
222
|
+
class AliasContext
|
223
|
+
# @private
|
224
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
225
|
+
property :kind, as: 'kind'
|
226
|
+
property :name, as: 'name'
|
227
|
+
end
|
228
|
+
end
|
229
|
+
|
230
|
+
class CloudWorkspaceSourceContext
|
231
|
+
# @private
|
232
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
233
|
+
property :workspace_id, as: 'workspaceId', class: Google::Apis::ClouddebuggerV2::CloudWorkspaceId, decorator: Google::Apis::ClouddebuggerV2::CloudWorkspaceId::Representation
|
234
|
+
|
235
|
+
property :snapshot_id, as: 'snapshotId'
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
class CloudWorkspaceId
|
240
|
+
# @private
|
241
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
242
|
+
property :repo_id, as: 'repoId', class: Google::Apis::ClouddebuggerV2::RepoId, decorator: Google::Apis::ClouddebuggerV2::RepoId::Representation
|
243
|
+
|
244
|
+
property :name, as: 'name'
|
245
|
+
end
|
246
|
+
end
|
247
|
+
|
248
|
+
class GerritSourceContext
|
249
|
+
# @private
|
250
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
251
|
+
property :host_uri, as: 'hostUri'
|
252
|
+
property :gerrit_project, as: 'gerritProject'
|
253
|
+
property :revision_id, as: 'revisionId'
|
254
|
+
property :alias_name, as: 'aliasName'
|
255
|
+
property :alias_context, as: 'aliasContext', class: Google::Apis::ClouddebuggerV2::AliasContext, decorator: Google::Apis::ClouddebuggerV2::AliasContext::Representation
|
256
|
+
|
257
|
+
end
|
258
|
+
end
|
259
|
+
|
260
|
+
class GitSourceContext
|
261
|
+
# @private
|
262
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
263
|
+
property :url, as: 'url'
|
264
|
+
property :revision_id, as: 'revisionId'
|
265
|
+
end
|
266
|
+
end
|
267
|
+
|
268
|
+
class ExtendedSourceContext
|
269
|
+
# @private
|
270
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
271
|
+
property :context, as: 'context', class: Google::Apis::ClouddebuggerV2::SourceContext, decorator: Google::Apis::ClouddebuggerV2::SourceContext::Representation
|
272
|
+
|
273
|
+
hash :labels, as: 'labels'
|
274
|
+
end
|
275
|
+
end
|
276
|
+
|
277
|
+
class RegisterDebuggeeResponse
|
278
|
+
# @private
|
279
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
280
|
+
property :debuggee, as: 'debuggee', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
281
|
+
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
class ListActiveBreakpointsResponse
|
286
|
+
# @private
|
287
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
288
|
+
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
289
|
+
|
290
|
+
property :next_wait_token, as: 'nextWaitToken'
|
291
|
+
property :wait_expired, as: 'waitExpired'
|
292
|
+
end
|
293
|
+
end
|
294
|
+
|
295
|
+
class Breakpoint
|
296
|
+
# @private
|
297
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
298
|
+
property :id, as: 'id'
|
299
|
+
property :action, as: 'action'
|
300
|
+
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
301
|
+
|
302
|
+
property :condition, as: 'condition'
|
303
|
+
collection :expressions, as: 'expressions'
|
304
|
+
property :log_message_format, as: 'logMessageFormat'
|
305
|
+
property :log_level, as: 'logLevel'
|
306
|
+
property :is_final_state, as: 'isFinalState'
|
307
|
+
property :create_time, as: 'createTime'
|
308
|
+
property :final_time, as: 'finalTime'
|
309
|
+
property :user_email, as: 'userEmail'
|
310
|
+
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
311
|
+
|
312
|
+
collection :stack_frames, as: 'stackFrames', class: Google::Apis::ClouddebuggerV2::StackFrame, decorator: Google::Apis::ClouddebuggerV2::StackFrame::Representation
|
313
|
+
|
314
|
+
collection :evaluated_expressions, as: 'evaluatedExpressions', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
315
|
+
|
316
|
+
collection :variable_table, as: 'variableTable', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
317
|
+
|
318
|
+
end
|
319
|
+
end
|
320
|
+
|
321
|
+
class SourceLocation
|
322
|
+
# @private
|
323
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
324
|
+
property :path, as: 'path'
|
325
|
+
property :line, as: 'line'
|
326
|
+
end
|
327
|
+
end
|
328
|
+
|
329
|
+
class StackFrame
|
330
|
+
# @private
|
331
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
332
|
+
property :function, as: 'function'
|
333
|
+
property :location, as: 'location', class: Google::Apis::ClouddebuggerV2::SourceLocation, decorator: Google::Apis::ClouddebuggerV2::SourceLocation::Representation
|
334
|
+
|
335
|
+
collection :arguments, as: 'arguments', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
336
|
+
|
337
|
+
collection :locals, as: 'locals', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
338
|
+
|
339
|
+
end
|
340
|
+
end
|
341
|
+
|
342
|
+
class Variable
|
343
|
+
# @private
|
344
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
345
|
+
property :name, as: 'name'
|
346
|
+
property :value, as: 'value'
|
347
|
+
property :type, as: 'type'
|
348
|
+
collection :members, as: 'members', class: Google::Apis::ClouddebuggerV2::Variable, decorator: Google::Apis::ClouddebuggerV2::Variable::Representation
|
349
|
+
|
350
|
+
property :var_table_index, as: 'varTableIndex'
|
351
|
+
property :status, as: 'status', class: Google::Apis::ClouddebuggerV2::StatusMessage, decorator: Google::Apis::ClouddebuggerV2::StatusMessage::Representation
|
352
|
+
|
353
|
+
end
|
354
|
+
end
|
355
|
+
|
356
|
+
class UpdateActiveBreakpointRequest
|
357
|
+
# @private
|
358
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
359
|
+
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
360
|
+
|
361
|
+
end
|
362
|
+
end
|
363
|
+
|
364
|
+
class UpdateActiveBreakpointResponse
|
365
|
+
# @private
|
366
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
367
|
+
end
|
368
|
+
end
|
369
|
+
|
370
|
+
class SetBreakpointResponse
|
371
|
+
# @private
|
372
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
373
|
+
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
374
|
+
|
375
|
+
end
|
376
|
+
end
|
377
|
+
|
378
|
+
class GetBreakpointResponse
|
379
|
+
# @private
|
380
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
381
|
+
property :breakpoint, as: 'breakpoint', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
382
|
+
|
383
|
+
end
|
384
|
+
end
|
385
|
+
|
386
|
+
class Empty
|
387
|
+
# @private
|
388
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
class ListBreakpointsResponse
|
393
|
+
# @private
|
394
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
395
|
+
collection :breakpoints, as: 'breakpoints', class: Google::Apis::ClouddebuggerV2::Breakpoint, decorator: Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
396
|
+
|
397
|
+
property :next_wait_token, as: 'nextWaitToken'
|
398
|
+
end
|
399
|
+
end
|
400
|
+
|
401
|
+
class ListDebuggeesResponse
|
402
|
+
# @private
|
403
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
404
|
+
collection :debuggees, as: 'debuggees', class: Google::Apis::ClouddebuggerV2::Debuggee, decorator: Google::Apis::ClouddebuggerV2::Debuggee::Representation
|
405
|
+
|
406
|
+
end
|
407
|
+
end
|
408
|
+
end
|
409
|
+
end
|
410
|
+
end
|
@@ -0,0 +1,370 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/core/base_service'
|
16
|
+
require 'google/apis/core/json_representation'
|
17
|
+
require 'google/apis/core/hashable'
|
18
|
+
require 'google/apis/errors'
|
19
|
+
|
20
|
+
module Google
|
21
|
+
module Apis
|
22
|
+
module ClouddebuggerV2
|
23
|
+
# Google Cloud Debugger API
|
24
|
+
#
|
25
|
+
# Lets you examine the stack and variables of your running application without
|
26
|
+
# stopping or slowing it down.
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
# require 'google/apis/clouddebugger_v2'
|
30
|
+
#
|
31
|
+
# Clouddebugger = Google::Apis::ClouddebuggerV2 # Alias the module
|
32
|
+
# service = Clouddebugger::ClouddebuggerService.new
|
33
|
+
#
|
34
|
+
# @see https://cloud.google.com/tools/cloud-debugger
|
35
|
+
class ClouddebuggerService < Google::Apis::Core::BaseService
|
36
|
+
# @return [String]
|
37
|
+
# API key. Your API key identifies your project and provides you with API access,
|
38
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
39
|
+
attr_accessor :key
|
40
|
+
|
41
|
+
# @return [String]
|
42
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44
|
+
attr_accessor :quota_user
|
45
|
+
|
46
|
+
def initialize
|
47
|
+
super('https://clouddebugger.googleapis.com/', '')
|
48
|
+
end
|
49
|
+
|
50
|
+
# Registers the debuggee with the controller service. All agents attached to the
|
51
|
+
# same application should call this method with the same request content to get
|
52
|
+
# back the same stable `debuggee_id`. Agents should call this method again
|
53
|
+
# whenever `google.rpc.Code.NOT_FOUND` is returned from any controller method.
|
54
|
+
# This allows the controller service to disable the agent or recover from any
|
55
|
+
# data loss. If the debuggee is disabled by the server, the response will have `
|
56
|
+
# is_disabled` set to `true`.
|
57
|
+
# @param [Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest] register_debuggee_request_object
|
58
|
+
# @param [String] fields
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
60
|
+
# @param [String] quota_user
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
63
|
+
# @param [Google::Apis::RequestOptions] options
|
64
|
+
# Request-specific options
|
65
|
+
#
|
66
|
+
# @yield [result, err] Result & error if block supplied
|
67
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse] parsed result object
|
68
|
+
# @yieldparam err [StandardError] error object if request failed
|
69
|
+
#
|
70
|
+
# @return [Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse]
|
71
|
+
#
|
72
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
73
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
74
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
75
|
+
def register_debuggee(register_debuggee_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
76
|
+
command = make_simple_command(:post, 'v2/controller/debuggees/register', options)
|
77
|
+
command.request_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeRequest::Representation
|
78
|
+
command.request_object = register_debuggee_request_object
|
79
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse::Representation
|
80
|
+
command.response_class = Google::Apis::ClouddebuggerV2::RegisterDebuggeeResponse
|
81
|
+
command.query['fields'] = fields unless fields.nil?
|
82
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
83
|
+
execute_or_queue_command(command, &block)
|
84
|
+
end
|
85
|
+
|
86
|
+
# Returns the list of all active breakpoints for the debuggee. The breakpoint
|
87
|
+
# specification (location, condition, and expression fields) is semantically
|
88
|
+
# immutable, although the field values may change. For example, an agent may
|
89
|
+
# update the location line number to reflect the actual line where the
|
90
|
+
# breakpoint was set, but this doesn't change the breakpoint semantics. This
|
91
|
+
# means that an agent does not need to check if a breakpoint has changed when it
|
92
|
+
# encounters the same breakpoint on a successive call. Moreover, an agent should
|
93
|
+
# remember the breakpoints that are completed until the controller removes them
|
94
|
+
# from the active list to avoid setting those breakpoints again.
|
95
|
+
# @param [String] debuggee_id
|
96
|
+
# Identifies the debuggee.
|
97
|
+
# @param [String] wait_token
|
98
|
+
# A wait token that, if specified, blocks the method call until the list of
|
99
|
+
# active breakpoints has changed, or a server selected timeout has expired. The
|
100
|
+
# value should be set from the last returned response.
|
101
|
+
# @param [Boolean] success_on_timeout
|
102
|
+
# If set to `true`, returns `google.rpc.Code.OK` status and sets the `
|
103
|
+
# wait_expired` response field to `true` when the server-selected timeout has
|
104
|
+
# expired (recommended). If set to `false`, returns `google.rpc.Code.ABORTED`
|
105
|
+
# status when the server-selected timeout has expired (deprecated).
|
106
|
+
# @param [String] fields
|
107
|
+
# Selector specifying which fields to include in a partial response.
|
108
|
+
# @param [String] quota_user
|
109
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
110
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
111
|
+
# @param [Google::Apis::RequestOptions] options
|
112
|
+
# Request-specific options
|
113
|
+
#
|
114
|
+
# @yield [result, err] Result & error if block supplied
|
115
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse] parsed result object
|
116
|
+
# @yieldparam err [StandardError] error object if request failed
|
117
|
+
#
|
118
|
+
# @return [Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse]
|
119
|
+
#
|
120
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
121
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
122
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
123
|
+
def list_controller_debuggee_breakpoints(debuggee_id, wait_token: nil, success_on_timeout: nil, fields: nil, quota_user: nil, options: nil, &block)
|
124
|
+
command = make_simple_command(:get, 'v2/controller/debuggees/{debuggeeId}/breakpoints', options)
|
125
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse::Representation
|
126
|
+
command.response_class = Google::Apis::ClouddebuggerV2::ListActiveBreakpointsResponse
|
127
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
128
|
+
command.query['waitToken'] = wait_token unless wait_token.nil?
|
129
|
+
command.query['successOnTimeout'] = success_on_timeout unless success_on_timeout.nil?
|
130
|
+
command.query['fields'] = fields unless fields.nil?
|
131
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
132
|
+
execute_or_queue_command(command, &block)
|
133
|
+
end
|
134
|
+
|
135
|
+
# Updates the breakpoint state or mutable fields. The entire Breakpoint message
|
136
|
+
# must be sent back to the controller service. Updates to active breakpoint
|
137
|
+
# fields are only allowed if the new value does not change the breakpoint
|
138
|
+
# specification. Updates to the `location`, `condition` and `expression` fields
|
139
|
+
# should not alter the breakpoint semantics. These may only make changes such as
|
140
|
+
# canonicalizing a value or snapping the location to the correct line of code.
|
141
|
+
# @param [String] debuggee_id
|
142
|
+
# Identifies the debuggee being debugged.
|
143
|
+
# @param [String] id
|
144
|
+
# Breakpoint identifier, unique in the scope of the debuggee.
|
145
|
+
# @param [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest] update_active_breakpoint_request_object
|
146
|
+
# @param [String] fields
|
147
|
+
# Selector specifying which fields to include in a partial response.
|
148
|
+
# @param [String] quota_user
|
149
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
150
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
151
|
+
# @param [Google::Apis::RequestOptions] options
|
152
|
+
# Request-specific options
|
153
|
+
#
|
154
|
+
# @yield [result, err] Result & error if block supplied
|
155
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse] parsed result object
|
156
|
+
# @yieldparam err [StandardError] error object if request failed
|
157
|
+
#
|
158
|
+
# @return [Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse]
|
159
|
+
#
|
160
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
161
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
162
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
163
|
+
def update_active_breakpoint(debuggee_id, id, update_active_breakpoint_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
164
|
+
command = make_simple_command(:put, 'v2/controller/debuggees/{debuggeeId}/breakpoints/{id}', options)
|
165
|
+
command.request_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointRequest::Representation
|
166
|
+
command.request_object = update_active_breakpoint_request_object
|
167
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse::Representation
|
168
|
+
command.response_class = Google::Apis::ClouddebuggerV2::UpdateActiveBreakpointResponse
|
169
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
170
|
+
command.params['id'] = id unless id.nil?
|
171
|
+
command.query['fields'] = fields unless fields.nil?
|
172
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
173
|
+
execute_or_queue_command(command, &block)
|
174
|
+
end
|
175
|
+
|
176
|
+
# Lists all the debuggees that the user can set breakpoints to.
|
177
|
+
# @param [String] project
|
178
|
+
# Project number of a Google Cloud project whose debuggees to list.
|
179
|
+
# @param [Boolean] include_inactive
|
180
|
+
# When set to `true`, the result includes all debuggees. Otherwise, the result
|
181
|
+
# includes only debuggees that are active.
|
182
|
+
# @param [String] fields
|
183
|
+
# Selector specifying which fields to include in a partial response.
|
184
|
+
# @param [String] quota_user
|
185
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
186
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
187
|
+
# @param [Google::Apis::RequestOptions] options
|
188
|
+
# Request-specific options
|
189
|
+
#
|
190
|
+
# @yield [result, err] Result & error if block supplied
|
191
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse] parsed result object
|
192
|
+
# @yieldparam err [StandardError] error object if request failed
|
193
|
+
#
|
194
|
+
# @return [Google::Apis::ClouddebuggerV2::ListDebuggeesResponse]
|
195
|
+
#
|
196
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
197
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
198
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
199
|
+
def list_debugger_debuggees(project: nil, include_inactive: nil, fields: nil, quota_user: nil, options: nil, &block)
|
200
|
+
command = make_simple_command(:get, 'v2/debugger/debuggees', options)
|
201
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse::Representation
|
202
|
+
command.response_class = Google::Apis::ClouddebuggerV2::ListDebuggeesResponse
|
203
|
+
command.query['project'] = project unless project.nil?
|
204
|
+
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
205
|
+
command.query['fields'] = fields unless fields.nil?
|
206
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
207
|
+
execute_or_queue_command(command, &block)
|
208
|
+
end
|
209
|
+
|
210
|
+
# Sets the breakpoint to the debuggee.
|
211
|
+
# @param [String] debuggee_id
|
212
|
+
# ID of the debuggee where the breakpoint is to be set.
|
213
|
+
# @param [Google::Apis::ClouddebuggerV2::Breakpoint] breakpoint_object
|
214
|
+
# @param [String] fields
|
215
|
+
# Selector specifying which fields to include in a partial response.
|
216
|
+
# @param [String] quota_user
|
217
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
218
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
219
|
+
# @param [Google::Apis::RequestOptions] options
|
220
|
+
# Request-specific options
|
221
|
+
#
|
222
|
+
# @yield [result, err] Result & error if block supplied
|
223
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::SetBreakpointResponse] parsed result object
|
224
|
+
# @yieldparam err [StandardError] error object if request failed
|
225
|
+
#
|
226
|
+
# @return [Google::Apis::ClouddebuggerV2::SetBreakpointResponse]
|
227
|
+
#
|
228
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
229
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
230
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
231
|
+
def set_debugger_debuggee_breakpoint(debuggee_id, breakpoint_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
232
|
+
command = make_simple_command(:post, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/set', options)
|
233
|
+
command.request_representation = Google::Apis::ClouddebuggerV2::Breakpoint::Representation
|
234
|
+
command.request_object = breakpoint_object
|
235
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::SetBreakpointResponse::Representation
|
236
|
+
command.response_class = Google::Apis::ClouddebuggerV2::SetBreakpointResponse
|
237
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
238
|
+
command.query['fields'] = fields unless fields.nil?
|
239
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
240
|
+
execute_or_queue_command(command, &block)
|
241
|
+
end
|
242
|
+
|
243
|
+
# Gets breakpoint information.
|
244
|
+
# @param [String] debuggee_id
|
245
|
+
# ID of the debuggee whose breakpoint to get.
|
246
|
+
# @param [String] breakpoint_id
|
247
|
+
# ID of the breakpoint to get.
|
248
|
+
# @param [String] fields
|
249
|
+
# Selector specifying which fields to include in a partial response.
|
250
|
+
# @param [String] quota_user
|
251
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
252
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
253
|
+
# @param [Google::Apis::RequestOptions] options
|
254
|
+
# Request-specific options
|
255
|
+
#
|
256
|
+
# @yield [result, err] Result & error if block supplied
|
257
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::GetBreakpointResponse] parsed result object
|
258
|
+
# @yieldparam err [StandardError] error object if request failed
|
259
|
+
#
|
260
|
+
# @return [Google::Apis::ClouddebuggerV2::GetBreakpointResponse]
|
261
|
+
#
|
262
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
263
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
264
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
265
|
+
def get_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, fields: nil, quota_user: nil, options: nil, &block)
|
266
|
+
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
|
267
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::GetBreakpointResponse::Representation
|
268
|
+
command.response_class = Google::Apis::ClouddebuggerV2::GetBreakpointResponse
|
269
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
270
|
+
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
|
271
|
+
command.query['fields'] = fields unless fields.nil?
|
272
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
273
|
+
execute_or_queue_command(command, &block)
|
274
|
+
end
|
275
|
+
|
276
|
+
# Deletes the breakpoint from the debuggee.
|
277
|
+
# @param [String] debuggee_id
|
278
|
+
# ID of the debuggee whose breakpoint to delete.
|
279
|
+
# @param [String] breakpoint_id
|
280
|
+
# ID of the breakpoint to delete.
|
281
|
+
# @param [String] fields
|
282
|
+
# Selector specifying which fields to include in a partial response.
|
283
|
+
# @param [String] quota_user
|
284
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
285
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
286
|
+
# @param [Google::Apis::RequestOptions] options
|
287
|
+
# Request-specific options
|
288
|
+
#
|
289
|
+
# @yield [result, err] Result & error if block supplied
|
290
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::Empty] parsed result object
|
291
|
+
# @yieldparam err [StandardError] error object if request failed
|
292
|
+
#
|
293
|
+
# @return [Google::Apis::ClouddebuggerV2::Empty]
|
294
|
+
#
|
295
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
296
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
297
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
298
|
+
def delete_debugger_debuggee_breakpoint(debuggee_id, breakpoint_id, fields: nil, quota_user: nil, options: nil, &block)
|
299
|
+
command = make_simple_command(:delete, 'v2/debugger/debuggees/{debuggeeId}/breakpoints/{breakpointId}', options)
|
300
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::Empty::Representation
|
301
|
+
command.response_class = Google::Apis::ClouddebuggerV2::Empty
|
302
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
303
|
+
command.params['breakpointId'] = breakpoint_id unless breakpoint_id.nil?
|
304
|
+
command.query['fields'] = fields unless fields.nil?
|
305
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
306
|
+
execute_or_queue_command(command, &block)
|
307
|
+
end
|
308
|
+
|
309
|
+
# Lists all breakpoints for the debuggee.
|
310
|
+
# @param [String] debuggee_id
|
311
|
+
# ID of the debuggee whose breakpoints to list.
|
312
|
+
# @param [Boolean] include_all_users
|
313
|
+
# When set to `true`, the response includes the list of breakpoints set by any
|
314
|
+
# user. Otherwise, it includes only breakpoints set by the caller.
|
315
|
+
# @param [Boolean] include_inactive
|
316
|
+
# When set to `true`, the response includes active and inactive breakpoints.
|
317
|
+
# Otherwise, it includes only active breakpoints.
|
318
|
+
# @param [String] action_value
|
319
|
+
# Only breakpoints with the specified action will pass the filter.
|
320
|
+
# @param [Boolean] strip_results
|
321
|
+
# When set to `true`, the response breakpoints are stripped of the results
|
322
|
+
# fields: `stack_frames`, `evaluated_expressions` and `variable_table`.
|
323
|
+
# @param [String] wait_token
|
324
|
+
# A wait token that, if specified, blocks the call until the breakpoints list
|
325
|
+
# has changed, or a server selected timeout has expired. The value should be set
|
326
|
+
# from the last response. The error code `google.rpc.Code.ABORTED` (RPC) is
|
327
|
+
# returned on wait timeout, which should be called again with the same `
|
328
|
+
# wait_token`.
|
329
|
+
# @param [String] fields
|
330
|
+
# Selector specifying which fields to include in a partial response.
|
331
|
+
# @param [String] quota_user
|
332
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
333
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
334
|
+
# @param [Google::Apis::RequestOptions] options
|
335
|
+
# Request-specific options
|
336
|
+
#
|
337
|
+
# @yield [result, err] Result & error if block supplied
|
338
|
+
# @yieldparam result [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse] parsed result object
|
339
|
+
# @yieldparam err [StandardError] error object if request failed
|
340
|
+
#
|
341
|
+
# @return [Google::Apis::ClouddebuggerV2::ListBreakpointsResponse]
|
342
|
+
#
|
343
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
344
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
345
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
346
|
+
def list_debugger_debuggee_breakpoints(debuggee_id, include_all_users: nil, include_inactive: nil, action_value: nil, strip_results: nil, wait_token: nil, fields: nil, quota_user: nil, options: nil, &block)
|
347
|
+
command = make_simple_command(:get, 'v2/debugger/debuggees/{debuggeeId}/breakpoints', options)
|
348
|
+
command.response_representation = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse::Representation
|
349
|
+
command.response_class = Google::Apis::ClouddebuggerV2::ListBreakpointsResponse
|
350
|
+
command.params['debuggeeId'] = debuggee_id unless debuggee_id.nil?
|
351
|
+
command.query['includeAllUsers'] = include_all_users unless include_all_users.nil?
|
352
|
+
command.query['includeInactive'] = include_inactive unless include_inactive.nil?
|
353
|
+
command.query['action.value'] = action_value unless action_value.nil?
|
354
|
+
command.query['stripResults'] = strip_results unless strip_results.nil?
|
355
|
+
command.query['waitToken'] = wait_token unless wait_token.nil?
|
356
|
+
command.query['fields'] = fields unless fields.nil?
|
357
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
358
|
+
execute_or_queue_command(command, &block)
|
359
|
+
end
|
360
|
+
|
361
|
+
protected
|
362
|
+
|
363
|
+
def apply_command_defaults(command)
|
364
|
+
command.query['key'] = key unless key.nil?
|
365
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
366
|
+
end
|
367
|
+
end
|
368
|
+
end
|
369
|
+
end
|
370
|
+
end
|