google-api-client 0.11.3 → 0.12.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +51 -0
- data/api_names.yaml +32317 -34465
- data/generated/google/apis/acceleratedmobilepageurl_v1/classes.rb +44 -44
- data/generated/google/apis/acceleratedmobilepageurl_v1/representations.rb +14 -14
- data/generated/google/apis/acceleratedmobilepageurl_v1/service.rb +10 -10
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +1 -1
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +305 -305
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +82 -82
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +106 -106
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +6 -6
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +3 -3
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +3 -3
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +10 -10
- data/generated/google/apis/admin_directory_v1/service.rb +26 -26
- 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 +3 -3
- data/generated/google/apis/adsense_v1_4/service.rb +44 -44
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +22 -22
- data/generated/google/apis/analytics_v3/classes.rb +3 -3
- data/generated/google/apis/analytics_v3/representations.rb +3 -3
- data/generated/google/apis/analytics_v3/service.rb +82 -82
- data/generated/google/apis/analyticsreporting_v4.rb +1 -1
- data/generated/google/apis/analyticsreporting_v4/classes.rb +916 -916
- data/generated/google/apis/analyticsreporting_v4/representations.rb +167 -167
- data/generated/google/apis/analyticsreporting_v4/service.rb +7 -7
- data/generated/google/apis/androidenterprise_v1.rb +1 -1
- data/generated/google/apis/androidenterprise_v1/classes.rb +10 -10
- data/generated/google/apis/androidenterprise_v1/representations.rb +20 -20
- data/generated/google/apis/androidenterprise_v1/service.rb +43 -43
- data/generated/google/apis/androidpublisher_v2/classes.rb +26 -26
- data/generated/google/apis/androidpublisher_v2/representations.rb +46 -46
- data/generated/google/apis/androidpublisher_v2/service.rb +95 -95
- data/generated/google/apis/appengine_v1.rb +1 -1
- data/generated/google/apis/appengine_v1/classes.rb +825 -817
- data/generated/google/apis/appengine_v1/representations.rb +185 -184
- data/generated/google/apis/appengine_v1/service.rb +220 -216
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/bigquery_v2.rb +1 -1
- data/generated/google/apis/bigquery_v2/classes.rb +9 -7
- data/generated/google/apis/bigquery_v2/representations.rb +8 -8
- data/generated/google/apis/bigquery_v2/service.rb +13 -13
- data/generated/google/apis/blogger_v3/service.rb +3 -3
- data/generated/google/apis/books_v1/classes.rb +55 -55
- data/generated/google/apis/books_v1/representations.rb +67 -67
- data/generated/google/apis/books_v1/service.rb +82 -82
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +6 -6
- data/generated/google/apis/calendar_v3/representations.rb +3 -3
- data/generated/google/apis/calendar_v3/service.rb +2 -2
- data/generated/google/apis/civicinfo_v2/classes.rb +1 -1
- data/generated/google/apis/civicinfo_v2/representations.rb +2 -2
- data/generated/google/apis/civicinfo_v2/service.rb +8 -8
- data/generated/google/apis/classroom_v1.rb +24 -24
- data/generated/google/apis/classroom_v1/classes.rb +381 -381
- data/generated/google/apis/classroom_v1/representations.rb +108 -108
- data/generated/google/apis/classroom_v1/service.rb +503 -503
- data/generated/google/apis/cloudbuild_v1.rb +1 -1
- data/generated/google/apis/cloudbuild_v1/classes.rb +219 -219
- data/generated/google/apis/cloudbuild_v1/representations.rb +62 -62
- data/generated/google/apis/cloudbuild_v1/service.rb +165 -165
- data/generated/google/apis/clouddebugger_v2.rb +1 -1
- data/generated/google/apis/clouddebugger_v2/classes.rb +133 -133
- data/generated/google/apis/clouddebugger_v2/representations.rb +29 -29
- data/generated/google/apis/clouddebugger_v2/service.rb +54 -54
- data/generated/google/apis/clouderrorreporting_v1beta1.rb +1 -1
- data/generated/google/apis/clouderrorreporting_v1beta1/classes.rb +177 -177
- data/generated/google/apis/clouderrorreporting_v1beta1/representations.rb +47 -47
- data/generated/google/apis/clouderrorreporting_v1beta1/service.rb +123 -123
- data/generated/google/apis/cloudfunctions_v1.rb +1 -1
- data/generated/google/apis/cloudfunctions_v1/service.rb +6 -6
- data/generated/google/apis/cloudkms_v1.rb +3 -3
- data/generated/google/apis/cloudkms_v1/classes.rb +229 -229
- data/generated/google/apis/cloudkms_v1/representations.rb +54 -54
- data/generated/google/apis/cloudkms_v1/service.rb +224 -224
- data/generated/google/apis/cloudresourcemanager_v1.rb +3 -3
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +1199 -1199
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +192 -192
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +122 -122
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +495 -495
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +92 -92
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +320 -320
- data/generated/google/apis/cloudtrace_v1.rb +4 -4
- data/generated/google/apis/cloudtrace_v1/classes.rb +44 -44
- data/generated/google/apis/cloudtrace_v1/representations.rb +13 -13
- data/generated/google/apis/cloudtrace_v1/service.rb +28 -28
- data/generated/google/apis/compute_beta.rb +1 -1
- data/generated/google/apis/compute_beta/classes.rb +57 -15
- data/generated/google/apis/compute_beta/representations.rb +30 -14
- data/generated/google/apis/compute_beta/service.rb +52 -52
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +223 -10
- data/generated/google/apis/compute_v1/representations.rb +85 -16
- data/generated/google/apis/compute_v1/service.rb +327 -51
- data/generated/google/apis/container_v1/classes.rb +267 -267
- data/generated/google/apis/container_v1/representations.rb +61 -61
- data/generated/google/apis/container_v1/service.rb +123 -123
- data/generated/google/apis/content_v2.rb +1 -1
- data/generated/google/apis/content_v2/classes.rb +71 -71
- data/generated/google/apis/content_v2/representations.rb +105 -105
- data/generated/google/apis/content_v2/service.rb +120 -120
- data/generated/google/apis/dataflow_v1b3.rb +4 -4
- data/generated/google/apis/dataflow_v1b3/classes.rb +3442 -3452
- data/generated/google/apis/dataflow_v1b3/representations.rb +388 -389
- data/generated/google/apis/dataflow_v1b3/service.rb +265 -265
- data/generated/google/apis/dataproc_v1.rb +1 -1
- data/generated/google/apis/dataproc_v1/classes.rb +1059 -1059
- data/generated/google/apis/dataproc_v1/representations.rb +147 -147
- data/generated/google/apis/dataproc_v1/service.rb +309 -305
- data/generated/google/apis/datastore_v1.rb +1 -1
- data/generated/google/apis/datastore_v1/classes.rb +818 -818
- data/generated/google/apis/datastore_v1/representations.rb +151 -151
- data/generated/google/apis/datastore_v1/service.rb +62 -62
- data/generated/google/apis/deploymentmanager_v2/classes.rb +5 -5
- data/generated/google/apis/deploymentmanager_v2/representations.rb +10 -10
- data/generated/google/apis/deploymentmanager_v2/service.rb +20 -20
- data/generated/google/apis/discovery_v1/classes.rb +4 -4
- data/generated/google/apis/discovery_v1/representations.rb +2 -2
- data/generated/google/apis/discovery_v1/service.rb +1 -1
- data/generated/google/apis/dns_v1.rb +1 -1
- data/generated/google/apis/dns_v1/classes.rb +3 -3
- data/generated/google/apis/dns_v1/representations.rb +6 -6
- data/generated/google/apis/dns_v1/service.rb +12 -12
- data/generated/google/apis/dns_v2beta1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -8
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/drive_v2/service.rb +1 -1
- data/generated/google/apis/drive_v3/service.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1.rb +1 -1
- data/generated/google/apis/firebasedynamiclinks_v1/classes.rb +188 -188
- data/generated/google/apis/firebasedynamiclinks_v1/representations.rb +62 -62
- data/generated/google/apis/firebasedynamiclinks_v1/service.rb +4 -4
- data/generated/google/apis/firebaserules_v1.rb +1 -1
- data/generated/google/apis/firebaserules_v1/classes.rb +403 -206
- data/generated/google/apis/firebaserules_v1/representations.rb +134 -54
- data/generated/google/apis/firebaserules_v1/service.rb +89 -89
- data/generated/google/apis/fusiontables_v2/service.rb +2 -2
- 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 +4 -4
- data/generated/google/apis/games_configuration_v1configuration/service.rb +8 -8
- data/generated/google/apis/games_management_v1management.rb +1 -1
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +23 -23
- data/generated/google/apis/games_v1/representations.rb +43 -43
- data/generated/google/apis/games_v1/service.rb +72 -72
- data/generated/google/apis/genomics_v1.rb +7 -7
- data/generated/google/apis/genomics_v1/classes.rb +2296 -2297
- data/generated/google/apis/genomics_v1/representations.rb +298 -298
- data/generated/google/apis/genomics_v1/service.rb +1160 -1160
- data/generated/google/apis/groupssettings_v1/service.rb +0 -3
- data/generated/google/apis/iam_v1.rb +1 -1
- data/generated/google/apis/iam_v1/classes.rb +235 -235
- data/generated/google/apis/iam_v1/representations.rb +72 -72
- data/generated/google/apis/iam_v1/service.rb +189 -189
- data/generated/google/apis/identitytoolkit_v3/classes.rb +15 -15
- data/generated/google/apis/identitytoolkit_v3/representations.rb +30 -30
- data/generated/google/apis/identitytoolkit_v3/service.rb +64 -64
- data/generated/google/apis/kgsearch_v1/classes.rb +6 -6
- data/generated/google/apis/kgsearch_v1/representations.rb +1 -1
- data/generated/google/apis/kgsearch_v1/service.rb +10 -10
- data/generated/google/apis/language_v1/classes.rb +220 -220
- data/generated/google/apis/language_v1/representations.rb +81 -81
- data/generated/google/apis/language_v1/service.rb +43 -43
- data/generated/google/apis/language_v1beta1/classes.rb +448 -448
- data/generated/google/apis/language_v1beta1/representations.rb +106 -106
- data/generated/google/apis/language_v1beta1/service.rb +31 -31
- data/generated/google/apis/licensing_v1/service.rb +2 -2
- data/generated/google/apis/logging_v2/classes.rb +737 -737
- data/generated/google/apis/logging_v2/representations.rb +120 -120
- data/generated/google/apis/logging_v2/service.rb +479 -479
- data/generated/google/apis/logging_v2beta1/classes.rb +293 -293
- data/generated/google/apis/logging_v2beta1/representations.rb +54 -54
- data/generated/google/apis/logging_v2beta1/service.rb +349 -349
- data/generated/google/apis/manufacturers_v1/classes.rb +423 -423
- data/generated/google/apis/manufacturers_v1/representations.rb +61 -61
- data/generated/google/apis/manufacturers_v1/service.rb +8 -8
- data/generated/google/apis/mirror_v1/classes.rb +5 -5
- data/generated/google/apis/mirror_v1/representations.rb +10 -10
- data/generated/google/apis/mirror_v1/service.rb +20 -20
- data/generated/google/apis/ml_v1.rb +1 -1
- data/generated/google/apis/ml_v1/classes.rb +1285 -1205
- data/generated/google/apis/ml_v1/representations.rb +204 -174
- data/generated/google/apis/ml_v1/service.rb +150 -145
- data/generated/google/apis/monitoring_v3.rb +1 -1
- data/generated/google/apis/monitoring_v3/classes.rb +880 -880
- data/generated/google/apis/monitoring_v3/representations.rb +154 -154
- data/generated/google/apis/monitoring_v3/service.rb +299 -299
- data/generated/google/apis/mybusiness_v3/service.rb +5 -5
- data/generated/google/apis/oauth2_v2/service.rb +1 -1
- data/generated/google/apis/pagespeedonline_v2/classes.rb +11 -11
- data/generated/google/apis/pagespeedonline_v2/representations.rb +13 -13
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -1
- data/generated/google/apis/partners_v2.rb +1 -1
- data/generated/google/apis/partners_v2/classes.rb +524 -509
- data/generated/google/apis/partners_v2/representations.rb +115 -111
- data/generated/google/apis/partners_v2/service.rb +287 -287
- data/generated/google/apis/people_v1.rb +13 -13
- data/generated/google/apis/people_v1/classes.rb +1150 -1150
- data/generated/google/apis/people_v1/representations.rb +258 -258
- data/generated/google/apis/people_v1/service.rb +7 -7
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/service.rb +4 -4
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/service.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -8
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +554 -554
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +108 -108
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +224 -224
- data/generated/google/apis/pubsub_v1/classes.rb +228 -228
- data/generated/google/apis/pubsub_v1/representations.rb +69 -69
- data/generated/google/apis/pubsub_v1/service.rb +182 -182
- data/generated/google/apis/qpx_express_v1/classes.rb +2 -2
- data/generated/google/apis/qpx_express_v1/representations.rb +4 -4
- data/generated/google/apis/qpx_express_v1/service.rb +8 -8
- data/generated/google/apis/replicapool_v1beta2/classes.rb +5 -5
- data/generated/google/apis/replicapool_v1beta2/representations.rb +10 -10
- data/generated/google/apis/replicapool_v1beta2/service.rb +21 -21
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +1 -1
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +5 -5
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +10 -10
- data/generated/google/apis/resourceviews_v1beta2/service.rb +20 -20
- data/generated/google/apis/runtimeconfig_v1.rb +3 -3
- data/generated/google/apis/runtimeconfig_v1/classes.rb +19 -19
- data/generated/google/apis/runtimeconfig_v1/representations.rb +10 -10
- data/generated/google/apis/runtimeconfig_v1/service.rb +4 -4
- data/generated/google/apis/script_v1.rb +9 -9
- data/generated/google/apis/script_v1/classes.rb +94 -94
- data/generated/google/apis/script_v1/representations.rb +26 -26
- data/generated/google/apis/searchconsole_v1.rb +1 -1
- data/generated/google/apis/searchconsole_v1/classes.rb +65 -65
- data/generated/google/apis/searchconsole_v1/representations.rb +27 -27
- data/generated/google/apis/searchconsole_v1/service.rb +6 -6
- data/generated/google/apis/servicecontrol_v1/classes.rb +1131 -1131
- data/generated/google/apis/servicecontrol_v1/representations.rb +195 -195
- data/generated/google/apis/servicecontrol_v1/service.rb +57 -57
- data/generated/google/apis/servicemanagement_v1.rb +7 -7
- data/generated/google/apis/servicemanagement_v1/classes.rb +3543 -3585
- data/generated/google/apis/servicemanagement_v1/representations.rb +556 -556
- data/generated/google/apis/servicemanagement_v1/service.rb +309 -309
- data/generated/google/apis/serviceuser_v1.rb +4 -4
- data/generated/google/apis/serviceuser_v1/classes.rb +2734 -2776
- data/generated/google/apis/serviceuser_v1/representations.rb +398 -398
- data/generated/google/apis/serviceuser_v1/service.rb +16 -16
- data/generated/google/apis/sheets_v4/classes.rb +1489 -1489
- data/generated/google/apis/sheets_v4/representations.rb +324 -324
- data/generated/google/apis/sheets_v4/service.rb +49 -49
- data/generated/google/apis/site_verification_v1/classes.rb +6 -6
- data/generated/google/apis/site_verification_v1/representations.rb +8 -8
- data/generated/google/apis/site_verification_v1/service.rb +12 -12
- data/generated/google/apis/slides_v1.rb +4 -4
- data/generated/google/apis/slides_v1/classes.rb +2907 -2907
- data/generated/google/apis/slides_v1/representations.rb +695 -695
- data/generated/google/apis/slides_v1/service.rb +40 -40
- data/generated/google/apis/sourcerepo_v1.rb +7 -1
- data/generated/google/apis/sourcerepo_v1/classes.rb +459 -452
- data/generated/google/apis/sourcerepo_v1/representations.rb +90 -89
- data/generated/google/apis/sourcerepo_v1/service.rb +101 -100
- data/generated/google/apis/spanner_v1/classes.rb +2557 -2557
- data/generated/google/apis/spanner_v1/representations.rb +205 -205
- data/generated/google/apis/spanner_v1/service.rb +525 -525
- data/generated/google/apis/speech_v1beta1.rb +1 -1
- data/generated/google/apis/speech_v1beta1/classes.rb +73 -73
- data/generated/google/apis/speech_v1beta1/representations.rb +25 -25
- data/generated/google/apis/speech_v1beta1/service.rb +33 -33
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +16 -15
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +28 -28
- data/generated/google/apis/sqladmin_v1beta4/service.rb +58 -57
- data/generated/google/apis/storage_v1/classes.rb +6 -6
- data/generated/google/apis/storage_v1/representations.rb +4 -4
- data/generated/google/apis/storage_v1/service.rb +1 -1
- data/generated/google/apis/storagetransfer_v1.rb +1 -1
- data/generated/google/apis/storagetransfer_v1/classes.rb +357 -357
- data/generated/google/apis/storagetransfer_v1/representations.rb +87 -87
- data/generated/google/apis/storagetransfer_v1/service.rb +53 -48
- data/generated/google/apis/tagmanager_v1/service.rb +33 -33
- data/generated/google/apis/toolresults_v1beta3.rb +1 -1
- data/generated/google/apis/translate_v2.rb +1 -1
- data/generated/google/apis/translate_v2/classes.rb +46 -46
- data/generated/google/apis/translate_v2/representations.rb +22 -22
- data/generated/google/apis/translate_v2/service.rb +81 -74
- data/generated/google/apis/vision_v1/classes.rb +1290 -1290
- data/generated/google/apis/vision_v1/representations.rb +166 -166
- data/generated/google/apis/vision_v1/service.rb +6 -6
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/representations.rb +8 -8
- data/generated/google/apis/webmasters_v3/service.rb +21 -21
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +2 -2
- data/generated/google/apis/youtube_analytics_v1/representations.rb +4 -4
- data/generated/google/apis/youtube_analytics_v1/service.rb +8 -8
- data/generated/google/apis/youtube_v3/classes.rb +20 -20
- data/generated/google/apis/youtube_v3/representations.rb +40 -40
- data/generated/google/apis/youtube_v3/service.rb +80 -80
- data/generated/google/apis/youtubereporting_v1.rb +1 -1
- data/generated/google/apis/youtubereporting_v1/classes.rb +127 -127
- data/generated/google/apis/youtubereporting_v1/representations.rb +36 -36
- data/generated/google/apis/youtubereporting_v1/service.rb +90 -90
- data/google-api-client.gemspec +3 -3
- data/lib/google/apis/core/base_service.rb +6 -0
- data/lib/google/apis/generator/annotator.rb +2 -2
- data/lib/google/apis/generator/model.rb +2 -2
- data/lib/google/apis/version.rb +1 -1
- metadata +11 -94
- data/dl.rb +0 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +0 -35
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +0 -1335
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +0 -446
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +0 -872
- data/generated/google/apis/appengine_v1beta4.rb +0 -35
- data/generated/google/apis/appengine_v1beta4/classes.rb +0 -1585
- data/generated/google/apis/appengine_v1beta4/representations.rb +0 -542
- data/generated/google/apis/appengine_v1beta4/service.rb +0 -477
- data/generated/google/apis/appengine_v1beta5.rb +0 -40
- data/generated/google/apis/appengine_v1beta5/classes.rb +0 -2094
- data/generated/google/apis/appengine_v1beta5/representations.rb +0 -802
- data/generated/google/apis/appengine_v1beta5/service.rb +0 -867
- data/generated/google/apis/autoscaler_v1beta2.rb +0 -38
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +0 -710
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +0 -296
- data/generated/google/apis/autoscaler_v1beta2/service.rb +0 -478
- data/generated/google/apis/classroom_v1beta1.rb +0 -49
- data/generated/google/apis/classroom_v1beta1/classes.rb +0 -447
- data/generated/google/apis/classroom_v1beta1/representations.rb +0 -190
- data/generated/google/apis/classroom_v1beta1/service.rb +0 -791
- data/generated/google/apis/cloudkms_v1beta1.rb +0 -35
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +0 -1039
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +0 -448
- data/generated/google/apis/cloudkms_v1beta1/service.rb +0 -933
- data/generated/google/apis/cloudlatencytest_v2.rb +0 -34
- data/generated/google/apis/cloudlatencytest_v2/classes.rb +0 -195
- data/generated/google/apis/cloudlatencytest_v2/representations.rb +0 -127
- data/generated/google/apis/cloudlatencytest_v2/service.rb +0 -135
- data/generated/google/apis/container_v1beta1.rb +0 -35
- data/generated/google/apis/container_v1beta1/classes.rb +0 -466
- data/generated/google/apis/container_v1beta1/representations.rb +0 -177
- data/generated/google/apis/container_v1beta1/service.rb +0 -394
- data/generated/google/apis/coordinate_v1.rb +0 -37
- data/generated/google/apis/coordinate_v1/classes.rb +0 -669
- data/generated/google/apis/coordinate_v1/representations.rb +0 -321
- data/generated/google/apis/coordinate_v1/service.rb +0 -678
- data/generated/google/apis/datastore_v1beta2.rb +0 -40
- data/generated/google/apis/datastore_v1beta2/classes.rb +0 -1186
- data/generated/google/apis/datastore_v1beta2/representations.rb +0 -594
- data/generated/google/apis/datastore_v1beta2/service.rb +0 -294
- data/generated/google/apis/datastore_v1beta3.rb +0 -38
- data/generated/google/apis/datastore_v1beta3/classes.rb +0 -1284
- data/generated/google/apis/datastore_v1beta3/representations.rb +0 -572
- data/generated/google/apis/datastore_v1beta3/service.rb +0 -259
- data/generated/google/apis/deploymentmanager_v2beta2.rb +0 -44
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +0 -843
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +0 -306
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +0 -689
- data/generated/google/apis/dfareporting_v2_1.rb +0 -37
- data/generated/google/apis/dfareporting_v2_1/classes.rb +0 -10770
- data/generated/google/apis/dfareporting_v2_1/representations.rb +0 -3438
- data/generated/google/apis/dfareporting_v2_1/service.rb +0 -8585
- data/generated/google/apis/dfareporting_v2_3.rb +0 -37
- data/generated/google/apis/dfareporting_v2_3/classes.rb +0 -10839
- data/generated/google/apis/dfareporting_v2_3/representations.rb +0 -3829
- data/generated/google/apis/dfareporting_v2_3/service.rb +0 -8581
- data/generated/google/apis/dfareporting_v2_5.rb +0 -40
- data/generated/google/apis/dfareporting_v2_5/classes.rb +0 -11225
- data/generated/google/apis/dfareporting_v2_5/representations.rb +0 -3982
- data/generated/google/apis/dfareporting_v2_5/service.rb +0 -8755
- data/generated/google/apis/dfareporting_v2_6.rb +0 -40
- data/generated/google/apis/dfareporting_v2_6/classes.rb +0 -11599
- data/generated/google/apis/dfareporting_v2_6/representations.rb +0 -4119
- data/generated/google/apis/dfareporting_v2_6/service.rb +0 -9026
- data/generated/google/apis/gan_v1beta1.rb +0 -31
- data/generated/google/apis/gan_v1beta1/classes.rb +0 -1428
- data/generated/google/apis/gan_v1beta1/representations.rb +0 -462
- data/generated/google/apis/gan_v1beta1/service.rb +0 -682
- data/generated/google/apis/genomics_v1beta2.rb +0 -46
- data/generated/google/apis/genomics_v1beta2/classes.rb +0 -3288
- data/generated/google/apis/genomics_v1beta2/representations.rb +0 -1194
- data/generated/google/apis/genomics_v1beta2/service.rb +0 -2392
- data/generated/google/apis/logging_v1beta3.rb +0 -47
- data/generated/google/apis/logging_v1beta3/classes.rb +0 -1079
- data/generated/google/apis/logging_v1beta3/representations.rb +0 -366
- data/generated/google/apis/logging_v1beta3/service.rb +0 -1001
- data/generated/google/apis/manager_v1beta2.rb +0 -53
- data/generated/google/apis/manager_v1beta2/classes.rb +0 -1287
- data/generated/google/apis/manager_v1beta2/representations.rb +0 -606
- data/generated/google/apis/manager_v1beta2/service.rb +0 -372
- data/generated/google/apis/pubsub_v1beta2.rb +0 -37
- data/generated/google/apis/pubsub_v1beta2/classes.rb +0 -620
- data/generated/google/apis/pubsub_v1beta2/representations.rb +0 -282
- data/generated/google/apis/pubsub_v1beta2/service.rb +0 -774
- data/generated/google/apis/tracing_v1.rb +0 -40
- data/generated/google/apis/tracing_v1/classes.rb +0 -664
- data/generated/google/apis/tracing_v1/representations.rb +0 -279
- data/generated/google/apis/tracing_v1/service.rb +0 -226
@@ -47,36 +47,6 @@ module Google
|
|
47
47
|
@batch_path = 'batch'
|
48
48
|
end
|
49
49
|
|
50
|
-
# Gets the latest version of the specified presentation.
|
51
|
-
# @param [String] presentation_id
|
52
|
-
# The ID of the presentation to retrieve.
|
53
|
-
# @param [String] fields
|
54
|
-
# Selector specifying which fields to include in a partial response.
|
55
|
-
# @param [String] quota_user
|
56
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
57
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
58
|
-
# @param [Google::Apis::RequestOptions] options
|
59
|
-
# Request-specific options
|
60
|
-
#
|
61
|
-
# @yield [result, err] Result & error if block supplied
|
62
|
-
# @yieldparam result [Google::Apis::SlidesV1::Presentation] parsed result object
|
63
|
-
# @yieldparam err [StandardError] error object if request failed
|
64
|
-
#
|
65
|
-
# @return [Google::Apis::SlidesV1::Presentation]
|
66
|
-
#
|
67
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
68
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
69
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
70
|
-
def get_presentation(presentation_id, fields: nil, quota_user: nil, options: nil, &block)
|
71
|
-
command = make_simple_command(:get, 'v1/presentations/{+presentationId}', options)
|
72
|
-
command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
|
73
|
-
command.response_class = Google::Apis::SlidesV1::Presentation
|
74
|
-
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
75
|
-
command.query['fields'] = fields unless fields.nil?
|
76
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
77
|
-
execute_or_queue_command(command, &block)
|
78
|
-
end
|
79
|
-
|
80
50
|
# Creates a new presentation using the title given in the request. Other
|
81
51
|
# fields in the request are ignored.
|
82
52
|
# Returns the created presentation.
|
@@ -158,11 +128,9 @@ module Google
|
|
158
128
|
execute_or_queue_command(command, &block)
|
159
129
|
end
|
160
130
|
|
161
|
-
# Gets the latest version of the specified
|
131
|
+
# Gets the latest version of the specified presentation.
|
162
132
|
# @param [String] presentation_id
|
163
133
|
# The ID of the presentation to retrieve.
|
164
|
-
# @param [String] page_object_id
|
165
|
-
# The object ID of the page to retrieve.
|
166
134
|
# @param [String] fields
|
167
135
|
# Selector specifying which fields to include in a partial response.
|
168
136
|
# @param [String] quota_user
|
@@ -172,20 +140,19 @@ module Google
|
|
172
140
|
# Request-specific options
|
173
141
|
#
|
174
142
|
# @yield [result, err] Result & error if block supplied
|
175
|
-
# @yieldparam result [Google::Apis::SlidesV1::
|
143
|
+
# @yieldparam result [Google::Apis::SlidesV1::Presentation] parsed result object
|
176
144
|
# @yieldparam err [StandardError] error object if request failed
|
177
145
|
#
|
178
|
-
# @return [Google::Apis::SlidesV1::
|
146
|
+
# @return [Google::Apis::SlidesV1::Presentation]
|
179
147
|
#
|
180
148
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
181
149
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
182
150
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
183
|
-
def
|
184
|
-
command = make_simple_command(:get, 'v1/presentations/{presentationId}
|
185
|
-
command.response_representation = Google::Apis::SlidesV1::
|
186
|
-
command.response_class = Google::Apis::SlidesV1::
|
151
|
+
def get_presentation(presentation_id, fields: nil, quota_user: nil, options: nil, &block)
|
152
|
+
command = make_simple_command(:get, 'v1/presentations/{+presentationId}', options)
|
153
|
+
command.response_representation = Google::Apis::SlidesV1::Presentation::Representation
|
154
|
+
command.response_class = Google::Apis::SlidesV1::Presentation
|
187
155
|
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
188
|
-
command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
|
189
156
|
command.query['fields'] = fields unless fields.nil?
|
190
157
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
191
158
|
execute_or_queue_command(command, &block)
|
@@ -233,6 +200,39 @@ module Google
|
|
233
200
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
234
201
|
execute_or_queue_command(command, &block)
|
235
202
|
end
|
203
|
+
|
204
|
+
# Gets the latest version of the specified page in the presentation.
|
205
|
+
# @param [String] presentation_id
|
206
|
+
# The ID of the presentation to retrieve.
|
207
|
+
# @param [String] page_object_id
|
208
|
+
# The object ID of the page to retrieve.
|
209
|
+
# @param [String] fields
|
210
|
+
# Selector specifying which fields to include in a partial response.
|
211
|
+
# @param [String] quota_user
|
212
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
213
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
214
|
+
# @param [Google::Apis::RequestOptions] options
|
215
|
+
# Request-specific options
|
216
|
+
#
|
217
|
+
# @yield [result, err] Result & error if block supplied
|
218
|
+
# @yieldparam result [Google::Apis::SlidesV1::Page] parsed result object
|
219
|
+
# @yieldparam err [StandardError] error object if request failed
|
220
|
+
#
|
221
|
+
# @return [Google::Apis::SlidesV1::Page]
|
222
|
+
#
|
223
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
224
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
225
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
226
|
+
def get_presentation_page(presentation_id, page_object_id, fields: nil, quota_user: nil, options: nil, &block)
|
227
|
+
command = make_simple_command(:get, 'v1/presentations/{presentationId}/pages/{pageObjectId}', options)
|
228
|
+
command.response_representation = Google::Apis::SlidesV1::Page::Representation
|
229
|
+
command.response_class = Google::Apis::SlidesV1::Page
|
230
|
+
command.params['presentationId'] = presentation_id unless presentation_id.nil?
|
231
|
+
command.params['pageObjectId'] = page_object_id unless page_object_id.nil?
|
232
|
+
command.query['fields'] = fields unless fields.nil?
|
233
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
234
|
+
execute_or_queue_command(command, &block)
|
235
|
+
end
|
236
236
|
|
237
237
|
protected
|
238
238
|
|
@@ -25,7 +25,13 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/source-repositories/docs/apis
|
26
26
|
module SourcerepoV1
|
27
27
|
VERSION = 'V1'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20170528'
|
29
|
+
|
30
|
+
# View the contents of your source code repositories
|
31
|
+
AUTH_SOURCE_READ_ONLY = 'https://www.googleapis.com/auth/source.read_only'
|
32
|
+
|
33
|
+
# Manage the contents of your source code repositories
|
34
|
+
AUTH_SOURCE_READ_WRITE = 'https://www.googleapis.com/auth/source.read_write'
|
29
35
|
|
30
36
|
# View and manage your data across Google Cloud Platform services
|
31
37
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -22,32 +22,106 @@ module Google
|
|
22
22
|
module Apis
|
23
23
|
module SourcerepoV1
|
24
24
|
|
25
|
-
#
|
26
|
-
class
|
25
|
+
# Request message for `TestIamPermissions` method.
|
26
|
+
class TestIamPermissionsRequest
|
27
27
|
include Google::Apis::Core::Hashable
|
28
28
|
|
29
|
-
#
|
30
|
-
#
|
31
|
-
#
|
32
|
-
#
|
33
|
-
|
29
|
+
# The set of permissions to check for the `resource`. Permissions with
|
30
|
+
# wildcards (such as '*' or 'storage.*') are not allowed. For more
|
31
|
+
# information see
|
32
|
+
# [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
|
33
|
+
# Corresponds to the JSON property `permissions`
|
34
|
+
# @return [Array<String>]
|
35
|
+
attr_accessor :permissions
|
34
36
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
attr_accessor :url
|
37
|
+
def initialize(**args)
|
38
|
+
update!(**args)
|
39
|
+
end
|
39
40
|
|
40
|
-
#
|
41
|
-
|
42
|
-
|
41
|
+
# Update properties of this object
|
42
|
+
def update!(**args)
|
43
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
48
|
+
# specify access control policies for Cloud Platform resources.
|
49
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
50
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
51
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
52
|
+
# defined by IAM.
|
53
|
+
# **Example**
|
54
|
+
# `
|
55
|
+
# "bindings": [
|
56
|
+
# `
|
57
|
+
# "role": "roles/owner",
|
58
|
+
# "members": [
|
59
|
+
# "user:mike@example.com",
|
60
|
+
# "group:admins@example.com",
|
61
|
+
# "domain:google.com",
|
62
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
63
|
+
# ]
|
64
|
+
# `,
|
65
|
+
# `
|
66
|
+
# "role": "roles/viewer",
|
67
|
+
# "members": ["user:sean@example.com"]
|
68
|
+
# `
|
69
|
+
# ]
|
70
|
+
# `
|
71
|
+
# For a description of IAM and its features, see the
|
72
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
73
|
+
class Policy
|
74
|
+
include Google::Apis::Core::Hashable
|
75
|
+
|
76
|
+
# Version of the `Policy`. The default version is 0.
|
77
|
+
# Corresponds to the JSON property `version`
|
43
78
|
# @return [Fixnum]
|
44
|
-
attr_accessor :
|
79
|
+
attr_accessor :version
|
45
80
|
|
46
|
-
#
|
47
|
-
# `
|
48
|
-
#
|
81
|
+
# Specifies cloud audit logging configuration for this policy.
|
82
|
+
# Corresponds to the JSON property `auditConfigs`
|
83
|
+
# @return [Array<Google::Apis::SourcerepoV1::AuditConfig>]
|
84
|
+
attr_accessor :audit_configs
|
85
|
+
|
86
|
+
# Associates a list of `members` to a `role`.
|
87
|
+
# Multiple `bindings` must not be specified for the same `role`.
|
88
|
+
# `bindings` with no members will result in an error.
|
89
|
+
# Corresponds to the JSON property `bindings`
|
90
|
+
# @return [Array<Google::Apis::SourcerepoV1::Binding>]
|
91
|
+
attr_accessor :bindings
|
92
|
+
|
93
|
+
# `etag` is used for optimistic concurrency control as a way to help
|
94
|
+
# prevent simultaneous updates of a policy from overwriting each other.
|
95
|
+
# It is strongly suggested that systems make use of the `etag` in the
|
96
|
+
# read-modify-write cycle to perform policy updates in order to avoid race
|
97
|
+
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
98
|
+
# systems are expected to put that etag in the request to `setIamPolicy` to
|
99
|
+
# ensure that their change will be applied to the same version of the policy.
|
100
|
+
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
101
|
+
# policy is overwritten blindly.
|
102
|
+
# Corresponds to the JSON property `etag`
|
103
|
+
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
49
104
|
# @return [String]
|
50
|
-
attr_accessor :
|
105
|
+
attr_accessor :etag
|
106
|
+
|
107
|
+
#
|
108
|
+
# Corresponds to the JSON property `iamOwned`
|
109
|
+
# @return [Boolean]
|
110
|
+
attr_accessor :iam_owned
|
111
|
+
alias_method :iam_owned?, :iam_owned
|
112
|
+
|
113
|
+
# If more than one rule is specified, the rules are applied in the following
|
114
|
+
# manner:
|
115
|
+
# - All matching LOG rules are always applied.
|
116
|
+
# - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
|
117
|
+
# Logging will be applied if one or more matching rule requires logging.
|
118
|
+
# - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
|
119
|
+
# granted.
|
120
|
+
# Logging will be applied if one or more matching rule requires logging.
|
121
|
+
# - Otherwise, if no rule applies, permission is denied.
|
122
|
+
# Corresponds to the JSON property `rules`
|
123
|
+
# @return [Array<Google::Apis::SourcerepoV1::Rule>]
|
124
|
+
attr_accessor :rules
|
51
125
|
|
52
126
|
def initialize(**args)
|
53
127
|
update!(**args)
|
@@ -55,47 +129,95 @@ module Google
|
|
55
129
|
|
56
130
|
# Update properties of this object
|
57
131
|
def update!(**args)
|
58
|
-
@
|
59
|
-
@
|
60
|
-
@
|
61
|
-
@
|
132
|
+
@version = args[:version] if args.key?(:version)
|
133
|
+
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
134
|
+
@bindings = args[:bindings] if args.key?(:bindings)
|
135
|
+
@etag = args[:etag] if args.key?(:etag)
|
136
|
+
@iam_owned = args[:iam_owned] if args.key?(:iam_owned)
|
137
|
+
@rules = args[:rules] if args.key?(:rules)
|
62
138
|
end
|
63
139
|
end
|
64
140
|
|
65
|
-
#
|
66
|
-
class
|
141
|
+
# Write a Data Access (Gin) log
|
142
|
+
class DataAccessOptions
|
67
143
|
include Google::Apis::Core::Hashable
|
68
144
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
# @return [String]
|
73
|
-
attr_accessor :sys
|
74
|
-
|
75
|
-
# DEPRECATED. Use 'values' instead.
|
76
|
-
# Corresponds to the JSON property `value`
|
77
|
-
# @return [String]
|
78
|
-
attr_accessor :value
|
145
|
+
def initialize(**args)
|
146
|
+
update!(**args)
|
147
|
+
end
|
79
148
|
|
80
|
-
#
|
81
|
-
|
82
|
-
|
83
|
-
|
149
|
+
# Update properties of this object
|
150
|
+
def update!(**args)
|
151
|
+
end
|
152
|
+
end
|
84
153
|
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
154
|
+
# Specifies the audit configuration for a service.
|
155
|
+
# The configuration determines which permission types are logged, and what
|
156
|
+
# identities, if any, are exempted from logging.
|
157
|
+
# An AuditConfig must have one or more AuditLogConfigs.
|
158
|
+
# If there are AuditConfigs for both `allServices` and a specific service,
|
159
|
+
# the union of the two AuditConfigs is used for that service: the log_types
|
160
|
+
# specified in each AuditConfig are enabled, and the exempted_members in each
|
161
|
+
# AuditConfig are exempted.
|
162
|
+
# Example Policy with multiple AuditConfigs:
|
163
|
+
# `
|
164
|
+
# "audit_configs": [
|
165
|
+
# `
|
166
|
+
# "service": "allServices"
|
167
|
+
# "audit_log_configs": [
|
168
|
+
# `
|
169
|
+
# "log_type": "DATA_READ",
|
170
|
+
# "exempted_members": [
|
171
|
+
# "user:foo@gmail.com"
|
172
|
+
# ]
|
173
|
+
# `,
|
174
|
+
# `
|
175
|
+
# "log_type": "DATA_WRITE",
|
176
|
+
# `,
|
177
|
+
# `
|
178
|
+
# "log_type": "ADMIN_READ",
|
179
|
+
# `
|
180
|
+
# ]
|
181
|
+
# `,
|
182
|
+
# `
|
183
|
+
# "service": "fooservice.googleapis.com"
|
184
|
+
# "audit_log_configs": [
|
185
|
+
# `
|
186
|
+
# "log_type": "DATA_READ",
|
187
|
+
# `,
|
188
|
+
# `
|
189
|
+
# "log_type": "DATA_WRITE",
|
190
|
+
# "exempted_members": [
|
191
|
+
# "user:bar@gmail.com"
|
192
|
+
# ]
|
193
|
+
# `
|
194
|
+
# ]
|
195
|
+
# `
|
196
|
+
# ]
|
197
|
+
# `
|
198
|
+
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
199
|
+
# logging. It also exempts foo@gmail.com from DATA_READ logging, and
|
200
|
+
# bar@gmail.com from DATA_WRITE logging.
|
201
|
+
class AuditConfig
|
202
|
+
include Google::Apis::Core::Hashable
|
89
203
|
|
90
|
-
#
|
91
|
-
#
|
204
|
+
# Specifies a service that will be enabled for audit logging.
|
205
|
+
# For example, `storage.googleapis.com`, `cloudsql.googleapis.com`.
|
206
|
+
# `allServices` is a special value that covers all services.
|
207
|
+
# Corresponds to the JSON property `service`
|
92
208
|
# @return [String]
|
93
|
-
attr_accessor :
|
209
|
+
attr_accessor :service
|
94
210
|
|
95
|
-
#
|
96
|
-
#
|
97
|
-
#
|
98
|
-
|
211
|
+
# The configuration for logging of each type of permission.
|
212
|
+
# Next ID: 4
|
213
|
+
# Corresponds to the JSON property `auditLogConfigs`
|
214
|
+
# @return [Array<Google::Apis::SourcerepoV1::AuditLogConfig>]
|
215
|
+
attr_accessor :audit_log_configs
|
216
|
+
|
217
|
+
#
|
218
|
+
# Corresponds to the JSON property `exemptedMembers`
|
219
|
+
# @return [Array<String>]
|
220
|
+
attr_accessor :exempted_members
|
99
221
|
|
100
222
|
def initialize(**args)
|
101
223
|
update!(**args)
|
@@ -103,30 +225,54 @@ module Google
|
|
103
225
|
|
104
226
|
# Update properties of this object
|
105
227
|
def update!(**args)
|
106
|
-
@
|
107
|
-
@
|
108
|
-
@
|
109
|
-
@values = args[:values] if args.key?(:values)
|
110
|
-
@op = args[:op] if args.key?(:op)
|
111
|
-
@svc = args[:svc] if args.key?(:svc)
|
228
|
+
@service = args[:service] if args.key?(:service)
|
229
|
+
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
230
|
+
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
112
231
|
end
|
113
232
|
end
|
114
233
|
|
115
|
-
#
|
116
|
-
class
|
234
|
+
# Request message for `SetIamPolicy` method.
|
235
|
+
class SetIamPolicyRequest
|
117
236
|
include Google::Apis::Core::Hashable
|
118
237
|
|
119
|
-
#
|
120
|
-
#
|
121
|
-
#
|
122
|
-
#
|
123
|
-
#
|
124
|
-
|
238
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to
|
239
|
+
# specify access control policies for Cloud Platform resources.
|
240
|
+
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
241
|
+
# `members` to a `role`, where the members can be user accounts, Google groups,
|
242
|
+
# Google domains, and service accounts. A `role` is a named list of permissions
|
243
|
+
# defined by IAM.
|
244
|
+
# **Example**
|
245
|
+
# `
|
246
|
+
# "bindings": [
|
247
|
+
# `
|
248
|
+
# "role": "roles/owner",
|
249
|
+
# "members": [
|
250
|
+
# "user:mike@example.com",
|
251
|
+
# "group:admins@example.com",
|
252
|
+
# "domain:google.com",
|
253
|
+
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
254
|
+
# ]
|
255
|
+
# `,
|
256
|
+
# `
|
257
|
+
# "role": "roles/viewer",
|
258
|
+
# "members": ["user:sean@example.com"]
|
259
|
+
# `
|
260
|
+
# ]
|
261
|
+
# `
|
262
|
+
# For a description of IAM and its features, see the
|
263
|
+
# [IAM developer's guide](https://cloud.google.com/iam).
|
264
|
+
# Corresponds to the JSON property `policy`
|
265
|
+
# @return [Google::Apis::SourcerepoV1::Policy]
|
266
|
+
attr_accessor :policy
|
125
267
|
|
126
|
-
#
|
127
|
-
#
|
128
|
-
#
|
129
|
-
|
268
|
+
# OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only
|
269
|
+
# the fields in the mask will be modified. If no mask is provided, the
|
270
|
+
# following default mask is used:
|
271
|
+
# paths: "bindings, etag"
|
272
|
+
# This field is only used by Cloud IAM.
|
273
|
+
# Corresponds to the JSON property `updateMask`
|
274
|
+
# @return [String]
|
275
|
+
attr_accessor :update_mask
|
130
276
|
|
131
277
|
def initialize(**args)
|
132
278
|
update!(**args)
|
@@ -134,20 +280,19 @@ module Google
|
|
134
280
|
|
135
281
|
# Update properties of this object
|
136
282
|
def update!(**args)
|
137
|
-
@
|
138
|
-
@
|
283
|
+
@policy = args[:policy] if args.key?(:policy)
|
284
|
+
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
139
285
|
end
|
140
286
|
end
|
141
287
|
|
142
|
-
#
|
143
|
-
class
|
288
|
+
# Write a Cloud Audit log
|
289
|
+
class CloudAuditOptions
|
144
290
|
include Google::Apis::Core::Hashable
|
145
291
|
|
146
|
-
#
|
147
|
-
#
|
148
|
-
#
|
149
|
-
|
150
|
-
attr_accessor :permissions
|
292
|
+
# The log_name to populate in the Cloud Audit Record.
|
293
|
+
# Corresponds to the JSON property `logName`
|
294
|
+
# @return [String]
|
295
|
+
attr_accessor :log_name
|
151
296
|
|
152
297
|
def initialize(**args)
|
153
298
|
update!(**args)
|
@@ -155,23 +300,38 @@ module Google
|
|
155
300
|
|
156
301
|
# Update properties of this object
|
157
302
|
def update!(**args)
|
158
|
-
@
|
303
|
+
@log_name = args[:log_name] if args.key?(:log_name)
|
159
304
|
end
|
160
305
|
end
|
161
306
|
|
162
|
-
#
|
163
|
-
class
|
307
|
+
# Associates `members` with a `role`.
|
308
|
+
class Binding
|
164
309
|
include Google::Apis::Core::Hashable
|
165
310
|
|
166
|
-
#
|
167
|
-
#
|
168
|
-
#
|
169
|
-
|
311
|
+
# Specifies the identities requesting access for a Cloud Platform resource.
|
312
|
+
# `members` can have the following values:
|
313
|
+
# * `allUsers`: A special identifier that represents anyone who is
|
314
|
+
# on the internet; with or without a Google account.
|
315
|
+
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
316
|
+
# who is authenticated with a Google account or a service account.
|
317
|
+
# * `user:`emailid``: An email address that represents a specific Google
|
318
|
+
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
319
|
+
# * `serviceAccount:`emailid``: An email address that represents a service
|
320
|
+
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
321
|
+
# * `group:`emailid``: An email address that represents a Google group.
|
322
|
+
# For example, `admins@example.com`.
|
323
|
+
# * `domain:`domain``: A Google Apps domain name that represents all the
|
324
|
+
# users of that domain. For example, `google.com` or `example.com`.
|
325
|
+
# Corresponds to the JSON property `members`
|
326
|
+
# @return [Array<String>]
|
327
|
+
attr_accessor :members
|
170
328
|
|
171
|
-
#
|
172
|
-
#
|
329
|
+
# Role that is assigned to `members`.
|
330
|
+
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
331
|
+
# Required
|
332
|
+
# Corresponds to the JSON property `role`
|
173
333
|
# @return [String]
|
174
|
-
attr_accessor :
|
334
|
+
attr_accessor :role
|
175
335
|
|
176
336
|
def initialize(**args)
|
177
337
|
update!(**args)
|
@@ -179,42 +339,57 @@ module Google
|
|
179
339
|
|
180
340
|
# Update properties of this object
|
181
341
|
def update!(**args)
|
182
|
-
@
|
183
|
-
@
|
342
|
+
@members = args[:members] if args.key?(:members)
|
343
|
+
@role = args[:role] if args.key?(:role)
|
184
344
|
end
|
185
345
|
end
|
186
346
|
|
187
|
-
#
|
188
|
-
#
|
189
|
-
|
190
|
-
# "audit_log_configs": [
|
191
|
-
# `
|
192
|
-
# "log_type": "DATA_READ",
|
193
|
-
# "exempted_members": [
|
194
|
-
# "user:foo@gmail.com"
|
195
|
-
# ]
|
196
|
-
# `,
|
197
|
-
# `
|
198
|
-
# "log_type": "DATA_WRITE",
|
199
|
-
# `
|
200
|
-
# ]
|
201
|
-
# `
|
202
|
-
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
203
|
-
# foo@gmail.com from DATA_READ logging.
|
204
|
-
class AuditLogConfig
|
347
|
+
# Configuration to automatically mirror a repository from another
|
348
|
+
# hosting service, for example GitHub or BitBucket.
|
349
|
+
class MirrorConfig
|
205
350
|
include Google::Apis::Core::Hashable
|
206
351
|
|
207
|
-
#
|
208
|
-
#
|
209
|
-
#
|
210
|
-
|
211
|
-
# @return [Array<String>]
|
212
|
-
attr_accessor :exempted_members
|
352
|
+
# URL of the main repository at the other hosting service.
|
353
|
+
# Corresponds to the JSON property `url`
|
354
|
+
# @return [String]
|
355
|
+
attr_accessor :url
|
213
356
|
|
214
|
-
#
|
215
|
-
#
|
357
|
+
# ID of the webhook listening to updates to trigger mirroring.
|
358
|
+
# Removing this webook from the other hosting service will stop
|
359
|
+
# Google Cloud Source Repositories from receiving notifications,
|
360
|
+
# and thereby disabling mirroring.
|
361
|
+
# Corresponds to the JSON property `webhookId`
|
216
362
|
# @return [String]
|
217
|
-
attr_accessor :
|
363
|
+
attr_accessor :webhook_id
|
364
|
+
|
365
|
+
# ID of the SSH deploy key at the other hosting service.
|
366
|
+
# Removing this key from the other service would deauthorize
|
367
|
+
# Google Cloud Source Repositories from mirroring.
|
368
|
+
# Corresponds to the JSON property `deployKeyId`
|
369
|
+
# @return [String]
|
370
|
+
attr_accessor :deploy_key_id
|
371
|
+
|
372
|
+
def initialize(**args)
|
373
|
+
update!(**args)
|
374
|
+
end
|
375
|
+
|
376
|
+
# Update properties of this object
|
377
|
+
def update!(**args)
|
378
|
+
@url = args[:url] if args.key?(:url)
|
379
|
+
@webhook_id = args[:webhook_id] if args.key?(:webhook_id)
|
380
|
+
@deploy_key_id = args[:deploy_key_id] if args.key?(:deploy_key_id)
|
381
|
+
end
|
382
|
+
end
|
383
|
+
|
384
|
+
# A generic empty message that you can re-use to avoid defining duplicated
|
385
|
+
# empty messages in your APIs. A typical example is to use it as the request
|
386
|
+
# or the response type of an API method. For instance:
|
387
|
+
# service Foo `
|
388
|
+
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
389
|
+
# `
|
390
|
+
# The JSON representation for `Empty` is empty JSON object ````.
|
391
|
+
class Empty
|
392
|
+
include Google::Apis::Core::Hashable
|
218
393
|
|
219
394
|
def initialize(**args)
|
220
395
|
update!(**args)
|
@@ -222,56 +397,36 @@ module Google
|
|
222
397
|
|
223
398
|
# Update properties of this object
|
224
399
|
def update!(**args)
|
225
|
-
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
226
|
-
@log_type = args[:log_type] if args.key?(:log_type)
|
227
400
|
end
|
228
401
|
end
|
229
402
|
|
230
|
-
# A
|
231
|
-
class
|
403
|
+
# A repository (or repo) is a Git repository storing versioned source content.
|
404
|
+
class Repo
|
232
405
|
include Google::Apis::Core::Hashable
|
233
406
|
|
234
|
-
#
|
235
|
-
#
|
236
|
-
# The format for in and not_in entries is the same as for members in a
|
237
|
-
# Binding (see google/iam/v1/policy.proto).
|
238
|
-
# Corresponds to the JSON property `notIn`
|
239
|
-
# @return [Array<String>]
|
240
|
-
attr_accessor :not_in
|
241
|
-
|
242
|
-
# Human-readable description of the rule.
|
243
|
-
# Corresponds to the JSON property `description`
|
407
|
+
# URL to clone the repository from Google Cloud Source Repositories.
|
408
|
+
# Corresponds to the JSON property `url`
|
244
409
|
# @return [String]
|
245
|
-
attr_accessor :
|
246
|
-
|
247
|
-
# Additional restrictions that must be met
|
248
|
-
# Corresponds to the JSON property `conditions`
|
249
|
-
# @return [Array<Google::Apis::SourcerepoV1::Condition>]
|
250
|
-
attr_accessor :conditions
|
251
|
-
|
252
|
-
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
|
253
|
-
# that match the LOG action.
|
254
|
-
# Corresponds to the JSON property `logConfig`
|
255
|
-
# @return [Array<Google::Apis::SourcerepoV1::LogConfig>]
|
256
|
-
attr_accessor :log_config
|
257
|
-
|
258
|
-
# If one or more 'in' clauses are specified, the rule matches if
|
259
|
-
# the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
|
260
|
-
# Corresponds to the JSON property `in`
|
261
|
-
# @return [Array<String>]
|
262
|
-
attr_accessor :in
|
410
|
+
attr_accessor :url
|
263
411
|
|
264
|
-
#
|
265
|
-
#
|
266
|
-
#
|
267
|
-
#
|
268
|
-
|
269
|
-
attr_accessor :permissions
|
412
|
+
# The disk usage of the repo, in bytes.
|
413
|
+
# Only returned by GetRepo.
|
414
|
+
# Corresponds to the JSON property `size`
|
415
|
+
# @return [Fixnum]
|
416
|
+
attr_accessor :size
|
270
417
|
|
271
|
-
#
|
272
|
-
#
|
418
|
+
# Resource name of the repository, of the form
|
419
|
+
# `projects/<project>/repos/<repo>`. The repo name may contain slashes.
|
420
|
+
# eg, `projects/myproject/repos/name/with/slash`
|
421
|
+
# Corresponds to the JSON property `name`
|
273
422
|
# @return [String]
|
274
|
-
attr_accessor :
|
423
|
+
attr_accessor :name
|
424
|
+
|
425
|
+
# Configuration to automatically mirror a repository from another
|
426
|
+
# hosting service, for example GitHub or BitBucket.
|
427
|
+
# Corresponds to the JSON property `mirrorConfig`
|
428
|
+
# @return [Google::Apis::SourcerepoV1::MirrorConfig]
|
429
|
+
attr_accessor :mirror_config
|
275
430
|
|
276
431
|
def initialize(**args)
|
277
432
|
update!(**args)
|
@@ -279,34 +434,28 @@ module Google
|
|
279
434
|
|
280
435
|
# Update properties of this object
|
281
436
|
def update!(**args)
|
282
|
-
@
|
283
|
-
@
|
284
|
-
@
|
285
|
-
@
|
286
|
-
@in = args[:in] if args.key?(:in)
|
287
|
-
@permissions = args[:permissions] if args.key?(:permissions)
|
288
|
-
@action = args[:action] if args.key?(:action)
|
437
|
+
@url = args[:url] if args.key?(:url)
|
438
|
+
@size = args[:size] if args.key?(:size)
|
439
|
+
@name = args[:name] if args.key?(:name)
|
440
|
+
@mirror_config = args[:mirror_config] if args.key?(:mirror_config)
|
289
441
|
end
|
290
442
|
end
|
291
443
|
|
292
|
-
#
|
293
|
-
class
|
444
|
+
# Response for ListRepos. The size is not set in the returned repositories.
|
445
|
+
class ListReposResponse
|
294
446
|
include Google::Apis::Core::Hashable
|
295
447
|
|
296
|
-
#
|
297
|
-
# Corresponds to the JSON property `
|
298
|
-
# @return [Google::Apis::SourcerepoV1::
|
299
|
-
attr_accessor :
|
300
|
-
|
301
|
-
# Write a Cloud Audit log
|
302
|
-
# Corresponds to the JSON property `cloudAudit`
|
303
|
-
# @return [Google::Apis::SourcerepoV1::CloudAuditOptions]
|
304
|
-
attr_accessor :cloud_audit
|
448
|
+
# The listed repos.
|
449
|
+
# Corresponds to the JSON property `repos`
|
450
|
+
# @return [Array<Google::Apis::SourcerepoV1::Repo>]
|
451
|
+
attr_accessor :repos
|
305
452
|
|
306
|
-
#
|
307
|
-
#
|
308
|
-
#
|
309
|
-
|
453
|
+
# If non-empty, additional repositories exist within the project. These
|
454
|
+
# can be retrieved by including this value in the next ListReposRequest's
|
455
|
+
# page_token field.
|
456
|
+
# Corresponds to the JSON property `nextPageToken`
|
457
|
+
# @return [String]
|
458
|
+
attr_accessor :next_page_token
|
310
459
|
|
311
460
|
def initialize(**args)
|
312
461
|
update!(**args)
|
@@ -314,23 +463,45 @@ module Google
|
|
314
463
|
|
315
464
|
# Update properties of this object
|
316
465
|
def update!(**args)
|
317
|
-
@
|
318
|
-
@
|
319
|
-
@counter = args[:counter] if args.key?(:counter)
|
466
|
+
@repos = args[:repos] if args.key?(:repos)
|
467
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
320
468
|
end
|
321
469
|
end
|
322
470
|
|
323
|
-
#
|
324
|
-
class
|
471
|
+
# A condition to be met.
|
472
|
+
class Condition
|
325
473
|
include Google::Apis::Core::Hashable
|
326
474
|
|
327
|
-
#
|
328
|
-
#
|
329
|
-
#
|
330
|
-
|
331
|
-
|
475
|
+
# An operator to apply the subject with.
|
476
|
+
# Corresponds to the JSON property `op`
|
477
|
+
# @return [String]
|
478
|
+
attr_accessor :op
|
479
|
+
|
480
|
+
# Trusted attributes discharged by the service.
|
481
|
+
# Corresponds to the JSON property `svc`
|
482
|
+
# @return [String]
|
483
|
+
attr_accessor :svc
|
484
|
+
|
485
|
+
# DEPRECATED. Use 'values' instead.
|
486
|
+
# Corresponds to the JSON property `value`
|
487
|
+
# @return [String]
|
488
|
+
attr_accessor :value
|
489
|
+
|
490
|
+
# Trusted attributes supplied by any service that owns resources and uses
|
491
|
+
# the IAM system for access control.
|
492
|
+
# Corresponds to the JSON property `sys`
|
493
|
+
# @return [String]
|
494
|
+
attr_accessor :sys
|
495
|
+
|
496
|
+
# Trusted attributes supplied by the IAM system.
|
497
|
+
# Corresponds to the JSON property `iam`
|
498
|
+
# @return [String]
|
499
|
+
attr_accessor :iam
|
500
|
+
|
501
|
+
# The objects of the condition. This is mutually exclusive with 'value'.
|
502
|
+
# Corresponds to the JSON property `values`
|
332
503
|
# @return [Array<String>]
|
333
|
-
attr_accessor :
|
504
|
+
attr_accessor :values
|
334
505
|
|
335
506
|
def initialize(**args)
|
336
507
|
update!(**args)
|
@@ -338,88 +509,24 @@ module Google
|
|
338
509
|
|
339
510
|
# Update properties of this object
|
340
511
|
def update!(**args)
|
341
|
-
@
|
512
|
+
@op = args[:op] if args.key?(:op)
|
513
|
+
@svc = args[:svc] if args.key?(:svc)
|
514
|
+
@value = args[:value] if args.key?(:value)
|
515
|
+
@sys = args[:sys] if args.key?(:sys)
|
516
|
+
@iam = args[:iam] if args.key?(:iam)
|
517
|
+
@values = args[:values] if args.key?(:values)
|
342
518
|
end
|
343
519
|
end
|
344
520
|
|
345
|
-
#
|
346
|
-
|
347
|
-
# A `Policy` consists of a list of `bindings`. A `Binding` binds a list of
|
348
|
-
# `members` to a `role`, where the members can be user accounts, Google groups,
|
349
|
-
# Google domains, and service accounts. A `role` is a named list of permissions
|
350
|
-
# defined by IAM.
|
351
|
-
# **Example**
|
352
|
-
# `
|
353
|
-
# "bindings": [
|
354
|
-
# `
|
355
|
-
# "role": "roles/owner",
|
356
|
-
# "members": [
|
357
|
-
# "user:mike@example.com",
|
358
|
-
# "group:admins@example.com",
|
359
|
-
# "domain:google.com",
|
360
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
361
|
-
# ]
|
362
|
-
# `,
|
363
|
-
# `
|
364
|
-
# "role": "roles/viewer",
|
365
|
-
# "members": ["user:sean@example.com"]
|
366
|
-
# `
|
367
|
-
# ]
|
368
|
-
# `
|
369
|
-
# For a description of IAM and its features, see the
|
370
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
371
|
-
class Policy
|
521
|
+
# Response message for `TestIamPermissions` method.
|
522
|
+
class TestIamPermissionsResponse
|
372
523
|
include Google::Apis::Core::Hashable
|
373
524
|
|
374
|
-
#
|
375
|
-
#
|
376
|
-
#
|
377
|
-
#
|
378
|
-
|
379
|
-
attr_accessor :bindings
|
380
|
-
|
381
|
-
# `etag` is used for optimistic concurrency control as a way to help
|
382
|
-
# prevent simultaneous updates of a policy from overwriting each other.
|
383
|
-
# It is strongly suggested that systems make use of the `etag` in the
|
384
|
-
# read-modify-write cycle to perform policy updates in order to avoid race
|
385
|
-
# conditions: An `etag` is returned in the response to `getIamPolicy`, and
|
386
|
-
# systems are expected to put that etag in the request to `setIamPolicy` to
|
387
|
-
# ensure that their change will be applied to the same version of the policy.
|
388
|
-
# If no `etag` is provided in the call to `setIamPolicy`, then the existing
|
389
|
-
# policy is overwritten blindly.
|
390
|
-
# Corresponds to the JSON property `etag`
|
391
|
-
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
392
|
-
# @return [String]
|
393
|
-
attr_accessor :etag
|
394
|
-
|
395
|
-
#
|
396
|
-
# Corresponds to the JSON property `iamOwned`
|
397
|
-
# @return [Boolean]
|
398
|
-
attr_accessor :iam_owned
|
399
|
-
alias_method :iam_owned?, :iam_owned
|
400
|
-
|
401
|
-
# If more than one rule is specified, the rules are applied in the following
|
402
|
-
# manner:
|
403
|
-
# - All matching LOG rules are always applied.
|
404
|
-
# - If any DENY/DENY_WITH_LOG rule matches, permission is denied.
|
405
|
-
# Logging will be applied if one or more matching rule requires logging.
|
406
|
-
# - Otherwise, if any ALLOW/ALLOW_WITH_LOG rule matches, permission is
|
407
|
-
# granted.
|
408
|
-
# Logging will be applied if one or more matching rule requires logging.
|
409
|
-
# - Otherwise, if no rule applies, permission is denied.
|
410
|
-
# Corresponds to the JSON property `rules`
|
411
|
-
# @return [Array<Google::Apis::SourcerepoV1::Rule>]
|
412
|
-
attr_accessor :rules
|
413
|
-
|
414
|
-
# Version of the `Policy`. The default version is 0.
|
415
|
-
# Corresponds to the JSON property `version`
|
416
|
-
# @return [Fixnum]
|
417
|
-
attr_accessor :version
|
418
|
-
|
419
|
-
# Specifies cloud audit logging configuration for this policy.
|
420
|
-
# Corresponds to the JSON property `auditConfigs`
|
421
|
-
# @return [Array<Google::Apis::SourcerepoV1::AuditConfig>]
|
422
|
-
attr_accessor :audit_configs
|
525
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is
|
526
|
+
# allowed.
|
527
|
+
# Corresponds to the JSON property `permissions`
|
528
|
+
# @return [Array<String>]
|
529
|
+
attr_accessor :permissions
|
423
530
|
|
424
531
|
def initialize(**args)
|
425
532
|
update!(**args)
|
@@ -427,18 +534,23 @@ module Google
|
|
427
534
|
|
428
535
|
# Update properties of this object
|
429
536
|
def update!(**args)
|
430
|
-
@
|
431
|
-
@etag = args[:etag] if args.key?(:etag)
|
432
|
-
@iam_owned = args[:iam_owned] if args.key?(:iam_owned)
|
433
|
-
@rules = args[:rules] if args.key?(:rules)
|
434
|
-
@version = args[:version] if args.key?(:version)
|
435
|
-
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
537
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
436
538
|
end
|
437
539
|
end
|
438
540
|
|
439
|
-
#
|
440
|
-
class
|
441
|
-
include Google::Apis::Core::Hashable
|
541
|
+
# Options for counters
|
542
|
+
class CounterOptions
|
543
|
+
include Google::Apis::Core::Hashable
|
544
|
+
|
545
|
+
# The metric to update.
|
546
|
+
# Corresponds to the JSON property `metric`
|
547
|
+
# @return [String]
|
548
|
+
attr_accessor :metric
|
549
|
+
|
550
|
+
# The field value to attribute.
|
551
|
+
# Corresponds to the JSON property `field`
|
552
|
+
# @return [String]
|
553
|
+
attr_accessor :field
|
442
554
|
|
443
555
|
def initialize(**args)
|
444
556
|
update!(**args)
|
@@ -446,22 +558,14 @@ module Google
|
|
446
558
|
|
447
559
|
# Update properties of this object
|
448
560
|
def update!(**args)
|
561
|
+
@metric = args[:metric] if args.key?(:metric)
|
562
|
+
@field = args[:field] if args.key?(:field)
|
449
563
|
end
|
450
564
|
end
|
451
565
|
|
452
|
-
#
|
453
|
-
#
|
454
|
-
# identities, if any, are exempted from logging.
|
455
|
-
# An AuditConfig must have one or more AuditLogConfigs.
|
456
|
-
# If there are AuditConfigs for both `allServices` and a specific service,
|
457
|
-
# the union of the two AuditConfigs is used for that service: the log_types
|
458
|
-
# specified in each AuditConfig are enabled, and the exempted_members in each
|
459
|
-
# AuditConfig are exempted.
|
460
|
-
# Example Policy with multiple AuditConfigs:
|
461
|
-
# `
|
462
|
-
# "audit_configs": [
|
566
|
+
# Provides the configuration for logging a type of permissions.
|
567
|
+
# Example:
|
463
568
|
# `
|
464
|
-
# "service": "allServices"
|
465
569
|
# "audit_log_configs": [
|
466
570
|
# `
|
467
571
|
# "log_type": "DATA_READ",
|
@@ -471,48 +575,22 @@ module Google
|
|
471
575
|
# `,
|
472
576
|
# `
|
473
577
|
# "log_type": "DATA_WRITE",
|
474
|
-
# `,
|
475
|
-
# `
|
476
|
-
# "log_type": "ADMIN_READ",
|
477
|
-
# `
|
478
|
-
# ]
|
479
|
-
# `,
|
480
|
-
# `
|
481
|
-
# "service": "fooservice.googleapis.com"
|
482
|
-
# "audit_log_configs": [
|
483
|
-
# `
|
484
|
-
# "log_type": "DATA_READ",
|
485
|
-
# `,
|
486
|
-
# `
|
487
|
-
# "log_type": "DATA_WRITE",
|
488
|
-
# "exempted_members": [
|
489
|
-
# "user:bar@gmail.com"
|
490
|
-
# ]
|
491
|
-
# `
|
492
|
-
# ]
|
493
578
|
# `
|
494
579
|
# ]
|
495
580
|
# `
|
496
|
-
#
|
497
|
-
#
|
498
|
-
|
499
|
-
class AuditConfig
|
581
|
+
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting
|
582
|
+
# foo@gmail.com from DATA_READ logging.
|
583
|
+
class AuditLogConfig
|
500
584
|
include Google::Apis::Core::Hashable
|
501
585
|
|
502
|
-
#
|
503
|
-
#
|
504
|
-
# `allServices` is a special value that covers all services.
|
505
|
-
# Corresponds to the JSON property `service`
|
586
|
+
# The log type that this config enables.
|
587
|
+
# Corresponds to the JSON property `logType`
|
506
588
|
# @return [String]
|
507
|
-
attr_accessor :
|
508
|
-
|
509
|
-
# The configuration for logging of each type of permission.
|
510
|
-
# Next ID: 4
|
511
|
-
# Corresponds to the JSON property `auditLogConfigs`
|
512
|
-
# @return [Array<Google::Apis::SourcerepoV1::AuditLogConfig>]
|
513
|
-
attr_accessor :audit_log_configs
|
589
|
+
attr_accessor :log_type
|
514
590
|
|
515
|
-
#
|
591
|
+
# Specifies the identities that do not cause logging for this type of
|
592
|
+
# permission.
|
593
|
+
# Follows the same format of Binding.members.
|
516
594
|
# Corresponds to the JSON property `exemptedMembers`
|
517
595
|
# @return [Array<String>]
|
518
596
|
attr_accessor :exempted_members
|
@@ -523,128 +601,56 @@ module Google
|
|
523
601
|
|
524
602
|
# Update properties of this object
|
525
603
|
def update!(**args)
|
526
|
-
@
|
527
|
-
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
604
|
+
@log_type = args[:log_type] if args.key?(:log_type)
|
528
605
|
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
529
606
|
end
|
530
607
|
end
|
531
608
|
|
532
|
-
#
|
533
|
-
class
|
609
|
+
# A rule to be applied in a Policy.
|
610
|
+
class Rule
|
534
611
|
include Google::Apis::Core::Hashable
|
535
612
|
|
536
|
-
#
|
537
|
-
#
|
538
|
-
#
|
539
|
-
#
|
540
|
-
#
|
541
|
-
#
|
542
|
-
|
543
|
-
# `
|
544
|
-
# "bindings": [
|
545
|
-
# `
|
546
|
-
# "role": "roles/owner",
|
547
|
-
# "members": [
|
548
|
-
# "user:mike@example.com",
|
549
|
-
# "group:admins@example.com",
|
550
|
-
# "domain:google.com",
|
551
|
-
# "serviceAccount:my-other-app@appspot.gserviceaccount.com",
|
552
|
-
# ]
|
553
|
-
# `,
|
554
|
-
# `
|
555
|
-
# "role": "roles/viewer",
|
556
|
-
# "members": ["user:sean@example.com"]
|
557
|
-
# `
|
558
|
-
# ]
|
559
|
-
# `
|
560
|
-
# For a description of IAM and its features, see the
|
561
|
-
# [IAM developer's guide](https://cloud.google.com/iam).
|
562
|
-
# Corresponds to the JSON property `policy`
|
563
|
-
# @return [Google::Apis::SourcerepoV1::Policy]
|
564
|
-
attr_accessor :policy
|
613
|
+
# If one or more 'not_in' clauses are specified, the rule matches
|
614
|
+
# if the PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries.
|
615
|
+
# The format for in and not_in entries is the same as for members in a
|
616
|
+
# Binding (see google/iam/v1/policy.proto).
|
617
|
+
# Corresponds to the JSON property `notIn`
|
618
|
+
# @return [Array<String>]
|
619
|
+
attr_accessor :not_in
|
565
620
|
|
566
|
-
#
|
567
|
-
#
|
568
|
-
# following default mask is used:
|
569
|
-
# paths: "bindings, etag"
|
570
|
-
# This field is only used by Cloud IAM.
|
571
|
-
# Corresponds to the JSON property `updateMask`
|
621
|
+
# Human-readable description of the rule.
|
622
|
+
# Corresponds to the JSON property `description`
|
572
623
|
# @return [String]
|
573
|
-
attr_accessor :
|
574
|
-
|
575
|
-
def initialize(**args)
|
576
|
-
update!(**args)
|
577
|
-
end
|
578
|
-
|
579
|
-
# Update properties of this object
|
580
|
-
def update!(**args)
|
581
|
-
@policy = args[:policy] if args.key?(:policy)
|
582
|
-
@update_mask = args[:update_mask] if args.key?(:update_mask)
|
583
|
-
end
|
584
|
-
end
|
585
|
-
|
586
|
-
# Write a Cloud Audit log
|
587
|
-
class CloudAuditOptions
|
588
|
-
include Google::Apis::Core::Hashable
|
624
|
+
attr_accessor :description
|
589
625
|
|
590
|
-
|
591
|
-
|
592
|
-
|
626
|
+
# Additional restrictions that must be met
|
627
|
+
# Corresponds to the JSON property `conditions`
|
628
|
+
# @return [Array<Google::Apis::SourcerepoV1::Condition>]
|
629
|
+
attr_accessor :conditions
|
593
630
|
|
594
|
-
#
|
595
|
-
|
596
|
-
|
597
|
-
|
631
|
+
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
|
632
|
+
# that match the LOG action.
|
633
|
+
# Corresponds to the JSON property `logConfig`
|
634
|
+
# @return [Array<Google::Apis::SourcerepoV1::LogConfig>]
|
635
|
+
attr_accessor :log_config
|
598
636
|
|
599
|
-
|
600
|
-
|
601
|
-
|
637
|
+
# If one or more 'in' clauses are specified, the rule matches if
|
638
|
+
# the PRINCIPAL/AUTHORITY_SELECTOR is in at least one of these entries.
|
639
|
+
# Corresponds to the JSON property `in`
|
640
|
+
# @return [Array<String>]
|
641
|
+
attr_accessor :in
|
602
642
|
|
603
|
-
#
|
604
|
-
#
|
605
|
-
#
|
606
|
-
#
|
607
|
-
# * `allAuthenticatedUsers`: A special identifier that represents anyone
|
608
|
-
# who is authenticated with a Google account or a service account.
|
609
|
-
# * `user:`emailid``: An email address that represents a specific Google
|
610
|
-
# account. For example, `alice@gmail.com` or `joe@example.com`.
|
611
|
-
# * `serviceAccount:`emailid``: An email address that represents a service
|
612
|
-
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
613
|
-
# * `group:`emailid``: An email address that represents a Google group.
|
614
|
-
# For example, `admins@example.com`.
|
615
|
-
# * `domain:`domain``: A Google Apps domain name that represents all the
|
616
|
-
# users of that domain. For example, `google.com` or `example.com`.
|
617
|
-
# Corresponds to the JSON property `members`
|
643
|
+
# A permission is a string of form '<service>.<resource type>.<verb>'
|
644
|
+
# (e.g., 'storage.buckets.list'). A value of '*' matches all permissions,
|
645
|
+
# and a verb part of '*' (e.g., 'storage.buckets.*') matches all verbs.
|
646
|
+
# Corresponds to the JSON property `permissions`
|
618
647
|
# @return [Array<String>]
|
619
|
-
attr_accessor :
|
648
|
+
attr_accessor :permissions
|
620
649
|
|
621
|
-
# Role that is assigned to `members`.
|
622
|
-
# For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
|
623
650
|
# Required
|
624
|
-
# Corresponds to the JSON property `
|
651
|
+
# Corresponds to the JSON property `action`
|
625
652
|
# @return [String]
|
626
|
-
attr_accessor :
|
627
|
-
|
628
|
-
def initialize(**args)
|
629
|
-
update!(**args)
|
630
|
-
end
|
631
|
-
|
632
|
-
# Update properties of this object
|
633
|
-
def update!(**args)
|
634
|
-
@members = args[:members] if args.key?(:members)
|
635
|
-
@role = args[:role] if args.key?(:role)
|
636
|
-
end
|
637
|
-
end
|
638
|
-
|
639
|
-
# A generic empty message that you can re-use to avoid defining duplicated
|
640
|
-
# empty messages in your APIs. A typical example is to use it as the request
|
641
|
-
# or the response type of an API method. For instance:
|
642
|
-
# service Foo `
|
643
|
-
# rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);
|
644
|
-
# `
|
645
|
-
# The JSON representation for `Empty` is empty JSON object ````.
|
646
|
-
class Empty
|
647
|
-
include Google::Apis::Core::Hashable
|
653
|
+
attr_accessor :action
|
648
654
|
|
649
655
|
def initialize(**args)
|
650
656
|
update!(**args)
|
@@ -652,33 +658,34 @@ module Google
|
|
652
658
|
|
653
659
|
# Update properties of this object
|
654
660
|
def update!(**args)
|
661
|
+
@not_in = args[:not_in] if args.key?(:not_in)
|
662
|
+
@description = args[:description] if args.key?(:description)
|
663
|
+
@conditions = args[:conditions] if args.key?(:conditions)
|
664
|
+
@log_config = args[:log_config] if args.key?(:log_config)
|
665
|
+
@in = args[:in] if args.key?(:in)
|
666
|
+
@permissions = args[:permissions] if args.key?(:permissions)
|
667
|
+
@action = args[:action] if args.key?(:action)
|
655
668
|
end
|
656
669
|
end
|
657
670
|
|
658
|
-
#
|
659
|
-
|
660
|
-
class MirrorConfig
|
671
|
+
# Specifies what kind of log the caller must write
|
672
|
+
class LogConfig
|
661
673
|
include Google::Apis::Core::Hashable
|
662
674
|
|
663
|
-
#
|
664
|
-
#
|
665
|
-
# Google
|
666
|
-
|
667
|
-
# Corresponds to the JSON property `webhookId`
|
668
|
-
# @return [String]
|
669
|
-
attr_accessor :webhook_id
|
675
|
+
# Options for counters
|
676
|
+
# Corresponds to the JSON property `counter`
|
677
|
+
# @return [Google::Apis::SourcerepoV1::CounterOptions]
|
678
|
+
attr_accessor :counter
|
670
679
|
|
671
|
-
#
|
672
|
-
#
|
673
|
-
# Google
|
674
|
-
|
675
|
-
# @return [String]
|
676
|
-
attr_accessor :deploy_key_id
|
680
|
+
# Write a Data Access (Gin) log
|
681
|
+
# Corresponds to the JSON property `dataAccess`
|
682
|
+
# @return [Google::Apis::SourcerepoV1::DataAccessOptions]
|
683
|
+
attr_accessor :data_access
|
677
684
|
|
678
|
-
#
|
679
|
-
# Corresponds to the JSON property `
|
680
|
-
# @return [
|
681
|
-
attr_accessor :
|
685
|
+
# Write a Cloud Audit log
|
686
|
+
# Corresponds to the JSON property `cloudAudit`
|
687
|
+
# @return [Google::Apis::SourcerepoV1::CloudAuditOptions]
|
688
|
+
attr_accessor :cloud_audit
|
682
689
|
|
683
690
|
def initialize(**args)
|
684
691
|
update!(**args)
|
@@ -686,9 +693,9 @@ module Google
|
|
686
693
|
|
687
694
|
# Update properties of this object
|
688
695
|
def update!(**args)
|
689
|
-
@
|
690
|
-
@
|
691
|
-
@
|
696
|
+
@counter = args[:counter] if args.key?(:counter)
|
697
|
+
@data_access = args[:data_access] if args.key?(:data_access)
|
698
|
+
@cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit)
|
692
699
|
end
|
693
700
|
end
|
694
701
|
end
|