google-api-client 0.9.pre3 → 0.9.pre4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/CHANGELOG.md +14 -2
- data/Gemfile +4 -0
- data/MIGRATING.md +1 -1
- data/README.md +17 -3
- data/api_names.yaml +127 -14
- data/api_names_out.yaml +5442 -710
- data/bin/generate-api +16 -14
- data/generated/google/apis/adexchangebuyer_v1_3.rb +1 -1
- data/generated/google/apis/adexchangebuyer_v1_3/classes.rb +213 -2
- data/generated/google/apis/adexchangebuyer_v1_3/representations.rb +71 -0
- data/generated/google/apis/adexchangebuyer_v1_3/service.rb +21 -42
- data/generated/google/apis/adexchangeseller_v2_0.rb +1 -1
- data/generated/google/apis/adexchangeseller_v2_0/service.rb +15 -29
- data/generated/google/apis/admin_datatransfer_v1.rb +37 -0
- data/generated/google/apis/admin_datatransfer_v1/classes.rb +267 -0
- data/generated/google/apis/admin_datatransfer_v1/representations.rb +118 -0
- data/generated/google/apis/admin_datatransfer_v1/service.rb +262 -0
- data/generated/google/apis/admin_directory_v1.rb +25 -1
- data/generated/google/apis/admin_directory_v1/classes.rb +718 -0
- data/generated/google/apis/admin_directory_v1/representations.rb +244 -0
- data/generated/google/apis/admin_directory_v1/service.rb +1522 -509
- data/generated/google/apis/admin_reports_v1.rb +1 -1
- data/generated/google/apis/admin_reports_v1/service.rb +5 -10
- data/generated/google/apis/adsense_v1_4.rb +1 -1
- data/generated/google/apis/adsense_v1_4/classes.rb +6 -0
- data/generated/google/apis/adsense_v1_4/representations.rb +1 -0
- data/generated/google/apis/adsense_v1_4/service.rb +40 -78
- data/generated/google/apis/adsensehost_v4_1.rb +1 -1
- data/generated/google/apis/adsensehost_v4_1/service.rb +26 -52
- data/generated/google/apis/analytics_v3.rb +1 -1
- data/generated/google/apis/analytics_v3/classes.rb +11 -13
- data/generated/google/apis/analytics_v3/service.rb +84 -158
- data/generated/google/apis/androidenterprise_v1.rb +2 -2
- data/generated/google/apis/androidenterprise_v1/classes.rb +276 -8
- data/generated/google/apis/androidenterprise_v1/representations.rb +106 -0
- data/generated/google/apis/androidenterprise_v1/service.rb +715 -97
- data/generated/google/apis/androidpublisher_v2.rb +1 -1
- data/generated/google/apis/androidpublisher_v2/classes.rb +2 -2
- data/generated/google/apis/androidpublisher_v2/service.rb +55 -107
- data/generated/google/apis/appengine_v1beta4.rb +35 -0
- data/generated/google/apis/appengine_v1beta4/classes.rb +1532 -0
- data/generated/google/apis/appengine_v1beta4/representations.rb +526 -0
- data/generated/google/apis/appengine_v1beta4/service.rb +476 -0
- data/generated/google/apis/appsactivity_v1.rb +1 -1
- data/generated/google/apis/appsactivity_v1/service.rb +1 -2
- data/generated/google/apis/appstate_v1.rb +1 -1
- data/generated/google/apis/appstate_v1/service.rb +6 -11
- data/generated/google/apis/autoscaler_v1beta2/service.rb +10 -20
- data/generated/google/apis/bigquery_v2.rb +4 -1
- data/generated/google/apis/bigquery_v2/classes.rb +231 -16
- data/generated/google/apis/bigquery_v2/representations.rb +62 -0
- data/generated/google/apis/bigquery_v2/service.rb +24 -45
- data/generated/google/apis/blogger_v3/service.rb +33 -66
- data/generated/google/apis/books_v1.rb +1 -1
- data/generated/google/apis/books_v1/classes.rb +441 -0
- data/generated/google/apis/books_v1/representations.rb +177 -0
- data/generated/google/apis/books_v1/service.rb +210 -90
- data/generated/google/apis/calendar_v3.rb +1 -1
- data/generated/google/apis/calendar_v3/classes.rb +34 -18
- data/generated/google/apis/calendar_v3/service.rb +118 -103
- data/generated/google/apis/civicinfo_v2.rb +1 -1
- data/generated/google/apis/civicinfo_v2/classes.rb +12 -3
- data/generated/google/apis/civicinfo_v2/representations.rb +1 -0
- data/generated/google/apis/civicinfo_v2/service.rb +5 -10
- data/generated/google/apis/classroom_v1.rb +49 -0
- data/generated/google/apis/classroom_v1/classes.rb +512 -0
- data/generated/google/apis/classroom_v1/representations.rb +217 -0
- data/generated/google/apis/classroom_v1/service.rb +970 -0
- data/generated/google/apis/cloudbilling_v1.rb +35 -0
- data/generated/google/apis/cloudbilling_v1/classes.rb +169 -0
- data/generated/google/apis/cloudbilling_v1/representations.rb +79 -0
- data/generated/google/apis/cloudbilling_v1/service.rb +258 -0
- data/generated/google/apis/clouddebugger_v2.rb +41 -0
- data/generated/google/apis/clouddebugger_v2/classes.rb +1004 -0
- data/generated/google/apis/clouddebugger_v2/representations.rb +410 -0
- data/generated/google/apis/clouddebugger_v2/service.rb +370 -0
- data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
- data/generated/google/apis/cloudmonitoring_v2beta2/service.rb +6 -12
- data/generated/google/apis/cloudresourcemanager_v1beta1.rb +5 -2
- data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +173 -249
- data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +36 -68
- data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +293 -80
- data/generated/google/apis/cloudtrace_v1.rb +35 -0
- data/generated/google/apis/cloudtrace_v1/classes.rb +188 -0
- data/generated/google/apis/cloudtrace_v1/representations.rb +92 -0
- data/generated/google/apis/cloudtrace_v1/service.rb +190 -0
- data/generated/google/apis/clouduseraccounts_beta.rb +43 -0
- data/generated/google/apis/clouduseraccounts_beta/classes.rb +823 -0
- data/generated/google/apis/clouduseraccounts_beta/representations.rb +313 -0
- data/generated/google/apis/clouduseraccounts_beta/service.rb +854 -0
- data/generated/google/apis/compute_beta.rb +49 -0
- data/generated/google/apis/compute_beta/classes.rb +9128 -0
- data/generated/google/apis/compute_beta/representations.rb +3048 -0
- data/generated/google/apis/compute_beta/service.rb +10154 -0
- data/generated/google/apis/compute_v1.rb +1 -1
- data/generated/google/apis/compute_v1/classes.rb +1305 -520
- data/generated/google/apis/compute_v1/representations.rb +122 -15
- data/generated/google/apis/compute_v1/service.rb +2202 -1085
- data/generated/google/apis/container_v1.rb +1 -1
- data/generated/google/apis/container_v1/classes.rb +56 -31
- data/generated/google/apis/container_v1/representations.rb +12 -0
- data/generated/google/apis/container_v1/service.rb +62 -41
- data/generated/google/apis/content_v2.rb +2 -2
- data/generated/google/apis/content_v2/classes.rb +2252 -56
- data/generated/google/apis/content_v2/representations.rb +917 -87
- data/generated/google/apis/content_v2/service.rb +680 -85
- data/generated/google/apis/coordinate_v1.rb +1 -1
- data/generated/google/apis/coordinate_v1/service.rb +16 -25
- data/generated/google/apis/customsearch_v1/service.rb +1 -2
- data/generated/google/apis/datastore_v1beta2.rb +1 -1
- data/generated/google/apis/datastore_v1beta2/service.rb +12 -18
- data/generated/google/apis/deploymentmanager_v2.rb +44 -0
- data/generated/google/apis/deploymentmanager_v2/classes.rb +1089 -0
- data/generated/google/apis/deploymentmanager_v2/representations.rb +422 -0
- data/generated/google/apis/deploymentmanager_v2/service.rb +857 -0
- data/generated/google/apis/deploymentmanager_v2beta2.rb +5 -2
- data/generated/google/apis/deploymentmanager_v2beta2/classes.rb +22 -3
- data/generated/google/apis/deploymentmanager_v2beta2/representations.rb +3 -0
- data/generated/google/apis/deploymentmanager_v2beta2/service.rb +14 -27
- data/generated/google/apis/dfareporting_v2_1.rb +1 -1
- data/generated/google/apis/dfareporting_v2_1/classes.rb +29 -14
- data/generated/google/apis/dfareporting_v2_1/service.rb +196 -389
- data/generated/google/apis/discovery_v1/classes.rb +7 -0
- data/generated/google/apis/discovery_v1/representations.rb +1 -0
- data/generated/google/apis/discovery_v1/service.rb +2 -4
- data/generated/google/apis/dns_v1.rb +4 -1
- data/generated/google/apis/dns_v1/service.rb +9 -18
- data/generated/google/apis/doubleclickbidmanager_v1.rb +1 -1
- data/generated/google/apis/doubleclickbidmanager_v1/classes.rb +9 -2
- data/generated/google/apis/doubleclickbidmanager_v1/representations.rb +1 -0
- data/generated/google/apis/doubleclickbidmanager_v1/service.rb +8 -16
- data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
- data/generated/google/apis/doubleclicksearch_v2/classes.rb +15 -6
- data/generated/google/apis/doubleclicksearch_v2/representations.rb +1 -0
- data/generated/google/apis/doubleclicksearch_v2/service.rb +13 -23
- data/generated/google/apis/drive_v2.rb +1 -1
- data/generated/google/apis/drive_v2/classes.rb +73 -30
- data/generated/google/apis/drive_v2/representations.rb +14 -0
- data/generated/google/apis/drive_v2/service.rb +139 -135
- data/generated/google/apis/drive_v3.rb +55 -0
- data/generated/google/apis/drive_v3/classes.rb +1534 -0
- data/generated/google/apis/drive_v3/representations.rb +497 -0
- data/generated/google/apis/drive_v3/service.rb +1541 -0
- data/generated/google/apis/fitness_v1.rb +1 -1
- data/generated/google/apis/fitness_v1/service.rb +14 -27
- data/generated/google/apis/fusiontables_v2/service.rb +40 -73
- data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
- data/generated/google/apis/games_configuration_v1configuration/service.rb +14 -27
- data/generated/google/apis/games_management_v1management.rb +37 -0
- data/generated/google/apis/games_management_v1management/classes.rb +524 -0
- data/generated/google/apis/games_management_v1management/representations.rb +231 -0
- data/generated/google/apis/games_management_v1management/service.rb +994 -0
- data/generated/google/apis/games_v1.rb +1 -1
- data/generated/google/apis/games_v1/classes.rb +39 -0
- data/generated/google/apis/games_v1/representations.rb +14 -0
- data/generated/google/apis/games_v1/service.rb +93 -109
- data/generated/google/apis/gan_v1beta1/service.rb +10 -20
- data/generated/google/apis/genomics_v1.rb +5 -3
- data/generated/google/apis/genomics_v1/classes.rb +519 -200
- data/generated/google/apis/genomics_v1/representations.rb +126 -13
- data/generated/google/apis/genomics_v1/service.rb +392 -236
- data/generated/google/apis/gmail_v1.rb +4 -1
- data/generated/google/apis/gmail_v1/service.rb +39 -71
- data/generated/google/apis/groupsmigration_v1/service.rb +2 -3
- data/generated/google/apis/groupssettings_v1/service.rb +3 -6
- data/generated/google/apis/identitytoolkit_v3.rb +1 -1
- data/generated/google/apis/identitytoolkit_v3/classes.rb +125 -0
- data/generated/google/apis/identitytoolkit_v3/representations.rb +37 -0
- data/generated/google/apis/identitytoolkit_v3/service.rb +44 -24
- data/generated/google/apis/kgsearch_v1.rb +32 -0
- data/generated/google/apis/kgsearch_v1/classes.rb +59 -0
- data/generated/google/apis/kgsearch_v1/representations.rb +39 -0
- data/generated/google/apis/kgsearch_v1/service.rb +111 -0
- data/generated/google/apis/licensing_v1.rb +1 -1
- data/generated/google/apis/licensing_v1/service.rb +7 -14
- data/generated/google/apis/logging_v1beta3.rb +16 -4
- data/generated/google/apis/logging_v1beta3/classes.rb +620 -46
- data/generated/google/apis/logging_v1beta3/representations.rb +144 -0
- data/generated/google/apis/logging_v1beta3/service.rb +435 -104
- data/generated/google/apis/manager_v1beta2.rb +3 -0
- data/generated/google/apis/manager_v1beta2/service.rb +8 -16
- data/generated/google/apis/mapsengine_v1.rb +1 -1
- data/generated/google/apis/mapsengine_v1/service.rb +85 -162
- data/generated/google/apis/mirror_v1.rb +1 -1
- data/generated/google/apis/mirror_v1/service.rb +28 -52
- data/generated/google/apis/oauth2_v2.rb +1 -1
- data/generated/google/apis/oauth2_v2/service.rb +4 -8
- data/generated/google/apis/pagespeedonline_v2/service.rb +1 -2
- data/generated/google/apis/partners_v2.rb +32 -0
- data/generated/google/apis/partners_v2/classes.rb +942 -0
- data/generated/google/apis/partners_v2/representations.rb +402 -0
- data/generated/google/apis/partners_v2/service.rb +400 -0
- data/generated/google/apis/plus_domains_v1.rb +1 -1
- data/generated/google/apis/plus_domains_v1/classes.rb +207 -0
- data/generated/google/apis/plus_domains_v1/representations.rb +114 -0
- data/generated/google/apis/plus_domains_v1/service.rb +21 -41
- data/generated/google/apis/plus_v1.rb +1 -1
- data/generated/google/apis/plus_v1/classes.rb +207 -0
- data/generated/google/apis/plus_v1/representations.rb +114 -0
- data/generated/google/apis/plus_v1/service.rb +11 -56
- data/generated/google/apis/prediction_v1_6.rb +1 -1
- data/generated/google/apis/prediction_v1_6/service.rb +8 -16
- data/generated/google/apis/proximitybeacon_v1beta1.rb +31 -0
- data/generated/google/apis/proximitybeacon_v1beta1/classes.rb +639 -0
- data/generated/google/apis/proximitybeacon_v1beta1/representations.rb +274 -0
- data/generated/google/apis/proximitybeacon_v1beta1/service.rb +591 -0
- data/generated/google/apis/pubsub_v1.rb +37 -0
- data/generated/google/apis/pubsub_v1/classes.rb +614 -0
- data/generated/google/apis/pubsub_v1/representations.rb +281 -0
- data/generated/google/apis/pubsub_v1/service.rb +774 -0
- data/generated/google/apis/pubsub_v1beta2.rb +1 -1
- data/generated/google/apis/pubsub_v1beta2/classes.rb +78 -283
- data/generated/google/apis/pubsub_v1beta2/representations.rb +1 -85
- data/generated/google/apis/pubsub_v1beta2/service.rb +79 -87
- data/generated/google/apis/qpx_express_v1/service.rb +1 -2
- data/generated/google/apis/replicapool_v1beta2.rb +3 -0
- data/generated/google/apis/replicapool_v1beta2/service.rb +12 -24
- data/generated/google/apis/replicapoolupdater_v1beta1.rb +4 -1
- data/generated/google/apis/replicapoolupdater_v1beta1/classes.rb +46 -2
- data/generated/google/apis/replicapoolupdater_v1beta1/representations.rb +16 -0
- data/generated/google/apis/replicapoolupdater_v1beta1/service.rb +58 -18
- data/generated/google/apis/reseller_v1.rb +1 -1
- data/generated/google/apis/reseller_v1/classes.rb +19 -1
- data/generated/google/apis/reseller_v1/representations.rb +1 -0
- data/generated/google/apis/reseller_v1/service.rb +16 -30
- data/generated/google/apis/resourceviews_v1beta2.rb +3 -0
- data/generated/google/apis/resourceviews_v1beta2/service.rb +16 -27
- data/generated/google/apis/script_v1.rb +61 -0
- data/generated/google/apis/script_v1/classes.rb +259 -0
- data/generated/google/apis/script_v1/representations.rb +106 -0
- data/generated/google/apis/script_v1/service.rb +98 -0
- data/generated/google/apis/site_verification_v1.rb +1 -1
- data/generated/google/apis/site_verification_v1/service.rb +8 -15
- data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
- data/generated/google/apis/sqladmin_v1beta4/classes.rb +186 -2
- data/generated/google/apis/sqladmin_v1beta4/representations.rb +70 -0
- data/generated/google/apis/sqladmin_v1beta4/service.rb +166 -75
- data/generated/google/apis/storage_v1.rb +5 -2
- data/generated/google/apis/storage_v1/classes.rb +47 -4
- data/generated/google/apis/storage_v1/representations.rb +18 -0
- data/generated/google/apis/storage_v1/service.rb +77 -94
- data/generated/google/apis/storagetransfer_v1.rb +35 -0
- data/generated/google/apis/storagetransfer_v1/classes.rb +1046 -0
- data/generated/google/apis/storagetransfer_v1/representations.rb +370 -0
- data/generated/google/apis/storagetransfer_v1/service.rb +473 -0
- data/generated/google/apis/tagmanager_v1.rb +1 -1
- data/generated/google/apis/tagmanager_v1/classes.rb +189 -31
- data/generated/google/apis/tagmanager_v1/representations.rb +69 -15
- data/generated/google/apis/tagmanager_v1/service.rb +114 -275
- data/generated/google/apis/taskqueue_v1beta2/service.rb +8 -16
- data/generated/google/apis/tasks_v1/service.rb +14 -28
- data/generated/google/apis/translate_v2/service.rb +3 -6
- data/generated/google/apis/urlshortener_v1/service.rb +3 -6
- data/generated/google/apis/webmasters_v3.rb +3 -3
- data/generated/google/apis/webmasters_v3/classes.rb +4 -4
- data/generated/google/apis/webmasters_v3/service.rb +16 -30
- data/generated/google/apis/youtube_analytics_v1.rb +1 -1
- data/generated/google/apis/youtube_analytics_v1/classes.rb +6 -0
- data/generated/google/apis/youtube_analytics_v1/representations.rb +1 -0
- data/generated/google/apis/youtube_analytics_v1/service.rb +16 -21
- data/generated/google/apis/youtube_v3.rb +1 -1
- data/generated/google/apis/youtube_v3/classes.rb +111 -78
- data/generated/google/apis/youtube_v3/representations.rb +2 -0
- data/generated/google/apis/youtube_v3/service.rb +78 -246
- data/generated/google/apis/youtubereporting_v1.rb +38 -0
- data/generated/google/apis/youtubereporting_v1/classes.rb +258 -0
- data/generated/google/apis/youtubereporting_v1/representations.rb +128 -0
- data/generated/google/apis/youtubereporting_v1/service.rb +364 -0
- data/google-api-client.gemspec +3 -3
- data/lib/google/api_client/auth/installed_app.rb +2 -2
- data/lib/google/api_client/auth/key_utils.rb +1 -0
- data/lib/google/api_client/auth/storage.rb +1 -0
- data/lib/google/api_client/auth/storages/file_store.rb +1 -0
- data/lib/google/api_client/auth/storages/redis_store.rb +1 -0
- data/lib/google/api_client/client_secrets.rb +4 -5
- data/lib/google/apis/core/api_command.rb +2 -2
- data/lib/google/apis/core/base_service.rb +1 -0
- data/lib/google/apis/core/batch.rb +25 -8
- data/lib/google/apis/core/download.rb +1 -1
- data/lib/google/apis/core/http_command.rb +24 -12
- data/lib/google/apis/core/multipart.rb +20 -6
- data/lib/google/apis/core/upload.rb +11 -4
- data/lib/google/apis/generator/annotator.rb +29 -10
- data/lib/google/apis/generator/helpers.rb +1 -1
- data/lib/google/apis/generator/templates/_method.tmpl +5 -6
- data/lib/google/apis/options.rb +7 -3
- data/lib/google/apis/version.rb +1 -1
- data/samples/calendar/calendar.rb +1 -1
- data/samples/drive/drive.rb +9 -2
- data/samples/pubsub/pubsub.rb +5 -6
- data/samples/translate/translate.rb +1 -5
- data/script/generate +20 -5
- data/spec/fixtures/files/child/.gitignore +0 -0
- data/spec/fixtures/files/invalid.json +1 -0
- data/spec/google/api_client/client_secrets_spec.rb +38 -1
- data/spec/google/apis/core/batch_spec.rb +22 -8
- data/spec/google/apis/core/download_spec.rb +13 -0
- data/spec/google/apis/core/http_command_spec.rb +26 -9
- data/spec/google/apis/core/upload_spec.rb +65 -17
- data/spec/google/apis/options_spec.rb +8 -0
- data/spec/integration_tests/adsense_spec.rb +28 -0
- data/spec/integration_tests/pubsub_spec.rb +3 -3
- data/spec/spec_helper.rb +5 -1
- data/third_party/hurley_patches.rb +103 -0
- metadata +87 -7
|
@@ -38,6 +38,14 @@ module Google
|
|
|
38
38
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
+
class CalendarResource
|
|
42
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
43
|
+
end
|
|
44
|
+
|
|
45
|
+
class CalendarResources
|
|
46
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
47
|
+
end
|
|
48
|
+
|
|
41
49
|
class Channel
|
|
42
50
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
43
51
|
end
|
|
@@ -58,6 +66,30 @@ module Google
|
|
|
58
66
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
59
67
|
end
|
|
60
68
|
|
|
69
|
+
class Customer
|
|
70
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
71
|
+
end
|
|
72
|
+
|
|
73
|
+
class CustomerPostalAddress
|
|
74
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
75
|
+
end
|
|
76
|
+
|
|
77
|
+
class DomainAlias
|
|
78
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
79
|
+
end
|
|
80
|
+
|
|
81
|
+
class DomainAliases
|
|
82
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
83
|
+
end
|
|
84
|
+
|
|
85
|
+
class Domains
|
|
86
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
87
|
+
end
|
|
88
|
+
|
|
89
|
+
class Domains2
|
|
90
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
91
|
+
end
|
|
92
|
+
|
|
61
93
|
class Group
|
|
62
94
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
63
95
|
end
|
|
@@ -106,6 +138,34 @@ module Google
|
|
|
106
138
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
107
139
|
end
|
|
108
140
|
|
|
141
|
+
class Privilege
|
|
142
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
143
|
+
end
|
|
144
|
+
|
|
145
|
+
class Privileges
|
|
146
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
147
|
+
end
|
|
148
|
+
|
|
149
|
+
class Role
|
|
150
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
151
|
+
|
|
152
|
+
class RolePrivilege
|
|
153
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
154
|
+
end
|
|
155
|
+
end
|
|
156
|
+
|
|
157
|
+
class RoleAssignment
|
|
158
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
159
|
+
end
|
|
160
|
+
|
|
161
|
+
class RoleAssignments
|
|
162
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
163
|
+
end
|
|
164
|
+
|
|
165
|
+
class Roles
|
|
166
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
167
|
+
end
|
|
168
|
+
|
|
109
169
|
class Schema
|
|
110
170
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
111
171
|
end
|
|
@@ -242,6 +302,30 @@ module Google
|
|
|
242
302
|
end
|
|
243
303
|
end
|
|
244
304
|
|
|
305
|
+
class CalendarResource
|
|
306
|
+
# @private
|
|
307
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
308
|
+
property :etags, as: 'etags'
|
|
309
|
+
property :kind, as: 'kind'
|
|
310
|
+
property :resource_description, as: 'resourceDescription'
|
|
311
|
+
property :resource_email, as: 'resourceEmail'
|
|
312
|
+
property :resource_id, as: 'resourceId'
|
|
313
|
+
property :resource_name, as: 'resourceName'
|
|
314
|
+
property :resource_type, as: 'resourceType'
|
|
315
|
+
end
|
|
316
|
+
end
|
|
317
|
+
|
|
318
|
+
class CalendarResources
|
|
319
|
+
# @private
|
|
320
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
321
|
+
property :etag, as: 'etag'
|
|
322
|
+
collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::CalendarResource, decorator: Google::Apis::AdminDirectoryV1::CalendarResource::Representation
|
|
323
|
+
|
|
324
|
+
property :kind, as: 'kind'
|
|
325
|
+
property :next_page_token, as: 'nextPageToken'
|
|
326
|
+
end
|
|
327
|
+
end
|
|
328
|
+
|
|
245
329
|
class Channel
|
|
246
330
|
# @private
|
|
247
331
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -322,6 +406,84 @@ module Google
|
|
|
322
406
|
end
|
|
323
407
|
end
|
|
324
408
|
|
|
409
|
+
class Customer
|
|
410
|
+
# @private
|
|
411
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
412
|
+
property :alternate_email, as: 'alternateEmail'
|
|
413
|
+
property :customer_creation_time, as: 'customerCreationTime', type: DateTime
|
|
414
|
+
|
|
415
|
+
property :customer_domain, as: 'customerDomain'
|
|
416
|
+
property :etag, as: 'etag'
|
|
417
|
+
property :id, as: 'id'
|
|
418
|
+
property :kind, as: 'kind'
|
|
419
|
+
property :language, as: 'language'
|
|
420
|
+
property :phone_number, as: 'phoneNumber'
|
|
421
|
+
property :postal_address, as: 'postalAddress', class: Google::Apis::AdminDirectoryV1::CustomerPostalAddress, decorator: Google::Apis::AdminDirectoryV1::CustomerPostalAddress::Representation
|
|
422
|
+
|
|
423
|
+
end
|
|
424
|
+
end
|
|
425
|
+
|
|
426
|
+
class CustomerPostalAddress
|
|
427
|
+
# @private
|
|
428
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
429
|
+
property :address_line1, as: 'addressLine1'
|
|
430
|
+
property :address_line2, as: 'addressLine2'
|
|
431
|
+
property :address_line3, as: 'addressLine3'
|
|
432
|
+
property :contact_name, as: 'contactName'
|
|
433
|
+
property :country_code, as: 'countryCode'
|
|
434
|
+
property :locality, as: 'locality'
|
|
435
|
+
property :organization_name, as: 'organizationName'
|
|
436
|
+
property :postal_code, as: 'postalCode'
|
|
437
|
+
property :region, as: 'region'
|
|
438
|
+
end
|
|
439
|
+
end
|
|
440
|
+
|
|
441
|
+
class DomainAlias
|
|
442
|
+
# @private
|
|
443
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
444
|
+
property :creation_time, as: 'creationTime'
|
|
445
|
+
property :domain_alias_name, as: 'domainAliasName'
|
|
446
|
+
property :etag, as: 'etag'
|
|
447
|
+
property :kind, as: 'kind'
|
|
448
|
+
property :parent_domain_name, as: 'parentDomainName'
|
|
449
|
+
property :verified, as: 'verified'
|
|
450
|
+
end
|
|
451
|
+
end
|
|
452
|
+
|
|
453
|
+
class DomainAliases
|
|
454
|
+
# @private
|
|
455
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
456
|
+
collection :domain_aliases, as: 'domainAliases', class: Google::Apis::AdminDirectoryV1::DomainAlias, decorator: Google::Apis::AdminDirectoryV1::DomainAlias::Representation
|
|
457
|
+
|
|
458
|
+
property :etag, as: 'etag'
|
|
459
|
+
property :kind, as: 'kind'
|
|
460
|
+
end
|
|
461
|
+
end
|
|
462
|
+
|
|
463
|
+
class Domains
|
|
464
|
+
# @private
|
|
465
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
466
|
+
property :creation_time, as: 'creationTime'
|
|
467
|
+
collection :domain_aliases, as: 'domainAliases', class: Google::Apis::AdminDirectoryV1::DomainAlias, decorator: Google::Apis::AdminDirectoryV1::DomainAlias::Representation
|
|
468
|
+
|
|
469
|
+
property :domain_name, as: 'domainName'
|
|
470
|
+
property :etag, as: 'etag'
|
|
471
|
+
property :is_primary, as: 'isPrimary'
|
|
472
|
+
property :kind, as: 'kind'
|
|
473
|
+
property :verified, as: 'verified'
|
|
474
|
+
end
|
|
475
|
+
end
|
|
476
|
+
|
|
477
|
+
class Domains2
|
|
478
|
+
# @private
|
|
479
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
480
|
+
collection :domains, as: 'domains', class: Google::Apis::AdminDirectoryV1::Domains, decorator: Google::Apis::AdminDirectoryV1::Domains::Representation
|
|
481
|
+
|
|
482
|
+
property :etag, as: 'etag'
|
|
483
|
+
property :kind, as: 'kind'
|
|
484
|
+
end
|
|
485
|
+
end
|
|
486
|
+
|
|
325
487
|
class Group
|
|
326
488
|
# @private
|
|
327
489
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -493,6 +655,88 @@ module Google
|
|
|
493
655
|
end
|
|
494
656
|
end
|
|
495
657
|
|
|
658
|
+
class Privilege
|
|
659
|
+
# @private
|
|
660
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
661
|
+
collection :child_privileges, as: 'childPrivileges', class: Google::Apis::AdminDirectoryV1::Privilege, decorator: Google::Apis::AdminDirectoryV1::Privilege::Representation
|
|
662
|
+
|
|
663
|
+
property :etag, as: 'etag'
|
|
664
|
+
property :is_ou_scopable, as: 'isOuScopable'
|
|
665
|
+
property :kind, as: 'kind'
|
|
666
|
+
property :privilege_name, as: 'privilegeName'
|
|
667
|
+
property :service_id, as: 'serviceId'
|
|
668
|
+
property :service_name, as: 'serviceName'
|
|
669
|
+
end
|
|
670
|
+
end
|
|
671
|
+
|
|
672
|
+
class Privileges
|
|
673
|
+
# @private
|
|
674
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
675
|
+
property :etag, as: 'etag'
|
|
676
|
+
collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::Privilege, decorator: Google::Apis::AdminDirectoryV1::Privilege::Representation
|
|
677
|
+
|
|
678
|
+
property :kind, as: 'kind'
|
|
679
|
+
end
|
|
680
|
+
end
|
|
681
|
+
|
|
682
|
+
class Role
|
|
683
|
+
# @private
|
|
684
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
685
|
+
property :etag, as: 'etag'
|
|
686
|
+
property :is_super_admin_role, as: 'isSuperAdminRole'
|
|
687
|
+
property :is_system_role, as: 'isSystemRole'
|
|
688
|
+
property :kind, as: 'kind'
|
|
689
|
+
property :role_description, as: 'roleDescription'
|
|
690
|
+
property :role_id, as: 'roleId'
|
|
691
|
+
property :role_name, as: 'roleName'
|
|
692
|
+
collection :role_privileges, as: 'rolePrivileges', class: Google::Apis::AdminDirectoryV1::Role::RolePrivilege, decorator: Google::Apis::AdminDirectoryV1::Role::RolePrivilege::Representation
|
|
693
|
+
|
|
694
|
+
end
|
|
695
|
+
|
|
696
|
+
class RolePrivilege
|
|
697
|
+
# @private
|
|
698
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
699
|
+
property :privilege_name, as: 'privilegeName'
|
|
700
|
+
property :service_id, as: 'serviceId'
|
|
701
|
+
end
|
|
702
|
+
end
|
|
703
|
+
end
|
|
704
|
+
|
|
705
|
+
class RoleAssignment
|
|
706
|
+
# @private
|
|
707
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
708
|
+
property :assigned_to, as: 'assignedTo'
|
|
709
|
+
property :etag, as: 'etag'
|
|
710
|
+
property :kind, as: 'kind'
|
|
711
|
+
property :org_unit_id, as: 'orgUnitId'
|
|
712
|
+
property :role_assignment_id, as: 'roleAssignmentId'
|
|
713
|
+
property :role_id, as: 'roleId'
|
|
714
|
+
property :scope_type, as: 'scopeType'
|
|
715
|
+
end
|
|
716
|
+
end
|
|
717
|
+
|
|
718
|
+
class RoleAssignments
|
|
719
|
+
# @private
|
|
720
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
721
|
+
property :etag, as: 'etag'
|
|
722
|
+
collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::RoleAssignment, decorator: Google::Apis::AdminDirectoryV1::RoleAssignment::Representation
|
|
723
|
+
|
|
724
|
+
property :kind, as: 'kind'
|
|
725
|
+
property :next_page_token, as: 'nextPageToken'
|
|
726
|
+
end
|
|
727
|
+
end
|
|
728
|
+
|
|
729
|
+
class Roles
|
|
730
|
+
# @private
|
|
731
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
|
732
|
+
property :etag, as: 'etag'
|
|
733
|
+
collection :items, as: 'items', class: Google::Apis::AdminDirectoryV1::Role, decorator: Google::Apis::AdminDirectoryV1::Role::Representation
|
|
734
|
+
|
|
735
|
+
property :kind, as: 'kind'
|
|
736
|
+
property :next_page_token, as: 'nextPageToken'
|
|
737
|
+
end
|
|
738
|
+
end
|
|
739
|
+
|
|
496
740
|
class Schema
|
|
497
741
|
# @private
|
|
498
742
|
class Representation < Google::Apis::Core::JsonRepresentation
|
|
@@ -81,8 +81,7 @@ module Google
|
|
|
81
81
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
82
82
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
83
83
|
def delete_asp(user_key, code_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
84
|
-
|
|
85
|
-
command = make_simple_command(:delete, path, options)
|
|
84
|
+
command = make_simple_command(:delete, 'users/{userKey}/asps/{codeId}', options)
|
|
86
85
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
87
86
|
command.params['codeId'] = code_id unless code_id.nil?
|
|
88
87
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -119,8 +118,7 @@ module Google
|
|
|
119
118
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
120
119
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
121
120
|
def get_asp(user_key, code_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
122
|
-
|
|
123
|
-
command = make_simple_command(:get, path, options)
|
|
121
|
+
command = make_simple_command(:get, 'users/{userKey}/asps/{codeId}', options)
|
|
124
122
|
command.response_representation = Google::Apis::AdminDirectoryV1::Asp::Representation
|
|
125
123
|
command.response_class = Google::Apis::AdminDirectoryV1::Asp
|
|
126
124
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
@@ -157,8 +155,7 @@ module Google
|
|
|
157
155
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
158
156
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
159
157
|
def list_asps(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
160
|
-
|
|
161
|
-
command = make_simple_command(:get, path, options)
|
|
158
|
+
command = make_simple_command(:get, 'users/{userKey}/asps', options)
|
|
162
159
|
command.response_representation = Google::Apis::AdminDirectoryV1::Asps::Representation
|
|
163
160
|
command.response_class = Google::Apis::AdminDirectoryV1::Asps
|
|
164
161
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
@@ -192,8 +189,7 @@ module Google
|
|
|
192
189
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
193
190
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
194
191
|
def stop_channel(channel_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
195
|
-
|
|
196
|
-
command = make_simple_command(:post, path, options)
|
|
192
|
+
command = make_simple_command(:post, '/admin/directory_v1/channels/stop', options)
|
|
197
193
|
command.request_representation = Google::Apis::AdminDirectoryV1::Channel::Representation
|
|
198
194
|
command.request_object = channel_object
|
|
199
195
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -231,8 +227,7 @@ module Google
|
|
|
231
227
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
232
228
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
233
229
|
def get_chrome_os_device(customer_id, device_id, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
234
|
-
|
|
235
|
-
command = make_simple_command(:get, path, options)
|
|
230
|
+
command = make_simple_command(:get, 'customer/{customerId}/devices/chromeos/{deviceId}', options)
|
|
236
231
|
command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation
|
|
237
232
|
command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevice
|
|
238
233
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
@@ -283,8 +278,7 @@ module Google
|
|
|
283
278
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
284
279
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
285
280
|
def list_chrome_os_devices(customer_id, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
286
|
-
|
|
287
|
-
command = make_simple_command(:get, path, options)
|
|
281
|
+
command = make_simple_command(:get, 'customer/{customerId}/devices/chromeos', options)
|
|
288
282
|
command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevices::Representation
|
|
289
283
|
command.response_class = Google::Apis::AdminDirectoryV1::ChromeOsDevices
|
|
290
284
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
@@ -330,8 +324,7 @@ module Google
|
|
|
330
324
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
331
325
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
332
326
|
def patch_chrome_os_device(customer_id, device_id, chrome_os_device_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
333
|
-
|
|
334
|
-
command = make_simple_command(:patch, path, options)
|
|
327
|
+
command = make_simple_command(:patch, 'customer/{customerId}/devices/chromeos/{deviceId}', options)
|
|
335
328
|
command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation
|
|
336
329
|
command.request_object = chrome_os_device_object
|
|
337
330
|
command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation
|
|
@@ -375,8 +368,7 @@ module Google
|
|
|
375
368
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
376
369
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
377
370
|
def update_chrome_os_device(customer_id, device_id, chrome_os_device_object = nil, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
378
|
-
|
|
379
|
-
command = make_simple_command(:put, path, options)
|
|
371
|
+
command = make_simple_command(:put, 'customer/{customerId}/devices/chromeos/{deviceId}', options)
|
|
380
372
|
command.request_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation
|
|
381
373
|
command.request_object = chrome_os_device_object
|
|
382
374
|
command.response_representation = Google::Apis::AdminDirectoryV1::ChromeOsDevice::Representation
|
|
@@ -390,9 +382,9 @@ module Google
|
|
|
390
382
|
execute_or_queue_command(command, &block)
|
|
391
383
|
end
|
|
392
384
|
|
|
393
|
-
#
|
|
394
|
-
# @param [String]
|
|
395
|
-
#
|
|
385
|
+
# Retrives a customer.
|
|
386
|
+
# @param [String] customer_key
|
|
387
|
+
# Id of the customer to be retrieved
|
|
396
388
|
# @param [String] fields
|
|
397
389
|
# Selector specifying which fields to include in a partial response.
|
|
398
390
|
# @param [String] quota_user
|
|
@@ -406,27 +398,29 @@ module Google
|
|
|
406
398
|
# Request-specific options
|
|
407
399
|
#
|
|
408
400
|
# @yield [result, err] Result & error if block supplied
|
|
409
|
-
# @yieldparam result [
|
|
401
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Customer] parsed result object
|
|
410
402
|
# @yieldparam err [StandardError] error object if request failed
|
|
411
403
|
#
|
|
412
|
-
# @return [
|
|
404
|
+
# @return [Google::Apis::AdminDirectoryV1::Customer]
|
|
413
405
|
#
|
|
414
406
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
415
407
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
416
408
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
417
|
-
def
|
|
418
|
-
|
|
419
|
-
command =
|
|
420
|
-
command.
|
|
409
|
+
def get_customer(customer_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
410
|
+
command = make_simple_command(:get, 'customers/{customerKey}', options)
|
|
411
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Customer::Representation
|
|
412
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Customer
|
|
413
|
+
command.params['customerKey'] = customer_key unless customer_key.nil?
|
|
421
414
|
command.query['fields'] = fields unless fields.nil?
|
|
422
415
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
423
416
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
424
417
|
execute_or_queue_command(command, &block)
|
|
425
418
|
end
|
|
426
419
|
|
|
427
|
-
#
|
|
428
|
-
# @param [String]
|
|
429
|
-
#
|
|
420
|
+
# Updates a customer. This method supports patch semantics.
|
|
421
|
+
# @param [String] customer_key
|
|
422
|
+
# Id of the customer to be updated
|
|
423
|
+
# @param [Google::Apis::AdminDirectoryV1::Customer] customer_object
|
|
430
424
|
# @param [String] fields
|
|
431
425
|
# Selector specifying which fields to include in a partial response.
|
|
432
426
|
# @param [String] quota_user
|
|
@@ -440,28 +434,31 @@ module Google
|
|
|
440
434
|
# Request-specific options
|
|
441
435
|
#
|
|
442
436
|
# @yield [result, err] Result & error if block supplied
|
|
443
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
437
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Customer] parsed result object
|
|
444
438
|
# @yieldparam err [StandardError] error object if request failed
|
|
445
439
|
#
|
|
446
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
440
|
+
# @return [Google::Apis::AdminDirectoryV1::Customer]
|
|
447
441
|
#
|
|
448
442
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
449
443
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
450
444
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
451
|
-
def
|
|
452
|
-
|
|
453
|
-
command =
|
|
454
|
-
command.
|
|
455
|
-
command.
|
|
456
|
-
command.
|
|
445
|
+
def patch_customer(customer_key, customer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
446
|
+
command = make_simple_command(:patch, 'customers/{customerKey}', options)
|
|
447
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Customer::Representation
|
|
448
|
+
command.request_object = customer_object
|
|
449
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Customer::Representation
|
|
450
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Customer
|
|
451
|
+
command.params['customerKey'] = customer_key unless customer_key.nil?
|
|
457
452
|
command.query['fields'] = fields unless fields.nil?
|
|
458
453
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
459
454
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
460
455
|
execute_or_queue_command(command, &block)
|
|
461
456
|
end
|
|
462
457
|
|
|
463
|
-
#
|
|
464
|
-
# @param [
|
|
458
|
+
# Updates a customer.
|
|
459
|
+
# @param [String] customer_key
|
|
460
|
+
# Id of the customer to be updated
|
|
461
|
+
# @param [Google::Apis::AdminDirectoryV1::Customer] customer_object
|
|
465
462
|
# @param [String] fields
|
|
466
463
|
# Selector specifying which fields to include in a partial response.
|
|
467
464
|
# @param [String] quota_user
|
|
@@ -475,41 +472,32 @@ module Google
|
|
|
475
472
|
# Request-specific options
|
|
476
473
|
#
|
|
477
474
|
# @yield [result, err] Result & error if block supplied
|
|
478
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
475
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Customer] parsed result object
|
|
479
476
|
# @yieldparam err [StandardError] error object if request failed
|
|
480
477
|
#
|
|
481
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
478
|
+
# @return [Google::Apis::AdminDirectoryV1::Customer]
|
|
482
479
|
#
|
|
483
480
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
484
481
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
485
482
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
486
|
-
def
|
|
487
|
-
|
|
488
|
-
command =
|
|
489
|
-
command.
|
|
490
|
-
command.
|
|
491
|
-
command.
|
|
492
|
-
command.
|
|
483
|
+
def update_customer(customer_key, customer_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
484
|
+
command = make_simple_command(:put, 'customers/{customerKey}', options)
|
|
485
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Customer::Representation
|
|
486
|
+
command.request_object = customer_object
|
|
487
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Customer::Representation
|
|
488
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Customer
|
|
489
|
+
command.params['customerKey'] = customer_key unless customer_key.nil?
|
|
493
490
|
command.query['fields'] = fields unless fields.nil?
|
|
494
491
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
495
492
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
496
493
|
execute_or_queue_command(command, &block)
|
|
497
494
|
end
|
|
498
495
|
|
|
499
|
-
#
|
|
496
|
+
# Deletes a Domain Alias of the customer.
|
|
500
497
|
# @param [String] customer
|
|
501
|
-
# Immutable id of the Google Apps account.
|
|
502
|
-
#
|
|
503
|
-
#
|
|
504
|
-
# Name of the domain. Fill this field to get groups from only this domain. To
|
|
505
|
-
# return all groups in a multi-domain fill customer field instead.
|
|
506
|
-
# @param [Fixnum] max_results
|
|
507
|
-
# Maximum number of results to return. Default is 200
|
|
508
|
-
# @param [String] page_token
|
|
509
|
-
# Token to specify next page in the list
|
|
510
|
-
# @param [String] user_key
|
|
511
|
-
# Email or immutable Id of the user if only those groups are to be listed, the
|
|
512
|
-
# given user is a member of. If Id, it should match with id of user object
|
|
498
|
+
# Immutable id of the Google Apps account.
|
|
499
|
+
# @param [String] domain_alias_name
|
|
500
|
+
# Name of domain alias to be retrieved.
|
|
513
501
|
# @param [String] fields
|
|
514
502
|
# Selector specifying which fields to include in a partial response.
|
|
515
503
|
# @param [String] quota_user
|
|
@@ -523,35 +511,29 @@ module Google
|
|
|
523
511
|
# Request-specific options
|
|
524
512
|
#
|
|
525
513
|
# @yield [result, err] Result & error if block supplied
|
|
526
|
-
# @yieldparam result [
|
|
514
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
527
515
|
# @yieldparam err [StandardError] error object if request failed
|
|
528
516
|
#
|
|
529
|
-
# @return [
|
|
517
|
+
# @return [void]
|
|
530
518
|
#
|
|
531
519
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
532
520
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
533
521
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
534
|
-
def
|
|
535
|
-
|
|
536
|
-
command =
|
|
537
|
-
command.
|
|
538
|
-
command.response_class = Google::Apis::AdminDirectoryV1::Groups
|
|
539
|
-
command.query['customer'] = customer unless customer.nil?
|
|
540
|
-
command.query['domain'] = domain unless domain.nil?
|
|
541
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
542
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
543
|
-
command.query['userKey'] = user_key unless user_key.nil?
|
|
522
|
+
def delete_domain_alias(customer, domain_alias_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
523
|
+
command = make_simple_command(:delete, 'customer/{customer}/domainaliases/{domainAliasName}', options)
|
|
524
|
+
command.params['customer'] = customer unless customer.nil?
|
|
525
|
+
command.params['domainAliasName'] = domain_alias_name unless domain_alias_name.nil?
|
|
544
526
|
command.query['fields'] = fields unless fields.nil?
|
|
545
527
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
546
528
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
547
529
|
execute_or_queue_command(command, &block)
|
|
548
530
|
end
|
|
549
531
|
|
|
550
|
-
#
|
|
551
|
-
# @param [String]
|
|
552
|
-
#
|
|
553
|
-
#
|
|
554
|
-
#
|
|
532
|
+
# Retrieves a domain alias of the customer.
|
|
533
|
+
# @param [String] customer
|
|
534
|
+
# Immutable id of the Google Apps account.
|
|
535
|
+
# @param [String] domain_alias_name
|
|
536
|
+
# Name of domain alias to be retrieved.
|
|
555
537
|
# @param [String] fields
|
|
556
538
|
# Selector specifying which fields to include in a partial response.
|
|
557
539
|
# @param [String] quota_user
|
|
@@ -565,33 +547,30 @@ module Google
|
|
|
565
547
|
# Request-specific options
|
|
566
548
|
#
|
|
567
549
|
# @yield [result, err] Result & error if block supplied
|
|
568
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
550
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::DomainAlias] parsed result object
|
|
569
551
|
# @yieldparam err [StandardError] error object if request failed
|
|
570
552
|
#
|
|
571
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
553
|
+
# @return [Google::Apis::AdminDirectoryV1::DomainAlias]
|
|
572
554
|
#
|
|
573
555
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
574
556
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
575
557
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
576
|
-
def
|
|
577
|
-
|
|
578
|
-
command =
|
|
579
|
-
command.
|
|
580
|
-
command.
|
|
581
|
-
command.
|
|
582
|
-
command.response_class = Google::Apis::AdminDirectoryV1::Group
|
|
583
|
-
command.params['groupKey'] = group_key unless group_key.nil?
|
|
558
|
+
def get_domain_alias(customer, domain_alias_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
559
|
+
command = make_simple_command(:get, 'customer/{customer}/domainaliases/{domainAliasName}', options)
|
|
560
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::DomainAlias::Representation
|
|
561
|
+
command.response_class = Google::Apis::AdminDirectoryV1::DomainAlias
|
|
562
|
+
command.params['customer'] = customer unless customer.nil?
|
|
563
|
+
command.params['domainAliasName'] = domain_alias_name unless domain_alias_name.nil?
|
|
584
564
|
command.query['fields'] = fields unless fields.nil?
|
|
585
565
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
586
566
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
587
567
|
execute_or_queue_command(command, &block)
|
|
588
568
|
end
|
|
589
569
|
|
|
590
|
-
#
|
|
591
|
-
# @param [String]
|
|
592
|
-
#
|
|
593
|
-
#
|
|
594
|
-
# @param [Google::Apis::AdminDirectoryV1::Group] group_object
|
|
570
|
+
# Inserts a Domain alias of the customer.
|
|
571
|
+
# @param [String] customer
|
|
572
|
+
# Immutable id of the Google Apps account.
|
|
573
|
+
# @param [Google::Apis::AdminDirectoryV1::DomainAlias] domain_alias_object
|
|
595
574
|
# @param [String] fields
|
|
596
575
|
# Selector specifying which fields to include in a partial response.
|
|
597
576
|
# @param [String] quota_user
|
|
@@ -605,33 +584,70 @@ module Google
|
|
|
605
584
|
# Request-specific options
|
|
606
585
|
#
|
|
607
586
|
# @yield [result, err] Result & error if block supplied
|
|
608
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
587
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::DomainAlias] parsed result object
|
|
609
588
|
# @yieldparam err [StandardError] error object if request failed
|
|
610
589
|
#
|
|
611
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
590
|
+
# @return [Google::Apis::AdminDirectoryV1::DomainAlias]
|
|
612
591
|
#
|
|
613
592
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
614
593
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
615
594
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
616
|
-
def
|
|
617
|
-
|
|
618
|
-
command =
|
|
619
|
-
command.
|
|
620
|
-
command.
|
|
621
|
-
command.
|
|
622
|
-
command.
|
|
623
|
-
command.params['groupKey'] = group_key unless group_key.nil?
|
|
595
|
+
def insert_domain_alias(customer, domain_alias_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
596
|
+
command = make_simple_command(:post, 'customer/{customer}/domainaliases', options)
|
|
597
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::DomainAlias::Representation
|
|
598
|
+
command.request_object = domain_alias_object
|
|
599
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::DomainAlias::Representation
|
|
600
|
+
command.response_class = Google::Apis::AdminDirectoryV1::DomainAlias
|
|
601
|
+
command.params['customer'] = customer unless customer.nil?
|
|
624
602
|
command.query['fields'] = fields unless fields.nil?
|
|
625
603
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
626
604
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
627
605
|
execute_or_queue_command(command, &block)
|
|
628
606
|
end
|
|
629
607
|
|
|
630
|
-
#
|
|
631
|
-
# @param [String]
|
|
632
|
-
#
|
|
633
|
-
# @param [String]
|
|
634
|
-
#
|
|
608
|
+
# Lists the domain aliases of the customer.
|
|
609
|
+
# @param [String] customer
|
|
610
|
+
# Immutable id of the Google Apps account.
|
|
611
|
+
# @param [String] parent_domain_name
|
|
612
|
+
# Name of the parent domain for which domain aliases are to be fetched.
|
|
613
|
+
# @param [String] fields
|
|
614
|
+
# Selector specifying which fields to include in a partial response.
|
|
615
|
+
# @param [String] quota_user
|
|
616
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
617
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
618
|
+
# Overrides userIp if both are provided.
|
|
619
|
+
# @param [String] user_ip
|
|
620
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
621
|
+
# enforce per-user limits.
|
|
622
|
+
# @param [Google::Apis::RequestOptions] options
|
|
623
|
+
# Request-specific options
|
|
624
|
+
#
|
|
625
|
+
# @yield [result, err] Result & error if block supplied
|
|
626
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::DomainAliases] parsed result object
|
|
627
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
628
|
+
#
|
|
629
|
+
# @return [Google::Apis::AdminDirectoryV1::DomainAliases]
|
|
630
|
+
#
|
|
631
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
632
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
633
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
634
|
+
def list_domain_aliases(customer, parent_domain_name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
635
|
+
command = make_simple_command(:get, 'customer/{customer}/domainaliases', options)
|
|
636
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::DomainAliases::Representation
|
|
637
|
+
command.response_class = Google::Apis::AdminDirectoryV1::DomainAliases
|
|
638
|
+
command.params['customer'] = customer unless customer.nil?
|
|
639
|
+
command.query['parentDomainName'] = parent_domain_name unless parent_domain_name.nil?
|
|
640
|
+
command.query['fields'] = fields unless fields.nil?
|
|
641
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
642
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
643
|
+
execute_or_queue_command(command, &block)
|
|
644
|
+
end
|
|
645
|
+
|
|
646
|
+
# Deletes a domain of the customer.
|
|
647
|
+
# @param [String] customer
|
|
648
|
+
# Immutable id of the Google Apps account.
|
|
649
|
+
# @param [String] domain_name
|
|
650
|
+
# Name of domain to be deleted
|
|
635
651
|
# @param [String] fields
|
|
636
652
|
# Selector specifying which fields to include in a partial response.
|
|
637
653
|
# @param [String] quota_user
|
|
@@ -653,21 +669,21 @@ module Google
|
|
|
653
669
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
654
670
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
655
671
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
656
|
-
def
|
|
657
|
-
|
|
658
|
-
command =
|
|
659
|
-
command.params['
|
|
660
|
-
command.params['alias'] = group_alias unless group_alias.nil?
|
|
672
|
+
def delete_domain(customer, domain_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
673
|
+
command = make_simple_command(:delete, 'customer/{customer}/domains/{domainName}', options)
|
|
674
|
+
command.params['customer'] = customer unless customer.nil?
|
|
675
|
+
command.params['domainName'] = domain_name unless domain_name.nil?
|
|
661
676
|
command.query['fields'] = fields unless fields.nil?
|
|
662
677
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
663
678
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
664
679
|
execute_or_queue_command(command, &block)
|
|
665
680
|
end
|
|
666
681
|
|
|
667
|
-
#
|
|
668
|
-
# @param [String]
|
|
669
|
-
#
|
|
670
|
-
# @param [
|
|
682
|
+
# Retrives a domain of the customer.
|
|
683
|
+
# @param [String] customer
|
|
684
|
+
# Immutable id of the Google Apps account.
|
|
685
|
+
# @param [String] domain_name
|
|
686
|
+
# Name of domain to be retrieved
|
|
671
687
|
# @param [String] fields
|
|
672
688
|
# Selector specifying which fields to include in a partial response.
|
|
673
689
|
# @param [String] quota_user
|
|
@@ -681,31 +697,30 @@ module Google
|
|
|
681
697
|
# Request-specific options
|
|
682
698
|
#
|
|
683
699
|
# @yield [result, err] Result & error if block supplied
|
|
684
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
700
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Domains] parsed result object
|
|
685
701
|
# @yieldparam err [StandardError] error object if request failed
|
|
686
702
|
#
|
|
687
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
703
|
+
# @return [Google::Apis::AdminDirectoryV1::Domains]
|
|
688
704
|
#
|
|
689
705
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
690
706
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
691
707
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
692
|
-
def
|
|
693
|
-
|
|
694
|
-
command =
|
|
695
|
-
command.
|
|
696
|
-
command.
|
|
697
|
-
command.
|
|
698
|
-
command.response_class = Google::Apis::AdminDirectoryV1::Alias
|
|
699
|
-
command.params['groupKey'] = group_key unless group_key.nil?
|
|
708
|
+
def get_domain(customer, domain_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
709
|
+
command = make_simple_command(:get, 'customer/{customer}/domains/{domainName}', options)
|
|
710
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Domains::Representation
|
|
711
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Domains
|
|
712
|
+
command.params['customer'] = customer unless customer.nil?
|
|
713
|
+
command.params['domainName'] = domain_name unless domain_name.nil?
|
|
700
714
|
command.query['fields'] = fields unless fields.nil?
|
|
701
715
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
702
716
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
703
717
|
execute_or_queue_command(command, &block)
|
|
704
718
|
end
|
|
705
719
|
|
|
706
|
-
#
|
|
707
|
-
# @param [String]
|
|
708
|
-
#
|
|
720
|
+
# Inserts a domain of the customer.
|
|
721
|
+
# @param [String] customer
|
|
722
|
+
# Immutable id of the Google Apps account.
|
|
723
|
+
# @param [Google::Apis::AdminDirectoryV1::Domains] domains_object
|
|
709
724
|
# @param [String] fields
|
|
710
725
|
# Selector specifying which fields to include in a partial response.
|
|
711
726
|
# @param [String] quota_user
|
|
@@ -719,31 +734,65 @@ module Google
|
|
|
719
734
|
# Request-specific options
|
|
720
735
|
#
|
|
721
736
|
# @yield [result, err] Result & error if block supplied
|
|
722
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
737
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Domains] parsed result object
|
|
723
738
|
# @yieldparam err [StandardError] error object if request failed
|
|
724
739
|
#
|
|
725
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
740
|
+
# @return [Google::Apis::AdminDirectoryV1::Domains]
|
|
726
741
|
#
|
|
727
742
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
728
743
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
729
744
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
730
|
-
def
|
|
731
|
-
|
|
732
|
-
command =
|
|
733
|
-
command.
|
|
734
|
-
command.
|
|
735
|
-
command.
|
|
745
|
+
def insert_domain(customer, domains_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
746
|
+
command = make_simple_command(:post, 'customer/{customer}/domains', options)
|
|
747
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Domains::Representation
|
|
748
|
+
command.request_object = domains_object
|
|
749
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Domains::Representation
|
|
750
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Domains
|
|
751
|
+
command.params['customer'] = customer unless customer.nil?
|
|
736
752
|
command.query['fields'] = fields unless fields.nil?
|
|
737
753
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
738
754
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
739
755
|
execute_or_queue_command(command, &block)
|
|
740
756
|
end
|
|
741
757
|
|
|
742
|
-
#
|
|
758
|
+
# Lists the domains of the customer.
|
|
759
|
+
# @param [String] customer
|
|
760
|
+
# Immutable id of the Google Apps account.
|
|
761
|
+
# @param [String] fields
|
|
762
|
+
# Selector specifying which fields to include in a partial response.
|
|
763
|
+
# @param [String] quota_user
|
|
764
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
765
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
766
|
+
# Overrides userIp if both are provided.
|
|
767
|
+
# @param [String] user_ip
|
|
768
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
769
|
+
# enforce per-user limits.
|
|
770
|
+
# @param [Google::Apis::RequestOptions] options
|
|
771
|
+
# Request-specific options
|
|
772
|
+
#
|
|
773
|
+
# @yield [result, err] Result & error if block supplied
|
|
774
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Domains2] parsed result object
|
|
775
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
776
|
+
#
|
|
777
|
+
# @return [Google::Apis::AdminDirectoryV1::Domains2]
|
|
778
|
+
#
|
|
779
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
780
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
781
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
782
|
+
def list_domains(customer, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
783
|
+
command = make_simple_command(:get, 'customer/{customer}/domains', options)
|
|
784
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Domains2::Representation
|
|
785
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Domains2
|
|
786
|
+
command.params['customer'] = customer unless customer.nil?
|
|
787
|
+
command.query['fields'] = fields unless fields.nil?
|
|
788
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
789
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
790
|
+
execute_or_queue_command(command, &block)
|
|
791
|
+
end
|
|
792
|
+
|
|
793
|
+
# Delete Group
|
|
743
794
|
# @param [String] group_key
|
|
744
795
|
# Email or immutable Id of the group
|
|
745
|
-
# @param [String] member_key
|
|
746
|
-
# Email or immutable Id of the member
|
|
747
796
|
# @param [String] fields
|
|
748
797
|
# Selector specifying which fields to include in a partial response.
|
|
749
798
|
# @param [String] quota_user
|
|
@@ -765,22 +814,18 @@ module Google
|
|
|
765
814
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
766
815
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
767
816
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
768
|
-
def
|
|
769
|
-
|
|
770
|
-
command = make_simple_command(:delete, path, options)
|
|
817
|
+
def delete_group(group_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
818
|
+
command = make_simple_command(:delete, 'groups/{groupKey}', options)
|
|
771
819
|
command.params['groupKey'] = group_key unless group_key.nil?
|
|
772
|
-
command.params['memberKey'] = member_key unless member_key.nil?
|
|
773
820
|
command.query['fields'] = fields unless fields.nil?
|
|
774
821
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
775
822
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
776
823
|
execute_or_queue_command(command, &block)
|
|
777
824
|
end
|
|
778
825
|
|
|
779
|
-
# Retrieve Group
|
|
826
|
+
# Retrieve Group
|
|
780
827
|
# @param [String] group_key
|
|
781
828
|
# Email or immutable Id of the group
|
|
782
|
-
# @param [String] member_key
|
|
783
|
-
# Email or immutable Id of the member
|
|
784
829
|
# @param [String] fields
|
|
785
830
|
# Selector specifying which fields to include in a partial response.
|
|
786
831
|
# @param [String] quota_user
|
|
@@ -794,31 +839,27 @@ module Google
|
|
|
794
839
|
# Request-specific options
|
|
795
840
|
#
|
|
796
841
|
# @yield [result, err] Result & error if block supplied
|
|
797
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
842
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Group] parsed result object
|
|
798
843
|
# @yieldparam err [StandardError] error object if request failed
|
|
799
844
|
#
|
|
800
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
845
|
+
# @return [Google::Apis::AdminDirectoryV1::Group]
|
|
801
846
|
#
|
|
802
847
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
803
848
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
804
849
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
805
|
-
def
|
|
806
|
-
|
|
807
|
-
command =
|
|
808
|
-
command.
|
|
809
|
-
command.response_class = Google::Apis::AdminDirectoryV1::Member
|
|
850
|
+
def get_group(group_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
851
|
+
command = make_simple_command(:get, 'groups/{groupKey}', options)
|
|
852
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Group::Representation
|
|
853
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Group
|
|
810
854
|
command.params['groupKey'] = group_key unless group_key.nil?
|
|
811
|
-
command.params['memberKey'] = member_key unless member_key.nil?
|
|
812
855
|
command.query['fields'] = fields unless fields.nil?
|
|
813
856
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
814
857
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
815
858
|
execute_or_queue_command(command, &block)
|
|
816
859
|
end
|
|
817
860
|
|
|
818
|
-
#
|
|
819
|
-
# @param [
|
|
820
|
-
# Email or immutable Id of the group
|
|
821
|
-
# @param [Google::Apis::AdminDirectoryV1::Member] member_object
|
|
861
|
+
# Create Group
|
|
862
|
+
# @param [Google::Apis::AdminDirectoryV1::Group] group_object
|
|
822
863
|
# @param [String] fields
|
|
823
864
|
# Selector specifying which fields to include in a partial response.
|
|
824
865
|
# @param [String] quota_user
|
|
@@ -832,37 +873,40 @@ module Google
|
|
|
832
873
|
# Request-specific options
|
|
833
874
|
#
|
|
834
875
|
# @yield [result, err] Result & error if block supplied
|
|
835
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
876
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Group] parsed result object
|
|
836
877
|
# @yieldparam err [StandardError] error object if request failed
|
|
837
878
|
#
|
|
838
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
879
|
+
# @return [Google::Apis::AdminDirectoryV1::Group]
|
|
839
880
|
#
|
|
840
881
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
841
882
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
842
883
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
843
|
-
def
|
|
844
|
-
|
|
845
|
-
command =
|
|
846
|
-
command.
|
|
847
|
-
command.
|
|
848
|
-
command.
|
|
849
|
-
command.response_class = Google::Apis::AdminDirectoryV1::Member
|
|
850
|
-
command.params['groupKey'] = group_key unless group_key.nil?
|
|
884
|
+
def insert_group(group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
885
|
+
command = make_simple_command(:post, 'groups', options)
|
|
886
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Group::Representation
|
|
887
|
+
command.request_object = group_object
|
|
888
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Group::Representation
|
|
889
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Group
|
|
851
890
|
command.query['fields'] = fields unless fields.nil?
|
|
852
891
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
853
892
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
854
893
|
execute_or_queue_command(command, &block)
|
|
855
894
|
end
|
|
856
895
|
|
|
857
|
-
# Retrieve all
|
|
858
|
-
# @param [String]
|
|
859
|
-
#
|
|
896
|
+
# Retrieve all groups in a domain (paginated)
|
|
897
|
+
# @param [String] customer
|
|
898
|
+
# Immutable id of the Google Apps account. In case of multi-domain, to fetch all
|
|
899
|
+
# groups for a customer, fill this field instead of domain.
|
|
900
|
+
# @param [String] domain
|
|
901
|
+
# Name of the domain. Fill this field to get groups from only this domain. To
|
|
902
|
+
# return all groups in a multi-domain fill customer field instead.
|
|
860
903
|
# @param [Fixnum] max_results
|
|
861
904
|
# Maximum number of results to return. Default is 200
|
|
862
905
|
# @param [String] page_token
|
|
863
906
|
# Token to specify next page in the list
|
|
864
|
-
# @param [String]
|
|
865
|
-
#
|
|
907
|
+
# @param [String] user_key
|
|
908
|
+
# Email or immutable Id of the user if only those groups are to be listed, the
|
|
909
|
+
# given user is a member of. If Id, it should match with id of user object
|
|
866
910
|
# @param [String] fields
|
|
867
911
|
# Selector specifying which fields to include in a partial response.
|
|
868
912
|
# @param [String] quota_user
|
|
@@ -876,38 +920,34 @@ module Google
|
|
|
876
920
|
# Request-specific options
|
|
877
921
|
#
|
|
878
922
|
# @yield [result, err] Result & error if block supplied
|
|
879
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
923
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Groups] parsed result object
|
|
880
924
|
# @yieldparam err [StandardError] error object if request failed
|
|
881
925
|
#
|
|
882
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
926
|
+
# @return [Google::Apis::AdminDirectoryV1::Groups]
|
|
883
927
|
#
|
|
884
928
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
885
929
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
886
930
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
887
|
-
def
|
|
888
|
-
|
|
889
|
-
command =
|
|
890
|
-
command.
|
|
891
|
-
command.
|
|
892
|
-
command.
|
|
931
|
+
def list_groups(customer: nil, domain: nil, max_results: nil, page_token: nil, user_key: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
932
|
+
command = make_simple_command(:get, 'groups', options)
|
|
933
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Groups::Representation
|
|
934
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Groups
|
|
935
|
+
command.query['customer'] = customer unless customer.nil?
|
|
936
|
+
command.query['domain'] = domain unless domain.nil?
|
|
893
937
|
command.query['maxResults'] = max_results unless max_results.nil?
|
|
894
938
|
command.query['pageToken'] = page_token unless page_token.nil?
|
|
895
|
-
command.query['
|
|
939
|
+
command.query['userKey'] = user_key unless user_key.nil?
|
|
896
940
|
command.query['fields'] = fields unless fields.nil?
|
|
897
941
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
898
942
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
899
943
|
execute_or_queue_command(command, &block)
|
|
900
944
|
end
|
|
901
945
|
|
|
902
|
-
# Update
|
|
903
|
-
# semantics.
|
|
946
|
+
# Update Group. This method supports patch semantics.
|
|
904
947
|
# @param [String] group_key
|
|
905
948
|
# Email or immutable Id of the group. If Id, it should match with id of group
|
|
906
949
|
# object
|
|
907
|
-
# @param [
|
|
908
|
-
# Email or immutable Id of the user. If Id, it should match with id of member
|
|
909
|
-
# object
|
|
910
|
-
# @param [Google::Apis::AdminDirectoryV1::Member] member_object
|
|
950
|
+
# @param [Google::Apis::AdminDirectoryV1::Group] group_object
|
|
911
951
|
# @param [String] fields
|
|
912
952
|
# Selector specifying which fields to include in a partial response.
|
|
913
953
|
# @param [String] quota_user
|
|
@@ -921,36 +961,252 @@ module Google
|
|
|
921
961
|
# Request-specific options
|
|
922
962
|
#
|
|
923
963
|
# @yield [result, err] Result & error if block supplied
|
|
924
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
964
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Group] parsed result object
|
|
925
965
|
# @yieldparam err [StandardError] error object if request failed
|
|
926
966
|
#
|
|
927
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
967
|
+
# @return [Google::Apis::AdminDirectoryV1::Group]
|
|
928
968
|
#
|
|
929
969
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
930
970
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
931
971
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
932
|
-
def
|
|
933
|
-
|
|
934
|
-
command =
|
|
935
|
-
command.
|
|
936
|
-
command.
|
|
937
|
-
command.
|
|
938
|
-
command.response_class = Google::Apis::AdminDirectoryV1::Member
|
|
972
|
+
def patch_group(group_key, group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
973
|
+
command = make_simple_command(:patch, 'groups/{groupKey}', options)
|
|
974
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Group::Representation
|
|
975
|
+
command.request_object = group_object
|
|
976
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Group::Representation
|
|
977
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Group
|
|
939
978
|
command.params['groupKey'] = group_key unless group_key.nil?
|
|
940
|
-
command.params['memberKey'] = member_key unless member_key.nil?
|
|
941
979
|
command.query['fields'] = fields unless fields.nil?
|
|
942
980
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
943
981
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
944
982
|
execute_or_queue_command(command, &block)
|
|
945
983
|
end
|
|
946
984
|
|
|
947
|
-
# Update
|
|
985
|
+
# Update Group
|
|
948
986
|
# @param [String] group_key
|
|
949
987
|
# Email or immutable Id of the group. If Id, it should match with id of group
|
|
950
988
|
# object
|
|
989
|
+
# @param [Google::Apis::AdminDirectoryV1::Group] group_object
|
|
990
|
+
# @param [String] fields
|
|
991
|
+
# Selector specifying which fields to include in a partial response.
|
|
992
|
+
# @param [String] quota_user
|
|
993
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
994
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
995
|
+
# Overrides userIp if both are provided.
|
|
996
|
+
# @param [String] user_ip
|
|
997
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
998
|
+
# enforce per-user limits.
|
|
999
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1000
|
+
# Request-specific options
|
|
1001
|
+
#
|
|
1002
|
+
# @yield [result, err] Result & error if block supplied
|
|
1003
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Group] parsed result object
|
|
1004
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1005
|
+
#
|
|
1006
|
+
# @return [Google::Apis::AdminDirectoryV1::Group]
|
|
1007
|
+
#
|
|
1008
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1009
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1010
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1011
|
+
def update_group(group_key, group_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1012
|
+
command = make_simple_command(:put, 'groups/{groupKey}', options)
|
|
1013
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Group::Representation
|
|
1014
|
+
command.request_object = group_object
|
|
1015
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Group::Representation
|
|
1016
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Group
|
|
1017
|
+
command.params['groupKey'] = group_key unless group_key.nil?
|
|
1018
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1019
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1020
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1021
|
+
execute_or_queue_command(command, &block)
|
|
1022
|
+
end
|
|
1023
|
+
|
|
1024
|
+
# Remove a alias for the group
|
|
1025
|
+
# @param [String] group_key
|
|
1026
|
+
# Email or immutable Id of the group
|
|
1027
|
+
# @param [String] group_alias
|
|
1028
|
+
# The alias to be removed
|
|
1029
|
+
# @param [String] fields
|
|
1030
|
+
# Selector specifying which fields to include in a partial response.
|
|
1031
|
+
# @param [String] quota_user
|
|
1032
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1033
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1034
|
+
# Overrides userIp if both are provided.
|
|
1035
|
+
# @param [String] user_ip
|
|
1036
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1037
|
+
# enforce per-user limits.
|
|
1038
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1039
|
+
# Request-specific options
|
|
1040
|
+
#
|
|
1041
|
+
# @yield [result, err] Result & error if block supplied
|
|
1042
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1043
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1044
|
+
#
|
|
1045
|
+
# @return [void]
|
|
1046
|
+
#
|
|
1047
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1048
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1049
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1050
|
+
def delete_group_alias(group_key, group_alias, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1051
|
+
command = make_simple_command(:delete, 'groups/{groupKey}/aliases/{alias}', options)
|
|
1052
|
+
command.params['groupKey'] = group_key unless group_key.nil?
|
|
1053
|
+
command.params['alias'] = group_alias unless group_alias.nil?
|
|
1054
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1055
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1056
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1057
|
+
execute_or_queue_command(command, &block)
|
|
1058
|
+
end
|
|
1059
|
+
|
|
1060
|
+
# Add a alias for the group
|
|
1061
|
+
# @param [String] group_key
|
|
1062
|
+
# Email or immutable Id of the group
|
|
1063
|
+
# @param [Google::Apis::AdminDirectoryV1::Alias] alias_object
|
|
1064
|
+
# @param [String] fields
|
|
1065
|
+
# Selector specifying which fields to include in a partial response.
|
|
1066
|
+
# @param [String] quota_user
|
|
1067
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1068
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1069
|
+
# Overrides userIp if both are provided.
|
|
1070
|
+
# @param [String] user_ip
|
|
1071
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1072
|
+
# enforce per-user limits.
|
|
1073
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1074
|
+
# Request-specific options
|
|
1075
|
+
#
|
|
1076
|
+
# @yield [result, err] Result & error if block supplied
|
|
1077
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Alias] parsed result object
|
|
1078
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1079
|
+
#
|
|
1080
|
+
# @return [Google::Apis::AdminDirectoryV1::Alias]
|
|
1081
|
+
#
|
|
1082
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1083
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1084
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1085
|
+
def insert_group_alias(group_key, alias_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1086
|
+
command = make_simple_command(:post, 'groups/{groupKey}/aliases', options)
|
|
1087
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Alias::Representation
|
|
1088
|
+
command.request_object = alias_object
|
|
1089
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Alias::Representation
|
|
1090
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Alias
|
|
1091
|
+
command.params['groupKey'] = group_key unless group_key.nil?
|
|
1092
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1093
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1094
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1095
|
+
execute_or_queue_command(command, &block)
|
|
1096
|
+
end
|
|
1097
|
+
|
|
1098
|
+
# List all aliases for a group
|
|
1099
|
+
# @param [String] group_key
|
|
1100
|
+
# Email or immutable Id of the group
|
|
1101
|
+
# @param [String] fields
|
|
1102
|
+
# Selector specifying which fields to include in a partial response.
|
|
1103
|
+
# @param [String] quota_user
|
|
1104
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1105
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1106
|
+
# Overrides userIp if both are provided.
|
|
1107
|
+
# @param [String] user_ip
|
|
1108
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1109
|
+
# enforce per-user limits.
|
|
1110
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1111
|
+
# Request-specific options
|
|
1112
|
+
#
|
|
1113
|
+
# @yield [result, err] Result & error if block supplied
|
|
1114
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Aliases] parsed result object
|
|
1115
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1116
|
+
#
|
|
1117
|
+
# @return [Google::Apis::AdminDirectoryV1::Aliases]
|
|
1118
|
+
#
|
|
1119
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1120
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1121
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1122
|
+
def list_group_aliases(group_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1123
|
+
command = make_simple_command(:get, 'groups/{groupKey}/aliases', options)
|
|
1124
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Aliases::Representation
|
|
1125
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Aliases
|
|
1126
|
+
command.params['groupKey'] = group_key unless group_key.nil?
|
|
1127
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1128
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1129
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1130
|
+
execute_or_queue_command(command, &block)
|
|
1131
|
+
end
|
|
1132
|
+
|
|
1133
|
+
# Remove membership.
|
|
1134
|
+
# @param [String] group_key
|
|
1135
|
+
# Email or immutable Id of the group
|
|
951
1136
|
# @param [String] member_key
|
|
952
|
-
# Email or immutable Id of the
|
|
953
|
-
#
|
|
1137
|
+
# Email or immutable Id of the member
|
|
1138
|
+
# @param [String] fields
|
|
1139
|
+
# Selector specifying which fields to include in a partial response.
|
|
1140
|
+
# @param [String] quota_user
|
|
1141
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1142
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1143
|
+
# Overrides userIp if both are provided.
|
|
1144
|
+
# @param [String] user_ip
|
|
1145
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1146
|
+
# enforce per-user limits.
|
|
1147
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1148
|
+
# Request-specific options
|
|
1149
|
+
#
|
|
1150
|
+
# @yield [result, err] Result & error if block supplied
|
|
1151
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1152
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1153
|
+
#
|
|
1154
|
+
# @return [void]
|
|
1155
|
+
#
|
|
1156
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1157
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1158
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1159
|
+
def delete_member(group_key, member_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1160
|
+
command = make_simple_command(:delete, 'groups/{groupKey}/members/{memberKey}', options)
|
|
1161
|
+
command.params['groupKey'] = group_key unless group_key.nil?
|
|
1162
|
+
command.params['memberKey'] = member_key unless member_key.nil?
|
|
1163
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1164
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1165
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1166
|
+
execute_or_queue_command(command, &block)
|
|
1167
|
+
end
|
|
1168
|
+
|
|
1169
|
+
# Retrieve Group Member
|
|
1170
|
+
# @param [String] group_key
|
|
1171
|
+
# Email or immutable Id of the group
|
|
1172
|
+
# @param [String] member_key
|
|
1173
|
+
# Email or immutable Id of the member
|
|
1174
|
+
# @param [String] fields
|
|
1175
|
+
# Selector specifying which fields to include in a partial response.
|
|
1176
|
+
# @param [String] quota_user
|
|
1177
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1178
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1179
|
+
# Overrides userIp if both are provided.
|
|
1180
|
+
# @param [String] user_ip
|
|
1181
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1182
|
+
# enforce per-user limits.
|
|
1183
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1184
|
+
# Request-specific options
|
|
1185
|
+
#
|
|
1186
|
+
# @yield [result, err] Result & error if block supplied
|
|
1187
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Member] parsed result object
|
|
1188
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1189
|
+
#
|
|
1190
|
+
# @return [Google::Apis::AdminDirectoryV1::Member]
|
|
1191
|
+
#
|
|
1192
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1193
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1194
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1195
|
+
def get_member(group_key, member_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1196
|
+
command = make_simple_command(:get, 'groups/{groupKey}/members/{memberKey}', options)
|
|
1197
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Member::Representation
|
|
1198
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Member
|
|
1199
|
+
command.params['groupKey'] = group_key unless group_key.nil?
|
|
1200
|
+
command.params['memberKey'] = member_key unless member_key.nil?
|
|
1201
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1202
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1203
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1204
|
+
execute_or_queue_command(command, &block)
|
|
1205
|
+
end
|
|
1206
|
+
|
|
1207
|
+
# Add user to the specified group.
|
|
1208
|
+
# @param [String] group_key
|
|
1209
|
+
# Email or immutable Id of the group
|
|
954
1210
|
# @param [Google::Apis::AdminDirectoryV1::Member] member_object
|
|
955
1211
|
# @param [String] fields
|
|
956
1212
|
# Selector specifying which fields to include in a partial response.
|
|
@@ -965,35 +1221,845 @@ module Google
|
|
|
965
1221
|
# Request-specific options
|
|
966
1222
|
#
|
|
967
1223
|
# @yield [result, err] Result & error if block supplied
|
|
968
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::Member] parsed result object
|
|
1224
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Member] parsed result object
|
|
1225
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1226
|
+
#
|
|
1227
|
+
# @return [Google::Apis::AdminDirectoryV1::Member]
|
|
1228
|
+
#
|
|
1229
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1230
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1231
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1232
|
+
def insert_member(group_key, member_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1233
|
+
command = make_simple_command(:post, 'groups/{groupKey}/members', options)
|
|
1234
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Member::Representation
|
|
1235
|
+
command.request_object = member_object
|
|
1236
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Member::Representation
|
|
1237
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Member
|
|
1238
|
+
command.params['groupKey'] = group_key unless group_key.nil?
|
|
1239
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1240
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1241
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1242
|
+
execute_or_queue_command(command, &block)
|
|
1243
|
+
end
|
|
1244
|
+
|
|
1245
|
+
# Retrieve all members in a group (paginated)
|
|
1246
|
+
# @param [String] group_key
|
|
1247
|
+
# Email or immutable Id of the group
|
|
1248
|
+
# @param [Fixnum] max_results
|
|
1249
|
+
# Maximum number of results to return. Default is 200
|
|
1250
|
+
# @param [String] page_token
|
|
1251
|
+
# Token to specify next page in the list
|
|
1252
|
+
# @param [String] roles
|
|
1253
|
+
# Comma separated role values to filter list results on.
|
|
1254
|
+
# @param [String] fields
|
|
1255
|
+
# Selector specifying which fields to include in a partial response.
|
|
1256
|
+
# @param [String] quota_user
|
|
1257
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1258
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1259
|
+
# Overrides userIp if both are provided.
|
|
1260
|
+
# @param [String] user_ip
|
|
1261
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1262
|
+
# enforce per-user limits.
|
|
1263
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1264
|
+
# Request-specific options
|
|
1265
|
+
#
|
|
1266
|
+
# @yield [result, err] Result & error if block supplied
|
|
1267
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Members] parsed result object
|
|
1268
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1269
|
+
#
|
|
1270
|
+
# @return [Google::Apis::AdminDirectoryV1::Members]
|
|
1271
|
+
#
|
|
1272
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1273
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1274
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1275
|
+
def list_members(group_key, max_results: nil, page_token: nil, roles: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1276
|
+
command = make_simple_command(:get, 'groups/{groupKey}/members', options)
|
|
1277
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Members::Representation
|
|
1278
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Members
|
|
1279
|
+
command.params['groupKey'] = group_key unless group_key.nil?
|
|
1280
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1281
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1282
|
+
command.query['roles'] = roles unless roles.nil?
|
|
1283
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1284
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1285
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1286
|
+
execute_or_queue_command(command, &block)
|
|
1287
|
+
end
|
|
1288
|
+
|
|
1289
|
+
# Update membership of a user in the specified group. This method supports patch
|
|
1290
|
+
# semantics.
|
|
1291
|
+
# @param [String] group_key
|
|
1292
|
+
# Email or immutable Id of the group. If Id, it should match with id of group
|
|
1293
|
+
# object
|
|
1294
|
+
# @param [String] member_key
|
|
1295
|
+
# Email or immutable Id of the user. If Id, it should match with id of member
|
|
1296
|
+
# object
|
|
1297
|
+
# @param [Google::Apis::AdminDirectoryV1::Member] member_object
|
|
1298
|
+
# @param [String] fields
|
|
1299
|
+
# Selector specifying which fields to include in a partial response.
|
|
1300
|
+
# @param [String] quota_user
|
|
1301
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1302
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1303
|
+
# Overrides userIp if both are provided.
|
|
1304
|
+
# @param [String] user_ip
|
|
1305
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1306
|
+
# enforce per-user limits.
|
|
1307
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1308
|
+
# Request-specific options
|
|
1309
|
+
#
|
|
1310
|
+
# @yield [result, err] Result & error if block supplied
|
|
1311
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Member] parsed result object
|
|
1312
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1313
|
+
#
|
|
1314
|
+
# @return [Google::Apis::AdminDirectoryV1::Member]
|
|
1315
|
+
#
|
|
1316
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1317
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1318
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1319
|
+
def patch_member(group_key, member_key, member_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1320
|
+
command = make_simple_command(:patch, 'groups/{groupKey}/members/{memberKey}', options)
|
|
1321
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Member::Representation
|
|
1322
|
+
command.request_object = member_object
|
|
1323
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Member::Representation
|
|
1324
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Member
|
|
1325
|
+
command.params['groupKey'] = group_key unless group_key.nil?
|
|
1326
|
+
command.params['memberKey'] = member_key unless member_key.nil?
|
|
1327
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1328
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1329
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1330
|
+
execute_or_queue_command(command, &block)
|
|
1331
|
+
end
|
|
1332
|
+
|
|
1333
|
+
# Update membership of a user in the specified group.
|
|
1334
|
+
# @param [String] group_key
|
|
1335
|
+
# Email or immutable Id of the group. If Id, it should match with id of group
|
|
1336
|
+
# object
|
|
1337
|
+
# @param [String] member_key
|
|
1338
|
+
# Email or immutable Id of the user. If Id, it should match with id of member
|
|
1339
|
+
# object
|
|
1340
|
+
# @param [Google::Apis::AdminDirectoryV1::Member] member_object
|
|
1341
|
+
# @param [String] fields
|
|
1342
|
+
# Selector specifying which fields to include in a partial response.
|
|
1343
|
+
# @param [String] quota_user
|
|
1344
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1345
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1346
|
+
# Overrides userIp if both are provided.
|
|
1347
|
+
# @param [String] user_ip
|
|
1348
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1349
|
+
# enforce per-user limits.
|
|
1350
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1351
|
+
# Request-specific options
|
|
1352
|
+
#
|
|
1353
|
+
# @yield [result, err] Result & error if block supplied
|
|
1354
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Member] parsed result object
|
|
1355
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1356
|
+
#
|
|
1357
|
+
# @return [Google::Apis::AdminDirectoryV1::Member]
|
|
1358
|
+
#
|
|
1359
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1360
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1361
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1362
|
+
def update_member(group_key, member_key, member_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1363
|
+
command = make_simple_command(:put, 'groups/{groupKey}/members/{memberKey}', options)
|
|
1364
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Member::Representation
|
|
1365
|
+
command.request_object = member_object
|
|
1366
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Member::Representation
|
|
1367
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Member
|
|
1368
|
+
command.params['groupKey'] = group_key unless group_key.nil?
|
|
1369
|
+
command.params['memberKey'] = member_key unless member_key.nil?
|
|
1370
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1371
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1372
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1373
|
+
execute_or_queue_command(command, &block)
|
|
1374
|
+
end
|
|
1375
|
+
|
|
1376
|
+
# Take action on Mobile Device
|
|
1377
|
+
# @param [String] customer_id
|
|
1378
|
+
# Immutable id of the Google Apps account
|
|
1379
|
+
# @param [String] resource_id
|
|
1380
|
+
# Immutable id of Mobile Device
|
|
1381
|
+
# @param [Google::Apis::AdminDirectoryV1::MobileDeviceAction] mobile_device_action_object
|
|
1382
|
+
# @param [String] fields
|
|
1383
|
+
# Selector specifying which fields to include in a partial response.
|
|
1384
|
+
# @param [String] quota_user
|
|
1385
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1386
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1387
|
+
# Overrides userIp if both are provided.
|
|
1388
|
+
# @param [String] user_ip
|
|
1389
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1390
|
+
# enforce per-user limits.
|
|
1391
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1392
|
+
# Request-specific options
|
|
1393
|
+
#
|
|
1394
|
+
# @yield [result, err] Result & error if block supplied
|
|
1395
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1396
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1397
|
+
#
|
|
1398
|
+
# @return [void]
|
|
1399
|
+
#
|
|
1400
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1401
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1402
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1403
|
+
def action_mobile_device(customer_id, resource_id, mobile_device_action_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1404
|
+
command = make_simple_command(:post, 'customer/{customerId}/devices/mobile/{resourceId}/action', options)
|
|
1405
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::MobileDeviceAction::Representation
|
|
1406
|
+
command.request_object = mobile_device_action_object
|
|
1407
|
+
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
1408
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
|
1409
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1410
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1411
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1412
|
+
execute_or_queue_command(command, &block)
|
|
1413
|
+
end
|
|
1414
|
+
|
|
1415
|
+
# Delete Mobile Device
|
|
1416
|
+
# @param [String] customer_id
|
|
1417
|
+
# Immutable id of the Google Apps account
|
|
1418
|
+
# @param [String] resource_id
|
|
1419
|
+
# Immutable id of Mobile Device
|
|
1420
|
+
# @param [String] fields
|
|
1421
|
+
# Selector specifying which fields to include in a partial response.
|
|
1422
|
+
# @param [String] quota_user
|
|
1423
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1424
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1425
|
+
# Overrides userIp if both are provided.
|
|
1426
|
+
# @param [String] user_ip
|
|
1427
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1428
|
+
# enforce per-user limits.
|
|
1429
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1430
|
+
# Request-specific options
|
|
1431
|
+
#
|
|
1432
|
+
# @yield [result, err] Result & error if block supplied
|
|
1433
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1434
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1435
|
+
#
|
|
1436
|
+
# @return [void]
|
|
1437
|
+
#
|
|
1438
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1439
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1440
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1441
|
+
def delete_mobile_device(customer_id, resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1442
|
+
command = make_simple_command(:delete, 'customer/{customerId}/devices/mobile/{resourceId}', options)
|
|
1443
|
+
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
1444
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
|
1445
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1446
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1447
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1448
|
+
execute_or_queue_command(command, &block)
|
|
1449
|
+
end
|
|
1450
|
+
|
|
1451
|
+
# Retrieve Mobile Device
|
|
1452
|
+
# @param [String] customer_id
|
|
1453
|
+
# Immutable id of the Google Apps account
|
|
1454
|
+
# @param [String] resource_id
|
|
1455
|
+
# Immutable id of Mobile Device
|
|
1456
|
+
# @param [String] projection
|
|
1457
|
+
# Restrict information returned to a set of selected fields.
|
|
1458
|
+
# @param [String] fields
|
|
1459
|
+
# Selector specifying which fields to include in a partial response.
|
|
1460
|
+
# @param [String] quota_user
|
|
1461
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1462
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1463
|
+
# Overrides userIp if both are provided.
|
|
1464
|
+
# @param [String] user_ip
|
|
1465
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1466
|
+
# enforce per-user limits.
|
|
1467
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1468
|
+
# Request-specific options
|
|
1469
|
+
#
|
|
1470
|
+
# @yield [result, err] Result & error if block supplied
|
|
1471
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::MobileDevice] parsed result object
|
|
1472
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1473
|
+
#
|
|
1474
|
+
# @return [Google::Apis::AdminDirectoryV1::MobileDevice]
|
|
1475
|
+
#
|
|
1476
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1477
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1478
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1479
|
+
def get_mobile_device(customer_id, resource_id, projection: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1480
|
+
command = make_simple_command(:get, 'customer/{customerId}/devices/mobile/{resourceId}', options)
|
|
1481
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::MobileDevice::Representation
|
|
1482
|
+
command.response_class = Google::Apis::AdminDirectoryV1::MobileDevice
|
|
1483
|
+
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
1484
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
|
1485
|
+
command.query['projection'] = projection unless projection.nil?
|
|
1486
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1487
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1488
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1489
|
+
execute_or_queue_command(command, &block)
|
|
1490
|
+
end
|
|
1491
|
+
|
|
1492
|
+
# Retrieve all Mobile Devices of a customer (paginated)
|
|
1493
|
+
# @param [String] customer_id
|
|
1494
|
+
# Immutable id of the Google Apps account
|
|
1495
|
+
# @param [Fixnum] max_results
|
|
1496
|
+
# Maximum number of results to return. Default is 100
|
|
1497
|
+
# @param [String] order_by
|
|
1498
|
+
# Column to use for sorting results
|
|
1499
|
+
# @param [String] page_token
|
|
1500
|
+
# Token to specify next page in the list
|
|
1501
|
+
# @param [String] projection
|
|
1502
|
+
# Restrict information returned to a set of selected fields.
|
|
1503
|
+
# @param [String] query
|
|
1504
|
+
# Search string in the format given at http://support.google.com/a/bin/answer.py?
|
|
1505
|
+
# hl=en&answer=1408863#search
|
|
1506
|
+
# @param [String] sort_order
|
|
1507
|
+
# Whether to return results in ascending or descending order. Only of use when
|
|
1508
|
+
# orderBy is also used
|
|
1509
|
+
# @param [String] fields
|
|
1510
|
+
# Selector specifying which fields to include in a partial response.
|
|
1511
|
+
# @param [String] quota_user
|
|
1512
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1513
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1514
|
+
# Overrides userIp if both are provided.
|
|
1515
|
+
# @param [String] user_ip
|
|
1516
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1517
|
+
# enforce per-user limits.
|
|
1518
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1519
|
+
# Request-specific options
|
|
1520
|
+
#
|
|
1521
|
+
# @yield [result, err] Result & error if block supplied
|
|
1522
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::MobileDevices] parsed result object
|
|
1523
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1524
|
+
#
|
|
1525
|
+
# @return [Google::Apis::AdminDirectoryV1::MobileDevices]
|
|
1526
|
+
#
|
|
1527
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1528
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1529
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1530
|
+
def list_mobile_devices(customer_id, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, sort_order: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1531
|
+
command = make_simple_command(:get, 'customer/{customerId}/devices/mobile', options)
|
|
1532
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::MobileDevices::Representation
|
|
1533
|
+
command.response_class = Google::Apis::AdminDirectoryV1::MobileDevices
|
|
1534
|
+
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
1535
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1536
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
|
1537
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1538
|
+
command.query['projection'] = projection unless projection.nil?
|
|
1539
|
+
command.query['query'] = query unless query.nil?
|
|
1540
|
+
command.query['sortOrder'] = sort_order unless sort_order.nil?
|
|
1541
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1542
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1543
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1544
|
+
execute_or_queue_command(command, &block)
|
|
1545
|
+
end
|
|
1546
|
+
|
|
1547
|
+
# Deletes a notification
|
|
1548
|
+
# @param [String] customer
|
|
1549
|
+
# The unique ID for the customer's Google account. The customerId is also
|
|
1550
|
+
# returned as part of the Users resource.
|
|
1551
|
+
# @param [String] notification_id
|
|
1552
|
+
# The unique ID of the notification.
|
|
1553
|
+
# @param [String] fields
|
|
1554
|
+
# Selector specifying which fields to include in a partial response.
|
|
1555
|
+
# @param [String] quota_user
|
|
1556
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1557
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1558
|
+
# Overrides userIp if both are provided.
|
|
1559
|
+
# @param [String] user_ip
|
|
1560
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1561
|
+
# enforce per-user limits.
|
|
1562
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1563
|
+
# Request-specific options
|
|
1564
|
+
#
|
|
1565
|
+
# @yield [result, err] Result & error if block supplied
|
|
1566
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1567
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1568
|
+
#
|
|
1569
|
+
# @return [void]
|
|
1570
|
+
#
|
|
1571
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1572
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1573
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1574
|
+
def delete_notification(customer, notification_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1575
|
+
command = make_simple_command(:delete, 'customer/{customer}/notifications/{notificationId}', options)
|
|
1576
|
+
command.params['customer'] = customer unless customer.nil?
|
|
1577
|
+
command.params['notificationId'] = notification_id unless notification_id.nil?
|
|
1578
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1579
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1580
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1581
|
+
execute_or_queue_command(command, &block)
|
|
1582
|
+
end
|
|
1583
|
+
|
|
1584
|
+
# Retrieves a notification.
|
|
1585
|
+
# @param [String] customer
|
|
1586
|
+
# The unique ID for the customer's Google account. The customerId is also
|
|
1587
|
+
# returned as part of the Users resource.
|
|
1588
|
+
# @param [String] notification_id
|
|
1589
|
+
# The unique ID of the notification.
|
|
1590
|
+
# @param [String] fields
|
|
1591
|
+
# Selector specifying which fields to include in a partial response.
|
|
1592
|
+
# @param [String] quota_user
|
|
1593
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1594
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1595
|
+
# Overrides userIp if both are provided.
|
|
1596
|
+
# @param [String] user_ip
|
|
1597
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1598
|
+
# enforce per-user limits.
|
|
1599
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1600
|
+
# Request-specific options
|
|
1601
|
+
#
|
|
1602
|
+
# @yield [result, err] Result & error if block supplied
|
|
1603
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Notification] parsed result object
|
|
1604
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1605
|
+
#
|
|
1606
|
+
# @return [Google::Apis::AdminDirectoryV1::Notification]
|
|
1607
|
+
#
|
|
1608
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1609
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1610
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1611
|
+
def get_notification(customer, notification_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1612
|
+
command = make_simple_command(:get, 'customer/{customer}/notifications/{notificationId}', options)
|
|
1613
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Notification::Representation
|
|
1614
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Notification
|
|
1615
|
+
command.params['customer'] = customer unless customer.nil?
|
|
1616
|
+
command.params['notificationId'] = notification_id unless notification_id.nil?
|
|
1617
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1618
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1619
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1620
|
+
execute_or_queue_command(command, &block)
|
|
1621
|
+
end
|
|
1622
|
+
|
|
1623
|
+
# Retrieves a list of notifications.
|
|
1624
|
+
# @param [String] customer
|
|
1625
|
+
# The unique ID for the customer's Google account.
|
|
1626
|
+
# @param [String] language
|
|
1627
|
+
# The ISO 639-1 code of the language notifications are returned in. The default
|
|
1628
|
+
# is English (en).
|
|
1629
|
+
# @param [Fixnum] max_results
|
|
1630
|
+
# Maximum number of notifications to return per page. The default is 100.
|
|
1631
|
+
# @param [String] page_token
|
|
1632
|
+
# The token to specify the page of results to retrieve.
|
|
1633
|
+
# @param [String] fields
|
|
1634
|
+
# Selector specifying which fields to include in a partial response.
|
|
1635
|
+
# @param [String] quota_user
|
|
1636
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1637
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1638
|
+
# Overrides userIp if both are provided.
|
|
1639
|
+
# @param [String] user_ip
|
|
1640
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1641
|
+
# enforce per-user limits.
|
|
1642
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1643
|
+
# Request-specific options
|
|
1644
|
+
#
|
|
1645
|
+
# @yield [result, err] Result & error if block supplied
|
|
1646
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Notifications] parsed result object
|
|
1647
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1648
|
+
#
|
|
1649
|
+
# @return [Google::Apis::AdminDirectoryV1::Notifications]
|
|
1650
|
+
#
|
|
1651
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1652
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1653
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1654
|
+
def list_notifications(customer, language: nil, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1655
|
+
command = make_simple_command(:get, 'customer/{customer}/notifications', options)
|
|
1656
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Notifications::Representation
|
|
1657
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Notifications
|
|
1658
|
+
command.params['customer'] = customer unless customer.nil?
|
|
1659
|
+
command.query['language'] = language unless language.nil?
|
|
1660
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1661
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1662
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1663
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1664
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1665
|
+
execute_or_queue_command(command, &block)
|
|
1666
|
+
end
|
|
1667
|
+
|
|
1668
|
+
# Updates a notification. This method supports patch semantics.
|
|
1669
|
+
# @param [String] customer
|
|
1670
|
+
# The unique ID for the customer's Google account.
|
|
1671
|
+
# @param [String] notification_id
|
|
1672
|
+
# The unique ID of the notification.
|
|
1673
|
+
# @param [Google::Apis::AdminDirectoryV1::Notification] notification_object
|
|
1674
|
+
# @param [String] fields
|
|
1675
|
+
# Selector specifying which fields to include in a partial response.
|
|
1676
|
+
# @param [String] quota_user
|
|
1677
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1678
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1679
|
+
# Overrides userIp if both are provided.
|
|
1680
|
+
# @param [String] user_ip
|
|
1681
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1682
|
+
# enforce per-user limits.
|
|
1683
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1684
|
+
# Request-specific options
|
|
1685
|
+
#
|
|
1686
|
+
# @yield [result, err] Result & error if block supplied
|
|
1687
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Notification] parsed result object
|
|
1688
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1689
|
+
#
|
|
1690
|
+
# @return [Google::Apis::AdminDirectoryV1::Notification]
|
|
1691
|
+
#
|
|
1692
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1693
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1694
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1695
|
+
def patch_notification(customer, notification_id, notification_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1696
|
+
command = make_simple_command(:patch, 'customer/{customer}/notifications/{notificationId}', options)
|
|
1697
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Notification::Representation
|
|
1698
|
+
command.request_object = notification_object
|
|
1699
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Notification::Representation
|
|
1700
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Notification
|
|
1701
|
+
command.params['customer'] = customer unless customer.nil?
|
|
1702
|
+
command.params['notificationId'] = notification_id unless notification_id.nil?
|
|
1703
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1704
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1705
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1706
|
+
execute_or_queue_command(command, &block)
|
|
1707
|
+
end
|
|
1708
|
+
|
|
1709
|
+
# Updates a notification.
|
|
1710
|
+
# @param [String] customer
|
|
1711
|
+
# The unique ID for the customer's Google account.
|
|
1712
|
+
# @param [String] notification_id
|
|
1713
|
+
# The unique ID of the notification.
|
|
1714
|
+
# @param [Google::Apis::AdminDirectoryV1::Notification] notification_object
|
|
1715
|
+
# @param [String] fields
|
|
1716
|
+
# Selector specifying which fields to include in a partial response.
|
|
1717
|
+
# @param [String] quota_user
|
|
1718
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1719
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1720
|
+
# Overrides userIp if both are provided.
|
|
1721
|
+
# @param [String] user_ip
|
|
1722
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1723
|
+
# enforce per-user limits.
|
|
1724
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1725
|
+
# Request-specific options
|
|
1726
|
+
#
|
|
1727
|
+
# @yield [result, err] Result & error if block supplied
|
|
1728
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Notification] parsed result object
|
|
1729
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1730
|
+
#
|
|
1731
|
+
# @return [Google::Apis::AdminDirectoryV1::Notification]
|
|
1732
|
+
#
|
|
1733
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1734
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1735
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1736
|
+
def update_notification(customer, notification_id, notification_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1737
|
+
command = make_simple_command(:put, 'customer/{customer}/notifications/{notificationId}', options)
|
|
1738
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Notification::Representation
|
|
1739
|
+
command.request_object = notification_object
|
|
1740
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Notification::Representation
|
|
1741
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Notification
|
|
1742
|
+
command.params['customer'] = customer unless customer.nil?
|
|
1743
|
+
command.params['notificationId'] = notification_id unless notification_id.nil?
|
|
1744
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1745
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1746
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1747
|
+
execute_or_queue_command(command, &block)
|
|
1748
|
+
end
|
|
1749
|
+
|
|
1750
|
+
# Remove Organization Unit
|
|
1751
|
+
# @param [String] customer_id
|
|
1752
|
+
# Immutable id of the Google Apps account
|
|
1753
|
+
# @param [Array<String>, String] org_unit_path
|
|
1754
|
+
# Full path of the organization unit or its Id
|
|
1755
|
+
# @param [String] fields
|
|
1756
|
+
# Selector specifying which fields to include in a partial response.
|
|
1757
|
+
# @param [String] quota_user
|
|
1758
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1759
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1760
|
+
# Overrides userIp if both are provided.
|
|
1761
|
+
# @param [String] user_ip
|
|
1762
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1763
|
+
# enforce per-user limits.
|
|
1764
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1765
|
+
# Request-specific options
|
|
1766
|
+
#
|
|
1767
|
+
# @yield [result, err] Result & error if block supplied
|
|
1768
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1769
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1770
|
+
#
|
|
1771
|
+
# @return [void]
|
|
1772
|
+
#
|
|
1773
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1774
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1775
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1776
|
+
def delete_org_unit(customer_id, org_unit_path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1777
|
+
command = make_simple_command(:delete, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
|
|
1778
|
+
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
1779
|
+
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
|
1780
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1781
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1782
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1783
|
+
execute_or_queue_command(command, &block)
|
|
1784
|
+
end
|
|
1785
|
+
|
|
1786
|
+
# Retrieve Organization Unit
|
|
1787
|
+
# @param [String] customer_id
|
|
1788
|
+
# Immutable id of the Google Apps account
|
|
1789
|
+
# @param [Array<String>, String] org_unit_path
|
|
1790
|
+
# Full path of the organization unit or its Id
|
|
1791
|
+
# @param [String] fields
|
|
1792
|
+
# Selector specifying which fields to include in a partial response.
|
|
1793
|
+
# @param [String] quota_user
|
|
1794
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1795
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1796
|
+
# Overrides userIp if both are provided.
|
|
1797
|
+
# @param [String] user_ip
|
|
1798
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1799
|
+
# enforce per-user limits.
|
|
1800
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1801
|
+
# Request-specific options
|
|
1802
|
+
#
|
|
1803
|
+
# @yield [result, err] Result & error if block supplied
|
|
1804
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::OrgUnit] parsed result object
|
|
1805
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1806
|
+
#
|
|
1807
|
+
# @return [Google::Apis::AdminDirectoryV1::OrgUnit]
|
|
1808
|
+
#
|
|
1809
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1810
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1811
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1812
|
+
def get_org_unit(customer_id, org_unit_path, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1813
|
+
command = make_simple_command(:get, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
|
|
1814
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
|
|
1815
|
+
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnit
|
|
1816
|
+
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
1817
|
+
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
|
1818
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1819
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1820
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1821
|
+
execute_or_queue_command(command, &block)
|
|
1822
|
+
end
|
|
1823
|
+
|
|
1824
|
+
# Add Organization Unit
|
|
1825
|
+
# @param [String] customer_id
|
|
1826
|
+
# Immutable id of the Google Apps account
|
|
1827
|
+
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
|
|
1828
|
+
# @param [String] fields
|
|
1829
|
+
# Selector specifying which fields to include in a partial response.
|
|
1830
|
+
# @param [String] quota_user
|
|
1831
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1832
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1833
|
+
# Overrides userIp if both are provided.
|
|
1834
|
+
# @param [String] user_ip
|
|
1835
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1836
|
+
# enforce per-user limits.
|
|
1837
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1838
|
+
# Request-specific options
|
|
1839
|
+
#
|
|
1840
|
+
# @yield [result, err] Result & error if block supplied
|
|
1841
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::OrgUnit] parsed result object
|
|
1842
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1843
|
+
#
|
|
1844
|
+
# @return [Google::Apis::AdminDirectoryV1::OrgUnit]
|
|
1845
|
+
#
|
|
1846
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1847
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1848
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1849
|
+
def insert_org_unit(customer_id, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1850
|
+
command = make_simple_command(:post, 'customer/{customerId}/orgunits', options)
|
|
1851
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
|
|
1852
|
+
command.request_object = org_unit_object
|
|
1853
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
|
|
1854
|
+
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnit
|
|
1855
|
+
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
1856
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1857
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1858
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1859
|
+
execute_or_queue_command(command, &block)
|
|
1860
|
+
end
|
|
1861
|
+
|
|
1862
|
+
# Retrieve all Organization Units
|
|
1863
|
+
# @param [String] customer_id
|
|
1864
|
+
# Immutable id of the Google Apps account
|
|
1865
|
+
# @param [String] org_unit_path
|
|
1866
|
+
# the URL-encoded organization unit's path or its Id
|
|
1867
|
+
# @param [String] type
|
|
1868
|
+
# Whether to return all sub-organizations or just immediate children
|
|
1869
|
+
# @param [String] fields
|
|
1870
|
+
# Selector specifying which fields to include in a partial response.
|
|
1871
|
+
# @param [String] quota_user
|
|
1872
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1873
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1874
|
+
# Overrides userIp if both are provided.
|
|
1875
|
+
# @param [String] user_ip
|
|
1876
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1877
|
+
# enforce per-user limits.
|
|
1878
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1879
|
+
# Request-specific options
|
|
1880
|
+
#
|
|
1881
|
+
# @yield [result, err] Result & error if block supplied
|
|
1882
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::OrgUnits] parsed result object
|
|
1883
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1884
|
+
#
|
|
1885
|
+
# @return [Google::Apis::AdminDirectoryV1::OrgUnits]
|
|
1886
|
+
#
|
|
1887
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1888
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1889
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1890
|
+
def list_org_units(customer_id, org_unit_path: nil, type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1891
|
+
command = make_simple_command(:get, 'customer/{customerId}/orgunits', options)
|
|
1892
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnits::Representation
|
|
1893
|
+
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnits
|
|
1894
|
+
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
1895
|
+
command.query['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
|
1896
|
+
command.query['type'] = type unless type.nil?
|
|
1897
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1898
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1899
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1900
|
+
execute_or_queue_command(command, &block)
|
|
1901
|
+
end
|
|
1902
|
+
|
|
1903
|
+
# Update Organization Unit. This method supports patch semantics.
|
|
1904
|
+
# @param [String] customer_id
|
|
1905
|
+
# Immutable id of the Google Apps account
|
|
1906
|
+
# @param [Array<String>, String] org_unit_path
|
|
1907
|
+
# Full path of the organization unit or its Id
|
|
1908
|
+
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
|
|
1909
|
+
# @param [String] fields
|
|
1910
|
+
# Selector specifying which fields to include in a partial response.
|
|
1911
|
+
# @param [String] quota_user
|
|
1912
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1913
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1914
|
+
# Overrides userIp if both are provided.
|
|
1915
|
+
# @param [String] user_ip
|
|
1916
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1917
|
+
# enforce per-user limits.
|
|
1918
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1919
|
+
# Request-specific options
|
|
1920
|
+
#
|
|
1921
|
+
# @yield [result, err] Result & error if block supplied
|
|
1922
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::OrgUnit] parsed result object
|
|
1923
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1924
|
+
#
|
|
1925
|
+
# @return [Google::Apis::AdminDirectoryV1::OrgUnit]
|
|
1926
|
+
#
|
|
1927
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1928
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1929
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1930
|
+
def patch_org_unit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1931
|
+
command = make_simple_command(:patch, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
|
|
1932
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
|
|
1933
|
+
command.request_object = org_unit_object
|
|
1934
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
|
|
1935
|
+
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnit
|
|
1936
|
+
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
1937
|
+
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
|
1938
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1939
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1940
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1941
|
+
execute_or_queue_command(command, &block)
|
|
1942
|
+
end
|
|
1943
|
+
|
|
1944
|
+
# Update Organization Unit
|
|
1945
|
+
# @param [String] customer_id
|
|
1946
|
+
# Immutable id of the Google Apps account
|
|
1947
|
+
# @param [Array<String>, String] org_unit_path
|
|
1948
|
+
# Full path of the organization unit or its Id
|
|
1949
|
+
# @param [Google::Apis::AdminDirectoryV1::OrgUnit] org_unit_object
|
|
1950
|
+
# @param [String] fields
|
|
1951
|
+
# Selector specifying which fields to include in a partial response.
|
|
1952
|
+
# @param [String] quota_user
|
|
1953
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1954
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1955
|
+
# Overrides userIp if both are provided.
|
|
1956
|
+
# @param [String] user_ip
|
|
1957
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1958
|
+
# enforce per-user limits.
|
|
1959
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1960
|
+
# Request-specific options
|
|
1961
|
+
#
|
|
1962
|
+
# @yield [result, err] Result & error if block supplied
|
|
1963
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::OrgUnit] parsed result object
|
|
1964
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
1965
|
+
#
|
|
1966
|
+
# @return [Google::Apis::AdminDirectoryV1::OrgUnit]
|
|
1967
|
+
#
|
|
1968
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1969
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1970
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1971
|
+
def update_org_unit(customer_id, org_unit_path, org_unit_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1972
|
+
command = make_simple_command(:put, 'customer/{customerId}/orgunits{/orgUnitPath*}', options)
|
|
1973
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
|
|
1974
|
+
command.request_object = org_unit_object
|
|
1975
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::OrgUnit::Representation
|
|
1976
|
+
command.response_class = Google::Apis::AdminDirectoryV1::OrgUnit
|
|
1977
|
+
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
1978
|
+
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
|
1979
|
+
command.query['fields'] = fields unless fields.nil?
|
|
1980
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1981
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1982
|
+
execute_or_queue_command(command, &block)
|
|
1983
|
+
end
|
|
1984
|
+
|
|
1985
|
+
# Retrieves a paginated list of all privileges for a customer.
|
|
1986
|
+
# @param [String] customer
|
|
1987
|
+
# Immutable ID of the Google Apps account.
|
|
1988
|
+
# @param [String] fields
|
|
1989
|
+
# Selector specifying which fields to include in a partial response.
|
|
1990
|
+
# @param [String] quota_user
|
|
1991
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
1992
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
1993
|
+
# Overrides userIp if both are provided.
|
|
1994
|
+
# @param [String] user_ip
|
|
1995
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
1996
|
+
# enforce per-user limits.
|
|
1997
|
+
# @param [Google::Apis::RequestOptions] options
|
|
1998
|
+
# Request-specific options
|
|
1999
|
+
#
|
|
2000
|
+
# @yield [result, err] Result & error if block supplied
|
|
2001
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Privileges] parsed result object
|
|
2002
|
+
# @yieldparam err [StandardError] error object if request failed
|
|
2003
|
+
#
|
|
2004
|
+
# @return [Google::Apis::AdminDirectoryV1::Privileges]
|
|
2005
|
+
#
|
|
2006
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2007
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2008
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2009
|
+
def list_privileges(customer, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2010
|
+
command = make_simple_command(:get, 'customer/{customer}/roles/ALL/privileges', options)
|
|
2011
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Privileges::Representation
|
|
2012
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Privileges
|
|
2013
|
+
command.params['customer'] = customer unless customer.nil?
|
|
2014
|
+
command.query['fields'] = fields unless fields.nil?
|
|
2015
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
2016
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
2017
|
+
execute_or_queue_command(command, &block)
|
|
2018
|
+
end
|
|
2019
|
+
|
|
2020
|
+
# Deletes a calendar resource.
|
|
2021
|
+
# @param [String] customer
|
|
2022
|
+
# The unique ID for the customer's Google account. As an account administrator,
|
|
2023
|
+
# you can also use the my_customer alias to represent your account's customer ID.
|
|
2024
|
+
# @param [String] calendar_resource_id
|
|
2025
|
+
# The unique ID of the calendar resource to delete.
|
|
2026
|
+
# @param [String] fields
|
|
2027
|
+
# Selector specifying which fields to include in a partial response.
|
|
2028
|
+
# @param [String] quota_user
|
|
2029
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
|
2030
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
|
2031
|
+
# Overrides userIp if both are provided.
|
|
2032
|
+
# @param [String] user_ip
|
|
2033
|
+
# IP address of the site where the request originates. Use this if you want to
|
|
2034
|
+
# enforce per-user limits.
|
|
2035
|
+
# @param [Google::Apis::RequestOptions] options
|
|
2036
|
+
# Request-specific options
|
|
2037
|
+
#
|
|
2038
|
+
# @yield [result, err] Result & error if block supplied
|
|
2039
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
969
2040
|
# @yieldparam err [StandardError] error object if request failed
|
|
970
2041
|
#
|
|
971
|
-
# @return [
|
|
2042
|
+
# @return [void]
|
|
972
2043
|
#
|
|
973
2044
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
974
2045
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
975
2046
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
976
|
-
def
|
|
977
|
-
|
|
978
|
-
command =
|
|
979
|
-
command.
|
|
980
|
-
command.request_object = member_object
|
|
981
|
-
command.response_representation = Google::Apis::AdminDirectoryV1::Member::Representation
|
|
982
|
-
command.response_class = Google::Apis::AdminDirectoryV1::Member
|
|
983
|
-
command.params['groupKey'] = group_key unless group_key.nil?
|
|
984
|
-
command.params['memberKey'] = member_key unless member_key.nil?
|
|
2047
|
+
def delete_calendar_resource(customer, calendar_resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2048
|
+
command = make_simple_command(:delete, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
|
|
2049
|
+
command.params['customer'] = customer unless customer.nil?
|
|
2050
|
+
command.params['calendarResourceId'] = calendar_resource_id unless calendar_resource_id.nil?
|
|
985
2051
|
command.query['fields'] = fields unless fields.nil?
|
|
986
2052
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
987
2053
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
988
2054
|
execute_or_queue_command(command, &block)
|
|
989
2055
|
end
|
|
990
2056
|
|
|
991
|
-
#
|
|
992
|
-
# @param [String]
|
|
993
|
-
#
|
|
994
|
-
#
|
|
995
|
-
#
|
|
996
|
-
#
|
|
2057
|
+
# Retrieves a calendar resource.
|
|
2058
|
+
# @param [String] customer
|
|
2059
|
+
# The unique ID for the customer's Google account. As an account administrator,
|
|
2060
|
+
# you can also use the my_customer alias to represent your account's customer ID.
|
|
2061
|
+
# @param [String] calendar_resource_id
|
|
2062
|
+
# The unique ID of the calendar resource to retrieve.
|
|
997
2063
|
# @param [String] fields
|
|
998
2064
|
# Selector specifying which fields to include in a partial response.
|
|
999
2065
|
# @param [String] quota_user
|
|
@@ -1007,32 +2073,31 @@ module Google
|
|
|
1007
2073
|
# Request-specific options
|
|
1008
2074
|
#
|
|
1009
2075
|
# @yield [result, err] Result & error if block supplied
|
|
1010
|
-
# @yieldparam result [
|
|
2076
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::CalendarResource] parsed result object
|
|
1011
2077
|
# @yieldparam err [StandardError] error object if request failed
|
|
1012
2078
|
#
|
|
1013
|
-
# @return [
|
|
2079
|
+
# @return [Google::Apis::AdminDirectoryV1::CalendarResource]
|
|
1014
2080
|
#
|
|
1015
2081
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1016
2082
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1017
2083
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1018
|
-
def
|
|
1019
|
-
|
|
1020
|
-
command =
|
|
1021
|
-
command.
|
|
1022
|
-
command.
|
|
1023
|
-
command.params['
|
|
1024
|
-
command.params['resourceId'] = resource_id unless resource_id.nil?
|
|
2084
|
+
def get_calendar_resource(customer, calendar_resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2085
|
+
command = make_simple_command(:get, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
|
|
2086
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
|
|
2087
|
+
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResource
|
|
2088
|
+
command.params['customer'] = customer unless customer.nil?
|
|
2089
|
+
command.params['calendarResourceId'] = calendar_resource_id unless calendar_resource_id.nil?
|
|
1025
2090
|
command.query['fields'] = fields unless fields.nil?
|
|
1026
2091
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1027
2092
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1028
2093
|
execute_or_queue_command(command, &block)
|
|
1029
2094
|
end
|
|
1030
2095
|
|
|
1031
|
-
#
|
|
1032
|
-
# @param [String]
|
|
1033
|
-
#
|
|
1034
|
-
#
|
|
1035
|
-
#
|
|
2096
|
+
# Inserts a calendar resource.
|
|
2097
|
+
# @param [String] customer
|
|
2098
|
+
# The unique ID for the customer's Google account. As an account administrator,
|
|
2099
|
+
# you can also use the my_customer alias to represent your account's customer ID.
|
|
2100
|
+
# @param [Google::Apis::AdminDirectoryV1::CalendarResource] calendar_resource_object
|
|
1036
2101
|
# @param [String] fields
|
|
1037
2102
|
# Selector specifying which fields to include in a partial response.
|
|
1038
2103
|
# @param [String] quota_user
|
|
@@ -1046,32 +2111,35 @@ module Google
|
|
|
1046
2111
|
# Request-specific options
|
|
1047
2112
|
#
|
|
1048
2113
|
# @yield [result, err] Result & error if block supplied
|
|
1049
|
-
# @yieldparam result [
|
|
2114
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::CalendarResource] parsed result object
|
|
1050
2115
|
# @yieldparam err [StandardError] error object if request failed
|
|
1051
2116
|
#
|
|
1052
|
-
# @return [
|
|
2117
|
+
# @return [Google::Apis::AdminDirectoryV1::CalendarResource]
|
|
1053
2118
|
#
|
|
1054
2119
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1055
2120
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1056
2121
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1057
|
-
def
|
|
1058
|
-
|
|
1059
|
-
command =
|
|
1060
|
-
command.
|
|
1061
|
-
command.
|
|
2122
|
+
def calendar_resource(customer, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2123
|
+
command = make_simple_command(:post, 'customer/{customer}/resources/calendars', options)
|
|
2124
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
|
|
2125
|
+
command.request_object = calendar_resource_object
|
|
2126
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
|
|
2127
|
+
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResource
|
|
2128
|
+
command.params['customer'] = customer unless customer.nil?
|
|
1062
2129
|
command.query['fields'] = fields unless fields.nil?
|
|
1063
2130
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1064
2131
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1065
2132
|
execute_or_queue_command(command, &block)
|
|
1066
2133
|
end
|
|
1067
2134
|
|
|
1068
|
-
#
|
|
1069
|
-
# @param [String]
|
|
1070
|
-
#
|
|
1071
|
-
#
|
|
1072
|
-
#
|
|
1073
|
-
#
|
|
1074
|
-
#
|
|
2135
|
+
# Retrieves a list of calendar resources for an account.
|
|
2136
|
+
# @param [String] customer
|
|
2137
|
+
# The unique ID for the customer's Google account. As an account administrator,
|
|
2138
|
+
# you can also use the my_customer alias to represent your account's customer ID.
|
|
2139
|
+
# @param [Fixnum] max_results
|
|
2140
|
+
# Maximum number of results to return.
|
|
2141
|
+
# @param [String] page_token
|
|
2142
|
+
# Token to specify the next page in the list.
|
|
1075
2143
|
# @param [String] fields
|
|
1076
2144
|
# Selector specifying which fields to include in a partial response.
|
|
1077
2145
|
# @param [String] quota_user
|
|
@@ -1085,45 +2153,34 @@ module Google
|
|
|
1085
2153
|
# Request-specific options
|
|
1086
2154
|
#
|
|
1087
2155
|
# @yield [result, err] Result & error if block supplied
|
|
1088
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
2156
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::CalendarResources] parsed result object
|
|
1089
2157
|
# @yieldparam err [StandardError] error object if request failed
|
|
1090
2158
|
#
|
|
1091
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
2159
|
+
# @return [Google::Apis::AdminDirectoryV1::CalendarResources]
|
|
1092
2160
|
#
|
|
1093
2161
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1094
2162
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1095
2163
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1096
|
-
def
|
|
1097
|
-
|
|
1098
|
-
command =
|
|
1099
|
-
command.
|
|
1100
|
-
command.
|
|
1101
|
-
command.
|
|
1102
|
-
command.
|
|
1103
|
-
command.query['projection'] = projection unless projection.nil?
|
|
2164
|
+
def list_calendar_resources(customer, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2165
|
+
command = make_simple_command(:get, 'customer/{customer}/resources/calendars', options)
|
|
2166
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResources::Representation
|
|
2167
|
+
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResources
|
|
2168
|
+
command.params['customer'] = customer unless customer.nil?
|
|
2169
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
2170
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1104
2171
|
command.query['fields'] = fields unless fields.nil?
|
|
1105
2172
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1106
2173
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1107
2174
|
execute_or_queue_command(command, &block)
|
|
1108
2175
|
end
|
|
1109
2176
|
|
|
1110
|
-
#
|
|
1111
|
-
# @param [String]
|
|
1112
|
-
#
|
|
1113
|
-
#
|
|
1114
|
-
#
|
|
1115
|
-
#
|
|
1116
|
-
#
|
|
1117
|
-
# @param [String] page_token
|
|
1118
|
-
# Token to specify next page in the list
|
|
1119
|
-
# @param [String] projection
|
|
1120
|
-
# Restrict information returned to a set of selected fields.
|
|
1121
|
-
# @param [String] query
|
|
1122
|
-
# Search string in the format given at http://support.google.com/a/bin/answer.py?
|
|
1123
|
-
# hl=en&answer=1408863#search
|
|
1124
|
-
# @param [String] sort_order
|
|
1125
|
-
# Whether to return results in ascending or descending order. Only of use when
|
|
1126
|
-
# orderBy is also used
|
|
2177
|
+
# Updates a calendar resource. This method supports patch semantics.
|
|
2178
|
+
# @param [String] customer
|
|
2179
|
+
# The unique ID for the customer's Google account. As an account administrator,
|
|
2180
|
+
# you can also use the my_customer alias to represent your account's customer ID.
|
|
2181
|
+
# @param [String] calendar_resource_id
|
|
2182
|
+
# The unique ID of the calendar resource to update.
|
|
2183
|
+
# @param [Google::Apis::AdminDirectoryV1::CalendarResource] calendar_resource_object
|
|
1127
2184
|
# @param [String] fields
|
|
1128
2185
|
# Selector specifying which fields to include in a partial response.
|
|
1129
2186
|
# @param [String] quota_user
|
|
@@ -1137,38 +2194,35 @@ module Google
|
|
|
1137
2194
|
# Request-specific options
|
|
1138
2195
|
#
|
|
1139
2196
|
# @yield [result, err] Result & error if block supplied
|
|
1140
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
2197
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::CalendarResource] parsed result object
|
|
1141
2198
|
# @yieldparam err [StandardError] error object if request failed
|
|
1142
2199
|
#
|
|
1143
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
2200
|
+
# @return [Google::Apis::AdminDirectoryV1::CalendarResource]
|
|
1144
2201
|
#
|
|
1145
2202
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1146
2203
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1147
2204
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1148
|
-
def
|
|
1149
|
-
|
|
1150
|
-
command =
|
|
1151
|
-
command.
|
|
1152
|
-
command.
|
|
1153
|
-
command.
|
|
1154
|
-
command.
|
|
1155
|
-
command.
|
|
1156
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1157
|
-
command.query['projection'] = projection unless projection.nil?
|
|
1158
|
-
command.query['query'] = query unless query.nil?
|
|
1159
|
-
command.query['sortOrder'] = sort_order unless sort_order.nil?
|
|
2205
|
+
def patch_calendar_resource(customer, calendar_resource_id, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2206
|
+
command = make_simple_command(:patch, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
|
|
2207
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
|
|
2208
|
+
command.request_object = calendar_resource_object
|
|
2209
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
|
|
2210
|
+
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResource
|
|
2211
|
+
command.params['customer'] = customer unless customer.nil?
|
|
2212
|
+
command.params['calendarResourceId'] = calendar_resource_id unless calendar_resource_id.nil?
|
|
1160
2213
|
command.query['fields'] = fields unless fields.nil?
|
|
1161
2214
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1162
2215
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1163
2216
|
execute_or_queue_command(command, &block)
|
|
1164
2217
|
end
|
|
1165
2218
|
|
|
1166
|
-
#
|
|
2219
|
+
# Updates a calendar resource.
|
|
1167
2220
|
# @param [String] customer
|
|
1168
|
-
# The unique ID for the customer's Google account.
|
|
1169
|
-
#
|
|
1170
|
-
# @param [String]
|
|
1171
|
-
# The unique ID of the
|
|
2221
|
+
# The unique ID for the customer's Google account. As an account administrator,
|
|
2222
|
+
# you can also use the my_customer alias to represent your account's customer ID.
|
|
2223
|
+
# @param [String] calendar_resource_id
|
|
2224
|
+
# The unique ID of the calendar resource to update.
|
|
2225
|
+
# @param [Google::Apis::AdminDirectoryV1::CalendarResource] calendar_resource_object
|
|
1172
2226
|
# @param [String] fields
|
|
1173
2227
|
# Selector specifying which fields to include in a partial response.
|
|
1174
2228
|
# @param [String] quota_user
|
|
@@ -1182,31 +2236,33 @@ module Google
|
|
|
1182
2236
|
# Request-specific options
|
|
1183
2237
|
#
|
|
1184
2238
|
# @yield [result, err] Result & error if block supplied
|
|
1185
|
-
# @yieldparam result [
|
|
2239
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::CalendarResource] parsed result object
|
|
1186
2240
|
# @yieldparam err [StandardError] error object if request failed
|
|
1187
2241
|
#
|
|
1188
|
-
# @return [
|
|
2242
|
+
# @return [Google::Apis::AdminDirectoryV1::CalendarResource]
|
|
1189
2243
|
#
|
|
1190
2244
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1191
2245
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1192
2246
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1193
|
-
def
|
|
1194
|
-
|
|
1195
|
-
command =
|
|
2247
|
+
def update_calendar_resource(customer, calendar_resource_id, calendar_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2248
|
+
command = make_simple_command(:put, 'customer/{customer}/resources/calendars/{calendarResourceId}', options)
|
|
2249
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
|
|
2250
|
+
command.request_object = calendar_resource_object
|
|
2251
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::CalendarResource::Representation
|
|
2252
|
+
command.response_class = Google::Apis::AdminDirectoryV1::CalendarResource
|
|
1196
2253
|
command.params['customer'] = customer unless customer.nil?
|
|
1197
|
-
command.params['
|
|
2254
|
+
command.params['calendarResourceId'] = calendar_resource_id unless calendar_resource_id.nil?
|
|
1198
2255
|
command.query['fields'] = fields unless fields.nil?
|
|
1199
2256
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1200
2257
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1201
2258
|
execute_or_queue_command(command, &block)
|
|
1202
2259
|
end
|
|
1203
2260
|
|
|
1204
|
-
#
|
|
2261
|
+
# Deletes a role assignment.
|
|
1205
2262
|
# @param [String] customer
|
|
1206
|
-
#
|
|
1207
|
-
#
|
|
1208
|
-
#
|
|
1209
|
-
# The unique ID of the notification.
|
|
2263
|
+
# Immutable ID of the Google Apps account.
|
|
2264
|
+
# @param [String] role_assignment_id
|
|
2265
|
+
# Immutable ID of the role assignment.
|
|
1210
2266
|
# @param [String] fields
|
|
1211
2267
|
# Selector specifying which fields to include in a partial response.
|
|
1212
2268
|
# @param [String] quota_user
|
|
@@ -1220,37 +2276,29 @@ module Google
|
|
|
1220
2276
|
# Request-specific options
|
|
1221
2277
|
#
|
|
1222
2278
|
# @yield [result, err] Result & error if block supplied
|
|
1223
|
-
# @yieldparam result [
|
|
2279
|
+
# @yieldparam result [NilClass] No result returned for this method
|
|
1224
2280
|
# @yieldparam err [StandardError] error object if request failed
|
|
1225
2281
|
#
|
|
1226
|
-
# @return [
|
|
2282
|
+
# @return [void]
|
|
1227
2283
|
#
|
|
1228
2284
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1229
2285
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1230
2286
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1231
|
-
def
|
|
1232
|
-
|
|
1233
|
-
command = make_simple_command(:get, path, options)
|
|
1234
|
-
command.response_representation = Google::Apis::AdminDirectoryV1::Notification::Representation
|
|
1235
|
-
command.response_class = Google::Apis::AdminDirectoryV1::Notification
|
|
2287
|
+
def delete_role_assignment(customer, role_assignment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2288
|
+
command = make_simple_command(:delete, 'customer/{customer}/roleassignments/{roleAssignmentId}', options)
|
|
1236
2289
|
command.params['customer'] = customer unless customer.nil?
|
|
1237
|
-
command.params['
|
|
2290
|
+
command.params['roleAssignmentId'] = role_assignment_id unless role_assignment_id.nil?
|
|
1238
2291
|
command.query['fields'] = fields unless fields.nil?
|
|
1239
2292
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1240
2293
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1241
2294
|
execute_or_queue_command(command, &block)
|
|
1242
2295
|
end
|
|
1243
2296
|
|
|
1244
|
-
#
|
|
2297
|
+
# Retrieve a role assignment.
|
|
1245
2298
|
# @param [String] customer
|
|
1246
|
-
#
|
|
1247
|
-
# @param [String]
|
|
1248
|
-
#
|
|
1249
|
-
# is English (en).
|
|
1250
|
-
# @param [Fixnum] max_results
|
|
1251
|
-
# Maximum number of notifications to return per page. The default is 100.
|
|
1252
|
-
# @param [String] page_token
|
|
1253
|
-
# The token to specify the page of results to retrieve.
|
|
2299
|
+
# Immutable ID of the Google Apps account.
|
|
2300
|
+
# @param [String] role_assignment_id
|
|
2301
|
+
# Immutable ID of the role assignment.
|
|
1254
2302
|
# @param [String] fields
|
|
1255
2303
|
# Selector specifying which fields to include in a partial response.
|
|
1256
2304
|
# @param [String] quota_user
|
|
@@ -1264,35 +2312,30 @@ module Google
|
|
|
1264
2312
|
# Request-specific options
|
|
1265
2313
|
#
|
|
1266
2314
|
# @yield [result, err] Result & error if block supplied
|
|
1267
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
2315
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::RoleAssignment] parsed result object
|
|
1268
2316
|
# @yieldparam err [StandardError] error object if request failed
|
|
1269
2317
|
#
|
|
1270
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
2318
|
+
# @return [Google::Apis::AdminDirectoryV1::RoleAssignment]
|
|
1271
2319
|
#
|
|
1272
2320
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1273
2321
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1274
2322
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1275
|
-
def
|
|
1276
|
-
|
|
1277
|
-
command =
|
|
1278
|
-
command.
|
|
1279
|
-
command.response_class = Google::Apis::AdminDirectoryV1::Notifications
|
|
2323
|
+
def get_role_assignment(customer, role_assignment_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2324
|
+
command = make_simple_command(:get, 'customer/{customer}/roleassignments/{roleAssignmentId}', options)
|
|
2325
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::RoleAssignment::Representation
|
|
2326
|
+
command.response_class = Google::Apis::AdminDirectoryV1::RoleAssignment
|
|
1280
2327
|
command.params['customer'] = customer unless customer.nil?
|
|
1281
|
-
command.
|
|
1282
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
|
1283
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2328
|
+
command.params['roleAssignmentId'] = role_assignment_id unless role_assignment_id.nil?
|
|
1284
2329
|
command.query['fields'] = fields unless fields.nil?
|
|
1285
2330
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1286
2331
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1287
2332
|
execute_or_queue_command(command, &block)
|
|
1288
2333
|
end
|
|
1289
2334
|
|
|
1290
|
-
#
|
|
2335
|
+
# Creates a role assignment.
|
|
1291
2336
|
# @param [String] customer
|
|
1292
|
-
#
|
|
1293
|
-
# @param [
|
|
1294
|
-
# The unique ID of the notification.
|
|
1295
|
-
# @param [Google::Apis::AdminDirectoryV1::Notification] notification_object
|
|
2337
|
+
# Immutable ID of the Google Apps account.
|
|
2338
|
+
# @param [Google::Apis::AdminDirectoryV1::RoleAssignment] role_assignment_object
|
|
1296
2339
|
# @param [String] fields
|
|
1297
2340
|
# Selector specifying which fields to include in a partial response.
|
|
1298
2341
|
# @param [String] quota_user
|
|
@@ -1306,35 +2349,40 @@ module Google
|
|
|
1306
2349
|
# Request-specific options
|
|
1307
2350
|
#
|
|
1308
2351
|
# @yield [result, err] Result & error if block supplied
|
|
1309
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
2352
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::RoleAssignment] parsed result object
|
|
1310
2353
|
# @yieldparam err [StandardError] error object if request failed
|
|
1311
2354
|
#
|
|
1312
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
2355
|
+
# @return [Google::Apis::AdminDirectoryV1::RoleAssignment]
|
|
1313
2356
|
#
|
|
1314
2357
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1315
2358
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1316
2359
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1317
|
-
def
|
|
1318
|
-
|
|
1319
|
-
command =
|
|
1320
|
-
command.
|
|
1321
|
-
command.
|
|
1322
|
-
command.
|
|
1323
|
-
command.response_class = Google::Apis::AdminDirectoryV1::Notification
|
|
2360
|
+
def insert_role_assignment(customer, role_assignment_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2361
|
+
command = make_simple_command(:post, 'customer/{customer}/roleassignments', options)
|
|
2362
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::RoleAssignment::Representation
|
|
2363
|
+
command.request_object = role_assignment_object
|
|
2364
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::RoleAssignment::Representation
|
|
2365
|
+
command.response_class = Google::Apis::AdminDirectoryV1::RoleAssignment
|
|
1324
2366
|
command.params['customer'] = customer unless customer.nil?
|
|
1325
|
-
command.params['notificationId'] = notification_id unless notification_id.nil?
|
|
1326
2367
|
command.query['fields'] = fields unless fields.nil?
|
|
1327
2368
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1328
2369
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1329
2370
|
execute_or_queue_command(command, &block)
|
|
1330
2371
|
end
|
|
1331
2372
|
|
|
1332
|
-
#
|
|
2373
|
+
# Retrieves a paginated list of all roleAssignments.
|
|
1333
2374
|
# @param [String] customer
|
|
1334
|
-
#
|
|
1335
|
-
# @param [
|
|
1336
|
-
#
|
|
1337
|
-
# @param [
|
|
2375
|
+
# Immutable ID of the Google Apps account.
|
|
2376
|
+
# @param [Fixnum] max_results
|
|
2377
|
+
# Maximum number of results to return.
|
|
2378
|
+
# @param [String] page_token
|
|
2379
|
+
# Token to specify the next page in the list.
|
|
2380
|
+
# @param [String] role_id
|
|
2381
|
+
# Immutable ID of a role. If included in the request, returns only role
|
|
2382
|
+
# assignments containing this role ID.
|
|
2383
|
+
# @param [String] user_key
|
|
2384
|
+
# The user's primary email address, alias email address, or unique user ID. If
|
|
2385
|
+
# included in the request, returns role assignments only for this user.
|
|
1338
2386
|
# @param [String] fields
|
|
1339
2387
|
# Selector specifying which fields to include in a partial response.
|
|
1340
2388
|
# @param [String] quota_user
|
|
@@ -1348,34 +2396,34 @@ module Google
|
|
|
1348
2396
|
# Request-specific options
|
|
1349
2397
|
#
|
|
1350
2398
|
# @yield [result, err] Result & error if block supplied
|
|
1351
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
2399
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::RoleAssignments] parsed result object
|
|
1352
2400
|
# @yieldparam err [StandardError] error object if request failed
|
|
1353
2401
|
#
|
|
1354
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
2402
|
+
# @return [Google::Apis::AdminDirectoryV1::RoleAssignments]
|
|
1355
2403
|
#
|
|
1356
2404
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1357
2405
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1358
2406
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1359
|
-
def
|
|
1360
|
-
|
|
1361
|
-
command =
|
|
1362
|
-
command.
|
|
1363
|
-
command.request_object = notification_object
|
|
1364
|
-
command.response_representation = Google::Apis::AdminDirectoryV1::Notification::Representation
|
|
1365
|
-
command.response_class = Google::Apis::AdminDirectoryV1::Notification
|
|
2407
|
+
def list_role_assignments(customer, max_results: nil, page_token: nil, role_id: nil, user_key: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2408
|
+
command = make_simple_command(:get, 'customer/{customer}/roleassignments', options)
|
|
2409
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::RoleAssignments::Representation
|
|
2410
|
+
command.response_class = Google::Apis::AdminDirectoryV1::RoleAssignments
|
|
1366
2411
|
command.params['customer'] = customer unless customer.nil?
|
|
1367
|
-
command.
|
|
2412
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
2413
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
2414
|
+
command.query['roleId'] = role_id unless role_id.nil?
|
|
2415
|
+
command.query['userKey'] = user_key unless user_key.nil?
|
|
1368
2416
|
command.query['fields'] = fields unless fields.nil?
|
|
1369
2417
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1370
2418
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1371
2419
|
execute_or_queue_command(command, &block)
|
|
1372
2420
|
end
|
|
1373
2421
|
|
|
1374
|
-
#
|
|
1375
|
-
# @param [String]
|
|
1376
|
-
# Immutable
|
|
1377
|
-
# @param [
|
|
1378
|
-
#
|
|
2422
|
+
# Deletes a role.
|
|
2423
|
+
# @param [String] customer
|
|
2424
|
+
# Immutable ID of the Google Apps account.
|
|
2425
|
+
# @param [String] role_id
|
|
2426
|
+
# Immutable ID of the role.
|
|
1379
2427
|
# @param [String] fields
|
|
1380
2428
|
# Selector specifying which fields to include in a partial response.
|
|
1381
2429
|
# @param [String] quota_user
|
|
@@ -1397,22 +2445,21 @@ module Google
|
|
|
1397
2445
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1398
2446
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1399
2447
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1400
|
-
def
|
|
1401
|
-
|
|
1402
|
-
command =
|
|
1403
|
-
command.params['
|
|
1404
|
-
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
|
2448
|
+
def delete_role(customer, role_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2449
|
+
command = make_simple_command(:delete, 'customer/{customer}/roles/{roleId}', options)
|
|
2450
|
+
command.params['customer'] = customer unless customer.nil?
|
|
2451
|
+
command.params['roleId'] = role_id unless role_id.nil?
|
|
1405
2452
|
command.query['fields'] = fields unless fields.nil?
|
|
1406
2453
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1407
2454
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1408
2455
|
execute_or_queue_command(command, &block)
|
|
1409
2456
|
end
|
|
1410
2457
|
|
|
1411
|
-
#
|
|
1412
|
-
# @param [String]
|
|
1413
|
-
# Immutable
|
|
1414
|
-
# @param [
|
|
1415
|
-
#
|
|
2458
|
+
# Retrieves a role.
|
|
2459
|
+
# @param [String] customer
|
|
2460
|
+
# Immutable ID of the Google Apps account.
|
|
2461
|
+
# @param [String] role_id
|
|
2462
|
+
# Immutable ID of the role.
|
|
1416
2463
|
# @param [String] fields
|
|
1417
2464
|
# Selector specifying which fields to include in a partial response.
|
|
1418
2465
|
# @param [String] quota_user
|
|
@@ -1426,31 +2473,30 @@ module Google
|
|
|
1426
2473
|
# Request-specific options
|
|
1427
2474
|
#
|
|
1428
2475
|
# @yield [result, err] Result & error if block supplied
|
|
1429
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
2476
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Role] parsed result object
|
|
1430
2477
|
# @yieldparam err [StandardError] error object if request failed
|
|
1431
2478
|
#
|
|
1432
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
2479
|
+
# @return [Google::Apis::AdminDirectoryV1::Role]
|
|
1433
2480
|
#
|
|
1434
2481
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1435
2482
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1436
2483
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1437
|
-
def
|
|
1438
|
-
|
|
1439
|
-
command =
|
|
1440
|
-
command.
|
|
1441
|
-
command.
|
|
1442
|
-
command.params['
|
|
1443
|
-
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
|
2484
|
+
def get_role(customer, role_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2485
|
+
command = make_simple_command(:get, 'customer/{customer}/roles/{roleId}', options)
|
|
2486
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Role::Representation
|
|
2487
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Role
|
|
2488
|
+
command.params['customer'] = customer unless customer.nil?
|
|
2489
|
+
command.params['roleId'] = role_id unless role_id.nil?
|
|
1444
2490
|
command.query['fields'] = fields unless fields.nil?
|
|
1445
2491
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1446
2492
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1447
2493
|
execute_or_queue_command(command, &block)
|
|
1448
2494
|
end
|
|
1449
2495
|
|
|
1450
|
-
#
|
|
1451
|
-
# @param [String]
|
|
1452
|
-
# Immutable
|
|
1453
|
-
# @param [Google::Apis::AdminDirectoryV1::
|
|
2496
|
+
# Creates a role.
|
|
2497
|
+
# @param [String] customer
|
|
2498
|
+
# Immutable ID of the Google Apps account.
|
|
2499
|
+
# @param [Google::Apis::AdminDirectoryV1::Role] role_object
|
|
1454
2500
|
# @param [String] fields
|
|
1455
2501
|
# Selector specifying which fields to include in a partial response.
|
|
1456
2502
|
# @param [String] quota_user
|
|
@@ -1464,35 +2510,34 @@ module Google
|
|
|
1464
2510
|
# Request-specific options
|
|
1465
2511
|
#
|
|
1466
2512
|
# @yield [result, err] Result & error if block supplied
|
|
1467
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
2513
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Role] parsed result object
|
|
1468
2514
|
# @yieldparam err [StandardError] error object if request failed
|
|
1469
2515
|
#
|
|
1470
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
2516
|
+
# @return [Google::Apis::AdminDirectoryV1::Role]
|
|
1471
2517
|
#
|
|
1472
2518
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1473
2519
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1474
2520
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1475
|
-
def
|
|
1476
|
-
|
|
1477
|
-
command =
|
|
1478
|
-
command.
|
|
1479
|
-
command.
|
|
1480
|
-
command.
|
|
1481
|
-
command.
|
|
1482
|
-
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
2521
|
+
def insert_role(customer, role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2522
|
+
command = make_simple_command(:post, 'customer/{customer}/roles', options)
|
|
2523
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Role::Representation
|
|
2524
|
+
command.request_object = role_object
|
|
2525
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Role::Representation
|
|
2526
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Role
|
|
2527
|
+
command.params['customer'] = customer unless customer.nil?
|
|
1483
2528
|
command.query['fields'] = fields unless fields.nil?
|
|
1484
2529
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1485
2530
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1486
2531
|
execute_or_queue_command(command, &block)
|
|
1487
2532
|
end
|
|
1488
2533
|
|
|
1489
|
-
#
|
|
1490
|
-
# @param [String]
|
|
1491
|
-
# Immutable id of the Google Apps account
|
|
1492
|
-
# @param [
|
|
1493
|
-
#
|
|
1494
|
-
# @param [String]
|
|
1495
|
-
#
|
|
2534
|
+
# Retrieves a paginated list of all the roles in a domain.
|
|
2535
|
+
# @param [String] customer
|
|
2536
|
+
# Immutable id of the Google Apps account.
|
|
2537
|
+
# @param [Fixnum] max_results
|
|
2538
|
+
# Maximum number of results to return.
|
|
2539
|
+
# @param [String] page_token
|
|
2540
|
+
# Token to specify the next page in the list.
|
|
1496
2541
|
# @param [String] fields
|
|
1497
2542
|
# Selector specifying which fields to include in a partial response.
|
|
1498
2543
|
# @param [String] quota_user
|
|
@@ -1506,34 +2551,33 @@ module Google
|
|
|
1506
2551
|
# Request-specific options
|
|
1507
2552
|
#
|
|
1508
2553
|
# @yield [result, err] Result & error if block supplied
|
|
1509
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
2554
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Roles] parsed result object
|
|
1510
2555
|
# @yieldparam err [StandardError] error object if request failed
|
|
1511
2556
|
#
|
|
1512
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
2557
|
+
# @return [Google::Apis::AdminDirectoryV1::Roles]
|
|
1513
2558
|
#
|
|
1514
2559
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1515
2560
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1516
2561
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1517
|
-
def
|
|
1518
|
-
|
|
1519
|
-
command =
|
|
1520
|
-
command.
|
|
1521
|
-
command.
|
|
1522
|
-
command.
|
|
1523
|
-
command.query['
|
|
1524
|
-
command.query['type'] = type unless type.nil?
|
|
2562
|
+
def list_roles(customer, max_results: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2563
|
+
command = make_simple_command(:get, 'customer/{customer}/roles', options)
|
|
2564
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Roles::Representation
|
|
2565
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Roles
|
|
2566
|
+
command.params['customer'] = customer unless customer.nil?
|
|
2567
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
|
2568
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
|
1525
2569
|
command.query['fields'] = fields unless fields.nil?
|
|
1526
2570
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1527
2571
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1528
2572
|
execute_or_queue_command(command, &block)
|
|
1529
2573
|
end
|
|
1530
2574
|
|
|
1531
|
-
#
|
|
1532
|
-
# @param [String]
|
|
1533
|
-
# Immutable
|
|
1534
|
-
# @param [
|
|
1535
|
-
#
|
|
1536
|
-
# @param [Google::Apis::AdminDirectoryV1::
|
|
2575
|
+
# Updates a role. This method supports patch semantics.
|
|
2576
|
+
# @param [String] customer
|
|
2577
|
+
# Immutable ID of the Google Apps account.
|
|
2578
|
+
# @param [String] role_id
|
|
2579
|
+
# Immutable ID of the role.
|
|
2580
|
+
# @param [Google::Apis::AdminDirectoryV1::Role] role_object
|
|
1537
2581
|
# @param [String] fields
|
|
1538
2582
|
# Selector specifying which fields to include in a partial response.
|
|
1539
2583
|
# @param [String] quota_user
|
|
@@ -1547,35 +2591,34 @@ module Google
|
|
|
1547
2591
|
# Request-specific options
|
|
1548
2592
|
#
|
|
1549
2593
|
# @yield [result, err] Result & error if block supplied
|
|
1550
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
2594
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Role] parsed result object
|
|
1551
2595
|
# @yieldparam err [StandardError] error object if request failed
|
|
1552
2596
|
#
|
|
1553
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
2597
|
+
# @return [Google::Apis::AdminDirectoryV1::Role]
|
|
1554
2598
|
#
|
|
1555
2599
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1556
2600
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1557
2601
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1558
|
-
def
|
|
1559
|
-
|
|
1560
|
-
command =
|
|
1561
|
-
command.
|
|
1562
|
-
command.
|
|
1563
|
-
command.
|
|
1564
|
-
command.
|
|
1565
|
-
command.params['
|
|
1566
|
-
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
|
2602
|
+
def patch_role(customer, role_id, role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2603
|
+
command = make_simple_command(:patch, 'customer/{customer}/roles/{roleId}', options)
|
|
2604
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Role::Representation
|
|
2605
|
+
command.request_object = role_object
|
|
2606
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Role::Representation
|
|
2607
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Role
|
|
2608
|
+
command.params['customer'] = customer unless customer.nil?
|
|
2609
|
+
command.params['roleId'] = role_id unless role_id.nil?
|
|
1567
2610
|
command.query['fields'] = fields unless fields.nil?
|
|
1568
2611
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1569
2612
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
1570
2613
|
execute_or_queue_command(command, &block)
|
|
1571
2614
|
end
|
|
1572
2615
|
|
|
1573
|
-
#
|
|
1574
|
-
# @param [String]
|
|
1575
|
-
# Immutable
|
|
1576
|
-
# @param [
|
|
1577
|
-
#
|
|
1578
|
-
# @param [Google::Apis::AdminDirectoryV1::
|
|
2616
|
+
# Updates a role.
|
|
2617
|
+
# @param [String] customer
|
|
2618
|
+
# Immutable ID of the Google Apps account.
|
|
2619
|
+
# @param [String] role_id
|
|
2620
|
+
# Immutable ID of the role.
|
|
2621
|
+
# @param [Google::Apis::AdminDirectoryV1::Role] role_object
|
|
1579
2622
|
# @param [String] fields
|
|
1580
2623
|
# Selector specifying which fields to include in a partial response.
|
|
1581
2624
|
# @param [String] quota_user
|
|
@@ -1589,23 +2632,22 @@ module Google
|
|
|
1589
2632
|
# Request-specific options
|
|
1590
2633
|
#
|
|
1591
2634
|
# @yield [result, err] Result & error if block supplied
|
|
1592
|
-
# @yieldparam result [Google::Apis::AdminDirectoryV1::
|
|
2635
|
+
# @yieldparam result [Google::Apis::AdminDirectoryV1::Role] parsed result object
|
|
1593
2636
|
# @yieldparam err [StandardError] error object if request failed
|
|
1594
2637
|
#
|
|
1595
|
-
# @return [Google::Apis::AdminDirectoryV1::
|
|
2638
|
+
# @return [Google::Apis::AdminDirectoryV1::Role]
|
|
1596
2639
|
#
|
|
1597
2640
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
1598
2641
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1599
2642
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1600
|
-
def
|
|
1601
|
-
|
|
1602
|
-
command =
|
|
1603
|
-
command.
|
|
1604
|
-
command.
|
|
1605
|
-
command.
|
|
1606
|
-
command.
|
|
1607
|
-
command.params['
|
|
1608
|
-
command.params['orgUnitPath'] = org_unit_path unless org_unit_path.nil?
|
|
2643
|
+
def update_role(customer, role_id, role_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2644
|
+
command = make_simple_command(:put, 'customer/{customer}/roles/{roleId}', options)
|
|
2645
|
+
command.request_representation = Google::Apis::AdminDirectoryV1::Role::Representation
|
|
2646
|
+
command.request_object = role_object
|
|
2647
|
+
command.response_representation = Google::Apis::AdminDirectoryV1::Role::Representation
|
|
2648
|
+
command.response_class = Google::Apis::AdminDirectoryV1::Role
|
|
2649
|
+
command.params['customer'] = customer unless customer.nil?
|
|
2650
|
+
command.params['roleId'] = role_id unless role_id.nil?
|
|
1609
2651
|
command.query['fields'] = fields unless fields.nil?
|
|
1610
2652
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
1611
2653
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
@@ -1639,8 +2681,7 @@ module Google
|
|
|
1639
2681
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1640
2682
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1641
2683
|
def delete_schema(customer_id, schema_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1642
|
-
|
|
1643
|
-
command = make_simple_command(:delete, path, options)
|
|
2684
|
+
command = make_simple_command(:delete, 'customer/{customerId}/schemas/{schemaKey}', options)
|
|
1644
2685
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
1645
2686
|
command.params['schemaKey'] = schema_key unless schema_key.nil?
|
|
1646
2687
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1676,8 +2717,7 @@ module Google
|
|
|
1676
2717
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1677
2718
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1678
2719
|
def get_schema(customer_id, schema_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1679
|
-
|
|
1680
|
-
command = make_simple_command(:get, path, options)
|
|
2720
|
+
command = make_simple_command(:get, 'customer/{customerId}/schemas/{schemaKey}', options)
|
|
1681
2721
|
command.response_representation = Google::Apis::AdminDirectoryV1::Schema::Representation
|
|
1682
2722
|
command.response_class = Google::Apis::AdminDirectoryV1::Schema
|
|
1683
2723
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
@@ -1714,8 +2754,7 @@ module Google
|
|
|
1714
2754
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1715
2755
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1716
2756
|
def insert_schema(customer_id, schema_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1717
|
-
|
|
1718
|
-
command = make_simple_command(:post, path, options)
|
|
2757
|
+
command = make_simple_command(:post, 'customer/{customerId}/schemas', options)
|
|
1719
2758
|
command.request_representation = Google::Apis::AdminDirectoryV1::Schema::Representation
|
|
1720
2759
|
command.request_object = schema_object
|
|
1721
2760
|
command.response_representation = Google::Apis::AdminDirectoryV1::Schema::Representation
|
|
@@ -1752,8 +2791,7 @@ module Google
|
|
|
1752
2791
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1753
2792
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1754
2793
|
def list_schemas(customer_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1755
|
-
|
|
1756
|
-
command = make_simple_command(:get, path, options)
|
|
2794
|
+
command = make_simple_command(:get, 'customer/{customerId}/schemas', options)
|
|
1757
2795
|
command.response_representation = Google::Apis::AdminDirectoryV1::Schemas::Representation
|
|
1758
2796
|
command.response_class = Google::Apis::AdminDirectoryV1::Schemas
|
|
1759
2797
|
command.params['customerId'] = customer_id unless customer_id.nil?
|
|
@@ -1791,8 +2829,7 @@ module Google
|
|
|
1791
2829
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1792
2830
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1793
2831
|
def patch_schema(customer_id, schema_key, schema_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1794
|
-
|
|
1795
|
-
command = make_simple_command(:patch, path, options)
|
|
2832
|
+
command = make_simple_command(:patch, 'customer/{customerId}/schemas/{schemaKey}', options)
|
|
1796
2833
|
command.request_representation = Google::Apis::AdminDirectoryV1::Schema::Representation
|
|
1797
2834
|
command.request_object = schema_object
|
|
1798
2835
|
command.response_representation = Google::Apis::AdminDirectoryV1::Schema::Representation
|
|
@@ -1833,8 +2870,7 @@ module Google
|
|
|
1833
2870
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1834
2871
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1835
2872
|
def update_schema(customer_id, schema_key, schema_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1836
|
-
|
|
1837
|
-
command = make_simple_command(:put, path, options)
|
|
2873
|
+
command = make_simple_command(:put, 'customer/{customerId}/schemas/{schemaKey}', options)
|
|
1838
2874
|
command.request_representation = Google::Apis::AdminDirectoryV1::Schema::Representation
|
|
1839
2875
|
command.request_object = schema_object
|
|
1840
2876
|
command.response_representation = Google::Apis::AdminDirectoryV1::Schema::Representation
|
|
@@ -1875,8 +2911,7 @@ module Google
|
|
|
1875
2911
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1876
2912
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1877
2913
|
def delete_token(user_key, client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1878
|
-
|
|
1879
|
-
command = make_simple_command(:delete, path, options)
|
|
2914
|
+
command = make_simple_command(:delete, 'users/{userKey}/tokens/{clientId}', options)
|
|
1880
2915
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
1881
2916
|
command.params['clientId'] = client_id unless client_id.nil?
|
|
1882
2917
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -1913,8 +2948,7 @@ module Google
|
|
|
1913
2948
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1914
2949
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1915
2950
|
def get_token(user_key, client_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1916
|
-
|
|
1917
|
-
command = make_simple_command(:get, path, options)
|
|
2951
|
+
command = make_simple_command(:get, 'users/{userKey}/tokens/{clientId}', options)
|
|
1918
2952
|
command.response_representation = Google::Apis::AdminDirectoryV1::Token::Representation
|
|
1919
2953
|
command.response_class = Google::Apis::AdminDirectoryV1::Token
|
|
1920
2954
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
@@ -1951,8 +2985,7 @@ module Google
|
|
|
1951
2985
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1952
2986
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1953
2987
|
def list_tokens(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1954
|
-
|
|
1955
|
-
command = make_simple_command(:get, path, options)
|
|
2988
|
+
command = make_simple_command(:get, 'users/{userKey}/tokens', options)
|
|
1956
2989
|
command.response_representation = Google::Apis::AdminDirectoryV1::Tokens::Representation
|
|
1957
2990
|
command.response_class = Google::Apis::AdminDirectoryV1::Tokens
|
|
1958
2991
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
@@ -1987,8 +3020,7 @@ module Google
|
|
|
1987
3020
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
1988
3021
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
1989
3022
|
def delete_user(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
1990
|
-
|
|
1991
|
-
command = make_simple_command(:delete, path, options)
|
|
3023
|
+
command = make_simple_command(:delete, 'users/{userKey}', options)
|
|
1992
3024
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
1993
3025
|
command.query['fields'] = fields unless fields.nil?
|
|
1994
3026
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -2028,8 +3060,7 @@ module Google
|
|
|
2028
3060
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2029
3061
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2030
3062
|
def get_user(user_key, custom_field_mask: nil, projection: nil, view_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2031
|
-
|
|
2032
|
-
command = make_simple_command(:get, path, options)
|
|
3063
|
+
command = make_simple_command(:get, 'users/{userKey}', options)
|
|
2033
3064
|
command.response_representation = Google::Apis::AdminDirectoryV1::User::Representation
|
|
2034
3065
|
command.response_class = Google::Apis::AdminDirectoryV1::User
|
|
2035
3066
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
@@ -2066,8 +3097,7 @@ module Google
|
|
|
2066
3097
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2067
3098
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2068
3099
|
def insert_user(user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2069
|
-
|
|
2070
|
-
command = make_simple_command(:post, path, options)
|
|
3100
|
+
command = make_simple_command(:post, 'users', options)
|
|
2071
3101
|
command.request_representation = Google::Apis::AdminDirectoryV1::User::Representation
|
|
2072
3102
|
command.request_object = user_object
|
|
2073
3103
|
command.response_representation = Google::Apis::AdminDirectoryV1::User::Representation
|
|
@@ -2129,8 +3159,7 @@ module Google
|
|
|
2129
3159
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2130
3160
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2131
3161
|
def list_users(custom_field_mask: nil, customer: nil, domain: nil, event: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, show_deleted: nil, sort_order: nil, view_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2132
|
-
|
|
2133
|
-
command = make_simple_command(:get, path, options)
|
|
3162
|
+
command = make_simple_command(:get, 'users', options)
|
|
2134
3163
|
command.response_representation = Google::Apis::AdminDirectoryV1::Users::Representation
|
|
2135
3164
|
command.response_class = Google::Apis::AdminDirectoryV1::Users
|
|
2136
3165
|
command.query['customFieldMask'] = custom_field_mask unless custom_field_mask.nil?
|
|
@@ -2176,9 +3205,8 @@ module Google
|
|
|
2176
3205
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
|
2177
3206
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2178
3207
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2179
|
-
def
|
|
2180
|
-
|
|
2181
|
-
command = make_simple_command(:post, path, options)
|
|
3208
|
+
def make_user_admin(user_key, user_make_admin_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
3209
|
+
command = make_simple_command(:post, 'users/{userKey}/makeAdmin', options)
|
|
2182
3210
|
command.request_representation = Google::Apis::AdminDirectoryV1::UserMakeAdmin::Representation
|
|
2183
3211
|
command.request_object = user_make_admin_object
|
|
2184
3212
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
@@ -2215,8 +3243,7 @@ module Google
|
|
|
2215
3243
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2216
3244
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2217
3245
|
def patch_user(user_key, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2218
|
-
|
|
2219
|
-
command = make_simple_command(:patch, path, options)
|
|
3246
|
+
command = make_simple_command(:patch, 'users/{userKey}', options)
|
|
2220
3247
|
command.request_representation = Google::Apis::AdminDirectoryV1::User::Representation
|
|
2221
3248
|
command.request_object = user_object
|
|
2222
3249
|
command.response_representation = Google::Apis::AdminDirectoryV1::User::Representation
|
|
@@ -2254,8 +3281,7 @@ module Google
|
|
|
2254
3281
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2255
3282
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2256
3283
|
def undelete_user(user_key, user_undelete_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2257
|
-
|
|
2258
|
-
command = make_simple_command(:post, path, options)
|
|
3284
|
+
command = make_simple_command(:post, 'users/{userKey}/undelete', options)
|
|
2259
3285
|
command.request_representation = Google::Apis::AdminDirectoryV1::UserUndelete::Representation
|
|
2260
3286
|
command.request_object = user_undelete_object
|
|
2261
3287
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
@@ -2292,8 +3318,7 @@ module Google
|
|
|
2292
3318
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2293
3319
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2294
3320
|
def update_user(user_key, user_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2295
|
-
|
|
2296
|
-
command = make_simple_command(:put, path, options)
|
|
3321
|
+
command = make_simple_command(:put, 'users/{userKey}', options)
|
|
2297
3322
|
command.request_representation = Google::Apis::AdminDirectoryV1::User::Representation
|
|
2298
3323
|
command.request_object = user_object
|
|
2299
3324
|
command.response_representation = Google::Apis::AdminDirectoryV1::User::Representation
|
|
@@ -2357,8 +3382,7 @@ module Google
|
|
|
2357
3382
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2358
3383
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2359
3384
|
def watch_user(channel_object = nil, custom_field_mask: nil, customer: nil, domain: nil, event: nil, max_results: nil, order_by: nil, page_token: nil, projection: nil, query: nil, show_deleted: nil, sort_order: nil, view_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2360
|
-
|
|
2361
|
-
command = make_simple_command(:post, path, options)
|
|
3385
|
+
command = make_simple_command(:post, 'users/watch', options)
|
|
2362
3386
|
command.request_representation = Google::Apis::AdminDirectoryV1::Channel::Representation
|
|
2363
3387
|
command.request_object = channel_object
|
|
2364
3388
|
command.response_representation = Google::Apis::AdminDirectoryV1::Channel::Representation
|
|
@@ -2408,8 +3432,7 @@ module Google
|
|
|
2408
3432
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2409
3433
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2410
3434
|
def delete_user_alias(user_key, user_alias, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2411
|
-
|
|
2412
|
-
command = make_simple_command(:delete, path, options)
|
|
3435
|
+
command = make_simple_command(:delete, 'users/{userKey}/aliases/{alias}', options)
|
|
2413
3436
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
2414
3437
|
command.params['alias'] = user_alias unless user_alias.nil?
|
|
2415
3438
|
command.query['fields'] = fields unless fields.nil?
|
|
@@ -2444,8 +3467,7 @@ module Google
|
|
|
2444
3467
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2445
3468
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2446
3469
|
def insert_user_alias(user_key, alias_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2447
|
-
|
|
2448
|
-
command = make_simple_command(:post, path, options)
|
|
3470
|
+
command = make_simple_command(:post, 'users/{userKey}/aliases', options)
|
|
2449
3471
|
command.request_representation = Google::Apis::AdminDirectoryV1::Alias::Representation
|
|
2450
3472
|
command.request_object = alias_object
|
|
2451
3473
|
command.response_representation = Google::Apis::AdminDirectoryV1::Alias::Representation
|
|
@@ -2484,8 +3506,7 @@ module Google
|
|
|
2484
3506
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2485
3507
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2486
3508
|
def list_user_aliases(user_key, event: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2487
|
-
|
|
2488
|
-
command = make_simple_command(:get, path, options)
|
|
3509
|
+
command = make_simple_command(:get, 'users/{userKey}/aliases', options)
|
|
2489
3510
|
command.response_representation = Google::Apis::AdminDirectoryV1::Aliases::Representation
|
|
2490
3511
|
command.response_class = Google::Apis::AdminDirectoryV1::Aliases
|
|
2491
3512
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
@@ -2524,8 +3545,7 @@ module Google
|
|
|
2524
3545
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2525
3546
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2526
3547
|
def watch_user_alias(user_key, channel_object = nil, event: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2527
|
-
|
|
2528
|
-
command = make_simple_command(:post, path, options)
|
|
3548
|
+
command = make_simple_command(:post, 'users/{userKey}/aliases/watch', options)
|
|
2529
3549
|
command.request_representation = Google::Apis::AdminDirectoryV1::Channel::Representation
|
|
2530
3550
|
command.request_object = channel_object
|
|
2531
3551
|
command.response_representation = Google::Apis::AdminDirectoryV1::Channel::Representation
|
|
@@ -2563,8 +3583,7 @@ module Google
|
|
|
2563
3583
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2564
3584
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2565
3585
|
def delete_user_photo(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2566
|
-
|
|
2567
|
-
command = make_simple_command(:delete, path, options)
|
|
3586
|
+
command = make_simple_command(:delete, 'users/{userKey}/photos/thumbnail', options)
|
|
2568
3587
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
2569
3588
|
command.query['fields'] = fields unless fields.nil?
|
|
2570
3589
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -2597,8 +3616,7 @@ module Google
|
|
|
2597
3616
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2598
3617
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2599
3618
|
def get_user_photo(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2600
|
-
|
|
2601
|
-
command = make_simple_command(:get, path, options)
|
|
3619
|
+
command = make_simple_command(:get, 'users/{userKey}/photos/thumbnail', options)
|
|
2602
3620
|
command.response_representation = Google::Apis::AdminDirectoryV1::UserPhoto::Representation
|
|
2603
3621
|
command.response_class = Google::Apis::AdminDirectoryV1::UserPhoto
|
|
2604
3622
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
@@ -2634,8 +3652,7 @@ module Google
|
|
|
2634
3652
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2635
3653
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2636
3654
|
def patch_user_photo(user_key, user_photo_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2637
|
-
|
|
2638
|
-
command = make_simple_command(:patch, path, options)
|
|
3655
|
+
command = make_simple_command(:patch, 'users/{userKey}/photos/thumbnail', options)
|
|
2639
3656
|
command.request_representation = Google::Apis::AdminDirectoryV1::UserPhoto::Representation
|
|
2640
3657
|
command.request_object = user_photo_object
|
|
2641
3658
|
command.response_representation = Google::Apis::AdminDirectoryV1::UserPhoto::Representation
|
|
@@ -2673,8 +3690,7 @@ module Google
|
|
|
2673
3690
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2674
3691
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2675
3692
|
def update_user_photo(user_key, user_photo_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2676
|
-
|
|
2677
|
-
command = make_simple_command(:put, path, options)
|
|
3693
|
+
command = make_simple_command(:put, 'users/{userKey}/photos/thumbnail', options)
|
|
2678
3694
|
command.request_representation = Google::Apis::AdminDirectoryV1::UserPhoto::Representation
|
|
2679
3695
|
command.request_object = user_photo_object
|
|
2680
3696
|
command.response_representation = Google::Apis::AdminDirectoryV1::UserPhoto::Representation
|
|
@@ -2711,8 +3727,7 @@ module Google
|
|
|
2711
3727
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2712
3728
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2713
3729
|
def generate_verification_code(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2714
|
-
|
|
2715
|
-
command = make_simple_command(:post, path, options)
|
|
3730
|
+
command = make_simple_command(:post, 'users/{userKey}/verificationCodes/generate', options)
|
|
2716
3731
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
2717
3732
|
command.query['fields'] = fields unless fields.nil?
|
|
2718
3733
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -2745,8 +3760,7 @@ module Google
|
|
|
2745
3760
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2746
3761
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2747
3762
|
def invalidate_verification_code(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2748
|
-
|
|
2749
|
-
command = make_simple_command(:post, path, options)
|
|
3763
|
+
command = make_simple_command(:post, 'users/{userKey}/verificationCodes/invalidate', options)
|
|
2750
3764
|
command.params['userKey'] = user_key unless user_key.nil?
|
|
2751
3765
|
command.query['fields'] = fields unless fields.nil?
|
|
2752
3766
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
|
@@ -2781,8 +3795,7 @@ module Google
|
|
|
2781
3795
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
|
2782
3796
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
|
2783
3797
|
def list_verification_codes(user_key, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
|
2784
|
-
|
|
2785
|
-
command = make_simple_command(:get, path, options)
|
|
3798
|
+
command = make_simple_command(:get, 'users/{userKey}/verificationCodes', options)
|
|
2786
3799
|
command.response_representation = Google::Apis::AdminDirectoryV1::VerificationCodes::Representation
|
|
2787
3800
|
command.response_class = Google::Apis::AdminDirectoryV1::VerificationCodes
|
|
2788
3801
|
command.params['userKey'] = user_key unless user_key.nil?
|