google-api-client 0.9.pre3 → 0.9.pre4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
@@ -0,0 +1,43 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'google/apis/clouduseraccounts_beta/service.rb'
|
16
|
+
require 'google/apis/clouduseraccounts_beta/classes.rb'
|
17
|
+
require 'google/apis/clouduseraccounts_beta/representations.rb'
|
18
|
+
|
19
|
+
module Google
|
20
|
+
module Apis
|
21
|
+
# Cloud User Accounts API
|
22
|
+
#
|
23
|
+
# API for the Google Cloud User Accounts service.
|
24
|
+
#
|
25
|
+
# @see https://cloud.google.com/compute/docs/access/user-accounts/api/latest/
|
26
|
+
module ClouduseraccountsBeta
|
27
|
+
VERSION = 'Beta'
|
28
|
+
REVISION = '20150924'
|
29
|
+
|
30
|
+
# View and manage your data across Google Cloud Platform services
|
31
|
+
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
32
|
+
|
33
|
+
# View your data across Google Cloud Platform services
|
34
|
+
AUTH_CLOUD_PLATFORM_READ_ONLY = 'https://www.googleapis.com/auth/cloud-platform.read-only'
|
35
|
+
|
36
|
+
# Manage your Google Cloud User Accounts
|
37
|
+
AUTH_CLOUD_USERACCOUNTS = 'https://www.googleapis.com/auth/cloud.useraccounts'
|
38
|
+
|
39
|
+
# View your Google Cloud User Accounts
|
40
|
+
AUTH_CLOUD_USERACCOUNTS_READONLY = 'https://www.googleapis.com/auth/cloud.useraccounts.readonly'
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
@@ -0,0 +1,823 @@
|
|
1
|
+
# Copyright 2015 Google Inc.
|
2
|
+
#
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
|
+
# you may not use this file except in compliance with the License.
|
5
|
+
# You may obtain a copy of the License at
|
6
|
+
#
|
7
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
8
|
+
#
|
9
|
+
# Unless required by applicable law or agreed to in writing, software
|
10
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
11
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
12
|
+
# See the License for the specific language governing permissions and
|
13
|
+
# limitations under the License.
|
14
|
+
|
15
|
+
require 'date'
|
16
|
+
require 'google/apis/core/base_service'
|
17
|
+
require 'google/apis/core/json_representation'
|
18
|
+
require 'google/apis/core/hashable'
|
19
|
+
require 'google/apis/errors'
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Apis
|
23
|
+
module ClouduseraccountsBeta
|
24
|
+
|
25
|
+
# A list of authorized public keys for a user account.
|
26
|
+
class AuthorizedKeysView
|
27
|
+
include Google::Apis::Core::Hashable
|
28
|
+
|
29
|
+
# [Output Only] The list of authorized public keys in SSH format.
|
30
|
+
# Corresponds to the JSON property `keys`
|
31
|
+
# @return [Array<String>]
|
32
|
+
attr_accessor :keys
|
33
|
+
|
34
|
+
# [Output Only] Whether the user has the ability to elevate on the instance that
|
35
|
+
# requested the authorized keys.
|
36
|
+
# Corresponds to the JSON property `sudoer`
|
37
|
+
# @return [Boolean]
|
38
|
+
attr_accessor :sudoer
|
39
|
+
alias_method :sudoer?, :sudoer
|
40
|
+
|
41
|
+
def initialize(**args)
|
42
|
+
update!(**args)
|
43
|
+
end
|
44
|
+
|
45
|
+
# Update properties of this object
|
46
|
+
def update!(**args)
|
47
|
+
@keys = args[:keys] unless args[:keys].nil?
|
48
|
+
@sudoer = args[:sudoer] unless args[:sudoer].nil?
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
# A Group resource.
|
53
|
+
class Group
|
54
|
+
include Google::Apis::Core::Hashable
|
55
|
+
|
56
|
+
# [Output Only] Creation timestamp in RFC3339 text format.
|
57
|
+
# Corresponds to the JSON property `creationTimestamp`
|
58
|
+
# @return [String]
|
59
|
+
attr_accessor :creation_timestamp
|
60
|
+
|
61
|
+
# An optional textual description of the resource; provided by the client when
|
62
|
+
# the resource is created.
|
63
|
+
# Corresponds to the JSON property `description`
|
64
|
+
# @return [String]
|
65
|
+
attr_accessor :description
|
66
|
+
|
67
|
+
# [Output Only] Unique identifier for the resource; defined by the server.
|
68
|
+
# Corresponds to the JSON property `id`
|
69
|
+
# @return [String]
|
70
|
+
attr_accessor :id
|
71
|
+
|
72
|
+
# [Output Only] Type of the resource. Always clouduseraccounts#group for groups.
|
73
|
+
# Corresponds to the JSON property `kind`
|
74
|
+
# @return [String]
|
75
|
+
attr_accessor :kind
|
76
|
+
|
77
|
+
# [Output Only] A list of URLs to User resources who belong to the group. Users
|
78
|
+
# may only be members of groups in the same project.
|
79
|
+
# Corresponds to the JSON property `members`
|
80
|
+
# @return [Array<String>]
|
81
|
+
attr_accessor :members
|
82
|
+
|
83
|
+
# Name of the resource; provided by the client when the resource is created.
|
84
|
+
# Corresponds to the JSON property `name`
|
85
|
+
# @return [String]
|
86
|
+
attr_accessor :name
|
87
|
+
|
88
|
+
# [Output Only] Server defined URL for the resource.
|
89
|
+
# Corresponds to the JSON property `selfLink`
|
90
|
+
# @return [String]
|
91
|
+
attr_accessor :self_link
|
92
|
+
|
93
|
+
def initialize(**args)
|
94
|
+
update!(**args)
|
95
|
+
end
|
96
|
+
|
97
|
+
# Update properties of this object
|
98
|
+
def update!(**args)
|
99
|
+
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
|
100
|
+
@description = args[:description] unless args[:description].nil?
|
101
|
+
@id = args[:id] unless args[:id].nil?
|
102
|
+
@kind = args[:kind] unless args[:kind].nil?
|
103
|
+
@members = args[:members] unless args[:members].nil?
|
104
|
+
@name = args[:name] unless args[:name].nil?
|
105
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
#
|
110
|
+
class GroupList
|
111
|
+
include Google::Apis::Core::Hashable
|
112
|
+
|
113
|
+
# [Output Only] Unique identifier for the resource; defined by the server.
|
114
|
+
# Corresponds to the JSON property `id`
|
115
|
+
# @return [String]
|
116
|
+
attr_accessor :id
|
117
|
+
|
118
|
+
# [Output Only] A list of Group resources.
|
119
|
+
# Corresponds to the JSON property `items`
|
120
|
+
# @return [Array<Google::Apis::ClouduseraccountsBeta::Group>]
|
121
|
+
attr_accessor :items
|
122
|
+
|
123
|
+
# [Output Only] Type of resource. Always clouduseraccounts#groupList for lists
|
124
|
+
# of groups.
|
125
|
+
# Corresponds to the JSON property `kind`
|
126
|
+
# @return [String]
|
127
|
+
attr_accessor :kind
|
128
|
+
|
129
|
+
# [Output Only] A token used to continue a truncated list request.
|
130
|
+
# Corresponds to the JSON property `nextPageToken`
|
131
|
+
# @return [String]
|
132
|
+
attr_accessor :next_page_token
|
133
|
+
|
134
|
+
# [Output Only] Server defined URL for this resource.
|
135
|
+
# Corresponds to the JSON property `selfLink`
|
136
|
+
# @return [String]
|
137
|
+
attr_accessor :self_link
|
138
|
+
|
139
|
+
def initialize(**args)
|
140
|
+
update!(**args)
|
141
|
+
end
|
142
|
+
|
143
|
+
# Update properties of this object
|
144
|
+
def update!(**args)
|
145
|
+
@id = args[:id] unless args[:id].nil?
|
146
|
+
@items = args[:items] unless args[:items].nil?
|
147
|
+
@kind = args[:kind] unless args[:kind].nil?
|
148
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
149
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
150
|
+
end
|
151
|
+
end
|
152
|
+
|
153
|
+
#
|
154
|
+
class GroupsAddMemberRequest
|
155
|
+
include Google::Apis::Core::Hashable
|
156
|
+
|
157
|
+
# Fully-qualified URLs of the User resources to add.
|
158
|
+
# Corresponds to the JSON property `users`
|
159
|
+
# @return [Array<String>]
|
160
|
+
attr_accessor :users
|
161
|
+
|
162
|
+
def initialize(**args)
|
163
|
+
update!(**args)
|
164
|
+
end
|
165
|
+
|
166
|
+
# Update properties of this object
|
167
|
+
def update!(**args)
|
168
|
+
@users = args[:users] unless args[:users].nil?
|
169
|
+
end
|
170
|
+
end
|
171
|
+
|
172
|
+
#
|
173
|
+
class GroupsRemoveMemberRequest
|
174
|
+
include Google::Apis::Core::Hashable
|
175
|
+
|
176
|
+
# Fully-qualified URLs of the User resources to remove.
|
177
|
+
# Corresponds to the JSON property `users`
|
178
|
+
# @return [Array<String>]
|
179
|
+
attr_accessor :users
|
180
|
+
|
181
|
+
def initialize(**args)
|
182
|
+
update!(**args)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Update properties of this object
|
186
|
+
def update!(**args)
|
187
|
+
@users = args[:users] unless args[:users].nil?
|
188
|
+
end
|
189
|
+
end
|
190
|
+
|
191
|
+
# A list of all Linux accounts for this project. This API is only used by
|
192
|
+
# Compute Engine virtual machines to get information about user accounts for a
|
193
|
+
# project or instance. Linux resources are read-only views into users and groups
|
194
|
+
# managed by the Compute Engine Accounts API.
|
195
|
+
class LinuxAccountViews
|
196
|
+
include Google::Apis::Core::Hashable
|
197
|
+
|
198
|
+
# [Output Only] A list of all groups within a project.
|
199
|
+
# Corresponds to the JSON property `groupViews`
|
200
|
+
# @return [Array<Google::Apis::ClouduseraccountsBeta::LinuxGroupView>]
|
201
|
+
attr_accessor :group_views
|
202
|
+
|
203
|
+
# [Output Only] Type of the resource. Always clouduseraccounts#linuxAccountViews
|
204
|
+
# for Linux resources.
|
205
|
+
# Corresponds to the JSON property `kind`
|
206
|
+
# @return [String]
|
207
|
+
attr_accessor :kind
|
208
|
+
|
209
|
+
# [Output Only] A list of all users within a project.
|
210
|
+
# Corresponds to the JSON property `userViews`
|
211
|
+
# @return [Array<Google::Apis::ClouduseraccountsBeta::LinuxUserView>]
|
212
|
+
attr_accessor :user_views
|
213
|
+
|
214
|
+
def initialize(**args)
|
215
|
+
update!(**args)
|
216
|
+
end
|
217
|
+
|
218
|
+
# Update properties of this object
|
219
|
+
def update!(**args)
|
220
|
+
@group_views = args[:group_views] unless args[:group_views].nil?
|
221
|
+
@kind = args[:kind] unless args[:kind].nil?
|
222
|
+
@user_views = args[:user_views] unless args[:user_views].nil?
|
223
|
+
end
|
224
|
+
end
|
225
|
+
|
226
|
+
#
|
227
|
+
class LinuxGetAuthorizedKeysViewResponse
|
228
|
+
include Google::Apis::Core::Hashable
|
229
|
+
|
230
|
+
# A list of authorized public keys for a user account.
|
231
|
+
# Corresponds to the JSON property `resource`
|
232
|
+
# @return [Google::Apis::ClouduseraccountsBeta::AuthorizedKeysView]
|
233
|
+
attr_accessor :resource
|
234
|
+
|
235
|
+
def initialize(**args)
|
236
|
+
update!(**args)
|
237
|
+
end
|
238
|
+
|
239
|
+
# Update properties of this object
|
240
|
+
def update!(**args)
|
241
|
+
@resource = args[:resource] unless args[:resource].nil?
|
242
|
+
end
|
243
|
+
end
|
244
|
+
|
245
|
+
#
|
246
|
+
class LinuxGetLinuxAccountViewsResponse
|
247
|
+
include Google::Apis::Core::Hashable
|
248
|
+
|
249
|
+
# A list of all Linux accounts for this project. This API is only used by
|
250
|
+
# Compute Engine virtual machines to get information about user accounts for a
|
251
|
+
# project or instance. Linux resources are read-only views into users and groups
|
252
|
+
# managed by the Compute Engine Accounts API.
|
253
|
+
# Corresponds to the JSON property `resource`
|
254
|
+
# @return [Google::Apis::ClouduseraccountsBeta::LinuxAccountViews]
|
255
|
+
attr_accessor :resource
|
256
|
+
|
257
|
+
def initialize(**args)
|
258
|
+
update!(**args)
|
259
|
+
end
|
260
|
+
|
261
|
+
# Update properties of this object
|
262
|
+
def update!(**args)
|
263
|
+
@resource = args[:resource] unless args[:resource].nil?
|
264
|
+
end
|
265
|
+
end
|
266
|
+
|
267
|
+
# A detailed view of a Linux group.
|
268
|
+
class LinuxGroupView
|
269
|
+
include Google::Apis::Core::Hashable
|
270
|
+
|
271
|
+
# [Output Only] The Group ID.
|
272
|
+
# Corresponds to the JSON property `gid`
|
273
|
+
# @return [Fixnum]
|
274
|
+
attr_accessor :gid
|
275
|
+
|
276
|
+
# [Output Only] Group name.
|
277
|
+
# Corresponds to the JSON property `groupName`
|
278
|
+
# @return [String]
|
279
|
+
attr_accessor :group_name
|
280
|
+
|
281
|
+
# [Output Only] List of user accounts that belong to the group.
|
282
|
+
# Corresponds to the JSON property `members`
|
283
|
+
# @return [Array<String>]
|
284
|
+
attr_accessor :members
|
285
|
+
|
286
|
+
def initialize(**args)
|
287
|
+
update!(**args)
|
288
|
+
end
|
289
|
+
|
290
|
+
# Update properties of this object
|
291
|
+
def update!(**args)
|
292
|
+
@gid = args[:gid] unless args[:gid].nil?
|
293
|
+
@group_name = args[:group_name] unless args[:group_name].nil?
|
294
|
+
@members = args[:members] unless args[:members].nil?
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
# A detailed view of a Linux user account.
|
299
|
+
class LinuxUserView
|
300
|
+
include Google::Apis::Core::Hashable
|
301
|
+
|
302
|
+
# [Output Only] The GECOS (user information) entry for this account.
|
303
|
+
# Corresponds to the JSON property `gecos`
|
304
|
+
# @return [String]
|
305
|
+
attr_accessor :gecos
|
306
|
+
|
307
|
+
# [Output Only] User's default group ID.
|
308
|
+
# Corresponds to the JSON property `gid`
|
309
|
+
# @return [Fixnum]
|
310
|
+
attr_accessor :gid
|
311
|
+
|
312
|
+
# [Output Only] The path to the home directory for this account.
|
313
|
+
# Corresponds to the JSON property `homeDirectory`
|
314
|
+
# @return [String]
|
315
|
+
attr_accessor :home_directory
|
316
|
+
|
317
|
+
# [Output Only] The path to the login shell for this account.
|
318
|
+
# Corresponds to the JSON property `shell`
|
319
|
+
# @return [String]
|
320
|
+
attr_accessor :shell
|
321
|
+
|
322
|
+
# [Output Only] User ID.
|
323
|
+
# Corresponds to the JSON property `uid`
|
324
|
+
# @return [Fixnum]
|
325
|
+
attr_accessor :uid
|
326
|
+
|
327
|
+
# [Output Only] The username of the account.
|
328
|
+
# Corresponds to the JSON property `username`
|
329
|
+
# @return [String]
|
330
|
+
attr_accessor :username
|
331
|
+
|
332
|
+
def initialize(**args)
|
333
|
+
update!(**args)
|
334
|
+
end
|
335
|
+
|
336
|
+
# Update properties of this object
|
337
|
+
def update!(**args)
|
338
|
+
@gecos = args[:gecos] unless args[:gecos].nil?
|
339
|
+
@gid = args[:gid] unless args[:gid].nil?
|
340
|
+
@home_directory = args[:home_directory] unless args[:home_directory].nil?
|
341
|
+
@shell = args[:shell] unless args[:shell].nil?
|
342
|
+
@uid = args[:uid] unless args[:uid].nil?
|
343
|
+
@username = args[:username] unless args[:username].nil?
|
344
|
+
end
|
345
|
+
end
|
346
|
+
|
347
|
+
# An Operation resource, used to manage asynchronous API requests.
|
348
|
+
class Operation
|
349
|
+
include Google::Apis::Core::Hashable
|
350
|
+
|
351
|
+
# [Output Only] An optional identifier specified by the client when the mutation
|
352
|
+
# was initiated. Must be unique for all Operation resources in the project.
|
353
|
+
# Corresponds to the JSON property `clientOperationId`
|
354
|
+
# @return [String]
|
355
|
+
attr_accessor :client_operation_id
|
356
|
+
|
357
|
+
# [Output Only] Creation timestamp in RFC3339 text format.
|
358
|
+
# Corresponds to the JSON property `creationTimestamp`
|
359
|
+
# @return [String]
|
360
|
+
attr_accessor :creation_timestamp
|
361
|
+
|
362
|
+
# [Output Only] The time that this operation was completed. This is in RFC3339
|
363
|
+
# text format.
|
364
|
+
# Corresponds to the JSON property `endTime`
|
365
|
+
# @return [String]
|
366
|
+
attr_accessor :end_time
|
367
|
+
|
368
|
+
# [Output Only] If errors are generated during processing of the operation, this
|
369
|
+
# field will be populated.
|
370
|
+
# Corresponds to the JSON property `error`
|
371
|
+
# @return [Google::Apis::ClouduseraccountsBeta::Operation::Error]
|
372
|
+
attr_accessor :error
|
373
|
+
|
374
|
+
# [Output Only] If the operation fails, this field contains the HTTP error
|
375
|
+
# message that was returned, such as NOT FOUND.
|
376
|
+
# Corresponds to the JSON property `httpErrorMessage`
|
377
|
+
# @return [String]
|
378
|
+
attr_accessor :http_error_message
|
379
|
+
|
380
|
+
# [Output Only] If the operation fails, this field contains the HTTP error
|
381
|
+
# message that was returned, such as 404.
|
382
|
+
# Corresponds to the JSON property `httpErrorStatusCode`
|
383
|
+
# @return [Fixnum]
|
384
|
+
attr_accessor :http_error_status_code
|
385
|
+
|
386
|
+
# [Output Only] Unique identifier for the resource; defined by the server.
|
387
|
+
# Corresponds to the JSON property `id`
|
388
|
+
# @return [String]
|
389
|
+
attr_accessor :id
|
390
|
+
|
391
|
+
# [Output Only] The time that this operation was requested. This is in RFC3339
|
392
|
+
# text format.
|
393
|
+
# Corresponds to the JSON property `insertTime`
|
394
|
+
# @return [String]
|
395
|
+
attr_accessor :insert_time
|
396
|
+
|
397
|
+
# [Output Only] Type of the resource. Always compute#operation for Operation
|
398
|
+
# resources.
|
399
|
+
# Corresponds to the JSON property `kind`
|
400
|
+
# @return [String]
|
401
|
+
attr_accessor :kind
|
402
|
+
|
403
|
+
# [Output Only] Name of the resource.
|
404
|
+
# Corresponds to the JSON property `name`
|
405
|
+
# @return [String]
|
406
|
+
attr_accessor :name
|
407
|
+
|
408
|
+
# [Output Only] Type of the operation, such as insert, compute.instanceGroups.
|
409
|
+
# update, or compute.instanceGroups.delete.
|
410
|
+
# Corresponds to the JSON property `operationType`
|
411
|
+
# @return [String]
|
412
|
+
attr_accessor :operation_type
|
413
|
+
|
414
|
+
# [Output Only] An optional progress indicator that ranges from 0 to 100. There
|
415
|
+
# is no requirement that this be linear or support any granularity of operations.
|
416
|
+
# This should not be used to guess at when the operation will be complete. This
|
417
|
+
# number should monotonically increase as the operation progresses.
|
418
|
+
# Corresponds to the JSON property `progress`
|
419
|
+
# @return [Fixnum]
|
420
|
+
attr_accessor :progress
|
421
|
+
|
422
|
+
# [Output Only] URL of the region where the operation resides. Only applicable
|
423
|
+
# for regional resources.
|
424
|
+
# Corresponds to the JSON property `region`
|
425
|
+
# @return [String]
|
426
|
+
attr_accessor :region
|
427
|
+
|
428
|
+
# [Output Only] Server-defined URL for the resource.
|
429
|
+
# Corresponds to the JSON property `selfLink`
|
430
|
+
# @return [String]
|
431
|
+
attr_accessor :self_link
|
432
|
+
|
433
|
+
# [Output Only] The time that this operation was started by the server. This is
|
434
|
+
# in RFC3339 text format.
|
435
|
+
# Corresponds to the JSON property `startTime`
|
436
|
+
# @return [String]
|
437
|
+
attr_accessor :start_time
|
438
|
+
|
439
|
+
# [Output Only] Status of the operation. Can be one of the following: PENDING,
|
440
|
+
# RUNNING, or DONE.
|
441
|
+
# Corresponds to the JSON property `status`
|
442
|
+
# @return [String]
|
443
|
+
attr_accessor :status
|
444
|
+
|
445
|
+
# [Output Only] An optional textual description of the current status of the
|
446
|
+
# operation.
|
447
|
+
# Corresponds to the JSON property `statusMessage`
|
448
|
+
# @return [String]
|
449
|
+
attr_accessor :status_message
|
450
|
+
|
451
|
+
# [Output Only] Unique target ID which identifies a particular incarnation of
|
452
|
+
# the target.
|
453
|
+
# Corresponds to the JSON property `targetId`
|
454
|
+
# @return [String]
|
455
|
+
attr_accessor :target_id
|
456
|
+
|
457
|
+
# [Output Only] URL of the resource the operation is mutating.
|
458
|
+
# Corresponds to the JSON property `targetLink`
|
459
|
+
# @return [String]
|
460
|
+
attr_accessor :target_link
|
461
|
+
|
462
|
+
# [Output Only] User who requested the operation, for example: user@example.com.
|
463
|
+
# Corresponds to the JSON property `user`
|
464
|
+
# @return [String]
|
465
|
+
attr_accessor :user
|
466
|
+
|
467
|
+
# [Output Only] If warning messages are generated during processing of the
|
468
|
+
# operation, this field will be populated.
|
469
|
+
# Corresponds to the JSON property `warnings`
|
470
|
+
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Warning>]
|
471
|
+
attr_accessor :warnings
|
472
|
+
|
473
|
+
# [Output Only] URL of the zone where the operation resides.
|
474
|
+
# Corresponds to the JSON property `zone`
|
475
|
+
# @return [String]
|
476
|
+
attr_accessor :zone
|
477
|
+
|
478
|
+
def initialize(**args)
|
479
|
+
update!(**args)
|
480
|
+
end
|
481
|
+
|
482
|
+
# Update properties of this object
|
483
|
+
def update!(**args)
|
484
|
+
@client_operation_id = args[:client_operation_id] unless args[:client_operation_id].nil?
|
485
|
+
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
|
486
|
+
@end_time = args[:end_time] unless args[:end_time].nil?
|
487
|
+
@error = args[:error] unless args[:error].nil?
|
488
|
+
@http_error_message = args[:http_error_message] unless args[:http_error_message].nil?
|
489
|
+
@http_error_status_code = args[:http_error_status_code] unless args[:http_error_status_code].nil?
|
490
|
+
@id = args[:id] unless args[:id].nil?
|
491
|
+
@insert_time = args[:insert_time] unless args[:insert_time].nil?
|
492
|
+
@kind = args[:kind] unless args[:kind].nil?
|
493
|
+
@name = args[:name] unless args[:name].nil?
|
494
|
+
@operation_type = args[:operation_type] unless args[:operation_type].nil?
|
495
|
+
@progress = args[:progress] unless args[:progress].nil?
|
496
|
+
@region = args[:region] unless args[:region].nil?
|
497
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
498
|
+
@start_time = args[:start_time] unless args[:start_time].nil?
|
499
|
+
@status = args[:status] unless args[:status].nil?
|
500
|
+
@status_message = args[:status_message] unless args[:status_message].nil?
|
501
|
+
@target_id = args[:target_id] unless args[:target_id].nil?
|
502
|
+
@target_link = args[:target_link] unless args[:target_link].nil?
|
503
|
+
@user = args[:user] unless args[:user].nil?
|
504
|
+
@warnings = args[:warnings] unless args[:warnings].nil?
|
505
|
+
@zone = args[:zone] unless args[:zone].nil?
|
506
|
+
end
|
507
|
+
|
508
|
+
# [Output Only] If errors are generated during processing of the operation, this
|
509
|
+
# field will be populated.
|
510
|
+
class Error
|
511
|
+
include Google::Apis::Core::Hashable
|
512
|
+
|
513
|
+
# [Output Only] The array of errors encountered while processing this operation.
|
514
|
+
# Corresponds to the JSON property `errors`
|
515
|
+
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Error::Error>]
|
516
|
+
attr_accessor :errors
|
517
|
+
|
518
|
+
def initialize(**args)
|
519
|
+
update!(**args)
|
520
|
+
end
|
521
|
+
|
522
|
+
# Update properties of this object
|
523
|
+
def update!(**args)
|
524
|
+
@errors = args[:errors] unless args[:errors].nil?
|
525
|
+
end
|
526
|
+
|
527
|
+
#
|
528
|
+
class Error
|
529
|
+
include Google::Apis::Core::Hashable
|
530
|
+
|
531
|
+
# [Output Only] The error type identifier for this error.
|
532
|
+
# Corresponds to the JSON property `code`
|
533
|
+
# @return [String]
|
534
|
+
attr_accessor :code
|
535
|
+
|
536
|
+
# [Output Only] Indicates the field in the request which caused the error. This
|
537
|
+
# property is optional.
|
538
|
+
# Corresponds to the JSON property `location`
|
539
|
+
# @return [String]
|
540
|
+
attr_accessor :location
|
541
|
+
|
542
|
+
# [Output Only] An optional, human-readable error message.
|
543
|
+
# Corresponds to the JSON property `message`
|
544
|
+
# @return [String]
|
545
|
+
attr_accessor :message
|
546
|
+
|
547
|
+
def initialize(**args)
|
548
|
+
update!(**args)
|
549
|
+
end
|
550
|
+
|
551
|
+
# Update properties of this object
|
552
|
+
def update!(**args)
|
553
|
+
@code = args[:code] unless args[:code].nil?
|
554
|
+
@location = args[:location] unless args[:location].nil?
|
555
|
+
@message = args[:message] unless args[:message].nil?
|
556
|
+
end
|
557
|
+
end
|
558
|
+
end
|
559
|
+
|
560
|
+
#
|
561
|
+
class Warning
|
562
|
+
include Google::Apis::Core::Hashable
|
563
|
+
|
564
|
+
# [Output Only] The warning type identifier for this warning.
|
565
|
+
# Corresponds to the JSON property `code`
|
566
|
+
# @return [String]
|
567
|
+
attr_accessor :code
|
568
|
+
|
569
|
+
# [Output Only] Metadata for this warning in key: value format.
|
570
|
+
# Corresponds to the JSON property `data`
|
571
|
+
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation::Warning::Datum>]
|
572
|
+
attr_accessor :data
|
573
|
+
|
574
|
+
# [Output Only] Optional human-readable details for this warning.
|
575
|
+
# Corresponds to the JSON property `message`
|
576
|
+
# @return [String]
|
577
|
+
attr_accessor :message
|
578
|
+
|
579
|
+
def initialize(**args)
|
580
|
+
update!(**args)
|
581
|
+
end
|
582
|
+
|
583
|
+
# Update properties of this object
|
584
|
+
def update!(**args)
|
585
|
+
@code = args[:code] unless args[:code].nil?
|
586
|
+
@data = args[:data] unless args[:data].nil?
|
587
|
+
@message = args[:message] unless args[:message].nil?
|
588
|
+
end
|
589
|
+
|
590
|
+
#
|
591
|
+
class Datum
|
592
|
+
include Google::Apis::Core::Hashable
|
593
|
+
|
594
|
+
# [Output Only] A key for the warning data.
|
595
|
+
# Corresponds to the JSON property `key`
|
596
|
+
# @return [String]
|
597
|
+
attr_accessor :key
|
598
|
+
|
599
|
+
# [Output Only] A warning data value corresponding to the key.
|
600
|
+
# Corresponds to the JSON property `value`
|
601
|
+
# @return [String]
|
602
|
+
attr_accessor :value
|
603
|
+
|
604
|
+
def initialize(**args)
|
605
|
+
update!(**args)
|
606
|
+
end
|
607
|
+
|
608
|
+
# Update properties of this object
|
609
|
+
def update!(**args)
|
610
|
+
@key = args[:key] unless args[:key].nil?
|
611
|
+
@value = args[:value] unless args[:value].nil?
|
612
|
+
end
|
613
|
+
end
|
614
|
+
end
|
615
|
+
end
|
616
|
+
|
617
|
+
# Contains a list of Operation resources.
|
618
|
+
class OperationList
|
619
|
+
include Google::Apis::Core::Hashable
|
620
|
+
|
621
|
+
# [Output Only] Unique identifier for the resource; defined by the server.
|
622
|
+
# Corresponds to the JSON property `id`
|
623
|
+
# @return [String]
|
624
|
+
attr_accessor :id
|
625
|
+
|
626
|
+
# [Output Only] The Operation resources.
|
627
|
+
# Corresponds to the JSON property `items`
|
628
|
+
# @return [Array<Google::Apis::ClouduseraccountsBeta::Operation>]
|
629
|
+
attr_accessor :items
|
630
|
+
|
631
|
+
# [Output Only] Type of resource. Always compute#operations for Operations
|
632
|
+
# resource.
|
633
|
+
# Corresponds to the JSON property `kind`
|
634
|
+
# @return [String]
|
635
|
+
attr_accessor :kind
|
636
|
+
|
637
|
+
# [Output Only] A token used to continue a truncate.
|
638
|
+
# Corresponds to the JSON property `nextPageToken`
|
639
|
+
# @return [String]
|
640
|
+
attr_accessor :next_page_token
|
641
|
+
|
642
|
+
# [Output Only] Server-defined URL for this resource.
|
643
|
+
# Corresponds to the JSON property `selfLink`
|
644
|
+
# @return [String]
|
645
|
+
attr_accessor :self_link
|
646
|
+
|
647
|
+
def initialize(**args)
|
648
|
+
update!(**args)
|
649
|
+
end
|
650
|
+
|
651
|
+
# Update properties of this object
|
652
|
+
def update!(**args)
|
653
|
+
@id = args[:id] unless args[:id].nil?
|
654
|
+
@items = args[:items] unless args[:items].nil?
|
655
|
+
@kind = args[:kind] unless args[:kind].nil?
|
656
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
657
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
658
|
+
end
|
659
|
+
end
|
660
|
+
|
661
|
+
# A public key for authenticating to guests.
|
662
|
+
class PublicKey
|
663
|
+
include Google::Apis::Core::Hashable
|
664
|
+
|
665
|
+
# [Output Only] Creation timestamp in RFC3339 text format.
|
666
|
+
# Corresponds to the JSON property `creationTimestamp`
|
667
|
+
# @return [String]
|
668
|
+
attr_accessor :creation_timestamp
|
669
|
+
|
670
|
+
# An optional textual description of the resource; provided by the client when
|
671
|
+
# the resource is created.
|
672
|
+
# Corresponds to the JSON property `description`
|
673
|
+
# @return [String]
|
674
|
+
attr_accessor :description
|
675
|
+
|
676
|
+
# Optional expiration timestamp. If provided, the timestamp must be in RFC3339
|
677
|
+
# text format. If not provided, the public key never expires.
|
678
|
+
# Corresponds to the JSON property `expirationTimestamp`
|
679
|
+
# @return [String]
|
680
|
+
attr_accessor :expiration_timestamp
|
681
|
+
|
682
|
+
# [Output Only] The fingerprint of the key is defined by RFC4716 to be the MD5
|
683
|
+
# digest of the public key.
|
684
|
+
# Corresponds to the JSON property `fingerprint`
|
685
|
+
# @return [String]
|
686
|
+
attr_accessor :fingerprint
|
687
|
+
|
688
|
+
# Public key text in SSH format, defined by RFC4253 section 6.6.
|
689
|
+
# Corresponds to the JSON property `key`
|
690
|
+
# @return [String]
|
691
|
+
attr_accessor :key
|
692
|
+
|
693
|
+
def initialize(**args)
|
694
|
+
update!(**args)
|
695
|
+
end
|
696
|
+
|
697
|
+
# Update properties of this object
|
698
|
+
def update!(**args)
|
699
|
+
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
|
700
|
+
@description = args[:description] unless args[:description].nil?
|
701
|
+
@expiration_timestamp = args[:expiration_timestamp] unless args[:expiration_timestamp].nil?
|
702
|
+
@fingerprint = args[:fingerprint] unless args[:fingerprint].nil?
|
703
|
+
@key = args[:key] unless args[:key].nil?
|
704
|
+
end
|
705
|
+
end
|
706
|
+
|
707
|
+
# A User resource.
|
708
|
+
class User
|
709
|
+
include Google::Apis::Core::Hashable
|
710
|
+
|
711
|
+
# [Output Only] Creation timestamp in RFC3339 text format.
|
712
|
+
# Corresponds to the JSON property `creationTimestamp`
|
713
|
+
# @return [String]
|
714
|
+
attr_accessor :creation_timestamp
|
715
|
+
|
716
|
+
# An optional textual description of the resource; provided by the client when
|
717
|
+
# the resource is created.
|
718
|
+
# Corresponds to the JSON property `description`
|
719
|
+
# @return [String]
|
720
|
+
attr_accessor :description
|
721
|
+
|
722
|
+
# [Output Only] A list of URLs to Group resources who contain the user. Users
|
723
|
+
# are only members of groups in the same project.
|
724
|
+
# Corresponds to the JSON property `groups`
|
725
|
+
# @return [Array<String>]
|
726
|
+
attr_accessor :groups
|
727
|
+
|
728
|
+
# [Output Only] Unique identifier for the resource; defined by the server.
|
729
|
+
# Corresponds to the JSON property `id`
|
730
|
+
# @return [String]
|
731
|
+
attr_accessor :id
|
732
|
+
|
733
|
+
# [Output Only] Type of the resource. Always clouduseraccounts#user for users.
|
734
|
+
# Corresponds to the JSON property `kind`
|
735
|
+
# @return [String]
|
736
|
+
attr_accessor :kind
|
737
|
+
|
738
|
+
# Name of the resource; provided by the client when the resource is created.
|
739
|
+
# Corresponds to the JSON property `name`
|
740
|
+
# @return [String]
|
741
|
+
attr_accessor :name
|
742
|
+
|
743
|
+
# Email address of account's owner. This account will be validated to make sure
|
744
|
+
# it exists. The email can belong to any domain, but it must be tied to a Google
|
745
|
+
# account.
|
746
|
+
# Corresponds to the JSON property `owner`
|
747
|
+
# @return [String]
|
748
|
+
attr_accessor :owner
|
749
|
+
|
750
|
+
# [Output Only] Public keys that this user may use to login.
|
751
|
+
# Corresponds to the JSON property `publicKeys`
|
752
|
+
# @return [Array<Google::Apis::ClouduseraccountsBeta::PublicKey>]
|
753
|
+
attr_accessor :public_keys
|
754
|
+
|
755
|
+
# [Output Only] Server defined URL for the resource.
|
756
|
+
# Corresponds to the JSON property `selfLink`
|
757
|
+
# @return [String]
|
758
|
+
attr_accessor :self_link
|
759
|
+
|
760
|
+
def initialize(**args)
|
761
|
+
update!(**args)
|
762
|
+
end
|
763
|
+
|
764
|
+
# Update properties of this object
|
765
|
+
def update!(**args)
|
766
|
+
@creation_timestamp = args[:creation_timestamp] unless args[:creation_timestamp].nil?
|
767
|
+
@description = args[:description] unless args[:description].nil?
|
768
|
+
@groups = args[:groups] unless args[:groups].nil?
|
769
|
+
@id = args[:id] unless args[:id].nil?
|
770
|
+
@kind = args[:kind] unless args[:kind].nil?
|
771
|
+
@name = args[:name] unless args[:name].nil?
|
772
|
+
@owner = args[:owner] unless args[:owner].nil?
|
773
|
+
@public_keys = args[:public_keys] unless args[:public_keys].nil?
|
774
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
775
|
+
end
|
776
|
+
end
|
777
|
+
|
778
|
+
#
|
779
|
+
class UserList
|
780
|
+
include Google::Apis::Core::Hashable
|
781
|
+
|
782
|
+
# [Output Only] Unique identifier for the resource; defined by the server.
|
783
|
+
# Corresponds to the JSON property `id`
|
784
|
+
# @return [String]
|
785
|
+
attr_accessor :id
|
786
|
+
|
787
|
+
# [Output Only] A list of User resources.
|
788
|
+
# Corresponds to the JSON property `items`
|
789
|
+
# @return [Array<Google::Apis::ClouduseraccountsBeta::User>]
|
790
|
+
attr_accessor :items
|
791
|
+
|
792
|
+
# [Output Only] Type of resource. Always clouduseraccounts#userList for lists of
|
793
|
+
# users.
|
794
|
+
# Corresponds to the JSON property `kind`
|
795
|
+
# @return [String]
|
796
|
+
attr_accessor :kind
|
797
|
+
|
798
|
+
# [Output Only] A token used to continue a truncated list request.
|
799
|
+
# Corresponds to the JSON property `nextPageToken`
|
800
|
+
# @return [String]
|
801
|
+
attr_accessor :next_page_token
|
802
|
+
|
803
|
+
# [Output Only] Server defined URL for this resource.
|
804
|
+
# Corresponds to the JSON property `selfLink`
|
805
|
+
# @return [String]
|
806
|
+
attr_accessor :self_link
|
807
|
+
|
808
|
+
def initialize(**args)
|
809
|
+
update!(**args)
|
810
|
+
end
|
811
|
+
|
812
|
+
# Update properties of this object
|
813
|
+
def update!(**args)
|
814
|
+
@id = args[:id] unless args[:id].nil?
|
815
|
+
@items = args[:items] unless args[:items].nil?
|
816
|
+
@kind = args[:kind] unless args[:kind].nil?
|
817
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
818
|
+
@self_link = args[:self_link] unless args[:self_link].nil?
|
819
|
+
end
|
820
|
+
end
|
821
|
+
end
|
822
|
+
end
|
823
|
+
end
|