google-api-client 0.9.9 → 0.9.11

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +9 -0
  3. data/Gemfile +8 -0
  4. data/api_names.yaml +62 -55
  5. data/generated/google/apis/adsense_v1_4.rb +1 -1
  6. data/generated/google/apis/adsensehost_v4_1.rb +1 -1
  7. data/generated/google/apis/analyticsreporting_v4.rb +1 -1
  8. data/generated/google/apis/androidenterprise_v1.rb +1 -1
  9. data/generated/google/apis/androidenterprise_v1/classes.rb +534 -39
  10. data/generated/google/apis/androidenterprise_v1/representations.rb +222 -0
  11. data/generated/google/apis/androidenterprise_v1/service.rb +595 -10
  12. data/generated/google/apis/androidpublisher_v2.rb +1 -1
  13. data/generated/google/apis/appengine_v1beta5.rb +1 -1
  14. data/generated/google/apis/appengine_v1beta5/classes.rb +66 -6
  15. data/generated/google/apis/appengine_v1beta5/representations.rb +29 -0
  16. data/generated/google/apis/appengine_v1beta5/service.rb +15 -1
  17. data/generated/google/apis/appstate_v1.rb +1 -1
  18. data/generated/google/apis/bigquery_v2.rb +1 -1
  19. data/generated/google/apis/bigquery_v2/classes.rb +12 -4
  20. data/generated/google/apis/bigquery_v2/representations.rb +1 -0
  21. data/generated/google/apis/books_v1.rb +2 -2
  22. data/generated/google/apis/books_v1/classes.rb +77 -0
  23. data/generated/google/apis/books_v1/representations.rb +34 -0
  24. data/generated/google/apis/books_v1/service.rb +2 -2
  25. data/generated/google/apis/calendar_v3.rb +1 -1
  26. data/generated/google/apis/cloudbuild_v1.rb +1 -1
  27. data/generated/google/apis/cloudbuild_v1/classes.rb +110 -0
  28. data/generated/google/apis/cloudbuild_v1/representations.rb +60 -0
  29. data/generated/google/apis/cloudmonitoring_v2beta2.rb +1 -1
  30. data/generated/google/apis/cloudresourcemanager_v1.rb +1 -1
  31. data/generated/google/apis/cloudresourcemanager_v1/classes.rb +157 -3
  32. data/generated/google/apis/cloudresourcemanager_v1/representations.rb +33 -0
  33. data/generated/google/apis/cloudresourcemanager_v1/service.rb +60 -21
  34. data/generated/google/apis/cloudresourcemanager_v1beta1.rb +1 -1
  35. data/generated/google/apis/cloudresourcemanager_v1beta1/classes.rb +22 -5
  36. data/generated/google/apis/cloudresourcemanager_v1beta1/representations.rb +2 -0
  37. data/generated/google/apis/cloudresourcemanager_v1beta1/service.rb +61 -39
  38. data/generated/google/apis/compute_beta.rb +1 -1
  39. data/generated/google/apis/compute_beta/classes.rb +678 -17
  40. data/generated/google/apis/compute_beta/representations.rb +235 -0
  41. data/generated/google/apis/compute_beta/service.rb +1280 -600
  42. data/generated/google/apis/compute_v1.rb +1 -1
  43. data/generated/google/apis/compute_v1/classes.rb +34 -13
  44. data/generated/google/apis/compute_v1/representations.rb +14 -0
  45. data/generated/google/apis/compute_v1/service.rb +42 -0
  46. data/generated/google/apis/content_v2.rb +1 -1
  47. data/generated/google/apis/content_v2/classes.rb +14 -0
  48. data/generated/google/apis/content_v2/representations.rb +2 -0
  49. data/generated/google/apis/datastore_v1beta3.rb +38 -0
  50. data/generated/google/apis/datastore_v1beta3/classes.rb +1237 -0
  51. data/generated/google/apis/datastore_v1beta3/representations.rb +567 -0
  52. data/generated/google/apis/datastore_v1beta3/service.rb +259 -0
  53. data/generated/google/apis/deploymentmanager_v2.rb +1 -1
  54. data/generated/google/apis/deploymentmanager_v2/classes.rb +6 -0
  55. data/generated/google/apis/deploymentmanager_v2/representations.rb +2 -0
  56. data/generated/google/apis/deploymentmanager_v2/service.rb +40 -50
  57. data/generated/google/apis/dfareporting_v2_5.rb +40 -0
  58. data/generated/google/apis/dfareporting_v2_5/classes.rb +11225 -0
  59. data/generated/google/apis/dfareporting_v2_5/representations.rb +3982 -0
  60. data/generated/google/apis/dfareporting_v2_5/service.rb +8755 -0
  61. data/generated/google/apis/doubleclicksearch_v2.rb +1 -1
  62. data/generated/google/apis/drive_v2.rb +1 -1
  63. data/generated/google/apis/drive_v3.rb +1 -1
  64. data/generated/google/apis/fitness_v1.rb +2 -2
  65. data/generated/google/apis/fitness_v1/classes.rb +48 -5
  66. data/generated/google/apis/fitness_v1/representations.rb +18 -0
  67. data/generated/google/apis/fitness_v1/service.rb +15 -16
  68. data/generated/google/apis/games_configuration_v1configuration.rb +1 -1
  69. data/generated/google/apis/games_management_v1management.rb +1 -1
  70. data/generated/google/apis/games_v1.rb +1 -1
  71. data/generated/google/apis/genomics_v1.rb +2 -4
  72. data/generated/google/apis/genomics_v1/classes.rb +35 -7
  73. data/generated/google/apis/genomics_v1/representations.rb +7 -3
  74. data/generated/google/apis/genomics_v1/service.rb +1 -3
  75. data/generated/google/apis/gmail_v1.rb +7 -1
  76. data/generated/google/apis/gmail_v1/classes.rb +543 -0
  77. data/generated/google/apis/gmail_v1/representations.rb +213 -0
  78. data/generated/google/apis/gmail_v1/service.rb +898 -1
  79. data/generated/google/apis/identitytoolkit_v3.rb +1 -1
  80. data/generated/google/apis/mirror_v1.rb +2 -2
  81. data/generated/google/apis/mirror_v1/service.rb +1 -1
  82. data/generated/google/apis/monitoring_v3.rb +1 -1
  83. data/generated/google/apis/monitoring_v3/classes.rb +7 -6
  84. data/generated/google/apis/oauth2_v2.rb +1 -1
  85. data/generated/google/apis/pagespeedonline_v2.rb +1 -1
  86. data/generated/google/apis/plus_domains_v1.rb +1 -1
  87. data/generated/google/apis/plus_v1.rb +1 -1
  88. data/generated/google/apis/replicapool_v1beta2.rb +1 -1
  89. data/generated/google/apis/sheets_v4.rb +1 -1
  90. data/generated/google/apis/sqladmin_v1beta4.rb +1 -1
  91. data/generated/google/apis/sqladmin_v1beta4/classes.rb +14 -8
  92. data/generated/google/apis/storage_v1.rb +1 -1
  93. data/generated/google/apis/storage_v1/classes.rb +17 -9
  94. data/generated/google/apis/translate_v2.rb +2 -2
  95. data/generated/google/apis/translate_v2/service.rb +1 -1
  96. data/generated/google/apis/vision_v1.rb +1 -1
  97. data/generated/google/apis/youtube_partner_v1.rb +1 -1
  98. data/generated/google/apis/youtube_v3.rb +1 -1
  99. data/generated/google/apis/youtube_v3/classes.rb +8 -2
  100. data/generated/google/apis/youtube_v3/representations.rb +1 -0
  101. data/lib/google/apis/core/base_service.rb +3 -2
  102. data/lib/google/apis/core/upload.rb +7 -1
  103. data/lib/google/apis/version.rb +1 -1
  104. data/sync.rb +71 -0
  105. metadata +11 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c9a7fcc0d0f4b2915d6df357002b2e9289a746fb
