google-api-client 0.8.6 → 0.9
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/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +7 -0
- data/.rubocop_todo.yml +63 -0
- data/.travis.yml +22 -0
- data/.yardopts +12 -0
- data/CHANGELOG.md +41 -2
- data/CONTRIBUTING.md +31 -0
- data/Gemfile +32 -2
- data/MIGRATING.md +171 -0
- data/README.md +181 -148
- data/Rakefile +1 -40
- data/api_names.yaml +1036 -0
- data/api_names_out.yaml +26053 -0
- data/bin/generate-api +95 -0
- data/generated/google/apis/adexchangebuyer_v1_3.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +1335 -0
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +446 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +872 -0
- data/generated/google/apis/adexchangeseller_v2_0.rb +38 -0
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +309 -0
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +668 -0
- 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 +113 -0
- data/generated/google/apis/admin_directory_v1/classes.rb +3141 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1029 -0
- data/generated/google/apis/admin_directory_v1/service.rb +3818 -0
- data/generated/google/apis/admin_reports_v1.rb +38 -0
- data/generated/google/apis/admin_reports_v1/classes.rb +582 -0
- data/generated/google/apis/admin_reports_v1/representations.rb +231 -0
- data/generated/google/apis/admin_reports_v1/service.rb +336 -0
- data/generated/google/apis/adsense_v1_4.rb +38 -0
- data/generated/google/apis/adsense_v1_4/classes.rb +1285 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +494 -0
- data/generated/google/apis/adsense_v1_4/service.rb +1714 -0
- data/generated/google/apis/adsensehost_v4_1.rb +35 -0
- data/generated/google/apis/adsensehost_v4_1/classes.rb +834 -0
- data/generated/google/apis/adsensehost_v4_1/representations.rb +327 -0
- data/generated/google/apis/adsensehost_v4_1/service.rb +1164 -0
- data/generated/google/apis/analytics_v3.rb +49 -0
- data/generated/google/apis/analytics_v3/classes.rb +5118 -0
- data/generated/google/apis/analytics_v3/representations.rb +1662 -0
- data/generated/google/apis/analytics_v3/service.rb +3568 -0
- data/generated/google/apis/androidenterprise_v1.rb +35 -0
- data/generated/google/apis/androidenterprise_v1/classes.rb +1443 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +538 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +2602 -0
- data/generated/google/apis/androidpublisher_v2.rb +34 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +1411 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +646 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +2338 -0
- 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 +46 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +392 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +184 -0
- data/generated/google/apis/appsactivity_v1/service.rb +128 -0
- data/generated/google/apis/appstate_v1.rb +34 -0
- data/generated/google/apis/appstate_v1/classes.rb +154 -0
- data/generated/google/apis/appstate_v1/representations.rb +79 -0
- data/generated/google/apis/appstate_v1/service.rb +260 -0
- data/generated/google/apis/autoscaler_v1beta2.rb +38 -0
- data/generated/google/apis/autoscaler_v1beta2/classes.rb +747 -0
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +281 -0
- data/generated/google/apis/autoscaler_v1beta2/service.rb +478 -0
- data/generated/google/apis/bigquery_v2.rb +52 -0
- data/generated/google/apis/bigquery_v2/classes.rb +2471 -0
- data/generated/google/apis/bigquery_v2/representations.rb +816 -0
- data/generated/google/apis/bigquery_v2/service.rb +982 -0
- data/generated/google/apis/blogger_v3.rb +37 -0
- data/generated/google/apis/blogger_v3/classes.rb +1354 -0
- data/generated/google/apis/blogger_v3/representations.rb +562 -0
- data/generated/google/apis/blogger_v3/service.rb +1587 -0
- data/generated/google/apis/books_v1.rb +34 -0
- data/generated/google/apis/books_v1/classes.rb +3956 -0
- data/generated/google/apis/books_v1/representations.rb +1538 -0
- data/generated/google/apis/books_v1/service.rb +2290 -0
- data/generated/google/apis/calendar_v3.rb +37 -0
- data/generated/google/apis/calendar_v3/classes.rb +1742 -0
- data/generated/google/apis/calendar_v3/representations.rb +567 -0
- data/generated/google/apis/calendar_v3/service.rb +1968 -0
- data/{lib/google/api_client/service_account.rb → generated/google/apis/civicinfo_v2.rb} +18 -8
- data/generated/google/apis/civicinfo_v2/classes.rb +1127 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +383 -0
- data/generated/google/apis/civicinfo_v2/service.rb +279 -0
- 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/classroom_v1beta1.rb +49 -0
- data/generated/google/apis/classroom_v1beta1/classes.rb +447 -0
- data/generated/google/apis/classroom_v1beta1/representations.rb +190 -0
- data/generated/google/apis/classroom_v1beta1/service.rb +791 -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 +37 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/classes.rb +679 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/representations.rb +311 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +437 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +188 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +623 -0
- 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 +49 -0
- data/generated/google/apis/compute_v1/classes.rb +8681 -0
- data/generated/google/apis/compute_v1/representations.rb +2895 -0
- data/generated/google/apis/compute_v1/service.rb +9252 -0
- data/generated/google/apis/container_v1.rb +35 -0
- data/generated/google/apis/container_v1/classes.rb +463 -0
- data/generated/google/apis/container_v1/representations.rb +175 -0
- data/generated/google/apis/container_v1/service.rb +367 -0
- data/generated/google/apis/container_v1beta1.rb +35 -0
- data/generated/google/apis/container_v1beta1/classes.rb +466 -0
- data/generated/google/apis/container_v1beta1/representations.rb +177 -0
- data/generated/google/apis/container_v1beta1/service.rb +394 -0
- data/generated/google/apis/content_v2.rb +35 -0
- data/generated/google/apis/content_v2/classes.rb +5986 -0
- data/generated/google/apis/content_v2/representations.rb +2288 -0
- data/generated/google/apis/content_v2/service.rb +2338 -0
- data/generated/google/apis/coordinate_v1.rb +37 -0
- data/generated/google/apis/coordinate_v1/classes.rb +669 -0
- data/generated/google/apis/coordinate_v1/representations.rb +285 -0
- data/generated/google/apis/coordinate_v1/service.rb +678 -0
- data/{lib/google/api_client/auth/compute_service_account.rb → generated/google/apis/customsearch_v1.rb} +13 -10
- data/generated/google/apis/customsearch_v1/classes.rb +771 -0
- data/generated/google/apis/customsearch_v1/representations.rb +276 -0
- data/generated/google/apis/customsearch_v1/service.rb +207 -0
- data/generated/google/apis/datastore_v1beta2.rb +40 -0
- data/generated/google/apis/datastore_v1beta2/classes.rb +1186 -0
- data/generated/google/apis/datastore_v1beta2/representations.rb +526 -0
- data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1091 -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 +44 -0
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +843 -0
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +306 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +689 -0
- data/generated/google/apis/dfareporting_v2_1.rb +37 -0
- data/generated/google/apis/dfareporting_v2_1/classes.rb +10770 -0
- data/generated/google/apis/dfareporting_v2_1/representations.rb +3438 -0
- data/generated/google/apis/dfareporting_v2_1/service.rb +8585 -0
- data/generated/google/apis/discovery_v1.rb +32 -0
- data/generated/google/apis/discovery_v1/classes.rb +961 -0
- data/generated/google/apis/discovery_v1/representations.rb +357 -0
- data/generated/google/apis/discovery_v1/service.rb +142 -0
- data/generated/google/apis/dns_v1.rb +44 -0
- data/generated/google/apis/dns_v1/classes.rb +406 -0
- data/generated/google/apis/dns_v1/representations.rb +151 -0
- data/generated/google/apis/dns_v1/service.rb +454 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +716 -0
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +298 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +341 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +956 -0
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +316 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
- data/generated/google/apis/drive_v2.rb +58 -0
- data/generated/google/apis/drive_v2/classes.rb +2562 -0
- data/generated/google/apis/drive_v2/representations.rb +795 -0
- data/generated/google/apis/drive_v2/service.rb +2696 -0
- 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 +49 -0
- data/generated/google/apis/fitness_v1/classes.rb +885 -0
- data/generated/google/apis/fitness_v1/representations.rb +320 -0
- data/generated/google/apis/fitness_v1/service.rb +675 -0
- data/generated/google/apis/fusiontables_v2.rb +37 -0
- data/generated/google/apis/fusiontables_v2/classes.rb +1048 -0
- data/generated/google/apis/fusiontables_v2/representations.rb +409 -0
- data/generated/google/apis/fusiontables_v2/service.rb +1463 -0
- data/generated/google/apis/games_configuration_v1configuration.rb +34 -0
- data/generated/google/apis/games_configuration_v1configuration/classes.rb +506 -0
- data/generated/google/apis/games_configuration_v1configuration/representations.rb +206 -0
- data/generated/google/apis/games_configuration_v1configuration/service.rb +565 -0
- 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 +40 -0
- data/generated/google/apis/games_v1/classes.rb +4617 -0
- data/generated/google/apis/games_v1/representations.rb +1584 -0
- data/generated/google/apis/games_v1/service.rb +2290 -0
- data/generated/google/apis/gan_v1beta1.rb +31 -0
- data/generated/google/apis/gan_v1beta1/classes.rb +1428 -0
- data/generated/google/apis/gan_v1beta1/representations.rb +428 -0
- data/generated/google/apis/gan_v1beta1/service.rb +682 -0
- data/generated/google/apis/genomics_v1.rb +49 -0
- data/generated/google/apis/genomics_v1/classes.rb +2609 -0
- data/generated/google/apis/genomics_v1/representations.rb +909 -0
- data/generated/google/apis/genomics_v1/service.rb +1676 -0
- data/generated/google/apis/genomics_v1beta2.rb +46 -0
- data/generated/google/apis/genomics_v1beta2/classes.rb +3288 -0
- data/generated/google/apis/genomics_v1beta2/representations.rb +1194 -0
- data/generated/google/apis/genomics_v1beta2/service.rb +2392 -0
- data/generated/google/apis/gmail_v1.rb +52 -0
- data/generated/google/apis/gmail_v1/classes.rb +794 -0
- data/generated/google/apis/gmail_v1/representations.rb +339 -0
- data/generated/google/apis/gmail_v1/service.rb +1470 -0
- data/generated/google/apis/groupsmigration_v1.rb +34 -0
- data/generated/google/apis/groupsmigration_v1/classes.rb +51 -0
- data/generated/google/apis/groupsmigration_v1/representations.rb +38 -0
- data/generated/google/apis/groupsmigration_v1/service.rb +110 -0
- data/generated/google/apis/groupssettings_v1.rb +34 -0
- data/generated/google/apis/groupssettings_v1/classes.rb +221 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +64 -0
- data/generated/google/apis/groupssettings_v1/service.rb +179 -0
- data/generated/google/apis/identitytoolkit_v3.rb +31 -0
- data/generated/google/apis/identitytoolkit_v3/classes.rb +1466 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +509 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +581 -0
- data/{spec/google/api_client/request_spec.rb → generated/google/apis/kgsearch_v1.rb} +16 -13
- 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 +34 -0
- data/generated/google/apis/licensing_v1/classes.rb +132 -0
- data/generated/google/apis/licensing_v1/representations.rb +68 -0
- data/generated/google/apis/licensing_v1/service.rb +369 -0
- data/generated/google/apis/logging_v1beta3.rb +47 -0
- data/generated/google/apis/logging_v1beta3/classes.rb +1079 -0
- data/generated/google/apis/logging_v1beta3/representations.rb +366 -0
- data/generated/google/apis/logging_v1beta3/service.rb +1001 -0
- data/generated/google/apis/manager_v1beta2.rb +53 -0
- data/generated/google/apis/manager_v1beta2/classes.rb +1287 -0
- data/generated/google/apis/manager_v1beta2/representations.rb +536 -0
- data/generated/google/apis/manager_v1beta2/service.rb +372 -0
- data/generated/google/apis/mapsengine_v1.rb +38 -0
- data/generated/google/apis/mapsengine_v1/classes.rb +2873 -0
- data/generated/google/apis/mapsengine_v1/representations.rb +1235 -0
- data/generated/google/apis/mapsengine_v1/service.rb +3388 -0
- data/generated/google/apis/mirror_v1.rb +37 -0
- data/generated/google/apis/mirror_v1/classes.rb +1072 -0
- data/generated/google/apis/mirror_v1/representations.rb +350 -0
- data/generated/google/apis/mirror_v1/service.rb +977 -0
- data/generated/google/apis/oauth2_v2.rb +43 -0
- data/generated/google/apis/oauth2_v2/classes.rb +245 -0
- data/generated/google/apis/oauth2_v2/representations.rb +94 -0
- data/generated/google/apis/oauth2_v2/service.rb +199 -0
- data/generated/google/apis/pagespeedonline_v2.rb +32 -0
- data/generated/google/apis/pagespeedonline_v2/classes.rb +614 -0
- data/generated/google/apis/pagespeedonline_v2/representations.rb +244 -0
- data/generated/google/apis/pagespeedonline_v2/service.rb +119 -0
- 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 +61 -0
- data/generated/google/apis/plus_domains_v1/classes.rb +2609 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +987 -0
- data/generated/google/apis/plus_domains_v1/service.rb +904 -0
- data/generated/google/apis/plus_v1.rb +43 -0
- data/generated/google/apis/plus_v1/classes.rb +2094 -0
- data/generated/google/apis/plus_v1/representations.rb +805 -0
- data/generated/google/apis/plus_v1/service.rb +470 -0
- data/generated/google/apis/prediction_v1_6.rb +44 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
- data/generated/google/apis/prediction_v1_6/representations.rb +327 -0
- data/generated/google/apis/prediction_v1_6/service.rb +380 -0
- 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 +37 -0
- data/generated/google/apis/pubsub_v1beta2/classes.rb +620 -0
- data/generated/google/apis/pubsub_v1beta2/representations.rb +282 -0
- data/generated/google/apis/pubsub_v1beta2/service.rb +774 -0
- data/generated/google/apis/qpx_express_v1.rb +31 -0
- data/generated/google/apis/qpx_express_v1/classes.rb +1268 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +424 -0
- data/generated/google/apis/qpx_express_v1/service.rb +100 -0
- data/generated/google/apis/replicapool_v1beta2.rb +44 -0
- data/generated/google/apis/replicapool_v1beta2/classes.rb +631 -0
- data/generated/google/apis/replicapool_v1beta2/representations.rb +236 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +44 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +264 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +508 -0
- data/generated/google/apis/reseller_v1.rb +37 -0
- data/generated/google/apis/reseller_v1/classes.rb +520 -0
- data/generated/google/apis/reseller_v1/representations.rb +200 -0
- data/generated/google/apis/reseller_v1/service.rb +623 -0
- data/generated/google/apis/resourceviews_v1beta2.rb +50 -0
- data/generated/google/apis/resourceviews_v1beta2/classes.rb +660 -0
- data/generated/google/apis/resourceviews_v1beta2/representations.rb +269 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
- 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 +37 -0
- data/generated/google/apis/site_verification_v1/classes.rb +185 -0
- data/generated/google/apis/site_verification_v1/representations.rb +101 -0
- data/generated/google/apis/site_verification_v1/service.rb +315 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +37 -0
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +2001 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +758 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1625 -0
- data/generated/google/apis/storage_v1.rb +46 -0
- data/generated/google/apis/storage_v1/classes.rb +1222 -0
- data/generated/google/apis/storage_v1/representations.rb +445 -0
- data/generated/google/apis/storage_v1/service.rb +1903 -0
- 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 +52 -0
- data/generated/google/apis/tagmanager_v1/classes.rb +1384 -0
- data/generated/google/apis/tagmanager_v1/representations.rb +515 -0
- data/generated/google/apis/tagmanager_v1/service.rb +1817 -0
- data/generated/google/apis/taskqueue_v1beta2.rb +37 -0
- data/generated/google/apis/taskqueue_v1beta2/classes.rb +254 -0
- data/generated/google/apis/taskqueue_v1beta2/representations.rb +114 -0
- data/generated/google/apis/taskqueue_v1beta2/service.rb +408 -0
- data/generated/google/apis/tasks_v1.rb +37 -0
- data/generated/google/apis/tasks_v1/classes.rb +296 -0
- data/generated/google/apis/tasks_v1/representations.rb +115 -0
- data/generated/google/apis/tasks_v1/service.rb +643 -0
- data/generated/google/apis/translate_v2.rb +31 -0
- data/generated/google/apis/translate_v2/classes.rb +168 -0
- data/generated/google/apis/translate_v2/representations.rb +109 -0
- data/generated/google/apis/translate_v2/service.rb +182 -0
- data/generated/google/apis/urlshortener_v1.rb +34 -0
- data/generated/google/apis/urlshortener_v1/classes.rb +246 -0
- data/generated/google/apis/urlshortener_v1/representations.rb +111 -0
- data/generated/google/apis/urlshortener_v1/service.rb +176 -0
- data/generated/google/apis/webmasters_v3.rb +37 -0
- data/generated/google/apis/webmasters_v3/classes.rb +563 -0
- data/generated/google/apis/webmasters_v3/representations.rb +250 -0
- data/generated/google/apis/webmasters_v3/service.rb +573 -0
- data/generated/google/apis/youtube_analytics_v1.rb +46 -0
- data/generated/google/apis/youtube_analytics_v1/classes.rb +546 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +243 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +562 -0
- data/generated/google/apis/youtube_v3.rb +49 -0
- data/generated/google/apis/youtube_v3/classes.rb +8136 -0
- data/generated/google/apis/youtube_v3/representations.rb +2838 -0
- data/generated/google/apis/youtube_v3/service.rb +4403 -0
- 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 +27 -39
- data/lib/google/api_client/auth/installed_app.rb +7 -5
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +4 -2
- data/lib/google/api_client/auth/storages/file_store.rb +2 -3
- data/lib/google/api_client/auth/storages/redis_store.rb +7 -2
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis.rb +48 -0
- data/lib/google/apis/core/api_command.rb +135 -0
- data/lib/google/apis/core/base_service.rb +317 -0
- data/lib/google/apis/core/batch.rb +239 -0
- data/lib/google/apis/core/download.rb +94 -0
- data/lib/google/apis/core/hashable.rb +44 -0
- data/lib/google/apis/core/http_client_adapter.rb +82 -0
- data/lib/google/apis/core/http_command.rb +312 -0
- data/lib/google/apis/core/json_representation.rb +127 -0
- data/lib/google/{api_client/version.rb → apis/core/logging.rb} +12 -8
- data/lib/google/apis/core/multipart.rb +187 -0
- data/lib/google/apis/core/upload.rb +288 -0
- data/lib/google/{api_client → apis}/errors.rb +39 -28
- data/lib/google/apis/generator.rb +70 -0
- data/lib/google/apis/generator/annotator.rb +295 -0
- data/lib/google/apis/generator/helpers.rb +74 -0
- data/lib/google/apis/generator/model.rb +143 -0
- data/lib/google/apis/generator/template.rb +124 -0
- data/lib/google/apis/generator/templates/_class.tmpl +40 -0
- data/lib/google/apis/generator/templates/_method.tmpl +92 -0
- data/lib/google/apis/generator/templates/_representation.tmpl +51 -0
- data/lib/google/apis/generator/templates/_representation_stub.tmpl +15 -0
- data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
- data/lib/google/{api_client/reference.rb → apis/generator/templates/classes.rb.tmpl} +11 -9
- data/lib/google/apis/generator/templates/module.rb.tmpl +40 -0
- data/lib/google/apis/generator/templates/representations.rb.tmpl +32 -0
- data/lib/google/apis/generator/templates/service.rb.tmpl +60 -0
- data/lib/google/apis/options.rb +85 -0
- data/lib/google/apis/version.rb +39 -0
- data/rakelib/metrics.rake +22 -0
- data/rakelib/rubocop.rake +10 -0
- data/rakelib/spec.rake +11 -0
- data/rakelib/yard.rake +11 -0
- data/samples/Gemfile +7 -0
- data/samples/README.md +51 -0
- data/samples/google-api-samples +32 -0
- data/samples/lib/base_cli.rb +94 -0
- data/samples/lib/samples/analytics.rb +62 -0
- data/samples/lib/samples/calendar.rb +83 -0
- data/samples/lib/samples/drive.rb +82 -0
- data/samples/lib/samples/gmail.rb +50 -0
- data/samples/lib/samples/pubsub.rb +114 -0
- data/samples/lib/samples/translate.rb +44 -0
- data/samples/lib/samples/you_tube.rb +44 -0
- data/script/generate +95 -0
- data/script/package +8 -0
- data/script/release +15 -0
- data/spec/fixtures/files/api_names.yaml +3 -0
- data/spec/fixtures/files/auth_stored_credentials.json +8 -0
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/client_secrets.json +1 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/fixtures/files/test.blah +1 -0
- data/spec/fixtures/files/test.txt +1 -0
- data/spec/fixtures/files/test_api.json +440 -0
- data/spec/google/api_client/auth/storage_spec.rb +1 -3
- data/spec/google/api_client/auth/storages/file_store_spec.rb +1 -2
- data/spec/google/api_client/auth/storages/redis_store_spec.rb +1 -3
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/api_command_spec.rb +209 -0
- data/spec/google/apis/core/batch_spec.rb +142 -0
- data/spec/google/apis/core/download_spec.rb +103 -0
- data/spec/google/apis/core/hashable_spec.rb +60 -0
- data/spec/google/apis/core/http_command_spec.rb +284 -0
- data/spec/google/apis/core/json_representation_spec.rb +192 -0
- data/spec/google/apis/core/service_spec.rb +247 -0
- data/spec/google/apis/core/upload_spec.rb +300 -0
- data/{lib/google/api_client/discovery.rb → spec/google/apis/generated_spec.rb} +13 -5
- data/spec/google/apis/generator/generator_spec.rb +272 -0
- data/spec/google/apis/logging_spec.rb +45 -0
- data/spec/google/apis/options_spec.rb +40 -0
- data/spec/integration_tests/adsense_spec.rb +29 -0
- data/spec/integration_tests/drive_spec.rb +35 -0
- data/spec/integration_tests/pubsub_spec.rb +48 -0
- data/spec/integration_tests/url_shortener_spec.rb +45 -0
- data/spec/spec_helper.rb +131 -44
- data/spec/spec_helper/load_path_spec.rb +33 -0
- data/third_party/hurley_patches.rb +103 -0
- metadata +533 -170
- data/lib/compat/multi_json.rb +0 -19
- data/lib/google/api_client.rb +0 -750
- data/lib/google/api_client/auth/file_storage.rb +0 -59
- data/lib/google/api_client/auth/jwt_asserter.rb +0 -126
- data/lib/google/api_client/auth/pkcs12.rb +0 -41
- data/lib/google/api_client/batch.rb +0 -326
- data/lib/google/api_client/charset.rb +0 -33
- data/lib/google/api_client/discovery/api.rb +0 -310
- data/lib/google/api_client/discovery/media.rb +0 -77
- data/lib/google/api_client/discovery/method.rb +0 -363
- data/lib/google/api_client/discovery/resource.rb +0 -156
- data/lib/google/api_client/discovery/schema.rb +0 -117
- data/lib/google/api_client/environment.rb +0 -42
- data/lib/google/api_client/gzip.rb +0 -28
- data/lib/google/api_client/logging.rb +0 -32
- data/lib/google/api_client/media.rb +0 -259
- data/lib/google/api_client/railtie.rb +0 -18
- data/lib/google/api_client/request.rb +0 -350
- data/lib/google/api_client/result.rb +0 -255
- data/lib/google/api_client/service.rb +0 -233
- data/lib/google/api_client/service/batch.rb +0 -110
- data/lib/google/api_client/service/request.rb +0 -144
- data/lib/google/api_client/service/resource.rb +0 -40
- data/lib/google/api_client/service/result.rb +0 -162
- data/lib/google/api_client/service/simple_file_store.rb +0 -151
- data/lib/google/api_client/service/stub_generator.rb +0 -61
- data/spec/google/api_client/batch_spec.rb +0 -248
- data/spec/google/api_client/discovery_spec.rb +0 -708
- data/spec/google/api_client/gzip_spec.rb +0 -98
- data/spec/google/api_client/media_spec.rb +0 -178
- data/spec/google/api_client/result_spec.rb +0 -207
- data/spec/google/api_client/service_account_spec.rb +0 -169
- data/spec/google/api_client/service_spec.rb +0 -618
- data/spec/google/api_client/simple_file_store_spec.rb +0 -133
- data/spec/google/api_client_spec.rb +0 -352
|
@@ -0,0 +1,113 @@
|
|
|
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/admin_directory_v1/service.rb'
|
|
16
|
+
require 'google/apis/admin_directory_v1/classes.rb'
|
|
17
|
+
require 'google/apis/admin_directory_v1/representations.rb'
|
|
18
|
+
|
|
19
|
+
module Google
|
|
20
|
+
module Apis
|
|
21
|
+
# Admin Directory API
|
|
22
|
+
#
|
|
23
|
+
# The Admin SDK Directory API lets you view and manage enterprise resources such
|
|
24
|
+
# as users and groups, administrative notifications, security features, and more.
|
|
25
|
+
#
|
|
26
|
+
# @see https://developers.google.com/admin-sdk/directory/
|
|
27
|
+
module AdminDirectoryV1
|
|
28
|
+
VERSION = 'DirectoryV1'
|
|
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'
|
|
36
|
+
|
|
37
|
+
# View and manage your Chrome OS devices' metadata
|
|
38
|
+
AUTH_ADMIN_DIRECTORY_DEVICE_CHROMEOS = 'https://www.googleapis.com/auth/admin.directory.device.chromeos'
|
|
39
|
+
|
|
40
|
+
# View your Chrome OS devices' metadata
|
|
41
|
+
AUTH_ADMIN_DIRECTORY_DEVICE_CHROMEOS_READONLY = 'https://www.googleapis.com/auth/admin.directory.device.chromeos.readonly'
|
|
42
|
+
|
|
43
|
+
# View and manage your mobile devices' metadata
|
|
44
|
+
AUTH_ADMIN_DIRECTORY_DEVICE_MOBILE = 'https://www.googleapis.com/auth/admin.directory.device.mobile'
|
|
45
|
+
|
|
46
|
+
# Manage your mobile devices by performing administrative tasks
|
|
47
|
+
AUTH_ADMIN_DIRECTORY_DEVICE_MOBILE_ACTION = 'https://www.googleapis.com/auth/admin.directory.device.mobile.action'
|
|
48
|
+
|
|
49
|
+
# View your mobile devices' metadata
|
|
50
|
+
AUTH_ADMIN_DIRECTORY_DEVICE_MOBILE_READONLY = 'https://www.googleapis.com/auth/admin.directory.device.mobile.readonly'
|
|
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
|
+
|
|
58
|
+
# View and manage the provisioning of groups on your domain
|
|
59
|
+
AUTH_ADMIN_DIRECTORY_GROUP = 'https://www.googleapis.com/auth/admin.directory.group'
|
|
60
|
+
|
|
61
|
+
# View and manage group subscriptions on your domain
|
|
62
|
+
AUTH_ADMIN_DIRECTORY_GROUP_MEMBER = 'https://www.googleapis.com/auth/admin.directory.group.member'
|
|
63
|
+
|
|
64
|
+
# View group subscriptions on your domain
|
|
65
|
+
AUTH_ADMIN_DIRECTORY_GROUP_MEMBER_READONLY = 'https://www.googleapis.com/auth/admin.directory.group.member.readonly'
|
|
66
|
+
|
|
67
|
+
# View groups on your domain
|
|
68
|
+
AUTH_ADMIN_DIRECTORY_GROUP_READONLY = 'https://www.googleapis.com/auth/admin.directory.group.readonly'
|
|
69
|
+
|
|
70
|
+
# View and manage notifications received on your domain
|
|
71
|
+
AUTH_ADMIN_DIRECTORY_NOTIFICATIONS = 'https://www.googleapis.com/auth/admin.directory.notifications'
|
|
72
|
+
|
|
73
|
+
# View and manage organization units on your domain
|
|
74
|
+
AUTH_ADMIN_DIRECTORY_ORGUNIT = 'https://www.googleapis.com/auth/admin.directory.orgunit'
|
|
75
|
+
|
|
76
|
+
# View organization units on your domain
|
|
77
|
+
AUTH_ADMIN_DIRECTORY_ORGUNIT_READONLY = 'https://www.googleapis.com/auth/admin.directory.orgunit.readonly'
|
|
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
|
+
|
|
91
|
+
# View and manage the provisioning of users on your domain
|
|
92
|
+
AUTH_ADMIN_DIRECTORY_USER = 'https://www.googleapis.com/auth/admin.directory.user'
|
|
93
|
+
|
|
94
|
+
# View and manage user aliases on your domain
|
|
95
|
+
AUTH_ADMIN_DIRECTORY_USER_ALIAS = 'https://www.googleapis.com/auth/admin.directory.user.alias'
|
|
96
|
+
|
|
97
|
+
# View user aliases on your domain
|
|
98
|
+
AUTH_ADMIN_DIRECTORY_USER_ALIAS_READONLY = 'https://www.googleapis.com/auth/admin.directory.user.alias.readonly'
|
|
99
|
+
|
|
100
|
+
# View users on your domain
|
|
101
|
+
AUTH_ADMIN_DIRECTORY_USER_READONLY = 'https://www.googleapis.com/auth/admin.directory.user.readonly'
|
|
102
|
+
|
|
103
|
+
# Manage data access permissions for users on your domain
|
|
104
|
+
AUTH_ADMIN_DIRECTORY_USER_SECURITY = 'https://www.googleapis.com/auth/admin.directory.user.security'
|
|
105
|
+
|
|
106
|
+
# View and manage the provisioning of user schemas on your domain
|
|
107
|
+
AUTH_ADMIN_DIRECTORY_USERSCHEMA = 'https://www.googleapis.com/auth/admin.directory.userschema'
|
|
108
|
+
|
|
109
|
+
# View user schemas on your domain
|
|
110
|
+
AUTH_ADMIN_DIRECTORY_USERSCHEMA_READONLY = 'https://www.googleapis.com/auth/admin.directory.userschema.readonly'
|
|
111
|
+
end
|
|
112
|
+
end
|
|
113
|
+
end
|
|
@@ -0,0 +1,3141 @@
|
|
|
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 AdminDirectoryV1
|
|
24
|
+
|
|
25
|
+
# JSON template for Alias object in Directory API.
|
|
26
|
+
class Alias
|
|
27
|
+
include Google::Apis::Core::Hashable
|
|
28
|
+
|
|
29
|
+
# A alias email
|
|
30
|
+
# Corresponds to the JSON property `alias`
|
|
31
|
+
# @return [String]
|
|
32
|
+
attr_accessor :alias
|
|
33
|
+
|
|
34
|
+
# ETag of the resource.
|
|
35
|
+
# Corresponds to the JSON property `etag`
|
|
36
|
+
# @return [String]
|
|
37
|
+
attr_accessor :etag
|
|
38
|
+
|
|
39
|
+
# Unique id of the group (Read-only) Unique id of the user (Read-only)
|
|
40
|
+
# Corresponds to the JSON property `id`
|
|
41
|
+
# @return [String]
|
|
42
|
+
attr_accessor :id
|
|
43
|
+
|
|
44
|
+
# Kind of resource this is.
|
|
45
|
+
# Corresponds to the JSON property `kind`
|
|
46
|
+
# @return [String]
|
|
47
|
+
attr_accessor :kind
|
|
48
|
+
|
|
49
|
+
# Group's primary email (Read-only) User's primary email (Read-only)
|
|
50
|
+
# Corresponds to the JSON property `primaryEmail`
|
|
51
|
+
# @return [String]
|
|
52
|
+
attr_accessor :primary_email
|
|
53
|
+
|
|
54
|
+
def initialize(**args)
|
|
55
|
+
update!(**args)
|
|
56
|
+
end
|
|
57
|
+
|
|
58
|
+
# Update properties of this object
|
|
59
|
+
def update!(**args)
|
|
60
|
+
@alias = args[:alias] unless args[:alias].nil?
|
|
61
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
62
|
+
@id = args[:id] unless args[:id].nil?
|
|
63
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
64
|
+
@primary_email = args[:primary_email] unless args[:primary_email].nil?
|
|
65
|
+
end
|
|
66
|
+
end
|
|
67
|
+
|
|
68
|
+
# JSON response template to list aliases in Directory API.
|
|
69
|
+
class Aliases
|
|
70
|
+
include Google::Apis::Core::Hashable
|
|
71
|
+
|
|
72
|
+
# List of alias objects.
|
|
73
|
+
# Corresponds to the JSON property `aliases`
|
|
74
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Alias>]
|
|
75
|
+
attr_accessor :aliases
|
|
76
|
+
|
|
77
|
+
# ETag of the resource.
|
|
78
|
+
# Corresponds to the JSON property `etag`
|
|
79
|
+
# @return [String]
|
|
80
|
+
attr_accessor :etag
|
|
81
|
+
|
|
82
|
+
# Kind of resource this is.
|
|
83
|
+
# Corresponds to the JSON property `kind`
|
|
84
|
+
# @return [String]
|
|
85
|
+
attr_accessor :kind
|
|
86
|
+
|
|
87
|
+
def initialize(**args)
|
|
88
|
+
update!(**args)
|
|
89
|
+
end
|
|
90
|
+
|
|
91
|
+
# Update properties of this object
|
|
92
|
+
def update!(**args)
|
|
93
|
+
@aliases = args[:aliases] unless args[:aliases].nil?
|
|
94
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
95
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
96
|
+
end
|
|
97
|
+
end
|
|
98
|
+
|
|
99
|
+
# The template that returns individual ASP (Access Code) data.
|
|
100
|
+
class Asp
|
|
101
|
+
include Google::Apis::Core::Hashable
|
|
102
|
+
|
|
103
|
+
# The unique ID of the ASP.
|
|
104
|
+
# Corresponds to the JSON property `codeId`
|
|
105
|
+
# @return [Fixnum]
|
|
106
|
+
attr_accessor :code_id
|
|
107
|
+
|
|
108
|
+
# The time when the ASP was created. Expressed in Unix time format.
|
|
109
|
+
# Corresponds to the JSON property `creationTime`
|
|
110
|
+
# @return [String]
|
|
111
|
+
attr_accessor :creation_time
|
|
112
|
+
|
|
113
|
+
# ETag of the ASP.
|
|
114
|
+
# Corresponds to the JSON property `etag`
|
|
115
|
+
# @return [String]
|
|
116
|
+
attr_accessor :etag
|
|
117
|
+
|
|
118
|
+
# The type of the API resource. This is always admin#directory#asp.
|
|
119
|
+
# Corresponds to the JSON property `kind`
|
|
120
|
+
# @return [String]
|
|
121
|
+
attr_accessor :kind
|
|
122
|
+
|
|
123
|
+
# The time when the ASP was last used. Expressed in Unix time format.
|
|
124
|
+
# Corresponds to the JSON property `lastTimeUsed`
|
|
125
|
+
# @return [String]
|
|
126
|
+
attr_accessor :last_time_used
|
|
127
|
+
|
|
128
|
+
# The name of the application that the user, represented by their userId,
|
|
129
|
+
# entered when the ASP was created.
|
|
130
|
+
# Corresponds to the JSON property `name`
|
|
131
|
+
# @return [String]
|
|
132
|
+
attr_accessor :name
|
|
133
|
+
|
|
134
|
+
# The unique ID of the user who issued the ASP.
|
|
135
|
+
# Corresponds to the JSON property `userKey`
|
|
136
|
+
# @return [String]
|
|
137
|
+
attr_accessor :user_key
|
|
138
|
+
|
|
139
|
+
def initialize(**args)
|
|
140
|
+
update!(**args)
|
|
141
|
+
end
|
|
142
|
+
|
|
143
|
+
# Update properties of this object
|
|
144
|
+
def update!(**args)
|
|
145
|
+
@code_id = args[:code_id] unless args[:code_id].nil?
|
|
146
|
+
@creation_time = args[:creation_time] unless args[:creation_time].nil?
|
|
147
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
148
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
149
|
+
@last_time_used = args[:last_time_used] unless args[:last_time_used].nil?
|
|
150
|
+
@name = args[:name] unless args[:name].nil?
|
|
151
|
+
@user_key = args[:user_key] unless args[:user_key].nil?
|
|
152
|
+
end
|
|
153
|
+
end
|
|
154
|
+
|
|
155
|
+
#
|
|
156
|
+
class Asps
|
|
157
|
+
include Google::Apis::Core::Hashable
|
|
158
|
+
|
|
159
|
+
# ETag of the resource.
|
|
160
|
+
# Corresponds to the JSON property `etag`
|
|
161
|
+
# @return [String]
|
|
162
|
+
attr_accessor :etag
|
|
163
|
+
|
|
164
|
+
# A list of ASP resources.
|
|
165
|
+
# Corresponds to the JSON property `items`
|
|
166
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Asp>]
|
|
167
|
+
attr_accessor :items
|
|
168
|
+
|
|
169
|
+
# The type of the API resource. This is always admin#directory#aspList.
|
|
170
|
+
# Corresponds to the JSON property `kind`
|
|
171
|
+
# @return [String]
|
|
172
|
+
attr_accessor :kind
|
|
173
|
+
|
|
174
|
+
def initialize(**args)
|
|
175
|
+
update!(**args)
|
|
176
|
+
end
|
|
177
|
+
|
|
178
|
+
# Update properties of this object
|
|
179
|
+
def update!(**args)
|
|
180
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
181
|
+
@items = args[:items] unless args[:items].nil?
|
|
182
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
183
|
+
end
|
|
184
|
+
end
|
|
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
|
+
|
|
283
|
+
# An notification channel used to watch for resource changes.
|
|
284
|
+
class Channel
|
|
285
|
+
include Google::Apis::Core::Hashable
|
|
286
|
+
|
|
287
|
+
# The address where notifications are delivered for this channel.
|
|
288
|
+
# Corresponds to the JSON property `address`
|
|
289
|
+
# @return [String]
|
|
290
|
+
attr_accessor :address
|
|
291
|
+
|
|
292
|
+
# Date and time of notification channel expiration, expressed as a Unix
|
|
293
|
+
# timestamp, in milliseconds. Optional.
|
|
294
|
+
# Corresponds to the JSON property `expiration`
|
|
295
|
+
# @return [String]
|
|
296
|
+
attr_accessor :expiration
|
|
297
|
+
|
|
298
|
+
# A UUID or similar unique string that identifies this channel.
|
|
299
|
+
# Corresponds to the JSON property `id`
|
|
300
|
+
# @return [String]
|
|
301
|
+
attr_accessor :id
|
|
302
|
+
|
|
303
|
+
# Identifies this as a notification channel used to watch for changes to a
|
|
304
|
+
# resource. Value: the fixed string "api#channel".
|
|
305
|
+
# Corresponds to the JSON property `kind`
|
|
306
|
+
# @return [String]
|
|
307
|
+
attr_accessor :kind
|
|
308
|
+
|
|
309
|
+
# Additional parameters controlling delivery channel behavior. Optional.
|
|
310
|
+
# Corresponds to the JSON property `params`
|
|
311
|
+
# @return [Hash<String,String>]
|
|
312
|
+
attr_accessor :params
|
|
313
|
+
|
|
314
|
+
# A Boolean value to indicate whether payload is wanted. Optional.
|
|
315
|
+
# Corresponds to the JSON property `payload`
|
|
316
|
+
# @return [Boolean]
|
|
317
|
+
attr_accessor :payload
|
|
318
|
+
alias_method :payload?, :payload
|
|
319
|
+
|
|
320
|
+
# An opaque ID that identifies the resource being watched on this channel.
|
|
321
|
+
# Stable across different API versions.
|
|
322
|
+
# Corresponds to the JSON property `resourceId`
|
|
323
|
+
# @return [String]
|
|
324
|
+
attr_accessor :resource_id
|
|
325
|
+
|
|
326
|
+
# A version-specific identifier for the watched resource.
|
|
327
|
+
# Corresponds to the JSON property `resourceUri`
|
|
328
|
+
# @return [String]
|
|
329
|
+
attr_accessor :resource_uri
|
|
330
|
+
|
|
331
|
+
# An arbitrary string delivered to the target address with each notification
|
|
332
|
+
# delivered over this channel. Optional.
|
|
333
|
+
# Corresponds to the JSON property `token`
|
|
334
|
+
# @return [String]
|
|
335
|
+
attr_accessor :token
|
|
336
|
+
|
|
337
|
+
# The type of delivery mechanism used for this channel.
|
|
338
|
+
# Corresponds to the JSON property `type`
|
|
339
|
+
# @return [String]
|
|
340
|
+
attr_accessor :type
|
|
341
|
+
|
|
342
|
+
def initialize(**args)
|
|
343
|
+
update!(**args)
|
|
344
|
+
end
|
|
345
|
+
|
|
346
|
+
# Update properties of this object
|
|
347
|
+
def update!(**args)
|
|
348
|
+
@address = args[:address] unless args[:address].nil?
|
|
349
|
+
@expiration = args[:expiration] unless args[:expiration].nil?
|
|
350
|
+
@id = args[:id] unless args[:id].nil?
|
|
351
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
352
|
+
@params = args[:params] unless args[:params].nil?
|
|
353
|
+
@payload = args[:payload] unless args[:payload].nil?
|
|
354
|
+
@resource_id = args[:resource_id] unless args[:resource_id].nil?
|
|
355
|
+
@resource_uri = args[:resource_uri] unless args[:resource_uri].nil?
|
|
356
|
+
@token = args[:token] unless args[:token].nil?
|
|
357
|
+
@type = args[:type] unless args[:type].nil?
|
|
358
|
+
end
|
|
359
|
+
end
|
|
360
|
+
|
|
361
|
+
# JSON template for Chrome Os Device resource in Directory API.
|
|
362
|
+
class ChromeOsDevice
|
|
363
|
+
include Google::Apis::Core::Hashable
|
|
364
|
+
|
|
365
|
+
# List of active time ranges (Read-only)
|
|
366
|
+
# Corresponds to the JSON property `activeTimeRanges`
|
|
367
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::ActiveTimeRange>]
|
|
368
|
+
attr_accessor :active_time_ranges
|
|
369
|
+
|
|
370
|
+
# AssetId specified during enrollment or through later annotation
|
|
371
|
+
# Corresponds to the JSON property `annotatedAssetId`
|
|
372
|
+
# @return [String]
|
|
373
|
+
attr_accessor :annotated_asset_id
|
|
374
|
+
|
|
375
|
+
# Address or location of the device as noted by the administrator
|
|
376
|
+
# Corresponds to the JSON property `annotatedLocation`
|
|
377
|
+
# @return [String]
|
|
378
|
+
attr_accessor :annotated_location
|
|
379
|
+
|
|
380
|
+
# User of the device
|
|
381
|
+
# Corresponds to the JSON property `annotatedUser`
|
|
382
|
+
# @return [String]
|
|
383
|
+
attr_accessor :annotated_user
|
|
384
|
+
|
|
385
|
+
# Chromebook boot mode (Read-only)
|
|
386
|
+
# Corresponds to the JSON property `bootMode`
|
|
387
|
+
# @return [String]
|
|
388
|
+
attr_accessor :boot_mode
|
|
389
|
+
|
|
390
|
+
# Unique identifier of Chrome OS Device (Read-only)
|
|
391
|
+
# Corresponds to the JSON property `deviceId`
|
|
392
|
+
# @return [String]
|
|
393
|
+
attr_accessor :device_id
|
|
394
|
+
|
|
395
|
+
# ETag of the resource.
|
|
396
|
+
# Corresponds to the JSON property `etag`
|
|
397
|
+
# @return [String]
|
|
398
|
+
attr_accessor :etag
|
|
399
|
+
|
|
400
|
+
# Chromebook Mac Address on ethernet network interface (Read-only)
|
|
401
|
+
# Corresponds to the JSON property `ethernetMacAddress`
|
|
402
|
+
# @return [String]
|
|
403
|
+
attr_accessor :ethernet_mac_address
|
|
404
|
+
|
|
405
|
+
# Chromebook firmware version (Read-only)
|
|
406
|
+
# Corresponds to the JSON property `firmwareVersion`
|
|
407
|
+
# @return [String]
|
|
408
|
+
attr_accessor :firmware_version
|
|
409
|
+
|
|
410
|
+
# Kind of resource this is.
|
|
411
|
+
# Corresponds to the JSON property `kind`
|
|
412
|
+
# @return [String]
|
|
413
|
+
attr_accessor :kind
|
|
414
|
+
|
|
415
|
+
# Date and time the device was last enrolled (Read-only)
|
|
416
|
+
# Corresponds to the JSON property `lastEnrollmentTime`
|
|
417
|
+
# @return [DateTime]
|
|
418
|
+
attr_accessor :last_enrollment_time
|
|
419
|
+
|
|
420
|
+
# Date and time the device was last synchronized with the policy settings in the
|
|
421
|
+
# Google Apps administrator control panel (Read-only)
|
|
422
|
+
# Corresponds to the JSON property `lastSync`
|
|
423
|
+
# @return [DateTime]
|
|
424
|
+
attr_accessor :last_sync
|
|
425
|
+
|
|
426
|
+
# Chromebook Mac Address on wifi network interface (Read-only)
|
|
427
|
+
# Corresponds to the JSON property `macAddress`
|
|
428
|
+
# @return [String]
|
|
429
|
+
attr_accessor :mac_address
|
|
430
|
+
|
|
431
|
+
# Mobile Equipment identifier for the 3G mobile card in the Chromebook (Read-
|
|
432
|
+
# only)
|
|
433
|
+
# Corresponds to the JSON property `meid`
|
|
434
|
+
# @return [String]
|
|
435
|
+
attr_accessor :meid
|
|
436
|
+
|
|
437
|
+
# Chromebook Model (Read-only)
|
|
438
|
+
# Corresponds to the JSON property `model`
|
|
439
|
+
# @return [String]
|
|
440
|
+
attr_accessor :model
|
|
441
|
+
|
|
442
|
+
# Notes added by the administrator
|
|
443
|
+
# Corresponds to the JSON property `notes`
|
|
444
|
+
# @return [String]
|
|
445
|
+
attr_accessor :notes
|
|
446
|
+
|
|
447
|
+
# Chromebook order number (Read-only)
|
|
448
|
+
# Corresponds to the JSON property `orderNumber`
|
|
449
|
+
# @return [String]
|
|
450
|
+
attr_accessor :order_number
|
|
451
|
+
|
|
452
|
+
# OrgUnit of the device
|
|
453
|
+
# Corresponds to the JSON property `orgUnitPath`
|
|
454
|
+
# @return [String]
|
|
455
|
+
attr_accessor :org_unit_path
|
|
456
|
+
|
|
457
|
+
# Chromebook Os Version (Read-only)
|
|
458
|
+
# Corresponds to the JSON property `osVersion`
|
|
459
|
+
# @return [String]
|
|
460
|
+
attr_accessor :os_version
|
|
461
|
+
|
|
462
|
+
# Chromebook platform version (Read-only)
|
|
463
|
+
# Corresponds to the JSON property `platformVersion`
|
|
464
|
+
# @return [String]
|
|
465
|
+
attr_accessor :platform_version
|
|
466
|
+
|
|
467
|
+
# List of recent device users, in descending order by last login time (Read-only)
|
|
468
|
+
# Corresponds to the JSON property `recentUsers`
|
|
469
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice::RecentUser>]
|
|
470
|
+
attr_accessor :recent_users
|
|
471
|
+
|
|
472
|
+
# Chromebook serial number (Read-only)
|
|
473
|
+
# Corresponds to the JSON property `serialNumber`
|
|
474
|
+
# @return [String]
|
|
475
|
+
attr_accessor :serial_number
|
|
476
|
+
|
|
477
|
+
# status of the device (Read-only)
|
|
478
|
+
# Corresponds to the JSON property `status`
|
|
479
|
+
# @return [String]
|
|
480
|
+
attr_accessor :status
|
|
481
|
+
|
|
482
|
+
# Final date the device will be supported (Read-only)
|
|
483
|
+
# Corresponds to the JSON property `supportEndDate`
|
|
484
|
+
# @return [DateTime]
|
|
485
|
+
attr_accessor :support_end_date
|
|
486
|
+
|
|
487
|
+
# Will Chromebook auto renew after support end date (Read-only)
|
|
488
|
+
# Corresponds to the JSON property `willAutoRenew`
|
|
489
|
+
# @return [Boolean]
|
|
490
|
+
attr_accessor :will_auto_renew
|
|
491
|
+
alias_method :will_auto_renew?, :will_auto_renew
|
|
492
|
+
|
|
493
|
+
def initialize(**args)
|
|
494
|
+
update!(**args)
|
|
495
|
+
end
|
|
496
|
+
|
|
497
|
+
# Update properties of this object
|
|
498
|
+
def update!(**args)
|
|
499
|
+
@active_time_ranges = args[:active_time_ranges] unless args[:active_time_ranges].nil?
|
|
500
|
+
@annotated_asset_id = args[:annotated_asset_id] unless args[:annotated_asset_id].nil?
|
|
501
|
+
@annotated_location = args[:annotated_location] unless args[:annotated_location].nil?
|
|
502
|
+
@annotated_user = args[:annotated_user] unless args[:annotated_user].nil?
|
|
503
|
+
@boot_mode = args[:boot_mode] unless args[:boot_mode].nil?
|
|
504
|
+
@device_id = args[:device_id] unless args[:device_id].nil?
|
|
505
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
506
|
+
@ethernet_mac_address = args[:ethernet_mac_address] unless args[:ethernet_mac_address].nil?
|
|
507
|
+
@firmware_version = args[:firmware_version] unless args[:firmware_version].nil?
|
|
508
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
509
|
+
@last_enrollment_time = args[:last_enrollment_time] unless args[:last_enrollment_time].nil?
|
|
510
|
+
@last_sync = args[:last_sync] unless args[:last_sync].nil?
|
|
511
|
+
@mac_address = args[:mac_address] unless args[:mac_address].nil?
|
|
512
|
+
@meid = args[:meid] unless args[:meid].nil?
|
|
513
|
+
@model = args[:model] unless args[:model].nil?
|
|
514
|
+
@notes = args[:notes] unless args[:notes].nil?
|
|
515
|
+
@order_number = args[:order_number] unless args[:order_number].nil?
|
|
516
|
+
@org_unit_path = args[:org_unit_path] unless args[:org_unit_path].nil?
|
|
517
|
+
@os_version = args[:os_version] unless args[:os_version].nil?
|
|
518
|
+
@platform_version = args[:platform_version] unless args[:platform_version].nil?
|
|
519
|
+
@recent_users = args[:recent_users] unless args[:recent_users].nil?
|
|
520
|
+
@serial_number = args[:serial_number] unless args[:serial_number].nil?
|
|
521
|
+
@status = args[:status] unless args[:status].nil?
|
|
522
|
+
@support_end_date = args[:support_end_date] unless args[:support_end_date].nil?
|
|
523
|
+
@will_auto_renew = args[:will_auto_renew] unless args[:will_auto_renew].nil?
|
|
524
|
+
end
|
|
525
|
+
|
|
526
|
+
#
|
|
527
|
+
class ActiveTimeRange
|
|
528
|
+
include Google::Apis::Core::Hashable
|
|
529
|
+
|
|
530
|
+
# Duration in milliseconds
|
|
531
|
+
# Corresponds to the JSON property `activeTime`
|
|
532
|
+
# @return [Fixnum]
|
|
533
|
+
attr_accessor :active_time
|
|
534
|
+
|
|
535
|
+
# Date of usage
|
|
536
|
+
# Corresponds to the JSON property `date`
|
|
537
|
+
# @return [Date]
|
|
538
|
+
attr_accessor :date
|
|
539
|
+
|
|
540
|
+
def initialize(**args)
|
|
541
|
+
update!(**args)
|
|
542
|
+
end
|
|
543
|
+
|
|
544
|
+
# Update properties of this object
|
|
545
|
+
def update!(**args)
|
|
546
|
+
@active_time = args[:active_time] unless args[:active_time].nil?
|
|
547
|
+
@date = args[:date] unless args[:date].nil?
|
|
548
|
+
end
|
|
549
|
+
end
|
|
550
|
+
|
|
551
|
+
#
|
|
552
|
+
class RecentUser
|
|
553
|
+
include Google::Apis::Core::Hashable
|
|
554
|
+
|
|
555
|
+
# Email address of the user. Present only if the user type is managed
|
|
556
|
+
# Corresponds to the JSON property `email`
|
|
557
|
+
# @return [String]
|
|
558
|
+
attr_accessor :email
|
|
559
|
+
|
|
560
|
+
# The type of the user
|
|
561
|
+
# Corresponds to the JSON property `type`
|
|
562
|
+
# @return [String]
|
|
563
|
+
attr_accessor :type
|
|
564
|
+
|
|
565
|
+
def initialize(**args)
|
|
566
|
+
update!(**args)
|
|
567
|
+
end
|
|
568
|
+
|
|
569
|
+
# Update properties of this object
|
|
570
|
+
def update!(**args)
|
|
571
|
+
@email = args[:email] unless args[:email].nil?
|
|
572
|
+
@type = args[:type] unless args[:type].nil?
|
|
573
|
+
end
|
|
574
|
+
end
|
|
575
|
+
end
|
|
576
|
+
|
|
577
|
+
# JSON response template for List Chrome OS Devices operation in Directory API.
|
|
578
|
+
class ChromeOsDevices
|
|
579
|
+
include Google::Apis::Core::Hashable
|
|
580
|
+
|
|
581
|
+
# List of Chrome OS Device objects.
|
|
582
|
+
# Corresponds to the JSON property `chromeosdevices`
|
|
583
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice>]
|
|
584
|
+
attr_accessor :chromeosdevices
|
|
585
|
+
|
|
586
|
+
# ETag of the resource.
|
|
587
|
+
# Corresponds to the JSON property `etag`
|
|
588
|
+
# @return [String]
|
|
589
|
+
attr_accessor :etag
|
|
590
|
+
|
|
591
|
+
# Kind of resource this is.
|
|
592
|
+
# Corresponds to the JSON property `kind`
|
|
593
|
+
# @return [String]
|
|
594
|
+
attr_accessor :kind
|
|
595
|
+
|
|
596
|
+
# Token used to access next page of this result.
|
|
597
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
598
|
+
# @return [String]
|
|
599
|
+
attr_accessor :next_page_token
|
|
600
|
+
|
|
601
|
+
def initialize(**args)
|
|
602
|
+
update!(**args)
|
|
603
|
+
end
|
|
604
|
+
|
|
605
|
+
# Update properties of this object
|
|
606
|
+
def update!(**args)
|
|
607
|
+
@chromeosdevices = args[:chromeosdevices] unless args[:chromeosdevices].nil?
|
|
608
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
609
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
610
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
611
|
+
end
|
|
612
|
+
end
|
|
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
|
+
|
|
926
|
+
# JSON template for Group resource in Directory API.
|
|
927
|
+
class Group
|
|
928
|
+
include Google::Apis::Core::Hashable
|
|
929
|
+
|
|
930
|
+
# Is the group created by admin (Read-only) *
|
|
931
|
+
# Corresponds to the JSON property `adminCreated`
|
|
932
|
+
# @return [Boolean]
|
|
933
|
+
attr_accessor :admin_created
|
|
934
|
+
alias_method :admin_created?, :admin_created
|
|
935
|
+
|
|
936
|
+
# List of aliases (Read-only)
|
|
937
|
+
# Corresponds to the JSON property `aliases`
|
|
938
|
+
# @return [Array<String>]
|
|
939
|
+
attr_accessor :aliases
|
|
940
|
+
|
|
941
|
+
# Description of the group
|
|
942
|
+
# Corresponds to the JSON property `description`
|
|
943
|
+
# @return [String]
|
|
944
|
+
attr_accessor :description
|
|
945
|
+
|
|
946
|
+
# Group direct members count
|
|
947
|
+
# Corresponds to the JSON property `directMembersCount`
|
|
948
|
+
# @return [String]
|
|
949
|
+
attr_accessor :direct_members_count
|
|
950
|
+
|
|
951
|
+
# Email of Group
|
|
952
|
+
# Corresponds to the JSON property `email`
|
|
953
|
+
# @return [String]
|
|
954
|
+
attr_accessor :email
|
|
955
|
+
|
|
956
|
+
# ETag of the resource.
|
|
957
|
+
# Corresponds to the JSON property `etag`
|
|
958
|
+
# @return [String]
|
|
959
|
+
attr_accessor :etag
|
|
960
|
+
|
|
961
|
+
# Unique identifier of Group (Read-only)
|
|
962
|
+
# Corresponds to the JSON property `id`
|
|
963
|
+
# @return [String]
|
|
964
|
+
attr_accessor :id
|
|
965
|
+
|
|
966
|
+
# Kind of resource this is.
|
|
967
|
+
# Corresponds to the JSON property `kind`
|
|
968
|
+
# @return [String]
|
|
969
|
+
attr_accessor :kind
|
|
970
|
+
|
|
971
|
+
# Group name
|
|
972
|
+
# Corresponds to the JSON property `name`
|
|
973
|
+
# @return [String]
|
|
974
|
+
attr_accessor :name
|
|
975
|
+
|
|
976
|
+
# List of non editable aliases (Read-only)
|
|
977
|
+
# Corresponds to the JSON property `nonEditableAliases`
|
|
978
|
+
# @return [Array<String>]
|
|
979
|
+
attr_accessor :non_editable_aliases
|
|
980
|
+
|
|
981
|
+
def initialize(**args)
|
|
982
|
+
update!(**args)
|
|
983
|
+
end
|
|
984
|
+
|
|
985
|
+
# Update properties of this object
|
|
986
|
+
def update!(**args)
|
|
987
|
+
@admin_created = args[:admin_created] unless args[:admin_created].nil?
|
|
988
|
+
@aliases = args[:aliases] unless args[:aliases].nil?
|
|
989
|
+
@description = args[:description] unless args[:description].nil?
|
|
990
|
+
@direct_members_count = args[:direct_members_count] unless args[:direct_members_count].nil?
|
|
991
|
+
@email = args[:email] unless args[:email].nil?
|
|
992
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
993
|
+
@id = args[:id] unless args[:id].nil?
|
|
994
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
995
|
+
@name = args[:name] unless args[:name].nil?
|
|
996
|
+
@non_editable_aliases = args[:non_editable_aliases] unless args[:non_editable_aliases].nil?
|
|
997
|
+
end
|
|
998
|
+
end
|
|
999
|
+
|
|
1000
|
+
# JSON response template for List Groups operation in Directory API.
|
|
1001
|
+
class Groups
|
|
1002
|
+
include Google::Apis::Core::Hashable
|
|
1003
|
+
|
|
1004
|
+
# ETag of the resource.
|
|
1005
|
+
# Corresponds to the JSON property `etag`
|
|
1006
|
+
# @return [String]
|
|
1007
|
+
attr_accessor :etag
|
|
1008
|
+
|
|
1009
|
+
# List of group objects.
|
|
1010
|
+
# Corresponds to the JSON property `groups`
|
|
1011
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Group>]
|
|
1012
|
+
attr_accessor :groups
|
|
1013
|
+
|
|
1014
|
+
# Kind of resource this is.
|
|
1015
|
+
# Corresponds to the JSON property `kind`
|
|
1016
|
+
# @return [String]
|
|
1017
|
+
attr_accessor :kind
|
|
1018
|
+
|
|
1019
|
+
# Token used to access next page of this result.
|
|
1020
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1021
|
+
# @return [String]
|
|
1022
|
+
attr_accessor :next_page_token
|
|
1023
|
+
|
|
1024
|
+
def initialize(**args)
|
|
1025
|
+
update!(**args)
|
|
1026
|
+
end
|
|
1027
|
+
|
|
1028
|
+
# Update properties of this object
|
|
1029
|
+
def update!(**args)
|
|
1030
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1031
|
+
@groups = args[:groups] unless args[:groups].nil?
|
|
1032
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1033
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
1034
|
+
end
|
|
1035
|
+
end
|
|
1036
|
+
|
|
1037
|
+
# JSON template for Member resource in Directory API.
|
|
1038
|
+
class Member
|
|
1039
|
+
include Google::Apis::Core::Hashable
|
|
1040
|
+
|
|
1041
|
+
# Email of member (Read-only)
|
|
1042
|
+
# Corresponds to the JSON property `email`
|
|
1043
|
+
# @return [String]
|
|
1044
|
+
attr_accessor :email
|
|
1045
|
+
|
|
1046
|
+
# ETag of the resource.
|
|
1047
|
+
# Corresponds to the JSON property `etag`
|
|
1048
|
+
# @return [String]
|
|
1049
|
+
attr_accessor :etag
|
|
1050
|
+
|
|
1051
|
+
# Unique identifier of customer member (Read-only) Unique identifier of group (
|
|
1052
|
+
# Read-only) Unique identifier of member (Read-only)
|
|
1053
|
+
# Corresponds to the JSON property `id`
|
|
1054
|
+
# @return [String]
|
|
1055
|
+
attr_accessor :id
|
|
1056
|
+
|
|
1057
|
+
# Kind of resource this is.
|
|
1058
|
+
# Corresponds to the JSON property `kind`
|
|
1059
|
+
# @return [String]
|
|
1060
|
+
attr_accessor :kind
|
|
1061
|
+
|
|
1062
|
+
# Role of member
|
|
1063
|
+
# Corresponds to the JSON property `role`
|
|
1064
|
+
# @return [String]
|
|
1065
|
+
attr_accessor :role
|
|
1066
|
+
|
|
1067
|
+
# Type of member (Immutable)
|
|
1068
|
+
# Corresponds to the JSON property `type`
|
|
1069
|
+
# @return [String]
|
|
1070
|
+
attr_accessor :type
|
|
1071
|
+
|
|
1072
|
+
def initialize(**args)
|
|
1073
|
+
update!(**args)
|
|
1074
|
+
end
|
|
1075
|
+
|
|
1076
|
+
# Update properties of this object
|
|
1077
|
+
def update!(**args)
|
|
1078
|
+
@email = args[:email] unless args[:email].nil?
|
|
1079
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1080
|
+
@id = args[:id] unless args[:id].nil?
|
|
1081
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1082
|
+
@role = args[:role] unless args[:role].nil?
|
|
1083
|
+
@type = args[:type] unless args[:type].nil?
|
|
1084
|
+
end
|
|
1085
|
+
end
|
|
1086
|
+
|
|
1087
|
+
# JSON response template for List Members operation in Directory API.
|
|
1088
|
+
class Members
|
|
1089
|
+
include Google::Apis::Core::Hashable
|
|
1090
|
+
|
|
1091
|
+
# ETag of the resource.
|
|
1092
|
+
# Corresponds to the JSON property `etag`
|
|
1093
|
+
# @return [String]
|
|
1094
|
+
attr_accessor :etag
|
|
1095
|
+
|
|
1096
|
+
# Kind of resource this is.
|
|
1097
|
+
# Corresponds to the JSON property `kind`
|
|
1098
|
+
# @return [String]
|
|
1099
|
+
attr_accessor :kind
|
|
1100
|
+
|
|
1101
|
+
# List of member objects.
|
|
1102
|
+
# Corresponds to the JSON property `members`
|
|
1103
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Member>]
|
|
1104
|
+
attr_accessor :members
|
|
1105
|
+
|
|
1106
|
+
# Token used to access next page of this result.
|
|
1107
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1108
|
+
# @return [String]
|
|
1109
|
+
attr_accessor :next_page_token
|
|
1110
|
+
|
|
1111
|
+
def initialize(**args)
|
|
1112
|
+
update!(**args)
|
|
1113
|
+
end
|
|
1114
|
+
|
|
1115
|
+
# Update properties of this object
|
|
1116
|
+
def update!(**args)
|
|
1117
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1118
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1119
|
+
@members = args[:members] unless args[:members].nil?
|
|
1120
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
1121
|
+
end
|
|
1122
|
+
end
|
|
1123
|
+
|
|
1124
|
+
# JSON template for Mobile Device resource in Directory API.
|
|
1125
|
+
class MobileDevice
|
|
1126
|
+
include Google::Apis::Core::Hashable
|
|
1127
|
+
|
|
1128
|
+
# Adb (USB debugging) enabled or disabled on device (Read-only)
|
|
1129
|
+
# Corresponds to the JSON property `adbStatus`
|
|
1130
|
+
# @return [Boolean]
|
|
1131
|
+
attr_accessor :adb_status
|
|
1132
|
+
alias_method :adb_status?, :adb_status
|
|
1133
|
+
|
|
1134
|
+
# List of applications installed on Mobile Device
|
|
1135
|
+
# Corresponds to the JSON property `applications`
|
|
1136
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::MobileDevice::Application>]
|
|
1137
|
+
attr_accessor :applications
|
|
1138
|
+
|
|
1139
|
+
# Mobile Device Baseband version (Read-only)
|
|
1140
|
+
# Corresponds to the JSON property `basebandVersion`
|
|
1141
|
+
# @return [String]
|
|
1142
|
+
attr_accessor :baseband_version
|
|
1143
|
+
|
|
1144
|
+
# Mobile Device Build number (Read-only)
|
|
1145
|
+
# Corresponds to the JSON property `buildNumber`
|
|
1146
|
+
# @return [String]
|
|
1147
|
+
attr_accessor :build_number
|
|
1148
|
+
|
|
1149
|
+
# The default locale used on the Mobile Device (Read-only)
|
|
1150
|
+
# Corresponds to the JSON property `defaultLanguage`
|
|
1151
|
+
# @return [String]
|
|
1152
|
+
attr_accessor :default_language
|
|
1153
|
+
|
|
1154
|
+
# Developer options enabled or disabled on device (Read-only)
|
|
1155
|
+
# Corresponds to the JSON property `developerOptionsStatus`
|
|
1156
|
+
# @return [Boolean]
|
|
1157
|
+
attr_accessor :developer_options_status
|
|
1158
|
+
alias_method :developer_options_status?, :developer_options_status
|
|
1159
|
+
|
|
1160
|
+
# Mobile Device compromised status (Read-only)
|
|
1161
|
+
# Corresponds to the JSON property `deviceCompromisedStatus`
|
|
1162
|
+
# @return [String]
|
|
1163
|
+
attr_accessor :device_compromised_status
|
|
1164
|
+
|
|
1165
|
+
# Mobile Device serial number (Read-only)
|
|
1166
|
+
# Corresponds to the JSON property `deviceId`
|
|
1167
|
+
# @return [String]
|
|
1168
|
+
attr_accessor :device_id
|
|
1169
|
+
|
|
1170
|
+
# List of owner user's email addresses (Read-only)
|
|
1171
|
+
# Corresponds to the JSON property `email`
|
|
1172
|
+
# @return [Array<String>]
|
|
1173
|
+
attr_accessor :email
|
|
1174
|
+
|
|
1175
|
+
# ETag of the resource.
|
|
1176
|
+
# Corresponds to the JSON property `etag`
|
|
1177
|
+
# @return [String]
|
|
1178
|
+
attr_accessor :etag
|
|
1179
|
+
|
|
1180
|
+
# Date and time the device was first synchronized with the policy settings in
|
|
1181
|
+
# the Google Apps administrator control panel (Read-only)
|
|
1182
|
+
# Corresponds to the JSON property `firstSync`
|
|
1183
|
+
# @return [DateTime]
|
|
1184
|
+
attr_accessor :first_sync
|
|
1185
|
+
|
|
1186
|
+
# Mobile Device Hardware Id (Read-only)
|
|
1187
|
+
# Corresponds to the JSON property `hardwareId`
|
|
1188
|
+
# @return [String]
|
|
1189
|
+
attr_accessor :hardware_id
|
|
1190
|
+
|
|
1191
|
+
# Mobile Device IMEI number (Read-only)
|
|
1192
|
+
# Corresponds to the JSON property `imei`
|
|
1193
|
+
# @return [String]
|
|
1194
|
+
attr_accessor :imei
|
|
1195
|
+
|
|
1196
|
+
# Mobile Device Kernel version (Read-only)
|
|
1197
|
+
# Corresponds to the JSON property `kernelVersion`
|
|
1198
|
+
# @return [String]
|
|
1199
|
+
attr_accessor :kernel_version
|
|
1200
|
+
|
|
1201
|
+
# Kind of resource this is.
|
|
1202
|
+
# Corresponds to the JSON property `kind`
|
|
1203
|
+
# @return [String]
|
|
1204
|
+
attr_accessor :kind
|
|
1205
|
+
|
|
1206
|
+
# Date and time the device was last synchronized with the policy settings in the
|
|
1207
|
+
# Google Apps administrator control panel (Read-only)
|
|
1208
|
+
# Corresponds to the JSON property `lastSync`
|
|
1209
|
+
# @return [DateTime]
|
|
1210
|
+
attr_accessor :last_sync
|
|
1211
|
+
|
|
1212
|
+
# Boolean indicating if this account is on owner/primary profile or not (Read-
|
|
1213
|
+
# only)
|
|
1214
|
+
# Corresponds to the JSON property `managedAccountIsOnOwnerProfile`
|
|
1215
|
+
# @return [Boolean]
|
|
1216
|
+
attr_accessor :managed_account_is_on_owner_profile
|
|
1217
|
+
alias_method :managed_account_is_on_owner_profile?, :managed_account_is_on_owner_profile
|
|
1218
|
+
|
|
1219
|
+
# Mobile Device MEID number (Read-only)
|
|
1220
|
+
# Corresponds to the JSON property `meid`
|
|
1221
|
+
# @return [String]
|
|
1222
|
+
attr_accessor :meid
|
|
1223
|
+
|
|
1224
|
+
# Name of the model of the device
|
|
1225
|
+
# Corresponds to the JSON property `model`
|
|
1226
|
+
# @return [String]
|
|
1227
|
+
attr_accessor :model
|
|
1228
|
+
|
|
1229
|
+
# List of owner user's names (Read-only)
|
|
1230
|
+
# Corresponds to the JSON property `name`
|
|
1231
|
+
# @return [Array<String>]
|
|
1232
|
+
attr_accessor :name
|
|
1233
|
+
|
|
1234
|
+
# Mobile Device mobile or network operator (if available) (Read-only)
|
|
1235
|
+
# Corresponds to the JSON property `networkOperator`
|
|
1236
|
+
# @return [String]
|
|
1237
|
+
attr_accessor :network_operator
|
|
1238
|
+
|
|
1239
|
+
# Name of the mobile operating system
|
|
1240
|
+
# Corresponds to the JSON property `os`
|
|
1241
|
+
# @return [String]
|
|
1242
|
+
attr_accessor :os
|
|
1243
|
+
|
|
1244
|
+
# List of accounts added on device (Read-only)
|
|
1245
|
+
# Corresponds to the JSON property `otherAccountsInfo`
|
|
1246
|
+
# @return [Array<String>]
|
|
1247
|
+
attr_accessor :other_accounts_info
|
|
1248
|
+
|
|
1249
|
+
# Unique identifier of Mobile Device (Read-only)
|
|
1250
|
+
# Corresponds to the JSON property `resourceId`
|
|
1251
|
+
# @return [String]
|
|
1252
|
+
attr_accessor :resource_id
|
|
1253
|
+
|
|
1254
|
+
# Mobile Device SSN or Serial Number (Read-only)
|
|
1255
|
+
# Corresponds to the JSON property `serialNumber`
|
|
1256
|
+
# @return [String]
|
|
1257
|
+
attr_accessor :serial_number
|
|
1258
|
+
|
|
1259
|
+
# Status of the device (Read-only)
|
|
1260
|
+
# Corresponds to the JSON property `status`
|
|
1261
|
+
# @return [String]
|
|
1262
|
+
attr_accessor :status
|
|
1263
|
+
|
|
1264
|
+
# Work profile supported on device (Read-only)
|
|
1265
|
+
# Corresponds to the JSON property `supportsWorkProfile`
|
|
1266
|
+
# @return [Boolean]
|
|
1267
|
+
attr_accessor :supports_work_profile
|
|
1268
|
+
alias_method :supports_work_profile?, :supports_work_profile
|
|
1269
|
+
|
|
1270
|
+
# The type of device (Read-only)
|
|
1271
|
+
# Corresponds to the JSON property `type`
|
|
1272
|
+
# @return [String]
|
|
1273
|
+
attr_accessor :type
|
|
1274
|
+
|
|
1275
|
+
# Unknown sources enabled or disabled on device (Read-only)
|
|
1276
|
+
# Corresponds to the JSON property `unknownSourcesStatus`
|
|
1277
|
+
# @return [Boolean]
|
|
1278
|
+
attr_accessor :unknown_sources_status
|
|
1279
|
+
alias_method :unknown_sources_status?, :unknown_sources_status
|
|
1280
|
+
|
|
1281
|
+
# Mobile Device user agent
|
|
1282
|
+
# Corresponds to the JSON property `userAgent`
|
|
1283
|
+
# @return [String]
|
|
1284
|
+
attr_accessor :user_agent
|
|
1285
|
+
|
|
1286
|
+
# Mobile Device WiFi MAC address (Read-only)
|
|
1287
|
+
# Corresponds to the JSON property `wifiMacAddress`
|
|
1288
|
+
# @return [String]
|
|
1289
|
+
attr_accessor :wifi_mac_address
|
|
1290
|
+
|
|
1291
|
+
def initialize(**args)
|
|
1292
|
+
update!(**args)
|
|
1293
|
+
end
|
|
1294
|
+
|
|
1295
|
+
# Update properties of this object
|
|
1296
|
+
def update!(**args)
|
|
1297
|
+
@adb_status = args[:adb_status] unless args[:adb_status].nil?
|
|
1298
|
+
@applications = args[:applications] unless args[:applications].nil?
|
|
1299
|
+
@baseband_version = args[:baseband_version] unless args[:baseband_version].nil?
|
|
1300
|
+
@build_number = args[:build_number] unless args[:build_number].nil?
|
|
1301
|
+
@default_language = args[:default_language] unless args[:default_language].nil?
|
|
1302
|
+
@developer_options_status = args[:developer_options_status] unless args[:developer_options_status].nil?
|
|
1303
|
+
@device_compromised_status = args[:device_compromised_status] unless args[:device_compromised_status].nil?
|
|
1304
|
+
@device_id = args[:device_id] unless args[:device_id].nil?
|
|
1305
|
+
@email = args[:email] unless args[:email].nil?
|
|
1306
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1307
|
+
@first_sync = args[:first_sync] unless args[:first_sync].nil?
|
|
1308
|
+
@hardware_id = args[:hardware_id] unless args[:hardware_id].nil?
|
|
1309
|
+
@imei = args[:imei] unless args[:imei].nil?
|
|
1310
|
+
@kernel_version = args[:kernel_version] unless args[:kernel_version].nil?
|
|
1311
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1312
|
+
@last_sync = args[:last_sync] unless args[:last_sync].nil?
|
|
1313
|
+
@managed_account_is_on_owner_profile = args[:managed_account_is_on_owner_profile] unless args[:managed_account_is_on_owner_profile].nil?
|
|
1314
|
+
@meid = args[:meid] unless args[:meid].nil?
|
|
1315
|
+
@model = args[:model] unless args[:model].nil?
|
|
1316
|
+
@name = args[:name] unless args[:name].nil?
|
|
1317
|
+
@network_operator = args[:network_operator] unless args[:network_operator].nil?
|
|
1318
|
+
@os = args[:os] unless args[:os].nil?
|
|
1319
|
+
@other_accounts_info = args[:other_accounts_info] unless args[:other_accounts_info].nil?
|
|
1320
|
+
@resource_id = args[:resource_id] unless args[:resource_id].nil?
|
|
1321
|
+
@serial_number = args[:serial_number] unless args[:serial_number].nil?
|
|
1322
|
+
@status = args[:status] unless args[:status].nil?
|
|
1323
|
+
@supports_work_profile = args[:supports_work_profile] unless args[:supports_work_profile].nil?
|
|
1324
|
+
@type = args[:type] unless args[:type].nil?
|
|
1325
|
+
@unknown_sources_status = args[:unknown_sources_status] unless args[:unknown_sources_status].nil?
|
|
1326
|
+
@user_agent = args[:user_agent] unless args[:user_agent].nil?
|
|
1327
|
+
@wifi_mac_address = args[:wifi_mac_address] unless args[:wifi_mac_address].nil?
|
|
1328
|
+
end
|
|
1329
|
+
|
|
1330
|
+
#
|
|
1331
|
+
class Application
|
|
1332
|
+
include Google::Apis::Core::Hashable
|
|
1333
|
+
|
|
1334
|
+
# Display name of application
|
|
1335
|
+
# Corresponds to the JSON property `displayName`
|
|
1336
|
+
# @return [String]
|
|
1337
|
+
attr_accessor :display_name
|
|
1338
|
+
|
|
1339
|
+
# Package name of application
|
|
1340
|
+
# Corresponds to the JSON property `packageName`
|
|
1341
|
+
# @return [String]
|
|
1342
|
+
attr_accessor :package_name
|
|
1343
|
+
|
|
1344
|
+
# List of Permissions for application
|
|
1345
|
+
# Corresponds to the JSON property `permission`
|
|
1346
|
+
# @return [Array<String>]
|
|
1347
|
+
attr_accessor :permission
|
|
1348
|
+
|
|
1349
|
+
# Version code of application
|
|
1350
|
+
# Corresponds to the JSON property `versionCode`
|
|
1351
|
+
# @return [Fixnum]
|
|
1352
|
+
attr_accessor :version_code
|
|
1353
|
+
|
|
1354
|
+
# Version name of application
|
|
1355
|
+
# Corresponds to the JSON property `versionName`
|
|
1356
|
+
# @return [String]
|
|
1357
|
+
attr_accessor :version_name
|
|
1358
|
+
|
|
1359
|
+
def initialize(**args)
|
|
1360
|
+
update!(**args)
|
|
1361
|
+
end
|
|
1362
|
+
|
|
1363
|
+
# Update properties of this object
|
|
1364
|
+
def update!(**args)
|
|
1365
|
+
@display_name = args[:display_name] unless args[:display_name].nil?
|
|
1366
|
+
@package_name = args[:package_name] unless args[:package_name].nil?
|
|
1367
|
+
@permission = args[:permission] unless args[:permission].nil?
|
|
1368
|
+
@version_code = args[:version_code] unless args[:version_code].nil?
|
|
1369
|
+
@version_name = args[:version_name] unless args[:version_name].nil?
|
|
1370
|
+
end
|
|
1371
|
+
end
|
|
1372
|
+
end
|
|
1373
|
+
|
|
1374
|
+
# JSON request template for firing commands on Mobile Device in Directory
|
|
1375
|
+
# Devices API.
|
|
1376
|
+
class MobileDeviceAction
|
|
1377
|
+
include Google::Apis::Core::Hashable
|
|
1378
|
+
|
|
1379
|
+
# Action to be taken on the Mobile Device
|
|
1380
|
+
# Corresponds to the JSON property `action`
|
|
1381
|
+
# @return [String]
|
|
1382
|
+
attr_accessor :action
|
|
1383
|
+
|
|
1384
|
+
def initialize(**args)
|
|
1385
|
+
update!(**args)
|
|
1386
|
+
end
|
|
1387
|
+
|
|
1388
|
+
# Update properties of this object
|
|
1389
|
+
def update!(**args)
|
|
1390
|
+
@action = args[:action] unless args[:action].nil?
|
|
1391
|
+
end
|
|
1392
|
+
end
|
|
1393
|
+
|
|
1394
|
+
# JSON response template for List Mobile Devices operation in Directory API.
|
|
1395
|
+
class MobileDevices
|
|
1396
|
+
include Google::Apis::Core::Hashable
|
|
1397
|
+
|
|
1398
|
+
# ETag of the resource.
|
|
1399
|
+
# Corresponds to the JSON property `etag`
|
|
1400
|
+
# @return [String]
|
|
1401
|
+
attr_accessor :etag
|
|
1402
|
+
|
|
1403
|
+
# Kind of resource this is.
|
|
1404
|
+
# Corresponds to the JSON property `kind`
|
|
1405
|
+
# @return [String]
|
|
1406
|
+
attr_accessor :kind
|
|
1407
|
+
|
|
1408
|
+
# List of Mobile Device objects.
|
|
1409
|
+
# Corresponds to the JSON property `mobiledevices`
|
|
1410
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::MobileDevice>]
|
|
1411
|
+
attr_accessor :mobiledevices
|
|
1412
|
+
|
|
1413
|
+
# Token used to access next page of this result.
|
|
1414
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1415
|
+
# @return [String]
|
|
1416
|
+
attr_accessor :next_page_token
|
|
1417
|
+
|
|
1418
|
+
def initialize(**args)
|
|
1419
|
+
update!(**args)
|
|
1420
|
+
end
|
|
1421
|
+
|
|
1422
|
+
# Update properties of this object
|
|
1423
|
+
def update!(**args)
|
|
1424
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1425
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1426
|
+
@mobiledevices = args[:mobiledevices] unless args[:mobiledevices].nil?
|
|
1427
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
1428
|
+
end
|
|
1429
|
+
end
|
|
1430
|
+
|
|
1431
|
+
# Template for a notification resource.
|
|
1432
|
+
class Notification
|
|
1433
|
+
include Google::Apis::Core::Hashable
|
|
1434
|
+
|
|
1435
|
+
# Body of the notification (Read-only)
|
|
1436
|
+
# Corresponds to the JSON property `body`
|
|
1437
|
+
# @return [String]
|
|
1438
|
+
attr_accessor :body
|
|
1439
|
+
|
|
1440
|
+
# ETag of the resource.
|
|
1441
|
+
# Corresponds to the JSON property `etag`
|
|
1442
|
+
# @return [String]
|
|
1443
|
+
attr_accessor :etag
|
|
1444
|
+
|
|
1445
|
+
# Address from which the notification is received (Read-only)
|
|
1446
|
+
# Corresponds to the JSON property `fromAddress`
|
|
1447
|
+
# @return [String]
|
|
1448
|
+
attr_accessor :from_address
|
|
1449
|
+
|
|
1450
|
+
# Boolean indicating whether the notification is unread or not.
|
|
1451
|
+
# Corresponds to the JSON property `isUnread`
|
|
1452
|
+
# @return [Boolean]
|
|
1453
|
+
attr_accessor :is_unread
|
|
1454
|
+
alias_method :is_unread?, :is_unread
|
|
1455
|
+
|
|
1456
|
+
# The type of the resource.
|
|
1457
|
+
# Corresponds to the JSON property `kind`
|
|
1458
|
+
# @return [String]
|
|
1459
|
+
attr_accessor :kind
|
|
1460
|
+
|
|
1461
|
+
#
|
|
1462
|
+
# Corresponds to the JSON property `notificationId`
|
|
1463
|
+
# @return [String]
|
|
1464
|
+
attr_accessor :notification_id
|
|
1465
|
+
|
|
1466
|
+
# Time at which notification was sent (Read-only)
|
|
1467
|
+
# Corresponds to the JSON property `sendTime`
|
|
1468
|
+
# @return [DateTime]
|
|
1469
|
+
attr_accessor :send_time
|
|
1470
|
+
|
|
1471
|
+
# Subject of the notification (Read-only)
|
|
1472
|
+
# Corresponds to the JSON property `subject`
|
|
1473
|
+
# @return [String]
|
|
1474
|
+
attr_accessor :subject
|
|
1475
|
+
|
|
1476
|
+
def initialize(**args)
|
|
1477
|
+
update!(**args)
|
|
1478
|
+
end
|
|
1479
|
+
|
|
1480
|
+
# Update properties of this object
|
|
1481
|
+
def update!(**args)
|
|
1482
|
+
@body = args[:body] unless args[:body].nil?
|
|
1483
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1484
|
+
@from_address = args[:from_address] unless args[:from_address].nil?
|
|
1485
|
+
@is_unread = args[:is_unread] unless args[:is_unread].nil?
|
|
1486
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1487
|
+
@notification_id = args[:notification_id] unless args[:notification_id].nil?
|
|
1488
|
+
@send_time = args[:send_time] unless args[:send_time].nil?
|
|
1489
|
+
@subject = args[:subject] unless args[:subject].nil?
|
|
1490
|
+
end
|
|
1491
|
+
end
|
|
1492
|
+
|
|
1493
|
+
# Template for notifications list response.
|
|
1494
|
+
class Notifications
|
|
1495
|
+
include Google::Apis::Core::Hashable
|
|
1496
|
+
|
|
1497
|
+
# ETag of the resource.
|
|
1498
|
+
# Corresponds to the JSON property `etag`
|
|
1499
|
+
# @return [String]
|
|
1500
|
+
attr_accessor :etag
|
|
1501
|
+
|
|
1502
|
+
# List of notifications in this page.
|
|
1503
|
+
# Corresponds to the JSON property `items`
|
|
1504
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Notification>]
|
|
1505
|
+
attr_accessor :items
|
|
1506
|
+
|
|
1507
|
+
# The type of the resource.
|
|
1508
|
+
# Corresponds to the JSON property `kind`
|
|
1509
|
+
# @return [String]
|
|
1510
|
+
attr_accessor :kind
|
|
1511
|
+
|
|
1512
|
+
# Token for fetching the next page of notifications.
|
|
1513
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
1514
|
+
# @return [String]
|
|
1515
|
+
attr_accessor :next_page_token
|
|
1516
|
+
|
|
1517
|
+
# Number of unread notification for the domain.
|
|
1518
|
+
# Corresponds to the JSON property `unreadNotificationsCount`
|
|
1519
|
+
# @return [Fixnum]
|
|
1520
|
+
attr_accessor :unread_notifications_count
|
|
1521
|
+
|
|
1522
|
+
def initialize(**args)
|
|
1523
|
+
update!(**args)
|
|
1524
|
+
end
|
|
1525
|
+
|
|
1526
|
+
# Update properties of this object
|
|
1527
|
+
def update!(**args)
|
|
1528
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1529
|
+
@items = args[:items] unless args[:items].nil?
|
|
1530
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1531
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
1532
|
+
@unread_notifications_count = args[:unread_notifications_count] unless args[:unread_notifications_count].nil?
|
|
1533
|
+
end
|
|
1534
|
+
end
|
|
1535
|
+
|
|
1536
|
+
# JSON template for Org Unit resource in Directory API.
|
|
1537
|
+
class OrgUnit
|
|
1538
|
+
include Google::Apis::Core::Hashable
|
|
1539
|
+
|
|
1540
|
+
# Should block inheritance
|
|
1541
|
+
# Corresponds to the JSON property `blockInheritance`
|
|
1542
|
+
# @return [Boolean]
|
|
1543
|
+
attr_accessor :block_inheritance
|
|
1544
|
+
alias_method :block_inheritance?, :block_inheritance
|
|
1545
|
+
|
|
1546
|
+
# Description of OrgUnit
|
|
1547
|
+
# Corresponds to the JSON property `description`
|
|
1548
|
+
# @return [String]
|
|
1549
|
+
attr_accessor :description
|
|
1550
|
+
|
|
1551
|
+
# ETag of the resource.
|
|
1552
|
+
# Corresponds to the JSON property `etag`
|
|
1553
|
+
# @return [String]
|
|
1554
|
+
attr_accessor :etag
|
|
1555
|
+
|
|
1556
|
+
# Kind of resource this is.
|
|
1557
|
+
# Corresponds to the JSON property `kind`
|
|
1558
|
+
# @return [String]
|
|
1559
|
+
attr_accessor :kind
|
|
1560
|
+
|
|
1561
|
+
# Name of OrgUnit
|
|
1562
|
+
# Corresponds to the JSON property `name`
|
|
1563
|
+
# @return [String]
|
|
1564
|
+
attr_accessor :name
|
|
1565
|
+
|
|
1566
|
+
# Id of OrgUnit
|
|
1567
|
+
# Corresponds to the JSON property `orgUnitId`
|
|
1568
|
+
# @return [String]
|
|
1569
|
+
attr_accessor :org_unit_id
|
|
1570
|
+
|
|
1571
|
+
# Path of OrgUnit
|
|
1572
|
+
# Corresponds to the JSON property `orgUnitPath`
|
|
1573
|
+
# @return [String]
|
|
1574
|
+
attr_accessor :org_unit_path
|
|
1575
|
+
|
|
1576
|
+
# Id of parent OrgUnit
|
|
1577
|
+
# Corresponds to the JSON property `parentOrgUnitId`
|
|
1578
|
+
# @return [String]
|
|
1579
|
+
attr_accessor :parent_org_unit_id
|
|
1580
|
+
|
|
1581
|
+
# Path of parent OrgUnit
|
|
1582
|
+
# Corresponds to the JSON property `parentOrgUnitPath`
|
|
1583
|
+
# @return [String]
|
|
1584
|
+
attr_accessor :parent_org_unit_path
|
|
1585
|
+
|
|
1586
|
+
def initialize(**args)
|
|
1587
|
+
update!(**args)
|
|
1588
|
+
end
|
|
1589
|
+
|
|
1590
|
+
# Update properties of this object
|
|
1591
|
+
def update!(**args)
|
|
1592
|
+
@block_inheritance = args[:block_inheritance] unless args[:block_inheritance].nil?
|
|
1593
|
+
@description = args[:description] unless args[:description].nil?
|
|
1594
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1595
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1596
|
+
@name = args[:name] unless args[:name].nil?
|
|
1597
|
+
@org_unit_id = args[:org_unit_id] unless args[:org_unit_id].nil?
|
|
1598
|
+
@org_unit_path = args[:org_unit_path] unless args[:org_unit_path].nil?
|
|
1599
|
+
@parent_org_unit_id = args[:parent_org_unit_id] unless args[:parent_org_unit_id].nil?
|
|
1600
|
+
@parent_org_unit_path = args[:parent_org_unit_path] unless args[:parent_org_unit_path].nil?
|
|
1601
|
+
end
|
|
1602
|
+
end
|
|
1603
|
+
|
|
1604
|
+
# JSON response template for List Organization Units operation in Directory API.
|
|
1605
|
+
class OrgUnits
|
|
1606
|
+
include Google::Apis::Core::Hashable
|
|
1607
|
+
|
|
1608
|
+
# ETag of the resource.
|
|
1609
|
+
# Corresponds to the JSON property `etag`
|
|
1610
|
+
# @return [String]
|
|
1611
|
+
attr_accessor :etag
|
|
1612
|
+
|
|
1613
|
+
# Kind of resource this is.
|
|
1614
|
+
# Corresponds to the JSON property `kind`
|
|
1615
|
+
# @return [String]
|
|
1616
|
+
attr_accessor :kind
|
|
1617
|
+
|
|
1618
|
+
# List of user objects.
|
|
1619
|
+
# Corresponds to the JSON property `organizationUnits`
|
|
1620
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::OrgUnit>]
|
|
1621
|
+
attr_accessor :organization_units
|
|
1622
|
+
|
|
1623
|
+
def initialize(**args)
|
|
1624
|
+
update!(**args)
|
|
1625
|
+
end
|
|
1626
|
+
|
|
1627
|
+
# Update properties of this object
|
|
1628
|
+
def update!(**args)
|
|
1629
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1630
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1631
|
+
@organization_units = args[:organization_units] unless args[:organization_units].nil?
|
|
1632
|
+
end
|
|
1633
|
+
end
|
|
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
|
+
|
|
1944
|
+
# JSON template for Schema resource in Directory API.
|
|
1945
|
+
class Schema
|
|
1946
|
+
include Google::Apis::Core::Hashable
|
|
1947
|
+
|
|
1948
|
+
# ETag of the resource.
|
|
1949
|
+
# Corresponds to the JSON property `etag`
|
|
1950
|
+
# @return [String]
|
|
1951
|
+
attr_accessor :etag
|
|
1952
|
+
|
|
1953
|
+
# Fields of Schema
|
|
1954
|
+
# Corresponds to the JSON property `fields`
|
|
1955
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::SchemaFieldSpec>]
|
|
1956
|
+
attr_accessor :fields
|
|
1957
|
+
|
|
1958
|
+
# Kind of resource this is.
|
|
1959
|
+
# Corresponds to the JSON property `kind`
|
|
1960
|
+
# @return [String]
|
|
1961
|
+
attr_accessor :kind
|
|
1962
|
+
|
|
1963
|
+
# Unique identifier of Schema (Read-only)
|
|
1964
|
+
# Corresponds to the JSON property `schemaId`
|
|
1965
|
+
# @return [String]
|
|
1966
|
+
attr_accessor :schema_id
|
|
1967
|
+
|
|
1968
|
+
# Schema name
|
|
1969
|
+
# Corresponds to the JSON property `schemaName`
|
|
1970
|
+
# @return [String]
|
|
1971
|
+
attr_accessor :schema_name
|
|
1972
|
+
|
|
1973
|
+
def initialize(**args)
|
|
1974
|
+
update!(**args)
|
|
1975
|
+
end
|
|
1976
|
+
|
|
1977
|
+
# Update properties of this object
|
|
1978
|
+
def update!(**args)
|
|
1979
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
1980
|
+
@fields = args[:fields] unless args[:fields].nil?
|
|
1981
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
1982
|
+
@schema_id = args[:schema_id] unless args[:schema_id].nil?
|
|
1983
|
+
@schema_name = args[:schema_name] unless args[:schema_name].nil?
|
|
1984
|
+
end
|
|
1985
|
+
end
|
|
1986
|
+
|
|
1987
|
+
# JSON template for FieldSpec resource for Schemas in Directory API.
|
|
1988
|
+
class SchemaFieldSpec
|
|
1989
|
+
include Google::Apis::Core::Hashable
|
|
1990
|
+
|
|
1991
|
+
# ETag of the resource.
|
|
1992
|
+
# Corresponds to the JSON property `etag`
|
|
1993
|
+
# @return [String]
|
|
1994
|
+
attr_accessor :etag
|
|
1995
|
+
|
|
1996
|
+
# Unique identifier of Field (Read-only)
|
|
1997
|
+
# Corresponds to the JSON property `fieldId`
|
|
1998
|
+
# @return [String]
|
|
1999
|
+
attr_accessor :field_id
|
|
2000
|
+
|
|
2001
|
+
# Name of the field.
|
|
2002
|
+
# Corresponds to the JSON property `fieldName`
|
|
2003
|
+
# @return [String]
|
|
2004
|
+
attr_accessor :field_name
|
|
2005
|
+
|
|
2006
|
+
# Type of the field.
|
|
2007
|
+
# Corresponds to the JSON property `fieldType`
|
|
2008
|
+
# @return [String]
|
|
2009
|
+
attr_accessor :field_type
|
|
2010
|
+
|
|
2011
|
+
# Boolean specifying whether the field is indexed or not.
|
|
2012
|
+
# Corresponds to the JSON property `indexed`
|
|
2013
|
+
# @return [Boolean]
|
|
2014
|
+
attr_accessor :indexed
|
|
2015
|
+
alias_method :indexed?, :indexed
|
|
2016
|
+
|
|
2017
|
+
# Kind of resource this is.
|
|
2018
|
+
# Corresponds to the JSON property `kind`
|
|
2019
|
+
# @return [String]
|
|
2020
|
+
attr_accessor :kind
|
|
2021
|
+
|
|
2022
|
+
# Boolean specifying whether this is a multi-valued field or not.
|
|
2023
|
+
# Corresponds to the JSON property `multiValued`
|
|
2024
|
+
# @return [Boolean]
|
|
2025
|
+
attr_accessor :multi_valued
|
|
2026
|
+
alias_method :multi_valued?, :multi_valued
|
|
2027
|
+
|
|
2028
|
+
# Indexing spec for a numeric field. By default, only exact match queries will
|
|
2029
|
+
# be supported for numeric fields. Setting the numericIndexingSpec allows range
|
|
2030
|
+
# queries to be supported.
|
|
2031
|
+
# Corresponds to the JSON property `numericIndexingSpec`
|
|
2032
|
+
# @return [Google::Apis::AdminDirectoryV1::SchemaFieldSpec::NumericIndexingSpec]
|
|
2033
|
+
attr_accessor :numeric_indexing_spec
|
|
2034
|
+
|
|
2035
|
+
# Read ACLs on the field specifying who can view values of this field. Valid
|
|
2036
|
+
# values are "ALL_DOMAIN_USERS" and "ADMINS_AND_SELF".
|
|
2037
|
+
# Corresponds to the JSON property `readAccessType`
|
|
2038
|
+
# @return [String]
|
|
2039
|
+
attr_accessor :read_access_type
|
|
2040
|
+
|
|
2041
|
+
def initialize(**args)
|
|
2042
|
+
update!(**args)
|
|
2043
|
+
end
|
|
2044
|
+
|
|
2045
|
+
# Update properties of this object
|
|
2046
|
+
def update!(**args)
|
|
2047
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
2048
|
+
@field_id = args[:field_id] unless args[:field_id].nil?
|
|
2049
|
+
@field_name = args[:field_name] unless args[:field_name].nil?
|
|
2050
|
+
@field_type = args[:field_type] unless args[:field_type].nil?
|
|
2051
|
+
@indexed = args[:indexed] unless args[:indexed].nil?
|
|
2052
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
2053
|
+
@multi_valued = args[:multi_valued] unless args[:multi_valued].nil?
|
|
2054
|
+
@numeric_indexing_spec = args[:numeric_indexing_spec] unless args[:numeric_indexing_spec].nil?
|
|
2055
|
+
@read_access_type = args[:read_access_type] unless args[:read_access_type].nil?
|
|
2056
|
+
end
|
|
2057
|
+
|
|
2058
|
+
# Indexing spec for a numeric field. By default, only exact match queries will
|
|
2059
|
+
# be supported for numeric fields. Setting the numericIndexingSpec allows range
|
|
2060
|
+
# queries to be supported.
|
|
2061
|
+
class NumericIndexingSpec
|
|
2062
|
+
include Google::Apis::Core::Hashable
|
|
2063
|
+
|
|
2064
|
+
# Maximum value of this field. This is meant to be indicative rather than
|
|
2065
|
+
# enforced. Values outside this range will still be indexed, but search may not
|
|
2066
|
+
# be as performant.
|
|
2067
|
+
# Corresponds to the JSON property `maxValue`
|
|
2068
|
+
# @return [Float]
|
|
2069
|
+
attr_accessor :max_value
|
|
2070
|
+
|
|
2071
|
+
# Minimum value of this field. This is meant to be indicative rather than
|
|
2072
|
+
# enforced. Values outside this range will still be indexed, but search may not
|
|
2073
|
+
# be as performant.
|
|
2074
|
+
# Corresponds to the JSON property `minValue`
|
|
2075
|
+
# @return [Float]
|
|
2076
|
+
attr_accessor :min_value
|
|
2077
|
+
|
|
2078
|
+
def initialize(**args)
|
|
2079
|
+
update!(**args)
|
|
2080
|
+
end
|
|
2081
|
+
|
|
2082
|
+
# Update properties of this object
|
|
2083
|
+
def update!(**args)
|
|
2084
|
+
@max_value = args[:max_value] unless args[:max_value].nil?
|
|
2085
|
+
@min_value = args[:min_value] unless args[:min_value].nil?
|
|
2086
|
+
end
|
|
2087
|
+
end
|
|
2088
|
+
end
|
|
2089
|
+
|
|
2090
|
+
# JSON response template for List Schema operation in Directory API.
|
|
2091
|
+
class Schemas
|
|
2092
|
+
include Google::Apis::Core::Hashable
|
|
2093
|
+
|
|
2094
|
+
# ETag of the resource.
|
|
2095
|
+
# Corresponds to the JSON property `etag`
|
|
2096
|
+
# @return [String]
|
|
2097
|
+
attr_accessor :etag
|
|
2098
|
+
|
|
2099
|
+
# Kind of resource this is.
|
|
2100
|
+
# Corresponds to the JSON property `kind`
|
|
2101
|
+
# @return [String]
|
|
2102
|
+
attr_accessor :kind
|
|
2103
|
+
|
|
2104
|
+
# List of UserSchema objects.
|
|
2105
|
+
# Corresponds to the JSON property `schemas`
|
|
2106
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Schema>]
|
|
2107
|
+
attr_accessor :schemas
|
|
2108
|
+
|
|
2109
|
+
def initialize(**args)
|
|
2110
|
+
update!(**args)
|
|
2111
|
+
end
|
|
2112
|
+
|
|
2113
|
+
# Update properties of this object
|
|
2114
|
+
def update!(**args)
|
|
2115
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
2116
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
2117
|
+
@schemas = args[:schemas] unless args[:schemas].nil?
|
|
2118
|
+
end
|
|
2119
|
+
end
|
|
2120
|
+
|
|
2121
|
+
# JSON template for token resource in Directory API.
|
|
2122
|
+
class Token
|
|
2123
|
+
include Google::Apis::Core::Hashable
|
|
2124
|
+
|
|
2125
|
+
# Whether the application is registered with Google. The value is true if the
|
|
2126
|
+
# application has an anonymous Client ID.
|
|
2127
|
+
# Corresponds to the JSON property `anonymous`
|
|
2128
|
+
# @return [Boolean]
|
|
2129
|
+
attr_accessor :anonymous
|
|
2130
|
+
alias_method :anonymous?, :anonymous
|
|
2131
|
+
|
|
2132
|
+
# The Client ID of the application the token is issued to.
|
|
2133
|
+
# Corresponds to the JSON property `clientId`
|
|
2134
|
+
# @return [String]
|
|
2135
|
+
attr_accessor :client_id
|
|
2136
|
+
|
|
2137
|
+
# The displayable name of the application the token is issued to.
|
|
2138
|
+
# Corresponds to the JSON property `displayText`
|
|
2139
|
+
# @return [String]
|
|
2140
|
+
attr_accessor :display_text
|
|
2141
|
+
|
|
2142
|
+
# ETag of the resource.
|
|
2143
|
+
# Corresponds to the JSON property `etag`
|
|
2144
|
+
# @return [String]
|
|
2145
|
+
attr_accessor :etag
|
|
2146
|
+
|
|
2147
|
+
# The type of the API resource. This is always admin#directory#token.
|
|
2148
|
+
# Corresponds to the JSON property `kind`
|
|
2149
|
+
# @return [String]
|
|
2150
|
+
attr_accessor :kind
|
|
2151
|
+
|
|
2152
|
+
# Whether the token is issued to an installed application. The value is true if
|
|
2153
|
+
# the application is installed to a desktop or mobile device.
|
|
2154
|
+
# Corresponds to the JSON property `nativeApp`
|
|
2155
|
+
# @return [Boolean]
|
|
2156
|
+
attr_accessor :native_app
|
|
2157
|
+
alias_method :native_app?, :native_app
|
|
2158
|
+
|
|
2159
|
+
# A list of authorization scopes the application is granted.
|
|
2160
|
+
# Corresponds to the JSON property `scopes`
|
|
2161
|
+
# @return [Array<String>]
|
|
2162
|
+
attr_accessor :scopes
|
|
2163
|
+
|
|
2164
|
+
# The unique ID of the user that issued the token.
|
|
2165
|
+
# Corresponds to the JSON property `userKey`
|
|
2166
|
+
# @return [String]
|
|
2167
|
+
attr_accessor :user_key
|
|
2168
|
+
|
|
2169
|
+
def initialize(**args)
|
|
2170
|
+
update!(**args)
|
|
2171
|
+
end
|
|
2172
|
+
|
|
2173
|
+
# Update properties of this object
|
|
2174
|
+
def update!(**args)
|
|
2175
|
+
@anonymous = args[:anonymous] unless args[:anonymous].nil?
|
|
2176
|
+
@client_id = args[:client_id] unless args[:client_id].nil?
|
|
2177
|
+
@display_text = args[:display_text] unless args[:display_text].nil?
|
|
2178
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
2179
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
2180
|
+
@native_app = args[:native_app] unless args[:native_app].nil?
|
|
2181
|
+
@scopes = args[:scopes] unless args[:scopes].nil?
|
|
2182
|
+
@user_key = args[:user_key] unless args[:user_key].nil?
|
|
2183
|
+
end
|
|
2184
|
+
end
|
|
2185
|
+
|
|
2186
|
+
# JSON response template for List tokens operation in Directory API.
|
|
2187
|
+
class Tokens
|
|
2188
|
+
include Google::Apis::Core::Hashable
|
|
2189
|
+
|
|
2190
|
+
# ETag of the resource.
|
|
2191
|
+
# Corresponds to the JSON property `etag`
|
|
2192
|
+
# @return [String]
|
|
2193
|
+
attr_accessor :etag
|
|
2194
|
+
|
|
2195
|
+
# A list of Token resources.
|
|
2196
|
+
# Corresponds to the JSON property `items`
|
|
2197
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Token>]
|
|
2198
|
+
attr_accessor :items
|
|
2199
|
+
|
|
2200
|
+
# The type of the API resource. This is always admin#directory#tokenList.
|
|
2201
|
+
# Corresponds to the JSON property `kind`
|
|
2202
|
+
# @return [String]
|
|
2203
|
+
attr_accessor :kind
|
|
2204
|
+
|
|
2205
|
+
def initialize(**args)
|
|
2206
|
+
update!(**args)
|
|
2207
|
+
end
|
|
2208
|
+
|
|
2209
|
+
# Update properties of this object
|
|
2210
|
+
def update!(**args)
|
|
2211
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
2212
|
+
@items = args[:items] unless args[:items].nil?
|
|
2213
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
2214
|
+
end
|
|
2215
|
+
end
|
|
2216
|
+
|
|
2217
|
+
# JSON template for User object in Directory API.
|
|
2218
|
+
class User
|
|
2219
|
+
include Google::Apis::Core::Hashable
|
|
2220
|
+
|
|
2221
|
+
#
|
|
2222
|
+
# Corresponds to the JSON property `addresses`
|
|
2223
|
+
# @return [Object]
|
|
2224
|
+
attr_accessor :addresses
|
|
2225
|
+
|
|
2226
|
+
# Indicates if user has agreed to terms (Read-only)
|
|
2227
|
+
# Corresponds to the JSON property `agreedToTerms`
|
|
2228
|
+
# @return [Boolean]
|
|
2229
|
+
attr_accessor :agreed_to_terms
|
|
2230
|
+
alias_method :agreed_to_terms?, :agreed_to_terms
|
|
2231
|
+
|
|
2232
|
+
# List of aliases (Read-only)
|
|
2233
|
+
# Corresponds to the JSON property `aliases`
|
|
2234
|
+
# @return [Array<String>]
|
|
2235
|
+
attr_accessor :aliases
|
|
2236
|
+
|
|
2237
|
+
# Boolean indicating if the user should change password in next login
|
|
2238
|
+
# Corresponds to the JSON property `changePasswordAtNextLogin`
|
|
2239
|
+
# @return [Boolean]
|
|
2240
|
+
attr_accessor :change_password_at_next_login
|
|
2241
|
+
alias_method :change_password_at_next_login?, :change_password_at_next_login
|
|
2242
|
+
|
|
2243
|
+
# User's Google account creation time. (Read-only)
|
|
2244
|
+
# Corresponds to the JSON property `creationTime`
|
|
2245
|
+
# @return [DateTime]
|
|
2246
|
+
attr_accessor :creation_time
|
|
2247
|
+
|
|
2248
|
+
# Custom fields of the user.
|
|
2249
|
+
# Corresponds to the JSON property `customSchemas`
|
|
2250
|
+
# @return [Hash<String,Hash<String,Object>>]
|
|
2251
|
+
attr_accessor :custom_schemas
|
|
2252
|
+
|
|
2253
|
+
# CustomerId of User (Read-only)
|
|
2254
|
+
# Corresponds to the JSON property `customerId`
|
|
2255
|
+
# @return [String]
|
|
2256
|
+
attr_accessor :customer_id
|
|
2257
|
+
|
|
2258
|
+
#
|
|
2259
|
+
# Corresponds to the JSON property `deletionTime`
|
|
2260
|
+
# @return [DateTime]
|
|
2261
|
+
attr_accessor :deletion_time
|
|
2262
|
+
|
|
2263
|
+
#
|
|
2264
|
+
# Corresponds to the JSON property `emails`
|
|
2265
|
+
# @return [Object]
|
|
2266
|
+
attr_accessor :emails
|
|
2267
|
+
|
|
2268
|
+
# ETag of the resource.
|
|
2269
|
+
# Corresponds to the JSON property `etag`
|
|
2270
|
+
# @return [String]
|
|
2271
|
+
attr_accessor :etag
|
|
2272
|
+
|
|
2273
|
+
#
|
|
2274
|
+
# Corresponds to the JSON property `externalIds`
|
|
2275
|
+
# @return [Object]
|
|
2276
|
+
attr_accessor :external_ids
|
|
2277
|
+
|
|
2278
|
+
# Hash function name for password. Supported are MD5, SHA-1 and crypt
|
|
2279
|
+
# Corresponds to the JSON property `hashFunction`
|
|
2280
|
+
# @return [String]
|
|
2281
|
+
attr_accessor :hash_function
|
|
2282
|
+
|
|
2283
|
+
# Unique identifier of User (Read-only)
|
|
2284
|
+
# Corresponds to the JSON property `id`
|
|
2285
|
+
# @return [String]
|
|
2286
|
+
attr_accessor :id
|
|
2287
|
+
|
|
2288
|
+
#
|
|
2289
|
+
# Corresponds to the JSON property `ims`
|
|
2290
|
+
# @return [Object]
|
|
2291
|
+
attr_accessor :ims
|
|
2292
|
+
|
|
2293
|
+
# Boolean indicating if user is included in Global Address List
|
|
2294
|
+
# Corresponds to the JSON property `includeInGlobalAddressList`
|
|
2295
|
+
# @return [Boolean]
|
|
2296
|
+
attr_accessor :include_in_global_address_list
|
|
2297
|
+
alias_method :include_in_global_address_list?, :include_in_global_address_list
|
|
2298
|
+
|
|
2299
|
+
# Boolean indicating if ip is whitelisted
|
|
2300
|
+
# Corresponds to the JSON property `ipWhitelisted`
|
|
2301
|
+
# @return [Boolean]
|
|
2302
|
+
attr_accessor :ip_whitelisted
|
|
2303
|
+
alias_method :ip_whitelisted?, :ip_whitelisted
|
|
2304
|
+
|
|
2305
|
+
# Boolean indicating if the user is admin (Read-only)
|
|
2306
|
+
# Corresponds to the JSON property `isAdmin`
|
|
2307
|
+
# @return [Boolean]
|
|
2308
|
+
attr_accessor :is_admin
|
|
2309
|
+
alias_method :is_admin?, :is_admin
|
|
2310
|
+
|
|
2311
|
+
# Boolean indicating if the user is delegated admin (Read-only)
|
|
2312
|
+
# Corresponds to the JSON property `isDelegatedAdmin`
|
|
2313
|
+
# @return [Boolean]
|
|
2314
|
+
attr_accessor :is_delegated_admin
|
|
2315
|
+
alias_method :is_delegated_admin?, :is_delegated_admin
|
|
2316
|
+
|
|
2317
|
+
# Is mailbox setup (Read-only)
|
|
2318
|
+
# Corresponds to the JSON property `isMailboxSetup`
|
|
2319
|
+
# @return [Boolean]
|
|
2320
|
+
attr_accessor :is_mailbox_setup
|
|
2321
|
+
alias_method :is_mailbox_setup?, :is_mailbox_setup
|
|
2322
|
+
|
|
2323
|
+
# Kind of resource this is.
|
|
2324
|
+
# Corresponds to the JSON property `kind`
|
|
2325
|
+
# @return [String]
|
|
2326
|
+
attr_accessor :kind
|
|
2327
|
+
|
|
2328
|
+
# User's last login time. (Read-only)
|
|
2329
|
+
# Corresponds to the JSON property `lastLoginTime`
|
|
2330
|
+
# @return [DateTime]
|
|
2331
|
+
attr_accessor :last_login_time
|
|
2332
|
+
|
|
2333
|
+
# JSON template for name of a user in Directory API.
|
|
2334
|
+
# Corresponds to the JSON property `name`
|
|
2335
|
+
# @return [Google::Apis::AdminDirectoryV1::UserName]
|
|
2336
|
+
attr_accessor :name
|
|
2337
|
+
|
|
2338
|
+
# List of non editable aliases (Read-only)
|
|
2339
|
+
# Corresponds to the JSON property `nonEditableAliases`
|
|
2340
|
+
# @return [Array<String>]
|
|
2341
|
+
attr_accessor :non_editable_aliases
|
|
2342
|
+
|
|
2343
|
+
#
|
|
2344
|
+
# Corresponds to the JSON property `notes`
|
|
2345
|
+
# @return [Object]
|
|
2346
|
+
attr_accessor :notes
|
|
2347
|
+
|
|
2348
|
+
# OrgUnit of User
|
|
2349
|
+
# Corresponds to the JSON property `orgUnitPath`
|
|
2350
|
+
# @return [String]
|
|
2351
|
+
attr_accessor :org_unit_path
|
|
2352
|
+
|
|
2353
|
+
#
|
|
2354
|
+
# Corresponds to the JSON property `organizations`
|
|
2355
|
+
# @return [Object]
|
|
2356
|
+
attr_accessor :organizations
|
|
2357
|
+
|
|
2358
|
+
# User's password
|
|
2359
|
+
# Corresponds to the JSON property `password`
|
|
2360
|
+
# @return [String]
|
|
2361
|
+
attr_accessor :password
|
|
2362
|
+
|
|
2363
|
+
#
|
|
2364
|
+
# Corresponds to the JSON property `phones`
|
|
2365
|
+
# @return [Object]
|
|
2366
|
+
attr_accessor :phones
|
|
2367
|
+
|
|
2368
|
+
# username of User
|
|
2369
|
+
# Corresponds to the JSON property `primaryEmail`
|
|
2370
|
+
# @return [String]
|
|
2371
|
+
attr_accessor :primary_email
|
|
2372
|
+
|
|
2373
|
+
#
|
|
2374
|
+
# Corresponds to the JSON property `relations`
|
|
2375
|
+
# @return [Object]
|
|
2376
|
+
attr_accessor :relations
|
|
2377
|
+
|
|
2378
|
+
# Indicates if user is suspended
|
|
2379
|
+
# Corresponds to the JSON property `suspended`
|
|
2380
|
+
# @return [Boolean]
|
|
2381
|
+
attr_accessor :suspended
|
|
2382
|
+
alias_method :suspended?, :suspended
|
|
2383
|
+
|
|
2384
|
+
# Suspension reason if user is suspended (Read-only)
|
|
2385
|
+
# Corresponds to the JSON property `suspensionReason`
|
|
2386
|
+
# @return [String]
|
|
2387
|
+
attr_accessor :suspension_reason
|
|
2388
|
+
|
|
2389
|
+
# ETag of the user's photo (Read-only)
|
|
2390
|
+
# Corresponds to the JSON property `thumbnailPhotoEtag`
|
|
2391
|
+
# @return [String]
|
|
2392
|
+
attr_accessor :thumbnail_photo_etag
|
|
2393
|
+
|
|
2394
|
+
# Photo Url of the user (Read-only)
|
|
2395
|
+
# Corresponds to the JSON property `thumbnailPhotoUrl`
|
|
2396
|
+
# @return [String]
|
|
2397
|
+
attr_accessor :thumbnail_photo_url
|
|
2398
|
+
|
|
2399
|
+
#
|
|
2400
|
+
# Corresponds to the JSON property `websites`
|
|
2401
|
+
# @return [Object]
|
|
2402
|
+
attr_accessor :websites
|
|
2403
|
+
|
|
2404
|
+
def initialize(**args)
|
|
2405
|
+
update!(**args)
|
|
2406
|
+
end
|
|
2407
|
+
|
|
2408
|
+
# Update properties of this object
|
|
2409
|
+
def update!(**args)
|
|
2410
|
+
@addresses = args[:addresses] unless args[:addresses].nil?
|
|
2411
|
+
@agreed_to_terms = args[:agreed_to_terms] unless args[:agreed_to_terms].nil?
|
|
2412
|
+
@aliases = args[:aliases] unless args[:aliases].nil?
|
|
2413
|
+
@change_password_at_next_login = args[:change_password_at_next_login] unless args[:change_password_at_next_login].nil?
|
|
2414
|
+
@creation_time = args[:creation_time] unless args[:creation_time].nil?
|
|
2415
|
+
@custom_schemas = args[:custom_schemas] unless args[:custom_schemas].nil?
|
|
2416
|
+
@customer_id = args[:customer_id] unless args[:customer_id].nil?
|
|
2417
|
+
@deletion_time = args[:deletion_time] unless args[:deletion_time].nil?
|
|
2418
|
+
@emails = args[:emails] unless args[:emails].nil?
|
|
2419
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
2420
|
+
@external_ids = args[:external_ids] unless args[:external_ids].nil?
|
|
2421
|
+
@hash_function = args[:hash_function] unless args[:hash_function].nil?
|
|
2422
|
+
@id = args[:id] unless args[:id].nil?
|
|
2423
|
+
@ims = args[:ims] unless args[:ims].nil?
|
|
2424
|
+
@include_in_global_address_list = args[:include_in_global_address_list] unless args[:include_in_global_address_list].nil?
|
|
2425
|
+
@ip_whitelisted = args[:ip_whitelisted] unless args[:ip_whitelisted].nil?
|
|
2426
|
+
@is_admin = args[:is_admin] unless args[:is_admin].nil?
|
|
2427
|
+
@is_delegated_admin = args[:is_delegated_admin] unless args[:is_delegated_admin].nil?
|
|
2428
|
+
@is_mailbox_setup = args[:is_mailbox_setup] unless args[:is_mailbox_setup].nil?
|
|
2429
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
2430
|
+
@last_login_time = args[:last_login_time] unless args[:last_login_time].nil?
|
|
2431
|
+
@name = args[:name] unless args[:name].nil?
|
|
2432
|
+
@non_editable_aliases = args[:non_editable_aliases] unless args[:non_editable_aliases].nil?
|
|
2433
|
+
@notes = args[:notes] unless args[:notes].nil?
|
|
2434
|
+
@org_unit_path = args[:org_unit_path] unless args[:org_unit_path].nil?
|
|
2435
|
+
@organizations = args[:organizations] unless args[:organizations].nil?
|
|
2436
|
+
@password = args[:password] unless args[:password].nil?
|
|
2437
|
+
@phones = args[:phones] unless args[:phones].nil?
|
|
2438
|
+
@primary_email = args[:primary_email] unless args[:primary_email].nil?
|
|
2439
|
+
@relations = args[:relations] unless args[:relations].nil?
|
|
2440
|
+
@suspended = args[:suspended] unless args[:suspended].nil?
|
|
2441
|
+
@suspension_reason = args[:suspension_reason] unless args[:suspension_reason].nil?
|
|
2442
|
+
@thumbnail_photo_etag = args[:thumbnail_photo_etag] unless args[:thumbnail_photo_etag].nil?
|
|
2443
|
+
@thumbnail_photo_url = args[:thumbnail_photo_url] unless args[:thumbnail_photo_url].nil?
|
|
2444
|
+
@websites = args[:websites] unless args[:websites].nil?
|
|
2445
|
+
end
|
|
2446
|
+
end
|
|
2447
|
+
|
|
2448
|
+
# JSON template for About (notes) of a user in Directory API.
|
|
2449
|
+
class UserAbout
|
|
2450
|
+
include Google::Apis::Core::Hashable
|
|
2451
|
+
|
|
2452
|
+
# About entry can have a type which indicates the content type. It can either be
|
|
2453
|
+
# plain or html. By default, notes contents are assumed to contain plain text.
|
|
2454
|
+
# Corresponds to the JSON property `contentType`
|
|
2455
|
+
# @return [String]
|
|
2456
|
+
attr_accessor :content_type
|
|
2457
|
+
|
|
2458
|
+
# Actual value of notes.
|
|
2459
|
+
# Corresponds to the JSON property `value`
|
|
2460
|
+
# @return [String]
|
|
2461
|
+
attr_accessor :value
|
|
2462
|
+
|
|
2463
|
+
def initialize(**args)
|
|
2464
|
+
update!(**args)
|
|
2465
|
+
end
|
|
2466
|
+
|
|
2467
|
+
# Update properties of this object
|
|
2468
|
+
def update!(**args)
|
|
2469
|
+
@content_type = args[:content_type] unless args[:content_type].nil?
|
|
2470
|
+
@value = args[:value] unless args[:value].nil?
|
|
2471
|
+
end
|
|
2472
|
+
end
|
|
2473
|
+
|
|
2474
|
+
# JSON template for address.
|
|
2475
|
+
class UserAddress
|
|
2476
|
+
include Google::Apis::Core::Hashable
|
|
2477
|
+
|
|
2478
|
+
# Country.
|
|
2479
|
+
# Corresponds to the JSON property `country`
|
|
2480
|
+
# @return [String]
|
|
2481
|
+
attr_accessor :country
|
|
2482
|
+
|
|
2483
|
+
# Country code.
|
|
2484
|
+
# Corresponds to the JSON property `countryCode`
|
|
2485
|
+
# @return [String]
|
|
2486
|
+
attr_accessor :country_code
|
|
2487
|
+
|
|
2488
|
+
# Custom type.
|
|
2489
|
+
# Corresponds to the JSON property `customType`
|
|
2490
|
+
# @return [String]
|
|
2491
|
+
attr_accessor :custom_type
|
|
2492
|
+
|
|
2493
|
+
# Extended Address.
|
|
2494
|
+
# Corresponds to the JSON property `extendedAddress`
|
|
2495
|
+
# @return [String]
|
|
2496
|
+
attr_accessor :extended_address
|
|
2497
|
+
|
|
2498
|
+
# Formatted address.
|
|
2499
|
+
# Corresponds to the JSON property `formatted`
|
|
2500
|
+
# @return [String]
|
|
2501
|
+
attr_accessor :formatted
|
|
2502
|
+
|
|
2503
|
+
# Locality.
|
|
2504
|
+
# Corresponds to the JSON property `locality`
|
|
2505
|
+
# @return [String]
|
|
2506
|
+
attr_accessor :locality
|
|
2507
|
+
|
|
2508
|
+
# Other parts of address.
|
|
2509
|
+
# Corresponds to the JSON property `poBox`
|
|
2510
|
+
# @return [String]
|
|
2511
|
+
attr_accessor :po_box
|
|
2512
|
+
|
|
2513
|
+
# Postal code.
|
|
2514
|
+
# Corresponds to the JSON property `postalCode`
|
|
2515
|
+
# @return [String]
|
|
2516
|
+
attr_accessor :postal_code
|
|
2517
|
+
|
|
2518
|
+
# If this is user's primary address. Only one entry could be marked as primary.
|
|
2519
|
+
# Corresponds to the JSON property `primary`
|
|
2520
|
+
# @return [Boolean]
|
|
2521
|
+
attr_accessor :primary
|
|
2522
|
+
alias_method :primary?, :primary
|
|
2523
|
+
|
|
2524
|
+
# Region.
|
|
2525
|
+
# Corresponds to the JSON property `region`
|
|
2526
|
+
# @return [String]
|
|
2527
|
+
attr_accessor :region
|
|
2528
|
+
|
|
2529
|
+
# User supplied address was structured. Structured addresses are NOT supported
|
|
2530
|
+
# at this time. You might be able to write structured addresses, but any values
|
|
2531
|
+
# will eventually be clobbered.
|
|
2532
|
+
# Corresponds to the JSON property `sourceIsStructured`
|
|
2533
|
+
# @return [Boolean]
|
|
2534
|
+
attr_accessor :source_is_structured
|
|
2535
|
+
alias_method :source_is_structured?, :source_is_structured
|
|
2536
|
+
|
|
2537
|
+
# Street.
|
|
2538
|
+
# Corresponds to the JSON property `streetAddress`
|
|
2539
|
+
# @return [String]
|
|
2540
|
+
attr_accessor :street_address
|
|
2541
|
+
|
|
2542
|
+
# Each entry can have a type which indicates standard values of that entry. For
|
|
2543
|
+
# example address could be of home, work etc. In addition to the standard type,
|
|
2544
|
+
# an entry can have a custom type and can take any value. Such type should have
|
|
2545
|
+
# the CUSTOM value as type and also have a customType value.
|
|
2546
|
+
# Corresponds to the JSON property `type`
|
|
2547
|
+
# @return [String]
|
|
2548
|
+
attr_accessor :type
|
|
2549
|
+
|
|
2550
|
+
def initialize(**args)
|
|
2551
|
+
update!(**args)
|
|
2552
|
+
end
|
|
2553
|
+
|
|
2554
|
+
# Update properties of this object
|
|
2555
|
+
def update!(**args)
|
|
2556
|
+
@country = args[:country] unless args[:country].nil?
|
|
2557
|
+
@country_code = args[:country_code] unless args[:country_code].nil?
|
|
2558
|
+
@custom_type = args[:custom_type] unless args[:custom_type].nil?
|
|
2559
|
+
@extended_address = args[:extended_address] unless args[:extended_address].nil?
|
|
2560
|
+
@formatted = args[:formatted] unless args[:formatted].nil?
|
|
2561
|
+
@locality = args[:locality] unless args[:locality].nil?
|
|
2562
|
+
@po_box = args[:po_box] unless args[:po_box].nil?
|
|
2563
|
+
@postal_code = args[:postal_code] unless args[:postal_code].nil?
|
|
2564
|
+
@primary = args[:primary] unless args[:primary].nil?
|
|
2565
|
+
@region = args[:region] unless args[:region].nil?
|
|
2566
|
+
@source_is_structured = args[:source_is_structured] unless args[:source_is_structured].nil?
|
|
2567
|
+
@street_address = args[:street_address] unless args[:street_address].nil?
|
|
2568
|
+
@type = args[:type] unless args[:type].nil?
|
|
2569
|
+
end
|
|
2570
|
+
end
|
|
2571
|
+
|
|
2572
|
+
# JSON template for an email.
|
|
2573
|
+
class UserEmail
|
|
2574
|
+
include Google::Apis::Core::Hashable
|
|
2575
|
+
|
|
2576
|
+
# Email id of the user.
|
|
2577
|
+
# Corresponds to the JSON property `address`
|
|
2578
|
+
# @return [String]
|
|
2579
|
+
attr_accessor :address
|
|
2580
|
+
|
|
2581
|
+
# Custom Type.
|
|
2582
|
+
# Corresponds to the JSON property `customType`
|
|
2583
|
+
# @return [String]
|
|
2584
|
+
attr_accessor :custom_type
|
|
2585
|
+
|
|
2586
|
+
# If this is user's primary email. Only one entry could be marked as primary.
|
|
2587
|
+
# Corresponds to the JSON property `primary`
|
|
2588
|
+
# @return [Boolean]
|
|
2589
|
+
attr_accessor :primary
|
|
2590
|
+
alias_method :primary?, :primary
|
|
2591
|
+
|
|
2592
|
+
# Each entry can have a type which indicates standard types of that entry. For
|
|
2593
|
+
# example email could be of home, work etc. In addition to the standard type, an
|
|
2594
|
+
# entry can have a custom type and can take any value Such types should have the
|
|
2595
|
+
# CUSTOM value as type and also have a customType value.
|
|
2596
|
+
# Corresponds to the JSON property `type`
|
|
2597
|
+
# @return [String]
|
|
2598
|
+
attr_accessor :type
|
|
2599
|
+
|
|
2600
|
+
def initialize(**args)
|
|
2601
|
+
update!(**args)
|
|
2602
|
+
end
|
|
2603
|
+
|
|
2604
|
+
# Update properties of this object
|
|
2605
|
+
def update!(**args)
|
|
2606
|
+
@address = args[:address] unless args[:address].nil?
|
|
2607
|
+
@custom_type = args[:custom_type] unless args[:custom_type].nil?
|
|
2608
|
+
@primary = args[:primary] unless args[:primary].nil?
|
|
2609
|
+
@type = args[:type] unless args[:type].nil?
|
|
2610
|
+
end
|
|
2611
|
+
end
|
|
2612
|
+
|
|
2613
|
+
# JSON template for an externalId entry.
|
|
2614
|
+
class UserExternalId
|
|
2615
|
+
include Google::Apis::Core::Hashable
|
|
2616
|
+
|
|
2617
|
+
# Custom type.
|
|
2618
|
+
# Corresponds to the JSON property `customType`
|
|
2619
|
+
# @return [String]
|
|
2620
|
+
attr_accessor :custom_type
|
|
2621
|
+
|
|
2622
|
+
# The type of the Id.
|
|
2623
|
+
# Corresponds to the JSON property `type`
|
|
2624
|
+
# @return [String]
|
|
2625
|
+
attr_accessor :type
|
|
2626
|
+
|
|
2627
|
+
# The value of the id.
|
|
2628
|
+
# Corresponds to the JSON property `value`
|
|
2629
|
+
# @return [String]
|
|
2630
|
+
attr_accessor :value
|
|
2631
|
+
|
|
2632
|
+
def initialize(**args)
|
|
2633
|
+
update!(**args)
|
|
2634
|
+
end
|
|
2635
|
+
|
|
2636
|
+
# Update properties of this object
|
|
2637
|
+
def update!(**args)
|
|
2638
|
+
@custom_type = args[:custom_type] unless args[:custom_type].nil?
|
|
2639
|
+
@type = args[:type] unless args[:type].nil?
|
|
2640
|
+
@value = args[:value] unless args[:value].nil?
|
|
2641
|
+
end
|
|
2642
|
+
end
|
|
2643
|
+
|
|
2644
|
+
# JSON template for instant messenger of an user.
|
|
2645
|
+
class UserIm
|
|
2646
|
+
include Google::Apis::Core::Hashable
|
|
2647
|
+
|
|
2648
|
+
# Custom protocol.
|
|
2649
|
+
# Corresponds to the JSON property `customProtocol`
|
|
2650
|
+
# @return [String]
|
|
2651
|
+
attr_accessor :custom_protocol
|
|
2652
|
+
|
|
2653
|
+
# Custom type.
|
|
2654
|
+
# Corresponds to the JSON property `customType`
|
|
2655
|
+
# @return [String]
|
|
2656
|
+
attr_accessor :custom_type
|
|
2657
|
+
|
|
2658
|
+
# Instant messenger id.
|
|
2659
|
+
# Corresponds to the JSON property `im`
|
|
2660
|
+
# @return [String]
|
|
2661
|
+
attr_accessor :im
|
|
2662
|
+
|
|
2663
|
+
# If this is user's primary im. Only one entry could be marked as primary.
|
|
2664
|
+
# Corresponds to the JSON property `primary`
|
|
2665
|
+
# @return [Boolean]
|
|
2666
|
+
attr_accessor :primary
|
|
2667
|
+
alias_method :primary?, :primary
|
|
2668
|
+
|
|
2669
|
+
# Protocol used in the instant messenger. It should be one of the values from
|
|
2670
|
+
# ImProtocolTypes map. Similar to type, it can take a CUSTOM value and specify
|
|
2671
|
+
# the custom name in customProtocol field.
|
|
2672
|
+
# Corresponds to the JSON property `protocol`
|
|
2673
|
+
# @return [String]
|
|
2674
|
+
attr_accessor :protocol
|
|
2675
|
+
|
|
2676
|
+
# Each entry can have a type which indicates standard types of that entry. For
|
|
2677
|
+
# example instant messengers could be of home, work etc. In addition to the
|
|
2678
|
+
# standard type, an entry can have a custom type and can take any value. Such
|
|
2679
|
+
# types should have the CUSTOM value as type and also have a customType value.
|
|
2680
|
+
# Corresponds to the JSON property `type`
|
|
2681
|
+
# @return [String]
|
|
2682
|
+
attr_accessor :type
|
|
2683
|
+
|
|
2684
|
+
def initialize(**args)
|
|
2685
|
+
update!(**args)
|
|
2686
|
+
end
|
|
2687
|
+
|
|
2688
|
+
# Update properties of this object
|
|
2689
|
+
def update!(**args)
|
|
2690
|
+
@custom_protocol = args[:custom_protocol] unless args[:custom_protocol].nil?
|
|
2691
|
+
@custom_type = args[:custom_type] unless args[:custom_type].nil?
|
|
2692
|
+
@im = args[:im] unless args[:im].nil?
|
|
2693
|
+
@primary = args[:primary] unless args[:primary].nil?
|
|
2694
|
+
@protocol = args[:protocol] unless args[:protocol].nil?
|
|
2695
|
+
@type = args[:type] unless args[:type].nil?
|
|
2696
|
+
end
|
|
2697
|
+
end
|
|
2698
|
+
|
|
2699
|
+
# JSON request template for setting/revoking admin status of a user in Directory
|
|
2700
|
+
# API.
|
|
2701
|
+
class UserMakeAdmin
|
|
2702
|
+
include Google::Apis::Core::Hashable
|
|
2703
|
+
|
|
2704
|
+
# Boolean indicating new admin status of the user
|
|
2705
|
+
# Corresponds to the JSON property `status`
|
|
2706
|
+
# @return [Boolean]
|
|
2707
|
+
attr_accessor :status
|
|
2708
|
+
alias_method :status?, :status
|
|
2709
|
+
|
|
2710
|
+
def initialize(**args)
|
|
2711
|
+
update!(**args)
|
|
2712
|
+
end
|
|
2713
|
+
|
|
2714
|
+
# Update properties of this object
|
|
2715
|
+
def update!(**args)
|
|
2716
|
+
@status = args[:status] unless args[:status].nil?
|
|
2717
|
+
end
|
|
2718
|
+
end
|
|
2719
|
+
|
|
2720
|
+
# JSON template for name of a user in Directory API.
|
|
2721
|
+
class UserName
|
|
2722
|
+
include Google::Apis::Core::Hashable
|
|
2723
|
+
|
|
2724
|
+
# Last Name
|
|
2725
|
+
# Corresponds to the JSON property `familyName`
|
|
2726
|
+
# @return [String]
|
|
2727
|
+
attr_accessor :family_name
|
|
2728
|
+
|
|
2729
|
+
# Full Name
|
|
2730
|
+
# Corresponds to the JSON property `fullName`
|
|
2731
|
+
# @return [String]
|
|
2732
|
+
attr_accessor :full_name
|
|
2733
|
+
|
|
2734
|
+
# First Name
|
|
2735
|
+
# Corresponds to the JSON property `givenName`
|
|
2736
|
+
# @return [String]
|
|
2737
|
+
attr_accessor :given_name
|
|
2738
|
+
|
|
2739
|
+
def initialize(**args)
|
|
2740
|
+
update!(**args)
|
|
2741
|
+
end
|
|
2742
|
+
|
|
2743
|
+
# Update properties of this object
|
|
2744
|
+
def update!(**args)
|
|
2745
|
+
@family_name = args[:family_name] unless args[:family_name].nil?
|
|
2746
|
+
@full_name = args[:full_name] unless args[:full_name].nil?
|
|
2747
|
+
@given_name = args[:given_name] unless args[:given_name].nil?
|
|
2748
|
+
end
|
|
2749
|
+
end
|
|
2750
|
+
|
|
2751
|
+
# JSON template for an organization entry.
|
|
2752
|
+
class UserOrganization
|
|
2753
|
+
include Google::Apis::Core::Hashable
|
|
2754
|
+
|
|
2755
|
+
# The cost center of the users department.
|
|
2756
|
+
# Corresponds to the JSON property `costCenter`
|
|
2757
|
+
# @return [String]
|
|
2758
|
+
attr_accessor :cost_center
|
|
2759
|
+
|
|
2760
|
+
# Custom type.
|
|
2761
|
+
# Corresponds to the JSON property `customType`
|
|
2762
|
+
# @return [String]
|
|
2763
|
+
attr_accessor :custom_type
|
|
2764
|
+
|
|
2765
|
+
# Department within the organization.
|
|
2766
|
+
# Corresponds to the JSON property `department`
|
|
2767
|
+
# @return [String]
|
|
2768
|
+
attr_accessor :department
|
|
2769
|
+
|
|
2770
|
+
# Description of the organization.
|
|
2771
|
+
# Corresponds to the JSON property `description`
|
|
2772
|
+
# @return [String]
|
|
2773
|
+
attr_accessor :description
|
|
2774
|
+
|
|
2775
|
+
# The domain to which the organization belongs to.
|
|
2776
|
+
# Corresponds to the JSON property `domain`
|
|
2777
|
+
# @return [String]
|
|
2778
|
+
attr_accessor :domain
|
|
2779
|
+
|
|
2780
|
+
# Location of the organization. This need not be fully qualified address.
|
|
2781
|
+
# Corresponds to the JSON property `location`
|
|
2782
|
+
# @return [String]
|
|
2783
|
+
attr_accessor :location
|
|
2784
|
+
|
|
2785
|
+
# Name of the organization
|
|
2786
|
+
# Corresponds to the JSON property `name`
|
|
2787
|
+
# @return [String]
|
|
2788
|
+
attr_accessor :name
|
|
2789
|
+
|
|
2790
|
+
# If it user's primary organization.
|
|
2791
|
+
# Corresponds to the JSON property `primary`
|
|
2792
|
+
# @return [Boolean]
|
|
2793
|
+
attr_accessor :primary
|
|
2794
|
+
alias_method :primary?, :primary
|
|
2795
|
+
|
|
2796
|
+
# Symbol of the organization.
|
|
2797
|
+
# Corresponds to the JSON property `symbol`
|
|
2798
|
+
# @return [String]
|
|
2799
|
+
attr_accessor :symbol
|
|
2800
|
+
|
|
2801
|
+
# Title (designation) of the user in the organization.
|
|
2802
|
+
# Corresponds to the JSON property `title`
|
|
2803
|
+
# @return [String]
|
|
2804
|
+
attr_accessor :title
|
|
2805
|
+
|
|
2806
|
+
# Each entry can have a type which indicates standard types of that entry. For
|
|
2807
|
+
# example organization could be of school, work etc. In addition to the standard
|
|
2808
|
+
# type, an entry can have a custom type and can give it any name. Such types
|
|
2809
|
+
# should have the CUSTOM value as type and also have a CustomType value.
|
|
2810
|
+
# Corresponds to the JSON property `type`
|
|
2811
|
+
# @return [String]
|
|
2812
|
+
attr_accessor :type
|
|
2813
|
+
|
|
2814
|
+
def initialize(**args)
|
|
2815
|
+
update!(**args)
|
|
2816
|
+
end
|
|
2817
|
+
|
|
2818
|
+
# Update properties of this object
|
|
2819
|
+
def update!(**args)
|
|
2820
|
+
@cost_center = args[:cost_center] unless args[:cost_center].nil?
|
|
2821
|
+
@custom_type = args[:custom_type] unless args[:custom_type].nil?
|
|
2822
|
+
@department = args[:department] unless args[:department].nil?
|
|
2823
|
+
@description = args[:description] unless args[:description].nil?
|
|
2824
|
+
@domain = args[:domain] unless args[:domain].nil?
|
|
2825
|
+
@location = args[:location] unless args[:location].nil?
|
|
2826
|
+
@name = args[:name] unless args[:name].nil?
|
|
2827
|
+
@primary = args[:primary] unless args[:primary].nil?
|
|
2828
|
+
@symbol = args[:symbol] unless args[:symbol].nil?
|
|
2829
|
+
@title = args[:title] unless args[:title].nil?
|
|
2830
|
+
@type = args[:type] unless args[:type].nil?
|
|
2831
|
+
end
|
|
2832
|
+
end
|
|
2833
|
+
|
|
2834
|
+
# JSON template for a phone entry.
|
|
2835
|
+
class UserPhone
|
|
2836
|
+
include Google::Apis::Core::Hashable
|
|
2837
|
+
|
|
2838
|
+
# Custom Type.
|
|
2839
|
+
# Corresponds to the JSON property `customType`
|
|
2840
|
+
# @return [String]
|
|
2841
|
+
attr_accessor :custom_type
|
|
2842
|
+
|
|
2843
|
+
# If this is user's primary phone or not.
|
|
2844
|
+
# Corresponds to the JSON property `primary`
|
|
2845
|
+
# @return [Boolean]
|
|
2846
|
+
attr_accessor :primary
|
|
2847
|
+
alias_method :primary?, :primary
|
|
2848
|
+
|
|
2849
|
+
# Each entry can have a type which indicates standard types of that entry. For
|
|
2850
|
+
# example phone could be of home_fax, work, mobile etc. In addition to the
|
|
2851
|
+
# standard type, an entry can have a custom type and can give it any name. Such
|
|
2852
|
+
# types should have the CUSTOM value as type and also have a customType value.
|
|
2853
|
+
# Corresponds to the JSON property `type`
|
|
2854
|
+
# @return [String]
|
|
2855
|
+
attr_accessor :type
|
|
2856
|
+
|
|
2857
|
+
# Phone number.
|
|
2858
|
+
# Corresponds to the JSON property `value`
|
|
2859
|
+
# @return [String]
|
|
2860
|
+
attr_accessor :value
|
|
2861
|
+
|
|
2862
|
+
def initialize(**args)
|
|
2863
|
+
update!(**args)
|
|
2864
|
+
end
|
|
2865
|
+
|
|
2866
|
+
# Update properties of this object
|
|
2867
|
+
def update!(**args)
|
|
2868
|
+
@custom_type = args[:custom_type] unless args[:custom_type].nil?
|
|
2869
|
+
@primary = args[:primary] unless args[:primary].nil?
|
|
2870
|
+
@type = args[:type] unless args[:type].nil?
|
|
2871
|
+
@value = args[:value] unless args[:value].nil?
|
|
2872
|
+
end
|
|
2873
|
+
end
|
|
2874
|
+
|
|
2875
|
+
# JSON template for Photo object in Directory API.
|
|
2876
|
+
class UserPhoto
|
|
2877
|
+
include Google::Apis::Core::Hashable
|
|
2878
|
+
|
|
2879
|
+
# ETag of the resource.
|
|
2880
|
+
# Corresponds to the JSON property `etag`
|
|
2881
|
+
# @return [String]
|
|
2882
|
+
attr_accessor :etag
|
|
2883
|
+
|
|
2884
|
+
# Height in pixels of the photo
|
|
2885
|
+
# Corresponds to the JSON property `height`
|
|
2886
|
+
# @return [Fixnum]
|
|
2887
|
+
attr_accessor :height
|
|
2888
|
+
|
|
2889
|
+
# Unique identifier of User (Read-only)
|
|
2890
|
+
# Corresponds to the JSON property `id`
|
|
2891
|
+
# @return [String]
|
|
2892
|
+
attr_accessor :id
|
|
2893
|
+
|
|
2894
|
+
# Kind of resource this is.
|
|
2895
|
+
# Corresponds to the JSON property `kind`
|
|
2896
|
+
# @return [String]
|
|
2897
|
+
attr_accessor :kind
|
|
2898
|
+
|
|
2899
|
+
# Mime Type of the photo
|
|
2900
|
+
# Corresponds to the JSON property `mimeType`
|
|
2901
|
+
# @return [String]
|
|
2902
|
+
attr_accessor :mime_type
|
|
2903
|
+
|
|
2904
|
+
# Base64 encoded photo data
|
|
2905
|
+
# Corresponds to the JSON property `photoData`
|
|
2906
|
+
# @return [String]
|
|
2907
|
+
attr_accessor :photo_data
|
|
2908
|
+
|
|
2909
|
+
# Primary email of User (Read-only)
|
|
2910
|
+
# Corresponds to the JSON property `primaryEmail`
|
|
2911
|
+
# @return [String]
|
|
2912
|
+
attr_accessor :primary_email
|
|
2913
|
+
|
|
2914
|
+
# Width in pixels of the photo
|
|
2915
|
+
# Corresponds to the JSON property `width`
|
|
2916
|
+
# @return [Fixnum]
|
|
2917
|
+
attr_accessor :width
|
|
2918
|
+
|
|
2919
|
+
def initialize(**args)
|
|
2920
|
+
update!(**args)
|
|
2921
|
+
end
|
|
2922
|
+
|
|
2923
|
+
# Update properties of this object
|
|
2924
|
+
def update!(**args)
|
|
2925
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
2926
|
+
@height = args[:height] unless args[:height].nil?
|
|
2927
|
+
@id = args[:id] unless args[:id].nil?
|
|
2928
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
2929
|
+
@mime_type = args[:mime_type] unless args[:mime_type].nil?
|
|
2930
|
+
@photo_data = args[:photo_data] unless args[:photo_data].nil?
|
|
2931
|
+
@primary_email = args[:primary_email] unless args[:primary_email].nil?
|
|
2932
|
+
@width = args[:width] unless args[:width].nil?
|
|
2933
|
+
end
|
|
2934
|
+
end
|
|
2935
|
+
|
|
2936
|
+
# JSON template for a relation entry.
|
|
2937
|
+
class UserRelation
|
|
2938
|
+
include Google::Apis::Core::Hashable
|
|
2939
|
+
|
|
2940
|
+
# Custom Type.
|
|
2941
|
+
# Corresponds to the JSON property `customType`
|
|
2942
|
+
# @return [String]
|
|
2943
|
+
attr_accessor :custom_type
|
|
2944
|
+
|
|
2945
|
+
# The relation of the user. Some of the possible values are mother, father,
|
|
2946
|
+
# sister, brother, manager, assistant, partner.
|
|
2947
|
+
# Corresponds to the JSON property `type`
|
|
2948
|
+
# @return [String]
|
|
2949
|
+
attr_accessor :type
|
|
2950
|
+
|
|
2951
|
+
# The name of the relation.
|
|
2952
|
+
# Corresponds to the JSON property `value`
|
|
2953
|
+
# @return [String]
|
|
2954
|
+
attr_accessor :value
|
|
2955
|
+
|
|
2956
|
+
def initialize(**args)
|
|
2957
|
+
update!(**args)
|
|
2958
|
+
end
|
|
2959
|
+
|
|
2960
|
+
# Update properties of this object
|
|
2961
|
+
def update!(**args)
|
|
2962
|
+
@custom_type = args[:custom_type] unless args[:custom_type].nil?
|
|
2963
|
+
@type = args[:type] unless args[:type].nil?
|
|
2964
|
+
@value = args[:value] unless args[:value].nil?
|
|
2965
|
+
end
|
|
2966
|
+
end
|
|
2967
|
+
|
|
2968
|
+
# JSON request template to undelete a user in Directory API.
|
|
2969
|
+
class UserUndelete
|
|
2970
|
+
include Google::Apis::Core::Hashable
|
|
2971
|
+
|
|
2972
|
+
# OrgUnit of User
|
|
2973
|
+
# Corresponds to the JSON property `orgUnitPath`
|
|
2974
|
+
# @return [String]
|
|
2975
|
+
attr_accessor :org_unit_path
|
|
2976
|
+
|
|
2977
|
+
def initialize(**args)
|
|
2978
|
+
update!(**args)
|
|
2979
|
+
end
|
|
2980
|
+
|
|
2981
|
+
# Update properties of this object
|
|
2982
|
+
def update!(**args)
|
|
2983
|
+
@org_unit_path = args[:org_unit_path] unless args[:org_unit_path].nil?
|
|
2984
|
+
end
|
|
2985
|
+
end
|
|
2986
|
+
|
|
2987
|
+
# JSON template for a website entry.
|
|
2988
|
+
class UserWebsite
|
|
2989
|
+
include Google::Apis::Core::Hashable
|
|
2990
|
+
|
|
2991
|
+
# Custom Type.
|
|
2992
|
+
# Corresponds to the JSON property `customType`
|
|
2993
|
+
# @return [String]
|
|
2994
|
+
attr_accessor :custom_type
|
|
2995
|
+
|
|
2996
|
+
# If this is user's primary website or not.
|
|
2997
|
+
# Corresponds to the JSON property `primary`
|
|
2998
|
+
# @return [Boolean]
|
|
2999
|
+
attr_accessor :primary
|
|
3000
|
+
alias_method :primary?, :primary
|
|
3001
|
+
|
|
3002
|
+
# Each entry can have a type which indicates standard types of that entry. For
|
|
3003
|
+
# example website could be of home, work, blog etc. In addition to the standard
|
|
3004
|
+
# type, an entry can have a custom type and can give it any name. Such types
|
|
3005
|
+
# should have the CUSTOM value as type and also have a customType value.
|
|
3006
|
+
# Corresponds to the JSON property `type`
|
|
3007
|
+
# @return [String]
|
|
3008
|
+
attr_accessor :type
|
|
3009
|
+
|
|
3010
|
+
# Website.
|
|
3011
|
+
# Corresponds to the JSON property `value`
|
|
3012
|
+
# @return [String]
|
|
3013
|
+
attr_accessor :value
|
|
3014
|
+
|
|
3015
|
+
def initialize(**args)
|
|
3016
|
+
update!(**args)
|
|
3017
|
+
end
|
|
3018
|
+
|
|
3019
|
+
# Update properties of this object
|
|
3020
|
+
def update!(**args)
|
|
3021
|
+
@custom_type = args[:custom_type] unless args[:custom_type].nil?
|
|
3022
|
+
@primary = args[:primary] unless args[:primary].nil?
|
|
3023
|
+
@type = args[:type] unless args[:type].nil?
|
|
3024
|
+
@value = args[:value] unless args[:value].nil?
|
|
3025
|
+
end
|
|
3026
|
+
end
|
|
3027
|
+
|
|
3028
|
+
# JSON response template for List Users operation in Apps Directory API.
|
|
3029
|
+
class Users
|
|
3030
|
+
include Google::Apis::Core::Hashable
|
|
3031
|
+
|
|
3032
|
+
# ETag of the resource.
|
|
3033
|
+
# Corresponds to the JSON property `etag`
|
|
3034
|
+
# @return [String]
|
|
3035
|
+
attr_accessor :etag
|
|
3036
|
+
|
|
3037
|
+
# Kind of resource this is.
|
|
3038
|
+
# Corresponds to the JSON property `kind`
|
|
3039
|
+
# @return [String]
|
|
3040
|
+
attr_accessor :kind
|
|
3041
|
+
|
|
3042
|
+
# Token used to access next page of this result.
|
|
3043
|
+
# Corresponds to the JSON property `nextPageToken`
|
|
3044
|
+
# @return [String]
|
|
3045
|
+
attr_accessor :next_page_token
|
|
3046
|
+
|
|
3047
|
+
# Event that triggered this response (only used in case of Push Response)
|
|
3048
|
+
# Corresponds to the JSON property `trigger_event`
|
|
3049
|
+
# @return [String]
|
|
3050
|
+
attr_accessor :trigger_event
|
|
3051
|
+
|
|
3052
|
+
# List of user objects.
|
|
3053
|
+
# Corresponds to the JSON property `users`
|
|
3054
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::User>]
|
|
3055
|
+
attr_accessor :users
|
|
3056
|
+
|
|
3057
|
+
def initialize(**args)
|
|
3058
|
+
update!(**args)
|
|
3059
|
+
end
|
|
3060
|
+
|
|
3061
|
+
# Update properties of this object
|
|
3062
|
+
def update!(**args)
|
|
3063
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
3064
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
3065
|
+
@next_page_token = args[:next_page_token] unless args[:next_page_token].nil?
|
|
3066
|
+
@trigger_event = args[:trigger_event] unless args[:trigger_event].nil?
|
|
3067
|
+
@users = args[:users] unless args[:users].nil?
|
|
3068
|
+
end
|
|
3069
|
+
end
|
|
3070
|
+
|
|
3071
|
+
# JSON template for verification codes in Directory API.
|
|
3072
|
+
class VerificationCode
|
|
3073
|
+
include Google::Apis::Core::Hashable
|
|
3074
|
+
|
|
3075
|
+
# ETag of the resource.
|
|
3076
|
+
# Corresponds to the JSON property `etag`
|
|
3077
|
+
# @return [String]
|
|
3078
|
+
attr_accessor :etag
|
|
3079
|
+
|
|
3080
|
+
# The type of the resource. This is always admin#directory#verificationCode.
|
|
3081
|
+
# Corresponds to the JSON property `kind`
|
|
3082
|
+
# @return [String]
|
|
3083
|
+
attr_accessor :kind
|
|
3084
|
+
|
|
3085
|
+
# The obfuscated unique ID of the user.
|
|
3086
|
+
# Corresponds to the JSON property `userId`
|
|
3087
|
+
# @return [String]
|
|
3088
|
+
attr_accessor :user_id
|
|
3089
|
+
|
|
3090
|
+
# A current verification code for the user. Invalidated or used verification
|
|
3091
|
+
# codes are not returned as part of the result.
|
|
3092
|
+
# Corresponds to the JSON property `verificationCode`
|
|
3093
|
+
# @return [String]
|
|
3094
|
+
attr_accessor :verification_code
|
|
3095
|
+
|
|
3096
|
+
def initialize(**args)
|
|
3097
|
+
update!(**args)
|
|
3098
|
+
end
|
|
3099
|
+
|
|
3100
|
+
# Update properties of this object
|
|
3101
|
+
def update!(**args)
|
|
3102
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
3103
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
3104
|
+
@user_id = args[:user_id] unless args[:user_id].nil?
|
|
3105
|
+
@verification_code = args[:verification_code] unless args[:verification_code].nil?
|
|
3106
|
+
end
|
|
3107
|
+
end
|
|
3108
|
+
|
|
3109
|
+
# JSON response template for List verification codes operation in Directory API.
|
|
3110
|
+
class VerificationCodes
|
|
3111
|
+
include Google::Apis::Core::Hashable
|
|
3112
|
+
|
|
3113
|
+
# ETag of the resource.
|
|
3114
|
+
# Corresponds to the JSON property `etag`
|
|
3115
|
+
# @return [String]
|
|
3116
|
+
attr_accessor :etag
|
|
3117
|
+
|
|
3118
|
+
# A list of verification code resources.
|
|
3119
|
+
# Corresponds to the JSON property `items`
|
|
3120
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::VerificationCode>]
|
|
3121
|
+
attr_accessor :items
|
|
3122
|
+
|
|
3123
|
+
# The type of the resource. This is always admin#directory#verificationCodesList.
|
|
3124
|
+
# Corresponds to the JSON property `kind`
|
|
3125
|
+
# @return [String]
|
|
3126
|
+
attr_accessor :kind
|
|
3127
|
+
|
|
3128
|
+
def initialize(**args)
|
|
3129
|
+
update!(**args)
|
|
3130
|
+
end
|
|
3131
|
+
|
|
3132
|
+
# Update properties of this object
|
|
3133
|
+
def update!(**args)
|
|
3134
|
+
@etag = args[:etag] unless args[:etag].nil?
|
|
3135
|
+
@items = args[:items] unless args[:items].nil?
|
|
3136
|
+
@kind = args[:kind] unless args[:kind].nil?
|
|
3137
|
+
end
|
|
3138
|
+
end
|
|
3139
|
+
end
|
|
3140
|
+
end
|
|
3141
|
+
end
|