google-api-client 0.8.6 → 0.9
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 +4 -4
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +7 -0
- data/.rubocop_todo.yml +63 -0
- data/.travis.yml +22 -0
- data/.yardopts +12 -0
- data/CHANGELOG.md +41 -2
- data/CONTRIBUTING.md +31 -0
- data/Gemfile +32 -2
- data/MIGRATING.md +171 -0
- data/README.md +181 -148
- data/Rakefile +1 -40
- data/api_names.yaml +1036 -0
- data/api_names_out.yaml +26053 -0
- data/bin/generate-api +95 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
- data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
- 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 +113 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
- data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
- data/generated/google/apis/admin_reports_v1.rb +38 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
- data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
- data/generated/google/apis/admin_reports_v1/service.rb +336 -0
- data/generated/google/apis/adsense_v1_4.rb +38 -0
- data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
- data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
- data/generated/google/apis/adsensehost_v4_1.rb +35 -0
- data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
- data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
- data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
- data/generated/google/apis/analytics_v3.rb +49 -0
- data/generated/google/apis/analytics_v3/classes.rb +5118 -0
- data/generated/google/apis/analytics_v3/representations.rb +1662 -0
- data/generated/google/apis/analytics_v3/service.rb +3568 -0
- data/generated/google/apis/androidenterprise_v1.rb +35 -0
- data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
- data/generated/google/apis/androidpublisher_v2.rb +34 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
- 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 +46 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
- data/generated/google/apis/appsactivity_v1/service.rb +128 -0
- data/generated/google/apis/appstate_v1.rb +34 -0
- data/generated/google/apis/appstate_v1/classes.rb +154 -0
- data/generated/google/apis/appstate_v1/representations.rb +79 -0
- data/generated/google/apis/appstate_v1/service.rb +260 -0
- data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
- data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
- data/generated/google/apis/bigquery_v2.rb +52 -0
- data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
- data/generated/google/apis/bigquery_v2/representations.rb +816 -0
- data/generated/google/apis/bigquery_v2/service.rb +982 -0
- data/generated/google/apis/blogger_v3.rb +37 -0
- data/generated/google/apis/blogger_v3/classes.rb +1354 -0
- data/generated/google/apis/blogger_v3/representations.rb +562 -0
- data/generated/google/apis/blogger_v3/service.rb +1587 -0
- data/generated/google/apis/books_v1.rb +34 -0
- data/generated/google/apis/books_v1/classes.rb +3956 -0
- data/generated/google/apis/books_v1/representations.rb +1538 -0
- data/generated/google/apis/books_v1/service.rb +2290 -0
- data/generated/google/apis/calendar_v3.rb +37 -0
- data/generated/google/apis/calendar_v3/classes.rb +1742 -0
- data/generated/google/apis/calendar_v3/representations.rb +567 -0
- data/generated/google/apis/calendar_v3/service.rb +1968 -0
- data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
- data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
- data/generated/google/apis/civicinfo_v2/service.rb +279 -0
- 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/classroom_v1beta1.rb +49 -0
- data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
- data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
- data/generated/google/apis/classroom_v1beta1/service.rb +791 -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 +37 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
- 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 +49 -0
- data/generated/google/apis/compute_v1/classes.rb +8681 -0
- data/generated/google/apis/compute_v1/representations.rb +2895 -0
- data/generated/google/apis/compute_v1/service.rb +9252 -0
- data/generated/google/apis/container_v1.rb +35 -0
- data/generated/google/apis/container_v1/classes.rb +463 -0
- data/generated/google/apis/container_v1/representations.rb +175 -0
- data/generated/google/apis/container_v1/service.rb +367 -0
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +466 -0
- data/generated/google/apis/container_v1beta1/representations.rb +177 -0
- data/generated/google/apis/container_v1beta1/service.rb +394 -0
- data/generated/google/apis/content_v2.rb +35 -0
- data/generated/google/apis/content_v2/classes.rb +5986 -0
- data/generated/google/apis/content_v2/representations.rb +2288 -0
- data/generated/google/apis/content_v2/service.rb +2338 -0
- data/generated/google/apis/coordinate_v1.rb +37 -0
- data/generated/google/apis/coordinate_v1/classes.rb +669 -0
- data/generated/google/apis/coordinate_v1/representations.rb +285 -0
- data/generated/google/apis/coordinate_v1/service.rb +678 -0
- data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
- data/generated/google/apis/customsearch_v1/classes.rb +771 -0
- data/generated/google/apis/customsearch_v1/representations.rb +276 -0
- data/generated/google/apis/customsearch_v1/service.rb +207 -0
- data/generated/google/apis/datastore_v1beta2.rb +40 -0
- data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
- data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
- data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -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 +44 -0
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
- data/generated/google/apis/dfareporting_v2_1.rb +37 -0
- data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
- data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
- data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
- data/generated/google/apis/discovery_v1.rb +32 -0
- data/generated/google/apis/discovery_v1/classes.rb +961 -0
- data/generated/google/apis/discovery_v1/representations.rb +357 -0
- data/generated/google/apis/discovery_v1/service.rb +142 -0
- data/generated/google/apis/dns_v1.rb +44 -0
- data/generated/google/apis/dns_v1/classes.rb +406 -0
- data/generated/google/apis/dns_v1/representations.rb +151 -0
- data/generated/google/apis/dns_v1/service.rb +454 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
- data/generated/google/apis/drive_v2.rb +58 -0
- data/generated/google/apis/drive_v2/classes.rb +2562 -0
- data/generated/google/apis/drive_v2/representations.rb +795 -0
- data/generated/google/apis/drive_v2/service.rb +2696 -0
- 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 +49 -0
- data/generated/google/apis/fitness_v1/classes.rb +885 -0
- data/generated/google/apis/fitness_v1/representations.rb +320 -0
- data/generated/google/apis/fitness_v1/service.rb +675 -0
- data/generated/google/apis/fusiontables_v2.rb +37 -0
- data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
- data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
- data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
- data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
- 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 +40 -0
- data/generated/google/apis/games_v1/classes.rb +4617 -0
- data/generated/google/apis/games_v1/representations.rb +1584 -0
- data/generated/google/apis/games_v1/service.rb +2290 -0
- data/generated/google/apis/gan_v1beta1.rb +31 -0
- data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
- data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
- data/generated/google/apis/gan_v1beta1/service.rb +682 -0
- data/generated/google/apis/genomics_v1.rb +49 -0
- data/generated/google/apis/genomics_v1/classes.rb +2609 -0
- data/generated/google/apis/genomics_v1/representations.rb +909 -0
- data/generated/google/apis/genomics_v1/service.rb +1676 -0
- data/generated/google/apis/genomics_v1beta2.rb +46 -0
- data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
- data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
- data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
- data/generated/google/apis/gmail_v1.rb +52 -0
- data/generated/google/apis/gmail_v1/classes.rb +794 -0
- data/generated/google/apis/gmail_v1/representations.rb +339 -0
- data/generated/google/apis/gmail_v1/service.rb +1470 -0
- data/generated/google/apis/groupsmigration_v1.rb +34 -0
- data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
- data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
- data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
- data/generated/google/apis/groupssettings_v1.rb +34 -0
- data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
- data/generated/google/apis/groupssettings_v1/service.rb +179 -0
- data/generated/google/apis/identitytoolkit_v3.rb +31 -0
- data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
- data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
- 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 +34 -0
- data/generated/google/apis/licensing_v1/classes.rb +132 -0
- data/generated/google/apis/licensing_v1/representations.rb +68 -0
- data/generated/google/apis/licensing_v1/service.rb +369 -0
- data/generated/google/apis/logging_v1beta3.rb +47 -0
- data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
- data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
- data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
- data/generated/google/apis/manager_v1beta2.rb +53 -0
- data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
- data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
- data/generated/google/apis/manager_v1beta2/service.rb +372 -0
- data/generated/google/apis/mapsengine_v1.rb +38 -0
- data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
- data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
- data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
- data/generated/google/apis/mirror_v1.rb +37 -0
- data/generated/google/apis/mirror_v1/classes.rb +1072 -0
- data/generated/google/apis/mirror_v1/representations.rb +350 -0
- data/generated/google/apis/mirror_v1/service.rb +977 -0
- data/generated/google/apis/oauth2_v2.rb +43 -0
- data/generated/google/apis/oauth2_v2/classes.rb +245 -0
- data/generated/google/apis/oauth2_v2/representations.rb +94 -0
- data/generated/google/apis/oauth2_v2/service.rb +199 -0
- data/generated/google/apis/pagespeedonline_v2.rb +32 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
- data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
- data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
- 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 +61 -0
- data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
- data/generated/google/apis/plus_domains_v1/service.rb +904 -0
- data/generated/google/apis/plus_v1.rb +43 -0
- data/generated/google/apis/plus_v1/classes.rb +2094 -0
- data/generated/google/apis/plus_v1/representations.rb +805 -0
- data/generated/google/apis/plus_v1/service.rb +470 -0
- data/generated/google/apis/prediction_v1_6.rb +44 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
- data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
- data/generated/google/apis/prediction_v1_6/service.rb +380 -0
- 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 +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
- data/generated/google/apis/qpx_express_v1.rb +31 -0
- data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
- data/generated/google/apis/qpx_express_v1/service.rb +100 -0
- data/generated/google/apis/replicapool_v1beta2.rb +44 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
- data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
- data/generated/google/apis/reseller_v1.rb +37 -0
- data/generated/google/apis/reseller_v1/classes.rb +520 -0
- data/generated/google/apis/reseller_v1/representations.rb +200 -0
- data/generated/google/apis/reseller_v1/service.rb +623 -0
- data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
- 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 +37 -0
- data/generated/google/apis/site_verification_v1/classes.rb +185 -0
- data/generated/google/apis/site_verification_v1/representations.rb +101 -0
- data/generated/google/apis/site_verification_v1/service.rb +315 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
- data/generated/google/apis/storage_v1.rb +46 -0
- data/generated/google/apis/storage_v1/classes.rb +1222 -0
- data/generated/google/apis/storage_v1/representations.rb +445 -0
- data/generated/google/apis/storage_v1/service.rb +1903 -0
- 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 +52 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
- data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
- data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
- data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
- data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
- data/generated/google/apis/tasks_v1.rb +37 -0
- data/generated/google/apis/tasks_v1/classes.rb +296 -0
- data/generated/google/apis/tasks_v1/representations.rb +115 -0
- data/generated/google/apis/tasks_v1/service.rb +643 -0
- data/generated/google/apis/translate_v2.rb +31 -0
- data/generated/google/apis/translate_v2/classes.rb +168 -0
- data/generated/google/apis/translate_v2/representations.rb +109 -0
- data/generated/google/apis/translate_v2/service.rb +182 -0
- data/generated/google/apis/urlshortener_v1.rb +34 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
- data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
- data/generated/google/apis/urlshortener_v1/service.rb +176 -0
- data/generated/google/apis/webmasters_v3.rb +37 -0
- data/generated/google/apis/webmasters_v3/classes.rb +563 -0
- data/generated/google/apis/webmasters_v3/representations.rb +250 -0
- data/generated/google/apis/webmasters_v3/service.rb +573 -0
- data/generated/google/apis/youtube_analytics_v1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
- data/generated/google/apis/youtube_v3.rb +49 -0
- data/generated/google/apis/youtube_v3/classes.rb +8136 -0
- data/generated/google/apis/youtube_v3/representations.rb +2838 -0
- data/generated/google/apis/youtube_v3/service.rb +4403 -0
- 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 +27 -39
- data/lib/google/api_client/auth/installed_app.rb +7 -5
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +4 -2
- data/lib/google/api_client/auth/storages/file_store.rb +2 -3
- data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis.rb +48 -0
- data/lib/google/apis/core/api_command.rb +135 -0
- data/lib/google/apis/core/base_service.rb +317 -0
- data/lib/google/apis/core/batch.rb +239 -0
- data/lib/google/apis/core/download.rb +94 -0
- data/lib/google/apis/core/hashable.rb +44 -0
- data/lib/google/apis/core/http_client_adapter.rb +82 -0
- data/lib/google/apis/core/http_command.rb +312 -0
- data/lib/google/apis/core/json_representation.rb +127 -0
- data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
- data/lib/google/apis/core/multipart.rb +187 -0
- data/lib/google/apis/core/upload.rb +288 -0
- data/lib/google/{api_client → apis}/errors.rb +39 -28
- data/lib/google/apis/generator.rb +70 -0
- data/lib/google/apis/generator/annotator.rb +295 -0
- data/lib/google/apis/generator/helpers.rb +74 -0
- data/lib/google/apis/generator/model.rb +143 -0
- data/lib/google/apis/generator/template.rb +124 -0
- data/lib/google/apis/generator/templates/_class.tmpl +40 -0
- data/lib/google/apis/generator/templates/_method.tmpl +92 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
- data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
- data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
- data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
- data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
- data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
- data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
- data/lib/google/apis/options.rb +85 -0
- data/lib/google/apis/version.rb +39 -0
- data/rakelib/metrics.rake +22 -0
- data/rakelib/rubocop.rake +10 -0
- data/rakelib/spec.rake +11 -0
- data/rakelib/yard.rake +11 -0
- data/samples/Gemfile +7 -0
- data/samples/README.md +51 -0
- data/samples/google-api-samples +32 -0
- data/samples/lib/base_cli.rb +94 -0
- data/samples/lib/samples/analytics.rb +62 -0
- data/samples/lib/samples/calendar.rb +83 -0
- data/samples/lib/samples/drive.rb +82 -0
- data/samples/lib/samples/gmail.rb +50 -0
- data/samples/lib/samples/pubsub.rb +114 -0
- data/samples/lib/samples/translate.rb +44 -0
- data/samples/lib/samples/you_tube.rb +44 -0
- data/script/generate +95 -0
- data/script/package +8 -0
- data/script/release +15 -0
- data/spec/fixtures/files/api_names.yaml +3 -0
- data/spec/fixtures/files/auth_stored_credentials.json +8 -0
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/client_secrets.json +1 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/fixtures/files/test.blah +1 -0
- data/spec/fixtures/files/test.txt +1 -0
- data/spec/fixtures/files/test_api.json +440 -0
- data/spec/google/api_client/auth/storage_spec.rb +1 -3
- data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
- data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/api_command_spec.rb +209 -0
- data/spec/google/apis/core/batch_spec.rb +142 -0
- data/spec/google/apis/core/download_spec.rb +103 -0
- data/spec/google/apis/core/hashable_spec.rb +60 -0
- data/spec/google/apis/core/http_command_spec.rb +284 -0
- data/spec/google/apis/core/json_representation_spec.rb +192 -0
- data/spec/google/apis/core/service_spec.rb +247 -0
- data/spec/google/apis/core/upload_spec.rb +300 -0
- data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
- data/spec/google/apis/generator/generator_spec.rb +272 -0
- data/spec/google/apis/logging_spec.rb +45 -0
- data/spec/google/apis/options_spec.rb +40 -0
- data/spec/integration_tests/adsense_spec.rb +29 -0
- data/spec/integration_tests/drive_spec.rb +35 -0
- data/spec/integration_tests/pubsub_spec.rb +48 -0
- data/spec/integration_tests/url_shortener_spec.rb +45 -0
- data/spec/spec_helper.rb +131 -44
- data/spec/spec_helper/load_path_spec.rb +33 -0
- data/third_party/hurley_patches.rb +103 -0
- metadata +533 -170
- data/lib/compat/multi_json.rb +0 -19
- data/lib/google/api_client.rb +0 -750
- data/lib/google/api_client/auth/file_storage.rb +0 -59
- data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
- data/lib/google/api_client/auth/pkcs12.rb +0 -41
- data/lib/google/api_client/batch.rb +0 -326
- data/lib/google/api_client/charset.rb +0 -33
- data/lib/google/api_client/discovery/api.rb +0 -310
- data/lib/google/api_client/discovery/media.rb +0 -77
- data/lib/google/api_client/discovery/method.rb +0 -363
- data/lib/google/api_client/discovery/resource.rb +0 -156
- data/lib/google/api_client/discovery/schema.rb +0 -117
- data/lib/google/api_client/environment.rb +0 -42
- data/lib/google/api_client/gzip.rb +0 -28
- data/lib/google/api_client/logging.rb +0 -32
- data/lib/google/api_client/media.rb +0 -259
- data/lib/google/api_client/railtie.rb +0 -18
- data/lib/google/api_client/request.rb +0 -350
- data/lib/google/api_client/result.rb +0 -255
- data/lib/google/api_client/service.rb +0 -233
- data/lib/google/api_client/service/batch.rb +0 -110
- data/lib/google/api_client/service/request.rb +0 -144
- data/lib/google/api_client/service/resource.rb +0 -40
- data/lib/google/api_client/service/result.rb +0 -162
- data/lib/google/api_client/service/simple_file_store.rb +0 -151
- data/lib/google/api_client/service/stub_generator.rb +0 -61
- data/spec/google/api_client/batch_spec.rb +0 -248
- data/spec/google/api_client/discovery_spec.rb +0 -708
- data/spec/google/api_client/gzip_spec.rb +0 -98
- data/spec/google/api_client/media_spec.rb +0 -178
- data/spec/google/api_client/result_spec.rb +0 -207
- data/spec/google/api_client/service_account_spec.rb +0 -169
- data/spec/google/api_client/service_spec.rb +0 -618
- data/spec/google/api_client/simple_file_store_spec.rb +0 -133
- data/spec/google/api_client_spec.rb +0 -352
|
@@ -0,0 +1,41 @@
|
|
|
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/clouddebugger_v2/service.rb'
|
|
16
|
+
require 'google/apis/clouddebugger_v2/classes.rb'
|
|
17
|
+
require 'google/apis/clouddebugger_v2/representations.rb'
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Apis
|
|
21
|
+
# Google Cloud Debugger API
|
|
22
|
+
#
|
|
23
|
+
# Lets you examine the stack and variables of your running application without
|
|
24
|
+
# stopping or slowing it down.
|
|
25
|
+
#
|
|
26
|
+
# @see https://cloud.google.com/tools/cloud-debugger
|
|
27
|
+
module ClouddebuggerV2
|
|
28
|
+
VERSION = 'V2'
|
|
29
|
+
REVISION = '20151123'
|
|
30
|
+
|
|
31
|
+
# View and manage your data across Google Cloud Platform services
|
|
32
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
|
33
|
+
|
|
34
|
+
# Manage cloud debugger
|
|
35
|
+
AUTH_CLOUD_DEBUGGER = 'https://www.googleapis.com/auth/cloud_debugger'
|
|
36
|
+
|
|
37
|
+
# Manage active breakpoints in cloud debugger
|
|
38
|
+
AUTH_CLOUD_DEBUGLETCONTROLLER = 'https://www.googleapis.com/auth/cloud_debugletcontroller'
|
|
39
|
+
end
|
|
40
|
+
end
|
|
41
|
+
end
|
|
@@ -0,0 +1,1004 @@
|
|
|
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
|
+
# Request to register a debuggee.
|
|
26
|
+
class RegisterDebuggeeRequest
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# Represents the application to debug. The application may include one or more
|
|
30
|
+
# replicated processes executing the same code. Each of these processes is
|
|
31
|
+
# attached with a debugger agent, carrying out the debugging commands. The
|
|
32
|
+
# agents attached to the same debuggee are identified by using exactly the same
|
|
33
|
+
# field values when registering.
|
|
34
|
+
# Corresponds to the JSON property `debuggee`
|
|
35
|
+
# @return [Google::Apis::ClouddebuggerV2::Debuggee]
|
|
36
|
+
attr_accessor :debuggee
|
|
37
|
+
|
|
38
|
+
def initialize(**args)
|
|
39
|
+
update!(**args)
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# Update properties of this object
|
|
43
|
+
def update!(**args)
|
|
44
|
+
@debuggee = args[:debuggee] unless args[:debuggee].nil?
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
# Represents the application to debug. The application may include one or more
|
|
49
|
+
# replicated processes executing the same code. Each of these processes is
|
|
50
|
+
# attached with a debugger agent, carrying out the debugging commands. The
|
|
51
|
+
# agents attached to the same debuggee are identified by using exactly the same
|
|
52
|
+
# field values when registering.
|
|
53
|
+
class Debuggee
|
|
54
|
+
include Google::Apis::Core::Hashable
|
|
55
|
+
|
|
56
|
+
# Unique identifier for the debuggee generated by the controller service.
|
|
57
|
+
# Corresponds to the JSON property `id`
|
|
58
|
+
# @return [String]
|
|
59
|
+
attr_accessor :id
|
|
60
|
+
|
|
61
|
+
# Project the debuggee is associated with. Use the project number when
|
|
62
|
+
# registering a Google Cloud Platform project.
|
|
63
|
+
# Corresponds to the JSON property `project`
|
|
64
|
+
# @return [String]
|
|
65
|
+
attr_accessor :project
|
|
66
|
+
|
|
67
|
+
# Debuggee uniquifier within the project. Any string that identifies the
|
|
68
|
+
# application within the project can be used. Including environment and version
|
|
69
|
+
# or build IDs is recommended.
|
|
70
|
+
# Corresponds to the JSON property `uniquifier`
|
|
71
|
+
# @return [String]
|
|
72
|
+
attr_accessor :uniquifier
|
|
73
|
+
|
|
74
|
+
# Human readable description of the debuggee. Including a human-readable project
|
|
75
|
+
# name, environment name and version information is recommended.
|
|
76
|
+
# Corresponds to the JSON property `description`
|
|
77
|
+
# @return [String]
|
|
78
|
+
attr_accessor :description
|
|
79
|
+
|
|
80
|
+
# If set to `true`, indicates that the debuggee is considered as inactive by the
|
|
81
|
+
# Controller service.
|
|
82
|
+
# Corresponds to the JSON property `isInactive`
|
|
83
|
+
# @return [Boolean]
|
|
84
|
+
attr_accessor :is_inactive
|
|
85
|
+
alias_method :is_inactive?, :is_inactive
|
|
86
|
+
|
|
87
|
+
# Version ID of the agent release. The version ID is structured as following: `
|
|
88
|
+
# domain/type/vmajor.minor` (for example `google.com/gcp-java/v1.1`).
|
|
89
|
+
# Corresponds to the JSON property `agentVersion`
|
|
90
|
+
# @return [String]
|
|
91
|
+
attr_accessor :agent_version
|
|
92
|
+
|
|
93
|
+
# If set to `true`, indicates that the agent should disable itself and detach
|
|
94
|
+
# from the debuggee.
|
|
95
|
+
# Corresponds to the JSON property `isDisabled`
|
|
96
|
+
# @return [Boolean]
|
|
97
|
+
attr_accessor :is_disabled
|
|
98
|
+
alias_method :is_disabled?, :is_disabled
|
|
99
|
+
|
|
100
|
+
# Represents a contextual status message. The message can indicate an error or
|
|
101
|
+
# informational status, and refer to specific parts of the containing object.
|
|
102
|
+
# For example, the `Breakpoint.status` field can indicate an error referring to
|
|
103
|
+
# the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
|
|
104
|
+
# Corresponds to the JSON property `status`
|
|
105
|
+
# @return [Google::Apis::ClouddebuggerV2::StatusMessage]
|
|
106
|
+
attr_accessor :status
|
|
107
|
+
|
|
108
|
+
# References to the locations and revisions of the source code used in the
|
|
109
|
+
# deployed application. NOTE: This field is deprecated. Consumers should use `
|
|
110
|
+
# ext_source_contexts` if it is not empty. Debug agents should populate both
|
|
111
|
+
# this field and `ext_source_contexts`.
|
|
112
|
+
# Corresponds to the JSON property `sourceContexts`
|
|
113
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::SourceContext>]
|
|
114
|
+
attr_accessor :source_contexts
|
|
115
|
+
|
|
116
|
+
# References to the locations and revisions of the source code used in the
|
|
117
|
+
# deployed application. Contexts describing a remote repo related to the source
|
|
118
|
+
# code have a `category` label of `remote_repo`. Source snapshot source contexts
|
|
119
|
+
# have a `category` of `snapshot`.
|
|
120
|
+
# Corresponds to the JSON property `extSourceContexts`
|
|
121
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::ExtendedSourceContext>]
|
|
122
|
+
attr_accessor :ext_source_contexts
|
|
123
|
+
|
|
124
|
+
# A set of custom debuggee properties, populated by the agent, to be displayed
|
|
125
|
+
# to the user.
|
|
126
|
+
# Corresponds to the JSON property `labels`
|
|
127
|
+
# @return [Hash<String,String>]
|
|
128
|
+
attr_accessor :labels
|
|
129
|
+
|
|
130
|
+
def initialize(**args)
|
|
131
|
+
update!(**args)
|
|
132
|
+
end
|
|
133
|
+
|
|
134
|
+
# Update properties of this object
|
|
135
|
+
def update!(**args)
|
|
136
|
+
@id = args[:id] unless args[:id].nil?
|
|
137
|
+
@project = args[:project] unless args[:project].nil?
|
|
138
|
+
@uniquifier = args[:uniquifier] unless args[:uniquifier].nil?
|
|
139
|
+
@description = args[:description] unless args[:description].nil?
|
|
140
|
+
@is_inactive = args[:is_inactive] unless args[:is_inactive].nil?
|
|
141
|
+
@agent_version = args[:agent_version] unless args[:agent_version].nil?
|
|
142
|
+
@is_disabled = args[:is_disabled] unless args[:is_disabled].nil?
|
|
143
|
+
@status = args[:status] unless args[:status].nil?
|
|
144
|
+
@source_contexts = args[:source_contexts] unless args[:source_contexts].nil?
|
|
145
|
+
@ext_source_contexts = args[:ext_source_contexts] unless args[:ext_source_contexts].nil?
|
|
146
|
+
@labels = args[:labels] unless args[:labels].nil?
|
|
147
|
+
end
|
|
148
|
+
end
|
|
149
|
+
|
|
150
|
+
# Represents a contextual status message. The message can indicate an error or
|
|
151
|
+
# informational status, and refer to specific parts of the containing object.
|
|
152
|
+
# For example, the `Breakpoint.status` field can indicate an error referring to
|
|
153
|
+
# the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
|
|
154
|
+
class StatusMessage
|
|
155
|
+
include Google::Apis::Core::Hashable
|
|
156
|
+
|
|
157
|
+
# Distinguishes errors from informational messages.
|
|
158
|
+
# Corresponds to the JSON property `isError`
|
|
159
|
+
# @return [Boolean]
|
|
160
|
+
attr_accessor :is_error
|
|
161
|
+
alias_method :is_error?, :is_error
|
|
162
|
+
|
|
163
|
+
# Reference to which the message applies.
|
|
164
|
+
# Corresponds to the JSON property `refersTo`
|
|
165
|
+
# @return [String]
|
|
166
|
+
attr_accessor :refers_to
|
|
167
|
+
|
|
168
|
+
# Represents a message with parameters.
|
|
169
|
+
# Corresponds to the JSON property `description`
|
|
170
|
+
# @return [Google::Apis::ClouddebuggerV2::FormatMessage]
|
|
171
|
+
attr_accessor :description
|
|
172
|
+
|
|
173
|
+
def initialize(**args)
|
|
174
|
+
update!(**args)
|
|
175
|
+
end
|
|
176
|
+
|
|
177
|
+
# Update properties of this object
|
|
178
|
+
def update!(**args)
|
|
179
|
+
@is_error = args[:is_error] unless args[:is_error].nil?
|
|
180
|
+
@refers_to = args[:refers_to] unless args[:refers_to].nil?
|
|
181
|
+
@description = args[:description] unless args[:description].nil?
|
|
182
|
+
end
|
|
183
|
+
end
|
|
184
|
+
|
|
185
|
+
# Represents a message with parameters.
|
|
186
|
+
class FormatMessage
|
|
187
|
+
include Google::Apis::Core::Hashable
|
|
188
|
+
|
|
189
|
+
# Format template for the message. The `format` uses placeholders `$0`, `$1`,
|
|
190
|
+
# etc. to reference parameters. `$$` can be used to denote the `$` character.
|
|
191
|
+
# Examples: * `Failed to load '$0' which helps debug $1 the first time it is
|
|
192
|
+
# loaded. Again, $0 is very important.` * `Please pay $$10 to use $0 instead of $
|
|
193
|
+
# 1.`
|
|
194
|
+
# Corresponds to the JSON property `format`
|
|
195
|
+
# @return [String]
|
|
196
|
+
attr_accessor :format
|
|
197
|
+
|
|
198
|
+
# Optional parameters to be embedded into the message.
|
|
199
|
+
# Corresponds to the JSON property `parameters`
|
|
200
|
+
# @return [Array<String>]
|
|
201
|
+
attr_accessor :parameters
|
|
202
|
+
|
|
203
|
+
def initialize(**args)
|
|
204
|
+
update!(**args)
|
|
205
|
+
end
|
|
206
|
+
|
|
207
|
+
# Update properties of this object
|
|
208
|
+
def update!(**args)
|
|
209
|
+
@format = args[:format] unless args[:format].nil?
|
|
210
|
+
@parameters = args[:parameters] unless args[:parameters].nil?
|
|
211
|
+
end
|
|
212
|
+
end
|
|
213
|
+
|
|
214
|
+
# A SourceContext is a reference to a tree of files. A SourceContext together
|
|
215
|
+
# with a path point to a unique revision of a single file or directory.
|
|
216
|
+
class SourceContext
|
|
217
|
+
include Google::Apis::Core::Hashable
|
|
218
|
+
|
|
219
|
+
# A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo
|
|
220
|
+
# hosted by the Google Cloud Platform).
|
|
221
|
+
# Corresponds to the JSON property `cloudRepo`
|
|
222
|
+
# @return [Google::Apis::ClouddebuggerV2::CloudRepoSourceContext]
|
|
223
|
+
attr_accessor :cloud_repo
|
|
224
|
+
|
|
225
|
+
# A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
|
|
226
|
+
# Corresponds to the JSON property `cloudWorkspace`
|
|
227
|
+
# @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceSourceContext]
|
|
228
|
+
attr_accessor :cloud_workspace
|
|
229
|
+
|
|
230
|
+
# A SourceContext referring to a Gerrit project.
|
|
231
|
+
# Corresponds to the JSON property `gerrit`
|
|
232
|
+
# @return [Google::Apis::ClouddebuggerV2::GerritSourceContext]
|
|
233
|
+
attr_accessor :gerrit
|
|
234
|
+
|
|
235
|
+
# A GitSourceContext denotes a particular revision in a third party Git
|
|
236
|
+
# repository (e.g. GitHub).
|
|
237
|
+
# Corresponds to the JSON property `git`
|
|
238
|
+
# @return [Google::Apis::ClouddebuggerV2::GitSourceContext]
|
|
239
|
+
attr_accessor :git
|
|
240
|
+
|
|
241
|
+
def initialize(**args)
|
|
242
|
+
update!(**args)
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
# Update properties of this object
|
|
246
|
+
def update!(**args)
|
|
247
|
+
@cloud_repo = args[:cloud_repo] unless args[:cloud_repo].nil?
|
|
248
|
+
@cloud_workspace = args[:cloud_workspace] unless args[:cloud_workspace].nil?
|
|
249
|
+
@gerrit = args[:gerrit] unless args[:gerrit].nil?
|
|
250
|
+
@git = args[:git] unless args[:git].nil?
|
|
251
|
+
end
|
|
252
|
+
end
|
|
253
|
+
|
|
254
|
+
# A CloudRepoSourceContext denotes a particular revision in a cloud repo (a repo
|
|
255
|
+
# hosted by the Google Cloud Platform).
|
|
256
|
+
class CloudRepoSourceContext
|
|
257
|
+
include Google::Apis::Core::Hashable
|
|
258
|
+
|
|
259
|
+
# A unique identifier for a cloud repo.
|
|
260
|
+
# Corresponds to the JSON property `repoId`
|
|
261
|
+
# @return [Google::Apis::ClouddebuggerV2::RepoId]
|
|
262
|
+
attr_accessor :repo_id
|
|
263
|
+
|
|
264
|
+
# A revision ID.
|
|
265
|
+
# Corresponds to the JSON property `revisionId`
|
|
266
|
+
# @return [String]
|
|
267
|
+
attr_accessor :revision_id
|
|
268
|
+
|
|
269
|
+
# The name of an alias (branch, tag, etc.).
|
|
270
|
+
# Corresponds to the JSON property `aliasName`
|
|
271
|
+
# @return [String]
|
|
272
|
+
attr_accessor :alias_name
|
|
273
|
+
|
|
274
|
+
# An alias to a repo revision.
|
|
275
|
+
# Corresponds to the JSON property `aliasContext`
|
|
276
|
+
# @return [Google::Apis::ClouddebuggerV2::AliasContext]
|
|
277
|
+
attr_accessor :alias_context
|
|
278
|
+
|
|
279
|
+
def initialize(**args)
|
|
280
|
+
update!(**args)
|
|
281
|
+
end
|
|
282
|
+
|
|
283
|
+
# Update properties of this object
|
|
284
|
+
def update!(**args)
|
|
285
|
+
@repo_id = args[:repo_id] unless args[:repo_id].nil?
|
|
286
|
+
@revision_id = args[:revision_id] unless args[:revision_id].nil?
|
|
287
|
+
@alias_name = args[:alias_name] unless args[:alias_name].nil?
|
|
288
|
+
@alias_context = args[:alias_context] unless args[:alias_context].nil?
|
|
289
|
+
end
|
|
290
|
+
end
|
|
291
|
+
|
|
292
|
+
# A unique identifier for a cloud repo.
|
|
293
|
+
class RepoId
|
|
294
|
+
include Google::Apis::Core::Hashable
|
|
295
|
+
|
|
296
|
+
# Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31)
|
|
297
|
+
# and a repo name within that project.
|
|
298
|
+
# Corresponds to the JSON property `projectRepoId`
|
|
299
|
+
# @return [Google::Apis::ClouddebuggerV2::ProjectRepoId]
|
|
300
|
+
attr_accessor :project_repo_id
|
|
301
|
+
|
|
302
|
+
# A server-assigned, globally unique identifier.
|
|
303
|
+
# Corresponds to the JSON property `uid`
|
|
304
|
+
# @return [String]
|
|
305
|
+
attr_accessor :uid
|
|
306
|
+
|
|
307
|
+
def initialize(**args)
|
|
308
|
+
update!(**args)
|
|
309
|
+
end
|
|
310
|
+
|
|
311
|
+
# Update properties of this object
|
|
312
|
+
def update!(**args)
|
|
313
|
+
@project_repo_id = args[:project_repo_id] unless args[:project_repo_id].nil?
|
|
314
|
+
@uid = args[:uid] unless args[:uid].nil?
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
# Selects a repo using a Google Cloud Platform project ID (e.g. winged-cargo-31)
|
|
319
|
+
# and a repo name within that project.
|
|
320
|
+
class ProjectRepoId
|
|
321
|
+
include Google::Apis::Core::Hashable
|
|
322
|
+
|
|
323
|
+
# The ID of the project.
|
|
324
|
+
# Corresponds to the JSON property `projectId`
|
|
325
|
+
# @return [String]
|
|
326
|
+
attr_accessor :project_id
|
|
327
|
+
|
|
328
|
+
# The name of the repo. Leave empty for the default repo.
|
|
329
|
+
# Corresponds to the JSON property `repoName`
|
|
330
|
+
# @return [String]
|
|
331
|
+
attr_accessor :repo_name
|
|
332
|
+
|
|
333
|
+
def initialize(**args)
|
|
334
|
+
update!(**args)
|
|
335
|
+
end
|
|
336
|
+
|
|
337
|
+
# Update properties of this object
|
|
338
|
+
def update!(**args)
|
|
339
|
+
@project_id = args[:project_id] unless args[:project_id].nil?
|
|
340
|
+
@repo_name = args[:repo_name] unless args[:repo_name].nil?
|
|
341
|
+
end
|
|
342
|
+
end
|
|
343
|
+
|
|
344
|
+
# An alias to a repo revision.
|
|
345
|
+
class AliasContext
|
|
346
|
+
include Google::Apis::Core::Hashable
|
|
347
|
+
|
|
348
|
+
# The alias kind.
|
|
349
|
+
# Corresponds to the JSON property `kind`
|
|
350
|
+
# @return [String]
|
|
351
|
+
attr_accessor :kind
|
|
352
|
+
|
|
353
|
+
# The alias name.
|
|
354
|
+
# Corresponds to the JSON property `name`
|
|
355
|
+
# @return [String]
|
|
356
|
+
attr_accessor :name
|
|
357
|
+
|
|
358
|
+
def initialize(**args)
|
|
359
|
+
update!(**args)
|
|
360
|
+
end
|
|
361
|
+
|
|
362
|
+
# Update properties of this object
|
|
363
|
+
def update!(**args)
|
|
364
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
365
|
+
@name = args[:name] unless args[:name].nil?
|
|
366
|
+
end
|
|
367
|
+
end
|
|
368
|
+
|
|
369
|
+
# A CloudWorkspaceSourceContext denotes a workspace at a particular snapshot.
|
|
370
|
+
class CloudWorkspaceSourceContext
|
|
371
|
+
include Google::Apis::Core::Hashable
|
|
372
|
+
|
|
373
|
+
# A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud
|
|
374
|
+
# workspace is a place associated with a repo where modified files can be stored
|
|
375
|
+
# before they are committed.
|
|
376
|
+
# Corresponds to the JSON property `workspaceId`
|
|
377
|
+
# @return [Google::Apis::ClouddebuggerV2::CloudWorkspaceId]
|
|
378
|
+
attr_accessor :workspace_id
|
|
379
|
+
|
|
380
|
+
# The ID of the snapshot. An empty snapshot_id refers to the most recent
|
|
381
|
+
# snapshot.
|
|
382
|
+
# Corresponds to the JSON property `snapshotId`
|
|
383
|
+
# @return [String]
|
|
384
|
+
attr_accessor :snapshot_id
|
|
385
|
+
|
|
386
|
+
def initialize(**args)
|
|
387
|
+
update!(**args)
|
|
388
|
+
end
|
|
389
|
+
|
|
390
|
+
# Update properties of this object
|
|
391
|
+
def update!(**args)
|
|
392
|
+
@workspace_id = args[:workspace_id] unless args[:workspace_id].nil?
|
|
393
|
+
@snapshot_id = args[:snapshot_id] unless args[:snapshot_id].nil?
|
|
394
|
+
end
|
|
395
|
+
end
|
|
396
|
+
|
|
397
|
+
# A CloudWorkspaceId is a unique identifier for a cloud workspace. A cloud
|
|
398
|
+
# workspace is a place associated with a repo where modified files can be stored
|
|
399
|
+
# before they are committed.
|
|
400
|
+
class CloudWorkspaceId
|
|
401
|
+
include Google::Apis::Core::Hashable
|
|
402
|
+
|
|
403
|
+
# A unique identifier for a cloud repo.
|
|
404
|
+
# Corresponds to the JSON property `repoId`
|
|
405
|
+
# @return [Google::Apis::ClouddebuggerV2::RepoId]
|
|
406
|
+
attr_accessor :repo_id
|
|
407
|
+
|
|
408
|
+
# The unique name of the workspace within the repo. This is the name chosen by
|
|
409
|
+
# the client in the Source API's CreateWorkspace method.
|
|
410
|
+
# Corresponds to the JSON property `name`
|
|
411
|
+
# @return [String]
|
|
412
|
+
attr_accessor :name
|
|
413
|
+
|
|
414
|
+
def initialize(**args)
|
|
415
|
+
update!(**args)
|
|
416
|
+
end
|
|
417
|
+
|
|
418
|
+
# Update properties of this object
|
|
419
|
+
def update!(**args)
|
|
420
|
+
@repo_id = args[:repo_id] unless args[:repo_id].nil?
|
|
421
|
+
@name = args[:name] unless args[:name].nil?
|
|
422
|
+
end
|
|
423
|
+
end
|
|
424
|
+
|
|
425
|
+
# A SourceContext referring to a Gerrit project.
|
|
426
|
+
class GerritSourceContext
|
|
427
|
+
include Google::Apis::Core::Hashable
|
|
428
|
+
|
|
429
|
+
# The URI of a running Gerrit instance.
|
|
430
|
+
# Corresponds to the JSON property `hostUri`
|
|
431
|
+
# @return [String]
|
|
432
|
+
attr_accessor :host_uri
|
|
433
|
+
|
|
434
|
+
# The full project name within the host. Projects may be nested, so "project/
|
|
435
|
+
# subproject" is a valid project name. The "repo name" is hostURI/project.
|
|
436
|
+
# Corresponds to the JSON property `gerritProject`
|
|
437
|
+
# @return [String]
|
|
438
|
+
attr_accessor :gerrit_project
|
|
439
|
+
|
|
440
|
+
# A revision (commit) ID.
|
|
441
|
+
# Corresponds to the JSON property `revisionId`
|
|
442
|
+
# @return [String]
|
|
443
|
+
attr_accessor :revision_id
|
|
444
|
+
|
|
445
|
+
# The name of an alias (branch, tag, etc.).
|
|
446
|
+
# Corresponds to the JSON property `aliasName`
|
|
447
|
+
# @return [String]
|
|
448
|
+
attr_accessor :alias_name
|
|
449
|
+
|
|
450
|
+
# An alias to a repo revision.
|
|
451
|
+
# Corresponds to the JSON property `aliasContext`
|
|
452
|
+
# @return [Google::Apis::ClouddebuggerV2::AliasContext]
|
|
453
|
+
attr_accessor :alias_context
|
|
454
|
+
|
|
455
|
+
def initialize(**args)
|
|
456
|
+
update!(**args)
|
|
457
|
+
end
|
|
458
|
+
|
|
459
|
+
# Update properties of this object
|
|
460
|
+
def update!(**args)
|
|
461
|
+
@host_uri = args[:host_uri] unless args[:host_uri].nil?
|
|
462
|
+
@gerrit_project = args[:gerrit_project] unless args[:gerrit_project].nil?
|
|
463
|
+
@revision_id = args[:revision_id] unless args[:revision_id].nil?
|
|
464
|
+
@alias_name = args[:alias_name] unless args[:alias_name].nil?
|
|
465
|
+
@alias_context = args[:alias_context] unless args[:alias_context].nil?
|
|
466
|
+
end
|
|
467
|
+
end
|
|
468
|
+
|
|
469
|
+
# A GitSourceContext denotes a particular revision in a third party Git
|
|
470
|
+
# repository (e.g. GitHub).
|
|
471
|
+
class GitSourceContext
|
|
472
|
+
include Google::Apis::Core::Hashable
|
|
473
|
+
|
|
474
|
+
# Git repository URL.
|
|
475
|
+
# Corresponds to the JSON property `url`
|
|
476
|
+
# @return [String]
|
|
477
|
+
attr_accessor :url
|
|
478
|
+
|
|
479
|
+
# Git commit hash. required.
|
|
480
|
+
# Corresponds to the JSON property `revisionId`
|
|
481
|
+
# @return [String]
|
|
482
|
+
attr_accessor :revision_id
|
|
483
|
+
|
|
484
|
+
def initialize(**args)
|
|
485
|
+
update!(**args)
|
|
486
|
+
end
|
|
487
|
+
|
|
488
|
+
# Update properties of this object
|
|
489
|
+
def update!(**args)
|
|
490
|
+
@url = args[:url] unless args[:url].nil?
|
|
491
|
+
@revision_id = args[:revision_id] unless args[:revision_id].nil?
|
|
492
|
+
end
|
|
493
|
+
end
|
|
494
|
+
|
|
495
|
+
# An ExtendedSourceContext is a SourceContext combined with additional details
|
|
496
|
+
# describing the context.
|
|
497
|
+
class ExtendedSourceContext
|
|
498
|
+
include Google::Apis::Core::Hashable
|
|
499
|
+
|
|
500
|
+
# A SourceContext is a reference to a tree of files. A SourceContext together
|
|
501
|
+
# with a path point to a unique revision of a single file or directory.
|
|
502
|
+
# Corresponds to the JSON property `context`
|
|
503
|
+
# @return [Google::Apis::ClouddebuggerV2::SourceContext]
|
|
504
|
+
attr_accessor :context
|
|
505
|
+
|
|
506
|
+
# Labels with user defined metadata.
|
|
507
|
+
# Corresponds to the JSON property `labels`
|
|
508
|
+
# @return [Hash<String,String>]
|
|
509
|
+
attr_accessor :labels
|
|
510
|
+
|
|
511
|
+
def initialize(**args)
|
|
512
|
+
update!(**args)
|
|
513
|
+
end
|
|
514
|
+
|
|
515
|
+
# Update properties of this object
|
|
516
|
+
def update!(**args)
|
|
517
|
+
@context = args[:context] unless args[:context].nil?
|
|
518
|
+
@labels = args[:labels] unless args[:labels].nil?
|
|
519
|
+
end
|
|
520
|
+
end
|
|
521
|
+
|
|
522
|
+
# Response for registering a debuggee.
|
|
523
|
+
class RegisterDebuggeeResponse
|
|
524
|
+
include Google::Apis::Core::Hashable
|
|
525
|
+
|
|
526
|
+
# Represents the application to debug. The application may include one or more
|
|
527
|
+
# replicated processes executing the same code. Each of these processes is
|
|
528
|
+
# attached with a debugger agent, carrying out the debugging commands. The
|
|
529
|
+
# agents attached to the same debuggee are identified by using exactly the same
|
|
530
|
+
# field values when registering.
|
|
531
|
+
# Corresponds to the JSON property `debuggee`
|
|
532
|
+
# @return [Google::Apis::ClouddebuggerV2::Debuggee]
|
|
533
|
+
attr_accessor :debuggee
|
|
534
|
+
|
|
535
|
+
def initialize(**args)
|
|
536
|
+
update!(**args)
|
|
537
|
+
end
|
|
538
|
+
|
|
539
|
+
# Update properties of this object
|
|
540
|
+
def update!(**args)
|
|
541
|
+
@debuggee = args[:debuggee] unless args[:debuggee].nil?
|
|
542
|
+
end
|
|
543
|
+
end
|
|
544
|
+
|
|
545
|
+
# Response for listing active breakpoints.
|
|
546
|
+
class ListActiveBreakpointsResponse
|
|
547
|
+
include Google::Apis::Core::Hashable
|
|
548
|
+
|
|
549
|
+
# List of all active breakpoints. The fields `id` and `location` are guaranteed
|
|
550
|
+
# to be set on each breakpoint.
|
|
551
|
+
# Corresponds to the JSON property `breakpoints`
|
|
552
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
|
|
553
|
+
attr_accessor :breakpoints
|
|
554
|
+
|
|
555
|
+
# A wait token that can be used in the next method call to block until the list
|
|
556
|
+
# of breakpoints changes.
|
|
557
|
+
# Corresponds to the JSON property `nextWaitToken`
|
|
558
|
+
# @return [String]
|
|
559
|
+
attr_accessor :next_wait_token
|
|
560
|
+
|
|
561
|
+
# The `wait_expired` field is set to true by the server when the request times
|
|
562
|
+
# out and the field `success_on_timeout` is set to true.
|
|
563
|
+
# Corresponds to the JSON property `waitExpired`
|
|
564
|
+
# @return [Boolean]
|
|
565
|
+
attr_accessor :wait_expired
|
|
566
|
+
alias_method :wait_expired?, :wait_expired
|
|
567
|
+
|
|
568
|
+
def initialize(**args)
|
|
569
|
+
update!(**args)
|
|
570
|
+
end
|
|
571
|
+
|
|
572
|
+
# Update properties of this object
|
|
573
|
+
def update!(**args)
|
|
574
|
+
@breakpoints = args[:breakpoints] unless args[:breakpoints].nil?
|
|
575
|
+
@next_wait_token = args[:next_wait_token] unless args[:next_wait_token].nil?
|
|
576
|
+
@wait_expired = args[:wait_expired] unless args[:wait_expired].nil?
|
|
577
|
+
end
|
|
578
|
+
end
|
|
579
|
+
|
|
580
|
+
# Represents the breakpoint specification, status and results.
|
|
581
|
+
class Breakpoint
|
|
582
|
+
include Google::Apis::Core::Hashable
|
|
583
|
+
|
|
584
|
+
# Breakpoint identifier, unique in the scope of the debuggee.
|
|
585
|
+
# Corresponds to the JSON property `id`
|
|
586
|
+
# @return [String]
|
|
587
|
+
attr_accessor :id
|
|
588
|
+
|
|
589
|
+
# Action that the agent should perform when the code at the breakpoint location
|
|
590
|
+
# is hit.
|
|
591
|
+
# Corresponds to the JSON property `action`
|
|
592
|
+
# @return [String]
|
|
593
|
+
attr_accessor :action
|
|
594
|
+
|
|
595
|
+
# Represents a location in the source code.
|
|
596
|
+
# Corresponds to the JSON property `location`
|
|
597
|
+
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
|
|
598
|
+
attr_accessor :location
|
|
599
|
+
|
|
600
|
+
# Condition that triggers the breakpoint. The condition is a compound boolean
|
|
601
|
+
# expression composed using expressions in a programming language at the source
|
|
602
|
+
# location.
|
|
603
|
+
# Corresponds to the JSON property `condition`
|
|
604
|
+
# @return [String]
|
|
605
|
+
attr_accessor :condition
|
|
606
|
+
|
|
607
|
+
# List of read-only expressions to evaluate at the breakpoint location. The
|
|
608
|
+
# expressions are composed using expressions in the programming language at the
|
|
609
|
+
# source location. If the breakpoint action is `LOG`, the evaluated expressions
|
|
610
|
+
# are included in log statements.
|
|
611
|
+
# Corresponds to the JSON property `expressions`
|
|
612
|
+
# @return [Array<String>]
|
|
613
|
+
attr_accessor :expressions
|
|
614
|
+
|
|
615
|
+
# Only relevant when action is `LOG`. Defines the message to log when the
|
|
616
|
+
# breakpoint hits. The message may include parameter placeholders `$0`, `$1`,
|
|
617
|
+
# etc. These placeholders are replaced with the evaluated value of the
|
|
618
|
+
# appropriate expression. Expressions not referenced in `log_message_format` are
|
|
619
|
+
# not logged. Example: `Message received, id = $0, count = $1` with `expressions`
|
|
620
|
+
# = `[ message.id, message.count ]`.
|
|
621
|
+
# Corresponds to the JSON property `logMessageFormat`
|
|
622
|
+
# @return [String]
|
|
623
|
+
attr_accessor :log_message_format
|
|
624
|
+
|
|
625
|
+
# Indicates the severity of the log. Only relevant when action is `LOG`.
|
|
626
|
+
# Corresponds to the JSON property `logLevel`
|
|
627
|
+
# @return [String]
|
|
628
|
+
attr_accessor :log_level
|
|
629
|
+
|
|
630
|
+
# When true, indicates that this is a final result and the breakpoint state will
|
|
631
|
+
# not change from here on.
|
|
632
|
+
# Corresponds to the JSON property `isFinalState`
|
|
633
|
+
# @return [Boolean]
|
|
634
|
+
attr_accessor :is_final_state
|
|
635
|
+
alias_method :is_final_state?, :is_final_state
|
|
636
|
+
|
|
637
|
+
# Time this breakpoint was created by the server in seconds resolution.
|
|
638
|
+
# Corresponds to the JSON property `createTime`
|
|
639
|
+
# @return [String]
|
|
640
|
+
attr_accessor :create_time
|
|
641
|
+
|
|
642
|
+
# Time this breakpoint was finalized as seen by the server in seconds resolution.
|
|
643
|
+
# Corresponds to the JSON property `finalTime`
|
|
644
|
+
# @return [String]
|
|
645
|
+
attr_accessor :final_time
|
|
646
|
+
|
|
647
|
+
# E-mail address of the user that created this breakpoint
|
|
648
|
+
# Corresponds to the JSON property `userEmail`
|
|
649
|
+
# @return [String]
|
|
650
|
+
attr_accessor :user_email
|
|
651
|
+
|
|
652
|
+
# Represents a contextual status message. The message can indicate an error or
|
|
653
|
+
# informational status, and refer to specific parts of the containing object.
|
|
654
|
+
# For example, the `Breakpoint.status` field can indicate an error referring to
|
|
655
|
+
# the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
|
|
656
|
+
# Corresponds to the JSON property `status`
|
|
657
|
+
# @return [Google::Apis::ClouddebuggerV2::StatusMessage]
|
|
658
|
+
attr_accessor :status
|
|
659
|
+
|
|
660
|
+
# The stack at breakpoint time.
|
|
661
|
+
# Corresponds to the JSON property `stackFrames`
|
|
662
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::StackFrame>]
|
|
663
|
+
attr_accessor :stack_frames
|
|
664
|
+
|
|
665
|
+
# Values of evaluated expressions at breakpoint time. The evaluated expressions
|
|
666
|
+
# appear in exactly the same order they are listed in the `expressions` field.
|
|
667
|
+
# The `name` field holds the original expression text, the `value` or `members`
|
|
668
|
+
# field holds the result of the evaluated expression. If the expression cannot
|
|
669
|
+
# be evaluated, the `status` inside the `Variable` will indicate an error and
|
|
670
|
+
# contain the error text.
|
|
671
|
+
# Corresponds to the JSON property `evaluatedExpressions`
|
|
672
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
|
673
|
+
attr_accessor :evaluated_expressions
|
|
674
|
+
|
|
675
|
+
# The `variable_table` exists to aid with computation, memory and network
|
|
676
|
+
# traffic optimization. It enables storing a variable once and reference it from
|
|
677
|
+
# multiple variables, including variables stored in the `variable_table` itself.
|
|
678
|
+
# For example, the same `this` object, which may appear at many levels of the
|
|
679
|
+
# stack, can have all of its data stored once in this table. The stack frame
|
|
680
|
+
# variables then would hold only a reference to it. The variable `
|
|
681
|
+
# var_table_index` field is an index into this repeated field. The stored
|
|
682
|
+
# objects are nameless and get their name from the referencing variable. The
|
|
683
|
+
# effective variable is a merge of the referencing veariable and the referenced
|
|
684
|
+
# variable.
|
|
685
|
+
# Corresponds to the JSON property `variableTable`
|
|
686
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
|
687
|
+
attr_accessor :variable_table
|
|
688
|
+
|
|
689
|
+
def initialize(**args)
|
|
690
|
+
update!(**args)
|
|
691
|
+
end
|
|
692
|
+
|
|
693
|
+
# Update properties of this object
|
|
694
|
+
def update!(**args)
|
|
695
|
+
@id = args[:id] unless args[:id].nil?
|
|
696
|
+
@action = args[:action] unless args[:action].nil?
|
|
697
|
+
@location = args[:location] unless args[:location].nil?
|
|
698
|
+
@condition = args[:condition] unless args[:condition].nil?
|
|
699
|
+
@expressions = args[:expressions] unless args[:expressions].nil?
|
|
700
|
+
@log_message_format = args[:log_message_format] unless args[:log_message_format].nil?
|
|
701
|
+
@log_level = args[:log_level] unless args[:log_level].nil?
|
|
702
|
+
@is_final_state = args[:is_final_state] unless args[:is_final_state].nil?
|
|
703
|
+
@create_time = args[:create_time] unless args[:create_time].nil?
|
|
704
|
+
@final_time = args[:final_time] unless args[:final_time].nil?
|
|
705
|
+
@user_email = args[:user_email] unless args[:user_email].nil?
|
|
706
|
+
@status = args[:status] unless args[:status].nil?
|
|
707
|
+
@stack_frames = args[:stack_frames] unless args[:stack_frames].nil?
|
|
708
|
+
@evaluated_expressions = args[:evaluated_expressions] unless args[:evaluated_expressions].nil?
|
|
709
|
+
@variable_table = args[:variable_table] unless args[:variable_table].nil?
|
|
710
|
+
end
|
|
711
|
+
end
|
|
712
|
+
|
|
713
|
+
# Represents a location in the source code.
|
|
714
|
+
class SourceLocation
|
|
715
|
+
include Google::Apis::Core::Hashable
|
|
716
|
+
|
|
717
|
+
# Path to the source file within the source context of the target binary.
|
|
718
|
+
# Corresponds to the JSON property `path`
|
|
719
|
+
# @return [String]
|
|
720
|
+
attr_accessor :path
|
|
721
|
+
|
|
722
|
+
# Line inside the file. The first line in the file has the value `1`.
|
|
723
|
+
# Corresponds to the JSON property `line`
|
|
724
|
+
# @return [Fixnum]
|
|
725
|
+
attr_accessor :line
|
|
726
|
+
|
|
727
|
+
def initialize(**args)
|
|
728
|
+
update!(**args)
|
|
729
|
+
end
|
|
730
|
+
|
|
731
|
+
# Update properties of this object
|
|
732
|
+
def update!(**args)
|
|
733
|
+
@path = args[:path] unless args[:path].nil?
|
|
734
|
+
@line = args[:line] unless args[:line].nil?
|
|
735
|
+
end
|
|
736
|
+
end
|
|
737
|
+
|
|
738
|
+
# Represents a stack frame context.
|
|
739
|
+
class StackFrame
|
|
740
|
+
include Google::Apis::Core::Hashable
|
|
741
|
+
|
|
742
|
+
# Demangled function name at the call site.
|
|
743
|
+
# Corresponds to the JSON property `function`
|
|
744
|
+
# @return [String]
|
|
745
|
+
attr_accessor :function
|
|
746
|
+
|
|
747
|
+
# Represents a location in the source code.
|
|
748
|
+
# Corresponds to the JSON property `location`
|
|
749
|
+
# @return [Google::Apis::ClouddebuggerV2::SourceLocation]
|
|
750
|
+
attr_accessor :location
|
|
751
|
+
|
|
752
|
+
# Set of arguments passed to this function. Note that this might not be
|
|
753
|
+
# populated for all stack frames.
|
|
754
|
+
# Corresponds to the JSON property `arguments`
|
|
755
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
|
756
|
+
attr_accessor :arguments
|
|
757
|
+
|
|
758
|
+
# Set of local variables at the stack frame location. Note that this might not
|
|
759
|
+
# be populated for all stack frames.
|
|
760
|
+
# Corresponds to the JSON property `locals`
|
|
761
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
|
762
|
+
attr_accessor :locals
|
|
763
|
+
|
|
764
|
+
def initialize(**args)
|
|
765
|
+
update!(**args)
|
|
766
|
+
end
|
|
767
|
+
|
|
768
|
+
# Update properties of this object
|
|
769
|
+
def update!(**args)
|
|
770
|
+
@function = args[:function] unless args[:function].nil?
|
|
771
|
+
@location = args[:location] unless args[:location].nil?
|
|
772
|
+
@arguments = args[:arguments] unless args[:arguments].nil?
|
|
773
|
+
@locals = args[:locals] unless args[:locals].nil?
|
|
774
|
+
end
|
|
775
|
+
end
|
|
776
|
+
|
|
777
|
+
# Represents a variable or an argument possibly of a compound object type. Note
|
|
778
|
+
# how the following variables are represented: 1) A simple variable: int x = 5 `
|
|
779
|
+
# name: "x", value: "5", type: "int" ` // Captured variable 2) A compound object:
|
|
780
|
+
# struct T ` int m1; int m2; `; T x = ` 3, 7 `; ` // Captured variable name: "x"
|
|
781
|
+
# , type: "T", members ` name: "m1", value: "3", type: "int" `, members ` name: "
|
|
782
|
+
# m2", value: "7", type: "int" ` ` 3) A pointer where the pointee was captured:
|
|
783
|
+
# T x = ` 3, 7 `; T* p = &x; ` // Captured variable name: "p", type: "T*", value:
|
|
784
|
+
# "0x00500500", members ` name: "m1", value: "3", type: "int" `, members ` name:
|
|
785
|
+
# "m2", value: "7", type: "int" ` ` 4) A pointer where the pointee was not
|
|
786
|
+
# captured: T* p = new T; ` // Captured variable name: "p", type: "T*", value: "
|
|
787
|
+
# 0x00400400" status ` is_error: true, description ` format: "unavailable" ` ` `
|
|
788
|
+
# The status should describe the reason for the missing value, such as ``, ``, `
|
|
789
|
+
# `. Note that a null pointer should not have members. 5) An unnamed value: int*
|
|
790
|
+
# p = new int(7); ` // Captured variable name: "p", value: "0x00500500", type: "
|
|
791
|
+
# int*", members ` value: "7", type: "int" ` ` 6) An unnamed pointer where the
|
|
792
|
+
# pointee was not captured: int* p = new int(7); int** pp = &p; ` // Captured
|
|
793
|
+
# variable name: "pp", value: "0x00500500", type: "int**", members ` value: "
|
|
794
|
+
# 0x00400400", type: "int*" status ` is_error: true, description: ` format: "
|
|
795
|
+
# unavailable" ` ` ` ` ` To optimize computation, memory and network traffic,
|
|
796
|
+
# variables that repeat in the output multiple times can be stored once in a
|
|
797
|
+
# shared variable table and be referenced using the `var_table_index` field. The
|
|
798
|
+
# variables stored in the shared table are nameless and are essentially a
|
|
799
|
+
# partition of the complete variable. To reconstruct the complete variable,
|
|
800
|
+
# merge the referencing variable with the referenced variable. When using the
|
|
801
|
+
# shared variable table, the following variables: T x = ` 3, 7 `; T* p = &x; T&
|
|
802
|
+
# r = x; ` name: "x", var_table_index: 3, type: "T" ` // Captured variables `
|
|
803
|
+
# name: "p", value "0x00500500", type="T*", var_table_index: 3 ` ` name: "r",
|
|
804
|
+
# type="T&", var_table_index: 3 ` ` // Shared variable table entry #3: members `
|
|
805
|
+
# name: "m1", value: "3", type: "int" `, members ` name: "m2", value: "7", type:
|
|
806
|
+
# "int" ` ` Note that the pointer address is stored with the referencing
|
|
807
|
+
# variable and not with the referenced variable. This allows the referenced
|
|
808
|
+
# variable to be shared between pointers and references. The type field is
|
|
809
|
+
# optional. The debugger agent may or may not support it.
|
|
810
|
+
class Variable
|
|
811
|
+
include Google::Apis::Core::Hashable
|
|
812
|
+
|
|
813
|
+
# Name of the variable, if any.
|
|
814
|
+
# Corresponds to the JSON property `name`
|
|
815
|
+
# @return [String]
|
|
816
|
+
attr_accessor :name
|
|
817
|
+
|
|
818
|
+
# Simple value of the variable.
|
|
819
|
+
# Corresponds to the JSON property `value`
|
|
820
|
+
# @return [String]
|
|
821
|
+
attr_accessor :value
|
|
822
|
+
|
|
823
|
+
# Variable type (e.g. `MyClass`). If the variable is split with `var_table_index`
|
|
824
|
+
# , `type` goes next to `value`. The interpretation of a type is agent specific.
|
|
825
|
+
# It is recommended to include the dynamic type rather than a static type of an
|
|
826
|
+
# object.
|
|
827
|
+
# Corresponds to the JSON property `type`
|
|
828
|
+
# @return [String]
|
|
829
|
+
attr_accessor :type
|
|
830
|
+
|
|
831
|
+
# Members contained or pointed to by the variable.
|
|
832
|
+
# Corresponds to the JSON property `members`
|
|
833
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Variable>]
|
|
834
|
+
attr_accessor :members
|
|
835
|
+
|
|
836
|
+
# Reference to a variable in the shared variable table. More than one variable
|
|
837
|
+
# can reference the same variable in the table. The `var_table_index` field is
|
|
838
|
+
# an index into `variable_table` in Breakpoint.
|
|
839
|
+
# Corresponds to the JSON property `varTableIndex`
|
|
840
|
+
# @return [Fixnum]
|
|
841
|
+
attr_accessor :var_table_index
|
|
842
|
+
|
|
843
|
+
# Represents a contextual status message. The message can indicate an error or
|
|
844
|
+
# informational status, and refer to specific parts of the containing object.
|
|
845
|
+
# For example, the `Breakpoint.status` field can indicate an error referring to
|
|
846
|
+
# the `BREAKPOINT_SOURCE_LOCATION` with the message `Location not found`.
|
|
847
|
+
# Corresponds to the JSON property `status`
|
|
848
|
+
# @return [Google::Apis::ClouddebuggerV2::StatusMessage]
|
|
849
|
+
attr_accessor :status
|
|
850
|
+
|
|
851
|
+
def initialize(**args)
|
|
852
|
+
update!(**args)
|
|
853
|
+
end
|
|
854
|
+
|
|
855
|
+
# Update properties of this object
|
|
856
|
+
def update!(**args)
|
|
857
|
+
@name = args[:name] unless args[:name].nil?
|
|
858
|
+
@value = args[:value] unless args[:value].nil?
|
|
859
|
+
@type = args[:type] unless args[:type].nil?
|
|
860
|
+
@members = args[:members] unless args[:members].nil?
|
|
861
|
+
@var_table_index = args[:var_table_index] unless args[:var_table_index].nil?
|
|
862
|
+
@status = args[:status] unless args[:status].nil?
|
|
863
|
+
end
|
|
864
|
+
end
|
|
865
|
+
|
|
866
|
+
# Request to update an active breakpoint.
|
|
867
|
+
class UpdateActiveBreakpointRequest
|
|
868
|
+
include Google::Apis::Core::Hashable
|
|
869
|
+
|
|
870
|
+
# Represents the breakpoint specification, status and results.
|
|
871
|
+
# Corresponds to the JSON property `breakpoint`
|
|
872
|
+
# @return [Google::Apis::ClouddebuggerV2::Breakpoint]
|
|
873
|
+
attr_accessor :breakpoint
|
|
874
|
+
|
|
875
|
+
def initialize(**args)
|
|
876
|
+
update!(**args)
|
|
877
|
+
end
|
|
878
|
+
|
|
879
|
+
# Update properties of this object
|
|
880
|
+
def update!(**args)
|
|
881
|
+
@breakpoint = args[:breakpoint] unless args[:breakpoint].nil?
|
|
882
|
+
end
|
|
883
|
+
end
|
|
884
|
+
|
|
885
|
+
# Response for updating an active breakpoint. The message is defined to allow
|
|
886
|
+
# future extensions.
|
|
887
|
+
class UpdateActiveBreakpointResponse
|
|
888
|
+
include Google::Apis::Core::Hashable
|
|
889
|
+
|
|
890
|
+
def initialize(**args)
|
|
891
|
+
update!(**args)
|
|
892
|
+
end
|
|
893
|
+
|
|
894
|
+
# Update properties of this object
|
|
895
|
+
def update!(**args)
|
|
896
|
+
end
|
|
897
|
+
end
|
|
898
|
+
|
|
899
|
+
# Response for setting a breakpoint.
|
|
900
|
+
class SetBreakpointResponse
|
|
901
|
+
include Google::Apis::Core::Hashable
|
|
902
|
+
|
|
903
|
+
# Represents the breakpoint specification, status and results.
|
|
904
|
+
# Corresponds to the JSON property `breakpoint`
|
|
905
|
+
# @return [Google::Apis::ClouddebuggerV2::Breakpoint]
|
|
906
|
+
attr_accessor :breakpoint
|
|
907
|
+
|
|
908
|
+
def initialize(**args)
|
|
909
|
+
update!(**args)
|
|
910
|
+
end
|
|
911
|
+
|
|
912
|
+
# Update properties of this object
|
|
913
|
+
def update!(**args)
|
|
914
|
+
@breakpoint = args[:breakpoint] unless args[:breakpoint].nil?
|
|
915
|
+
end
|
|
916
|
+
end
|
|
917
|
+
|
|
918
|
+
# Response for getting breakpoint information.
|
|
919
|
+
class GetBreakpointResponse
|
|
920
|
+
include Google::Apis::Core::Hashable
|
|
921
|
+
|
|
922
|
+
# Represents the breakpoint specification, status and results.
|
|
923
|
+
# Corresponds to the JSON property `breakpoint`
|
|
924
|
+
# @return [Google::Apis::ClouddebuggerV2::Breakpoint]
|
|
925
|
+
attr_accessor :breakpoint
|
|
926
|
+
|
|
927
|
+
def initialize(**args)
|
|
928
|
+
update!(**args)
|
|
929
|
+
end
|
|
930
|
+
|
|
931
|
+
# Update properties of this object
|
|
932
|
+
def update!(**args)
|
|
933
|
+
@breakpoint = args[:breakpoint] unless args[:breakpoint].nil?
|
|
934
|
+
end
|
|
935
|
+
end
|
|
936
|
+
|
|
937
|
+
# A generic empty message that you can re-use to avoid defining duplicated empty
|
|
938
|
+
# messages in your APIs. A typical example is to use it as the request or the
|
|
939
|
+
# response type of an API method. For instance: service Foo ` rpc Bar(google.
|
|
940
|
+
# protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for
|
|
941
|
+
# `Empty` is empty JSON object ````.
|
|
942
|
+
class Empty
|
|
943
|
+
include Google::Apis::Core::Hashable
|
|
944
|
+
|
|
945
|
+
def initialize(**args)
|
|
946
|
+
update!(**args)
|
|
947
|
+
end
|
|
948
|
+
|
|
949
|
+
# Update properties of this object
|
|
950
|
+
def update!(**args)
|
|
951
|
+
end
|
|
952
|
+
end
|
|
953
|
+
|
|
954
|
+
# Response for listing breakpoints.
|
|
955
|
+
class ListBreakpointsResponse
|
|
956
|
+
include Google::Apis::Core::Hashable
|
|
957
|
+
|
|
958
|
+
# List of all breakpoints with complete state. The fields `id` and `location`
|
|
959
|
+
# are guaranteed to be set on each breakpoint.
|
|
960
|
+
# Corresponds to the JSON property `breakpoints`
|
|
961
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Breakpoint>]
|
|
962
|
+
attr_accessor :breakpoints
|
|
963
|
+
|
|
964
|
+
# A wait token that can be used in the next call to `list` (REST) or `
|
|
965
|
+
# ListBreakpoints` (RPC) to block until the list of breakpoints has changes.
|
|
966
|
+
# Corresponds to the JSON property `nextWaitToken`
|
|
967
|
+
# @return [String]
|
|
968
|
+
attr_accessor :next_wait_token
|
|
969
|
+
|
|
970
|
+
def initialize(**args)
|
|
971
|
+
update!(**args)
|
|
972
|
+
end
|
|
973
|
+
|
|
974
|
+
# Update properties of this object
|
|
975
|
+
def update!(**args)
|
|
976
|
+
@breakpoints = args[:breakpoints] unless args[:breakpoints].nil?
|
|
977
|
+
@next_wait_token = args[:next_wait_token] unless args[:next_wait_token].nil?
|
|
978
|
+
end
|
|
979
|
+
end
|
|
980
|
+
|
|
981
|
+
# Response for listing debuggees.
|
|
982
|
+
class ListDebuggeesResponse
|
|
983
|
+
include Google::Apis::Core::Hashable
|
|
984
|
+
|
|
985
|
+
# List of debuggees accessible to the calling user. Note that the `description`
|
|
986
|
+
# field is the only human readable field that should be displayed to the user.
|
|
987
|
+
# The fields `debuggee.id` and `description` fields are guaranteed to be set on
|
|
988
|
+
# each debuggee.
|
|
989
|
+
# Corresponds to the JSON property `debuggees`
|
|
990
|
+
# @return [Array<Google::Apis::ClouddebuggerV2::Debuggee>]
|
|
991
|
+
attr_accessor :debuggees
|
|
992
|
+
|
|
993
|
+
def initialize(**args)
|
|
994
|
+
update!(**args)
|
|
995
|
+
end
|
|
996
|
+
|
|
997
|
+
# Update properties of this object
|
|
998
|
+
def update!(**args)
|
|
999
|
+
@debuggees = args[:debuggees] unless args[:debuggees].nil?
|
|
1000
|
+
end
|
|
1001
|
+
end
|
|
1002
|
+
end
|
|
1003
|
+
end
|
|
1004
|
+
end
|