4
- data.tar.gz: 9c349abd328cfea51ff9d7599bc61277190c02e6
3
+ metadata.gz: a706d66597c079c092ad0d2b9db4d756f51d7a15
4
+ data.tar.gz: 9853fc58c024dce5476ad33c123bb224954246e1
5
5
  SHA512:
6
- metadata.gz: a50525ccc67745bb327484542c0b2b7a1a88c1000f116920edd684ffeb3dd38c67aa2a9104c59ce77a6225d018ce4f622a0e08728b009f3231820836afd7d900
7
- data.tar.gz: 985f4f7ad2cb55d128f882609b26828bac002ee738d930285fccfecf7bb5f89e3ab640dfb0bc50a51224ce04a3027bc7ecf826eb4b364ce209bf13d1863e95b8
6
+ metadata.gz: f237cda23b506caf62db161fd8ecce3de63db8a85a5c3bf2e2d24ef9f9eae9d55af619389e7504e8ca82c90da1e7112e42bbe8fedba61c6e1b5838b285f8f845
7
+ data.tar.gz: f52fb0253ce788d83f175b8baf540132652306e9ca185ef38a453f22d397e4d0a1b8e83765ab9da364ad9f1b6c6fa44e6b997e9f6bafcbe40e03c660d9d2b68e
@@ -1,3 +1,12 @@
1
+ # 0.9.11
2
+ * Add DFA Reporting 2.5, regenerate APIs
3
+
4
+ # 0.9.10
5
+ * Add datastore v1beta3, regenerate APIs
6
+ * Reduce memory footprint used by mimetypes library
7
+ * Fix bug with pagination when items collection is nil
8
+
9
+
1
10
  # 0.9.9
2
11
  * Add monitoring v3, regenerate APIs
3
12
  * Add samples for sheets, bigquery
data/Gemfile CHANGED
@@ -40,6 +40,14 @@ platforms :ruby do
40
40
  end
41
41
  end
42
42
 
43
+ platforms :mri_21, :mri_22, :mri_23 do
44
+ group :development do
45
+ gem 'derailed_benchmarks'
46
+ gem 'stackprof'
47
+ gem 'rack-test'
48
+ end
49
+ end
50
+
43
51
  if ENV['RAILS_VERSION']
44
52
  gem 'rails', ENV['RAILS_VERSION']
45
53
  end
@@ -643,61 +643,6 @@
643
643
  "/deploymentmanager:v2beta2/OperationsListResponse": list_operations_response
644
644
  "/deploymentmanager:v2beta2/ResourcesListResponse": list_resources_response
645
645
  "/deploymentmanager:v2beta2/TypesListResponse": list_types_response
646
- "/dfareporting:v2.1/AccountPermissionGroupsListResponse": list_account_permission_groups_response
647
- "/dfareporting:v2.1/AccountPermissionsListResponse": list_account_permissions_response
648
- "/dfareporting:v2.1/AccountUserProfilesListResponse": list_account_user_profiles_response
649
- "/dfareporting:v2.1/AccountsListResponse": list_accounts_response
650
- "/dfareporting:v2.1/AdsListResponse": list_ads_response
651
- "/dfareporting:v2.1/AdvertiserGroupsListResponse": list_advertiser_groups_response
652
- "/dfareporting:v2.1/AdvertisersListResponse": list_advertisers_response
653
- "/dfareporting:v2.1/BrowsersListResponse": list_browsers_response
654
- "/dfareporting:v2.1/CampaignCreativeAssociationsListResponse": list_campaign_creative_associations_response
655
- "/dfareporting:v2.1/CampaignsListResponse": list_campaigns_response
656
- "/dfareporting:v2.1/ChangeLog/objectId": obj_id
657
- "/dfareporting:v2.1/ChangeLogsListResponse": list_change_logs_response
658
- "/dfareporting:v2.1/CitiesListResponse": list_cities_response
659
- "/dfareporting:v2.1/ConnectionTypesListResponse": list_connection_types_response
660
- "/dfareporting:v2.1/ContentCategoriesListResponse": list_content_categories_response
661
- "/dfareporting:v2.1/CountriesListResponse": list_countries_response
662
- "/dfareporting:v2.1/CreativeFieldValuesListResponse": list_creative_field_values_response
663
- "/dfareporting:v2.1/CreativeFieldsListResponse": list_creative_fields_response
664
- "/dfareporting:v2.1/CreativeGroupsListResponse": list_creative_groups_response
665
- "/dfareporting:v2.1/CreativesListResponse": list_creatives_response
666
- "/dfareporting:v2.1/DimensionValueRequest": dimension_value_request
667
- "/dfareporting:v2.1/DirectorySiteContactsListResponse": list_directory_site_contacts_response
668
- "/dfareporting:v2.1/DirectorySitesListResponse": list_directory_sites_response
669
- "/dfareporting:v2.1/EventTagsListResponse": list_event_tags_response
670
- "/dfareporting:v2.1/FloodlightActivitiesGenerateTagResponse": floodlight_activities_generate_tag_response
671
- "/dfareporting:v2.1/FloodlightActivitiesListResponse": list_floodlight_activities_response
672
- "/dfareporting:v2.1/FloodlightActivityGroupsListResponse": list_floodlight_activity_groups_response
673
- "/dfareporting:v2.1/FloodlightConfigurationsListResponse": list_floodlight_configurations_response
674
- "/dfareporting:v2.1/InventoryItemsListResponse": list_inventory_items_response
675
- "/dfareporting:v2.1/LandingPagesListResponse": list_landing_pages_response
676
- "/dfareporting:v2.1/MetrosListResponse": list_metros_response
677
- "/dfareporting:v2.1/MobileCarriersListResponse": list_mobile_carriers_response
678
- "/dfareporting:v2.1/ObjectFilter/objectIds/object_id": obj_id
679
- "/dfareporting:v2.1/OperatingSystemVersionsListResponse": list_operating_system_versions_response
680
- "/dfareporting:v2.1/OperatingSystemsListResponse": list_operating_systems_response
681
- "/dfareporting:v2.1/OrderDocumentsListResponse": list_order_documents_response
682
- "/dfareporting:v2.1/OrdersListResponse": list_orders_response
683
- "/dfareporting:v2.1/PlacementGroupsListResponse": list_placement_groups_response
684
- "/dfareporting:v2.1/PlacementStrategiesListResponse": list_placement_strategies_response
685
- "/dfareporting:v2.1/PlacementsGenerateTagsResponse": generate_placements_tags_response
686
- "/dfareporting:v2.1/PlacementsListResponse": list_placements_response
687
- "/dfareporting:v2.1/PlatformTypesListResponse": list_platform_types_response
688
- "/dfareporting:v2.1/PostalCodesListResponse": list_postal_codes_response
689
- "/dfareporting:v2.1/ProjectsListResponse": list_projects_response
690
- "/dfareporting:v2.1/RegionsListResponse": list_regions_response
691
- "/dfareporting:v2.1/RemarketingListsListResponse": list_remarketing_lists_response
692
- "/dfareporting:v2.1/SitesListResponse": list_sites_response
693
- "/dfareporting:v2.1/SizesListResponse": list_sizes_response
694
- "/dfareporting:v2.1/SubaccountsListResponse": list_subaccounts_response
695
- "/dfareporting:v2.1/TargetableRemarketingListsListResponse": list_targetable_remarketing_lists_response
696
- "/dfareporting:v2.1/UserRolePermissionGroupsListResponse": list_user_role_permission_groups_response
697
- "/dfareporting:v2.1/UserRolePermissionsListResponse": list_user_role_permissions_response
698
- "/dfareporting:v2.1/UserRolesListResponse": list_user_roles_response
699
- "/dfareporting:v2.1/dfareporting.floodlightActivities.generatetag": generate_floodlight_activity_tag
700
- "/dfareporting:v2.1/dfareporting.placements.generatetags": generate_placement_tags
701
646
  "/dfareporting:v2.3/AccountPermissionGroupsListResponse": list_account_permission_groups_response
