google-api-client 0.9.pre3 → 0.9.pre4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.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,118 @@
|
|
|
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 AdminDatatransferV1
|
|
24
|
+
|
|
25
|
+
class Application
|
|
26
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
class ApplicationDataTransfer
|
|
30
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
class ApplicationTransferParam
|
|
34
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
class ApplicationsListResponse
|
|
38
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
class DataTransfer
|
|
42
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
class DataTransfersListResponse
|
|
46
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
47
|
+
end
|
|
48
|
+
|
|
49
|
+
class Application
|
|
50
|
+
# @private
|
|
51
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
52
|
+
property :etag, as: 'etag'
|
|
53
|
+
property :id, as: 'id'
|
|
54
|
+
property :kind, as: 'kind'
|
|
55
|
+
property :name, as: 'name'
|
|
56
|
+
collection :transfer_params, as: 'transferParams', class: Google::Apis::AdminDatatransferV1::ApplicationTransferParam, decorator: Google::Apis::AdminDatatransferV1::ApplicationTransferParam::Representation
|
|
57
|
+
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
class ApplicationDataTransfer
|
|
62
|
+
# @private
|
|
63
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
64
|
+
property :application_id, as: 'applicationId'
|
|
65
|
+
collection :application_transfer_params, as: 'applicationTransferParams', class: Google::Apis::AdminDatatransferV1::ApplicationTransferParam, decorator: Google::Apis::AdminDatatransferV1::ApplicationTransferParam::Representation
|
|
66
|
+
|
|
67
|
+
property :application_transfer_status, as: 'applicationTransferStatus'
|
|
68
|
+
end
|
|
69
|
+
end
|
|
70
|
+
|
|
71
|
+
class ApplicationTransferParam
|
|
72
|
+
# @private
|
|
73
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
74
|
+
property :key, as: 'key'
|
|
75
|
+
collection :value, as: 'value'
|
|
76
|
+
end
|
|
77
|
+
end
|
|
78
|
+
|
|
79
|
+
class ApplicationsListResponse
|
|
80
|
+
# @private
|
|
81
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
82
|
+
collection :applications, as: 'applications', class: Google::Apis::AdminDatatransferV1::Application, decorator: Google::Apis::AdminDatatransferV1::Application::Representation
|
|
83
|
+
|
|
84
|
+
property :etag, as: 'etag'
|
|
85
|
+
property :kind, as: 'kind'
|
|
86
|
+
property :next_page_token, as: 'nextPageToken'
|
|
87
|
+
end
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
class DataTransfer
|
|
91
|
+
# @private
|
|
92
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
93
|
+
collection :application_data_transfers, as: 'applicationDataTransfers', class: Google::Apis::AdminDatatransferV1::ApplicationDataTransfer, decorator: Google::Apis::AdminDatatransferV1::ApplicationDataTransfer::Representation
|
|
94
|
+
|
|
95
|
+
property :etag, as: 'etag'
|
|
96
|
+
property :id, as: 'id'
|
|
97
|
+
property :kind, as: 'kind'
|
|
98
|
+
property :new_owner_user_id, as: 'newOwnerUserId'
|
|
99
|
+
property :old_owner_user_id, as: 'oldOwnerUserId'
|
|
100
|
+
property :overall_transfer_status_code, as: 'overallTransferStatusCode'
|
|
101
|
+
property :request_time, as: 'requestTime', type: DateTime
|
|
102
|
+
|
|
103
|
+
end
|
|
104
|
+
end
|
|
105
|
+
|
|
106
|
+
class DataTransfersListResponse
|
|
107
|
+
# @private
|
|
108
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
109
|
+
collection :data_transfers, as: 'dataTransfers', class: Google::Apis::AdminDatatransferV1::DataTransfer, decorator: Google::Apis::AdminDatatransferV1::DataTransfer::Representation
|
|
110
|
+
|
|
111
|
+
property :etag, as: 'etag'
|
|
112
|
+
property :kind, as: 'kind'
|
|
113
|
+
property :next_page_token, as: 'nextPageToken'
|
|
114
|
+
end
|
|
115
|
+
end
|
|
116
|
+
end
|
|
117
|
+
end
|
|
118
|
+
end
|
|
@@ -0,0 +1,262 @@
|
|
|
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/core/base_service'
|
|
16
|
+
require 'google/apis/core/json_representation'
|
|
17
|
+
require 'google/apis/core/hashable'
|
|
18
|
+
require 'google/apis/errors'
|
|
19
|
+
|
|
20
|
+
module Google
|
|
21
|
+
module Apis
|
|
22
|
+
module AdminDatatransferV1
|
|
23
|
+
# Admin Data Transfer API
|
|
24
|
+
#
|
|
25
|
+
# Admin Data Transfer API lets you transfer user data from one user to another.
|
|
26
|
+
#
|
|
27
|
+
# @example
|
|
28
|
+
# require 'google/apis/admin_datatransfer_v1'
|
|
29
|
+
#
|
|
30
|
+
# Admin = Google::Apis::AdminDatatransferV1 # Alias the module
|
|
31
|
+
# service = Admin::DataTransferService.new
|
|
32
|
+
#
|
|
33
|
+
# @see https://developers.google.com/admin-sdk/data-transfer/
|
|
34
|
+
class DataTransferService < Google::Apis::Core::BaseService
|
|
35
|
+
# @return [String]
|
|
36
|
+
# API key. Your API key identifies your project and provides you with API access,
|
|
37
|
+
# quota, and reports. Required unless you provide an OAuth 2.0 token.
|
|
38
|
+
attr_accessor :key
|
|
39
|
+
|
|
40
|
+
# @return [String]
|
|
41
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
42
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
43
|
+
# Overrides userIp if both are provided.
|
|
44
|
+
attr_accessor :quota_user
|
|
45
|
+
|
|
46
|
+
# @return [String]
|
|
47
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
48
|
+
# enforce per-user limits.
|
|
49
|
+
attr_accessor :user_ip
|
|
50
|
+
|
|
51
|
+
def initialize
|
|
52
|
+
super('https://www.googleapis.com/', 'admin/datatransfer/v1/')
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
# Retrieves information about an application for the given application ID.
|
|
56
|
+
# @param [String] application_id
|
|
57
|
+
# ID of the application resource to be retrieved.
|
|
58
|
+
# @param [String] fields
|
|
59
|
+
# Selector specifying which fields to include in a partial response.
|
|
60
|
+
# @param [String] quota_user
|
|
61
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
62
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
63
|
+
# Overrides userIp if both are provided.
|
|
64
|
+
# @param [String] user_ip
|
|
65
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
66
|
+
# enforce per-user limits.
|
|
67
|
+
# @param [Google::Apis::RequestOptions] options
|
|
68
|
+
# Request-specific options
|
|
69
|
+
#
|
|
70
|
+
# @yield [result, err] Result & error if block supplied
|
|
71
|
+
# @yieldparam result [Google::Apis::AdminDatatransferV1::Application] parsed result object
|
|
72
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
73
|
+
#
|
|
74
|
+
# @return [Google::Apis::AdminDatatransferV1::Application]
|
|
75
|
+
#
|
|
76
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
77
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
78
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
79
|
+
def get_application(application_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
80
|
+
command = make_simple_command(:get, 'applications/{applicationId}', options)
|
|
81
|
+
command.response_representation = Google::Apis::AdminDatatransferV1::Application::Representation
|
|
82
|
+
command.response_class = Google::Apis::AdminDatatransferV1::Application
|
|
83
|
+
command.params['applicationId'] = application_id unless application_id.nil?
|
|
84
|
+
command.query['fields'] = fields unless fields.nil?
|
|
85
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
86
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
87
|
+
execute_or_queue_command(command, &block)
|
|
88
|
+
end
|
|
89
|
+
|
|
90
|
+
# Lists the applications available for data transfer for a customer.
|
|
91
|
+
# @param [String] customer_id
|
|
92
|
+
# Immutable ID of the Google Apps account.
|
|
93
|
+
# @param [Fixnum] max_results
|
|
94
|
+
# Maximum number of results to return. Default is 100.
|
|
95
|
+
# @param [String] page_token
|
|
96
|
+
# Token to specify next page in the list.
|
|
97
|
+
# @param [String] fields
|
|
98
|
+
# Selector specifying which fields to include in a partial response.
|
|
99
|
+
# @param [String] quota_user
|
|
100
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
101
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
102
|
+
# Overrides userIp if both are provided.
|
|
103
|
+
# @param [String] user_ip
|
|
104
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
105
|
+
# enforce per-user limits.
|
|
106
|
+
# @param [Google::Apis::RequestOptions] options
|
|
107
|
+
# Request-specific options
|
|
108
|
+
#
|
|
109
|
+
# @yield [result, err] Result & error if block supplied
|
|
110
|
+
# @yieldparam result [Google::Apis::AdminDatatransferV1::ApplicationsListResponse] parsed result object
|
|
111
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
112
|
+
#
|
|
113
|
+
# @return [Google::Apis::AdminDatatransferV1::ApplicationsListResponse]
|
|
114
|
+
#
|
|
115
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
116
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
117
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
118
|
+
def list_applications(customer_id: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
119
|
+
command = make_simple_command(:get, 'applications', options)
|
|
120
|
+
command.response_representation = Google::Apis::AdminDatatransferV1::ApplicationsListResponse::Representation
|
|
121
|
+
command.response_class = Google::Apis::AdminDatatransferV1::ApplicationsListResponse
|
|
122
|
+
command.query['customerId'] = customer_id unless customer_id.nil?
|
|
123
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
124
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
125
|
+
command.query['fields'] = fields unless fields.nil?
|
|
126
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
127
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
128
|
+
execute_or_queue_command(command, &block)
|
|
129
|
+
end
|
|
130
|
+
|
|
131
|
+
# Retrieves a data transfer request by its resource ID.
|
|
132
|
+
# @param [String] data_transfer_id
|
|
133
|
+
# ID of the resource to be retrieved. This is returned in the response from the
|
|
134
|
+
# insert method.
|
|
135
|
+
# @param [String] fields
|
|
136
|
+
# Selector specifying which fields to include in a partial response.
|
|
137
|
+
# @param [String] quota_user
|
|
138
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
139
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
140
|
+
# Overrides userIp if both are provided.
|
|
141
|
+
# @param [String] user_ip
|
|
142
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
143
|
+
# enforce per-user limits.
|
|
144
|
+
# @param [Google::Apis::RequestOptions] options
|
|
145
|
+
# Request-specific options
|
|
146
|
+
#
|
|
147
|
+
# @yield [result, err] Result & error if block supplied
|
|
148
|
+
# @yieldparam result [Google::Apis::AdminDatatransferV1::DataTransfer] parsed result object
|
|
149
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
150
|
+
#
|
|
151
|
+
# @return [Google::Apis::AdminDatatransferV1::DataTransfer]
|
|
152
|
+
#
|
|
153
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
154
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
155
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
156
|
+
def get_transfer(data_transfer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
157
|
+
command = make_simple_command(:get, 'transfers/{dataTransferId}', options)
|
|
158
|
+
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
|
|
159
|
+
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer
|
|
160
|
+
command.params['dataTransferId'] = data_transfer_id unless data_transfer_id.nil?
|
|
161
|
+
command.query['fields'] = fields unless fields.nil?
|
|
162
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
163
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
164
|
+
execute_or_queue_command(command, &block)
|
|
165
|
+
end
|
|
166
|
+
|
|
167
|
+
# Inserts a data transfer request.
|
|
168
|
+
# @param [Google::Apis::AdminDatatransferV1::DataTransfer] data_transfer_object
|
|
169
|
+
# @param [String] fields
|
|
170
|
+
# Selector specifying which fields to include in a partial response.
|
|
171
|
+
# @param [String] quota_user
|
|
172
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
173
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
174
|
+
# Overrides userIp if both are provided.
|
|
175
|
+
# @param [String] user_ip
|
|
176
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
177
|
+
# enforce per-user limits.
|
|
178
|
+
# @param [Google::Apis::RequestOptions] options
|
|
179
|
+
# Request-specific options
|
|
180
|
+
#
|
|
181
|
+
# @yield [result, err] Result & error if block supplied
|
|
182
|
+
# @yieldparam result [Google::Apis::AdminDatatransferV1::DataTransfer] parsed result object
|
|
183
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
184
|
+
#
|
|
185
|
+
# @return [Google::Apis::AdminDatatransferV1::DataTransfer]
|
|
186
|
+
#
|
|
187
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
188
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
189
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
190
|
+
def insert_transfer(data_transfer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
191
|
+
command = make_simple_command(:post, 'transfers', options)
|
|
192
|
+
command.request_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
|
|
193
|
+
command.request_object = data_transfer_object
|
|
194
|
+
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfer::Representation
|
|
195
|
+
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfer
|
|
196
|
+
command.query['fields'] = fields unless fields.nil?
|
|
197
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
198
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
199
|
+
execute_or_queue_command(command, &block)
|
|
200
|
+
end
|
|
201
|
+
|
|
202
|
+
# Lists the transfers for a customer by source user, destination user, or status.
|
|
203
|
+
# @param [String] customer_id
|
|
204
|
+
# Immutable ID of the Google Apps account.
|
|
205
|
+
# @param [Fixnum] max_results
|
|
206
|
+
# Maximum number of results to return. Default is 100.
|
|
207
|
+
# @param [String] new_owner_user_id
|
|
208
|
+
# Destination user's profile ID.
|
|
209
|
+
# @param [String] old_owner_user_id
|
|
210
|
+
# Source user's profile ID.
|
|
211
|
+
# @param [String] page_token
|
|
212
|
+
# Token to specify the next page in the list.
|
|
213
|
+
# @param [String] status
|
|
214
|
+
# Status of the transfer.
|
|
215
|
+
# @param [String] fields
|
|
216
|
+
# Selector specifying which fields to include in a partial response.
|
|
217
|
+
# @param [String] quota_user
|
|
218
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
219
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
220
|
+
# Overrides userIp if both are provided.
|
|
221
|
+
# @param [String] user_ip
|
|
222
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
223
|
+
# enforce per-user limits.
|
|
224
|
+
# @param [Google::Apis::RequestOptions] options
|
|
225
|
+
# Request-specific options
|
|
226
|
+
#
|
|
227
|
+
# @yield [result, err] Result & error if block supplied
|
|
228
|
+
# @yieldparam result [Google::Apis::AdminDatatransferV1::DataTransfersListResponse] parsed result object
|
|
229
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
230
|
+
#
|
|
231
|
+
# @return [Google::Apis::AdminDatatransferV1::DataTransfersListResponse]
|
|
232
|
+
#
|
|
233
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
234
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
235
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
236
|
+
def list_transfers(customer_id: nil, max_results: nil, new_owner_user_id: nil, old_owner_user_id: nil, page_token: nil, status: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
237
|
+
command = make_simple_command(:get, 'transfers', options)
|
|
238
|
+
command.response_representation = Google::Apis::AdminDatatransferV1::DataTransfersListResponse::Representation
|
|
239
|
+
command.response_class = Google::Apis::AdminDatatransferV1::DataTransfersListResponse
|
|
240
|
+
command.query['customerId'] = customer_id unless customer_id.nil?
|
|
241
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
242
|
+
command.query['newOwnerUserId'] = new_owner_user_id unless new_owner_user_id.nil?
|
|
243
|
+
command.query['oldOwnerUserId'] = old_owner_user_id unless old_owner_user_id.nil?
|
|
244
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
245
|
+
command.query['status'] = status unless status.nil?
|
|
246
|
+
command.query['fields'] = fields unless fields.nil?
|
|
247
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
248
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
249
|
+
execute_or_queue_command(command, &block)
|
|
250
|
+
end
|
|
251
|
+
|
|
252
|
+
protected
|
|
253
|
+
|
|
254
|
+
def apply_command_defaults(command)
|
|
255
|
+
command.query['key'] = key unless key.nil?
|
|
256
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
257
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
258
|
+
end
|
|
259
|
+
end
|
|
260
|
+
end
|
|
261
|
+
end
|
|
262
|
+
end
|
|
@@ -26,7 +26,13 @@ module Google
|
|
|
26
26
|
# @see https://developers.google.com/admin-sdk/directory/
|
|
27
27
|
module AdminDirectoryV1
|
|
28
28
|
VERSION = 'DirectoryV1'
|
|
29
|
-
REVISION = '
|
|
29
|
+
REVISION = '20151208'
|
|
30
|
+
|
|
31
|
+
# View and manage customer related information
|
|
32
|
+
AUTH_ADMIN_DIRECTORY_CUSTOMER = 'https://www.googleapis.com/auth/admin.directory.customer'
|
|
33
|
+
|
|
34
|
+
# View customer related information
|
|
35
|
+
AUTH_ADMIN_DIRECTORY_CUSTOMER_READONLY = 'https://www.googleapis.com/auth/admin.directory.customer.readonly'
|
|
30
36
|
|
|
31
37
|
# View and manage your Chrome OS devices' metadata
|
|
32
38
|
AUTH_ADMIN_DIRECTORY_DEVICE_CHROMEOS = 'https://www.googleapis.com/auth/admin.directory.device.chromeos'
|
|
@@ -43,6 +49,12 @@ module Google
|
|
|
43
49
|
# View your mobile devices' metadata
|
|
44
50
|
AUTH_ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = 'https://www.googleapis.com/auth/admin.directory.device.mobile.readonly'
|
|
45
51
|
|
|
52
|
+
# View and manage the provisioning of domains for your customers
|
|
53
|
+
AUTH_ADMIN_DIRECTORY_DOMAIN = 'https://www.googleapis.com/auth/admin.directory.domain'
|
|
54
|
+
|
|
55
|
+
# View domains related to your customers
|
|
56
|
+
AUTH_ADMIN_DIRECTORY_DOMAIN_READONLY = 'https://www.googleapis.com/auth/admin.directory.domain.readonly'
|
|
57
|
+
|
|
46
58
|
# View and manage the provisioning of groups on your domain
|
|
47
59
|
AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
|
|
48
60
|
|
|
@@ -64,6 +76,18 @@ module Google
|
|
|
64
76
|
# View organization units on your domain
|
|
65
77
|
AUTH_ADMIN_DIRECTORY_ORGUNIT_READONLY = 'https://www.googleapis.com/auth/admin.directory.orgunit.readonly'
|
|
66
78
|
|
|
79
|
+
# View and manage the provisioning of calendar resources on your domain
|
|
80
|
+
AUTH_ADMIN_DIRECTORY_RESOURCE_CALENDAR = 'https://www.googleapis.com/auth/admin.directory.resource.calendar'
|
|
81
|
+
|
|
82
|
+
# View calendar resources on your domain
|
|
83
|
+
AUTH_ADMIN_DIRECTORY_RESOURCE_CALENDAR_READONLY = 'https://www.googleapis.com/auth/admin.directory.resource.calendar.readonly'
|
|
84
|
+
|
|
85
|
+
# Manage delegated admin roles for your domain
|
|
86
|
+
AUTH_ADMIN_DIRECTORY_ROLEMANAGEMENT = 'https://www.googleapis.com/auth/admin.directory.rolemanagement'
|
|
87
|
+
|
|
88
|
+
# View delegated admin roles for your domain
|
|
89
|
+
AUTH_ADMIN_DIRECTORY_ROLEMANAGEMENT_READONLY = 'https://www.googleapis.com/auth/admin.directory.rolemanagement.readonly'
|
|
90
|
+
|
|
67
91
|
# View and manage the provisioning of users on your domain
|
|
68
92
|
AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
|
|
69
93
|
|
|
@@ -183,6 +183,103 @@ module Google
|
|
|
183
183
|
end
|
|
184
184
|
end
|
|
185
185
|
|
|
186
|
+
# JSON template for Calendar Resource object in Directory API.
|
|
187
|
+
class CalendarResource
|
|
188
|
+
include Google::Apis::Core::Hashable
|
|
189
|
+
|
|
190
|
+
# ETag of the resource.
|
|
191
|
+
# Corresponds to the JSON property `etags`
|
|
192
|
+
# @return [String]
|
|
193
|
+
attr_accessor :etags
|
|
194
|
+
|
|
195
|
+
# The type of the resource. For calendar resources, the value is admin#directory#
|
|
196
|
+
# resources#calendars#CalendarResource.
|
|
197
|
+
# Corresponds to the JSON property `kind`
|
|
198
|
+
# @return [String]
|
|
199
|
+
attr_accessor :kind
|
|
200
|
+
|
|
201
|
+
# The brief description of the calendar resource.
|
|
202
|
+
# Corresponds to the JSON property `resourceDescription`
|
|
203
|
+
# @return [String]
|
|
204
|
+
attr_accessor :resource_description
|
|
205
|
+
|
|
206
|
+
# The read-only email ID for the calendar resource. Generated as part of
|
|
207
|
+
# creating a new calendar resource.
|
|
208
|
+
# Corresponds to the JSON property `resourceEmail`
|
|
209
|
+
# @return [String]
|
|
210
|
+
attr_accessor :resource_email
|
|
211
|
+
|
|
212
|
+
# The unique ID for the calendar resource.
|
|
213
|
+
# Corresponds to the JSON property `resourceId`
|
|
214
|
+
# @return [String]
|
|
215
|
+
attr_accessor :resource_id
|
|
216
|
+
|
|
217
|
+
# The name of the calendar resource. For example, Training Room 1A
|
|
218
|
+
# Corresponds to the JSON property `resourceName`
|
|
219
|
+
# @return [String]
|
|
220
|
+
attr_accessor :resource_name
|
|
221
|
+
|
|
222
|
+
# The type of the calendar resource. Used for grouping resources in the calendar
|
|
223
|
+
# user interface.
|
|
224
|
+
# Corresponds to the JSON property `resourceType`
|
|
225
|
+
# @return [String]
|
|
226
|
+
attr_accessor :resource_type
|
|
227
|
+
|
|
228
|
+
def initialize(**args)
|
|
229
|
+
update!(**args)
|
|
230
|
+
end
|
|
231
|
+
|
|
232
|
+
# Update properties of this object
|
|
233
|
+
def update!(**args)
|
|
234
|
+
@etags = args[:etags] unless args[:etags].nil?
|
|
235
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
236
|
+
@resource_description = args[:resource_description] unless args[:resource_description].nil?
|
|
237
|
+
@resource_email = args[:resource_email] unless args[:resource_email].nil?
|
|
238
|
+
@resource_id = args[:resource_id] unless args[:resource_id].nil?
|
|
239
|
+
@resource_name = args[:resource_name] unless args[:resource_name].nil?
|
|
240
|
+
@resource_type = args[:resource_type] unless args[:resource_type].nil?
|
|
241
|
+
end
|
|
242
|
+
end
|
|
243
|
+
|
|
244
|
+
# JSON template for Calendar Resource List Response object in Directory API.
|
|
245
|
+
class CalendarResources
|
|
246
|
+
include Google::Apis::Core::Hashable
|
|
247
|
+
|
|
248
|
+
# ETag of the resource.
|
|
249
|
+
# Corresponds to the JSON property `etag`
|
|
250
|
+
# @return [String]
|
|
251
|
+
attr_accessor :etag
|
|
252
|
+
|
|
253
|
+
# The CalendarResources in this page of results.
|
|
254
|
+
# Corresponds to the JSON property `items`
|
|
255
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::CalendarResource>]
|
|
256
|
+
attr_accessor :items
|
|
257
|
+
|
|
258
|
+
# Identifies this as a collection of CalendarResources. This is always admin#
|
|
259
|
+
# directory#resources#calendars#calendarResourcesList.
|
|
260
|
+
# Corresponds to the JSON property `kind`
|
|
261
|
+
# @return [String]
|
|
262
|
+
attr_accessor :kind
|
|
263
|
+
|
|
264
|
+
# The continuation token, used to page through large result sets. Provide this
|
|
265
|
+
# value in a subsequent request to return the next page of results.
|
|
266
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
267
|
+
# @return [String]
|
|
268
|
+
attr_accessor :next_page_token
|
|
269
|
+
|
|
270
|
+
def initialize(**args)
|
|
271
|
+
update!(**args)
|
|
272
|
+
end
|
|
273
|
+
|
|
274
|
+
# Update properties of this object
|
|
275
|
+
def update!(**args)
|
|
276
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
277
|
+
@items = args[:items] unless args[:items].nil?
|
|
278
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
279
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
280
|
+
end
|
|
281
|
+
end
|
|
282
|
+
|
|
186
283
|
# An notification channel used to watch for resource changes.
|
|
187
284
|
class Channel
|
|
188
285
|
include Google::Apis::Core::Hashable
|
|
@@ -514,6 +611,318 @@ module Google
|
|
|
514
611
|
end
|
|
515
612
|
end
|
|
516
613
|
|
|
614
|
+
# JSON template for Customer Resource object in Directory API.
|
|
615
|
+
class Customer
|
|
616
|
+
include Google::Apis::Core::Hashable
|
|
617
|
+
|
|
618
|
+
# The customer's secondary contact email address. This email address cannot be
|
|
619
|
+
# on the same domain as the customerDomain
|
|
620
|
+
# Corresponds to the JSON property `alternateEmail`
|
|
621
|
+
# @return [String]
|
|
622
|
+
attr_accessor :alternate_email
|
|
623
|
+
|
|
624
|
+
# The customer's creation time (Readonly)
|
|
625
|
+
# Corresponds to the JSON property `customerCreationTime`
|
|
626
|
+
# @return [DateTime]
|
|
627
|
+
attr_accessor :customer_creation_time
|
|
628
|
+
|
|
629
|
+
# The customer's primary domain name string. Do not include the www prefix when
|
|
630
|
+
# creating a new customer.
|
|
631
|
+
# Corresponds to the JSON property `customerDomain`
|
|
632
|
+
# @return [String]
|
|
633
|
+
attr_accessor :customer_domain
|
|
634
|
+
|
|
635
|
+
# ETag of the resource.
|
|
636
|
+
# Corresponds to the JSON property `etag`
|
|
637
|
+
# @return [String]
|
|
638
|
+
attr_accessor :etag
|
|
639
|
+
|
|
640
|
+
# The unique ID for the customer's Google account. (Readonly)
|
|
641
|
+
# Corresponds to the JSON property `id`
|
|
642
|
+
# @return [String]
|
|
643
|
+
attr_accessor :id
|
|
644
|
+
|
|
645
|
+
# Identifies the resource as a customer. Value: admin#directory#customer
|
|
646
|
+
# Corresponds to the JSON property `kind`
|
|
647
|
+
# @return [String]
|
|
648
|
+
attr_accessor :kind
|
|
649
|
+
|
|
650
|
+
# The customer's ISO 639-2 language code. The default value is en-US
|
|
651
|
+
# Corresponds to the JSON property `language`
|
|
652
|
+
# @return [String]
|
|
653
|
+
attr_accessor :language
|
|
654
|
+
|
|
655
|
+
# The customer's contact phone number in E.164 format.
|
|
656
|
+
# Corresponds to the JSON property `phoneNumber`
|
|
657
|
+
# @return [String]
|
|
658
|
+
attr_accessor :phone_number
|
|
659
|
+
|
|
660
|
+
# JSON template for postal address of a customer.
|
|
661
|
+
# Corresponds to the JSON property `postalAddress`
|
|
662
|
+
# @return [Google::Apis::AdminDirectoryV1::CustomerPostalAddress]
|
|
663
|
+
attr_accessor :postal_address
|
|
664
|
+
|
|
665
|
+
def initialize(**args)
|
|
666
|
+
update!(**args)
|
|
667
|
+
end
|
|
668
|
+
|
|
669
|
+
# Update properties of this object
|
|
670
|
+
def update!(**args)
|
|
671
|
+
@alternate_email = args[:alternate_email] unless args[:alternate_email].nil?
|
|
672
|
+
@customer_creation_time = args[:customer_creation_time] unless args[:customer_creation_time].nil?
|
|
673
|
+
@customer_domain = args[:customer_domain] unless args[:customer_domain].nil?
|
|
674
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
675
|
+
@id = args[:id] unless args[:id].nil?
|
|
676
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
677
|
+
@language = args[:language] unless args[:language].nil?
|
|
678
|
+
@phone_number = args[:phone_number] unless args[:phone_number].nil?
|
|
679
|
+
@postal_address = args[:postal_address] unless args[:postal_address].nil?
|
|
680
|
+
end
|
|
681
|
+
end
|
|
682
|
+
|
|
683
|
+
# JSON template for postal address of a customer.
|
|
684
|
+
class CustomerPostalAddress
|
|
685
|
+
include Google::Apis::Core::Hashable
|
|
686
|
+
|
|
687
|
+
# A customer's physical address. The address can be composed of one to three
|
|
688
|
+
# lines.
|
|
689
|
+
# Corresponds to the JSON property `addressLine1`
|
|
690
|
+
# @return [String]
|
|
691
|
+
attr_accessor :address_line1
|
|
692
|
+
|
|
693
|
+
# Address line 2 of the address.
|
|
694
|
+
# Corresponds to the JSON property `addressLine2`
|
|
695
|
+
# @return [String]
|
|
696
|
+
attr_accessor :address_line2
|
|
697
|
+
|
|
698
|
+
# Address line 3 of the address.
|
|
699
|
+
# Corresponds to the JSON property `addressLine3`
|
|
700
|
+
# @return [String]
|
|
701
|
+
attr_accessor :address_line3
|
|
702
|
+
|
|
703
|
+
# The customer contact's name.
|
|
704
|
+
# Corresponds to the JSON property `contactName`
|
|
705
|
+
# @return [String]
|
|
706
|
+
attr_accessor :contact_name
|
|
707
|
+
|
|
708
|
+
# This is a required property. For countryCode information see the ISO 3166
|
|
709
|
+
# country code elements.
|
|
710
|
+
# Corresponds to the JSON property `countryCode`
|
|
711
|
+
# @return [String]
|
|
712
|
+
attr_accessor :country_code
|
|
713
|
+
|
|
714
|
+
# Name of the locality. An example of a locality value is the city of San
|
|
715
|
+
# Francisco.
|
|
716
|
+
# Corresponds to the JSON property `locality`
|
|
717
|
+
# @return [String]
|
|
718
|
+
attr_accessor :locality
|
|
719
|
+
|
|
720
|
+
# The company or company division name.
|
|
721
|
+
# Corresponds to the JSON property `organizationName`
|
|
722
|
+
# @return [String]
|
|
723
|
+
attr_accessor :organization_name
|
|
724
|
+
|
|
725
|
+
# The postal code. A postalCode example is a postal zip code such as 10009. This
|
|
726
|
+
# is in accordance with - http://portablecontacts.net/draft-spec.html#
|
|
727
|
+
# address_element.
|
|
728
|
+
# Corresponds to the JSON property `postalCode`
|
|
729
|
+
# @return [String]
|
|
730
|
+
attr_accessor :postal_code
|
|
731
|
+
|
|
732
|
+
# Name of the region. An example of a region value is NY for the state of New
|
|
733
|
+
# York.
|
|
734
|
+
# Corresponds to the JSON property `region`
|
|
735
|
+
# @return [String]
|
|
736
|
+
attr_accessor :region
|
|
737
|
+
|
|
738
|
+
def initialize(**args)
|
|
739
|
+
update!(**args)
|
|
740
|
+
end
|
|
741
|
+
|
|
742
|
+
# Update properties of this object
|
|
743
|
+
def update!(**args)
|
|
744
|
+
@address_line1 = args[:address_line1] unless args[:address_line1].nil?
|
|
745
|
+
@address_line2 = args[:address_line2] unless args[:address_line2].nil?
|
|
746
|
+
@address_line3 = args[:address_line3] unless args[:address_line3].nil?
|
|
747
|
+
@contact_name = args[:contact_name] unless args[:contact_name].nil?
|
|
748
|
+
@country_code = args[:country_code] unless args[:country_code].nil?
|
|
749
|
+
@locality = args[:locality] unless args[:locality].nil?
|
|
750
|
+
@organization_name = args[:organization_name] unless args[:organization_name].nil?
|
|
751
|
+
@postal_code = args[:postal_code] unless args[:postal_code].nil?
|
|
752
|
+
@region = args[:region] unless args[:region].nil?
|
|
753
|
+
end
|
|
754
|
+
end
|
|
755
|
+
|
|
756
|
+
# JSON template for Domain Alias object in Directory API.
|
|
757
|
+
class DomainAlias
|
|
758
|
+
include Google::Apis::Core::Hashable
|
|
759
|
+
|
|
760
|
+
# The creation time of the domain alias. (Read-only).
|
|
761
|
+
# Corresponds to the JSON property `creationTime`
|
|
762
|
+
# @return [String]
|
|
763
|
+
attr_accessor :creation_time
|
|
764
|
+
|
|
765
|
+
# The domain alias name.
|
|
766
|
+
# Corresponds to the JSON property `domainAliasName`
|
|
767
|
+
# @return [String]
|
|
768
|
+
attr_accessor :domain_alias_name
|
|
769
|
+
|
|
770
|
+
# ETag of the resource.
|
|
771
|
+
# Corresponds to the JSON property `etag`
|
|
772
|
+
# @return [String]
|
|
773
|
+
attr_accessor :etag
|
|
774
|
+
|
|
775
|
+
# Kind of resource this is.
|
|
776
|
+
# Corresponds to the JSON property `kind`
|
|
777
|
+
# @return [String]
|
|
778
|
+
attr_accessor :kind
|
|
779
|
+
|
|
780
|
+
# The parent domain name that the domain alias is associated with. This can
|
|
781
|
+
# either be a primary or secondary domain name within a customer.
|
|
782
|
+
# Corresponds to the JSON property `parentDomainName`
|
|
783
|
+
# @return [String]
|
|
784
|
+
attr_accessor :parent_domain_name
|
|
785
|
+
|
|
786
|
+
# Indicates the verification state of a domain alias. (Read-only)
|
|
787
|
+
# Corresponds to the JSON property `verified`
|
|
788
|
+
# @return [Boolean]
|
|
789
|
+
attr_accessor :verified
|
|
790
|
+
alias_method :verified?, :verified
|
|
791
|
+
|
|
792
|
+
def initialize(**args)
|
|
793
|
+
update!(**args)
|
|
794
|
+
end
|
|
795
|
+
|
|
796
|
+
# Update properties of this object
|
|
797
|
+
def update!(**args)
|
|
798
|
+
@creation_time = args[:creation_time] unless args[:creation_time].nil?
|
|
799
|
+
@domain_alias_name = args[:domain_alias_name] unless args[:domain_alias_name].nil?
|
|
800
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
801
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
802
|
+
@parent_domain_name = args[:parent_domain_name] unless args[:parent_domain_name].nil?
|
|
803
|
+
@verified = args[:verified] unless args[:verified].nil?
|
|
804
|
+
end
|
|
805
|
+
end
|
|
806
|
+
|
|
807
|
+
# JSON response template to list domain aliases in Directory API.
|
|
808
|
+
class DomainAliases
|
|
809
|
+
include Google::Apis::Core::Hashable
|
|
810
|
+
|
|
811
|
+
# List of domain alias objects.
|
|
812
|
+
# Corresponds to the JSON property `domainAliases`
|
|
813
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::DomainAlias>]
|
|
814
|
+
attr_accessor :domain_aliases
|
|
815
|
+
|
|
816
|
+
# ETag of the resource.
|
|
817
|
+
# Corresponds to the JSON property `etag`
|
|
818
|
+
# @return [String]
|
|
819
|
+
attr_accessor :etag
|
|
820
|
+
|
|
821
|
+
# Kind of resource this is.
|
|
822
|
+
# Corresponds to the JSON property `kind`
|
|
823
|
+
# @return [String]
|
|
824
|
+
attr_accessor :kind
|
|
825
|
+
|
|
826
|
+
def initialize(**args)
|
|
827
|
+
update!(**args)
|
|
828
|
+
end
|
|
829
|
+
|
|
830
|
+
# Update properties of this object
|
|
831
|
+
def update!(**args)
|
|
832
|
+
@domain_aliases = args[:domain_aliases] unless args[:domain_aliases].nil?
|
|
833
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
834
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
835
|
+
end
|
|
836
|
+
end
|
|
837
|
+
|
|
838
|
+
# JSON template for Domain object in Directory API.
|
|
839
|
+
class Domains
|
|
840
|
+
include Google::Apis::Core::Hashable
|
|
841
|
+
|
|
842
|
+
# Creation time of the domain. (Read-only).
|
|
843
|
+
# Corresponds to the JSON property `creationTime`
|
|
844
|
+
# @return [String]
|
|
845
|
+
attr_accessor :creation_time
|
|
846
|
+
|
|
847
|
+
# List of domain alias objects. (Read-only)
|
|
848
|
+
# Corresponds to the JSON property `domainAliases`
|
|
849
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::DomainAlias>]
|
|
850
|
+
attr_accessor :domain_aliases
|
|
851
|
+
|
|
852
|
+
# The domain name of the customer.
|
|
853
|
+
# Corresponds to the JSON property `domainName`
|
|
854
|
+
# @return [String]
|
|
855
|
+
attr_accessor :domain_name
|
|
856
|
+
|
|
857
|
+
# ETag of the resource.
|
|
858
|
+
# Corresponds to the JSON property `etag`
|
|
859
|
+
# @return [String]
|
|
860
|
+
attr_accessor :etag
|
|
861
|
+
|
|
862
|
+
# Indicates if the domain is a primary domain (Read-only).
|
|
863
|
+
# Corresponds to the JSON property `isPrimary`
|
|
864
|
+
# @return [Boolean]
|
|
865
|
+
attr_accessor :is_primary
|
|
866
|
+
alias_method :is_primary?, :is_primary
|
|
867
|
+
|
|
868
|
+
# Kind of resource this is.
|
|
869
|
+
# Corresponds to the JSON property `kind`
|
|
870
|
+
# @return [String]
|
|
871
|
+
attr_accessor :kind
|
|
872
|
+
|
|
873
|
+
# Indicates the verification state of a domain. (Read-only).
|
|
874
|
+
# Corresponds to the JSON property `verified`
|
|
875
|
+
# @return [Boolean]
|
|
876
|
+
attr_accessor :verified
|
|
877
|
+
alias_method :verified?, :verified
|
|
878
|
+
|
|
879
|
+
def initialize(**args)
|
|
880
|
+
update!(**args)
|
|
881
|
+
end
|
|
882
|
+
|
|
883
|
+
# Update properties of this object
|
|
884
|
+
def update!(**args)
|
|
885
|
+
@creation_time = args[:creation_time] unless args[:creation_time].nil?
|
|
886
|
+
@domain_aliases = args[:domain_aliases] unless args[:domain_aliases].nil?
|
|
887
|
+
@domain_name = args[:domain_name] unless args[:domain_name].nil?
|
|
888
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
889
|
+
@is_primary = args[:is_primary] unless args[:is_primary].nil?
|
|
890
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
891
|
+
@verified = args[:verified] unless args[:verified].nil?
|
|
892
|
+
end
|
|
893
|
+
end
|
|
894
|
+
|
|
895
|
+
# JSON response template to list Domains in Directory API.
|
|
896
|
+
class Domains2
|
|
897
|
+
include Google::Apis::Core::Hashable
|
|
898
|
+
|
|
899
|
+
# List of domain objects.
|
|
900
|
+
# Corresponds to the JSON property `domains`
|
|
901
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Domains>]
|
|
902
|
+
attr_accessor :domains
|
|
903
|
+
|
|
904
|
+
# ETag of the resource.
|
|
905
|
+
# Corresponds to the JSON property `etag`
|
|
906
|
+
# @return [String]
|
|
907
|
+
attr_accessor :etag
|
|
908
|
+
|
|
909
|
+
# Kind of resource this is.
|
|
910
|
+
# Corresponds to the JSON property `kind`
|
|
911
|
+
# @return [String]
|
|
912
|
+
attr_accessor :kind
|
|
913
|
+
|
|
914
|
+
def initialize(**args)
|
|
915
|
+
update!(**args)
|
|
916
|
+
end
|
|
917
|
+
|
|
918
|
+
# Update properties of this object
|
|
919
|
+
def update!(**args)
|
|
920
|
+
@domains = args[:domains] unless args[:domains].nil?
|
|
921
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
922
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
923
|
+
end
|
|
924
|
+
end
|
|
925
|
+
|
|
517
926
|
# JSON template for Group resource in Directory API.
|
|
518
927
|
class Group
|
|
519
928
|
include Google::Apis::Core::Hashable
|
|
@@ -1223,6 +1632,315 @@ module Google
|
|
|
1223
1632
|
end
|
|
1224
1633
|
end
|
|
1225
1634
|
|
|
1635
|
+
# JSON template for privilege resource in Directory API.
|
|
1636
|
+
class Privilege
|
|
1637
|
+
include Google::Apis::Core::Hashable
|
|
1638
|
+
|
|
1639
|
+
# A list of child privileges. Privileges for a service form a tree. Each
|
|
1640
|
+
# privilege can have a list of child privileges; this list is empty for a leaf
|
|
1641
|
+
# privilege.
|
|
1642
|
+
# Corresponds to the JSON property `childPrivileges`
|
|
1643
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Privilege>]
|
|
1644
|
+
attr_accessor :child_privileges
|
|
1645
|
+
|
|
1646
|
+
# ETag of the resource.
|
|
1647
|
+
# Corresponds to the JSON property `etag`
|
|
1648
|
+
# @return [String]
|
|
1649
|
+
attr_accessor :etag
|
|
1650
|
+
|
|
1651
|
+
# If the privilege can be restricted to an organization unit.
|
|
1652
|
+
# Corresponds to the JSON property `isOuScopable`
|
|
1653
|
+
# @return [Boolean]
|
|
1654
|
+
attr_accessor :is_ou_scopable
|
|
1655
|
+
alias_method :is_ou_scopable?, :is_ou_scopable
|
|
1656
|
+
|
|
1657
|
+
# The type of the API resource. This is always admin#directory#privilege.
|
|
1658
|
+
# Corresponds to the JSON property `kind`
|
|
1659
|
+
# @return [String]
|
|
1660
|
+
attr_accessor :kind
|
|
1661
|
+
|
|
1662
|
+
# The name of the privilege.
|
|
1663
|
+
# Corresponds to the JSON property `privilegeName`
|
|
1664
|
+
# @return [String]
|
|
1665
|
+
attr_accessor :privilege_name
|
|
1666
|
+
|
|
1667
|
+
# The obfuscated ID of the service this privilege is for.
|
|
1668
|
+
# Corresponds to the JSON property `serviceId`
|
|
1669
|
+
# @return [String]
|
|
1670
|
+
attr_accessor :service_id
|
|
1671
|
+
|
|
1672
|
+
# The name of the service this privilege is for.
|
|
1673
|
+
# Corresponds to the JSON property `serviceName`
|
|
1674
|
+
# @return [String]
|
|
1675
|
+
attr_accessor :service_name
|
|
1676
|
+
|
|
1677
|
+
def initialize(**args)
|
|
1678
|
+
update!(**args)
|
|
1679
|
+
end
|
|
1680
|
+
|
|
1681
|
+
# Update properties of this object
|
|
1682
|
+
def update!(**args)
|
|
1683
|
+
@child_privileges = args[:child_privileges] unless args[:child_privileges].nil?
|
|
1684
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1685
|
+
@is_ou_scopable = args[:is_ou_scopable] unless args[:is_ou_scopable].nil?
|
|
1686
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1687
|
+
@privilege_name = args[:privilege_name] unless args[:privilege_name].nil?
|
|
1688
|
+
@service_id = args[:service_id] unless args[:service_id].nil?
|
|
1689
|
+
@service_name = args[:service_name] unless args[:service_name].nil?
|
|
1690
|
+
end
|
|
1691
|
+
end
|
|
1692
|
+
|
|
1693
|
+
# JSON response template for List privileges operation in Directory API.
|
|
1694
|
+
class Privileges
|
|
1695
|
+
include Google::Apis::Core::Hashable
|
|
1696
|
+
|
|
1697
|
+
# ETag of the resource.
|
|
1698
|
+
# Corresponds to the JSON property `etag`
|
|
1699
|
+
# @return [String]
|
|
1700
|
+
attr_accessor :etag
|
|
1701
|
+
|
|
1702
|
+
# A list of Privilege resources.
|
|
1703
|
+
# Corresponds to the JSON property `items`
|
|
1704
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Privilege>]
|
|
1705
|
+
attr_accessor :items
|
|
1706
|
+
|
|
1707
|
+
# The type of the API resource. This is always admin#directory#privileges.
|
|
1708
|
+
# Corresponds to the JSON property `kind`
|
|
1709
|
+
# @return [String]
|
|
1710
|
+
attr_accessor :kind
|
|
1711
|
+
|
|
1712
|
+
def initialize(**args)
|
|
1713
|
+
update!(**args)
|
|
1714
|
+
end
|
|
1715
|
+
|
|
1716
|
+
# Update properties of this object
|
|
1717
|
+
def update!(**args)
|
|
1718
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1719
|
+
@items = args[:items] unless args[:items].nil?
|
|
1720
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1721
|
+
end
|
|
1722
|
+
end
|
|
1723
|
+
|
|
1724
|
+
# JSON template for role resource in Directory API.
|
|
1725
|
+
class Role
|
|
1726
|
+
include Google::Apis::Core::Hashable
|
|
1727
|
+
|
|
1728
|
+
# ETag of the resource.
|
|
1729
|
+
# Corresponds to the JSON property `etag`
|
|
1730
|
+
# @return [String]
|
|
1731
|
+
attr_accessor :etag
|
|
1732
|
+
|
|
1733
|
+
# Returns true if the role is a super admin role.
|
|
1734
|
+
# Corresponds to the JSON property `isSuperAdminRole`
|
|
1735
|
+
# @return [Boolean]
|
|
1736
|
+
attr_accessor :is_super_admin_role
|
|
1737
|
+
alias_method :is_super_admin_role?, :is_super_admin_role
|
|
1738
|
+
|
|
1739
|
+
# Returns true if this is a pre-defined system role.
|
|
1740
|
+
# Corresponds to the JSON property `isSystemRole`
|
|
1741
|
+
# @return [Boolean]
|
|
1742
|
+
attr_accessor :is_system_role
|
|
1743
|
+
alias_method :is_system_role?, :is_system_role
|
|
1744
|
+
|
|
1745
|
+
# The type of the API resource. This is always admin#directory#role.
|
|
1746
|
+
# Corresponds to the JSON property `kind`
|
|
1747
|
+
# @return [String]
|
|
1748
|
+
attr_accessor :kind
|
|
1749
|
+
|
|
1750
|
+
# A short description of the role.
|
|
1751
|
+
# Corresponds to the JSON property `roleDescription`
|
|
1752
|
+
# @return [String]
|
|
1753
|
+
attr_accessor :role_description
|
|
1754
|
+
|
|
1755
|
+
# ID of the role.
|
|
1756
|
+
# Corresponds to the JSON property `roleId`
|
|
1757
|
+
# @return [String]
|
|
1758
|
+
attr_accessor :role_id
|
|
1759
|
+
|
|
1760
|
+
# Name of the role.
|
|
1761
|
+
# Corresponds to the JSON property `roleName`
|
|
1762
|
+
# @return [String]
|
|
1763
|
+
attr_accessor :role_name
|
|
1764
|
+
|
|
1765
|
+
# The set of privileges that are granted to this role.
|
|
1766
|
+
# Corresponds to the JSON property `rolePrivileges`
|
|
1767
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Role::RolePrivilege>]
|
|
1768
|
+
attr_accessor :role_privileges
|
|
1769
|
+
|
|
1770
|
+
def initialize(**args)
|
|
1771
|
+
update!(**args)
|
|
1772
|
+
end
|
|
1773
|
+
|
|
1774
|
+
# Update properties of this object
|
|
1775
|
+
def update!(**args)
|
|
1776
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1777
|
+
@is_super_admin_role = args[:is_super_admin_role] unless args[:is_super_admin_role].nil?
|
|
1778
|
+
@is_system_role = args[:is_system_role] unless args[:is_system_role].nil?
|
|
1779
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1780
|
+
@role_description = args[:role_description] unless args[:role_description].nil?
|
|
1781
|
+
@role_id = args[:role_id] unless args[:role_id].nil?
|
|
1782
|
+
@role_name = args[:role_name] unless args[:role_name].nil?
|
|
1783
|
+
@role_privileges = args[:role_privileges] unless args[:role_privileges].nil?
|
|
1784
|
+
end
|
|
1785
|
+
|
|
1786
|
+
#
|
|
1787
|
+
class RolePrivilege
|
|
1788
|
+
include Google::Apis::Core::Hashable
|
|
1789
|
+
|
|
1790
|
+
# The name of the privilege.
|
|
1791
|
+
# Corresponds to the JSON property `privilegeName`
|
|
1792
|
+
# @return [String]
|
|
1793
|
+
attr_accessor :privilege_name
|
|
1794
|
+
|
|
1795
|
+
# The obfuscated ID of the service this privilege is for.
|
|
1796
|
+
# Corresponds to the JSON property `serviceId`
|
|
1797
|
+
# @return [String]
|
|
1798
|
+
attr_accessor :service_id
|
|
1799
|
+
|
|
1800
|
+
def initialize(**args)
|
|
1801
|
+
update!(**args)
|
|
1802
|
+
end
|
|
1803
|
+
|
|
1804
|
+
# Update properties of this object
|
|
1805
|
+
def update!(**args)
|
|
1806
|
+
@privilege_name = args[:privilege_name] unless args[:privilege_name].nil?
|
|
1807
|
+
@service_id = args[:service_id] unless args[:service_id].nil?
|
|
1808
|
+
end
|
|
1809
|
+
end
|
|
1810
|
+
end
|
|
1811
|
+
|
|
1812
|
+
# JSON template for roleAssignment resource in Directory API.
|
|
1813
|
+
class RoleAssignment
|
|
1814
|
+
include Google::Apis::Core::Hashable
|
|
1815
|
+
|
|
1816
|
+
# The unique ID of the user this role is assigned to.
|
|
1817
|
+
# Corresponds to the JSON property `assignedTo`
|
|
1818
|
+
# @return [String]
|
|
1819
|
+
attr_accessor :assigned_to
|
|
1820
|
+
|
|
1821
|
+
# ETag of the resource.
|
|
1822
|
+
# Corresponds to the JSON property `etag`
|
|
1823
|
+
# @return [String]
|
|
1824
|
+
attr_accessor :etag
|
|
1825
|
+
|
|
1826
|
+
# The type of the API resource. This is always admin#directory#roleAssignment.
|
|
1827
|
+
# Corresponds to the JSON property `kind`
|
|
1828
|
+
# @return [String]
|
|
1829
|
+
attr_accessor :kind
|
|
1830
|
+
|
|
1831
|
+
# If the role is restricted to an organization unit, this contains the ID for
|
|
1832
|
+
# the organization unit the exercise of this role is restricted to.
|
|
1833
|
+
# Corresponds to the JSON property `orgUnitId`
|
|
1834
|
+
# @return [String]
|
|
1835
|
+
attr_accessor :org_unit_id
|
|
1836
|
+
|
|
1837
|
+
# ID of this roleAssignment.
|
|
1838
|
+
# Corresponds to the JSON property `roleAssignmentId`
|
|
1839
|
+
# @return [String]
|
|
1840
|
+
attr_accessor :role_assignment_id
|
|
1841
|
+
|
|
1842
|
+
# The ID of the role that is assigned.
|
|
1843
|
+
# Corresponds to the JSON property `roleId`
|
|
1844
|
+
# @return [String]
|
|
1845
|
+
attr_accessor :role_id
|
|
1846
|
+
|
|
1847
|
+
# The scope in which this role is assigned. Possible values are:
|
|
1848
|
+
# - CUSTOMER
|
|
1849
|
+
# - ORG_UNIT
|
|
1850
|
+
# Corresponds to the JSON property `scopeType`
|
|
1851
|
+
# @return [String]
|
|
1852
|
+
attr_accessor :scope_type
|
|
1853
|
+
|
|
1854
|
+
def initialize(**args)
|
|
1855
|
+
update!(**args)
|
|
1856
|
+
end
|
|
1857
|
+
|
|
1858
|
+
# Update properties of this object
|
|
1859
|
+
def update!(**args)
|
|
1860
|
+
@assigned_to = args[:assigned_to] unless args[:assigned_to].nil?
|
|
1861
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1862
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1863
|
+
@org_unit_id = args[:org_unit_id] unless args[:org_unit_id].nil?
|
|
1864
|
+
@role_assignment_id = args[:role_assignment_id] unless args[:role_assignment_id].nil?
|
|
1865
|
+
@role_id = args[:role_id] unless args[:role_id].nil?
|
|
1866
|
+
@scope_type = args[:scope_type] unless args[:scope_type].nil?
|
|
1867
|
+
end
|
|
1868
|
+
end
|
|
1869
|
+
|
|
1870
|
+
# JSON response template for List roleAssignments operation in Directory API.
|
|
1871
|
+
class RoleAssignments
|
|
1872
|
+
include Google::Apis::Core::Hashable
|
|
1873
|
+
|
|
1874
|
+
# ETag of the resource.
|
|
1875
|
+
# Corresponds to the JSON property `etag`
|
|
1876
|
+
# @return [String]
|
|
1877
|
+
attr_accessor :etag
|
|
1878
|
+
|
|
1879
|
+
# A list of RoleAssignment resources.
|
|
1880
|
+
# Corresponds to the JSON property `items`
|
|
1881
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::RoleAssignment>]
|
|
1882
|
+
attr_accessor :items
|
|
1883
|
+
|
|
1884
|
+
# The type of the API resource. This is always admin#directory#roleAssignments.
|
|
1885
|
+
# Corresponds to the JSON property `kind`
|
|
1886
|
+
# @return [String]
|
|
1887
|
+
attr_accessor :kind
|
|
1888
|
+
|
|
1889
|
+
#
|
|
1890
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1891
|
+
# @return [String]
|
|
1892
|
+
attr_accessor :next_page_token
|
|
1893
|
+
|
|
1894
|
+
def initialize(**args)
|
|
1895
|
+
update!(**args)
|
|
1896
|
+
end
|
|
1897
|
+
|
|
1898
|
+
# Update properties of this object
|
|
1899
|
+
def update!(**args)
|
|
1900
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1901
|
+
@items = args[:items] unless args[:items].nil?
|
|
1902
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1903
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
1904
|
+
end
|
|
1905
|
+
end
|
|
1906
|
+
|
|
1907
|
+
# JSON response template for List roles operation in Directory API.
|
|
1908
|
+
class Roles
|
|
1909
|
+
include Google::Apis::Core::Hashable
|
|
1910
|
+
|
|
1911
|
+
# ETag of the resource.
|
|
1912
|
+
# Corresponds to the JSON property `etag`
|
|
1913
|
+
# @return [String]
|
|
1914
|
+
attr_accessor :etag
|
|
1915
|
+
|
|
1916
|
+
# A list of Role resources.
|
|
1917
|
+
# Corresponds to the JSON property `items`
|
|
1918
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Role>]
|
|
1919
|
+
attr_accessor :items
|
|
1920
|
+
|
|
1921
|
+
# The type of the API resource. This is always admin#directory#roles.
|
|
1922
|
+
# Corresponds to the JSON property `kind`
|
|
1923
|
+
# @return [String]
|
|
1924
|
+
attr_accessor :kind
|
|
1925
|
+
|
|
1926
|
+
#
|
|
1927
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1928
|
+
# @return [String]
|
|
1929
|
+
attr_accessor :next_page_token
|
|
1930
|
+
|
|
1931
|
+
def initialize(**args)
|
|
1932
|
+
update!(**args)
|
|
1933
|
+
end
|
|
1934
|
+
|
|
1935
|
+
# Update properties of this object
|
|
1936
|
+
def update!(**args)
|
|
1937
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1938
|
+
@items = args[:items] unless args[:items].nil?
|
|
1939
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1940
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
1941
|
+
end
|
|
1942
|
+
end
|
|
1943
|
+
|
|
1226
1944
|
# JSON template for Schema resource in Directory API.
|
|
1227
1945
|
class Schema
|
|
1228
1946
|
include Google::Apis::Core::Hashable
|