lemboy-google-api-client 0.9.26
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +20 -0
- data/.rspec +2 -0
- data/.rubocop.yml +7 -0
- data/.rubocop_todo.yml +63 -0
- data/.travis.yml +27 -0
- data/.yardopts +12 -0
- data/CHANGELOG.md +309 -0
- data/CONTRIBUTING.md +31 -0
- data/Gemfile +53 -0
- data/LICENSE +202 -0
- data/MIGRATING.md +171 -0
- data/README.md +327 -0
- data/Rakefile +2 -0
- data/api_names.yaml +36215 -0
- data/bin/generate-api +109 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1.rb +35 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/classes.rb +298 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/representations.rb +122 -0
- data/generated/google/apis/adexchangebuyer2_v2beta1/service.rb +458 -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/adexchangebuyer_v1_4.rb +35 -0
- data/generated/google/apis/adexchangebuyer_v1_4/classes.rb +3550 -0
- data/generated/google/apis/adexchangebuyer_v1_4/representations.rb +1421 -0
- data/generated/google/apis/adexchangebuyer_v1_4/service.rb +1538 -0
- data/generated/google/apis/adexchangeseller_v2_0.rb +37 -0
- data/generated/google/apis/adexchangeseller_v2_0/classes.rb +792 -0
- data/generated/google/apis/adexchangeseller_v2_0/representations.rb +347 -0
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +667 -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 +130 -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 +3241 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +1172 -0
- data/generated/google/apis/admin_directory_v1/service.rb +3857 -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 +257 -0
- data/generated/google/apis/admin_reports_v1/service.rb +336 -0
- data/generated/google/apis/adsense_v1_4.rb +37 -0
- data/generated/google/apis/adsense_v1_4/classes.rb +1280 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +555 -0
- data/generated/google/apis/adsense_v1_4/service.rb +1713 -0
- data/generated/google/apis/adsensehost_v4_1.rb +35 -0
- data/generated/google/apis/adsensehost_v4_1/classes.rb +836 -0
- data/generated/google/apis/adsensehost_v4_1/representations.rb +367 -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 +5536 -0
- data/generated/google/apis/analytics_v3/representations.rb +1992 -0
- data/generated/google/apis/analytics_v3/service.rb +3785 -0
- data/generated/google/apis/analyticsreporting_v4.rb +37 -0
- data/generated/google/apis/analyticsreporting_v4/classes.rb +1420 -0
- data/generated/google/apis/analyticsreporting_v4/representations.rb +598 -0
- data/generated/google/apis/analyticsreporting_v4/service.rb +88 -0
- data/generated/google/apis/androidenterprise_v1.rb +34 -0
- data/generated/google/apis/androidenterprise_v1/classes.rb +2250 -0
- data/generated/google/apis/androidenterprise_v1/representations.rb +970 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +3267 -0
- data/generated/google/apis/androidpublisher_v2.rb +34 -0
- data/generated/google/apis/androidpublisher_v2/classes.rb +1941 -0
- data/generated/google/apis/androidpublisher_v2/representations.rb +975 -0
- data/generated/google/apis/androidpublisher_v2/service.rb +2572 -0
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1585 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +542 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +477 -0
- data/generated/google/apis/appengine_v1beta5.rb +40 -0
- data/generated/google/apis/appengine_v1beta5/classes.rb +1984 -0
- data/generated/google/apis/appengine_v1beta5/representations.rb +765 -0
- data/generated/google/apis/appengine_v1beta5/service.rb +864 -0
- data/generated/google/apis/appsactivity_v1.rb +46 -0
- data/generated/google/apis/appsactivity_v1/classes.rb +415 -0
- data/generated/google/apis/appsactivity_v1/representations.rb +209 -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 +87 -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 +710 -0
- data/generated/google/apis/autoscaler_v1beta2/representations.rb +296 -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 +3081 -0
- data/generated/google/apis/bigquery_v2/representations.rb +1094 -0
- data/generated/google/apis/bigquery_v2/service.rb +988 -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 +632 -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 +4160 -0
- data/generated/google/apis/books_v1/representations.rb +1799 -0
- data/generated/google/apis/books_v1/service.rb +2300 -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 +631 -0
- data/generated/google/apis/calendar_v3/service.rb +1968 -0
- data/generated/google/apis/civicinfo_v2.rb +32 -0
- data/generated/google/apis/civicinfo_v2/classes.rb +1499 -0
- data/generated/google/apis/civicinfo_v2/representations.rb +572 -0
- data/generated/google/apis/civicinfo_v2/service.rb +300 -0
- data/generated/google/apis/classroom_v1.rb +70 -0
- data/generated/google/apis/classroom_v1/classes.rb +1572 -0
- data/generated/google/apis/classroom_v1/representations.rb +729 -0
- data/generated/google/apis/classroom_v1/service.rb +1945 -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 +87 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/cloudbuild_v1.rb +34 -0
- data/generated/google/apis/cloudbuild_v1/classes.rb +919 -0
- data/generated/google/apis/cloudbuild_v1/representations.rb +364 -0
- data/generated/google/apis/cloudbuild_v1/service.rb +492 -0
- data/generated/google/apis/clouddebugger_v2.rb +38 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1081 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +465 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +396 -0
- data/generated/google/apis/cloudkms_v1beta1.rb +34 -0
- data/generated/google/apis/cloudkms_v1beta1/classes.rb +999 -0
- data/generated/google/apis/cloudkms_v1beta1/representations.rb +448 -0
- data/generated/google/apis/cloudkms_v1beta1/service.rb +932 -0
- data/generated/google/apis/cloudlatencytest_v2.rb +34 -0
- data/generated/google/apis/cloudlatencytest_v2/classes.rb +195 -0
- data/generated/google/apis/cloudlatencytest_v2/representations.rb +127 -0
- data/generated/google/apis/cloudlatencytest_v2/service.rb +135 -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 +353 -0
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +452 -0
- data/generated/google/apis/cloudresourcemanager_v1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1/classes.rb +886 -0
- data/generated/google/apis/cloudresourcemanager_v1/representations.rb +359 -0
- data/generated/google/apis/cloudresourcemanager_v1/service.rb +686 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +38 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +682 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +312 -0
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +710 -0
- data/generated/google/apis/cloudtrace_v1.rb +43 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +102 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +192 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +44 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +845 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +352 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +907 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +12261 -0
- data/generated/google/apis/compute_beta/representations.rb +4615 -0
- data/generated/google/apis/compute_beta/service.rb +15330 -0
- data/generated/google/apis/compute_v1.rb +49 -0
- data/generated/google/apis/compute_v1/classes.rb +11179 -0
- data/generated/google/apis/compute_v1/representations.rb +4203 -0
- data/generated/google/apis/compute_v1/service.rb +12937 -0
- data/generated/google/apis/container_v1.rb +35 -0
- data/generated/google/apis/container_v1/classes.rb +1040 -0
- data/generated/google/apis/container_v1/representations.rb +415 -0
- data/generated/google/apis/container_v1/service.rb +659 -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 +6887 -0
- data/generated/google/apis/content_v2/representations.rb +2963 -0
- data/generated/google/apis/content_v2/service.rb +2653 -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 +321 -0
- data/generated/google/apis/coordinate_v1/service.rb +678 -0
- data/generated/google/apis/customsearch_v1.rb +31 -0
- data/generated/google/apis/customsearch_v1/classes.rb +771 -0
- data/generated/google/apis/customsearch_v1/representations.rb +302 -0
- data/generated/google/apis/customsearch_v1/service.rb +207 -0
- data/generated/google/apis/dataflow_v1b3.rb +37 -0
- data/generated/google/apis/dataflow_v1b3/classes.rb +4225 -0
- data/generated/google/apis/dataflow_v1b3/representations.rb +1809 -0
- data/generated/google/apis/dataflow_v1b3/service.rb +874 -0
- data/generated/google/apis/dataproc_v1.rb +34 -0
- data/generated/google/apis/dataproc_v1/classes.rb +1716 -0
- data/generated/google/apis/dataproc_v1/representations.rb +678 -0
- data/generated/google/apis/dataproc_v1/service.rb +670 -0
- data/generated/google/apis/datastore_v1.rb +38 -0
- data/generated/google/apis/datastore_v1/classes.rb +1289 -0
- data/generated/google/apis/datastore_v1/representations.rb +572 -0
- data/generated/google/apis/datastore_v1/service.rb +259 -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 +594 -0
- data/generated/google/apis/datastore_v1beta2/service.rb +294 -0
- data/generated/google/apis/datastore_v1beta3.rb +38 -0
- data/generated/google/apis/datastore_v1beta3/classes.rb +1284 -0
- data/generated/google/apis/datastore_v1beta3/representations.rb +572 -0
- data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
- data/generated/google/apis/deploymentmanager_v2.rb +43 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1582 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +686 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +1026 -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/dfareporting_v2_3.rb +37 -0
- data/generated/google/apis/dfareporting_v2_3/classes.rb +10839 -0
- data/generated/google/apis/dfareporting_v2_3/representations.rb +3829 -0
- data/generated/google/apis/dfareporting_v2_3/service.rb +8581 -0
- data/generated/google/apis/dfareporting_v2_5.rb +40 -0
- data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
- data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
- data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
- data/generated/google/apis/dfareporting_v2_6.rb +40 -0
- data/generated/google/apis/dfareporting_v2_6/classes.rb +11586 -0
- data/generated/google/apis/dfareporting_v2_6/representations.rb +4119 -0
- data/generated/google/apis/dfareporting_v2_6/service.rb +9025 -0
- data/generated/google/apis/dfareporting_v2_7.rb +40 -0
- data/generated/google/apis/dfareporting_v2_7/classes.rb +11876 -0
- data/generated/google/apis/dfareporting_v2_7/representations.rb +4243 -0
- data/generated/google/apis/dfareporting_v2_7/service.rb +9095 -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 +397 -0
- data/generated/google/apis/discovery_v1/service.rb +142 -0
- data/generated/google/apis/dns_v1.rb +43 -0
- data/generated/google/apis/dns_v1/classes.rb +406 -0
- data/generated/google/apis/dns_v1/representations.rb +167 -0
- data/generated/google/apis/dns_v1/service.rb +453 -0
- data/generated/google/apis/dns_v2beta1.rb +43 -0
- data/generated/google/apis/dns_v2beta1/classes.rb +915 -0
- data/generated/google/apis/dns_v2beta1/representations.rb +368 -0
- data/generated/google/apis/dns_v2beta1/service.rb +768 -0
- data/generated/google/apis/doubleclickbidmanager_v1.rb +31 -0
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +795 -0
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +368 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +376 -0
- data/generated/google/apis/doubleclicksearch_v2.rb +35 -0
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +960 -0
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +350 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +480 -0
- data/generated/google/apis/drive_v2.rb +59 -0
- data/generated/google/apis/drive_v2/classes.rb +2633 -0
- data/generated/google/apis/drive_v2/representations.rb +885 -0
- data/generated/google/apis/drive_v2/service.rb +2754 -0
- data/generated/google/apis/drive_v3.rb +56 -0
- data/generated/google/apis/drive_v3/classes.rb +1611 -0
- data/generated/google/apis/drive_v3/representations.rb +555 -0
- data/generated/google/apis/drive_v3/service.rb +1553 -0
- data/generated/google/apis/fitness_v1.rb +85 -0
- data/generated/google/apis/fitness_v1/classes.rb +943 -0
- data/generated/google/apis/fitness_v1/representations.rb +380 -0
- data/generated/google/apis/fitness_v1/service.rb +674 -0
- data/generated/google/apis/fusiontables_v2.rb +37 -0
- data/generated/google/apis/fusiontables_v2/classes.rb +1049 -0
- data/generated/google/apis/fusiontables_v2/representations.rb +457 -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 +228 -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 +567 -0
- data/generated/google/apis/games_management_v1management/representations.rb +278 -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 +4667 -0
- data/generated/google/apis/games_v1/representations.rb +1800 -0
- data/generated/google/apis/games_v1/service.rb +2449 -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 +462 -0
- data/generated/google/apis/gan_v1beta1/service.rb +682 -0
- data/generated/google/apis/genomics_v1.rb +46 -0
- data/generated/google/apis/genomics_v1/classes.rb +3477 -0
- data/generated/google/apis/genomics_v1/representations.rb +1284 -0
- data/generated/google/apis/genomics_v1/service.rb +2207 -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 +61 -0
- data/generated/google/apis/gmail_v1/classes.rb +1382 -0
- data/generated/google/apis/gmail_v1/representations.rb +624 -0
- data/generated/google/apis/gmail_v1/service.rb +2447 -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 +40 -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 +240 -0
- data/generated/google/apis/groupssettings_v1/representations.rb +69 -0
- data/generated/google/apis/groupssettings_v1/service.rb +179 -0
- data/generated/google/apis/iam_v1.rb +36 -0
- data/generated/google/apis/iam_v1/classes.rb +640 -0
- data/generated/google/apis/iam_v1/representations.rb +316 -0
- data/generated/google/apis/iam_v1/service.rb +554 -0
- data/generated/google/apis/identitytoolkit_v3.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/classes.rb +2182 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +742 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +657 -0
- data/generated/google/apis/kgsearch_v1.rb +31 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +41 -0
- data/generated/google/apis/kgsearch_v1/service.rb +113 -0
- data/generated/google/apis/language_v1beta1.rb +36 -0
- data/generated/google/apis/language_v1beta1/classes.rb +757 -0
- data/generated/google/apis/language_v1beta1/representations.rb +339 -0
- data/generated/google/apis/language_v1beta1/service.rb +184 -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 +74 -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/logging_v2beta1.rb +46 -0
- data/generated/google/apis/logging_v2beta1/classes.rb +1254 -0
- data/generated/google/apis/logging_v2beta1/representations.rb +421 -0
- data/generated/google/apis/logging_v2beta1/service.rb +788 -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 +606 -0
- data/generated/google/apis/manager_v1beta2/service.rb +372 -0
- data/generated/google/apis/manufacturers_v1.rb +34 -0
- data/generated/google/apis/manufacturers_v1/classes.rb +258 -0
- data/generated/google/apis/manufacturers_v1/representations.rb +103 -0
- data/generated/google/apis/manufacturers_v1/service.rb +138 -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 +390 -0
- data/generated/google/apis/mirror_v1/service.rb +977 -0
- data/generated/google/apis/monitoring_v3.rb +45 -0
- data/generated/google/apis/monitoring_v3/classes.rb +1335 -0
- data/generated/google/apis/monitoring_v3/representations.rb +516 -0
- data/generated/google/apis/monitoring_v3/service.rb +706 -0
- data/generated/google/apis/mybusiness_v3.rb +32 -0
- data/generated/google/apis/mybusiness_v3/classes.rb +1864 -0
- data/generated/google/apis/mybusiness_v3/representations.rb +741 -0
- data/generated/google/apis/mybusiness_v3/service.rb +960 -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 +102 -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 +272 -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 +454 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/people_v1.rb +59 -0
- data/generated/google/apis/people_v1/classes.rb +1521 -0
- data/generated/google/apis/people_v1/representations.rb +663 -0
- data/generated/google/apis/people_v1/service.rb +189 -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 +1111 -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 +907 -0
- data/generated/google/apis/plus_v1/service.rb +470 -0
- data/generated/google/apis/prediction_v1_6.rb +47 -0
- data/generated/google/apis/prediction_v1_6/classes.rb +751 -0
- data/generated/google/apis/prediction_v1_6/representations.rb +369 -0
- data/generated/google/apis/prediction_v1_6/service.rb +380 -0
- data/generated/google/apis/proximitybeacon_v1beta1.rb +34 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +786 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +347 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +806 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +676 -0
- data/generated/google/apis/pubsub_v1/representations.rb +323 -0
- data/generated/google/apis/pubsub_v1/service.rb +900 -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 +1274 -0
- data/generated/google/apis/qpx_express_v1/representations.rb +473 -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 +264 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +608 -0
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +45 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +733 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +294 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +509 -0
- data/generated/google/apis/reseller_v1.rb +37 -0
- data/generated/google/apis/reseller_v1/classes.rb +540 -0
- data/generated/google/apis/reseller_v1/representations.rb +225 -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 +301 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +563 -0
- data/generated/google/apis/script_v1.rb +64 -0
- data/generated/google/apis/script_v1/classes.rb +265 -0
- data/generated/google/apis/script_v1/representations.rb +119 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/sheets_v4.rb +43 -0
- data/generated/google/apis/sheets_v4/classes.rb +6368 -0
- data/generated/google/apis/sheets_v4/representations.rb +2289 -0
- data/generated/google/apis/sheets_v4/service.rb +569 -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 +113 -0
- data/generated/google/apis/site_verification_v1/service.rb +315 -0
- data/generated/google/apis/slides_v1.rb +49 -0
- data/generated/google/apis/slides_v1/classes.rb +4044 -0
- data/generated/google/apis/slides_v1/representations.rb +1765 -0
- data/generated/google/apis/slides_v1/service.rb +202 -0
- data/generated/google/apis/speech_v1beta1.rb +34 -0
- data/generated/google/apis/speech_v1beta1/classes.rb +513 -0
- data/generated/google/apis/speech_v1beta1/representations.rb +218 -0
- data/generated/google/apis/speech_v1beta1/service.rb +273 -0
- data/generated/google/apis/sqladmin_v1beta4.rb +38 -0
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +2142 -0
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +893 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +1709 -0
- data/generated/google/apis/storage_v1.rb +46 -0
- data/generated/google/apis/storage_v1/classes.rb +1255 -0
- data/generated/google/apis/storage_v1/representations.rb +502 -0
- data/generated/google/apis/storage_v1/service.rb +1906 -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 +418 -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 +1494 -0
- data/generated/google/apis/tagmanager_v1/representations.rb +611 -0
- data/generated/google/apis/tagmanager_v1/service.rb +2119 -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 +126 -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 +125 -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 +121 -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 +121 -0
- data/generated/google/apis/urlshortener_v1/service.rb +176 -0
- data/generated/google/apis/vision_v1.rb +36 -0
- data/generated/google/apis/vision_v1/classes.rb +1267 -0
- data/generated/google/apis/vision_v1/representations.rb +418 -0
- data/generated/google/apis/vision_v1/service.rb +90 -0
- data/generated/google/apis/webmasters_v3.rb +37 -0
- data/generated/google/apis/webmasters_v3/classes.rb +570 -0
- data/generated/google/apis/webmasters_v3/representations.rb +283 -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 +337 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +174 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +486 -0
- data/generated/google/apis/youtube_partner_v1.rb +37 -0
- data/generated/google/apis/youtube_partner_v1/classes.rb +3854 -0
- data/generated/google/apis/youtube_partner_v1/representations.rb +1537 -0
- data/generated/google/apis/youtube_partner_v1/service.rb +3269 -0
- data/generated/google/apis/youtube_v3.rb +50 -0
- data/generated/google/apis/youtube_v3/classes.rb +8375 -0
- data/generated/google/apis/youtube_v3/representations.rb +3273 -0
- data/generated/google/apis/youtube_v3/service.rb +4440 -0
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +302 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +149 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +385 -0
- data/google-api-client.gemspec +33 -0
- data/lib/cacerts.pem +2183 -0
- data/lib/google/api_client/auth/installed_app.rb +128 -0
- data/lib/google/api_client/auth/key_utils.rb +94 -0
- data/lib/google/api_client/auth/storage.rb +104 -0
- data/lib/google/api_client/auth/storages/file_store.rb +57 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +59 -0
- data/lib/google/api_client/client_secrets.rb +177 -0
- data/lib/google/apis.rb +58 -0
- data/lib/google/apis/core/api_command.rb +146 -0
- data/lib/google/apis/core/base_service.rb +401 -0
- data/lib/google/apis/core/batch.rb +239 -0
- data/lib/google/apis/core/download.rb +108 -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 +332 -0
- data/lib/google/apis/core/json_representation.rb +145 -0
- data/lib/google/apis/core/logging.rb +30 -0
- data/lib/google/apis/core/multipart.rb +187 -0
- data/lib/google/apis/core/upload.rb +295 -0
- data/lib/google/apis/errors.rb +80 -0
- data/lib/google/apis/generator.rb +70 -0
- data/lib/google/apis/generator/annotator.rb +301 -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 +17 -0
- data/lib/google/apis/generator/templates/_representation_type.tmpl +10 -0
- data/lib/google/apis/generator/templates/classes.rb.tmpl +29 -0
- 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/cli/.env +4 -0
- data/samples/cli/Gemfile +7 -0
- data/samples/cli/README.md +51 -0
- data/samples/cli/google-api-samples +32 -0
- data/samples/cli/lib/base_cli.rb +95 -0
- data/samples/cli/lib/samples/analytics.rb +62 -0
- data/samples/cli/lib/samples/androidpublisher.rb +47 -0
- data/samples/cli/lib/samples/bigquery.rb +101 -0
- data/samples/cli/lib/samples/calendar.rb +83 -0
- data/samples/cli/lib/samples/drive.rb +82 -0
- data/samples/cli/lib/samples/gmail.rb +124 -0
- data/samples/cli/lib/samples/pubsub.rb +114 -0
- data/samples/cli/lib/samples/sheets.rb +61 -0
- data/samples/cli/lib/samples/translate.rb +44 -0
- data/samples/cli/lib/samples/you_tube.rb +44 -0
- data/samples/web/.env +2 -0
- data/samples/web/Gemfile +7 -0
- data/samples/web/README.md +44 -0
- data/samples/web/app.rb +120 -0
- data/samples/web/views/calendar.erb +34 -0
- data/samples/web/views/drive.erb +33 -0
- data/samples/web/views/home.erb +34 -0
- data/samples/web/views/layout.erb +40 -0
- data/sync.rb +71 -0
- data/third_party/hurley_patches.rb +103 -0
- metadata +735 -0
@@ -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 = '20161214'
|
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,3241 @@
|
|
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] if args.key?(:alias)
|
61
|
+
@etag = args[:etag] if args.key?(:etag)
|
62
|
+
@id = args[:id] if args.key?(:id)
|
63
|
+
@kind = args[:kind] if args.key?(:kind)
|
64
|
+
@primary_email = args[:primary_email] if args.key?(:primary_email)
|
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<Object>]
|
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] if args.key?(:aliases)
|
94
|
+
@etag = args[:etag] if args.key?(:etag)
|
95
|
+
@kind = args[:kind] if args.key?(:kind)
|
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] if args.key?(:code_id)
|
146
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
147
|
+
@etag = args[:etag] if args.key?(:etag)
|
148
|
+
@kind = args[:kind] if args.key?(:kind)
|
149
|
+
@last_time_used = args[:last_time_used] if args.key?(:last_time_used)
|
150
|
+
@name = args[:name] if args.key?(:name)
|
151
|
+
@user_key = args[:user_key] if args.key?(:user_key)
|
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] if args.key?(:etag)
|
181
|
+
@items = args[:items] if args.key?(:items)
|
182
|
+
@kind = args[:kind] if args.key?(:kind)
|
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] if args.key?(:etags)
|
235
|
+
@kind = args[:kind] if args.key?(:kind)
|
236
|
+
@resource_description = args[:resource_description] if args.key?(:resource_description)
|
237
|
+
@resource_email = args[:resource_email] if args.key?(:resource_email)
|
238
|
+
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
239
|
+
@resource_name = args[:resource_name] if args.key?(:resource_name)
|
240
|
+
@resource_type = args[:resource_type] if args.key?(:resource_type)
|
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] if args.key?(:etag)
|
277
|
+
@items = args[:items] if args.key?(:items)
|
278
|
+
@kind = args[:kind] if args.key?(:kind)
|
279
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
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] if args.key?(:address)
|
349
|
+
@expiration = args[:expiration] if args.key?(:expiration)
|
350
|
+
@id = args[:id] if args.key?(:id)
|
351
|
+
@kind = args[:kind] if args.key?(:kind)
|
352
|
+
@params = args[:params] if args.key?(:params)
|
353
|
+
@payload = args[:payload] if args.key?(:payload)
|
354
|
+
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
355
|
+
@resource_uri = args[:resource_uri] if args.key?(:resource_uri)
|
356
|
+
@token = args[:token] if args.key?(:token)
|
357
|
+
@type = args[:type] if args.key?(:type)
|
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] if args.key?(:active_time_ranges)
|
500
|
+
@annotated_asset_id = args[:annotated_asset_id] if args.key?(:annotated_asset_id)
|
501
|
+
@annotated_location = args[:annotated_location] if args.key?(:annotated_location)
|
502
|
+
@annotated_user = args[:annotated_user] if args.key?(:annotated_user)
|
503
|
+
@boot_mode = args[:boot_mode] if args.key?(:boot_mode)
|
504
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
505
|
+
@etag = args[:etag] if args.key?(:etag)
|
506
|
+
@ethernet_mac_address = args[:ethernet_mac_address] if args.key?(:ethernet_mac_address)
|
507
|
+
@firmware_version = args[:firmware_version] if args.key?(:firmware_version)
|
508
|
+
@kind = args[:kind] if args.key?(:kind)
|
509
|
+
@last_enrollment_time = args[:last_enrollment_time] if args.key?(:last_enrollment_time)
|
510
|
+
@last_sync = args[:last_sync] if args.key?(:last_sync)
|
511
|
+
@mac_address = args[:mac_address] if args.key?(:mac_address)
|
512
|
+
@meid = args[:meid] if args.key?(:meid)
|
513
|
+
@model = args[:model] if args.key?(:model)
|
514
|
+
@notes = args[:notes] if args.key?(:notes)
|
515
|
+
@order_number = args[:order_number] if args.key?(:order_number)
|
516
|
+
@org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path)
|
517
|
+
@os_version = args[:os_version] if args.key?(:os_version)
|
518
|
+
@platform_version = args[:platform_version] if args.key?(:platform_version)
|
519
|
+
@recent_users = args[:recent_users] if args.key?(:recent_users)
|
520
|
+
@serial_number = args[:serial_number] if args.key?(:serial_number)
|
521
|
+
@status = args[:status] if args.key?(:status)
|
522
|
+
@support_end_date = args[:support_end_date] if args.key?(:support_end_date)
|
523
|
+
@will_auto_renew = args[:will_auto_renew] if args.key?(:will_auto_renew)
|
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] if args.key?(:active_time)
|
547
|
+
@date = args[:date] if args.key?(:date)
|
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] if args.key?(:email)
|
572
|
+
@type = args[:type] if args.key?(:type)
|
573
|
+
end
|
574
|
+
end
|
575
|
+
end
|
576
|
+
|
577
|
+
# JSON request template for firing actions on ChromeOs Device in Directory
|
578
|
+
# Devices API.
|
579
|
+
class ChromeOsDeviceAction
|
580
|
+
include Google::Apis::Core::Hashable
|
581
|
+
|
582
|
+
# Action to be taken on the ChromeOs Device
|
583
|
+
# Corresponds to the JSON property `action`
|
584
|
+
# @return [String]
|
585
|
+
attr_accessor :action
|
586
|
+
|
587
|
+
#
|
588
|
+
# Corresponds to the JSON property `deprovisionReason`
|
589
|
+
# @return [String]
|
590
|
+
attr_accessor :deprovision_reason
|
591
|
+
|
592
|
+
def initialize(**args)
|
593
|
+
update!(**args)
|
594
|
+
end
|
595
|
+
|
596
|
+
# Update properties of this object
|
597
|
+
def update!(**args)
|
598
|
+
@action = args[:action] if args.key?(:action)
|
599
|
+
@deprovision_reason = args[:deprovision_reason] if args.key?(:deprovision_reason)
|
600
|
+
end
|
601
|
+
end
|
602
|
+
|
603
|
+
# JSON response template for List Chrome OS Devices operation in Directory API.
|
604
|
+
class ChromeOsDevices
|
605
|
+
include Google::Apis::Core::Hashable
|
606
|
+
|
607
|
+
# List of Chrome OS Device objects.
|
608
|
+
# Corresponds to the JSON property `chromeosdevices`
|
609
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::ChromeOsDevice>]
|
610
|
+
attr_accessor :chromeosdevices
|
611
|
+
|
612
|
+
# ETag of the resource.
|
613
|
+
# Corresponds to the JSON property `etag`
|
614
|
+
# @return [String]
|
615
|
+
attr_accessor :etag
|
616
|
+
|
617
|
+
# Kind of resource this is.
|
618
|
+
# Corresponds to the JSON property `kind`
|
619
|
+
# @return [String]
|
620
|
+
attr_accessor :kind
|
621
|
+
|
622
|
+
# Token used to access next page of this result.
|
623
|
+
# Corresponds to the JSON property `nextPageToken`
|
624
|
+
# @return [String]
|
625
|
+
attr_accessor :next_page_token
|
626
|
+
|
627
|
+
def initialize(**args)
|
628
|
+
update!(**args)
|
629
|
+
end
|
630
|
+
|
631
|
+
# Update properties of this object
|
632
|
+
def update!(**args)
|
633
|
+
@chromeosdevices = args[:chromeosdevices] if args.key?(:chromeosdevices)
|
634
|
+
@etag = args[:etag] if args.key?(:etag)
|
635
|
+
@kind = args[:kind] if args.key?(:kind)
|
636
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
637
|
+
end
|
638
|
+
end
|
639
|
+
|
640
|
+
# JSON template for Customer Resource object in Directory API.
|
641
|
+
class Customer
|
642
|
+
include Google::Apis::Core::Hashable
|
643
|
+
|
644
|
+
# The customer's secondary contact email address. This email address cannot be
|
645
|
+
# on the same domain as the customerDomain
|
646
|
+
# Corresponds to the JSON property `alternateEmail`
|
647
|
+
# @return [String]
|
648
|
+
attr_accessor :alternate_email
|
649
|
+
|
650
|
+
# The customer's creation time (Readonly)
|
651
|
+
# Corresponds to the JSON property `customerCreationTime`
|
652
|
+
# @return [DateTime]
|
653
|
+
attr_accessor :customer_creation_time
|
654
|
+
|
655
|
+
# The customer's primary domain name string. Do not include the www prefix when
|
656
|
+
# creating a new customer.
|
657
|
+
# Corresponds to the JSON property `customerDomain`
|
658
|
+
# @return [String]
|
659
|
+
attr_accessor :customer_domain
|
660
|
+
|
661
|
+
# ETag of the resource.
|
662
|
+
# Corresponds to the JSON property `etag`
|
663
|
+
# @return [String]
|
664
|
+
attr_accessor :etag
|
665
|
+
|
666
|
+
# The unique ID for the customer's Google account. (Readonly)
|
667
|
+
# Corresponds to the JSON property `id`
|
668
|
+
# @return [String]
|
669
|
+
attr_accessor :id
|
670
|
+
|
671
|
+
# Identifies the resource as a customer. Value: admin#directory#customer
|
672
|
+
# Corresponds to the JSON property `kind`
|
673
|
+
# @return [String]
|
674
|
+
attr_accessor :kind
|
675
|
+
|
676
|
+
# The customer's ISO 639-2 language code. The default value is en-US
|
677
|
+
# Corresponds to the JSON property `language`
|
678
|
+
# @return [String]
|
679
|
+
attr_accessor :language
|
680
|
+
|
681
|
+
# The customer's contact phone number in E.164 format.
|
682
|
+
# Corresponds to the JSON property `phoneNumber`
|
683
|
+
# @return [String]
|
684
|
+
attr_accessor :phone_number
|
685
|
+
|
686
|
+
# JSON template for postal address of a customer.
|
687
|
+
# Corresponds to the JSON property `postalAddress`
|
688
|
+
# @return [Google::Apis::AdminDirectoryV1::CustomerPostalAddress]
|
689
|
+
attr_accessor :postal_address
|
690
|
+
|
691
|
+
def initialize(**args)
|
692
|
+
update!(**args)
|
693
|
+
end
|
694
|
+
|
695
|
+
# Update properties of this object
|
696
|
+
def update!(**args)
|
697
|
+
@alternate_email = args[:alternate_email] if args.key?(:alternate_email)
|
698
|
+
@customer_creation_time = args[:customer_creation_time] if args.key?(:customer_creation_time)
|
699
|
+
@customer_domain = args[:customer_domain] if args.key?(:customer_domain)
|
700
|
+
@etag = args[:etag] if args.key?(:etag)
|
701
|
+
@id = args[:id] if args.key?(:id)
|
702
|
+
@kind = args[:kind] if args.key?(:kind)
|
703
|
+
@language = args[:language] if args.key?(:language)
|
704
|
+
@phone_number = args[:phone_number] if args.key?(:phone_number)
|
705
|
+
@postal_address = args[:postal_address] if args.key?(:postal_address)
|
706
|
+
end
|
707
|
+
end
|
708
|
+
|
709
|
+
# JSON template for postal address of a customer.
|
710
|
+
class CustomerPostalAddress
|
711
|
+
include Google::Apis::Core::Hashable
|
712
|
+
|
713
|
+
# A customer's physical address. The address can be composed of one to three
|
714
|
+
# lines.
|
715
|
+
# Corresponds to the JSON property `addressLine1`
|
716
|
+
# @return [String]
|
717
|
+
attr_accessor :address_line1
|
718
|
+
|
719
|
+
# Address line 2 of the address.
|
720
|
+
# Corresponds to the JSON property `addressLine2`
|
721
|
+
# @return [String]
|
722
|
+
attr_accessor :address_line2
|
723
|
+
|
724
|
+
# Address line 3 of the address.
|
725
|
+
# Corresponds to the JSON property `addressLine3`
|
726
|
+
# @return [String]
|
727
|
+
attr_accessor :address_line3
|
728
|
+
|
729
|
+
# The customer contact's name.
|
730
|
+
# Corresponds to the JSON property `contactName`
|
731
|
+
# @return [String]
|
732
|
+
attr_accessor :contact_name
|
733
|
+
|
734
|
+
# This is a required property. For countryCode information see the ISO 3166
|
735
|
+
# country code elements.
|
736
|
+
# Corresponds to the JSON property `countryCode`
|
737
|
+
# @return [String]
|
738
|
+
attr_accessor :country_code
|
739
|
+
|
740
|
+
# Name of the locality. An example of a locality value is the city of San
|
741
|
+
# Francisco.
|
742
|
+
# Corresponds to the JSON property `locality`
|
743
|
+
# @return [String]
|
744
|
+
attr_accessor :locality
|
745
|
+
|
746
|
+
# The company or company division name.
|
747
|
+
# Corresponds to the JSON property `organizationName`
|
748
|
+
# @return [String]
|
749
|
+
attr_accessor :organization_name
|
750
|
+
|
751
|
+
# The postal code. A postalCode example is a postal zip code such as 10009. This
|
752
|
+
# is in accordance with - http://portablecontacts.net/draft-spec.html#
|
753
|
+
# address_element.
|
754
|
+
# Corresponds to the JSON property `postalCode`
|
755
|
+
# @return [String]
|
756
|
+
attr_accessor :postal_code
|
757
|
+
|
758
|
+
# Name of the region. An example of a region value is NY for the state of New
|
759
|
+
# York.
|
760
|
+
# Corresponds to the JSON property `region`
|
761
|
+
# @return [String]
|
762
|
+
attr_accessor :region
|
763
|
+
|
764
|
+
def initialize(**args)
|
765
|
+
update!(**args)
|
766
|
+
end
|
767
|
+
|
768
|
+
# Update properties of this object
|
769
|
+
def update!(**args)
|
770
|
+
@address_line1 = args[:address_line1] if args.key?(:address_line1)
|
771
|
+
@address_line2 = args[:address_line2] if args.key?(:address_line2)
|
772
|
+
@address_line3 = args[:address_line3] if args.key?(:address_line3)
|
773
|
+
@contact_name = args[:contact_name] if args.key?(:contact_name)
|
774
|
+
@country_code = args[:country_code] if args.key?(:country_code)
|
775
|
+
@locality = args[:locality] if args.key?(:locality)
|
776
|
+
@organization_name = args[:organization_name] if args.key?(:organization_name)
|
777
|
+
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
778
|
+
@region = args[:region] if args.key?(:region)
|
779
|
+
end
|
780
|
+
end
|
781
|
+
|
782
|
+
# JSON template for Domain Alias object in Directory API.
|
783
|
+
class DomainAlias
|
784
|
+
include Google::Apis::Core::Hashable
|
785
|
+
|
786
|
+
# The creation time of the domain alias. (Read-only).
|
787
|
+
# Corresponds to the JSON property `creationTime`
|
788
|
+
# @return [String]
|
789
|
+
attr_accessor :creation_time
|
790
|
+
|
791
|
+
# The domain alias name.
|
792
|
+
# Corresponds to the JSON property `domainAliasName`
|
793
|
+
# @return [String]
|
794
|
+
attr_accessor :domain_alias_name
|
795
|
+
|
796
|
+
# ETag of the resource.
|
797
|
+
# Corresponds to the JSON property `etag`
|
798
|
+
# @return [String]
|
799
|
+
attr_accessor :etag
|
800
|
+
|
801
|
+
# Kind of resource this is.
|
802
|
+
# Corresponds to the JSON property `kind`
|
803
|
+
# @return [String]
|
804
|
+
attr_accessor :kind
|
805
|
+
|
806
|
+
# The parent domain name that the domain alias is associated with. This can
|
807
|
+
# either be a primary or secondary domain name within a customer.
|
808
|
+
# Corresponds to the JSON property `parentDomainName`
|
809
|
+
# @return [String]
|
810
|
+
attr_accessor :parent_domain_name
|
811
|
+
|
812
|
+
# Indicates the verification state of a domain alias. (Read-only)
|
813
|
+
# Corresponds to the JSON property `verified`
|
814
|
+
# @return [Boolean]
|
815
|
+
attr_accessor :verified
|
816
|
+
alias_method :verified?, :verified
|
817
|
+
|
818
|
+
def initialize(**args)
|
819
|
+
update!(**args)
|
820
|
+
end
|
821
|
+
|
822
|
+
# Update properties of this object
|
823
|
+
def update!(**args)
|
824
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
825
|
+
@domain_alias_name = args[:domain_alias_name] if args.key?(:domain_alias_name)
|
826
|
+
@etag = args[:etag] if args.key?(:etag)
|
827
|
+
@kind = args[:kind] if args.key?(:kind)
|
828
|
+
@parent_domain_name = args[:parent_domain_name] if args.key?(:parent_domain_name)
|
829
|
+
@verified = args[:verified] if args.key?(:verified)
|
830
|
+
end
|
831
|
+
end
|
832
|
+
|
833
|
+
# JSON response template to list domain aliases in Directory API.
|
834
|
+
class DomainAliases
|
835
|
+
include Google::Apis::Core::Hashable
|
836
|
+
|
837
|
+
# List of domain alias objects.
|
838
|
+
# Corresponds to the JSON property `domainAliases`
|
839
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::DomainAlias>]
|
840
|
+
attr_accessor :domain_aliases
|
841
|
+
|
842
|
+
# ETag of the resource.
|
843
|
+
# Corresponds to the JSON property `etag`
|
844
|
+
# @return [String]
|
845
|
+
attr_accessor :etag
|
846
|
+
|
847
|
+
# Kind of resource this is.
|
848
|
+
# Corresponds to the JSON property `kind`
|
849
|
+
# @return [String]
|
850
|
+
attr_accessor :kind
|
851
|
+
|
852
|
+
def initialize(**args)
|
853
|
+
update!(**args)
|
854
|
+
end
|
855
|
+
|
856
|
+
# Update properties of this object
|
857
|
+
def update!(**args)
|
858
|
+
@domain_aliases = args[:domain_aliases] if args.key?(:domain_aliases)
|
859
|
+
@etag = args[:etag] if args.key?(:etag)
|
860
|
+
@kind = args[:kind] if args.key?(:kind)
|
861
|
+
end
|
862
|
+
end
|
863
|
+
|
864
|
+
# JSON template for Domain object in Directory API.
|
865
|
+
class Domains
|
866
|
+
include Google::Apis::Core::Hashable
|
867
|
+
|
868
|
+
# Creation time of the domain. (Read-only).
|
869
|
+
# Corresponds to the JSON property `creationTime`
|
870
|
+
# @return [String]
|
871
|
+
attr_accessor :creation_time
|
872
|
+
|
873
|
+
# List of domain alias objects. (Read-only)
|
874
|
+
# Corresponds to the JSON property `domainAliases`
|
875
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::DomainAlias>]
|
876
|
+
attr_accessor :domain_aliases
|
877
|
+
|
878
|
+
# The domain name of the customer.
|
879
|
+
# Corresponds to the JSON property `domainName`
|
880
|
+
# @return [String]
|
881
|
+
attr_accessor :domain_name
|
882
|
+
|
883
|
+
# ETag of the resource.
|
884
|
+
# Corresponds to the JSON property `etag`
|
885
|
+
# @return [String]
|
886
|
+
attr_accessor :etag
|
887
|
+
|
888
|
+
# Indicates if the domain is a primary domain (Read-only).
|
889
|
+
# Corresponds to the JSON property `isPrimary`
|
890
|
+
# @return [Boolean]
|
891
|
+
attr_accessor :is_primary
|
892
|
+
alias_method :is_primary?, :is_primary
|
893
|
+
|
894
|
+
# Kind of resource this is.
|
895
|
+
# Corresponds to the JSON property `kind`
|
896
|
+
# @return [String]
|
897
|
+
attr_accessor :kind
|
898
|
+
|
899
|
+
# Indicates the verification state of a domain. (Read-only).
|
900
|
+
# Corresponds to the JSON property `verified`
|
901
|
+
# @return [Boolean]
|
902
|
+
attr_accessor :verified
|
903
|
+
alias_method :verified?, :verified
|
904
|
+
|
905
|
+
def initialize(**args)
|
906
|
+
update!(**args)
|
907
|
+
end
|
908
|
+
|
909
|
+
# Update properties of this object
|
910
|
+
def update!(**args)
|
911
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
912
|
+
@domain_aliases = args[:domain_aliases] if args.key?(:domain_aliases)
|
913
|
+
@domain_name = args[:domain_name] if args.key?(:domain_name)
|
914
|
+
@etag = args[:etag] if args.key?(:etag)
|
915
|
+
@is_primary = args[:is_primary] if args.key?(:is_primary)
|
916
|
+
@kind = args[:kind] if args.key?(:kind)
|
917
|
+
@verified = args[:verified] if args.key?(:verified)
|
918
|
+
end
|
919
|
+
end
|
920
|
+
|
921
|
+
# JSON response template to list Domains in Directory API.
|
922
|
+
class Domains2
|
923
|
+
include Google::Apis::Core::Hashable
|
924
|
+
|
925
|
+
# List of domain objects.
|
926
|
+
# Corresponds to the JSON property `domains`
|
927
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Domains>]
|
928
|
+
attr_accessor :domains
|
929
|
+
|
930
|
+
# ETag of the resource.
|
931
|
+
# Corresponds to the JSON property `etag`
|
932
|
+
# @return [String]
|
933
|
+
attr_accessor :etag
|
934
|
+
|
935
|
+
# Kind of resource this is.
|
936
|
+
# Corresponds to the JSON property `kind`
|
937
|
+
# @return [String]
|
938
|
+
attr_accessor :kind
|
939
|
+
|
940
|
+
def initialize(**args)
|
941
|
+
update!(**args)
|
942
|
+
end
|
943
|
+
|
944
|
+
# Update properties of this object
|
945
|
+
def update!(**args)
|
946
|
+
@domains = args[:domains] if args.key?(:domains)
|
947
|
+
@etag = args[:etag] if args.key?(:etag)
|
948
|
+
@kind = args[:kind] if args.key?(:kind)
|
949
|
+
end
|
950
|
+
end
|
951
|
+
|
952
|
+
# JSON template for Group resource in Directory API.
|
953
|
+
class Group
|
954
|
+
include Google::Apis::Core::Hashable
|
955
|
+
|
956
|
+
# Is the group created by admin (Read-only) *
|
957
|
+
# Corresponds to the JSON property `adminCreated`
|
958
|
+
# @return [Boolean]
|
959
|
+
attr_accessor :admin_created
|
960
|
+
alias_method :admin_created?, :admin_created
|
961
|
+
|
962
|
+
# List of aliases (Read-only)
|
963
|
+
# Corresponds to the JSON property `aliases`
|
964
|
+
# @return [Array<String>]
|
965
|
+
attr_accessor :aliases
|
966
|
+
|
967
|
+
# Description of the group
|
968
|
+
# Corresponds to the JSON property `description`
|
969
|
+
# @return [String]
|
970
|
+
attr_accessor :description
|
971
|
+
|
972
|
+
# Group direct members count
|
973
|
+
# Corresponds to the JSON property `directMembersCount`
|
974
|
+
# @return [String]
|
975
|
+
attr_accessor :direct_members_count
|
976
|
+
|
977
|
+
# Email of Group
|
978
|
+
# Corresponds to the JSON property `email`
|
979
|
+
# @return [String]
|
980
|
+
attr_accessor :email
|
981
|
+
|
982
|
+
# ETag of the resource.
|
983
|
+
# Corresponds to the JSON property `etag`
|
984
|
+
# @return [String]
|
985
|
+
attr_accessor :etag
|
986
|
+
|
987
|
+
# Unique identifier of Group (Read-only)
|
988
|
+
# Corresponds to the JSON property `id`
|
989
|
+
# @return [String]
|
990
|
+
attr_accessor :id
|
991
|
+
|
992
|
+
# Kind of resource this is.
|
993
|
+
# Corresponds to the JSON property `kind`
|
994
|
+
# @return [String]
|
995
|
+
attr_accessor :kind
|
996
|
+
|
997
|
+
# Group name
|
998
|
+
# Corresponds to the JSON property `name`
|
999
|
+
# @return [String]
|
1000
|
+
attr_accessor :name
|
1001
|
+
|
1002
|
+
# List of non editable aliases (Read-only)
|
1003
|
+
# Corresponds to the JSON property `nonEditableAliases`
|
1004
|
+
# @return [Array<String>]
|
1005
|
+
attr_accessor :non_editable_aliases
|
1006
|
+
|
1007
|
+
def initialize(**args)
|
1008
|
+
update!(**args)
|
1009
|
+
end
|
1010
|
+
|
1011
|
+
# Update properties of this object
|
1012
|
+
def update!(**args)
|
1013
|
+
@admin_created = args[:admin_created] if args.key?(:admin_created)
|
1014
|
+
@aliases = args[:aliases] if args.key?(:aliases)
|
1015
|
+
@description = args[:description] if args.key?(:description)
|
1016
|
+
@direct_members_count = args[:direct_members_count] if args.key?(:direct_members_count)
|
1017
|
+
@email = args[:email] if args.key?(:email)
|
1018
|
+
@etag = args[:etag] if args.key?(:etag)
|
1019
|
+
@id = args[:id] if args.key?(:id)
|
1020
|
+
@kind = args[:kind] if args.key?(:kind)
|
1021
|
+
@name = args[:name] if args.key?(:name)
|
1022
|
+
@non_editable_aliases = args[:non_editable_aliases] if args.key?(:non_editable_aliases)
|
1023
|
+
end
|
1024
|
+
end
|
1025
|
+
|
1026
|
+
# JSON response template for List Groups operation in Directory API.
|
1027
|
+
class Groups
|
1028
|
+
include Google::Apis::Core::Hashable
|
1029
|
+
|
1030
|
+
# ETag of the resource.
|
1031
|
+
# Corresponds to the JSON property `etag`
|
1032
|
+
# @return [String]
|
1033
|
+
attr_accessor :etag
|
1034
|
+
|
1035
|
+
# List of group objects.
|
1036
|
+
# Corresponds to the JSON property `groups`
|
1037
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Group>]
|
1038
|
+
attr_accessor :groups
|
1039
|
+
|
1040
|
+
# Kind of resource this is.
|
1041
|
+
# Corresponds to the JSON property `kind`
|
1042
|
+
# @return [String]
|
1043
|
+
attr_accessor :kind
|
1044
|
+
|
1045
|
+
# Token used to access next page of this result.
|
1046
|
+
# Corresponds to the JSON property `nextPageToken`
|
1047
|
+
# @return [String]
|
1048
|
+
attr_accessor :next_page_token
|
1049
|
+
|
1050
|
+
def initialize(**args)
|
1051
|
+
update!(**args)
|
1052
|
+
end
|
1053
|
+
|
1054
|
+
# Update properties of this object
|
1055
|
+
def update!(**args)
|
1056
|
+
@etag = args[:etag] if args.key?(:etag)
|
1057
|
+
@groups = args[:groups] if args.key?(:groups)
|
1058
|
+
@kind = args[:kind] if args.key?(:kind)
|
1059
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1060
|
+
end
|
1061
|
+
end
|
1062
|
+
|
1063
|
+
# JSON template for Member resource in Directory API.
|
1064
|
+
class Member
|
1065
|
+
include Google::Apis::Core::Hashable
|
1066
|
+
|
1067
|
+
# Email of member (Read-only)
|
1068
|
+
# Corresponds to the JSON property `email`
|
1069
|
+
# @return [String]
|
1070
|
+
attr_accessor :email
|
1071
|
+
|
1072
|
+
# ETag of the resource.
|
1073
|
+
# Corresponds to the JSON property `etag`
|
1074
|
+
# @return [String]
|
1075
|
+
attr_accessor :etag
|
1076
|
+
|
1077
|
+
# Unique identifier of customer member (Read-only) Unique identifier of group (
|
1078
|
+
# Read-only) Unique identifier of member (Read-only)
|
1079
|
+
# Corresponds to the JSON property `id`
|
1080
|
+
# @return [String]
|
1081
|
+
attr_accessor :id
|
1082
|
+
|
1083
|
+
# Kind of resource this is.
|
1084
|
+
# Corresponds to the JSON property `kind`
|
1085
|
+
# @return [String]
|
1086
|
+
attr_accessor :kind
|
1087
|
+
|
1088
|
+
# Role of member
|
1089
|
+
# Corresponds to the JSON property `role`
|
1090
|
+
# @return [String]
|
1091
|
+
attr_accessor :role
|
1092
|
+
|
1093
|
+
# Status of member (Immutable)
|
1094
|
+
# Corresponds to the JSON property `status`
|
1095
|
+
# @return [String]
|
1096
|
+
attr_accessor :status
|
1097
|
+
|
1098
|
+
# Type of member (Immutable)
|
1099
|
+
# Corresponds to the JSON property `type`
|
1100
|
+
# @return [String]
|
1101
|
+
attr_accessor :type
|
1102
|
+
|
1103
|
+
def initialize(**args)
|
1104
|
+
update!(**args)
|
1105
|
+
end
|
1106
|
+
|
1107
|
+
# Update properties of this object
|
1108
|
+
def update!(**args)
|
1109
|
+
@email = args[:email] if args.key?(:email)
|
1110
|
+
@etag = args[:etag] if args.key?(:etag)
|
1111
|
+
@id = args[:id] if args.key?(:id)
|
1112
|
+
@kind = args[:kind] if args.key?(:kind)
|
1113
|
+
@role = args[:role] if args.key?(:role)
|
1114
|
+
@status = args[:status] if args.key?(:status)
|
1115
|
+
@type = args[:type] if args.key?(:type)
|
1116
|
+
end
|
1117
|
+
end
|
1118
|
+
|
1119
|
+
# JSON response template for List Members operation in Directory API.
|
1120
|
+
class Members
|
1121
|
+
include Google::Apis::Core::Hashable
|
1122
|
+
|
1123
|
+
# ETag of the resource.
|
1124
|
+
# Corresponds to the JSON property `etag`
|
1125
|
+
# @return [String]
|
1126
|
+
attr_accessor :etag
|
1127
|
+
|
1128
|
+
# Kind of resource this is.
|
1129
|
+
# Corresponds to the JSON property `kind`
|
1130
|
+
# @return [String]
|
1131
|
+
attr_accessor :kind
|
1132
|
+
|
1133
|
+
# List of member objects.
|
1134
|
+
# Corresponds to the JSON property `members`
|
1135
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Member>]
|
1136
|
+
attr_accessor :members
|
1137
|
+
|
1138
|
+
# Token used to access next page of this result.
|
1139
|
+
# Corresponds to the JSON property `nextPageToken`
|
1140
|
+
# @return [String]
|
1141
|
+
attr_accessor :next_page_token
|
1142
|
+
|
1143
|
+
def initialize(**args)
|
1144
|
+
update!(**args)
|
1145
|
+
end
|
1146
|
+
|
1147
|
+
# Update properties of this object
|
1148
|
+
def update!(**args)
|
1149
|
+
@etag = args[:etag] if args.key?(:etag)
|
1150
|
+
@kind = args[:kind] if args.key?(:kind)
|
1151
|
+
@members = args[:members] if args.key?(:members)
|
1152
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1153
|
+
end
|
1154
|
+
end
|
1155
|
+
|
1156
|
+
# JSON template for Mobile Device resource in Directory API.
|
1157
|
+
class MobileDevice
|
1158
|
+
include Google::Apis::Core::Hashable
|
1159
|
+
|
1160
|
+
# Adb (USB debugging) enabled or disabled on device (Read-only)
|
1161
|
+
# Corresponds to the JSON property `adbStatus`
|
1162
|
+
# @return [Boolean]
|
1163
|
+
attr_accessor :adb_status
|
1164
|
+
alias_method :adb_status?, :adb_status
|
1165
|
+
|
1166
|
+
# List of applications installed on Mobile Device
|
1167
|
+
# Corresponds to the JSON property `applications`
|
1168
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::MobileDevice::Application>]
|
1169
|
+
attr_accessor :applications
|
1170
|
+
|
1171
|
+
# Mobile Device Baseband version (Read-only)
|
1172
|
+
# Corresponds to the JSON property `basebandVersion`
|
1173
|
+
# @return [String]
|
1174
|
+
attr_accessor :baseband_version
|
1175
|
+
|
1176
|
+
# Mobile Device Bootloader version (Read-only)
|
1177
|
+
# Corresponds to the JSON property `bootloaderVersion`
|
1178
|
+
# @return [String]
|
1179
|
+
attr_accessor :bootloader_version
|
1180
|
+
|
1181
|
+
# Mobile Device Brand (Read-only)
|
1182
|
+
# Corresponds to the JSON property `brand`
|
1183
|
+
# @return [String]
|
1184
|
+
attr_accessor :brand
|
1185
|
+
|
1186
|
+
# Mobile Device Build number (Read-only)
|
1187
|
+
# Corresponds to the JSON property `buildNumber`
|
1188
|
+
# @return [String]
|
1189
|
+
attr_accessor :build_number
|
1190
|
+
|
1191
|
+
# The default locale used on the Mobile Device (Read-only)
|
1192
|
+
# Corresponds to the JSON property `defaultLanguage`
|
1193
|
+
# @return [String]
|
1194
|
+
attr_accessor :default_language
|
1195
|
+
|
1196
|
+
# Developer options enabled or disabled on device (Read-only)
|
1197
|
+
# Corresponds to the JSON property `developerOptionsStatus`
|
1198
|
+
# @return [Boolean]
|
1199
|
+
attr_accessor :developer_options_status
|
1200
|
+
alias_method :developer_options_status?, :developer_options_status
|
1201
|
+
|
1202
|
+
# Mobile Device compromised status (Read-only)
|
1203
|
+
# Corresponds to the JSON property `deviceCompromisedStatus`
|
1204
|
+
# @return [String]
|
1205
|
+
attr_accessor :device_compromised_status
|
1206
|
+
|
1207
|
+
# Mobile Device serial number (Read-only)
|
1208
|
+
# Corresponds to the JSON property `deviceId`
|
1209
|
+
# @return [String]
|
1210
|
+
attr_accessor :device_id
|
1211
|
+
|
1212
|
+
# DevicePasswordStatus (Read-only)
|
1213
|
+
# Corresponds to the JSON property `devicePasswordStatus`
|
1214
|
+
# @return [String]
|
1215
|
+
attr_accessor :device_password_status
|
1216
|
+
|
1217
|
+
# List of owner user's email addresses (Read-only)
|
1218
|
+
# Corresponds to the JSON property `email`
|
1219
|
+
# @return [Array<String>]
|
1220
|
+
attr_accessor :email
|
1221
|
+
|
1222
|
+
# Mobile Device Encryption Status (Read-only)
|
1223
|
+
# Corresponds to the JSON property `encryptionStatus`
|
1224
|
+
# @return [String]
|
1225
|
+
attr_accessor :encryption_status
|
1226
|
+
|
1227
|
+
# ETag of the resource.
|
1228
|
+
# Corresponds to the JSON property `etag`
|
1229
|
+
# @return [String]
|
1230
|
+
attr_accessor :etag
|
1231
|
+
|
1232
|
+
# Date and time the device was first synchronized with the policy settings in
|
1233
|
+
# the Google Apps administrator control panel (Read-only)
|
1234
|
+
# Corresponds to the JSON property `firstSync`
|
1235
|
+
# @return [DateTime]
|
1236
|
+
attr_accessor :first_sync
|
1237
|
+
|
1238
|
+
# Mobile Device Hardware (Read-only)
|
1239
|
+
# Corresponds to the JSON property `hardware`
|
1240
|
+
# @return [String]
|
1241
|
+
attr_accessor :hardware
|
1242
|
+
|
1243
|
+
# Mobile Device Hardware Id (Read-only)
|
1244
|
+
# Corresponds to the JSON property `hardwareId`
|
1245
|
+
# @return [String]
|
1246
|
+
attr_accessor :hardware_id
|
1247
|
+
|
1248
|
+
# Mobile Device IMEI number (Read-only)
|
1249
|
+
# Corresponds to the JSON property `imei`
|
1250
|
+
# @return [String]
|
1251
|
+
attr_accessor :imei
|
1252
|
+
|
1253
|
+
# Mobile Device Kernel version (Read-only)
|
1254
|
+
# Corresponds to the JSON property `kernelVersion`
|
1255
|
+
# @return [String]
|
1256
|
+
attr_accessor :kernel_version
|
1257
|
+
|
1258
|
+
# Kind of resource this is.
|
1259
|
+
# Corresponds to the JSON property `kind`
|
1260
|
+
# @return [String]
|
1261
|
+
attr_accessor :kind
|
1262
|
+
|
1263
|
+
# Date and time the device was last synchronized with the policy settings in the
|
1264
|
+
# Google Apps administrator control panel (Read-only)
|
1265
|
+
# Corresponds to the JSON property `lastSync`
|
1266
|
+
# @return [DateTime]
|
1267
|
+
attr_accessor :last_sync
|
1268
|
+
|
1269
|
+
# Boolean indicating if this account is on owner/primary profile or not (Read-
|
1270
|
+
# only)
|
1271
|
+
# Corresponds to the JSON property `managedAccountIsOnOwnerProfile`
|
1272
|
+
# @return [Boolean]
|
1273
|
+
attr_accessor :managed_account_is_on_owner_profile
|
1274
|
+
alias_method :managed_account_is_on_owner_profile?, :managed_account_is_on_owner_profile
|
1275
|
+
|
1276
|
+
# Mobile Device manufacturer (Read-only)
|
1277
|
+
# Corresponds to the JSON property `manufacturer`
|
1278
|
+
# @return [String]
|
1279
|
+
attr_accessor :manufacturer
|
1280
|
+
|
1281
|
+
# Mobile Device MEID number (Read-only)
|
1282
|
+
# Corresponds to the JSON property `meid`
|
1283
|
+
# @return [String]
|
1284
|
+
attr_accessor :meid
|
1285
|
+
|
1286
|
+
# Name of the model of the device
|
1287
|
+
# Corresponds to the JSON property `model`
|
1288
|
+
# @return [String]
|
1289
|
+
attr_accessor :model
|
1290
|
+
|
1291
|
+
# List of owner user's names (Read-only)
|
1292
|
+
# Corresponds to the JSON property `name`
|
1293
|
+
# @return [Array<String>]
|
1294
|
+
attr_accessor :name
|
1295
|
+
|
1296
|
+
# Mobile Device mobile or network operator (if available) (Read-only)
|
1297
|
+
# Corresponds to the JSON property `networkOperator`
|
1298
|
+
# @return [String]
|
1299
|
+
attr_accessor :network_operator
|
1300
|
+
|
1301
|
+
# Name of the mobile operating system
|
1302
|
+
# Corresponds to the JSON property `os`
|
1303
|
+
# @return [String]
|
1304
|
+
attr_accessor :os
|
1305
|
+
|
1306
|
+
# List of accounts added on device (Read-only)
|
1307
|
+
# Corresponds to the JSON property `otherAccountsInfo`
|
1308
|
+
# @return [Array<String>]
|
1309
|
+
attr_accessor :other_accounts_info
|
1310
|
+
|
1311
|
+
# DMAgentPermission (Read-only)
|
1312
|
+
# Corresponds to the JSON property `privilege`
|
1313
|
+
# @return [String]
|
1314
|
+
attr_accessor :privilege
|
1315
|
+
|
1316
|
+
# Mobile Device release version version (Read-only)
|
1317
|
+
# Corresponds to the JSON property `releaseVersion`
|
1318
|
+
# @return [String]
|
1319
|
+
attr_accessor :release_version
|
1320
|
+
|
1321
|
+
# Unique identifier of Mobile Device (Read-only)
|
1322
|
+
# Corresponds to the JSON property `resourceId`
|
1323
|
+
# @return [String]
|
1324
|
+
attr_accessor :resource_id
|
1325
|
+
|
1326
|
+
# Mobile Device Security patch level (Read-only)
|
1327
|
+
# Corresponds to the JSON property `securityPatchLevel`
|
1328
|
+
# @return [String]
|
1329
|
+
attr_accessor :security_patch_level
|
1330
|
+
|
1331
|
+
# Mobile Device SSN or Serial Number (Read-only)
|
1332
|
+
# Corresponds to the JSON property `serialNumber`
|
1333
|
+
# @return [String]
|
1334
|
+
attr_accessor :serial_number
|
1335
|
+
|
1336
|
+
# Status of the device (Read-only)
|
1337
|
+
# Corresponds to the JSON property `status`
|
1338
|
+
# @return [String]
|
1339
|
+
attr_accessor :status
|
1340
|
+
|
1341
|
+
# Work profile supported on device (Read-only)
|
1342
|
+
# Corresponds to the JSON property `supportsWorkProfile`
|
1343
|
+
# @return [Boolean]
|
1344
|
+
attr_accessor :supports_work_profile
|
1345
|
+
alias_method :supports_work_profile?, :supports_work_profile
|
1346
|
+
|
1347
|
+
# The type of device (Read-only)
|
1348
|
+
# Corresponds to the JSON property `type`
|
1349
|
+
# @return [String]
|
1350
|
+
attr_accessor :type
|
1351
|
+
|
1352
|
+
# Unknown sources enabled or disabled on device (Read-only)
|
1353
|
+
# Corresponds to the JSON property `unknownSourcesStatus`
|
1354
|
+
# @return [Boolean]
|
1355
|
+
attr_accessor :unknown_sources_status
|
1356
|
+
alias_method :unknown_sources_status?, :unknown_sources_status
|
1357
|
+
|
1358
|
+
# Mobile Device user agent
|
1359
|
+
# Corresponds to the JSON property `userAgent`
|
1360
|
+
# @return [String]
|
1361
|
+
attr_accessor :user_agent
|
1362
|
+
|
1363
|
+
# Mobile Device WiFi MAC address (Read-only)
|
1364
|
+
# Corresponds to the JSON property `wifiMacAddress`
|
1365
|
+
# @return [String]
|
1366
|
+
attr_accessor :wifi_mac_address
|
1367
|
+
|
1368
|
+
def initialize(**args)
|
1369
|
+
update!(**args)
|
1370
|
+
end
|
1371
|
+
|
1372
|
+
# Update properties of this object
|
1373
|
+
def update!(**args)
|
1374
|
+
@adb_status = args[:adb_status] if args.key?(:adb_status)
|
1375
|
+
@applications = args[:applications] if args.key?(:applications)
|
1376
|
+
@baseband_version = args[:baseband_version] if args.key?(:baseband_version)
|
1377
|
+
@bootloader_version = args[:bootloader_version] if args.key?(:bootloader_version)
|
1378
|
+
@brand = args[:brand] if args.key?(:brand)
|
1379
|
+
@build_number = args[:build_number] if args.key?(:build_number)
|
1380
|
+
@default_language = args[:default_language] if args.key?(:default_language)
|
1381
|
+
@developer_options_status = args[:developer_options_status] if args.key?(:developer_options_status)
|
1382
|
+
@device_compromised_status = args[:device_compromised_status] if args.key?(:device_compromised_status)
|
1383
|
+
@device_id = args[:device_id] if args.key?(:device_id)
|
1384
|
+
@device_password_status = args[:device_password_status] if args.key?(:device_password_status)
|
1385
|
+
@email = args[:email] if args.key?(:email)
|
1386
|
+
@encryption_status = args[:encryption_status] if args.key?(:encryption_status)
|
1387
|
+
@etag = args[:etag] if args.key?(:etag)
|
1388
|
+
@first_sync = args[:first_sync] if args.key?(:first_sync)
|
1389
|
+
@hardware = args[:hardware] if args.key?(:hardware)
|
1390
|
+
@hardware_id = args[:hardware_id] if args.key?(:hardware_id)
|
1391
|
+
@imei = args[:imei] if args.key?(:imei)
|
1392
|
+
@kernel_version = args[:kernel_version] if args.key?(:kernel_version)
|
1393
|
+
@kind = args[:kind] if args.key?(:kind)
|
1394
|
+
@last_sync = args[:last_sync] if args.key?(:last_sync)
|
1395
|
+
@managed_account_is_on_owner_profile = args[:managed_account_is_on_owner_profile] if args.key?(:managed_account_is_on_owner_profile)
|
1396
|
+
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
|
1397
|
+
@meid = args[:meid] if args.key?(:meid)
|
1398
|
+
@model = args[:model] if args.key?(:model)
|
1399
|
+
@name = args[:name] if args.key?(:name)
|
1400
|
+
@network_operator = args[:network_operator] if args.key?(:network_operator)
|
1401
|
+
@os = args[:os] if args.key?(:os)
|
1402
|
+
@other_accounts_info = args[:other_accounts_info] if args.key?(:other_accounts_info)
|
1403
|
+
@privilege = args[:privilege] if args.key?(:privilege)
|
1404
|
+
@release_version = args[:release_version] if args.key?(:release_version)
|
1405
|
+
@resource_id = args[:resource_id] if args.key?(:resource_id)
|
1406
|
+
@security_patch_level = args[:security_patch_level] if args.key?(:security_patch_level)
|
1407
|
+
@serial_number = args[:serial_number] if args.key?(:serial_number)
|
1408
|
+
@status = args[:status] if args.key?(:status)
|
1409
|
+
@supports_work_profile = args[:supports_work_profile] if args.key?(:supports_work_profile)
|
1410
|
+
@type = args[:type] if args.key?(:type)
|
1411
|
+
@unknown_sources_status = args[:unknown_sources_status] if args.key?(:unknown_sources_status)
|
1412
|
+
@user_agent = args[:user_agent] if args.key?(:user_agent)
|
1413
|
+
@wifi_mac_address = args[:wifi_mac_address] if args.key?(:wifi_mac_address)
|
1414
|
+
end
|
1415
|
+
|
1416
|
+
#
|
1417
|
+
class Application
|
1418
|
+
include Google::Apis::Core::Hashable
|
1419
|
+
|
1420
|
+
# Display name of application
|
1421
|
+
# Corresponds to the JSON property `displayName`
|
1422
|
+
# @return [String]
|
1423
|
+
attr_accessor :display_name
|
1424
|
+
|
1425
|
+
# Package name of application
|
1426
|
+
# Corresponds to the JSON property `packageName`
|
1427
|
+
# @return [String]
|
1428
|
+
attr_accessor :package_name
|
1429
|
+
|
1430
|
+
# List of Permissions for application
|
1431
|
+
# Corresponds to the JSON property `permission`
|
1432
|
+
# @return [Array<String>]
|
1433
|
+
attr_accessor :permission
|
1434
|
+
|
1435
|
+
# Version code of application
|
1436
|
+
# Corresponds to the JSON property `versionCode`
|
1437
|
+
# @return [Fixnum]
|
1438
|
+
attr_accessor :version_code
|
1439
|
+
|
1440
|
+
# Version name of application
|
1441
|
+
# Corresponds to the JSON property `versionName`
|
1442
|
+
# @return [String]
|
1443
|
+
attr_accessor :version_name
|
1444
|
+
|
1445
|
+
def initialize(**args)
|
1446
|
+
update!(**args)
|
1447
|
+
end
|
1448
|
+
|
1449
|
+
# Update properties of this object
|
1450
|
+
def update!(**args)
|
1451
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1452
|
+
@package_name = args[:package_name] if args.key?(:package_name)
|
1453
|
+
@permission = args[:permission] if args.key?(:permission)
|
1454
|
+
@version_code = args[:version_code] if args.key?(:version_code)
|
1455
|
+
@version_name = args[:version_name] if args.key?(:version_name)
|
1456
|
+
end
|
1457
|
+
end
|
1458
|
+
end
|
1459
|
+
|
1460
|
+
# JSON request template for firing commands on Mobile Device in Directory
|
1461
|
+
# Devices API.
|
1462
|
+
class MobileDeviceAction
|
1463
|
+
include Google::Apis::Core::Hashable
|
1464
|
+
|
1465
|
+
# Action to be taken on the Mobile Device
|
1466
|
+
# Corresponds to the JSON property `action`
|
1467
|
+
# @return [String]
|
1468
|
+
attr_accessor :action
|
1469
|
+
|
1470
|
+
def initialize(**args)
|
1471
|
+
update!(**args)
|
1472
|
+
end
|
1473
|
+
|
1474
|
+
# Update properties of this object
|
1475
|
+
def update!(**args)
|
1476
|
+
@action = args[:action] if args.key?(:action)
|
1477
|
+
end
|
1478
|
+
end
|
1479
|
+
|
1480
|
+
# JSON response template for List Mobile Devices operation in Directory API.
|
1481
|
+
class MobileDevices
|
1482
|
+
include Google::Apis::Core::Hashable
|
1483
|
+
|
1484
|
+
# ETag of the resource.
|
1485
|
+
# Corresponds to the JSON property `etag`
|
1486
|
+
# @return [String]
|
1487
|
+
attr_accessor :etag
|
1488
|
+
|
1489
|
+
# Kind of resource this is.
|
1490
|
+
# Corresponds to the JSON property `kind`
|
1491
|
+
# @return [String]
|
1492
|
+
attr_accessor :kind
|
1493
|
+
|
1494
|
+
# List of Mobile Device objects.
|
1495
|
+
# Corresponds to the JSON property `mobiledevices`
|
1496
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::MobileDevice>]
|
1497
|
+
attr_accessor :mobiledevices
|
1498
|
+
|
1499
|
+
# Token used to access next page of this result.
|
1500
|
+
# Corresponds to the JSON property `nextPageToken`
|
1501
|
+
# @return [String]
|
1502
|
+
attr_accessor :next_page_token
|
1503
|
+
|
1504
|
+
def initialize(**args)
|
1505
|
+
update!(**args)
|
1506
|
+
end
|
1507
|
+
|
1508
|
+
# Update properties of this object
|
1509
|
+
def update!(**args)
|
1510
|
+
@etag = args[:etag] if args.key?(:etag)
|
1511
|
+
@kind = args[:kind] if args.key?(:kind)
|
1512
|
+
@mobiledevices = args[:mobiledevices] if args.key?(:mobiledevices)
|
1513
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1514
|
+
end
|
1515
|
+
end
|
1516
|
+
|
1517
|
+
# Template for a notification resource.
|
1518
|
+
class Notification
|
1519
|
+
include Google::Apis::Core::Hashable
|
1520
|
+
|
1521
|
+
# Body of the notification (Read-only)
|
1522
|
+
# Corresponds to the JSON property `body`
|
1523
|
+
# @return [String]
|
1524
|
+
attr_accessor :body
|
1525
|
+
|
1526
|
+
# ETag of the resource.
|
1527
|
+
# Corresponds to the JSON property `etag`
|
1528
|
+
# @return [String]
|
1529
|
+
attr_accessor :etag
|
1530
|
+
|
1531
|
+
# Address from which the notification is received (Read-only)
|
1532
|
+
# Corresponds to the JSON property `fromAddress`
|
1533
|
+
# @return [String]
|
1534
|
+
attr_accessor :from_address
|
1535
|
+
|
1536
|
+
# Boolean indicating whether the notification is unread or not.
|
1537
|
+
# Corresponds to the JSON property `isUnread`
|
1538
|
+
# @return [Boolean]
|
1539
|
+
attr_accessor :is_unread
|
1540
|
+
alias_method :is_unread?, :is_unread
|
1541
|
+
|
1542
|
+
# The type of the resource.
|
1543
|
+
# Corresponds to the JSON property `kind`
|
1544
|
+
# @return [String]
|
1545
|
+
attr_accessor :kind
|
1546
|
+
|
1547
|
+
#
|
1548
|
+
# Corresponds to the JSON property `notificationId`
|
1549
|
+
# @return [String]
|
1550
|
+
attr_accessor :notification_id
|
1551
|
+
|
1552
|
+
# Time at which notification was sent (Read-only)
|
1553
|
+
# Corresponds to the JSON property `sendTime`
|
1554
|
+
# @return [DateTime]
|
1555
|
+
attr_accessor :send_time
|
1556
|
+
|
1557
|
+
# Subject of the notification (Read-only)
|
1558
|
+
# Corresponds to the JSON property `subject`
|
1559
|
+
# @return [String]
|
1560
|
+
attr_accessor :subject
|
1561
|
+
|
1562
|
+
def initialize(**args)
|
1563
|
+
update!(**args)
|
1564
|
+
end
|
1565
|
+
|
1566
|
+
# Update properties of this object
|
1567
|
+
def update!(**args)
|
1568
|
+
@body = args[:body] if args.key?(:body)
|
1569
|
+
@etag = args[:etag] if args.key?(:etag)
|
1570
|
+
@from_address = args[:from_address] if args.key?(:from_address)
|
1571
|
+
@is_unread = args[:is_unread] if args.key?(:is_unread)
|
1572
|
+
@kind = args[:kind] if args.key?(:kind)
|
1573
|
+
@notification_id = args[:notification_id] if args.key?(:notification_id)
|
1574
|
+
@send_time = args[:send_time] if args.key?(:send_time)
|
1575
|
+
@subject = args[:subject] if args.key?(:subject)
|
1576
|
+
end
|
1577
|
+
end
|
1578
|
+
|
1579
|
+
# Template for notifications list response.
|
1580
|
+
class Notifications
|
1581
|
+
include Google::Apis::Core::Hashable
|
1582
|
+
|
1583
|
+
# ETag of the resource.
|
1584
|
+
# Corresponds to the JSON property `etag`
|
1585
|
+
# @return [String]
|
1586
|
+
attr_accessor :etag
|
1587
|
+
|
1588
|
+
# List of notifications in this page.
|
1589
|
+
# Corresponds to the JSON property `items`
|
1590
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Notification>]
|
1591
|
+
attr_accessor :items
|
1592
|
+
|
1593
|
+
# The type of the resource.
|
1594
|
+
# Corresponds to the JSON property `kind`
|
1595
|
+
# @return [String]
|
1596
|
+
attr_accessor :kind
|
1597
|
+
|
1598
|
+
# Token for fetching the next page of notifications.
|
1599
|
+
# Corresponds to the JSON property `nextPageToken`
|
1600
|
+
# @return [String]
|
1601
|
+
attr_accessor :next_page_token
|
1602
|
+
|
1603
|
+
# Number of unread notification for the domain.
|
1604
|
+
# Corresponds to the JSON property `unreadNotificationsCount`
|
1605
|
+
# @return [Fixnum]
|
1606
|
+
attr_accessor :unread_notifications_count
|
1607
|
+
|
1608
|
+
def initialize(**args)
|
1609
|
+
update!(**args)
|
1610
|
+
end
|
1611
|
+
|
1612
|
+
# Update properties of this object
|
1613
|
+
def update!(**args)
|
1614
|
+
@etag = args[:etag] if args.key?(:etag)
|
1615
|
+
@items = args[:items] if args.key?(:items)
|
1616
|
+
@kind = args[:kind] if args.key?(:kind)
|
1617
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1618
|
+
@unread_notifications_count = args[:unread_notifications_count] if args.key?(:unread_notifications_count)
|
1619
|
+
end
|
1620
|
+
end
|
1621
|
+
|
1622
|
+
# JSON template for Org Unit resource in Directory API.
|
1623
|
+
class OrgUnit
|
1624
|
+
include Google::Apis::Core::Hashable
|
1625
|
+
|
1626
|
+
# Should block inheritance
|
1627
|
+
# Corresponds to the JSON property `blockInheritance`
|
1628
|
+
# @return [Boolean]
|
1629
|
+
attr_accessor :block_inheritance
|
1630
|
+
alias_method :block_inheritance?, :block_inheritance
|
1631
|
+
|
1632
|
+
# Description of OrgUnit
|
1633
|
+
# Corresponds to the JSON property `description`
|
1634
|
+
# @return [String]
|
1635
|
+
attr_accessor :description
|
1636
|
+
|
1637
|
+
# ETag of the resource.
|
1638
|
+
# Corresponds to the JSON property `etag`
|
1639
|
+
# @return [String]
|
1640
|
+
attr_accessor :etag
|
1641
|
+
|
1642
|
+
# Kind of resource this is.
|
1643
|
+
# Corresponds to the JSON property `kind`
|
1644
|
+
# @return [String]
|
1645
|
+
attr_accessor :kind
|
1646
|
+
|
1647
|
+
# Name of OrgUnit
|
1648
|
+
# Corresponds to the JSON property `name`
|
1649
|
+
# @return [String]
|
1650
|
+
attr_accessor :name
|
1651
|
+
|
1652
|
+
# Id of OrgUnit
|
1653
|
+
# Corresponds to the JSON property `orgUnitId`
|
1654
|
+
# @return [String]
|
1655
|
+
attr_accessor :org_unit_id
|
1656
|
+
|
1657
|
+
# Path of OrgUnit
|
1658
|
+
# Corresponds to the JSON property `orgUnitPath`
|
1659
|
+
# @return [String]
|
1660
|
+
attr_accessor :org_unit_path
|
1661
|
+
|
1662
|
+
# Id of parent OrgUnit
|
1663
|
+
# Corresponds to the JSON property `parentOrgUnitId`
|
1664
|
+
# @return [String]
|
1665
|
+
attr_accessor :parent_org_unit_id
|
1666
|
+
|
1667
|
+
# Path of parent OrgUnit
|
1668
|
+
# Corresponds to the JSON property `parentOrgUnitPath`
|
1669
|
+
# @return [String]
|
1670
|
+
attr_accessor :parent_org_unit_path
|
1671
|
+
|
1672
|
+
def initialize(**args)
|
1673
|
+
update!(**args)
|
1674
|
+
end
|
1675
|
+
|
1676
|
+
# Update properties of this object
|
1677
|
+
def update!(**args)
|
1678
|
+
@block_inheritance = args[:block_inheritance] if args.key?(:block_inheritance)
|
1679
|
+
@description = args[:description] if args.key?(:description)
|
1680
|
+
@etag = args[:etag] if args.key?(:etag)
|
1681
|
+
@kind = args[:kind] if args.key?(:kind)
|
1682
|
+
@name = args[:name] if args.key?(:name)
|
1683
|
+
@org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
|
1684
|
+
@org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path)
|
1685
|
+
@parent_org_unit_id = args[:parent_org_unit_id] if args.key?(:parent_org_unit_id)
|
1686
|
+
@parent_org_unit_path = args[:parent_org_unit_path] if args.key?(:parent_org_unit_path)
|
1687
|
+
end
|
1688
|
+
end
|
1689
|
+
|
1690
|
+
# JSON response template for List Organization Units operation in Directory API.
|
1691
|
+
class OrgUnits
|
1692
|
+
include Google::Apis::Core::Hashable
|
1693
|
+
|
1694
|
+
# ETag of the resource.
|
1695
|
+
# Corresponds to the JSON property `etag`
|
1696
|
+
# @return [String]
|
1697
|
+
attr_accessor :etag
|
1698
|
+
|
1699
|
+
# Kind of resource this is.
|
1700
|
+
# Corresponds to the JSON property `kind`
|
1701
|
+
# @return [String]
|
1702
|
+
attr_accessor :kind
|
1703
|
+
|
1704
|
+
# List of user objects.
|
1705
|
+
# Corresponds to the JSON property `organizationUnits`
|
1706
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::OrgUnit>]
|
1707
|
+
attr_accessor :organization_units
|
1708
|
+
|
1709
|
+
def initialize(**args)
|
1710
|
+
update!(**args)
|
1711
|
+
end
|
1712
|
+
|
1713
|
+
# Update properties of this object
|
1714
|
+
def update!(**args)
|
1715
|
+
@etag = args[:etag] if args.key?(:etag)
|
1716
|
+
@kind = args[:kind] if args.key?(:kind)
|
1717
|
+
@organization_units = args[:organization_units] if args.key?(:organization_units)
|
1718
|
+
end
|
1719
|
+
end
|
1720
|
+
|
1721
|
+
# JSON template for privilege resource in Directory API.
|
1722
|
+
class Privilege
|
1723
|
+
include Google::Apis::Core::Hashable
|
1724
|
+
|
1725
|
+
# A list of child privileges. Privileges for a service form a tree. Each
|
1726
|
+
# privilege can have a list of child privileges; this list is empty for a leaf
|
1727
|
+
# privilege.
|
1728
|
+
# Corresponds to the JSON property `childPrivileges`
|
1729
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Privilege>]
|
1730
|
+
attr_accessor :child_privileges
|
1731
|
+
|
1732
|
+
# ETag of the resource.
|
1733
|
+
# Corresponds to the JSON property `etag`
|
1734
|
+
# @return [String]
|
1735
|
+
attr_accessor :etag
|
1736
|
+
|
1737
|
+
# If the privilege can be restricted to an organization unit.
|
1738
|
+
# Corresponds to the JSON property `isOuScopable`
|
1739
|
+
# @return [Boolean]
|
1740
|
+
attr_accessor :is_ou_scopable
|
1741
|
+
alias_method :is_ou_scopable?, :is_ou_scopable
|
1742
|
+
|
1743
|
+
# The type of the API resource. This is always admin#directory#privilege.
|
1744
|
+
# Corresponds to the JSON property `kind`
|
1745
|
+
# @return [String]
|
1746
|
+
attr_accessor :kind
|
1747
|
+
|
1748
|
+
# The name of the privilege.
|
1749
|
+
# Corresponds to the JSON property `privilegeName`
|
1750
|
+
# @return [String]
|
1751
|
+
attr_accessor :privilege_name
|
1752
|
+
|
1753
|
+
# The obfuscated ID of the service this privilege is for.
|
1754
|
+
# Corresponds to the JSON property `serviceId`
|
1755
|
+
# @return [String]
|
1756
|
+
attr_accessor :service_id
|
1757
|
+
|
1758
|
+
# The name of the service this privilege is for.
|
1759
|
+
# Corresponds to the JSON property `serviceName`
|
1760
|
+
# @return [String]
|
1761
|
+
attr_accessor :service_name
|
1762
|
+
|
1763
|
+
def initialize(**args)
|
1764
|
+
update!(**args)
|
1765
|
+
end
|
1766
|
+
|
1767
|
+
# Update properties of this object
|
1768
|
+
def update!(**args)
|
1769
|
+
@child_privileges = args[:child_privileges] if args.key?(:child_privileges)
|
1770
|
+
@etag = args[:etag] if args.key?(:etag)
|
1771
|
+
@is_ou_scopable = args[:is_ou_scopable] if args.key?(:is_ou_scopable)
|
1772
|
+
@kind = args[:kind] if args.key?(:kind)
|
1773
|
+
@privilege_name = args[:privilege_name] if args.key?(:privilege_name)
|
1774
|
+
@service_id = args[:service_id] if args.key?(:service_id)
|
1775
|
+
@service_name = args[:service_name] if args.key?(:service_name)
|
1776
|
+
end
|
1777
|
+
end
|
1778
|
+
|
1779
|
+
# JSON response template for List privileges operation in Directory API.
|
1780
|
+
class Privileges
|
1781
|
+
include Google::Apis::Core::Hashable
|
1782
|
+
|
1783
|
+
# ETag of the resource.
|
1784
|
+
# Corresponds to the JSON property `etag`
|
1785
|
+
# @return [String]
|
1786
|
+
attr_accessor :etag
|
1787
|
+
|
1788
|
+
# A list of Privilege resources.
|
1789
|
+
# Corresponds to the JSON property `items`
|
1790
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Privilege>]
|
1791
|
+
attr_accessor :items
|
1792
|
+
|
1793
|
+
# The type of the API resource. This is always admin#directory#privileges.
|
1794
|
+
# Corresponds to the JSON property `kind`
|
1795
|
+
# @return [String]
|
1796
|
+
attr_accessor :kind
|
1797
|
+
|
1798
|
+
def initialize(**args)
|
1799
|
+
update!(**args)
|
1800
|
+
end
|
1801
|
+
|
1802
|
+
# Update properties of this object
|
1803
|
+
def update!(**args)
|
1804
|
+
@etag = args[:etag] if args.key?(:etag)
|
1805
|
+
@items = args[:items] if args.key?(:items)
|
1806
|
+
@kind = args[:kind] if args.key?(:kind)
|
1807
|
+
end
|
1808
|
+
end
|
1809
|
+
|
1810
|
+
# JSON template for role resource in Directory API.
|
1811
|
+
class Role
|
1812
|
+
include Google::Apis::Core::Hashable
|
1813
|
+
|
1814
|
+
# ETag of the resource.
|
1815
|
+
# Corresponds to the JSON property `etag`
|
1816
|
+
# @return [String]
|
1817
|
+
attr_accessor :etag
|
1818
|
+
|
1819
|
+
# Returns true if the role is a super admin role.
|
1820
|
+
# Corresponds to the JSON property `isSuperAdminRole`
|
1821
|
+
# @return [Boolean]
|
1822
|
+
attr_accessor :is_super_admin_role
|
1823
|
+
alias_method :is_super_admin_role?, :is_super_admin_role
|
1824
|
+
|
1825
|
+
# Returns true if this is a pre-defined system role.
|
1826
|
+
# Corresponds to the JSON property `isSystemRole`
|
1827
|
+
# @return [Boolean]
|
1828
|
+
attr_accessor :is_system_role
|
1829
|
+
alias_method :is_system_role?, :is_system_role
|
1830
|
+
|
1831
|
+
# The type of the API resource. This is always admin#directory#role.
|
1832
|
+
# Corresponds to the JSON property `kind`
|
1833
|
+
# @return [String]
|
1834
|
+
attr_accessor :kind
|
1835
|
+
|
1836
|
+
# A short description of the role.
|
1837
|
+
# Corresponds to the JSON property `roleDescription`
|
1838
|
+
# @return [String]
|
1839
|
+
attr_accessor :role_description
|
1840
|
+
|
1841
|
+
# ID of the role.
|
1842
|
+
# Corresponds to the JSON property `roleId`
|
1843
|
+
# @return [String]
|
1844
|
+
attr_accessor :role_id
|
1845
|
+
|
1846
|
+
# Name of the role.
|
1847
|
+
# Corresponds to the JSON property `roleName`
|
1848
|
+
# @return [String]
|
1849
|
+
attr_accessor :role_name
|
1850
|
+
|
1851
|
+
# The set of privileges that are granted to this role.
|
1852
|
+
# Corresponds to the JSON property `rolePrivileges`
|
1853
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Role::RolePrivilege>]
|
1854
|
+
attr_accessor :role_privileges
|
1855
|
+
|
1856
|
+
def initialize(**args)
|
1857
|
+
update!(**args)
|
1858
|
+
end
|
1859
|
+
|
1860
|
+
# Update properties of this object
|
1861
|
+
def update!(**args)
|
1862
|
+
@etag = args[:etag] if args.key?(:etag)
|
1863
|
+
@is_super_admin_role = args[:is_super_admin_role] if args.key?(:is_super_admin_role)
|
1864
|
+
@is_system_role = args[:is_system_role] if args.key?(:is_system_role)
|
1865
|
+
@kind = args[:kind] if args.key?(:kind)
|
1866
|
+
@role_description = args[:role_description] if args.key?(:role_description)
|
1867
|
+
@role_id = args[:role_id] if args.key?(:role_id)
|
1868
|
+
@role_name = args[:role_name] if args.key?(:role_name)
|
1869
|
+
@role_privileges = args[:role_privileges] if args.key?(:role_privileges)
|
1870
|
+
end
|
1871
|
+
|
1872
|
+
#
|
1873
|
+
class RolePrivilege
|
1874
|
+
include Google::Apis::Core::Hashable
|
1875
|
+
|
1876
|
+
# The name of the privilege.
|
1877
|
+
# Corresponds to the JSON property `privilegeName`
|
1878
|
+
# @return [String]
|
1879
|
+
attr_accessor :privilege_name
|
1880
|
+
|
1881
|
+
# The obfuscated ID of the service this privilege is for.
|
1882
|
+
# Corresponds to the JSON property `serviceId`
|
1883
|
+
# @return [String]
|
1884
|
+
attr_accessor :service_id
|
1885
|
+
|
1886
|
+
def initialize(**args)
|
1887
|
+
update!(**args)
|
1888
|
+
end
|
1889
|
+
|
1890
|
+
# Update properties of this object
|
1891
|
+
def update!(**args)
|
1892
|
+
@privilege_name = args[:privilege_name] if args.key?(:privilege_name)
|
1893
|
+
@service_id = args[:service_id] if args.key?(:service_id)
|
1894
|
+
end
|
1895
|
+
end
|
1896
|
+
end
|
1897
|
+
|
1898
|
+
# JSON template for roleAssignment resource in Directory API.
|
1899
|
+
class RoleAssignment
|
1900
|
+
include Google::Apis::Core::Hashable
|
1901
|
+
|
1902
|
+
# The unique ID of the user this role is assigned to.
|
1903
|
+
# Corresponds to the JSON property `assignedTo`
|
1904
|
+
# @return [String]
|
1905
|
+
attr_accessor :assigned_to
|
1906
|
+
|
1907
|
+
# ETag of the resource.
|
1908
|
+
# Corresponds to the JSON property `etag`
|
1909
|
+
# @return [String]
|
1910
|
+
attr_accessor :etag
|
1911
|
+
|
1912
|
+
# The type of the API resource. This is always admin#directory#roleAssignment.
|
1913
|
+
# Corresponds to the JSON property `kind`
|
1914
|
+
# @return [String]
|
1915
|
+
attr_accessor :kind
|
1916
|
+
|
1917
|
+
# If the role is restricted to an organization unit, this contains the ID for
|
1918
|
+
# the organization unit the exercise of this role is restricted to.
|
1919
|
+
# Corresponds to the JSON property `orgUnitId`
|
1920
|
+
# @return [String]
|
1921
|
+
attr_accessor :org_unit_id
|
1922
|
+
|
1923
|
+
# ID of this roleAssignment.
|
1924
|
+
# Corresponds to the JSON property `roleAssignmentId`
|
1925
|
+
# @return [String]
|
1926
|
+
attr_accessor :role_assignment_id
|
1927
|
+
|
1928
|
+
# The ID of the role that is assigned.
|
1929
|
+
# Corresponds to the JSON property `roleId`
|
1930
|
+
# @return [String]
|
1931
|
+
attr_accessor :role_id
|
1932
|
+
|
1933
|
+
# The scope in which this role is assigned. Possible values are:
|
1934
|
+
# - CUSTOMER
|
1935
|
+
# - ORG_UNIT
|
1936
|
+
# Corresponds to the JSON property `scopeType`
|
1937
|
+
# @return [String]
|
1938
|
+
attr_accessor :scope_type
|
1939
|
+
|
1940
|
+
def initialize(**args)
|
1941
|
+
update!(**args)
|
1942
|
+
end
|
1943
|
+
|
1944
|
+
# Update properties of this object
|
1945
|
+
def update!(**args)
|
1946
|
+
@assigned_to = args[:assigned_to] if args.key?(:assigned_to)
|
1947
|
+
@etag = args[:etag] if args.key?(:etag)
|
1948
|
+
@kind = args[:kind] if args.key?(:kind)
|
1949
|
+
@org_unit_id = args[:org_unit_id] if args.key?(:org_unit_id)
|
1950
|
+
@role_assignment_id = args[:role_assignment_id] if args.key?(:role_assignment_id)
|
1951
|
+
@role_id = args[:role_id] if args.key?(:role_id)
|
1952
|
+
@scope_type = args[:scope_type] if args.key?(:scope_type)
|
1953
|
+
end
|
1954
|
+
end
|
1955
|
+
|
1956
|
+
# JSON response template for List roleAssignments operation in Directory API.
|
1957
|
+
class RoleAssignments
|
1958
|
+
include Google::Apis::Core::Hashable
|
1959
|
+
|
1960
|
+
# ETag of the resource.
|
1961
|
+
# Corresponds to the JSON property `etag`
|
1962
|
+
# @return [String]
|
1963
|
+
attr_accessor :etag
|
1964
|
+
|
1965
|
+
# A list of RoleAssignment resources.
|
1966
|
+
# Corresponds to the JSON property `items`
|
1967
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::RoleAssignment>]
|
1968
|
+
attr_accessor :items
|
1969
|
+
|
1970
|
+
# The type of the API resource. This is always admin#directory#roleAssignments.
|
1971
|
+
# Corresponds to the JSON property `kind`
|
1972
|
+
# @return [String]
|
1973
|
+
attr_accessor :kind
|
1974
|
+
|
1975
|
+
#
|
1976
|
+
# Corresponds to the JSON property `nextPageToken`
|
1977
|
+
# @return [String]
|
1978
|
+
attr_accessor :next_page_token
|
1979
|
+
|
1980
|
+
def initialize(**args)
|
1981
|
+
update!(**args)
|
1982
|
+
end
|
1983
|
+
|
1984
|
+
# Update properties of this object
|
1985
|
+
def update!(**args)
|
1986
|
+
@etag = args[:etag] if args.key?(:etag)
|
1987
|
+
@items = args[:items] if args.key?(:items)
|
1988
|
+
@kind = args[:kind] if args.key?(:kind)
|
1989
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1990
|
+
end
|
1991
|
+
end
|
1992
|
+
|
1993
|
+
# JSON response template for List roles operation in Directory API.
|
1994
|
+
class Roles
|
1995
|
+
include Google::Apis::Core::Hashable
|
1996
|
+
|
1997
|
+
# ETag of the resource.
|
1998
|
+
# Corresponds to the JSON property `etag`
|
1999
|
+
# @return [String]
|
2000
|
+
attr_accessor :etag
|
2001
|
+
|
2002
|
+
# A list of Role resources.
|
2003
|
+
# Corresponds to the JSON property `items`
|
2004
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Role>]
|
2005
|
+
attr_accessor :items
|
2006
|
+
|
2007
|
+
# The type of the API resource. This is always admin#directory#roles.
|
2008
|
+
# Corresponds to the JSON property `kind`
|
2009
|
+
# @return [String]
|
2010
|
+
attr_accessor :kind
|
2011
|
+
|
2012
|
+
#
|
2013
|
+
# Corresponds to the JSON property `nextPageToken`
|
2014
|
+
# @return [String]
|
2015
|
+
attr_accessor :next_page_token
|
2016
|
+
|
2017
|
+
def initialize(**args)
|
2018
|
+
update!(**args)
|
2019
|
+
end
|
2020
|
+
|
2021
|
+
# Update properties of this object
|
2022
|
+
def update!(**args)
|
2023
|
+
@etag = args[:etag] if args.key?(:etag)
|
2024
|
+
@items = args[:items] if args.key?(:items)
|
2025
|
+
@kind = args[:kind] if args.key?(:kind)
|
2026
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
2027
|
+
end
|
2028
|
+
end
|
2029
|
+
|
2030
|
+
# JSON template for Schema resource in Directory API.
|
2031
|
+
class Schema
|
2032
|
+
include Google::Apis::Core::Hashable
|
2033
|
+
|
2034
|
+
# ETag of the resource.
|
2035
|
+
# Corresponds to the JSON property `etag`
|
2036
|
+
# @return [String]
|
2037
|
+
attr_accessor :etag
|
2038
|
+
|
2039
|
+
# Fields of Schema
|
2040
|
+
# Corresponds to the JSON property `fields`
|
2041
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::SchemaFieldSpec>]
|
2042
|
+
attr_accessor :fields
|
2043
|
+
|
2044
|
+
# Kind of resource this is.
|
2045
|
+
# Corresponds to the JSON property `kind`
|
2046
|
+
# @return [String]
|
2047
|
+
attr_accessor :kind
|
2048
|
+
|
2049
|
+
# Unique identifier of Schema (Read-only)
|
2050
|
+
# Corresponds to the JSON property `schemaId`
|
2051
|
+
# @return [String]
|
2052
|
+
attr_accessor :schema_id
|
2053
|
+
|
2054
|
+
# Schema name
|
2055
|
+
# Corresponds to the JSON property `schemaName`
|
2056
|
+
# @return [String]
|
2057
|
+
attr_accessor :schema_name
|
2058
|
+
|
2059
|
+
def initialize(**args)
|
2060
|
+
update!(**args)
|
2061
|
+
end
|
2062
|
+
|
2063
|
+
# Update properties of this object
|
2064
|
+
def update!(**args)
|
2065
|
+
@etag = args[:etag] if args.key?(:etag)
|
2066
|
+
@fields = args[:fields] if args.key?(:fields)
|
2067
|
+
@kind = args[:kind] if args.key?(:kind)
|
2068
|
+
@schema_id = args[:schema_id] if args.key?(:schema_id)
|
2069
|
+
@schema_name = args[:schema_name] if args.key?(:schema_name)
|
2070
|
+
end
|
2071
|
+
end
|
2072
|
+
|
2073
|
+
# JSON template for FieldSpec resource for Schemas in Directory API.
|
2074
|
+
class SchemaFieldSpec
|
2075
|
+
include Google::Apis::Core::Hashable
|
2076
|
+
|
2077
|
+
# ETag of the resource.
|
2078
|
+
# Corresponds to the JSON property `etag`
|
2079
|
+
# @return [String]
|
2080
|
+
attr_accessor :etag
|
2081
|
+
|
2082
|
+
# Unique identifier of Field (Read-only)
|
2083
|
+
# Corresponds to the JSON property `fieldId`
|
2084
|
+
# @return [String]
|
2085
|
+
attr_accessor :field_id
|
2086
|
+
|
2087
|
+
# Name of the field.
|
2088
|
+
# Corresponds to the JSON property `fieldName`
|
2089
|
+
# @return [String]
|
2090
|
+
attr_accessor :field_name
|
2091
|
+
|
2092
|
+
# Type of the field.
|
2093
|
+
# Corresponds to the JSON property `fieldType`
|
2094
|
+
# @return [String]
|
2095
|
+
attr_accessor :field_type
|
2096
|
+
|
2097
|
+
# Boolean specifying whether the field is indexed or not.
|
2098
|
+
# Corresponds to the JSON property `indexed`
|
2099
|
+
# @return [Boolean]
|
2100
|
+
attr_accessor :indexed
|
2101
|
+
alias_method :indexed?, :indexed
|
2102
|
+
|
2103
|
+
# Kind of resource this is.
|
2104
|
+
# Corresponds to the JSON property `kind`
|
2105
|
+
# @return [String]
|
2106
|
+
attr_accessor :kind
|
2107
|
+
|
2108
|
+
# Boolean specifying whether this is a multi-valued field or not.
|
2109
|
+
# Corresponds to the JSON property `multiValued`
|
2110
|
+
# @return [Boolean]
|
2111
|
+
attr_accessor :multi_valued
|
2112
|
+
alias_method :multi_valued?, :multi_valued
|
2113
|
+
|
2114
|
+
# Indexing spec for a numeric field. By default, only exact match queries will
|
2115
|
+
# be supported for numeric fields. Setting the numericIndexingSpec allows range
|
2116
|
+
# queries to be supported.
|
2117
|
+
# Corresponds to the JSON property `numericIndexingSpec`
|
2118
|
+
# @return [Google::Apis::AdminDirectoryV1::SchemaFieldSpec::NumericIndexingSpec]
|
2119
|
+
attr_accessor :numeric_indexing_spec
|
2120
|
+
|
2121
|
+
# Read ACLs on the field specifying who can view values of this field. Valid
|
2122
|
+
# values are "ALL_DOMAIN_USERS" and "ADMINS_AND_SELF".
|
2123
|
+
# Corresponds to the JSON property `readAccessType`
|
2124
|
+
# @return [String]
|
2125
|
+
attr_accessor :read_access_type
|
2126
|
+
|
2127
|
+
def initialize(**args)
|
2128
|
+
update!(**args)
|
2129
|
+
end
|
2130
|
+
|
2131
|
+
# Update properties of this object
|
2132
|
+
def update!(**args)
|
2133
|
+
@etag = args[:etag] if args.key?(:etag)
|
2134
|
+
@field_id = args[:field_id] if args.key?(:field_id)
|
2135
|
+
@field_name = args[:field_name] if args.key?(:field_name)
|
2136
|
+
@field_type = args[:field_type] if args.key?(:field_type)
|
2137
|
+
@indexed = args[:indexed] if args.key?(:indexed)
|
2138
|
+
@kind = args[:kind] if args.key?(:kind)
|
2139
|
+
@multi_valued = args[:multi_valued] if args.key?(:multi_valued)
|
2140
|
+
@numeric_indexing_spec = args[:numeric_indexing_spec] if args.key?(:numeric_indexing_spec)
|
2141
|
+
@read_access_type = args[:read_access_type] if args.key?(:read_access_type)
|
2142
|
+
end
|
2143
|
+
|
2144
|
+
# Indexing spec for a numeric field. By default, only exact match queries will
|
2145
|
+
# be supported for numeric fields. Setting the numericIndexingSpec allows range
|
2146
|
+
# queries to be supported.
|
2147
|
+
class NumericIndexingSpec
|
2148
|
+
include Google::Apis::Core::Hashable
|
2149
|
+
|
2150
|
+
# Maximum value of this field. This is meant to be indicative rather than
|
2151
|
+
# enforced. Values outside this range will still be indexed, but search may not
|
2152
|
+
# be as performant.
|
2153
|
+
# Corresponds to the JSON property `maxValue`
|
2154
|
+
# @return [Float]
|
2155
|
+
attr_accessor :max_value
|
2156
|
+
|
2157
|
+
# Minimum value of this field. This is meant to be indicative rather than
|
2158
|
+
# enforced. Values outside this range will still be indexed, but search may not
|
2159
|
+
# be as performant.
|
2160
|
+
# Corresponds to the JSON property `minValue`
|
2161
|
+
# @return [Float]
|
2162
|
+
attr_accessor :min_value
|
2163
|
+
|
2164
|
+
def initialize(**args)
|
2165
|
+
update!(**args)
|
2166
|
+
end
|
2167
|
+
|
2168
|
+
# Update properties of this object
|
2169
|
+
def update!(**args)
|
2170
|
+
@max_value = args[:max_value] if args.key?(:max_value)
|
2171
|
+
@min_value = args[:min_value] if args.key?(:min_value)
|
2172
|
+
end
|
2173
|
+
end
|
2174
|
+
end
|
2175
|
+
|
2176
|
+
# JSON response template for List Schema operation in Directory API.
|
2177
|
+
class Schemas
|
2178
|
+
include Google::Apis::Core::Hashable
|
2179
|
+
|
2180
|
+
# ETag of the resource.
|
2181
|
+
# Corresponds to the JSON property `etag`
|
2182
|
+
# @return [String]
|
2183
|
+
attr_accessor :etag
|
2184
|
+
|
2185
|
+
# Kind of resource this is.
|
2186
|
+
# Corresponds to the JSON property `kind`
|
2187
|
+
# @return [String]
|
2188
|
+
attr_accessor :kind
|
2189
|
+
|
2190
|
+
# List of UserSchema objects.
|
2191
|
+
# Corresponds to the JSON property `schemas`
|
2192
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Schema>]
|
2193
|
+
attr_accessor :schemas
|
2194
|
+
|
2195
|
+
def initialize(**args)
|
2196
|
+
update!(**args)
|
2197
|
+
end
|
2198
|
+
|
2199
|
+
# Update properties of this object
|
2200
|
+
def update!(**args)
|
2201
|
+
@etag = args[:etag] if args.key?(:etag)
|
2202
|
+
@kind = args[:kind] if args.key?(:kind)
|
2203
|
+
@schemas = args[:schemas] if args.key?(:schemas)
|
2204
|
+
end
|
2205
|
+
end
|
2206
|
+
|
2207
|
+
# JSON template for token resource in Directory API.
|
2208
|
+
class Token
|
2209
|
+
include Google::Apis::Core::Hashable
|
2210
|
+
|
2211
|
+
# Whether the application is registered with Google. The value is true if the
|
2212
|
+
# application has an anonymous Client ID.
|
2213
|
+
# Corresponds to the JSON property `anonymous`
|
2214
|
+
# @return [Boolean]
|
2215
|
+
attr_accessor :anonymous
|
2216
|
+
alias_method :anonymous?, :anonymous
|
2217
|
+
|
2218
|
+
# The Client ID of the application the token is issued to.
|
2219
|
+
# Corresponds to the JSON property `clientId`
|
2220
|
+
# @return [String]
|
2221
|
+
attr_accessor :client_id
|
2222
|
+
|
2223
|
+
# The displayable name of the application the token is issued to.
|
2224
|
+
# Corresponds to the JSON property `displayText`
|
2225
|
+
# @return [String]
|
2226
|
+
attr_accessor :display_text
|
2227
|
+
|
2228
|
+
# ETag of the resource.
|
2229
|
+
# Corresponds to the JSON property `etag`
|
2230
|
+
# @return [String]
|
2231
|
+
attr_accessor :etag
|
2232
|
+
|
2233
|
+
# The type of the API resource. This is always admin#directory#token.
|
2234
|
+
# Corresponds to the JSON property `kind`
|
2235
|
+
# @return [String]
|
2236
|
+
attr_accessor :kind
|
2237
|
+
|
2238
|
+
# Whether the token is issued to an installed application. The value is true if
|
2239
|
+
# the application is installed to a desktop or mobile device.
|
2240
|
+
# Corresponds to the JSON property `nativeApp`
|
2241
|
+
# @return [Boolean]
|
2242
|
+
attr_accessor :native_app
|
2243
|
+
alias_method :native_app?, :native_app
|
2244
|
+
|
2245
|
+
# A list of authorization scopes the application is granted.
|
2246
|
+
# Corresponds to the JSON property `scopes`
|
2247
|
+
# @return [Array<String>]
|
2248
|
+
attr_accessor :scopes
|
2249
|
+
|
2250
|
+
# The unique ID of the user that issued the token.
|
2251
|
+
# Corresponds to the JSON property `userKey`
|
2252
|
+
# @return [String]
|
2253
|
+
attr_accessor :user_key
|
2254
|
+
|
2255
|
+
def initialize(**args)
|
2256
|
+
update!(**args)
|
2257
|
+
end
|
2258
|
+
|
2259
|
+
# Update properties of this object
|
2260
|
+
def update!(**args)
|
2261
|
+
@anonymous = args[:anonymous] if args.key?(:anonymous)
|
2262
|
+
@client_id = args[:client_id] if args.key?(:client_id)
|
2263
|
+
@display_text = args[:display_text] if args.key?(:display_text)
|
2264
|
+
@etag = args[:etag] if args.key?(:etag)
|
2265
|
+
@kind = args[:kind] if args.key?(:kind)
|
2266
|
+
@native_app = args[:native_app] if args.key?(:native_app)
|
2267
|
+
@scopes = args[:scopes] if args.key?(:scopes)
|
2268
|
+
@user_key = args[:user_key] if args.key?(:user_key)
|
2269
|
+
end
|
2270
|
+
end
|
2271
|
+
|
2272
|
+
# JSON response template for List tokens operation in Directory API.
|
2273
|
+
class Tokens
|
2274
|
+
include Google::Apis::Core::Hashable
|
2275
|
+
|
2276
|
+
# ETag of the resource.
|
2277
|
+
# Corresponds to the JSON property `etag`
|
2278
|
+
# @return [String]
|
2279
|
+
attr_accessor :etag
|
2280
|
+
|
2281
|
+
# A list of Token resources.
|
2282
|
+
# Corresponds to the JSON property `items`
|
2283
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::Token>]
|
2284
|
+
attr_accessor :items
|
2285
|
+
|
2286
|
+
# The type of the API resource. This is always admin#directory#tokenList.
|
2287
|
+
# Corresponds to the JSON property `kind`
|
2288
|
+
# @return [String]
|
2289
|
+
attr_accessor :kind
|
2290
|
+
|
2291
|
+
def initialize(**args)
|
2292
|
+
update!(**args)
|
2293
|
+
end
|
2294
|
+
|
2295
|
+
# Update properties of this object
|
2296
|
+
def update!(**args)
|
2297
|
+
@etag = args[:etag] if args.key?(:etag)
|
2298
|
+
@items = args[:items] if args.key?(:items)
|
2299
|
+
@kind = args[:kind] if args.key?(:kind)
|
2300
|
+
end
|
2301
|
+
end
|
2302
|
+
|
2303
|
+
# JSON template for User object in Directory API.
|
2304
|
+
class User
|
2305
|
+
include Google::Apis::Core::Hashable
|
2306
|
+
|
2307
|
+
#
|
2308
|
+
# Corresponds to the JSON property `addresses`
|
2309
|
+
# @return [Object]
|
2310
|
+
attr_accessor :addresses
|
2311
|
+
|
2312
|
+
# Indicates if user has agreed to terms (Read-only)
|
2313
|
+
# Corresponds to the JSON property `agreedToTerms`
|
2314
|
+
# @return [Boolean]
|
2315
|
+
attr_accessor :agreed_to_terms
|
2316
|
+
alias_method :agreed_to_terms?, :agreed_to_terms
|
2317
|
+
|
2318
|
+
# List of aliases (Read-only)
|
2319
|
+
# Corresponds to the JSON property `aliases`
|
2320
|
+
# @return [Array<String>]
|
2321
|
+
attr_accessor :aliases
|
2322
|
+
|
2323
|
+
# Boolean indicating if the user should change password in next login
|
2324
|
+
# Corresponds to the JSON property `changePasswordAtNextLogin`
|
2325
|
+
# @return [Boolean]
|
2326
|
+
attr_accessor :change_password_at_next_login
|
2327
|
+
alias_method :change_password_at_next_login?, :change_password_at_next_login
|
2328
|
+
|
2329
|
+
# User's Google account creation time. (Read-only)
|
2330
|
+
# Corresponds to the JSON property `creationTime`
|
2331
|
+
# @return [DateTime]
|
2332
|
+
attr_accessor :creation_time
|
2333
|
+
|
2334
|
+
# Custom fields of the user.
|
2335
|
+
# Corresponds to the JSON property `customSchemas`
|
2336
|
+
# @return [Hash<String,Hash<String,Object>>]
|
2337
|
+
attr_accessor :custom_schemas
|
2338
|
+
|
2339
|
+
# CustomerId of User (Read-only)
|
2340
|
+
# Corresponds to the JSON property `customerId`
|
2341
|
+
# @return [String]
|
2342
|
+
attr_accessor :customer_id
|
2343
|
+
|
2344
|
+
#
|
2345
|
+
# Corresponds to the JSON property `deletionTime`
|
2346
|
+
# @return [DateTime]
|
2347
|
+
attr_accessor :deletion_time
|
2348
|
+
|
2349
|
+
#
|
2350
|
+
# Corresponds to the JSON property `emails`
|
2351
|
+
# @return [Object]
|
2352
|
+
attr_accessor :emails
|
2353
|
+
|
2354
|
+
# ETag of the resource.
|
2355
|
+
# Corresponds to the JSON property `etag`
|
2356
|
+
# @return [String]
|
2357
|
+
attr_accessor :etag
|
2358
|
+
|
2359
|
+
#
|
2360
|
+
# Corresponds to the JSON property `externalIds`
|
2361
|
+
# @return [Object]
|
2362
|
+
attr_accessor :external_ids
|
2363
|
+
|
2364
|
+
# Hash function name for password. Supported are MD5, SHA-1 and crypt
|
2365
|
+
# Corresponds to the JSON property `hashFunction`
|
2366
|
+
# @return [String]
|
2367
|
+
attr_accessor :hash_function
|
2368
|
+
|
2369
|
+
# Unique identifier of User (Read-only)
|
2370
|
+
# Corresponds to the JSON property `id`
|
2371
|
+
# @return [String]
|
2372
|
+
attr_accessor :id
|
2373
|
+
|
2374
|
+
#
|
2375
|
+
# Corresponds to the JSON property `ims`
|
2376
|
+
# @return [Object]
|
2377
|
+
attr_accessor :ims
|
2378
|
+
|
2379
|
+
# Boolean indicating if user is included in Global Address List
|
2380
|
+
# Corresponds to the JSON property `includeInGlobalAddressList`
|
2381
|
+
# @return [Boolean]
|
2382
|
+
attr_accessor :include_in_global_address_list
|
2383
|
+
alias_method :include_in_global_address_list?, :include_in_global_address_list
|
2384
|
+
|
2385
|
+
# Boolean indicating if ip is whitelisted
|
2386
|
+
# Corresponds to the JSON property `ipWhitelisted`
|
2387
|
+
# @return [Boolean]
|
2388
|
+
attr_accessor :ip_whitelisted
|
2389
|
+
alias_method :ip_whitelisted?, :ip_whitelisted
|
2390
|
+
|
2391
|
+
# Boolean indicating if the user is admin (Read-only)
|
2392
|
+
# Corresponds to the JSON property `isAdmin`
|
2393
|
+
# @return [Boolean]
|
2394
|
+
attr_accessor :is_admin
|
2395
|
+
alias_method :is_admin?, :is_admin
|
2396
|
+
|
2397
|
+
# Boolean indicating if the user is delegated admin (Read-only)
|
2398
|
+
# Corresponds to the JSON property `isDelegatedAdmin`
|
2399
|
+
# @return [Boolean]
|
2400
|
+
attr_accessor :is_delegated_admin
|
2401
|
+
alias_method :is_delegated_admin?, :is_delegated_admin
|
2402
|
+
|
2403
|
+
# Is 2-step verification enforced (Read-only)
|
2404
|
+
# Corresponds to the JSON property `isEnforcedIn2Sv`
|
2405
|
+
# @return [Boolean]
|
2406
|
+
attr_accessor :is_enforced_in2_sv
|
2407
|
+
alias_method :is_enforced_in2_sv?, :is_enforced_in2_sv
|
2408
|
+
|
2409
|
+
# Is enrolled in 2-step verification (Read-only)
|
2410
|
+
# Corresponds to the JSON property `isEnrolledIn2Sv`
|
2411
|
+
# @return [Boolean]
|
2412
|
+
attr_accessor :is_enrolled_in2_sv
|
2413
|
+
alias_method :is_enrolled_in2_sv?, :is_enrolled_in2_sv
|
2414
|
+
|
2415
|
+
# Is mailbox setup (Read-only)
|
2416
|
+
# Corresponds to the JSON property `isMailboxSetup`
|
2417
|
+
# @return [Boolean]
|
2418
|
+
attr_accessor :is_mailbox_setup
|
2419
|
+
alias_method :is_mailbox_setup?, :is_mailbox_setup
|
2420
|
+
|
2421
|
+
# Kind of resource this is.
|
2422
|
+
# Corresponds to the JSON property `kind`
|
2423
|
+
# @return [String]
|
2424
|
+
attr_accessor :kind
|
2425
|
+
|
2426
|
+
# User's last login time. (Read-only)
|
2427
|
+
# Corresponds to the JSON property `lastLoginTime`
|
2428
|
+
# @return [DateTime]
|
2429
|
+
attr_accessor :last_login_time
|
2430
|
+
|
2431
|
+
# JSON template for name of a user in Directory API.
|
2432
|
+
# Corresponds to the JSON property `name`
|
2433
|
+
# @return [Google::Apis::AdminDirectoryV1::UserName]
|
2434
|
+
attr_accessor :name
|
2435
|
+
|
2436
|
+
# List of non editable aliases (Read-only)
|
2437
|
+
# Corresponds to the JSON property `nonEditableAliases`
|
2438
|
+
# @return [Array<String>]
|
2439
|
+
attr_accessor :non_editable_aliases
|
2440
|
+
|
2441
|
+
#
|
2442
|
+
# Corresponds to the JSON property `notes`
|
2443
|
+
# @return [Object]
|
2444
|
+
attr_accessor :notes
|
2445
|
+
|
2446
|
+
# OrgUnit of User
|
2447
|
+
# Corresponds to the JSON property `orgUnitPath`
|
2448
|
+
# @return [String]
|
2449
|
+
attr_accessor :org_unit_path
|
2450
|
+
|
2451
|
+
#
|
2452
|
+
# Corresponds to the JSON property `organizations`
|
2453
|
+
# @return [Object]
|
2454
|
+
attr_accessor :organizations
|
2455
|
+
|
2456
|
+
# User's password
|
2457
|
+
# Corresponds to the JSON property `password`
|
2458
|
+
# @return [String]
|
2459
|
+
attr_accessor :password
|
2460
|
+
|
2461
|
+
#
|
2462
|
+
# Corresponds to the JSON property `phones`
|
2463
|
+
# @return [Object]
|
2464
|
+
attr_accessor :phones
|
2465
|
+
|
2466
|
+
# username of User
|
2467
|
+
# Corresponds to the JSON property `primaryEmail`
|
2468
|
+
# @return [String]
|
2469
|
+
attr_accessor :primary_email
|
2470
|
+
|
2471
|
+
#
|
2472
|
+
# Corresponds to the JSON property `relations`
|
2473
|
+
# @return [Object]
|
2474
|
+
attr_accessor :relations
|
2475
|
+
|
2476
|
+
# Indicates if user is suspended
|
2477
|
+
# Corresponds to the JSON property `suspended`
|
2478
|
+
# @return [Boolean]
|
2479
|
+
attr_accessor :suspended
|
2480
|
+
alias_method :suspended?, :suspended
|
2481
|
+
|
2482
|
+
# Suspension reason if user is suspended (Read-only)
|
2483
|
+
# Corresponds to the JSON property `suspensionReason`
|
2484
|
+
# @return [String]
|
2485
|
+
attr_accessor :suspension_reason
|
2486
|
+
|
2487
|
+
# ETag of the user's photo (Read-only)
|
2488
|
+
# Corresponds to the JSON property `thumbnailPhotoEtag`
|
2489
|
+
# @return [String]
|
2490
|
+
attr_accessor :thumbnail_photo_etag
|
2491
|
+
|
2492
|
+
# Photo Url of the user (Read-only)
|
2493
|
+
# Corresponds to the JSON property `thumbnailPhotoUrl`
|
2494
|
+
# @return [String]
|
2495
|
+
attr_accessor :thumbnail_photo_url
|
2496
|
+
|
2497
|
+
#
|
2498
|
+
# Corresponds to the JSON property `websites`
|
2499
|
+
# @return [Object]
|
2500
|
+
attr_accessor :websites
|
2501
|
+
|
2502
|
+
def initialize(**args)
|
2503
|
+
update!(**args)
|
2504
|
+
end
|
2505
|
+
|
2506
|
+
# Update properties of this object
|
2507
|
+
def update!(**args)
|
2508
|
+
@addresses = args[:addresses] if args.key?(:addresses)
|
2509
|
+
@agreed_to_terms = args[:agreed_to_terms] if args.key?(:agreed_to_terms)
|
2510
|
+
@aliases = args[:aliases] if args.key?(:aliases)
|
2511
|
+
@change_password_at_next_login = args[:change_password_at_next_login] if args.key?(:change_password_at_next_login)
|
2512
|
+
@creation_time = args[:creation_time] if args.key?(:creation_time)
|
2513
|
+
@custom_schemas = args[:custom_schemas] if args.key?(:custom_schemas)
|
2514
|
+
@customer_id = args[:customer_id] if args.key?(:customer_id)
|
2515
|
+
@deletion_time = args[:deletion_time] if args.key?(:deletion_time)
|
2516
|
+
@emails = args[:emails] if args.key?(:emails)
|
2517
|
+
@etag = args[:etag] if args.key?(:etag)
|
2518
|
+
@external_ids = args[:external_ids] if args.key?(:external_ids)
|
2519
|
+
@hash_function = args[:hash_function] if args.key?(:hash_function)
|
2520
|
+
@id = args[:id] if args.key?(:id)
|
2521
|
+
@ims = args[:ims] if args.key?(:ims)
|
2522
|
+
@include_in_global_address_list = args[:include_in_global_address_list] if args.key?(:include_in_global_address_list)
|
2523
|
+
@ip_whitelisted = args[:ip_whitelisted] if args.key?(:ip_whitelisted)
|
2524
|
+
@is_admin = args[:is_admin] if args.key?(:is_admin)
|
2525
|
+
@is_delegated_admin = args[:is_delegated_admin] if args.key?(:is_delegated_admin)
|
2526
|
+
@is_enforced_in2_sv = args[:is_enforced_in2_sv] if args.key?(:is_enforced_in2_sv)
|
2527
|
+
@is_enrolled_in2_sv = args[:is_enrolled_in2_sv] if args.key?(:is_enrolled_in2_sv)
|
2528
|
+
@is_mailbox_setup = args[:is_mailbox_setup] if args.key?(:is_mailbox_setup)
|
2529
|
+
@kind = args[:kind] if args.key?(:kind)
|
2530
|
+
@last_login_time = args[:last_login_time] if args.key?(:last_login_time)
|
2531
|
+
@name = args[:name] if args.key?(:name)
|
2532
|
+
@non_editable_aliases = args[:non_editable_aliases] if args.key?(:non_editable_aliases)
|
2533
|
+
@notes = args[:notes] if args.key?(:notes)
|
2534
|
+
@org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path)
|
2535
|
+
@organizations = args[:organizations] if args.key?(:organizations)
|
2536
|
+
@password = args[:password] if args.key?(:password)
|
2537
|
+
@phones = args[:phones] if args.key?(:phones)
|
2538
|
+
@primary_email = args[:primary_email] if args.key?(:primary_email)
|
2539
|
+
@relations = args[:relations] if args.key?(:relations)
|
2540
|
+
@suspended = args[:suspended] if args.key?(:suspended)
|
2541
|
+
@suspension_reason = args[:suspension_reason] if args.key?(:suspension_reason)
|
2542
|
+
@thumbnail_photo_etag = args[:thumbnail_photo_etag] if args.key?(:thumbnail_photo_etag)
|
2543
|
+
@thumbnail_photo_url = args[:thumbnail_photo_url] if args.key?(:thumbnail_photo_url)
|
2544
|
+
@websites = args[:websites] if args.key?(:websites)
|
2545
|
+
end
|
2546
|
+
end
|
2547
|
+
|
2548
|
+
# JSON template for About (notes) of a user in Directory API.
|
2549
|
+
class UserAbout
|
2550
|
+
include Google::Apis::Core::Hashable
|
2551
|
+
|
2552
|
+
# About entry can have a type which indicates the content type. It can either be
|
2553
|
+
# plain or html. By default, notes contents are assumed to contain plain text.
|
2554
|
+
# Corresponds to the JSON property `contentType`
|
2555
|
+
# @return [String]
|
2556
|
+
attr_accessor :content_type
|
2557
|
+
|
2558
|
+
# Actual value of notes.
|
2559
|
+
# Corresponds to the JSON property `value`
|
2560
|
+
# @return [String]
|
2561
|
+
attr_accessor :value
|
2562
|
+
|
2563
|
+
def initialize(**args)
|
2564
|
+
update!(**args)
|
2565
|
+
end
|
2566
|
+
|
2567
|
+
# Update properties of this object
|
2568
|
+
def update!(**args)
|
2569
|
+
@content_type = args[:content_type] if args.key?(:content_type)
|
2570
|
+
@value = args[:value] if args.key?(:value)
|
2571
|
+
end
|
2572
|
+
end
|
2573
|
+
|
2574
|
+
# JSON template for address.
|
2575
|
+
class UserAddress
|
2576
|
+
include Google::Apis::Core::Hashable
|
2577
|
+
|
2578
|
+
# Country.
|
2579
|
+
# Corresponds to the JSON property `country`
|
2580
|
+
# @return [String]
|
2581
|
+
attr_accessor :country
|
2582
|
+
|
2583
|
+
# Country code.
|
2584
|
+
# Corresponds to the JSON property `countryCode`
|
2585
|
+
# @return [String]
|
2586
|
+
attr_accessor :country_code
|
2587
|
+
|
2588
|
+
# Custom type.
|
2589
|
+
# Corresponds to the JSON property `customType`
|
2590
|
+
# @return [String]
|
2591
|
+
attr_accessor :custom_type
|
2592
|
+
|
2593
|
+
# Extended Address.
|
2594
|
+
# Corresponds to the JSON property `extendedAddress`
|
2595
|
+
# @return [String]
|
2596
|
+
attr_accessor :extended_address
|
2597
|
+
|
2598
|
+
# Formatted address.
|
2599
|
+
# Corresponds to the JSON property `formatted`
|
2600
|
+
# @return [String]
|
2601
|
+
attr_accessor :formatted
|
2602
|
+
|
2603
|
+
# Locality.
|
2604
|
+
# Corresponds to the JSON property `locality`
|
2605
|
+
# @return [String]
|
2606
|
+
attr_accessor :locality
|
2607
|
+
|
2608
|
+
# Other parts of address.
|
2609
|
+
# Corresponds to the JSON property `poBox`
|
2610
|
+
# @return [String]
|
2611
|
+
attr_accessor :po_box
|
2612
|
+
|
2613
|
+
# Postal code.
|
2614
|
+
# Corresponds to the JSON property `postalCode`
|
2615
|
+
# @return [String]
|
2616
|
+
attr_accessor :postal_code
|
2617
|
+
|
2618
|
+
# If this is user's primary address. Only one entry could be marked as primary.
|
2619
|
+
# Corresponds to the JSON property `primary`
|
2620
|
+
# @return [Boolean]
|
2621
|
+
attr_accessor :primary
|
2622
|
+
alias_method :primary?, :primary
|
2623
|
+
|
2624
|
+
# Region.
|
2625
|
+
# Corresponds to the JSON property `region`
|
2626
|
+
# @return [String]
|
2627
|
+
attr_accessor :region
|
2628
|
+
|
2629
|
+
# User supplied address was structured. Structured addresses are NOT supported
|
2630
|
+
# at this time. You might be able to write structured addresses, but any values
|
2631
|
+
# will eventually be clobbered.
|
2632
|
+
# Corresponds to the JSON property `sourceIsStructured`
|
2633
|
+
# @return [Boolean]
|
2634
|
+
attr_accessor :source_is_structured
|
2635
|
+
alias_method :source_is_structured?, :source_is_structured
|
2636
|
+
|
2637
|
+
# Street.
|
2638
|
+
# Corresponds to the JSON property `streetAddress`
|
2639
|
+
# @return [String]
|
2640
|
+
attr_accessor :street_address
|
2641
|
+
|
2642
|
+
# Each entry can have a type which indicates standard values of that entry. For
|
2643
|
+
# example address could be of home, work etc. In addition to the standard type,
|
2644
|
+
# an entry can have a custom type and can take any value. Such type should have
|
2645
|
+
# the CUSTOM value as type and also have a customType value.
|
2646
|
+
# Corresponds to the JSON property `type`
|
2647
|
+
# @return [String]
|
2648
|
+
attr_accessor :type
|
2649
|
+
|
2650
|
+
def initialize(**args)
|
2651
|
+
update!(**args)
|
2652
|
+
end
|
2653
|
+
|
2654
|
+
# Update properties of this object
|
2655
|
+
def update!(**args)
|
2656
|
+
@country = args[:country] if args.key?(:country)
|
2657
|
+
@country_code = args[:country_code] if args.key?(:country_code)
|
2658
|
+
@custom_type = args[:custom_type] if args.key?(:custom_type)
|
2659
|
+
@extended_address = args[:extended_address] if args.key?(:extended_address)
|
2660
|
+
@formatted = args[:formatted] if args.key?(:formatted)
|
2661
|
+
@locality = args[:locality] if args.key?(:locality)
|
2662
|
+
@po_box = args[:po_box] if args.key?(:po_box)
|
2663
|
+
@postal_code = args[:postal_code] if args.key?(:postal_code)
|
2664
|
+
@primary = args[:primary] if args.key?(:primary)
|
2665
|
+
@region = args[:region] if args.key?(:region)
|
2666
|
+
@source_is_structured = args[:source_is_structured] if args.key?(:source_is_structured)
|
2667
|
+
@street_address = args[:street_address] if args.key?(:street_address)
|
2668
|
+
@type = args[:type] if args.key?(:type)
|
2669
|
+
end
|
2670
|
+
end
|
2671
|
+
|
2672
|
+
# JSON template for an email.
|
2673
|
+
class UserEmail
|
2674
|
+
include Google::Apis::Core::Hashable
|
2675
|
+
|
2676
|
+
# Email id of the user.
|
2677
|
+
# Corresponds to the JSON property `address`
|
2678
|
+
# @return [String]
|
2679
|
+
attr_accessor :address
|
2680
|
+
|
2681
|
+
# Custom Type.
|
2682
|
+
# Corresponds to the JSON property `customType`
|
2683
|
+
# @return [String]
|
2684
|
+
attr_accessor :custom_type
|
2685
|
+
|
2686
|
+
# If this is user's primary email. Only one entry could be marked as primary.
|
2687
|
+
# Corresponds to the JSON property `primary`
|
2688
|
+
# @return [Boolean]
|
2689
|
+
attr_accessor :primary
|
2690
|
+
alias_method :primary?, :primary
|
2691
|
+
|
2692
|
+
# Each entry can have a type which indicates standard types of that entry. For
|
2693
|
+
# example email could be of home, work etc. In addition to the standard type, an
|
2694
|
+
# entry can have a custom type and can take any value Such types should have the
|
2695
|
+
# CUSTOM value as type and also have a customType value.
|
2696
|
+
# Corresponds to the JSON property `type`
|
2697
|
+
# @return [String]
|
2698
|
+
attr_accessor :type
|
2699
|
+
|
2700
|
+
def initialize(**args)
|
2701
|
+
update!(**args)
|
2702
|
+
end
|
2703
|
+
|
2704
|
+
# Update properties of this object
|
2705
|
+
def update!(**args)
|
2706
|
+
@address = args[:address] if args.key?(:address)
|
2707
|
+
@custom_type = args[:custom_type] if args.key?(:custom_type)
|
2708
|
+
@primary = args[:primary] if args.key?(:primary)
|
2709
|
+
@type = args[:type] if args.key?(:type)
|
2710
|
+
end
|
2711
|
+
end
|
2712
|
+
|
2713
|
+
# JSON template for an externalId entry.
|
2714
|
+
class UserExternalId
|
2715
|
+
include Google::Apis::Core::Hashable
|
2716
|
+
|
2717
|
+
# Custom type.
|
2718
|
+
# Corresponds to the JSON property `customType`
|
2719
|
+
# @return [String]
|
2720
|
+
attr_accessor :custom_type
|
2721
|
+
|
2722
|
+
# The type of the Id.
|
2723
|
+
# Corresponds to the JSON property `type`
|
2724
|
+
# @return [String]
|
2725
|
+
attr_accessor :type
|
2726
|
+
|
2727
|
+
# The value of the id.
|
2728
|
+
# Corresponds to the JSON property `value`
|
2729
|
+
# @return [String]
|
2730
|
+
attr_accessor :value
|
2731
|
+
|
2732
|
+
def initialize(**args)
|
2733
|
+
update!(**args)
|
2734
|
+
end
|
2735
|
+
|
2736
|
+
# Update properties of this object
|
2737
|
+
def update!(**args)
|
2738
|
+
@custom_type = args[:custom_type] if args.key?(:custom_type)
|
2739
|
+
@type = args[:type] if args.key?(:type)
|
2740
|
+
@value = args[:value] if args.key?(:value)
|
2741
|
+
end
|
2742
|
+
end
|
2743
|
+
|
2744
|
+
# JSON template for instant messenger of an user.
|
2745
|
+
class UserIm
|
2746
|
+
include Google::Apis::Core::Hashable
|
2747
|
+
|
2748
|
+
# Custom protocol.
|
2749
|
+
# Corresponds to the JSON property `customProtocol`
|
2750
|
+
# @return [String]
|
2751
|
+
attr_accessor :custom_protocol
|
2752
|
+
|
2753
|
+
# Custom type.
|
2754
|
+
# Corresponds to the JSON property `customType`
|
2755
|
+
# @return [String]
|
2756
|
+
attr_accessor :custom_type
|
2757
|
+
|
2758
|
+
# Instant messenger id.
|
2759
|
+
# Corresponds to the JSON property `im`
|
2760
|
+
# @return [String]
|
2761
|
+
attr_accessor :im
|
2762
|
+
|
2763
|
+
# If this is user's primary im. Only one entry could be marked as primary.
|
2764
|
+
# Corresponds to the JSON property `primary`
|
2765
|
+
# @return [Boolean]
|
2766
|
+
attr_accessor :primary
|
2767
|
+
alias_method :primary?, :primary
|
2768
|
+
|
2769
|
+
# Protocol used in the instant messenger. It should be one of the values from
|
2770
|
+
# ImProtocolTypes map. Similar to type, it can take a CUSTOM value and specify
|
2771
|
+
# the custom name in customProtocol field.
|
2772
|
+
# Corresponds to the JSON property `protocol`
|
2773
|
+
# @return [String]
|
2774
|
+
attr_accessor :protocol
|
2775
|
+
|
2776
|
+
# Each entry can have a type which indicates standard types of that entry. For
|
2777
|
+
# example instant messengers could be of home, work etc. In addition to the
|
2778
|
+
# standard type, an entry can have a custom type and can take any value. Such
|
2779
|
+
# types should have the CUSTOM value as type and also have a customType value.
|
2780
|
+
# Corresponds to the JSON property `type`
|
2781
|
+
# @return [String]
|
2782
|
+
attr_accessor :type
|
2783
|
+
|
2784
|
+
def initialize(**args)
|
2785
|
+
update!(**args)
|
2786
|
+
end
|
2787
|
+
|
2788
|
+
# Update properties of this object
|
2789
|
+
def update!(**args)
|
2790
|
+
@custom_protocol = args[:custom_protocol] if args.key?(:custom_protocol)
|
2791
|
+
@custom_type = args[:custom_type] if args.key?(:custom_type)
|
2792
|
+
@im = args[:im] if args.key?(:im)
|
2793
|
+
@primary = args[:primary] if args.key?(:primary)
|
2794
|
+
@protocol = args[:protocol] if args.key?(:protocol)
|
2795
|
+
@type = args[:type] if args.key?(:type)
|
2796
|
+
end
|
2797
|
+
end
|
2798
|
+
|
2799
|
+
# JSON request template for setting/revoking admin status of a user in Directory
|
2800
|
+
# API.
|
2801
|
+
class UserMakeAdmin
|
2802
|
+
include Google::Apis::Core::Hashable
|
2803
|
+
|
2804
|
+
# Boolean indicating new admin status of the user
|
2805
|
+
# Corresponds to the JSON property `status`
|
2806
|
+
# @return [Boolean]
|
2807
|
+
attr_accessor :status
|
2808
|
+
alias_method :status?, :status
|
2809
|
+
|
2810
|
+
def initialize(**args)
|
2811
|
+
update!(**args)
|
2812
|
+
end
|
2813
|
+
|
2814
|
+
# Update properties of this object
|
2815
|
+
def update!(**args)
|
2816
|
+
@status = args[:status] if args.key?(:status)
|
2817
|
+
end
|
2818
|
+
end
|
2819
|
+
|
2820
|
+
# JSON template for name of a user in Directory API.
|
2821
|
+
class UserName
|
2822
|
+
include Google::Apis::Core::Hashable
|
2823
|
+
|
2824
|
+
# Last Name
|
2825
|
+
# Corresponds to the JSON property `familyName`
|
2826
|
+
# @return [String]
|
2827
|
+
attr_accessor :family_name
|
2828
|
+
|
2829
|
+
# Full Name
|
2830
|
+
# Corresponds to the JSON property `fullName`
|
2831
|
+
# @return [String]
|
2832
|
+
attr_accessor :full_name
|
2833
|
+
|
2834
|
+
# First Name
|
2835
|
+
# Corresponds to the JSON property `givenName`
|
2836
|
+
# @return [String]
|
2837
|
+
attr_accessor :given_name
|
2838
|
+
|
2839
|
+
def initialize(**args)
|
2840
|
+
update!(**args)
|
2841
|
+
end
|
2842
|
+
|
2843
|
+
# Update properties of this object
|
2844
|
+
def update!(**args)
|
2845
|
+
@family_name = args[:family_name] if args.key?(:family_name)
|
2846
|
+
@full_name = args[:full_name] if args.key?(:full_name)
|
2847
|
+
@given_name = args[:given_name] if args.key?(:given_name)
|
2848
|
+
end
|
2849
|
+
end
|
2850
|
+
|
2851
|
+
# JSON template for an organization entry.
|
2852
|
+
class UserOrganization
|
2853
|
+
include Google::Apis::Core::Hashable
|
2854
|
+
|
2855
|
+
# The cost center of the users department.
|
2856
|
+
# Corresponds to the JSON property `costCenter`
|
2857
|
+
# @return [String]
|
2858
|
+
attr_accessor :cost_center
|
2859
|
+
|
2860
|
+
# Custom type.
|
2861
|
+
# Corresponds to the JSON property `customType`
|
2862
|
+
# @return [String]
|
2863
|
+
attr_accessor :custom_type
|
2864
|
+
|
2865
|
+
# Department within the organization.
|
2866
|
+
# Corresponds to the JSON property `department`
|
2867
|
+
# @return [String]
|
2868
|
+
attr_accessor :department
|
2869
|
+
|
2870
|
+
# Description of the organization.
|
2871
|
+
# Corresponds to the JSON property `description`
|
2872
|
+
# @return [String]
|
2873
|
+
attr_accessor :description
|
2874
|
+
|
2875
|
+
# The domain to which the organization belongs to.
|
2876
|
+
# Corresponds to the JSON property `domain`
|
2877
|
+
# @return [String]
|
2878
|
+
attr_accessor :domain
|
2879
|
+
|
2880
|
+
# Location of the organization. This need not be fully qualified address.
|
2881
|
+
# Corresponds to the JSON property `location`
|
2882
|
+
# @return [String]
|
2883
|
+
attr_accessor :location
|
2884
|
+
|
2885
|
+
# Name of the organization
|
2886
|
+
# Corresponds to the JSON property `name`
|
2887
|
+
# @return [String]
|
2888
|
+
attr_accessor :name
|
2889
|
+
|
2890
|
+
# If it user's primary organization.
|
2891
|
+
# Corresponds to the JSON property `primary`
|
2892
|
+
# @return [Boolean]
|
2893
|
+
attr_accessor :primary
|
2894
|
+
alias_method :primary?, :primary
|
2895
|
+
|
2896
|
+
# Symbol of the organization.
|
2897
|
+
# Corresponds to the JSON property `symbol`
|
2898
|
+
# @return [String]
|
2899
|
+
attr_accessor :symbol
|
2900
|
+
|
2901
|
+
# Title (designation) of the user in the organization.
|
2902
|
+
# Corresponds to the JSON property `title`
|
2903
|
+
# @return [String]
|
2904
|
+
attr_accessor :title
|
2905
|
+
|
2906
|
+
# Each entry can have a type which indicates standard types of that entry. For
|
2907
|
+
# example organization could be of school, work etc. In addition to the standard
|
2908
|
+
# type, an entry can have a custom type and can give it any name. Such types
|
2909
|
+
# should have the CUSTOM value as type and also have a CustomType value.
|
2910
|
+
# Corresponds to the JSON property `type`
|
2911
|
+
# @return [String]
|
2912
|
+
attr_accessor :type
|
2913
|
+
|
2914
|
+
def initialize(**args)
|
2915
|
+
update!(**args)
|
2916
|
+
end
|
2917
|
+
|
2918
|
+
# Update properties of this object
|
2919
|
+
def update!(**args)
|
2920
|
+
@cost_center = args[:cost_center] if args.key?(:cost_center)
|
2921
|
+
@custom_type = args[:custom_type] if args.key?(:custom_type)
|
2922
|
+
@department = args[:department] if args.key?(:department)
|
2923
|
+
@description = args[:description] if args.key?(:description)
|
2924
|
+
@domain = args[:domain] if args.key?(:domain)
|
2925
|
+
@location = args[:location] if args.key?(:location)
|
2926
|
+
@name = args[:name] if args.key?(:name)
|
2927
|
+
@primary = args[:primary] if args.key?(:primary)
|
2928
|
+
@symbol = args[:symbol] if args.key?(:symbol)
|
2929
|
+
@title = args[:title] if args.key?(:title)
|
2930
|
+
@type = args[:type] if args.key?(:type)
|
2931
|
+
end
|
2932
|
+
end
|
2933
|
+
|
2934
|
+
# JSON template for a phone entry.
|
2935
|
+
class UserPhone
|
2936
|
+
include Google::Apis::Core::Hashable
|
2937
|
+
|
2938
|
+
# Custom Type.
|
2939
|
+
# Corresponds to the JSON property `customType`
|
2940
|
+
# @return [String]
|
2941
|
+
attr_accessor :custom_type
|
2942
|
+
|
2943
|
+
# If this is user's primary phone or not.
|
2944
|
+
# Corresponds to the JSON property `primary`
|
2945
|
+
# @return [Boolean]
|
2946
|
+
attr_accessor :primary
|
2947
|
+
alias_method :primary?, :primary
|
2948
|
+
|
2949
|
+
# Each entry can have a type which indicates standard types of that entry. For
|
2950
|
+
# example phone could be of home_fax, work, mobile etc. In addition to the
|
2951
|
+
# standard type, an entry can have a custom type and can give it any name. Such
|
2952
|
+
# types should have the CUSTOM value as type and also have a customType value.
|
2953
|
+
# Corresponds to the JSON property `type`
|
2954
|
+
# @return [String]
|
2955
|
+
attr_accessor :type
|
2956
|
+
|
2957
|
+
# Phone number.
|
2958
|
+
# Corresponds to the JSON property `value`
|
2959
|
+
# @return [String]
|
2960
|
+
attr_accessor :value
|
2961
|
+
|
2962
|
+
def initialize(**args)
|
2963
|
+
update!(**args)
|
2964
|
+
end
|
2965
|
+
|
2966
|
+
# Update properties of this object
|
2967
|
+
def update!(**args)
|
2968
|
+
@custom_type = args[:custom_type] if args.key?(:custom_type)
|
2969
|
+
@primary = args[:primary] if args.key?(:primary)
|
2970
|
+
@type = args[:type] if args.key?(:type)
|
2971
|
+
@value = args[:value] if args.key?(:value)
|
2972
|
+
end
|
2973
|
+
end
|
2974
|
+
|
2975
|
+
# JSON template for Photo object in Directory API.
|
2976
|
+
class UserPhoto
|
2977
|
+
include Google::Apis::Core::Hashable
|
2978
|
+
|
2979
|
+
# ETag of the resource.
|
2980
|
+
# Corresponds to the JSON property `etag`
|
2981
|
+
# @return [String]
|
2982
|
+
attr_accessor :etag
|
2983
|
+
|
2984
|
+
# Height in pixels of the photo
|
2985
|
+
# Corresponds to the JSON property `height`
|
2986
|
+
# @return [Fixnum]
|
2987
|
+
attr_accessor :height
|
2988
|
+
|
2989
|
+
# Unique identifier of User (Read-only)
|
2990
|
+
# Corresponds to the JSON property `id`
|
2991
|
+
# @return [String]
|
2992
|
+
attr_accessor :id
|
2993
|
+
|
2994
|
+
# Kind of resource this is.
|
2995
|
+
# Corresponds to the JSON property `kind`
|
2996
|
+
# @return [String]
|
2997
|
+
attr_accessor :kind
|
2998
|
+
|
2999
|
+
# Mime Type of the photo
|
3000
|
+
# Corresponds to the JSON property `mimeType`
|
3001
|
+
# @return [String]
|
3002
|
+
attr_accessor :mime_type
|
3003
|
+
|
3004
|
+
# Base64 encoded photo data
|
3005
|
+
# Corresponds to the JSON property `photoData`
|
3006
|
+
# @return [String]
|
3007
|
+
attr_accessor :photo_data
|
3008
|
+
|
3009
|
+
# Primary email of User (Read-only)
|
3010
|
+
# Corresponds to the JSON property `primaryEmail`
|
3011
|
+
# @return [String]
|
3012
|
+
attr_accessor :primary_email
|
3013
|
+
|
3014
|
+
# Width in pixels of the photo
|
3015
|
+
# Corresponds to the JSON property `width`
|
3016
|
+
# @return [Fixnum]
|
3017
|
+
attr_accessor :width
|
3018
|
+
|
3019
|
+
def initialize(**args)
|
3020
|
+
update!(**args)
|
3021
|
+
end
|
3022
|
+
|
3023
|
+
# Update properties of this object
|
3024
|
+
def update!(**args)
|
3025
|
+
@etag = args[:etag] if args.key?(:etag)
|
3026
|
+
@height = args[:height] if args.key?(:height)
|
3027
|
+
@id = args[:id] if args.key?(:id)
|
3028
|
+
@kind = args[:kind] if args.key?(:kind)
|
3029
|
+
@mime_type = args[:mime_type] if args.key?(:mime_type)
|
3030
|
+
@photo_data = args[:photo_data] if args.key?(:photo_data)
|
3031
|
+
@primary_email = args[:primary_email] if args.key?(:primary_email)
|
3032
|
+
@width = args[:width] if args.key?(:width)
|
3033
|
+
end
|
3034
|
+
end
|
3035
|
+
|
3036
|
+
# JSON template for a relation entry.
|
3037
|
+
class UserRelation
|
3038
|
+
include Google::Apis::Core::Hashable
|
3039
|
+
|
3040
|
+
# Custom Type.
|
3041
|
+
# Corresponds to the JSON property `customType`
|
3042
|
+
# @return [String]
|
3043
|
+
attr_accessor :custom_type
|
3044
|
+
|
3045
|
+
# The relation of the user. Some of the possible values are mother, father,
|
3046
|
+
# sister, brother, manager, assistant, partner.
|
3047
|
+
# Corresponds to the JSON property `type`
|
3048
|
+
# @return [String]
|
3049
|
+
attr_accessor :type
|
3050
|
+
|
3051
|
+
# The name of the relation.
|
3052
|
+
# Corresponds to the JSON property `value`
|
3053
|
+
# @return [String]
|
3054
|
+
attr_accessor :value
|
3055
|
+
|
3056
|
+
def initialize(**args)
|
3057
|
+
update!(**args)
|
3058
|
+
end
|
3059
|
+
|
3060
|
+
# Update properties of this object
|
3061
|
+
def update!(**args)
|
3062
|
+
@custom_type = args[:custom_type] if args.key?(:custom_type)
|
3063
|
+
@type = args[:type] if args.key?(:type)
|
3064
|
+
@value = args[:value] if args.key?(:value)
|
3065
|
+
end
|
3066
|
+
end
|
3067
|
+
|
3068
|
+
# JSON request template to undelete a user in Directory API.
|
3069
|
+
class UserUndelete
|
3070
|
+
include Google::Apis::Core::Hashable
|
3071
|
+
|
3072
|
+
# OrgUnit of User
|
3073
|
+
# Corresponds to the JSON property `orgUnitPath`
|
3074
|
+
# @return [String]
|
3075
|
+
attr_accessor :org_unit_path
|
3076
|
+
|
3077
|
+
def initialize(**args)
|
3078
|
+
update!(**args)
|
3079
|
+
end
|
3080
|
+
|
3081
|
+
# Update properties of this object
|
3082
|
+
def update!(**args)
|
3083
|
+
@org_unit_path = args[:org_unit_path] if args.key?(:org_unit_path)
|
3084
|
+
end
|
3085
|
+
end
|
3086
|
+
|
3087
|
+
# JSON template for a website entry.
|
3088
|
+
class UserWebsite
|
3089
|
+
include Google::Apis::Core::Hashable
|
3090
|
+
|
3091
|
+
# Custom Type.
|
3092
|
+
# Corresponds to the JSON property `customType`
|
3093
|
+
# @return [String]
|
3094
|
+
attr_accessor :custom_type
|
3095
|
+
|
3096
|
+
# If this is user's primary website or not.
|
3097
|
+
# Corresponds to the JSON property `primary`
|
3098
|
+
# @return [Boolean]
|
3099
|
+
attr_accessor :primary
|
3100
|
+
alias_method :primary?, :primary
|
3101
|
+
|
3102
|
+
# Each entry can have a type which indicates standard types of that entry. For
|
3103
|
+
# example website could be of home, work, blog etc. In addition to the standard
|
3104
|
+
# type, an entry can have a custom type and can give it any name. Such types
|
3105
|
+
# should have the CUSTOM value as type and also have a customType value.
|
3106
|
+
# Corresponds to the JSON property `type`
|
3107
|
+
# @return [String]
|
3108
|
+
attr_accessor :type
|
3109
|
+
|
3110
|
+
# Website.
|
3111
|
+
# Corresponds to the JSON property `value`
|
3112
|
+
# @return [String]
|
3113
|
+
attr_accessor :value
|
3114
|
+
|
3115
|
+
def initialize(**args)
|
3116
|
+
update!(**args)
|
3117
|
+
end
|
3118
|
+
|
3119
|
+
# Update properties of this object
|
3120
|
+
def update!(**args)
|
3121
|
+
@custom_type = args[:custom_type] if args.key?(:custom_type)
|
3122
|
+
@primary = args[:primary] if args.key?(:primary)
|
3123
|
+
@type = args[:type] if args.key?(:type)
|
3124
|
+
@value = args[:value] if args.key?(:value)
|
3125
|
+
end
|
3126
|
+
end
|
3127
|
+
|
3128
|
+
# JSON response template for List Users operation in Apps Directory API.
|
3129
|
+
class Users
|
3130
|
+
include Google::Apis::Core::Hashable
|
3131
|
+
|
3132
|
+
# ETag of the resource.
|
3133
|
+
# Corresponds to the JSON property `etag`
|
3134
|
+
# @return [String]
|
3135
|
+
attr_accessor :etag
|
3136
|
+
|
3137
|
+
# Kind of resource this is.
|
3138
|
+
# Corresponds to the JSON property `kind`
|
3139
|
+
# @return [String]
|
3140
|
+
attr_accessor :kind
|
3141
|
+
|
3142
|
+
# Token used to access next page of this result.
|
3143
|
+
# Corresponds to the JSON property `nextPageToken`
|
3144
|
+
# @return [String]
|
3145
|
+
attr_accessor :next_page_token
|
3146
|
+
|
3147
|
+
# Event that triggered this response (only used in case of Push Response)
|
3148
|
+
# Corresponds to the JSON property `trigger_event`
|
3149
|
+
# @return [String]
|
3150
|
+
attr_accessor :trigger_event
|
3151
|
+
|
3152
|
+
# List of user objects.
|
3153
|
+
# Corresponds to the JSON property `users`
|
3154
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::User>]
|
3155
|
+
attr_accessor :users
|
3156
|
+
|
3157
|
+
def initialize(**args)
|
3158
|
+
update!(**args)
|
3159
|
+
end
|
3160
|
+
|
3161
|
+
# Update properties of this object
|
3162
|
+
def update!(**args)
|
3163
|
+
@etag = args[:etag] if args.key?(:etag)
|
3164
|
+
@kind = args[:kind] if args.key?(:kind)
|
3165
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
3166
|
+
@trigger_event = args[:trigger_event] if args.key?(:trigger_event)
|
3167
|
+
@users = args[:users] if args.key?(:users)
|
3168
|
+
end
|
3169
|
+
end
|
3170
|
+
|
3171
|
+
# JSON template for verification codes in Directory API.
|
3172
|
+
class VerificationCode
|
3173
|
+
include Google::Apis::Core::Hashable
|
3174
|
+
|
3175
|
+
# ETag of the resource.
|
3176
|
+
# Corresponds to the JSON property `etag`
|
3177
|
+
# @return [String]
|
3178
|
+
attr_accessor :etag
|
3179
|
+
|
3180
|
+
# The type of the resource. This is always admin#directory#verificationCode.
|
3181
|
+
# Corresponds to the JSON property `kind`
|
3182
|
+
# @return [String]
|
3183
|
+
attr_accessor :kind
|
3184
|
+
|
3185
|
+
# The obfuscated unique ID of the user.
|
3186
|
+
# Corresponds to the JSON property `userId`
|
3187
|
+
# @return [String]
|
3188
|
+
attr_accessor :user_id
|
3189
|
+
|
3190
|
+
# A current verification code for the user. Invalidated or used verification
|
3191
|
+
# codes are not returned as part of the result.
|
3192
|
+
# Corresponds to the JSON property `verificationCode`
|
3193
|
+
# @return [String]
|
3194
|
+
attr_accessor :verification_code
|
3195
|
+
|
3196
|
+
def initialize(**args)
|
3197
|
+
update!(**args)
|
3198
|
+
end
|
3199
|
+
|
3200
|
+
# Update properties of this object
|
3201
|
+
def update!(**args)
|
3202
|
+
@etag = args[:etag] if args.key?(:etag)
|
3203
|
+
@kind = args[:kind] if args.key?(:kind)
|
3204
|
+
@user_id = args[:user_id] if args.key?(:user_id)
|
3205
|
+
@verification_code = args[:verification_code] if args.key?(:verification_code)
|
3206
|
+
end
|
3207
|
+
end
|
3208
|
+
|
3209
|
+
# JSON response template for List verification codes operation in Directory API.
|
3210
|
+
class VerificationCodes
|
3211
|
+
include Google::Apis::Core::Hashable
|
3212
|
+
|
3213
|
+
# ETag of the resource.
|
3214
|
+
# Corresponds to the JSON property `etag`
|
3215
|
+
# @return [String]
|
3216
|
+
attr_accessor :etag
|
3217
|
+
|
3218
|
+
# A list of verification code resources.
|
3219
|
+
# Corresponds to the JSON property `items`
|
3220
|
+
# @return [Array<Google::Apis::AdminDirectoryV1::VerificationCode>]
|
3221
|
+
attr_accessor :items
|
3222
|
+
|
3223
|
+
# The type of the resource. This is always admin#directory#verificationCodesList.
|
3224
|
+
# Corresponds to the JSON property `kind`
|
3225
|
+
# @return [String]
|
3226
|
+
attr_accessor :kind
|
3227
|
+
|
3228
|
+
def initialize(**args)
|
3229
|
+
update!(**args)
|
3230
|
+
end
|
3231
|
+
|
3232
|
+
# Update properties of this object
|
3233
|
+
def update!(**args)
|
3234
|
+
@etag = args[:etag] if args.key?(:etag)
|
3235
|
+
@items = args[:items] if args.key?(:items)
|
3236
|
+
@kind = args[:kind] if args.key?(:kind)
|
3237
|
+
end
|
3238
|
+
end
|
3239
|
+
end
|
3240
|
+
end
|
3241
|
+
end
|