702
647
  "/dfareporting:v2.3/AccountPermissionsListResponse": list_account_permissions_response
703
648
  "/dfareporting:v2.3/AccountUserProfilesListResponse": list_account_user_profiles_response
@@ -753,6 +698,61 @@
753
698
  "/dfareporting:v2.3/UserRolesListResponse": list_user_roles_response
754
699
  "/dfareporting:v2.3/dfareporting.floodlightActivities.generatetag": generate_floodlight_activity_tag
755
700
  "/dfareporting:v2.3/dfareporting.placements.generatetags": generate_placement_tags
701
+ "/dfareporting:v2.5/AccountPermissionGroupsListResponse": list_account_permission_groups_response
702
+ "/dfareporting:v2.5/AccountPermissionsListResponse": list_account_permissions_response
703
+ "/dfareporting:v2.5/AccountUserProfilesListResponse": list_account_user_profiles_response
704
+ "/dfareporting:v2.5/AccountsListResponse": list_accounts_response
705
+ "/dfareporting:v2.5/AdsListResponse": list_ads_response
706
+ "/dfareporting:v2.5/AdvertiserGroupsListResponse": list_advertiser_groups_response
707
+ "/dfareporting:v2.5/AdvertisersListResponse": list_advertisers_response
708
+ "/dfareporting:v2.5/BrowsersListResponse": list_browsers_response
709
+ "/dfareporting:v2.5/CampaignCreativeAssociationsListResponse": list_campaign_creative_associations_response
710
+ "/dfareporting:v2.5/CampaignsListResponse": list_campaigns_response
711
+ "/dfareporting:v2.5/ChangeLog/objectId": obj_id
712
+ "/dfareporting:v2.5/ChangeLogsListResponse": list_change_logs_response
713
+ "/dfareporting:v2.5/CitiesListResponse": list_cities_response
714
+ "/dfareporting:v2.5/ConnectionTypesListResponse": list_connection_types_response
715
+ "/dfareporting:v2.5/ContentCategoriesListResponse": list_content_categories_response
716
+ "/dfareporting:v2.5/CountriesListResponse": list_countries_response
717
+ "/dfareporting:v2.5/CreativeFieldValuesListResponse": list_creative_field_values_response
718
+ "/dfareporting:v2.5/CreativeFieldsListResponse": list_creative_fields_response
719
+ "/dfareporting:v2.5/CreativeGroupsListResponse": list_creative_groups_response
720
+ "/dfareporting:v2.5/CreativesListResponse": list_creatives_response
721
+ "/dfareporting:v2.5/DimensionValueRequest": dimension_value_request
722
+ "/dfareporting:v2.5/DirectorySiteContactsListResponse": list_directory_site_contacts_response
723
+ "/dfareporting:v2.5/DirectorySitesListResponse": list_directory_sites_response
724
+ "/dfareporting:v2.5/EventTagsListResponse": list_event_tags_response
725
+ "/dfareporting:v2.5/FloodlightActivitiesGenerateTagResponse": floodlight_activities_generate_tag_response
726
+ "/dfareporting:v2.5/FloodlightActivitiesListResponse": list_floodlight_activities_response
727
+ "/dfareporting:v2.5/FloodlightActivityGroupsListResponse": list_floodlight_activity_groups_response
728
+ "/dfareporting:v2.5/FloodlightConfigurationsListResponse": list_floodlight_configurations_response
729
+ "/dfareporting:v2.5/InventoryItemsListResponse": list_inventory_items_response
730
+ "/dfareporting:v2.5/LandingPagesListResponse": list_landing_pages_response
731
+ "/dfareporting:v2.5/MetrosListResponse": list_metros_response
732
+ "/dfareporting:v2.5/MobileCarriersListResponse": list_mobile_carriers_response
733
+ "/dfareporting:v2.5/ObjectFilter/objectIds/object_id": obj_id
734
+ "/dfareporting:v2.5/OperatingSystemVersionsListResponse": list_operating_system_versions_response
735
+ "/dfareporting:v2.5/OperatingSystemsListResponse": list_operating_systems_response
736
+ "/dfareporting:v2.5/OrderDocumentsListResponse": list_order_documents_response
737
+ "/dfareporting:v2.5/OrdersListResponse": list_orders_response
738
+ "/dfareporting:v2.5/PlacementGroupsListResponse": list_placement_groups_response
739
+ "/dfareporting:v2.5/PlacementStrategiesListResponse": list_placement_strategies_response
740
+ "/dfareporting:v2.5/PlacementsGenerateTagsResponse": generate_placements_tags_response
741
+ "/dfareporting:v2.5/PlacementsListResponse": list_placements_response
742
+ "/dfareporting:v2.5/PlatformTypesListResponse": list_platform_types_response
743
+ "/dfareporting:v2.5/PostalCodesListResponse": list_postal_codes_response
744
+ "/dfareporting:v2.5/ProjectsListResponse": list_projects_response
745
+ "/dfareporting:v2.5/RegionsListResponse": list_regions_response
746
+ "/dfareporting:v2.5/RemarketingListsListResponse": list_remarketing_lists_response
747
+ "/dfareporting:v2.5/SitesListResponse": list_sites_response
748
+ "/dfareporting:v2.5/SizesListResponse": list_sizes_response
749
+ "/dfareporting:v2.5/SubaccountsListResponse": list_subaccounts_response
750
+ "/dfareporting:v2.5/TargetableRemarketingListsListResponse": list_targetable_remarketing_lists_response
751
+ "/dfareporting:v2.5/UserRolePermissionGroupsListResponse": list_user_role_permission_groups_response
752
+ "/dfareporting:v2.5/UserRolePermissionsListResponse": list_user_role_permissions_response
753
+ "/dfareporting:v2.5/UserRolesListResponse": list_user_roles_response
754
+ "/dfareporting:v2.5/dfareporting.floodlightActivities.generatetag": generate_floodlight_activity_tag
755
+ "/dfareporting:v2.5/dfareporting.placements.generatetags": generate_placement_tags
756
756
  "/discovery:v1/RestDescription/methods": api_methods
