google-api-client 0.9.pre3 → 0.9.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
@@ -25,7 +25,7 @@ module Google
|
|
25
25
|
# @see https://cloud.google.com/monitoring/v2beta2/
|
26
26
|
module CloudmonitoringV2beta2
|
27
27
|
VERSION = 'V2beta2'
|
28
|
-
REVISION = '
|
28
|
+
REVISION = '20151213'
|
29
29
|
|
30
30
|
# View and manage your data across Google Cloud Platform services
|
31
31
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
@@ -79,8 +79,7 @@ module Google
|
|
79
79
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
80
80
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
81
81
|
def create_metric_descriptor(project, metric_descriptor_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
82
|
-
|
83
|
-
command = make_simple_command(:post, path, options)
|
82
|
+
command = make_simple_command(:post, '{project}/metricDescriptors', options)
|
84
83
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation
|
85
84
|
command.request_object = metric_descriptor_object
|
86
85
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::MetricDescriptor::Representation
|
@@ -119,8 +118,7 @@ module Google
|
|
119
118
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
120
119
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
121
120
|
def delete_metric_descriptor(project, metric, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
122
|
-
|
123
|
-
command = make_simple_command(:delete, path, options)
|
121
|
+
command = make_simple_command(:delete, '{project}/metricDescriptors/{metric}', options)
|
124
122
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse::Representation
|
125
123
|
command.response_class = Google::Apis::CloudmonitoringV2beta2::DeleteMetricDescriptorResponse
|
126
124
|
command.params['project'] = project unless project.nil?
|
@@ -175,8 +173,7 @@ module Google
|
|
175
173
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
176
174
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
177
175
|
def list_metric_descriptors(project, list_metric_descriptors_request_object = nil, count: nil, page_token: nil, query: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
178
|
-
|
179
|
-
command = make_simple_command(:get, path, options)
|
176
|
+
command = make_simple_command(:get, '{project}/metricDescriptors', options)
|
180
177
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsRequest::Representation
|
181
178
|
command.request_object = list_metric_descriptors_request_object
|
182
179
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListMetricDescriptorsResponse::Representation
|
@@ -273,8 +270,7 @@ module Google
|
|
273
270
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
274
271
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
275
272
|
def list_timeseries(project, metric, youngest, list_timeseries_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
276
|
-
|
277
|
-
command = make_simple_command(:get, path, options)
|
273
|
+
command = make_simple_command(:get, '{project}/timeseries/{metric}', options)
|
278
274
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesRequest::Representation
|
279
275
|
command.request_object = list_timeseries_request_object
|
280
276
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesResponse::Representation
|
@@ -328,8 +324,7 @@ module Google
|
|
328
324
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
329
325
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
330
326
|
def write_timeseries(project, write_timeseries_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
331
|
-
|
332
|
-
command = make_simple_command(:post, path, options)
|
327
|
+
command = make_simple_command(:post, '{project}/timeseries:write', options)
|
333
328
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesRequest::Representation
|
334
329
|
command.request_object = write_timeseries_request_object
|
335
330
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::WriteTimeseriesResponse::Representation
|
@@ -423,8 +418,7 @@ module Google
|
|
423
418
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
424
419
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
425
420
|
def list_timeseries_descriptors(project, metric, youngest, list_timeseries_descriptors_request_object = nil, aggregator: nil, count: nil, labels: nil, oldest: nil, page_token: nil, timespan: nil, window: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
426
|
-
|
427
|
-
command = make_simple_command(:get, path, options)
|
421
|
+
command = make_simple_command(:get, '{project}/timeseriesDescriptors/{metric}', options)
|
428
422
|
command.request_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsRequest::Representation
|
429
423
|
command.request_object = list_timeseries_descriptors_request_object
|
430
424
|
command.response_representation = Google::Apis::CloudmonitoringV2beta2::ListTimeseriesDescriptorsResponse::Representation
|
@@ -21,15 +21,18 @@ module Google
|
|
21
21
|
# Google Cloud Resource Manager API
|
22
22
|
#
|
23
23
|
# The Google Cloud Resource Manager API provides methods for creating, reading,
|
24
|
-
# and updating
|
24
|
+
# and updating project metadata.
|
25
25
|
#
|
26
26
|
# @see https://cloud.google.com/resource-manager
|
27
27
|
module CloudresourcemanagerV1beta1
|
28
28
|
VERSION = 'V1beta1'
|
29
|
-
REVISION = '
|
29
|
+
REVISION = '20151211'
|
30
30
|
|
31
31
|
# View and manage your data across Google Cloud Platform services
|
32
32
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
33
|
+
|
34
|
+
# View your data across Google Cloud Platform services
|
35
|
+
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
33
36
|
end
|
34
37
|
end
|
35
38
|
end
|
@@ -32,22 +32,21 @@ module Google
|
|
32
32
|
# @return [String]
|
33
33
|
attr_accessor :project_number
|
34
34
|
|
35
|
-
# The unique, user-assigned ID of the
|
35
|
+
# The unique, user-assigned ID of the Project. It must be 6 to 30 lowercase
|
36
36
|
# letters, digits, or hyphens. It must start with a letter. Trailing hyphens are
|
37
37
|
# prohibited. Example: tokyo-rain-123 Read-only after creation.
|
38
38
|
# Corresponds to the JSON property `projectId`
|
39
39
|
# @return [String]
|
40
40
|
attr_accessor :project_id
|
41
41
|
|
42
|
-
# The
|
42
|
+
# The Project lifecycle state. Read-only.
|
43
43
|
# Corresponds to the JSON property `lifecycleState`
|
44
44
|
# @return [String]
|
45
45
|
attr_accessor :lifecycle_state
|
46
46
|
|
47
|
-
# The user-assigned name of the
|
48
|
-
#
|
49
|
-
#
|
50
|
-
# Project Read-write.
|
47
|
+
# The user-assigned name of the Project. It must be 4 to 30 characters. Allowed
|
48
|
+
# characters are: lowercase and uppercase letters, numbers, hyphen, single-quote,
|
49
|
+
# double-quote, space, and exclamation point. Example: My Project Read-write.
|
51
50
|
# Corresponds to the JSON property `name`
|
52
51
|
# @return [String]
|
53
52
|
attr_accessor :name
|
@@ -57,7 +56,7 @@ module Google
|
|
57
56
|
# @return [String]
|
58
57
|
attr_accessor :create_time
|
59
58
|
|
60
|
-
# The labels associated with this
|
59
|
+
# The labels associated with this Project. Label keys must be between 1 and 63
|
61
60
|
# characters long and must conform to the following regular expression: \[a-z\](\
|
62
61
|
# [-a-z0-9\]*\[a-z0-9\])?. Label values must be between 0 and 63 characters long
|
63
62
|
# and must conform to the regular expression (\[a-z\](\[-a-z0-9\]*\[a-z0-9\])?)?.
|
@@ -69,6 +68,14 @@ module Google
|
|
69
68
|
# @return [Hash<String,String>]
|
70
69
|
attr_accessor :labels
|
71
70
|
|
71
|
+
# A container to reference an id for any resource type. A `resource` in Google
|
72
|
+
# Cloud Platform is a generic term for something you (a developer) may want to
|
73
|
+
# interact with through one of our API's. Some examples are an AppEngine app, a
|
74
|
+
# Compute Engine instance, a Cloud SQL database, and so on.
|
75
|
+
# Corresponds to the JSON property `parent`
|
76
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::ResourceId]
|
77
|
+
attr_accessor :parent
|
78
|
+
|
72
79
|
def initialize(**args)
|
73
80
|
update!(**args)
|
74
81
|
end
|
@@ -81,18 +88,47 @@ module Google
|
|
81
88
|
@name = args[:name] unless args[:name].nil?
|
82
89
|
@create_time = args[:create_time] unless args[:create_time].nil?
|
83
90
|
@labels = args[:labels] unless args[:labels].nil?
|
91
|
+
@parent = args[:parent] unless args[:parent].nil?
|
92
|
+
end
|
93
|
+
end
|
94
|
+
|
95
|
+
# A container to reference an id for any resource type. A `resource` in Google
|
96
|
+
# Cloud Platform is a generic term for something you (a developer) may want to
|
97
|
+
# interact with through one of our API's. Some examples are an AppEngine app, a
|
98
|
+
# Compute Engine instance, a Cloud SQL database, and so on.
|
99
|
+
class ResourceId
|
100
|
+
include Google::Apis::Core::Hashable
|
101
|
+
|
102
|
+
# Required field representing the resource type this id is for. At present, the
|
103
|
+
# only valid type is "organization".
|
104
|
+
# Corresponds to the JSON property `type`
|
105
|
+
# @return [String]
|
106
|
+
attr_accessor :type
|
107
|
+
|
108
|
+
# Required field for the type-specific id. This should correspond to the id used
|
109
|
+
# in the type-specific API's.
|
110
|
+
# Corresponds to the JSON property `id`
|
111
|
+
# @return [String]
|
112
|
+
attr_accessor :id
|
113
|
+
|
114
|
+
def initialize(**args)
|
115
|
+
update!(**args)
|
116
|
+
end
|
117
|
+
|
118
|
+
# Update properties of this object
|
119
|
+
def update!(**args)
|
120
|
+
@type = args[:type] unless args[:type].nil?
|
121
|
+
@id = args[:id] unless args[:id].nil?
|
84
122
|
end
|
85
123
|
end
|
86
124
|
|
87
|
-
# A page of the response received from the
|
88
|
-
#
|
89
|
-
#
|
90
|
-
# This token can be used in a subsequent request to retrieve the next request
|
91
|
-
# page.
|
125
|
+
# A page of the response received from the ListProjects method. A paginated
|
126
|
+
# response where more pages are available has `next_page_token` set. This token
|
127
|
+
# can be used in a subsequent request to retrieve the next request page.
|
92
128
|
class ListProjectsResponse
|
93
129
|
include Google::Apis::Core::Hashable
|
94
130
|
|
95
|
-
# The list of
|
131
|
+
# The list of Projects that matched the list filter. This list can be paginated.
|
96
132
|
# Corresponds to the JSON property `projects`
|
97
133
|
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Project>]
|
98
134
|
attr_accessor :projects
|
@@ -102,8 +138,7 @@ module Google
|
|
102
138
|
# Feeding this value into a new list request with the `page_token` parameter
|
103
139
|
# gives the next page of the results. When `next_page_token` is not filled in,
|
104
140
|
# there is no next page and the list returned is the last page in the result set.
|
105
|
-
# Pagination tokens have a limited lifetime.
|
106
|
-
# supported; the server will not set this field.
|
141
|
+
# Pagination tokens have a limited lifetime.
|
107
142
|
# Corresponds to the JSON property `nextPageToken`
|
108
143
|
# @return [String]
|
109
144
|
attr_accessor :next_page_token
|
@@ -149,41 +184,39 @@ module Google
|
|
149
184
|
end
|
150
185
|
end
|
151
186
|
|
152
|
-
#
|
153
|
-
#
|
154
|
-
#
|
155
|
-
#
|
156
|
-
#
|
157
|
-
#
|
158
|
-
#
|
159
|
-
#
|
160
|
-
#
|
161
|
-
#
|
162
|
-
# roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com",
|
163
|
-
# "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts.
|
164
|
-
# com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` `
|
165
|
-
# ``
|
187
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to specify
|
188
|
+
# access control policies for Cloud Platform resources. A `Policy` consists of a
|
189
|
+
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
|
190
|
+
# the members can be user accounts, Google groups, Google domains, and service
|
191
|
+
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
|
192
|
+
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
|
193
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
|
194
|
+
# appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
|
195
|
+
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
|
196
|
+
# IAM developer's guide](https://cloud.google.com/iam).
|
166
197
|
class Policy
|
167
198
|
include Google::Apis::Core::Hashable
|
168
199
|
|
169
|
-
#
|
170
|
-
# etag. The default version is 0.
|
200
|
+
# Version of the `Policy`. The default version is 0.
|
171
201
|
# Corresponds to the JSON property `version`
|
172
202
|
# @return [Fixnum]
|
173
203
|
attr_accessor :version
|
174
204
|
|
175
|
-
#
|
176
|
-
#
|
205
|
+
# Associates a list of `members` to a `role`. Multiple `bindings` must not be
|
206
|
+
# specified for the same `role`. `bindings` with no members will result in an
|
207
|
+
# error.
|
177
208
|
# Corresponds to the JSON property `bindings`
|
178
209
|
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Binding>]
|
179
210
|
attr_accessor :bindings
|
180
211
|
|
181
|
-
#
|
182
|
-
#
|
183
|
-
#
|
184
|
-
|
185
|
-
|
186
|
-
#
|
212
|
+
# `etag` is used for optimistic concurrency control as a way to help prevent
|
213
|
+
# simultaneous updates of a policy from overwriting each other. It is strongly
|
214
|
+
# suggested that systems make use of the `etag` in the read-modify-write cycle
|
215
|
+
# to perform policy updates in order to avoid race conditions: An `etag` is
|
216
|
+
# returned in the response to `getIamPolicy`, and systems are expected to put
|
217
|
+
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
218
|
+
# applied to the same version of the policy. If no `etag` is provided in the
|
219
|
+
# call to `setIamPolicy`, then the existing policy is overwritten blindly.
|
187
220
|
# Corresponds to the JSON property `etag`
|
188
221
|
# @return [String]
|
189
222
|
attr_accessor :etag
|
@@ -196,29 +229,32 @@ module Google
|
|
196
229
|
def update!(**args)
|
197
230
|
@version = args[:version] unless args[:version].nil?
|
198
231
|
@bindings = args[:bindings] unless args[:bindings].nil?
|
199
|
-
@rules = args[:rules] unless args[:rules].nil?
|
200
232
|
@etag = args[:etag] unless args[:etag].nil?
|
201
233
|
end
|
202
234
|
end
|
203
235
|
|
204
|
-
# Associates members with
|
236
|
+
# Associates `members` with a `role`.
|
205
237
|
class Binding
|
206
238
|
include Google::Apis::Core::Hashable
|
207
239
|
|
208
|
-
#
|
209
|
-
#
|
240
|
+
# Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor`
|
241
|
+
# , or `roles/owner`. Required
|
210
242
|
# Corresponds to the JSON property `role`
|
211
243
|
# @return [String]
|
212
244
|
attr_accessor :role
|
213
245
|
|
214
|
-
#
|
215
|
-
#
|
216
|
-
#
|
217
|
-
#
|
218
|
-
#
|
219
|
-
#
|
220
|
-
#
|
221
|
-
#
|
246
|
+
# Specifies the identities requesting access for a Cloud Platform resource. `
|
247
|
+
# members` can have the following values: * `allUsers`: A special identifier
|
248
|
+
# that represents anyone who is on the internet; with or without a Google
|
249
|
+
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
250
|
+
# anyone who is authenticated with a Google account or a service account. * `
|
251
|
+
# user:`emailid``: An email address that represents a specific Google account.
|
252
|
+
# For example, `alice@gmail.com` or `joe@example.com`. * `serviceAccount:`
|
253
|
+
# emailid``: An email address that represents a service account. For example, `
|
254
|
+
# my-other-app@appspot.gserviceaccount.com`. * `group:`emailid``: An email
|
255
|
+
# address that represents a Google group. For example, `admins@example.com`. * `
|
256
|
+
# domain:`domain``: A Google Apps domain name that represents all the users of
|
257
|
+
# that domain. For example, `google.com` or `example.com`.
|
222
258
|
# Corresponds to the JSON property `members`
|
223
259
|
# @return [Array<String>]
|
224
260
|
attr_accessor :members
|
@@ -234,49 +270,23 @@ module Google
|
|
234
270
|
end
|
235
271
|
end
|
236
272
|
|
237
|
-
#
|
238
|
-
class
|
273
|
+
# Request message for `SetIamPolicy` method.
|
274
|
+
class SetIamPolicyRequest
|
239
275
|
include Google::Apis::Core::Hashable
|
240
276
|
|
241
|
-
#
|
242
|
-
#
|
243
|
-
#
|
244
|
-
|
245
|
-
|
246
|
-
#
|
247
|
-
#
|
248
|
-
#
|
249
|
-
#
|
250
|
-
#
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
# Corresponds to the JSON property `action`
|
255
|
-
# @return [String]
|
256
|
-
attr_accessor :action
|
257
|
-
|
258
|
-
# The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is in this set of entries.
|
259
|
-
# Corresponds to the JSON property `in`
|
260
|
-
# @return [Array<String>]
|
261
|
-
attr_accessor :in
|
262
|
-
|
263
|
-
# The rule matches if the PRINCIPAL/AUTHORITY_SELECTOR is not in this set of
|
264
|
-
# entries. The formation for in and not_in entries is the same as members in a
|
265
|
-
# Binding above.
|
266
|
-
# Corresponds to the JSON property `notIn`
|
267
|
-
# @return [Array<String>]
|
268
|
-
attr_accessor :not_in
|
269
|
-
|
270
|
-
# Additional restrictions that must be met
|
271
|
-
# Corresponds to the JSON property `conditions`
|
272
|
-
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Condition>]
|
273
|
-
attr_accessor :conditions
|
274
|
-
|
275
|
-
# The config returned to callers of tech.iam.IAM.CheckPolicy for any entries
|
276
|
-
# that match the LOG action.
|
277
|
-
# Corresponds to the JSON property `logConfig`
|
278
|
-
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::LogConfig>]
|
279
|
-
attr_accessor :log_config
|
277
|
+
# Defines an Identity and Access Management (IAM) policy. It is used to specify
|
278
|
+
# access control policies for Cloud Platform resources. A `Policy` consists of a
|
279
|
+
# list of `bindings`. A `Binding` binds a list of `members` to a `role`, where
|
280
|
+
# the members can be user accounts, Google groups, Google domains, and service
|
281
|
+
# accounts. A `role` is a named list of permissions defined by IAM. **Example** `
|
282
|
+
# "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", "
|
283
|
+
# group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@
|
284
|
+
# appspot.gserviceaccount.com"] `, ` "role": "roles/viewer", "members": ["user:
|
285
|
+
# sean@example.com"] ` ] ` For a description of IAM and its features, see the [
|
286
|
+
# IAM developer's guide](https://cloud.google.com/iam).
|
287
|
+
# Corresponds to the JSON property `policy`
|
288
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
289
|
+
attr_accessor :policy
|
280
290
|
|
281
291
|
def initialize(**args)
|
282
292
|
update!(**args)
|
@@ -284,50 +294,19 @@ module Google
|
|
284
294
|
|
285
295
|
# Update properties of this object
|
286
296
|
def update!(**args)
|
287
|
-
@
|
288
|
-
@permissions = args[:permissions] unless args[:permissions].nil?
|
289
|
-
@action = args[:action] unless args[:action].nil?
|
290
|
-
@in = args[:in] unless args[:in].nil?
|
291
|
-
@not_in = args[:not_in] unless args[:not_in].nil?
|
292
|
-
@conditions = args[:conditions] unless args[:conditions].nil?
|
293
|
-
@log_config = args[:log_config] unless args[:log_config].nil?
|
297
|
+
@policy = args[:policy] unless args[:policy].nil?
|
294
298
|
end
|
295
299
|
end
|
296
300
|
|
297
|
-
#
|
298
|
-
class
|
301
|
+
# Request message for `TestIamPermissions` method.
|
302
|
+
class TestIamPermissionsRequest
|
299
303
|
include Google::Apis::Core::Hashable
|
300
304
|
|
301
|
-
#
|
302
|
-
#
|
303
|
-
#
|
304
|
-
attr_accessor :iam
|
305
|
-
|
306
|
-
# Trusted attributes supplied by any service that owns resources and uses the
|
307
|
-
# IAM system for access control.
|
308
|
-
# Corresponds to the JSON property `sys`
|
309
|
-
# @return [String]
|
310
|
-
attr_accessor :sys
|
311
|
-
|
312
|
-
# Trusted attributes discharged by the service.
|
313
|
-
# Corresponds to the JSON property `svc`
|
314
|
-
# @return [String]
|
315
|
-
attr_accessor :svc
|
316
|
-
|
317
|
-
# An operator to apply the subject with.
|
318
|
-
# Corresponds to the JSON property `op`
|
319
|
-
# @return [String]
|
320
|
-
attr_accessor :op
|
321
|
-
|
322
|
-
# The object of the condition. Exactly one of these must be set.
|
323
|
-
# Corresponds to the JSON property `value`
|
324
|
-
# @return [String]
|
325
|
-
attr_accessor :value
|
326
|
-
|
327
|
-
# The objects of the condition. This is mutually exclusive with 'value'.
|
328
|
-
# Corresponds to the JSON property `values`
|
305
|
+
# The set of permissions to check for the `resource`. Permissions with wildcards
|
306
|
+
# (such as '*' or 'storage.*') are not allowed.
|
307
|
+
# Corresponds to the JSON property `permissions`
|
329
308
|
# @return [Array<String>]
|
330
|
-
attr_accessor :
|
309
|
+
attr_accessor :permissions
|
331
310
|
|
332
311
|
def initialize(**args)
|
333
312
|
update!(**args)
|
@@ -335,44 +314,18 @@ module Google
|
|
335
314
|
|
336
315
|
# Update properties of this object
|
337
316
|
def update!(**args)
|
338
|
-
@
|
339
|
-
@sys = args[:sys] unless args[:sys].nil?
|
340
|
-
@svc = args[:svc] unless args[:svc].nil?
|
341
|
-
@op = args[:op] unless args[:op].nil?
|
342
|
-
@value = args[:value] unless args[:value].nil?
|
343
|
-
@values = args[:values] unless args[:values].nil?
|
317
|
+
@permissions = args[:permissions] unless args[:permissions].nil?
|
344
318
|
end
|
345
319
|
end
|
346
320
|
|
347
|
-
#
|
348
|
-
|
349
|
-
# , generally be lowercase-only, and end in "_count". Field names should not
|
350
|
-
# contain an initial slash. The actual exported metric names will have "/iam/
|
351
|
-
# policy" prepended. Field names correspond to IAM request parameters and field
|
352
|
-
# values are their respective values. At present only "iam_principal",
|
353
|
-
# corresponding to IAMContext.principal, is supported. Examples: counter `
|
354
|
-
# metric: "/debug_access_count" field: "iam_principal" ` ==> increment counter /
|
355
|
-
# iam/policy/backend_debug_access_count `iam_principal=[value of IAMContext.
|
356
|
-
# principal]` At this time we do not support: * multiple field names (though
|
357
|
-
# this may be supported in the future) * decrementing the counter * incrementing
|
358
|
-
# it by anything other than 1
|
359
|
-
class LogConfig
|
321
|
+
# Response message for `TestIamPermissions` method.
|
322
|
+
class TestIamPermissionsResponse
|
360
323
|
include Google::Apis::Core::Hashable
|
361
324
|
|
362
|
-
#
|
363
|
-
# Corresponds to the JSON property `
|
364
|
-
# @return [
|
365
|
-
attr_accessor :
|
366
|
-
|
367
|
-
# Write a Data Access (Gin) log
|
368
|
-
# Corresponds to the JSON property `dataAccess`
|
369
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::DataAccessOptions]
|
370
|
-
attr_accessor :data_access
|
371
|
-
|
372
|
-
# Write a Cloud Audit log
|
373
|
-
# Corresponds to the JSON property `cloudAudit`
|
374
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::CloudAuditOptions]
|
375
|
-
attr_accessor :cloud_audit
|
325
|
+
# A subset of `TestPermissionsRequest.permissions` that the caller is allowed.
|
326
|
+
# Corresponds to the JSON property `permissions`
|
327
|
+
# @return [Array<String>]
|
328
|
+
attr_accessor :permissions
|
376
329
|
|
377
330
|
def initialize(**args)
|
378
331
|
update!(**args)
|
@@ -380,53 +333,27 @@ module Google
|
|
380
333
|
|
381
334
|
# Update properties of this object
|
382
335
|
def update!(**args)
|
383
|
-
@
|
384
|
-
@data_access = args[:data_access] unless args[:data_access].nil?
|
385
|
-
@cloud_audit = args[:cloud_audit] unless args[:cloud_audit].nil?
|
336
|
+
@permissions = args[:permissions] unless args[:permissions].nil?
|
386
337
|
end
|
387
338
|
end
|
388
339
|
|
389
|
-
#
|
390
|
-
class
|
340
|
+
# The response returned from the `ListOrganizations` method.
|
341
|
+
class ListOrganizationsResponse
|
391
342
|
include Google::Apis::Core::Hashable
|
392
343
|
|
393
|
-
# The
|
394
|
-
# Corresponds to the JSON property `
|
395
|
-
# @return [
|
396
|
-
attr_accessor :
|
344
|
+
# The list of Organizations that matched the list query, possibly paginated.
|
345
|
+
# Corresponds to the JSON property `organizations`
|
346
|
+
# @return [Array<Google::Apis::CloudresourcemanagerV1beta1::Organization>]
|
347
|
+
attr_accessor :organizations
|
397
348
|
|
398
|
-
#
|
399
|
-
#
|
349
|
+
# A pagination token to be used to retrieve the next page of results. If the
|
350
|
+
# result is too large to fit within the page size specified in the request, this
|
351
|
+
# field will be set with a token that can be used to fetch the next page of
|
352
|
+
# results. If this field is empty, it indicates that this response contains the
|
353
|
+
# last page of results.
|
354
|
+
# Corresponds to the JSON property `nextPageToken`
|
400
355
|
# @return [String]
|
401
|
-
attr_accessor :
|
402
|
-
|
403
|
-
def initialize(**args)
|
404
|
-
update!(**args)
|
405
|
-
end
|
406
|
-
|
407
|
-
# Update properties of this object
|
408
|
-
def update!(**args)
|
409
|
-
@metric = args[:metric] unless args[:metric].nil?
|
410
|
-
@field = args[:field] unless args[:field].nil?
|
411
|
-
end
|
412
|
-
end
|
413
|
-
|
414
|
-
# Write a Data Access (Gin) log
|
415
|
-
class DataAccessOptions
|
416
|
-
include Google::Apis::Core::Hashable
|
417
|
-
|
418
|
-
def initialize(**args)
|
419
|
-
update!(**args)
|
420
|
-
end
|
421
|
-
|
422
|
-
# Update properties of this object
|
423
|
-
def update!(**args)
|
424
|
-
end
|
425
|
-
end
|
426
|
-
|
427
|
-
# Write a Cloud Audit log
|
428
|
-
class CloudAuditOptions
|
429
|
-
include Google::Apis::Core::Hashable
|
356
|
+
attr_accessor :next_page_token
|
430
357
|
|
431
358
|
def initialize(**args)
|
432
359
|
update!(**args)
|
@@ -434,50 +361,41 @@ module Google
|
|
434
361
|
|
435
362
|
# Update properties of this object
|
436
363
|
def update!(**args)
|
364
|
+
@organizations = args[:organizations] unless args[:organizations].nil?
|
365
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
437
366
|
end
|
438
367
|
end
|
439
368
|
|
440
|
-
#
|
441
|
-
|
369
|
+
# The root node in the resource hierarchy to which a particular entity's (e.g.,
|
370
|
+
# company) resources belong.
|
371
|
+
class Organization
|
442
372
|
include Google::Apis::Core::Hashable
|
443
373
|
|
444
|
-
#
|
445
|
-
#
|
446
|
-
#
|
447
|
-
#
|
448
|
-
|
449
|
-
# permissions, defined by IAM. The definition of a role is outside the policy. A
|
450
|
-
# permission check first determines the roles that include the specified
|
451
|
-
# permission, and then determines if the principal specified is a member of a
|
452
|
-
# binding to at least one of these roles. The membership check is recursive when
|
453
|
-
# a group is bound to a role. Policy examples: ``` ` "bindings": [ ` "role": "
|
454
|
-
# roles/owner", "members": [ "user:mike@example.com", "group:admins@example.com",
|
455
|
-
# "domain:google.com", "serviceAccount:frontend@example.iam.gserviceaccounts.
|
456
|
-
# com"] `, ` "role": "roles/viewer", "members": ["user:sean@example.com"] ` ] ` `
|
457
|
-
# ``
|
458
|
-
# Corresponds to the JSON property `policy`
|
459
|
-
# @return [Google::Apis::CloudresourcemanagerV1beta1::Policy]
|
460
|
-
attr_accessor :policy
|
461
|
-
|
462
|
-
def initialize(**args)
|
463
|
-
update!(**args)
|
464
|
-
end
|
465
|
-
|
466
|
-
# Update properties of this object
|
467
|
-
def update!(**args)
|
468
|
-
@policy = args[:policy] unless args[:policy].nil?
|
469
|
-
end
|
470
|
-
end
|
471
|
-
|
472
|
-
# Request message for `TestIamPermissions` method.
|
473
|
-
class TestIamPermissionsRequest
|
474
|
-
include Google::Apis::Core::Hashable
|
374
|
+
# An immutable id for the Organization that is assigned on creation. This should
|
375
|
+
# be omitted when creating a new Organization. This field is read-only.
|
376
|
+
# Corresponds to the JSON property `organizationId`
|
377
|
+
# @return [String]
|
378
|
+
attr_accessor :organization_id
|
475
379
|
|
476
|
-
#
|
477
|
-
#
|
478
|
-
# Corresponds to the JSON property `
|
479
|
-
# @return [
|
480
|
-
attr_accessor :
|
380
|
+
# A friendly string to be used to refer to the Organization in the UI. This
|
381
|
+
# field is required.
|
382
|
+
# Corresponds to the JSON property `displayName`
|
383
|
+
# @return [String]
|
384
|
+
attr_accessor :display_name
|
385
|
+
|
386
|
+
# The entity that owns an Organization. The lifetime of the Organization and all
|
387
|
+
# of its descendants are bound to the `OrganizationOwner`. If the `
|
388
|
+
# OrganizationOwner` is deleted, the Organization and all its descendants will
|
389
|
+
# be deleted.
|
390
|
+
# Corresponds to the JSON property `owner`
|
391
|
+
# @return [Google::Apis::CloudresourcemanagerV1beta1::OrganizationOwner]
|
392
|
+
attr_accessor :owner
|
393
|
+
|
394
|
+
# Timestamp when the Organization was created. Assigned by the server. @
|
395
|
+
# OutputOnly
|
396
|
+
# Corresponds to the JSON property `creationTime`
|
397
|
+
# @return [String]
|
398
|
+
attr_accessor :creation_time
|
481
399
|
|
482
400
|
def initialize(**args)
|
483
401
|
update!(**args)
|
@@ -485,18 +403,24 @@ module Google
|
|
485
403
|
|
486
404
|
# Update properties of this object
|
487
405
|
def update!(**args)
|
488
|
-
@
|
406
|
+
@organization_id = args[:organization_id] unless args[:organization_id].nil?
|
407
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
408
|
+
@owner = args[:owner] unless args[:owner].nil?
|
409
|
+
@creation_time = args[:creation_time] unless args[:creation_time].nil?
|
489
410
|
end
|
490
411
|
end
|
491
412
|
|
492
|
-
#
|
493
|
-
|
413
|
+
# The entity that owns an Organization. The lifetime of the Organization and all
|
414
|
+
# of its descendants are bound to the `OrganizationOwner`. If the `
|
415
|
+
# OrganizationOwner` is deleted, the Organization and all its descendants will
|
416
|
+
# be deleted.
|
417
|
+
class OrganizationOwner
|
494
418
|
include Google::Apis::Core::Hashable
|
495
419
|
|
496
|
-
#
|
497
|
-
# Corresponds to the JSON property `
|
498
|
-
# @return [
|
499
|
-
attr_accessor :
|
420
|
+
# The Google for Work customer id used in the Directory API.
|
421
|
+
# Corresponds to the JSON property `directoryCustomerId`
|
422
|
+
# @return [String]
|
423
|
+
attr_accessor :directory_customer_id
|
500
424
|
|
501
425
|
def initialize(**args)
|
502
426
|
update!(**args)
|
@@ -504,7 +428,7 @@ module Google
|
|
504
428
|
|
505
429
|
# Update properties of this object
|
506
430
|
def update!(**args)
|
507
|
-
@
|
431
|
+
@directory_customer_id = args[:directory_customer_id] unless args[:directory_customer_id].nil?
|
508
432
|
end
|
509
433
|
end
|
510
434
|
end
|