google-api-client 0.10.3 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +12 -18
- data/CHANGELOG.md +22 -2
- data/Gemfile +5 -7
- data/MIGRATING.md +33 -0
- data/README.md +10 -2
- data/Rakefile +1 -0
- data/bin/generate-api +7 -1
- data/dl.rb +0 -0
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +6 -6
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +1 -1
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +1 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +759 -759
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +152 -152
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +376 -375
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +58 -58
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +45 -45
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +22 -21
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +5 -5
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +1 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +2 -2
- data/generated/google/apis/admin_datatransfer_v1/service.rb +2 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +11 -11
- data/generated/google/apis/admin_directory_v1/representations.rb +11 -11
- data/generated/google/apis/admin_directory_v1/service.rb +1 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +5 -5
- data/generated/google/apis/admin_reports_v1/representations.rb +4 -4
- data/generated/google/apis/admin_reports_v1/service.rb +1 -0
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +2 -2
- data/generated/google/apis/adsense_v1_4/representations.rb +2 -2
- data/generated/google/apis/adsense_v1_4/service.rb +1 -0
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/classes.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/representations.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +1 -0
- data/generated/google/apis/analytics_v3/classes.rb +10 -10
- data/generated/google/apis/analytics_v3/representations.rb +10 -10
- data/generated/google/apis/analytics_v3/service.rb +1 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +933 -933
- data/generated/google/apis/analyticsreporting_v4/representations.rb +197 -197
- data/generated/google/apis/analyticsreporting_v4/service.rb +5 -4
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/representations.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/service.rb +1 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/representations.rb +13 -13
- data/generated/google/apis/androidpublisher_v2/service.rb +3 -2
- data/generated/google/apis/appengine_v1/classes.rb +2 -2
- data/generated/google/apis/appengine_v1/representations.rb +2 -2
- data/generated/google/apis/appengine_v1/service.rb +1 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +1 -1
- data/generated/google/apis/appsactivity_v1/representations.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -0
- data/generated/google/apis/appsmarket_v2.rb +35 -0
- data/generated/google/apis/appsmarket_v2/classes.rb +396 -0
- data/generated/google/apis/appsmarket_v2/representations.rb +180 -0
- data/generated/google/apis/appsmarket_v2/service.rb +187 -0
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +1 -0
- data/generated/google/apis/bigquery_v2/classes.rb +39 -39
- data/generated/google/apis/bigquery_v2/representations.rb +38 -38
- data/generated/google/apis/bigquery_v2/service.rb +3 -2
- data/generated/google/apis/blogger_v3/classes.rb +2 -2
- data/generated/google/apis/blogger_v3/representations.rb +2 -2
- data/generated/google/apis/blogger_v3/service.rb +1 -0
- data/generated/google/apis/books_v1/classes.rb +5 -5
- data/generated/google/apis/books_v1/representations.rb +4 -4
- data/generated/google/apis/books_v1/service.rb +1 -0
- data/generated/google/apis/calendar_v3/classes.rb +1 -1
- data/generated/google/apis/calendar_v3/representations.rb +1 -1
- data/generated/google/apis/calendar_v3/service.rb +1 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +6 -6
- data/generated/google/apis/civicinfo_v2/representations.rb +6 -6
- data/generated/google/apis/civicinfo_v2/service.rb +2 -1
- data/generated/google/apis/classroom_v1/service.rb +1 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +1 -0
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +626 -626
- data/generated/google/apis/cloudbuild_v1/representations.rb +109 -109
- data/generated/google/apis/cloudbuild_v1/service.rb +159 -158
- data/generated/google/apis/clouddebugger_v2/classes.rb +358 -358
- data/generated/google/apis/clouddebugger_v2/representations.rb +99 -99
- data/generated/google/apis/clouddebugger_v2/service.rb +42 -41
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +220 -220
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +52 -52
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +59 -58
- data/generated/google/apis/cloudfunctions_v1/classes.rb +7 -7
- data/generated/google/apis/cloudfunctions_v1/representations.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +5 -4
- data/generated/google/apis/cloudkms_v1/classes.rb +311 -311
- data/generated/google/apis/cloudkms_v1/representations.rb +87 -87
- data/generated/google/apis/cloudkms_v1/service.rb +168 -167
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +4 -4
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +1 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +341 -341
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +62 -62
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +458 -457
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +327 -327
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +71 -71
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +237 -236
- data/generated/google/apis/cloudtrace_v1.rb +3 -3
- data/generated/google/apis/cloudtrace_v1/classes.rb +38 -38
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +14 -13
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +4 -4
- data/generated/google/apis/clouduseraccounts_beta/service.rb +1 -0
- data/generated/google/apis/compute_beta/classes.rb +52 -52
- data/generated/google/apis/compute_beta/representations.rb +52 -52
- data/generated/google/apis/compute_beta/service.rb +2 -1
- data/generated/google/apis/compute_v1/classes.rb +48 -48
- data/generated/google/apis/compute_v1/representations.rb +48 -48
- data/generated/google/apis/compute_v1/service.rb +2 -1
- data/generated/google/apis/container_v1/service.rb +1 -0
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +38 -660
- data/generated/google/apis/content_v2/representations.rb +37 -303
- data/generated/google/apis/content_v2/service.rb +63 -279
- data/generated/google/apis/customsearch_v1/classes.rb +2 -2
- data/generated/google/apis/customsearch_v1/representations.rb +2 -2
- data/generated/google/apis/customsearch_v1/service.rb +1 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +3281 -3281
- data/generated/google/apis/dataflow_v1b3/representations.rb +777 -777
- data/generated/google/apis/dataflow_v1b3/service.rb +106 -105
- data/generated/google/apis/dataproc_v1/classes.rb +395 -395
- data/generated/google/apis/dataproc_v1/representations.rb +91 -91
- data/generated/google/apis/dataproc_v1/service.rb +356 -355
- data/generated/google/apis/datastore_v1/classes.rb +506 -506
- data/generated/google/apis/datastore_v1/representations.rb +147 -147
- data/generated/google/apis/datastore_v1/service.rb +46 -45
- data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/representations.rb +6 -6
- data/generated/google/apis/deploymentmanager_v2/service.rb +1 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_6/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_6/service.rb +421 -420
- data/generated/google/apis/dfareporting_v2_7/classes.rb +280 -280
- data/generated/google/apis/dfareporting_v2_7/representations.rb +266 -266
- data/generated/google/apis/dfareporting_v2_7/service.rb +423 -422
- data/generated/google/apis/discovery_v1/service.rb +1 -0
- data/generated/google/apis/dns_v1/classes.rb +2 -2
- data/generated/google/apis/dns_v1/representations.rb +2 -2
- data/generated/google/apis/dns_v1/service.rb +1 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +2 -2
- data/generated/google/apis/dns_v2beta1/representations.rb +2 -2
- data/generated/google/apis/dns_v2beta1/service.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +15 -15
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +13 -13
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +5 -4
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +28 -28
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -12
- data/generated/google/apis/drive_v2/classes.rb +17 -17
- data/generated/google/apis/drive_v2/representations.rb +17 -17
- data/generated/google/apis/drive_v2/service.rb +5 -4
- data/generated/google/apis/drive_v3/classes.rb +13 -13
- data/generated/google/apis/drive_v3/representations.rb +12 -12
- data/generated/google/apis/drive_v3/service.rb +1 -0
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +81 -81
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +24 -24
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +1 -0
- data/generated/google/apis/firebaserules_v1/classes.rb +201 -201
- data/generated/google/apis/firebaserules_v1/representations.rb +61 -61
- data/generated/google/apis/firebaserules_v1/service.rb +1 -0
- data/generated/google/apis/fitness_v1/classes.rb +18 -18
- data/generated/google/apis/fitness_v1/representations.rb +18 -18
- data/generated/google/apis/fitness_v1/service.rb +6 -5
- data/generated/google/apis/fusiontables_v2/classes.rb +2 -2
- data/generated/google/apis/fusiontables_v2/representations.rb +2 -2
- data/generated/google/apis/fusiontables_v2/service.rb +1 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +2 -2
- data/generated/google/apis/games_configuration_v1configuration/service.rb +1 -0
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_management_v1management/classes.rb +6 -6
- data/generated/google/apis/games_management_v1management/representations.rb +6 -6
- data/generated/google/apis/games_management_v1management/service.rb +1 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +47 -47
- data/generated/google/apis/games_v1/representations.rb +47 -47
- data/generated/google/apis/games_v1/service.rb +58 -57
- data/generated/google/apis/genomics_v1.rb +6 -6
- data/generated/google/apis/genomics_v1/classes.rb +2354 -2354
- data/generated/google/apis/genomics_v1/representations.rb +487 -487
- data/generated/google/apis/genomics_v1/service.rb +1188 -1187
- data/generated/google/apis/gmail_v1/classes.rb +11 -11
- data/generated/google/apis/gmail_v1/representations.rb +11 -11
- data/generated/google/apis/gmail_v1/service.rb +2 -1
- data/generated/google/apis/groupsmigration_v1/service.rb +1 -0
- data/generated/google/apis/groupssettings_v1/service.rb +1 -0
- data/generated/google/apis/iam_v1/classes.rb +437 -437
- data/generated/google/apis/iam_v1/representations.rb +95 -95
- data/generated/google/apis/iam_v1/service.rb +87 -86
- data/generated/google/apis/identitytoolkit_v3/classes.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/representations.rb +20 -20
- data/generated/google/apis/identitytoolkit_v3/service.rb +1 -0
- data/generated/google/apis/kgsearch_v1/service.rb +9 -8
- data/generated/google/apis/language_v1.rb +1 -1
- data/generated/google/apis/language_v1/classes.rb +245 -245
- data/generated/google/apis/language_v1/representations.rb +65 -65
- data/generated/google/apis/language_v1/service.rb +1 -0
- data/generated/google/apis/language_v1beta1.rb +1 -1
- data/generated/google/apis/language_v1beta1/classes.rb +277 -277
- data/generated/google/apis/language_v1beta1/representations.rb +83 -83
- data/generated/google/apis/language_v1beta1/service.rb +31 -30
- data/generated/google/apis/licensing_v1/service.rb +1 -0
- data/generated/google/apis/logging_v2/classes.rb +408 -408
- data/generated/google/apis/logging_v2/representations.rb +93 -93
- data/generated/google/apis/logging_v2/service.rb +408 -407
- data/generated/google/apis/logging_v2beta1.rb +3 -3
- data/generated/google/apis/logging_v2beta1/classes.rb +892 -892
- data/generated/google/apis/logging_v2beta1/representations.rb +128 -128
- data/generated/google/apis/logging_v2beta1/service.rb +89 -88
- data/generated/google/apis/manufacturers_v1/classes.rb +309 -309
- data/generated/google/apis/manufacturers_v1/representations.rb +64 -64
- data/generated/google/apis/manufacturers_v1/service.rb +1 -0
- data/generated/google/apis/mirror_v1/service.rb +1 -0
- data/generated/google/apis/ml_v1/classes.rb +1185 -1185
- data/generated/google/apis/ml_v1/representations.rb +171 -171
- data/generated/google/apis/ml_v1/service.rb +282 -281
- data/generated/google/apis/monitoring_v3.rb +3 -3
- data/generated/google/apis/monitoring_v3/classes.rb +334 -334
- data/generated/google/apis/monitoring_v3/representations.rb +86 -86
- data/generated/google/apis/monitoring_v3/service.rb +344 -343
- data/generated/google/apis/mybusiness_v3/service.rb +1 -0
- data/generated/google/apis/oauth2_v2/service.rb +1 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/representations.rb +8 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -0
- data/generated/google/apis/partners_v2/classes.rb +1466 -1466
- data/generated/google/apis/partners_v2/representations.rb +371 -371
- data/generated/google/apis/partners_v2/service.rb +530 -529
- data/generated/google/apis/people_v1.rb +4 -4
- data/generated/google/apis/people_v1/classes.rb +1009 -1009
- data/generated/google/apis/people_v1/representations.rb +249 -249
- data/generated/google/apis/people_v1/service.rb +13 -12
- data/generated/google/apis/plus_domains_v1/classes.rb +2 -2
- data/generated/google/apis/plus_domains_v1/representations.rb +2 -2
- data/generated/google/apis/plus_domains_v1/service.rb +1 -0
- data/generated/google/apis/plus_v1/service.rb +1 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +9 -9
- data/generated/google/apis/prediction_v1_6/representations.rb +9 -9
- data/generated/google/apis/prediction_v1_6/service.rb +1 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +221 -221
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +55 -55
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +378 -377
- data/generated/google/apis/pubsub_v1/classes.rb +99 -99
- data/generated/google/apis/pubsub_v1/representations.rb +25 -25
- data/generated/google/apis/pubsub_v1/service.rb +236 -235
- data/generated/google/apis/qpx_express_v1/service.rb +1 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/representations.rb +3 -3
- data/generated/google/apis/replicapool_v1beta2/service.rb +1 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +2 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -0
- data/generated/google/apis/reseller_v1/classes.rb +5 -5
- data/generated/google/apis/reseller_v1/representations.rb +5 -5
- data/generated/google/apis/reseller_v1/service.rb +1 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +2 -2
- data/generated/google/apis/resourceviews_v1beta2/service.rb +1 -0
- data/generated/google/apis/runtimeconfig_v1.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/classes.rb +28 -28
- data/generated/google/apis/runtimeconfig_v1/representations.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/service.rb +53 -52
- data/generated/google/apis/script_v1.rb +18 -18
- data/generated/google/apis/script_v1/classes.rb +84 -84
- data/generated/google/apis/script_v1/representations.rb +18 -18
- data/generated/google/apis/script_v1/service.rb +11 -10
- data/generated/google/apis/searchconsole_v1/classes.rb +75 -75
- data/generated/google/apis/searchconsole_v1/representations.rb +32 -32
- data/generated/google/apis/searchconsole_v1/service.rb +11 -10
- data/generated/google/apis/servicecontrol_v1/classes.rb +582 -582
- data/generated/google/apis/servicecontrol_v1/representations.rb +113 -113
- data/generated/google/apis/servicecontrol_v1/service.rb +71 -70
- data/generated/google/apis/servicemanagement_v1.rb +3 -3
- data/generated/google/apis/servicemanagement_v1/classes.rb +3725 -3725
- data/generated/google/apis/servicemanagement_v1/representations.rb +255 -255
- data/generated/google/apis/servicemanagement_v1/service.rb +179 -178
- data/generated/google/apis/serviceuser_v1.rb +3 -3
- data/generated/google/apis/serviceuser_v1/classes.rb +2845 -2845
- data/generated/google/apis/serviceuser_v1/representations.rb +228 -228
- data/generated/google/apis/serviceuser_v1/service.rb +47 -46
- data/generated/google/apis/sheets_v4.rb +1 -1
- data/generated/google/apis/sheets_v4/classes.rb +4456 -4456
- data/generated/google/apis/sheets_v4/representations.rb +859 -859
- data/generated/google/apis/sheets_v4/service.rb +180 -179
- data/generated/google/apis/site_verification_v1/service.rb +1 -0
- data/generated/google/apis/slides_v1.rb +1 -1
- data/generated/google/apis/slides_v1/classes.rb +2856 -2856
- data/generated/google/apis/slides_v1/representations.rb +683 -683
- data/generated/google/apis/slides_v1/service.rb +27 -26
- data/generated/google/apis/sourcerepo_v1/classes.rb +281 -281
- data/generated/google/apis/sourcerepo_v1/representations.rb +79 -79
- data/generated/google/apis/sourcerepo_v1/service.rb +112 -111
- data/generated/google/apis/spanner_v1/classes.rb +2177 -2177
- data/generated/google/apis/spanner_v1/representations.rb +325 -325
- data/generated/google/apis/spanner_v1/service.rb +374 -373
- data/generated/google/apis/speech_v1beta1/classes.rb +197 -197
- data/generated/google/apis/speech_v1beta1/representations.rb +36 -36
- data/generated/google/apis/speech_v1beta1/service.rb +27 -26
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +14 -14
- data/generated/google/apis/sqladmin_v1beta4/service.rb +3 -2
- data/generated/google/apis/storage_v1.rb +1 -1
- data/generated/google/apis/storage_v1/classes.rb +11 -11
- data/generated/google/apis/storage_v1/representations.rb +11 -11
- data/generated/google/apis/storage_v1/service.rb +65 -64
- data/generated/google/apis/storagetransfer_v1/classes.rb +239 -239
- data/generated/google/apis/storagetransfer_v1/representations.rb +79 -79
- data/generated/google/apis/storagetransfer_v1/service.rb +133 -132
- data/generated/google/apis/surveys_v2/classes.rb +4 -4
- data/generated/google/apis/surveys_v2/representations.rb +4 -4
- data/generated/google/apis/surveys_v2/service.rb +1 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +7 -7
- data/generated/google/apis/tagmanager_v1/representations.rb +7 -7
- data/generated/google/apis/tagmanager_v1/service.rb +1 -0
- data/generated/google/apis/tagmanager_v2/classes.rb +6 -6
- data/generated/google/apis/tagmanager_v2/representations.rb +6 -6
- data/generated/google/apis/tagmanager_v2/service.rb +1 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +5 -5
- data/generated/google/apis/taskqueue_v1beta2/service.rb +1 -0
- data/generated/google/apis/tasks_v1/service.rb +3 -2
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/toolresults_v1beta3/classes.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/representations.rb +4 -4
- data/generated/google/apis/toolresults_v1beta3/service.rb +1 -0
- data/generated/google/apis/tracing_v1/classes.rb +421 -421
- data/generated/google/apis/tracing_v1/representations.rb +86 -86
- data/generated/google/apis/tracing_v1/service.rb +60 -59
- data/generated/google/apis/translate_v2/service.rb +1 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +3 -3
- data/generated/google/apis/urlshortener_v1/representations.rb +3 -3
- data/generated/google/apis/urlshortener_v1/service.rb +1 -0
- data/generated/google/apis/vision_v1/classes.rb +1290 -1290
- data/generated/google/apis/vision_v1/representations.rb +184 -184
- data/generated/google/apis/vision_v1/service.rb +11 -10
- data/generated/google/apis/webfonts_v1/service.rb +1 -0
- data/generated/google/apis/webmasters_v3/classes.rb +5 -5
- data/generated/google/apis/webmasters_v3/representations.rb +5 -5
- data/generated/google/apis/webmasters_v3/service.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/service.rb +1 -0
- data/generated/google/apis/youtube_partner_v1/classes.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/representations.rb +13 -13
- data/generated/google/apis/youtube_partner_v1/service.rb +1 -0
- data/generated/google/apis/youtube_v3/classes.rb +31 -31
- data/generated/google/apis/youtube_v3/representations.rb +31 -31
- data/generated/google/apis/youtube_v3/service.rb +2 -1
- data/generated/google/apis/youtubereporting_v1.rb +4 -4
- data/generated/google/apis/youtubereporting_v1/classes.rb +73 -73
- data/generated/google/apis/youtubereporting_v1/representations.rb +18 -18
- data/generated/google/apis/youtubereporting_v1/service.rb +77 -76
- data/google-api-client.gemspec +4 -6
- data/lib/google/apis/core/api_command.rb +8 -3
- data/lib/google/apis/core/base_service.rb +47 -18
- data/lib/google/apis/core/batch.rb +13 -18
- data/lib/google/apis/core/composite_io.rb +97 -0
- data/lib/google/apis/core/download.rb +24 -20
- data/lib/google/apis/core/http_command.rb +49 -38
- data/lib/google/apis/core/json_representation.rb +5 -1
- data/lib/google/apis/core/multipart.rb +43 -95
- data/lib/google/apis/core/upload.rb +59 -84
- data/lib/google/apis/generator/model.rb +2 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +1 -1
- data/lib/google/apis/generator/templates/service.rb.tmpl +1 -0
- data/lib/google/apis/options.rb +24 -12
- data/lib/google/apis/version.rb +1 -1
- data/samples/web/Gemfile +0 -1
- metadata +39 -37
- data/lib/google/apis/core/http_client_adapter.rb +0 -82
- data/third_party/hurley_patches.rb +0 -103
@@ -22,112 +22,154 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SourcerepoV1
|
24
24
|
|
25
|
-
class
|
25
|
+
class SetIamPolicyRequest
|
26
26
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
27
27
|
|
28
28
|
include Google::Apis::Core::JsonObjectSupport
|
29
29
|
end
|
30
30
|
|
31
|
-
class
|
31
|
+
class CloudAuditOptions
|
32
32
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
33
33
|
|
34
34
|
include Google::Apis::Core::JsonObjectSupport
|
35
35
|
end
|
36
36
|
|
37
|
-
class
|
37
|
+
class Binding
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
39
39
|
|
40
40
|
include Google::Apis::Core::JsonObjectSupport
|
41
41
|
end
|
42
42
|
|
43
|
-
class
|
43
|
+
class Empty
|
44
44
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
45
45
|
|
46
46
|
include Google::Apis::Core::JsonObjectSupport
|
47
47
|
end
|
48
48
|
|
49
|
-
class
|
49
|
+
class MirrorConfig
|
50
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
51
51
|
|
52
52
|
include Google::Apis::Core::JsonObjectSupport
|
53
53
|
end
|
54
54
|
|
55
|
-
class
|
55
|
+
class Repo
|
56
56
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
57
57
|
|
58
58
|
include Google::Apis::Core::JsonObjectSupport
|
59
59
|
end
|
60
60
|
|
61
|
-
class
|
61
|
+
class ListReposResponse
|
62
62
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
63
63
|
|
64
64
|
include Google::Apis::Core::JsonObjectSupport
|
65
65
|
end
|
66
66
|
|
67
|
-
class
|
67
|
+
class Condition
|
68
68
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
69
69
|
|
70
70
|
include Google::Apis::Core::JsonObjectSupport
|
71
71
|
end
|
72
72
|
|
73
|
-
class
|
73
|
+
class TestIamPermissionsResponse
|
74
74
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
75
75
|
|
76
76
|
include Google::Apis::Core::JsonObjectSupport
|
77
77
|
end
|
78
78
|
|
79
|
-
class
|
79
|
+
class CounterOptions
|
80
80
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
81
81
|
|
82
82
|
include Google::Apis::Core::JsonObjectSupport
|
83
83
|
end
|
84
84
|
|
85
|
-
class
|
85
|
+
class AuditLogConfig
|
86
86
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
87
87
|
|
88
88
|
include Google::Apis::Core::JsonObjectSupport
|
89
89
|
end
|
90
90
|
|
91
|
-
class
|
91
|
+
class Rule
|
92
92
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
93
93
|
|
94
94
|
include Google::Apis::Core::JsonObjectSupport
|
95
95
|
end
|
96
96
|
|
97
|
-
class
|
97
|
+
class LogConfig
|
98
98
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
99
99
|
|
100
100
|
include Google::Apis::Core::JsonObjectSupport
|
101
101
|
end
|
102
102
|
|
103
|
-
class
|
103
|
+
class TestIamPermissionsRequest
|
104
104
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
105
105
|
|
106
106
|
include Google::Apis::Core::JsonObjectSupport
|
107
107
|
end
|
108
108
|
|
109
|
-
class
|
109
|
+
class Policy
|
110
110
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
111
111
|
|
112
112
|
include Google::Apis::Core::JsonObjectSupport
|
113
113
|
end
|
114
114
|
|
115
|
-
class
|
115
|
+
class DataAccessOptions
|
116
116
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
117
117
|
|
118
118
|
include Google::Apis::Core::JsonObjectSupport
|
119
119
|
end
|
120
120
|
|
121
|
-
class
|
121
|
+
class AuditConfig
|
122
122
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
123
123
|
|
124
124
|
include Google::Apis::Core::JsonObjectSupport
|
125
125
|
end
|
126
126
|
|
127
|
-
class
|
127
|
+
class SetIamPolicyRequest
|
128
128
|
# @private
|
129
129
|
class Representation < Google::Apis::Core::JsonRepresentation
|
130
|
-
|
130
|
+
property :policy, as: 'policy', class: Google::Apis::SourcerepoV1::Policy, decorator: Google::Apis::SourcerepoV1::Policy::Representation
|
131
|
+
|
132
|
+
property :update_mask, as: 'updateMask'
|
133
|
+
end
|
134
|
+
end
|
135
|
+
|
136
|
+
class CloudAuditOptions
|
137
|
+
# @private
|
138
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
139
|
+
end
|
140
|
+
end
|
141
|
+
|
142
|
+
class Binding
|
143
|
+
# @private
|
144
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
145
|
+
collection :members, as: 'members'
|
146
|
+
property :role, as: 'role'
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
class Empty
|
151
|
+
# @private
|
152
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
153
|
+
end
|
154
|
+
end
|
155
|
+
|
156
|
+
class MirrorConfig
|
157
|
+
# @private
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
159
|
+
property :webhook_id, as: 'webhookId'
|
160
|
+
property :deploy_key_id, as: 'deployKeyId'
|
161
|
+
property :url, as: 'url'
|
162
|
+
end
|
163
|
+
end
|
164
|
+
|
165
|
+
class Repo
|
166
|
+
# @private
|
167
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
168
|
+
property :mirror_config, as: 'mirrorConfig', class: Google::Apis::SourcerepoV1::MirrorConfig, decorator: Google::Apis::SourcerepoV1::MirrorConfig::Representation
|
169
|
+
|
170
|
+
property :url, as: 'url'
|
171
|
+
property :size, :numeric_string => true, as: 'size'
|
172
|
+
property :name, as: 'name'
|
131
173
|
end
|
132
174
|
end
|
133
175
|
|
@@ -142,12 +184,19 @@ module Google
|
|
142
184
|
class Condition
|
143
185
|
# @private
|
144
186
|
class Representation < Google::Apis::Core::JsonRepresentation
|
145
|
-
property :sys, as: 'sys'
|
146
|
-
property :value, as: 'value'
|
147
|
-
property :iam, as: 'iam'
|
148
187
|
collection :values, as: 'values'
|
188
|
+
property :iam, as: 'iam'
|
149
189
|
property :op, as: 'op'
|
150
190
|
property :svc, as: 'svc'
|
191
|
+
property :value, as: 'value'
|
192
|
+
property :sys, as: 'sys'
|
193
|
+
end
|
194
|
+
end
|
195
|
+
|
196
|
+
class TestIamPermissionsResponse
|
197
|
+
# @private
|
198
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
199
|
+
collection :permissions, as: 'permissions'
|
151
200
|
end
|
152
201
|
end
|
153
202
|
|
@@ -162,35 +211,35 @@ module Google
|
|
162
211
|
class AuditLogConfig
|
163
212
|
# @private
|
164
213
|
class Representation < Google::Apis::Core::JsonRepresentation
|
165
|
-
collection :exempted_members, as: 'exemptedMembers'
|
166
214
|
property :log_type, as: 'logType'
|
215
|
+
collection :exempted_members, as: 'exemptedMembers'
|
167
216
|
end
|
168
217
|
end
|
169
218
|
|
170
219
|
class Rule
|
171
220
|
# @private
|
172
221
|
class Representation < Google::Apis::Core::JsonRepresentation
|
222
|
+
collection :not_in, as: 'notIn'
|
223
|
+
property :description, as: 'description'
|
224
|
+
collection :conditions, as: 'conditions', class: Google::Apis::SourcerepoV1::Condition, decorator: Google::Apis::SourcerepoV1::Condition::Representation
|
225
|
+
|
173
226
|
collection :log_config, as: 'logConfig', class: Google::Apis::SourcerepoV1::LogConfig, decorator: Google::Apis::SourcerepoV1::LogConfig::Representation
|
174
227
|
|
175
228
|
collection :in, as: 'in'
|
176
229
|
collection :permissions, as: 'permissions'
|
177
230
|
property :action, as: 'action'
|
178
|
-
collection :not_in, as: 'notIn'
|
179
|
-
property :description, as: 'description'
|
180
|
-
collection :conditions, as: 'conditions', class: Google::Apis::SourcerepoV1::Condition, decorator: Google::Apis::SourcerepoV1::Condition::Representation
|
181
|
-
|
182
231
|
end
|
183
232
|
end
|
184
233
|
|
185
234
|
class LogConfig
|
186
235
|
# @private
|
187
236
|
class Representation < Google::Apis::Core::JsonRepresentation
|
237
|
+
property :counter, as: 'counter', class: Google::Apis::SourcerepoV1::CounterOptions, decorator: Google::Apis::SourcerepoV1::CounterOptions::Representation
|
238
|
+
|
188
239
|
property :data_access, as: 'dataAccess', class: Google::Apis::SourcerepoV1::DataAccessOptions, decorator: Google::Apis::SourcerepoV1::DataAccessOptions::Representation
|
189
240
|
|
190
241
|
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::SourcerepoV1::CloudAuditOptions, decorator: Google::Apis::SourcerepoV1::CloudAuditOptions::Representation
|
191
242
|
|
192
|
-
property :counter, as: 'counter', class: Google::Apis::SourcerepoV1::CounterOptions, decorator: Google::Apis::SourcerepoV1::CounterOptions::Representation
|
193
|
-
|
194
243
|
end
|
195
244
|
end
|
196
245
|
|
@@ -204,7 +253,6 @@ module Google
|
|
204
253
|
class Policy
|
205
254
|
# @private
|
206
255
|
class Representation < Google::Apis::Core::JsonRepresentation
|
207
|
-
property :etag, :base64 => true, as: 'etag'
|
208
256
|
property :iam_owned, as: 'iamOwned'
|
209
257
|
collection :rules, as: 'rules', class: Google::Apis::SourcerepoV1::Rule, decorator: Google::Apis::SourcerepoV1::Rule::Representation
|
210
258
|
|
@@ -213,6 +261,7 @@ module Google
|
|
213
261
|
|
214
262
|
collection :bindings, as: 'bindings', class: Google::Apis::SourcerepoV1::Binding, decorator: Google::Apis::SourcerepoV1::Binding::Representation
|
215
263
|
|
264
|
+
property :etag, :base64 => true, as: 'etag'
|
216
265
|
end
|
217
266
|
end
|
218
267
|
|
@@ -231,55 +280,6 @@ module Google
|
|
231
280
|
property :service, as: 'service'
|
232
281
|
end
|
233
282
|
end
|
234
|
-
|
235
|
-
class SetIamPolicyRequest
|
236
|
-
# @private
|
237
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
238
|
-
property :update_mask, as: 'updateMask'
|
239
|
-
property :policy, as: 'policy', class: Google::Apis::SourcerepoV1::Policy, decorator: Google::Apis::SourcerepoV1::Policy::Representation
|
240
|
-
|
241
|
-
end
|
242
|
-
end
|
243
|
-
|
244
|
-
class CloudAuditOptions
|
245
|
-
# @private
|
246
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
247
|
-
end
|
248
|
-
end
|
249
|
-
|
250
|
-
class Binding
|
251
|
-
# @private
|
252
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
253
|
-
collection :members, as: 'members'
|
254
|
-
property :role, as: 'role'
|
255
|
-
end
|
256
|
-
end
|
257
|
-
|
258
|
-
class Empty
|
259
|
-
# @private
|
260
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
261
|
-
end
|
262
|
-
end
|
263
|
-
|
264
|
-
class MirrorConfig
|
265
|
-
# @private
|
266
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
267
|
-
property :url, as: 'url'
|
268
|
-
property :webhook_id, as: 'webhookId'
|
269
|
-
property :deploy_key_id, as: 'deployKeyId'
|
270
|
-
end
|
271
|
-
end
|
272
|
-
|
273
|
-
class Repo
|
274
|
-
# @private
|
275
|
-
class Representation < Google::Apis::Core::JsonRepresentation
|
276
|
-
property :url, as: 'url'
|
277
|
-
property :size, as: 'size'
|
278
|
-
property :name, as: 'name'
|
279
|
-
property :mirror_config, as: 'mirrorConfig', class: Google::Apis::SourcerepoV1::MirrorConfig, decorator: Google::Apis::SourcerepoV1::MirrorConfig::Representation
|
280
|
-
|
281
|
-
end
|
282
|
-
end
|
283
283
|
end
|
284
284
|
end
|
285
285
|
end
|
@@ -32,133 +32,131 @@ module Google
|
|
32
32
|
#
|
33
33
|
# @see https://cloud.google.com/eap/cloud-repositories/cloud-sourcerepo-api
|
34
34
|
class CloudSourceRepositoriesService < Google::Apis::Core::BaseService
|
35
|
-
# @return [String]
|
36
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
37
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38
|
-
attr_accessor :quota_user
|
39
|
-
|
40
35
|
# @return [String]
|
41
36
|
# API key. Your API key identifies your project and provides you with API access,
|
42
37
|
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
43
38
|
attr_accessor :key
|
44
39
|
|
40
|
+
# @return [String]
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43
|
+
attr_accessor :quota_user
|
44
|
+
|
45
45
|
def initialize
|
46
46
|
super('https://sourcerepo.googleapis.com/', '')
|
47
|
+
@batch_path = 'batch'
|
47
48
|
end
|
48
49
|
|
49
|
-
#
|
50
|
-
# If the
|
51
|
-
#
|
52
|
-
# @param [String]
|
53
|
-
# The
|
54
|
-
#
|
55
|
-
# @param [Google::Apis::SourcerepoV1::
|
50
|
+
# Returns permissions that a caller has on the specified resource.
|
51
|
+
# If the resource does not exist, this will return an empty set of
|
52
|
+
# permissions, not a NOT_FOUND error.
|
53
|
+
# @param [String] resource
|
54
|
+
# REQUIRED: The resource for which the policy detail is being requested.
|
55
|
+
# See the operation documentation for the appropriate value for this field.
|
56
|
+
# @param [Google::Apis::SourcerepoV1::TestIamPermissionsRequest] test_iam_permissions_request_object
|
57
|
+
# @param [String] fields
|
58
|
+
# Selector specifying which fields to include in a partial response.
|
56
59
|
# @param [String] quota_user
|
57
60
|
# Available to use for quota purposes for server-side applications. Can be any
|
58
61
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
59
|
-
# @param [String] fields
|
60
|
-
# Selector specifying which fields to include in a partial response.
|
61
62
|
# @param [Google::Apis::RequestOptions] options
|
62
63
|
# Request-specific options
|
63
64
|
#
|
64
65
|
# @yield [result, err] Result & error if block supplied
|
65
|
-
# @yieldparam result [Google::Apis::SourcerepoV1::
|
66
|
+
# @yieldparam result [Google::Apis::SourcerepoV1::TestIamPermissionsResponse] parsed result object
|
66
67
|
# @yieldparam err [StandardError] error object if request failed
|
67
68
|
#
|
68
|
-
# @return [Google::Apis::SourcerepoV1::
|
69
|
+
# @return [Google::Apis::SourcerepoV1::TestIamPermissionsResponse]
|
69
70
|
#
|
70
71
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
71
72
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
72
73
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
73
|
-
def
|
74
|
-
command = make_simple_command(:post, 'v1/{+
|
75
|
-
command.request_representation = Google::Apis::SourcerepoV1::
|
76
|
-
command.request_object =
|
77
|
-
command.response_representation = Google::Apis::SourcerepoV1::
|
78
|
-
command.response_class = Google::Apis::SourcerepoV1::
|
79
|
-
command.params['
|
80
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
74
|
+
def test_repo_iam_permissions(resource, test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
75
|
+
command = make_simple_command(:post, 'v1/{+resource}:testIamPermissions', options)
|
76
|
+
command.request_representation = Google::Apis::SourcerepoV1::TestIamPermissionsRequest::Representation
|
77
|
+
command.request_object = test_iam_permissions_request_object
|
78
|
+
command.response_representation = Google::Apis::SourcerepoV1::TestIamPermissionsResponse::Representation
|
79
|
+
command.response_class = Google::Apis::SourcerepoV1::TestIamPermissionsResponse
|
80
|
+
command.params['resource'] = resource unless resource.nil?
|
81
81
|
command.query['fields'] = fields unless fields.nil?
|
82
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
82
83
|
execute_or_queue_command(command, &block)
|
83
84
|
end
|
84
85
|
|
85
|
-
#
|
86
|
-
#
|
87
|
-
#
|
88
|
-
#
|
89
|
-
#
|
90
|
-
#
|
86
|
+
# Deletes a repo.
|
87
|
+
# @param [String] name
|
88
|
+
# The name of the repo to delete. Values are of the form
|
89
|
+
# `projects/<project>/repos/<repo>`.
|
90
|
+
# @param [String] fields
|
91
|
+
# Selector specifying which fields to include in a partial response.
|
91
92
|
# @param [String] quota_user
|
92
93
|
# Available to use for quota purposes for server-side applications. Can be any
|
93
94
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
94
|
-
# @param [String] fields
|
95
|
-
# Selector specifying which fields to include in a partial response.
|
96
95
|
# @param [Google::Apis::RequestOptions] options
|
97
96
|
# Request-specific options
|
98
97
|
#
|
99
98
|
# @yield [result, err] Result & error if block supplied
|
100
|
-
# @yieldparam result [Google::Apis::SourcerepoV1::
|
99
|
+
# @yieldparam result [Google::Apis::SourcerepoV1::Empty] parsed result object
|
101
100
|
# @yieldparam err [StandardError] error object if request failed
|
102
101
|
#
|
103
|
-
# @return [Google::Apis::SourcerepoV1::
|
102
|
+
# @return [Google::Apis::SourcerepoV1::Empty]
|
104
103
|
#
|
105
104
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
106
105
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
107
106
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
108
|
-
def
|
109
|
-
command = make_simple_command(:
|
110
|
-
command.
|
111
|
-
command.
|
112
|
-
command.
|
113
|
-
command.response_class = Google::Apis::SourcerepoV1::Policy
|
114
|
-
command.params['resource'] = resource unless resource.nil?
|
115
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
107
|
+
def delete_project_repo(name, fields: nil, quota_user: nil, options: nil, &block)
|
108
|
+
command = make_simple_command(:delete, 'v1/{+name}', options)
|
109
|
+
command.response_representation = Google::Apis::SourcerepoV1::Empty::Representation
|
110
|
+
command.response_class = Google::Apis::SourcerepoV1::Empty
|
111
|
+
command.params['name'] = name unless name.nil?
|
116
112
|
command.query['fields'] = fields unless fields.nil?
|
113
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
117
114
|
execute_or_queue_command(command, &block)
|
118
115
|
end
|
119
116
|
|
120
|
-
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
#
|
124
|
-
#
|
125
|
-
#
|
117
|
+
# Returns all repos belonging to a project.
|
118
|
+
# @param [String] name
|
119
|
+
# The project ID whose repos should be listed. Values are of the form
|
120
|
+
# `projects/<project>`.
|
121
|
+
# @param [String] fields
|
122
|
+
# Selector specifying which fields to include in a partial response.
|
126
123
|
# @param [String] quota_user
|
127
124
|
# Available to use for quota purposes for server-side applications. Can be any
|
128
125
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
129
|
-
# @param [String] fields
|
130
|
-
# Selector specifying which fields to include in a partial response.
|
131
126
|
# @param [Google::Apis::RequestOptions] options
|
132
127
|
# Request-specific options
|
133
128
|
#
|
134
129
|
# @yield [result, err] Result & error if block supplied
|
135
|
-
# @yieldparam result [Google::Apis::SourcerepoV1::
|
130
|
+
# @yieldparam result [Google::Apis::SourcerepoV1::ListReposResponse] parsed result object
|
136
131
|
# @yieldparam err [StandardError] error object if request failed
|
137
132
|
#
|
138
|
-
# @return [Google::Apis::SourcerepoV1::
|
133
|
+
# @return [Google::Apis::SourcerepoV1::ListReposResponse]
|
139
134
|
#
|
140
135
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
141
136
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
142
137
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
143
|
-
def
|
144
|
-
command = make_simple_command(:get, 'v1/{+
|
145
|
-
command.response_representation = Google::Apis::SourcerepoV1::
|
146
|
-
command.response_class = Google::Apis::SourcerepoV1::
|
147
|
-
command.params['
|
148
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
138
|
+
def list_project_repos(name, fields: nil, quota_user: nil, options: nil, &block)
|
139
|
+
command = make_simple_command(:get, 'v1/{+name}/repos', options)
|
140
|
+
command.response_representation = Google::Apis::SourcerepoV1::ListReposResponse::Representation
|
141
|
+
command.response_class = Google::Apis::SourcerepoV1::ListReposResponse
|
142
|
+
command.params['name'] = name unless name.nil?
|
149
143
|
command.query['fields'] = fields unless fields.nil?
|
144
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
150
145
|
execute_or_queue_command(command, &block)
|
151
146
|
end
|
152
147
|
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
148
|
+
# Creates a repo in the given project with the given name..
|
149
|
+
# If the named repository already exists, `CreateRepo` returns
|
150
|
+
# `ALREADY_EXISTS`.
|
151
|
+
# @param [String] parent
|
152
|
+
# The project in which to create the repo. Values are of the form
|
153
|
+
# `projects/<project>`.
|
154
|
+
# @param [Google::Apis::SourcerepoV1::Repo] repo_object
|
155
|
+
# @param [String] fields
|
156
|
+
# Selector specifying which fields to include in a partial response.
|
157
157
|
# @param [String] quota_user
|
158
158
|
# Available to use for quota purposes for server-side applications. Can be any
|
159
159
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
160
|
-
# @param [String] fields
|
161
|
-
# Selector specifying which fields to include in a partial response.
|
162
160
|
# @param [Google::Apis::RequestOptions] options
|
163
161
|
# Request-specific options
|
164
162
|
#
|
@@ -171,119 +169,122 @@ module Google
|
|
171
169
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
172
170
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
173
171
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
174
|
-
def
|
175
|
-
command = make_simple_command(:
|
172
|
+
def create_project_repo(parent, repo_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
173
|
+
command = make_simple_command(:post, 'v1/{+parent}/repos', options)
|
174
|
+
command.request_representation = Google::Apis::SourcerepoV1::Repo::Representation
|
175
|
+
command.request_object = repo_object
|
176
176
|
command.response_representation = Google::Apis::SourcerepoV1::Repo::Representation
|
177
177
|
command.response_class = Google::Apis::SourcerepoV1::Repo
|
178
|
-
command.params['
|
179
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
178
|
+
command.params['parent'] = parent unless parent.nil?
|
180
179
|
command.query['fields'] = fields unless fields.nil?
|
180
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
181
181
|
execute_or_queue_command(command, &block)
|
182
182
|
end
|
183
183
|
|
184
|
-
#
|
185
|
-
#
|
186
|
-
# permissions, not a NOT_FOUND error.
|
184
|
+
# Sets the access control policy on the specified resource. Replaces any
|
185
|
+
# existing policy.
|
187
186
|
# @param [String] resource
|
188
|
-
# REQUIRED: The resource for which the policy
|
187
|
+
# REQUIRED: The resource for which the policy is being specified.
|
189
188
|
# See the operation documentation for the appropriate value for this field.
|
190
|
-
# @param [Google::Apis::SourcerepoV1::
|
189
|
+
# @param [Google::Apis::SourcerepoV1::SetIamPolicyRequest] set_iam_policy_request_object
|
190
|
+
# @param [String] fields
|
191
|
+
# Selector specifying which fields to include in a partial response.
|
191
192
|
# @param [String] quota_user
|
192
193
|
# Available to use for quota purposes for server-side applications. Can be any
|
193
194
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
194
|
-
# @param [String] fields
|
195
|
-
# Selector specifying which fields to include in a partial response.
|
196
195
|
# @param [Google::Apis::RequestOptions] options
|
197
196
|
# Request-specific options
|
198
197
|
#
|
199
198
|
# @yield [result, err] Result & error if block supplied
|
200
|
-
# @yieldparam result [Google::Apis::SourcerepoV1::
|
199
|
+
# @yieldparam result [Google::Apis::SourcerepoV1::Policy] parsed result object
|
201
200
|
# @yieldparam err [StandardError] error object if request failed
|
202
201
|
#
|
203
|
-
# @return [Google::Apis::SourcerepoV1::
|
202
|
+
# @return [Google::Apis::SourcerepoV1::Policy]
|
204
203
|
#
|
205
204
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
206
205
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
207
206
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
208
|
-
def
|
209
|
-
command = make_simple_command(:post, 'v1/{+resource}:
|
210
|
-
command.request_representation = Google::Apis::SourcerepoV1::
|
211
|
-
command.request_object =
|
212
|
-
command.response_representation = Google::Apis::SourcerepoV1::
|
213
|
-
command.response_class = Google::Apis::SourcerepoV1::
|
207
|
+
def set_repo_iam_policy(resource, set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
208
|
+
command = make_simple_command(:post, 'v1/{+resource}:setIamPolicy', options)
|
209
|
+
command.request_representation = Google::Apis::SourcerepoV1::SetIamPolicyRequest::Representation
|
210
|
+
command.request_object = set_iam_policy_request_object
|
211
|
+
command.response_representation = Google::Apis::SourcerepoV1::Policy::Representation
|
212
|
+
command.response_class = Google::Apis::SourcerepoV1::Policy
|
214
213
|
command.params['resource'] = resource unless resource.nil?
|
215
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
216
214
|
command.query['fields'] = fields unless fields.nil?
|
215
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
217
216
|
execute_or_queue_command(command, &block)
|
218
217
|
end
|
219
218
|
|
220
|
-
#
|
221
|
-
#
|
222
|
-
#
|
223
|
-
#
|
219
|
+
# Gets the access control policy for a resource.
|
220
|
+
# Returns an empty policy if the resource exists and does not have a policy
|
221
|
+
# set.
|
222
|
+
# @param [String] resource
|
223
|
+
# REQUIRED: The resource for which the policy is being requested.
|
224
|
+
# See the operation documentation for the appropriate value for this field.
|
225
|
+
# @param [String] fields
|
226
|
+
# Selector specifying which fields to include in a partial response.
|
224
227
|
# @param [String] quota_user
|
225
228
|
# Available to use for quota purposes for server-side applications. Can be any
|
226
229
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
227
|
-
# @param [String] fields
|
228
|
-
# Selector specifying which fields to include in a partial response.
|
229
230
|
# @param [Google::Apis::RequestOptions] options
|
230
231
|
# Request-specific options
|
231
232
|
#
|
232
233
|
# @yield [result, err] Result & error if block supplied
|
233
|
-
# @yieldparam result [Google::Apis::SourcerepoV1::
|
234
|
+
# @yieldparam result [Google::Apis::SourcerepoV1::Policy] parsed result object
|
234
235
|
# @yieldparam err [StandardError] error object if request failed
|
235
236
|
#
|
236
|
-
# @return [Google::Apis::SourcerepoV1::
|
237
|
+
# @return [Google::Apis::SourcerepoV1::Policy]
|
237
238
|
#
|
238
239
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
239
240
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
240
241
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
241
|
-
def
|
242
|
-
command = make_simple_command(:
|
243
|
-
command.response_representation = Google::Apis::SourcerepoV1::
|
244
|
-
command.response_class = Google::Apis::SourcerepoV1::
|
245
|
-
command.params['
|
246
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
242
|
+
def get_project_repo_iam_policy(resource, fields: nil, quota_user: nil, options: nil, &block)
|
243
|
+
command = make_simple_command(:get, 'v1/{+resource}:getIamPolicy', options)
|
244
|
+
command.response_representation = Google::Apis::SourcerepoV1::Policy::Representation
|
245
|
+
command.response_class = Google::Apis::SourcerepoV1::Policy
|
246
|
+
command.params['resource'] = resource unless resource.nil?
|
247
247
|
command.query['fields'] = fields unless fields.nil?
|
248
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
248
249
|
execute_or_queue_command(command, &block)
|
249
250
|
end
|
250
251
|
|
251
|
-
# Returns
|
252
|
+
# Returns information about a repo.
|
252
253
|
# @param [String] name
|
253
|
-
# The
|
254
|
-
# `projects/<project>`.
|
254
|
+
# The name of the requested repository. Values are of the form
|
255
|
+
# `projects/<project>/repos/<repo>`.
|
256
|
+
# @param [String] fields
|
257
|
+
# Selector specifying which fields to include in a partial response.
|
255
258
|
# @param [String] quota_user
|
256
259
|
# Available to use for quota purposes for server-side applications. Can be any
|
257
260
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
258
|
-
# @param [String] fields
|
259
|
-
# Selector specifying which fields to include in a partial response.
|
260
261
|
# @param [Google::Apis::RequestOptions] options
|
261
262
|
# Request-specific options
|
262
263
|
#
|
263
264
|
# @yield [result, err] Result & error if block supplied
|
264
|
-
# @yieldparam result [Google::Apis::SourcerepoV1::
|
265
|
+
# @yieldparam result [Google::Apis::SourcerepoV1::Repo] parsed result object
|
265
266
|
# @yieldparam err [StandardError] error object if request failed
|
266
267
|
#
|
267
|
-
# @return [Google::Apis::SourcerepoV1::
|
268
|
+
# @return [Google::Apis::SourcerepoV1::Repo]
|
268
269
|
#
|
269
270
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
270
271
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
271
272
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
272
|
-
def
|
273
|
-
command = make_simple_command(:get, 'v1/{+name}
|
274
|
-
command.response_representation = Google::Apis::SourcerepoV1::
|
275
|
-
command.response_class = Google::Apis::SourcerepoV1::
|
273
|
+
def get_project_repo(name, fields: nil, quota_user: nil, options: nil, &block)
|
274
|
+
command = make_simple_command(:get, 'v1/{+name}', options)
|
275
|
+
command.response_representation = Google::Apis::SourcerepoV1::Repo::Representation
|
276
|
+
command.response_class = Google::Apis::SourcerepoV1::Repo
|
276
277
|
command.params['name'] = name unless name.nil?
|
277
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
278
278
|
command.query['fields'] = fields unless fields.nil?
|
279
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
279
280
|
execute_or_queue_command(command, &block)
|
280
281
|
end
|
281
282
|
|
282
283
|
protected
|
283
284
|
|
284
285
|
def apply_command_defaults(command)
|
285
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
286
286
|
command.query['key'] = key unless key.nil?
|
287
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
287
288
|
end
|
288
289
|
end
|
289
290
|
end
|