757
757
  "/discovery:v1/RestResource/methods": api_methods
758
758
  "/discovery:v1/discovery.apis.getRest": get_rest_api
@@ -865,6 +865,13 @@
865
865
  "/genomics:v1/genomics.variantsets.search": search_variant_sets
866
866
  "/genomics:v1/genomics.referencesets.search": search_reference_sets
867
867
  "/gmail:v1/gmail.users.getProfile": get_user_profile
868
+ "/gmail:v1/ListSendAsResponse/sendAs/send_a": send_as
869
+ "/gmail:v1/gmail.users.settings.sendAs.create": create_user_setting_send_as
870
+ "/gmail:v1/gmail.users.settings.sendAs.delete": delete_user_setting_send_as
871
+ "/gmail:v1/gmail.users.settings.sendAs.get": get_user_setting_send_as
872
+ "/gmail:v1/gmail.users.settings.sendAs.patch": patch_user_setting_send_as
873
+ "/gmail:v1/gmail.users.settings.sendAs.update": update_user_setting_send_as
874
+ "/gmail:v1/gmail.users.settings.sendAs.verify": verify_user_setting_send_as
868
875
  "/groupssettings:v1?force_alt_json" : true
869
876
  "/identitytoolkit:v3/IdentitytoolkitRelyingpartySetProjectConfigRequest": set_project_config_request
870
877
  "/identitytoolkit:v3/IdentitytoolkitRelyingpartyCreateAuthUriRequest": create_auth_uri_request
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/adsense/management/
26
26
  module AdsenseV1_4
27
27
  VERSION = 'V1_4'
28
- REVISION = '20160607'
28
+ REVISION = '20160705'
29
29
 
30
30
  # View and manage your AdSense data
31
31
  AUTH_ADSENSE = 'https://www.googleapis.com/auth/adsense'
@@ -26,7 +26,7 @@ module Google
26
26
  # @see https://developers.google.com/adsense/host/
27
27
  module AdsensehostV4_1
28
28
  VERSION = 'V4_1'
29
- REVISION = '20160607'
29
+ REVISION = '20160705'
30
30
 
31
31
  # View and manage your AdSense host data and associated accounts
32
32
  AUTH_ADSENSEHOST = 'https://www.googleapis.com/auth/adsensehost'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/analytics/devguides/reporting/core/v4/
26
26
  module AnalyticsreportingV4
27
27
  VERSION = 'V4'
28
- REVISION = '20160601'
28
+ REVISION = '20160616'
29
29
 
30
30
  # View your Google Analytics data
31
31
  AUTH_ANALYTICS_READONLY = 'https://www.googleapis.com/auth/analytics.readonly'
@@ -25,7 +25,7 @@ module Google
25
25
  # @see https://developers.google.com/android/work/play/emm-api
26
26
  module AndroidenterpriseV1
27
27
  VERSION = 'V1'
28
- REVISION = '20160601'
28
+ REVISION = '20160704'
29
29
 
30
30
  # Manage corporate Android devices
31
31
  AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
@@ -22,6 +22,26 @@ module Google
22
22
  module Apis
23
23
  module AndroidenterpriseV1
24
24
 
25
+ # This represents an enterprise administrator who can manage the enterprise in
26
+ # the Google Play for Work Store.
27
+ class Administrator
28
+ include Google::Apis::Core::Hashable
29
+
30
+ # The administrator's email address.
31
+ # Corresponds to the JSON property `email`
32
+ # @return [String]
33
+ attr_accessor :email
34
+
35
+ def initialize(**args)
36
+ update!(**args)
37
+ end
38
+
39
+ # Update properties of this object
40
+ def update!(**args)
41
+ @email = args[:email] if args.key?(:email)
42
+ end
43
+ end
44
+
25
45
  # Represents the list of app restrictions available to be pre-configured for the
26
46
  # product.
27
47
  class AppRestrictionsSchema
@@ -49,6 +69,28 @@ module Google
49
69
  end
50
70
  end
51
71
 
72
+ # An event generated when a new app version is uploaded to Google Play and its
73
+ # app restrictions schema changed. To fetch the app restrictions schema for an
74
+ # app, use Products.getAppRestrictionsSchema on the EMM API.
75
+ class AppRestrictionsSchemaChangeEvent
76
+ include Google::Apis::Core::Hashable
77
+
78
+ # The id of the product (e.g. "app:com.google.android.gm") for which the app
79
+ # restriction schema changed. This field will always be present.
80
+ # Corresponds to the JSON property `productId`
81
+ # @return [String]
82
+ attr_accessor :product_id
83
+
84
+ def initialize(**args)
85
+ update!(**args)
86
+ end
87
+
88
+ # Update properties of this object
89
+ def update!(**args)
90
+ @product_id = args[:product_id] if args.key?(:product_id)
91
+ end
92
+ end
93
+
52
94
  # A restriction in the App Restriction Schema represents a piece of
53
95
  # configuration that may be pre-applied.
54
96
  class AppRestrictionsSchemaRestriction
@@ -152,6 +194,29 @@ module Google
152
194
  end
153
195
  end
154
196
 
197
+ # An event generated when a new version of an app is uploaded to Google Play.
198
+ # Notifications are sent for new public versions only: alpha, beta, or canary
199
+ # versions do not generate this event. To fetch up-to-date version history for
200
+ # an app, use Products.Get on the EMM API.
201
+ class AppUpdateEvent
202
+ include Google::Apis::Core::Hashable
203
+
204
+ # The id of the product (e.g. "app:com.google.android.gm") that was updated.
205
+ # This field will always be present.
206
+ # Corresponds to the JSON property `productId`
207
+ # @return [String]
208
+ attr_accessor :product_id
209
+
210
+ def initialize(**args)
211
+ update!(**args)
212
+ end
213
+
214
+ # Update properties of this object
215
+ def update!(**args)
216
+ @product_id = args[:product_id] if args.key?(:product_id)
217
+ end
218
+ end
219
+
155
220
  # This represents a single version of the app.
156
221
  class AppVersion
157
222
  include Google::Apis::Core::Hashable
@@ -206,6 +271,35 @@ module Google
206
271
  end
207
272
  end
208
273
 
274
+ # An AuthenticationToken is used by the EMM's device policy client on a device
275
+ # to provision the given EMM-managed user on that device.
276
+ class AuthenticationToken
277
+ include Google::Apis::Core::Hashable
278
+
279
+ # Identifies what kind of resource this is. Value: the fixed string "
280
+ # androidenterprise#authenticationToken".
281
+ # Corresponds to the JSON property `kind`
282
+ # @return [String]
283
+ attr_accessor :kind
284
+
285
+ # The authentication token to be passed to the device policy client on the
286
+ # device where it can be used to provision the account for which this token was
287
+ # generated.
288
+ # Corresponds to the JSON property `token`
289
+ # @return [String]
290
+ attr_accessor :token
291
+
292
+ def initialize(**args)
293
+ update!(**args)
294
+ end
295
+
296
+ # Update properties of this object
297
+ def update!(**args)
298
+ @kind = args[:kind] if args.key?(:kind)
299
+ @token = args[:token] if args.key?(:token)
300
+ end
301
+ end
302
+
209
303
  # A collection resource defines a named set of apps that is visible to a set of
210
304
  # users in the Google Play Store app running on those users' managed devices.
211
305
  # Those users can then install any of those apps if they wish (which will
@@ -343,8 +437,7 @@ module Google
343
437
  # means that the EMM's app is a device owner. "managedProfile" means that the
344
438
  # EMM's app is the profile owner (and there is a separate personal profile which
345
439
  # is not managed). "containerApp" means that the EMM's app is managing the
346
- # Android for Work container app on the device. ?unmanagedProfile? means that
347
- # the EMM?s app is managing a managed user on an unmanaged device
440
+ # Android for Work container app on the device.
348
441
  # Corresponds to the JSON property `managementType`
349
442
  # @return [String]
350
443
  attr_accessor :management_type
@@ -417,33 +510,31 @@ module Google
417
510
  end
418
511
  end
419
512
 
420
- # An enterprise resource represents a binding between an organization and their
421
- # EMM.
422
- # To create an enterprise, an admin of the enterprise must first go through a
423
- # Play for Work sign-up flow. At the end of this the admin will be presented
424
- # with a token (a short opaque alphanumeric string). They must then present this
425
- # to the EMM, who then supplies it to the enroll method. Until this is done the
426
- # EMM will not have any access to the enterprise.
427
- # After calling enroll the EMM should call setAccount to specify the service
428
- # account that will be allowed to act on behalf of the enterprise, which will be
429
- # required for access to the enterprise's data through this API. Only one call
430
- # of setAccount is allowed for a given enterprise; the only way to change the
431
- # account later is to unenroll the enterprise and enroll it again (obtaining a
432
- # new token).
433
- # The EMM can unenroll an enterprise in order to sever the binding between them.
434
- # Re-enrolling an enterprise is possible, but requires a new token to be
435
- # retrieved. Enterprises.unenroll requires the EMM's credentials (as enroll does)
436
- # , not the enterprise's. Enterprises.unenroll can only be used for enterprises
437
- # that were previously enrolled with the enroll call. Any enterprises that were
438
- # enrolled using the (deprecated) Enterprises.insert call must be unenrolled
439
- # with Enterprises.delete and can then be re-enrolled using the Enterprises.
440
- # enroll call.
441
- # The ID for an enterprise is an opaque string. It is returned by insert and
442
- # enroll and can also be retrieved if the enterprise's primary domain is known
443
- # using the list method.
513
+ # An enterprise resource represents the binding between an EMM and a specific
514
+ # organization.
515
+ # That binding can be instantiated in one of two different ways using this API
516
+ # as follows:
517
+ #
518
+ # - For Google managed domain customers, the process involves using Enterprises.
519
+ # enroll and Enterprises.setAccount (in conjunction with artifacts obtained from
520
+ # the Admin console and the Google Developers console) and submitted to the EMM
521
+ # through a more-or-less manual process.
522
+ # - An alternative process that takes advantage of Google-provided mechanisms (
523
+ # Android for Work Sign-up UI) that expedite the process involves Enterprises.
524
+ # generateSignupUrl, Enterprises.completeSignup, Enterprises.getServiceAccount (
525
+ # optional), and Enterprises.setAccount.
526
+ # The overall processes are very different and involve different identity models,
527
+ # but as an EMM, you can support either or both approaches in your EMM console.
528
+ # See EMM Developer's Guide for details.
444
529
  class Enterprise
445
530
  include Google::Apis::Core::Hashable
446
531
 
532
+ # Administrators of the enterprise. This is only supported for enterprises
533
+ # created via the EMM-initiated flow.
534
+ # Corresponds to the JSON property `administrator`
535
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Administrator>]
536
+ attr_accessor :administrator
537
+
447
538
  # The unique ID for the enterprise.
448
539
  # Corresponds to the JSON property `id`
449
540
  # @return [String]
@@ -471,6 +562,7 @@ module Google
471
562
 
472
563
  # Update properties of this object
473
564
  def update!(**args)
565
+ @administrator = args[:administrator] if args.key?(:administrator)
474
566
  @id = args[:id] if args.key?(:id)
475
567
  @kind = args[:kind] if args.key?(:kind)
476
568
  @name = args[:name] if args.key?(:name)
@@ -831,6 +923,50 @@ module Google
831
923
  end
832
924
  end
833
925
 
926
+ # An event generated when an app installation failed on a device
927
+ class InstallFailureEvent
928
+ include Google::Apis::Core::Hashable
929
+
930
+ # The Android ID of the device. This field will always be present.
931
+ # Corresponds to the JSON property `deviceId`
932
+ # @return [String]
933
+ attr_accessor :device_id
934
+
935
+ # Additional details on the failure if applicable.
936
+ # Corresponds to the JSON property `failureDetails`
937
+ # @return [String]
938
+ attr_accessor :failure_details
939
+
940
+ # The reason for the installation failure. This field will always be present.
941
+ # Corresponds to the JSON property `failureReason`
942
+ # @return [String]
943
+ attr_accessor :failure_reason
944
+
945
+ # The id of the product (e.g. "app:com.google.android.gm") for which the install
946
+ # failure event occured. This field will always be present.
947
+ # Corresponds to the JSON property `productId`
948
+ # @return [String]
949
+ attr_accessor :product_id
950
+
951
+ # The ID of the user. This field will always be present.
952
+ # Corresponds to the JSON property `userId`
953
+ # @return [String]
954
+ attr_accessor :user_id
955
+
956
+ def initialize(**args)
957
+ update!(**args)
958
+ end
959
+
960
+ # Update properties of this object
961
+ def update!(**args)
962
+ @device_id = args[:device_id] if args.key?(:device_id)
963
+ @failure_details = args[:failure_details] if args.key?(:failure_details)
964
+ @failure_reason = args[:failure_reason] if args.key?(:failure_reason)
965
+ @product_id = args[:product_id] if args.key?(:product_id)
966
+ @user_id = args[:user_id] if args.key?(:user_id)
967
+ end
968
+ end
969
+
834
970
  # The install resources for the device.
835
971
  class ListInstallsResponse
836
972
  include Google::Apis::Core::Hashable
@@ -883,6 +1019,145 @@ module Google
883
1019
  end
884
1020
  end
885
1021
 
1022
+ # An event generated when new permissions are added to an app.
1023
+ class NewPermissionsEvent
1024
+ include Google::Apis::Core::Hashable
1025
+
1026
+ # The set of permissions that the enterprise admin has already approved for this
1027
+ # application. Use Permissions.Get on the EMM API to retrieve details about
1028
+ # these permissions.
1029
+ # Corresponds to the JSON property `approvedPermissions`
1030
+ # @return [Array<String>]
1031
+ attr_accessor :approved_permissions
1032
+
1033
+ # The id of the product (e.g. "app:com.google.android.gm") for which new
1034
+ # permissions were added. This field will always be present.
1035
+ # Corresponds to the JSON property `productId`
1036
+ # @return [String]
1037
+ attr_accessor :product_id
1038
+
1039
+ # The set of permissions that the app is currently requesting. Use Permissions.
1040
+ # Get on the EMM API to retrieve details about these permissions.
1041
+ # Corresponds to the JSON property `requestedPermissions`
1042
+ # @return [Array<String>]
1043
+ attr_accessor :requested_permissions
1044
+
1045
+ def initialize(**args)
1046
+ update!(**args)
1047
+ end
1048
+
1049
+ # Update properties of this object
1050
+ def update!(**args)
1051
+ @approved_permissions = args[:approved_permissions] if args.key?(:approved_permissions)
1052
+ @product_id = args[:product_id] if args.key?(:product_id)
1053
+ @requested_permissions = args[:requested_permissions] if args.key?(:requested_permissions)
1054
+ end
1055
+ end
1056
+
1057
+ # A notification of one event relating to an enterprise.
1058
+ class Notification
1059
+ include Google::Apis::Core::Hashable
1060
+
1061
+ # An event generated when a new app version is uploaded to Google Play and its
1062
+ # app restrictions schema changed. To fetch the app restrictions schema for an
1063
+ # app, use Products.getAppRestrictionsSchema on the EMM API.
1064
+ # Corresponds to the JSON property `appRestrictionsSchemaChangeEvent`
1065
+ # @return [Google::Apis::AndroidenterpriseV1::AppRestrictionsSchemaChangeEvent]
1066
+ attr_accessor :app_restrictions_schema_change_event
1067
+
1068
+ # An event generated when a new version of an app is uploaded to Google Play.
1069
+ # Notifications are sent for new public versions only: alpha, beta, or canary
1070
+ # versions do not generate this event. To fetch up-to-date version history for
1071
+ # an app, use Products.Get on the EMM API.
1072
+ # Corresponds to the JSON property `appUpdateEvent`
1073
+ # @return [Google::Apis::AndroidenterpriseV1::AppUpdateEvent]
1074
+ attr_accessor :app_update_event
1075
+
1076
+ # The ID of the enterprise for which the notification is sent. This will always
1077
+ # be present.
1078
+ # Corresponds to the JSON property `enterpriseId`
1079
+ # @return [String]
1080
+ attr_accessor :enterprise_id
1081
+
1082
+ # An event generated when an app installation failed on a device
1083
+ # Corresponds to the JSON property `installFailureEvent`
1084
+ # @return [Google::Apis::AndroidenterpriseV1::InstallFailureEvent]
1085
+ attr_accessor :install_failure_event
1086
+
1087
+ # An event generated when new permissions are added to an app.
1088
+ # Corresponds to the JSON property `newPermissionsEvent`
1089
+ # @return [Google::Apis::AndroidenterpriseV1::NewPermissionsEvent]
1090
+ attr_accessor :new_permissions_event
1091
+
1092
+ # An event generated when a product's approval status is changed.
1093
+ # Corresponds to the JSON property `productApprovalEvent`
1094
+ # @return [Google::Apis::AndroidenterpriseV1::ProductApprovalEvent]
1095
+ attr_accessor :product_approval_event
1096
+
1097
+ # An event generated whenever a product's availability changes.
1098
+ # Corresponds to the JSON property `productAvailabilityChangeEvent`
1099
+ # @return [Google::Apis::AndroidenterpriseV1::ProductAvailabilityChangeEvent]
1100
+ attr_accessor :product_availability_change_event
1101
+
1102
+ # The time when the notification was published in milliseconds since 1970-01-
1103
+ # 01T00:00:00Z. This will always be present.
1104
+ # Corresponds to the JSON property `timestampMillis`
1105
+ # @return [String]
1106
+ attr_accessor :timestamp_millis
1107
+
1108
+ def initialize(**args)
1109
+ update!(**args)
1110
+ end
1111
+
1112
+ # Update properties of this object
1113
+ def update!(**args)
1114
+ @app_restrictions_schema_change_event = args[:app_restrictions_schema_change_event] if args.key?(:app_restrictions_schema_change_event)
1115
+ @app_update_event = args[:app_update_event] if args.key?(:app_update_event)
1116
+ @enterprise_id = args[:enterprise_id] if args.key?(:enterprise_id)
1117
+ @install_failure_event = args[:install_failure_event] if args.key?(:install_failure_event)
1118
+ @new_permissions_event = args[:new_permissions_event] if args.key?(:new_permissions_event)
1119
+ @product_approval_event = args[:product_approval_event] if args.key?(:product_approval_event)
1120
+ @product_availability_change_event = args[:product_availability_change_event] if args.key?(:product_availability_change_event)
1121
+ @timestamp_millis = args[:timestamp_millis] if args.key?(:timestamp_millis)
1122
+ end
1123
+ end
1124
+
1125
+ # A resource returned by the PullNotificationSet API, which contains a
1126
+ # collection of notifications for enterprises associated with the service
1127
+ # account authenticated for the request.
1128
+ class NotificationSet
1129
+ include Google::Apis::Core::Hashable
1130
+
1131
+ # Identifies what kind of resource this is. Value: the fixed string "
1132
+ # androidenterprise#notificationSet".
1133
+ # Corresponds to the JSON property `kind`
1134
+ # @return [String]
1135
+ attr_accessor :kind
1136
+
1137
+ # The notifications received, or empty if no notifications are present.
1138
+ # Corresponds to the JSON property `notification`
1139
+ # @return [Array<Google::Apis::AndroidenterpriseV1::Notification>]
1140
+ attr_accessor :notification
1141
+
1142
+ # The notification set ID, required to mark the notification as received with
1143
+ # the Enterprises.AcknowledgeNotification API. This will be omitted if no
1144
+ # notifications are present.
1145
+ # Corresponds to the JSON property `notificationSetId`
1146
+ # @return [String]
1147
+ attr_accessor :notification_set_id
1148
+
1149
+ def initialize(**args)
1150
+ update!(**args)
1151
+ end
1152
+
1153
+ # Update properties of this object
1154
+ def update!(**args)
1155
+ @kind = args[:kind] if args.key?(:kind)
1156
+ @notification = args[:notification] if args.key?(:notification)
1157
+ @notification_set_id = args[:notification_set_id] if args.key?(:notification_set_id)
1158
+ end
1159
+ end
1160
+
886
1161
  #
887
1162
  class PageInfo
888
1163
  include Google::Apis::Core::Hashable
@@ -958,10 +1233,10 @@ module Google
958
1233
  end
959
1234
  end
960
1235
 
961
- # A product represents an app in the Google Play Store that is available to at
962
- # least some users in the enterprise. (Some apps are restricted to a single
963
- # enterprise, and no information about them is made available outside that
964
- # enterprise.)
1236
+ # A Products resource represents an app in the Google Play Store that is
1237
+ # available to at least some users in the enterprise. (Some apps are restricted
1238
+ # to a single enterprise, and no information about them is made available
1239
+ # outside that enterprise.)
965
1240
  # The information provided for each product (localized name, icon, link to the
966
1241
  # full Google Play details page) is intended to allow a basic representation of
967
1242
  # the product within an EMM user interface.
@@ -1062,6 +1337,59 @@ module Google
1062
1337
  end
1063
1338
  end
1064
1339
 
1340
+ # An event generated when a product's approval status is changed.
1341
+ class ProductApprovalEvent
1342
+ include Google::Apis::Core::Hashable
1343
+
1344
+ # Whether the product was approved or unapproved. This field will always be
1345
+ # present.
1346
+ # Corresponds to the JSON property `approved`
1347
+ # @return [String]
1348
+ attr_accessor :approved
1349
+
1350
+ # The id of the product (e.g. "app:com.google.android.gm") for which the
1351
+ # approval status has changed. This field will always be present.
1352
+ # Corresponds to the JSON property `productId`
1353
+ # @return [String]
1354
+ attr_accessor :product_id
1355
+
1356
+ def initialize(**args)
1357
+ update!(**args)
1358
+ end
1359
+
1360
+ # Update properties of this object
1361
+ def update!(**args)
1362
+ @approved = args[:approved] if args.key?(:approved)
1363
+ @product_id = args[:product_id] if args.key?(:product_id)
1364
+ end
1365
+ end
1366
+
1367
+ # An event generated whenever a product's availability changes.
1368
+ class ProductAvailabilityChangeEvent
1369
+ include Google::Apis::Core::Hashable
1370
+
1371
+ # The new state of the product. This field will always be present.
1372
+ # Corresponds to the JSON property `availabilityStatus`
1373
+ # @return [String]
1374
+ attr_accessor :availability_status
1375
+
1376
+ # The id of the product (e.g. "app:com.google.android.gm") for which the product
1377
+ # availability changed. This field will always be present.
1378
+ # Corresponds to the JSON property `productId`
1379
+ # @return [String]
1380
+ attr_accessor :product_id
1381
+
1382
+ def initialize(**args)
1383
+ update!(**args)
1384
+ end
1385
+
1386
+ # Update properties of this object
1387
+ def update!(**args)
1388
+ @availability_status = args[:availability_status] if args.key?(:availability_status)
1389
+ @product_id = args[:product_id] if args.key?(:product_id)
1390
+ end
1391
+ end
1392
+
1065
1393
  # A product permissions resource represents the set of permissions required by a
1066
1394
  # specific app and whether or not they have been accepted by an enterprise admin.
1067
1395
  # The API can be used to read the set of permissions, and also to update the set
@@ -1234,6 +1562,134 @@ module Google
1234
1562
  end
1235
1563
  end
1236
1564
 
1565
+ # A service account identity, including the name and credentials that can be
1566
+ # used to authenticate as the service account.
1567
+ class ServiceAccount
1568
+ include Google::Apis::Core::Hashable
1569
+
1570
+ # Credentials that can be used to authenticate as a service account.
1571
+ # Corresponds to the JSON property `key`
1572
+ # @return [Google::Apis::AndroidenterpriseV1::ServiceAccountKey]
1573
+ attr_accessor :key
1574
+
1575
+ # Identifies what kind of resource this is. Value: the fixed string "
1576
+ # androidenterprise#serviceAccount".
1577
+ # Corresponds to the JSON property `kind`
1578
+ # @return [String]
1579
+ attr_accessor :kind
1580
+
1581
+ # The account name of the service account, in the form of an email address.
1582
+ # Assigned by the server.
1583
+ # Corresponds to the JSON property `name`
1584
+ # @return [String]
1585
+ attr_accessor :name
1586
+
1587
+ def initialize(**args)
1588
+ update!(**args)
1589
+ end
1590
+
1591
+ # Update properties of this object
1592
+ def update!(**args)
1593
+ @key = args[:key] if args.key?(:key)
1594
+ @kind = args[:kind] if args.key?(:kind)
1595
+ @name = args[:name] if args.key?(:name)
1596
+ end
1597
+ end
1598
+
1599
+ # Credentials that can be used to authenticate as a service account.
1600
+ class ServiceAccountKey
1601
+ include Google::Apis::Core::Hashable
1602
+
1603
+ # The body of the private key credentials file, in string format. This is only
1604
+ # populated when the ServiceAccountKey is created, and is not stored by Google.
1605
+ # Corresponds to the JSON property `data`
1606
+ # @return [String]
1607
+ attr_accessor :data
1608
+
1609
+ # An opaque, unique identifier for this ServiceAccountKey. Assigned by the
1610
+ # server.
1611
+ # Corresponds to the JSON property `id`
1612
+ # @return [String]
1613
+ attr_accessor :id
1614
+
1615
+ # Identifies what kind of resource this is. Value: the fixed string "
1616
+ # androidenterprise#serviceAccountKey".
1617
+ # Corresponds to the JSON property `kind`
1618
+ # @return [String]
1619
+ attr_accessor :kind
1620
+
1621
+ # The file format of the generated key data.
1622
+ # Corresponds to the JSON property `type`
1623
+ # @return [String]
1624
+ attr_accessor :type
1625
+
1626
+ def initialize(**args)
1627
+ update!(**args)
1628
+ end
1629
+
1630
+ # Update properties of this object
1631
+ def update!(**args)
1632
+ @data = args[:data] if args.key?(:data)
1633
+ @id = args[:id] if args.key?(:id)
1634
+ @kind = args[:kind] if args.key?(:kind)
1635
+ @type = args[:type] if args.key?(:type)
1636
+ end
1637
+ end
1638
+
1639
+ #
1640
+ class ServiceAccountKeysListResponse
1641
+ include Google::Apis::Core::Hashable
1642
+
1643
+ # The service account credentials.
1644
+ # Corresponds to the JSON property `serviceAccountKey`
1645
+ # @return [Array<Google::Apis::AndroidenterpriseV1::ServiceAccountKey>]
1646
+ attr_accessor :service_account_key
1647
+
1648
+ def initialize(**args)
1649
+ update!(**args)
1650
+ end
1651
+
1652
+ # Update properties of this object
1653
+ def update!(**args)
1654
+ @service_account_key = args[:service_account_key] if args.key?(:service_account_key)
1655
+ end
1656
+ end
1657
+
1658
+ # A resource returned by the GenerateSignupUrl API, which contains the Signup
1659
+ # URL and Completion Token.
1660
+ class SignupInfo
1661
+ include Google::Apis::Core::Hashable
1662
+
1663
+ # An opaque token that will be required, along with the Enterprise Token, for
1664
+ # obtaining the enterprise resource from CompleteSignup.
1665
+ # Corresponds to the JSON property `completionToken`
1666
+ # @return [String]
1667
+ attr_accessor :completion_token
1668
+
1669
+ # Identifies what kind of resource this is. Value: the fixed string "
1670
+ # androidenterprise#signupInfo".
1671
+ # Corresponds to the JSON property `kind`
1672
+ # @return [String]
1673
+ attr_accessor :kind
1674
+
1675
+ # A URL under which the Admin can sign up for an enterprise. The page pointed to
1676
+ # cannot be rendered in an iframe.
1677
+ # Corresponds to the JSON property `url`
1678
+ # @return [String]
1679
+ attr_accessor :url
1680
+
1681
+ def initialize(**args)
1682
+ update!(**args)
1683
+ end
1684
+
1685
+ # Update properties of this object
1686
+ def update!(**args)
1687
+ @completion_token = args[:completion_token] if args.key?(:completion_token)
1688
+ @kind = args[:kind] if args.key?(:kind)
1689
+ @url = args[:url] if args.key?(:url)
1690
+ end
1691
+ end
1692
+
1237
1693
  # Definition of a Google Play for Work store cluster, a list of products
1238
1694
  # displayed as part of a store page.
1239
1695
  class StoreCluster
@@ -1441,17 +1897,44 @@ module Google
1441
1897
  end
1442
1898
  end
1443
1899
 
1444
- # A user resource represents an individual user within the enterprise's domain.
1445
- # Note that each user is associated with a Google account based on the user's
1446
- # corporate email address (which must be in one of the enterprise's domains). As
1447
- # part of installing the EMM's DPC app to manage a device the Google account
1448
- # must be provisioned to the device, and so the user resource must be created
1449
- # before that. This can be done using the Google Admin SDK Directory API.
1450
- # The ID for a user is an opaque string. It can be retrieved using the list
1451
- # method queried by the user's primary email address.
1900
+ # A Users resource represents an account associated with an enterprise. The
1901
+ # account may be specific to a device or to an individual user (who can then use
1902
+ # the account across multiple devices). The account may provide access to Google
1903
+ # Play for Work only, or to other Google services, depending on the identity
1904
+ # model used:
1905
+ # - Google managed domain identity model requires synchronization to Google
1906
+ # account sources (via primaryEmail).
1907
+ # - Android for Work accounts identity model provides a dynamic means for
1908
+ # enterprises to create user or device accounts as needed. These accounts
1909
+ # provide access to Google Play for Work only.
1452
1910
  class User
1453
1911
  include Google::Apis::Core::Hashable
1454
1912
 
1913
+ # The id as used by the EMM for this user, e.g. "user342" or "asset#44418". Will
1914
+ # always be set for EMM managed users and not set for Google managed users. For
1915
+ # privacy sensitive deployments it should not be possible to identify the
1916
+ # individual with this identifier.
1917
+ # Corresponds to the JSON property `accountIdentifier`
1918
+ # @return [String]
1919
+ attr_accessor :account_identifier
1920
+
1921
+ # The type of account that this user represents. A "deviceAccount" is specific
1922
+ # to a single device while a "userAccount" represents a traditional user account,
1923
+ # i.e. one that can be installed on multiple devices. "googleManaged" users
1924
+ # will always be a "userAccount" but "emmManaged" users can be either a "
1925
+ # userAccount" or a "deviceAccount".
1926
+ # Corresponds to the JSON property `accountType`
1927
+ # @return [String]
1928
+ attr_accessor :account_type
1929
+
1930
+ # The user's name as it is to be presented in user interfaces, e.g. "John". Can
1931
+ # optionally be set for EMM managed users and will not be set for Google managed
1932
+ # users. For privacy sensitive deployments this should be left unset or set to
1933
+ # something generic.
1934
+ # Corresponds to the JSON property `displayName`
1935
+ # @return [String]
1936
+ attr_accessor :display_name
1937
+
1455
1938
  # The unique ID for the user.
1456
1939
  # Corresponds to the JSON property `id`
1457
1940
  # @return [String]
@@ -1463,7 +1946,15 @@ module Google
1463
1946
  # @return [String]
1464
1947
  attr_accessor :kind
1465
1948
 
1466
- # The user's primary email address, e.g. "jsmith@example.com".
1949
+ # The entity that manages the user. With "googleManaged" users, the source of
1950
+ # truth is Google so EMMs have to make sure a Google account exists for the user.
1951
+ # With "emmManaged" users, the EMM is in charge.
1952
+ # Corresponds to the JSON property `managementType`
1953
+ # @return [String]
1954
+ attr_accessor :management_type
1955
+
1956
+ # The user's primary email address, for example, "jsmith@example.com". Will
1957
+ # always be set for Google managed users and not set for EMM managed users.
1467
1958
  # Corresponds to the JSON property `primaryEmail`
1468
1959
  # @return [String]
1469
1960
  attr_accessor :primary_email
@@ -1474,8 +1965,12 @@ module Google
1474
1965
 
1475
1966
  # Update properties of this object
1476
1967
  def update!(**args)
1968
+ @account_identifier = args[:account_identifier] if args.key?(:account_identifier)
1969
+ @account_type = args[:account_type] if args.key?(:account_type)
1970
+ @display_name = args[:display_name] if args.key?(:display_name)
1477
1971
  @id = args[:id] if args.key?(:id)
1478
1972
  @kind = args[:kind] if args.key?(:kind)
1973
+ @management_type = args[:management_type] if args.key?(:management_type)
1479
1974
  @primary_email = args[:primary_email] if args.key?(:primary_email)
1480
1975
  end
1481
1976
  end